ezuikit-js 8.2.4-beta.2 → 8.2.4-beta.4
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/README.md +11 -5
- package/ezuikit.js +21 -26
- package/index.js +11 -11
- package/index.mjs +11 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ezuikit.js v8.2.4-beta.
|
|
2
|
+
* ezuikit.js v8.2.4-beta.4
|
|
3
3
|
* ezuikit javascript for npm
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2026-01-03 Ezviz-OpenBiz
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
7
7
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("abortcontroller-polyfill"),require("formdata-polyfill");var A=require("@skax/delegate"),e=require("deepmerge"),t=require("@ezuikit/utils-tools"),a=require("screenfull"),r=require("@ezuikit/utils-i18n"),n=require("@ezuikit/utils-logger"),o=require("debounce-promise"),s=require("@ezuikit/utils-collect");function g(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}!function(A,e){void 0===e&&(e={});var t=e.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=A:a.appendChild(document.createTextNode(A))}}(':root{--ezplayer-default-color:#fff;--ezplayer-primary-color:#407aff;--ezplayer-active-color:var(--ezplayer-primary-color,#407aff);--ezplayer-disabled-color:#aaa;--ezplayer-font-size:14px;--ezplayer-icon-font-size:24px;--ezplayer-btn-height:var(--ezplayer-icon-font-size,24px);--ezplayer-border-radius:8px;--ezplayer-control-space:16px;--ezplayer-header-height:46px;--ezplayer-footer-height:80px;--ezplayer-fullscreen-control-space:26px;--ezplayer-panel-bg-color:rgba(0,0,0,.7);--ezplayer-mobile-control-space:16px;--ezplayer-mobile-header-height:45px;--ezplayer-mobile-footer-height:54px;--ezplayer-mobile-fullscreen-header-height:75px;--ezplayer-mobile-fullscreen-footer-height:110px;--ezplayer-mobile-fullscreen-control-space:26px;--ezplayer-mobile-extend-bg-color:#f5f7fa;--ezplayer-mobile-extend-default-color:#2c2c2c}body.ezplayer-body-mobile-noscroll{background-color:#000!important;height:100vh;overflow:hidden;touch-action:none}.ezplayer,.ezplayer-mobile-extend{background-color:#000;box-sizing:border-box;color:var(--ezplayer-default-color,#fff);display:flex;flex-direction:column;font-size:14px;font-size:var(--ezplayer-font-size,14px);padding:0;position:relative;--webkit-tap-highlight-color:transparent;outline:none}.ezplayer *,.ezplayer-mobile-extend *{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ezplayer:-webkit-full-screen{height:100%!important;width:100%!important}.ezplayer *{box-sizing:border-box}.ezplayer li,.ezplayer ul{box-sizing:border-box;list-style:none;margin:0;padding:0}.ezplayer-control{align-items:center;cursor:pointer;display:inline-flex;justify-content:center}.ezplayer-control-block,.ezplayer-control-text{cursor:unset}.ezplayer-control-block{align-items:center;box-sizing:border-box;color:var(--ezplayer-default-color,#fff);display:flex;flex-direction:column;justify-content:center;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ezplayer-btn,.ezplayer-icon,.ezplayer-text{display:inline-flex;transition:color .2s ease-in-out}.ezplayer-btn{cursor:pointer}.ezplayer-btn,.ezplayer-text{font-size:var(--ezplayer-font-size,14px)}.ezplayer-btn{align-items:center;border:1px solid var(--ezplayer-default-color,#fff);border-radius:12px;border-radius:calc(var(--ezplayer-btn-height, 24px)/2);display:inline-flex;height:var(--ezplayer-btn-height,26px);justify-content:center;padding:2px 10px;white-space:nowrap}.ezplayer-active{border-color:var(--ezplayer-active-color,#0099e5)!important;color:var(--ezplayer-active-color,#0099e5)!important}.ezplayer-disabled,.ezplayer-disabled .ezplayer-btn,.ezplayer-disabled .ezplayer-icon,.ezplayer-disabled .ezplayer-text{border-color:var(--ezplayer-disabled-color,#aaa)!important;color:var(--ezplayer-disabled-color)!important;cursor:not-allowed!important}.ezplayer-hide{display:none!important}.ezplayer-hide-transition{opacity:0!important;pointer-events:none!important}.ezplayer-overflow-hidden{overflow:hidden}.ezplayer-global-fullscreen .ezplayer-footer,.ezplayer-global-fullscreen .ezplayer-header,.ezplayer-global-fullscreen .ezplayer-rec-footer{display:none}.ezplayer-mobile .ezplayer-control-global-fullscreen{display:none!important}.ezplayer-mobile.ezplayer-fullscreen.ezplayer-angle-0,.ezplayer-mobile.ezplayer-fullscreen.ezplayer-angle-180{background-color:#000!important;bottom:0!important;height:100vw!important;height:var(--ezplayer-mobile-inner-width,100vw)!important;left:0!important;overflow:hidden;padding-right:env(safe-area-inset-bottom);position:fixed!important;right:0!important;top:0!important;transform:rotate(90.001deg) translateY(-100%)!important;-webkit-transform:rotate(90.001deg) translateY(-100%)!important;transform-origin:0 0!important;-webkit-transform-origin:0 0!important;width:100vh!important;width:var(--ezplayer-mobile-inner-height,100vh)!important;z-index:9999}.ezplayer-mobile.ezplayer-fullscreen.ezplayer-angle-270,.ezplayer-mobile.ezplayer-fullscreen.ezplayer-angle-90{background-color:#000!important;bottom:0!important;height:100vh!important;height:var(--ezplayer-mobile-inner-height,100vh)!important;left:0!important;overflow:hidden;position:fixed!important;right:0!important;top:0!important;transform:rotate(0deg) translateY(0)!important;-webkit-transform:rotate(0deg) translateY(0)!important;transform-origin:0 0!important;-webkit-transform-origin:0 0!important;width:100vw!important;width:var(--ezplayer-mobile-inner-width,100vw)!important;z-index:9999}.ezplayer-footer,.ezplayer-header{align-items:center;box-sizing:border-box;color:var(--ezplayer-default-color,#fff);display:flex;flex-wrap:nowrap;font-size:24px;justify-content:space-between;left:0;opacity:1;position:absolute;right:0;transition:opacity .3s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:20}.ezplayer-footer-left,.ezplayer-footer-right,.ezplayer-header-left,.ezplayer-header-right{display:inline-flex;flex-direction:row;flex-wrap:nowrap}.ezplayer-footer-left,.ezplayer-header-left{padding-left:20px}.ezplayer-footer-left .ezplayer-control,.ezplayer-header-left .ezplayer-control{margin-right:16px}.ezplayer-footer-left .ezplayer-control:last-child,.ezplayer-header-left .ezplayer-control:last-child{margin-right:0!important}.ezplayer-footer-right,.ezplayer-header-right{padding-right:20px}.ezplayer-footer-right .ezplayer-control,.ezplayer-header-right .ezplayer-control{margin-left:16px}.ezplayer-footer-right .ezplayer-control:first-child,.ezplayer-header-right .ezplayer-control:first-child{margin-left:0!important}.ezplayer-footer .ezplayer-control,.ezplayer-header .ezplayer-control{padding:2px}.ezplayer-footer .ezplayer-control-text+.ezplayer-control-text,.ezplayer-header .ezplayer-control-text+.ezplayer-control-text{margin-left:8px}.ezplayer-footer-more,.ezplayer-header-more{align-items:center;display:flex;flex-direction:row}.ezplayer-header{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAuCAMAAADeMYNYAAAAbFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0Iv+qAAAAJHRSTlOBdGtiTDoxGxIJy8bCvbm0sKyno56alZGMiHtbV1JFQSomIQDNbq/TAAAAPklEQVQI1xXBhQHAIAAEsau7uwv778iTkFNQUlHT0NLRMzAyMbOwsuHseOproAcnF6HePEQa68vHT6KpZmosd8UCpGNSKboAAAAASUVORK5CYII=");box-sizing:border-box;height:46px;margin:0;top:0}.ezplayer-header-left,.ezplayer-header-right{max-width:50%}.ezplayer-control-rec .ezplayer-icon:first-child{margin-left:0}.ezplayer-footer{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABQCAQAAAByztdQAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAd0SU1FB+kGBAsQDlySUqoAAAABb3JOVAHPoneaAAAAHElEQVQI12NgYGRiYGZiYGJiYEZiYJLECw5q9QCpgAFr/pGonwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNS0wNi0wNFQxMToxNTo1OCswMDowMBLJutIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjUtMDYtMDRUMTE6MTU6NTgrMDA6MDBjlAJuAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDI1LTA2LTA0VDExOjE2OjE0KzAwOjAwnFz8PAAAAABJRU5ErkJggg==");bottom:0;box-sizing:border-box;height:80px;margin:0;padding-top:20px}.ezplayer-mobile .ezplayer-footer,.ezplayer-mobile .ezplayer-header{font-size:24px}.ezplayer-mobile .ezplayer-footer-left .ezplayer-control,.ezplayer-mobile .ezplayer-footer-right .ezplayer-control,.ezplayer-mobile .ezplayer-header-left .ezplayer-control,.ezplayer-mobile .ezplayer-header-right .ezplayer-control{height:24px;padding:0}.ezplayer-mobile .ezplayer-footer-left,.ezplayer-mobile .ezplayer-header-left{padding-left:15px}.ezplayer-mobile .ezplayer-footer-left .ezplayer-control,.ezplayer-mobile .ezplayer-header-left .ezplayer-control{margin-right:15px}.ezplayer-mobile .ezplayer-footer-right,.ezplayer-mobile .ezplayer-header-right{padding-right:15px}.ezplayer-mobile .ezplayer-footer-right .ezplayer-control,.ezplayer-mobile .ezplayer-header-right .ezplayer-control{margin-left:15px}.ezplayer-mobile .ezplayer-footer .ezplayer-control,.ezplayer-mobile .ezplayer-header .ezplayer-control{height:24px;min-width:24px}.ezplayer-mobile .ezplayer-footer .ezplayer-control-text,.ezplayer-mobile .ezplayer-header .ezplayer-control-text{font-size:14px}.ezplayer-mobile .ezplayer-header{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAtCAMAAACzkkr1AAAAV1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOl5NtAAAAHXRSTlOWj4JzaV9YUUQ9MywlGxQKioZ8eW9kTUk4IA8FAKPHi9EAAABMSURBVAjXJcKFDcAwAAOwjKHM+P+dUzTL+C0LWwvnsK7sPULAtnGM2HdOCcfB58nXxTmjFNw3Pw/XivdlIVhKbg1KsdbcO4zhMTDnB9pJBB0jNaXIAAAAAElFTkSuQmCC");background:linear-gradient(180deg,rgba(0,0,0,.6),transparent);height:45px;margin:0;padding:0}.ezplayer-mobile .ezplayer-footer{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAA2CAQAAABHVIAUAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAd0SU1FB+kHGQYOGOvM7YUAAAABb3JOVAHPoneaAAAAFUlEQVQY02NkYGRgYGFgxkUwjShZAMFnAW71uqvOAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI1LTA3LTI1VDA2OjE0OjAwKzAwOjAwy873zwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNS0wNy0yNVQwNjoxNDowMCswMDowMLqTT3MAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjUtMDctMjVUMDY6MTQ6MjQrMDA6MDBb7E3CAAAAAElFTkSuQmCC");background:linear-gradient(180deg,transparent,rgba(0,0,0,.6));height:54px;padding-top:0}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAABLCAQAAADw6J4LAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAd0SU1FB+kHGQYYHh43/WcAAAABb3JOVAHPoneaAAAAKUlEQVQY02NkOM3AwMLwF5X4h5dLOyXD13JmBiaG/8wMjAz/GRkYGRgADI9KMQ6gLKQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjUtMDctMjVUMDY6MjQ6MTQrMDA6MDBqybVDAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDI1LTA3LTI1VDA2OjI0OjE0KzAwOjAwG5QN/wAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyNS0wNy0yNVQwNjoyNDozMCswMDowMPrrD04AAAAASUVORK5CYII=");background:linear-gradient(180deg,rgba(0,0,0,.8),transparent);height:75px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAABuCAMAAAA6XjI3AAAAaVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnbPKNAAAAI3RSTlMAQrRXSTozKxUHxb+spqCNh4F1ZVAgDbqTenBqJRvKm5dgXO7N8BQAAABzSURBVBjThcRFDsQwFATRH2Z2mHP/Q447bmuWKT2VfJdIYg0DxTHt2g59T9sGUSQRDmFoBRJYjvPn+6SUKHNPPOt54L6h62hdYdEWaFuaZ2gaacxrqV9VJZX5JNPruuA8oSypKCjPyXVp1EbIMkpTOg7tB7gTDCt3nEtMAAAAAElFTkSuQmCC");background:linear-gradient(180deg,transparent 9%,rgba(0,0,0,.8));height:110px;padding-top:18px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer-left,.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header-left{padding-left:50px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer-left .ezplayer-control,.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header-left .ezplayer-control{margin-right:30px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer-right,.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header-right{padding-right:50px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer-right .ezplayer-control,.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header-right .ezplayer-control{margin-left:30px}.ezplayer-fullscreen:not(.ezplayer-mobile) .ezplayer-footer-left .ezplayer-control,.ezplayer-fullscreen:not(.ezplayer-mobile) .ezplayer-header-left .ezplayer-control{margin-right:26px}.ezplayer-fullscreen:not(.ezplayer-mobile) .ezplayer-footer-right .ezplayer-control,.ezplayer-fullscreen:not(.ezplayer-mobile) .ezplayer-header-right .ezplayer-control{margin-left:26px}.ezplayer-content{align-items:center;justify-content:center}.ezplayer-content,.ezplayer-content-wrapper{box-sizing:border-box;display:flex;flex:1 1 auto;height:100%;margin:0;outline:none;overflow:hidden;padding:0;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:0}.ezplayer-content-wrapper{background-color:#000}.ezplayer-content-video{align-items:center;box-sizing:border-box;display:flex;flex:1 1 auto;height:100%;justify-content:center;margin:0;outline:none;padding:0;width:100%}.ezplayer-mobile-extend{background-color:#639;background-color:var(--ezplayer-mobile-extend-bg-color,#f5f7fa);color:var(--ezplayer-mobile-extend-default-color,#2c2c2c);display:flex;flex-direction:column}.ezplayer-mobile-extend-controls{background-color:#639;display:flex;height:66px;justify-content:space-around}.ezplayer-mobile-extend-controls .ezplayer-control{width:75px}.ezplayer-mobile-extend-control-panel{align-items:center;display:flex;flex-direction:column;min-height:390px}.ezplayer-mobile-extend-control-top{align-items:center;display:flex;height:36px;justify-content:space-between;padding-top:10px}.ezplayer-mobile-extend-control-top-left{display:inline-flex;padding-left:15px}.ezplayer-mobile-extend-control-top-right{display:inline-flex;justify-content:flex-end;padding-right:15px}.ezplayer-mobile-extend-control-content{display:flex;flex:1 1 auto;flex-direction:column;width:100%}.ezplayer-rec-footer{background-color:#000;box-sizing:border-box;display:block;height:36px;position:relative}.ezplayer-rec-footer-has-date-picker{padding-right:56px}.ezplayer-rec-footer-time-line{height:36px;overflow:hidden;width:100%}.ezplayer-rec-footer-date-picker{align-items:center;display:flex;height:36px;justify-content:flex-end;padding-right:20px;position:absolute;right:0;top:0;width:56px}.ezplayer-rec-footer-date-picker .ezplayer-icon-date{font-size:20px;margin-top:-5px}.drag-scroll{box-sizing:border-box;margin:0;padding:0}.drag-scroll-container{cursor:grab;height:450px;overflow:hidden;position:relative;-webkit-tap-highlight-color:transparent}.drag-scroll-container,.drag-scroll-content{box-sizing:border-box;display:flex;flex-direction:column;margin:0;padding:0;width:100%}.drag-scroll-content{gap:18px;height:auto;transform:translateZ(0);will-change:transform}.drag-scroll-scrollbar{background-color:#0000001a;border-radius:3px;bottom:0;box-sizing:border-box;opacity:0;position:absolute;right:0;top:0;transition:opacity .3s;width:6px}.drag-scroll-scrollbar.drag-scroll-show{opacity:1}.drag-scroll-scrollbar-thumb{background:linear-gradient(180deg,#4a90e2,#357abd);border-radius:3px;box-sizing:border-box;position:absolute;transition:height .2s;width:100%}.ez-time-line-container{box-sizing:border-box;display:block;height:300px;min-width:190px;overflow:hidden;padding-right:29%;position:relative;text-align:left;white-space:nowrap;width:52%!important}.ez-time-line-time-scale-area{border-bottom:none;border-right:12px solid #bdcdff;border-top:none;box-sizing:border-box;color:#666;font-size:12px;height:60px;margin:0;padding:0;position:relative}.ez-time-line-time-label{height:14px;left:45%;line-height:14px;position:relative;top:53px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ez-time-line-time-unavail{background-color:#ddd;box-sizing:border-box;left:100%;position:absolute;width:12px}.ez-time-line-current{box-sizing:border-box;height:29px;min-width:80px;padding-left:2.66666%;position:absolute;text-align:left;top:40px;width:23%;z-index:1}.ez-time-line-current-content{height:58px;position:relative;width:100%}.ez-time-line-current-tip{align-items:center;display:inline-flex;font-size:58px;position:absolute;width:58px;z-index:1}.ez-time-line-current-tip-line{background-color:#648ffc;border-radius:1px;height:1.5px;position:absolute;top:50%;transform:translateY(-50%);width:102%}.ez-time-line-current-value{color:#fff;font-size:12px;height:58px;line-height:58px;pointer-events:none;position:absolute;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:52px;z-index:1}.ez-time-line-time-cover-fold{align-items:flex-end;color:#fff;display:inline-flex;height:60px;position:absolute;right:-90px;transform:translate(22px);width:90px}.ez-time-line-time-cover-fold-img{border-radius:6px;height:50px;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:90px}.ez-time-line-time-cover-fold-img img{height:50px;-o-object-fit:cover;object-fit:cover;width:90px}.ez-time-line-time-cover-fold-img:before{background-color:rgba(0,0,0,.3);content:"";height:50px;left:0;position:absolute;top:0;width:90px;z-index:1}.ez-time-line-time-cover-fold-len{font-size:12px;font-size:11px;left:2px;position:absolute;top:2px;z-index:2}.ez-time-line-time-cover-fold-time{font-size:12px;font-size:11px;position:absolute;right:2px;top:2px;z-index:2}.ez-time-line-time-cover-fold-pause{bottom:2px;color:#fff;display:inline-flex;font-size:20px;position:absolute;right:0;z-index:2}.ez-time-line-cover-fold-placeholder{display:flex;height:60px;justify-content:center;position:absolute;width:90px}.ez-time-line-cover-fold-placeholder:after,.ez-time-line-cover-fold-placeholder:before{border-radius:6px;content:"";position:absolute}.ez-time-line-cover-fold-placeholder:before{background-color:#ededed;height:30px;top:0;width:70px}.ez-time-line-cover-fold-placeholder:after{background-color:#ccc;height:40px;top:5px;width:80px}.ez-time-line-item-cover-placeholder{align-items:center;background:linear-gradient(180deg,#b7c3cf,#d4d1d1 100%);color:#fff;display:flex;font-size:20px;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.ez-time-line-op{position:absolute;right:10%;top:50%;transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none}.ez-time-line-op-wrapper{display:inline-flex;flex-direction:column}.ez-time-line-icon-plus{margin-bottom:40px}.ez-time-line-icon-minus:not(.ez-time-line-disabled),.ez-time-line-icon-plus:not(.ez-time-line-disabled){align-items:center;border:1px solid #999;border-radius:8px;box-sizing:border-box;cursor:pointer;display:inline-flex;font-size:16px;height:30px;justify-content:center;padding:7px;transition:color .3s ease,border-color .3s ease;width:30px}.ez-time-line-icon-minus:not(.ez-time-line-disabled):active,.ez-time-line-icon-plus:not(.ez-time-line-disabled):active{border-color:#369fff;color:#369fff}.ez-time-line-disabled{border-color:#dedede!important;cursor:not-allowed!important}.ez-time-line-picker.epicker.epicker-mobile .epicker-body{align-items:normal;background-color:#fff;height:550px;max-height:70%}.ez-time-line-picker-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.ez-time-line-picker-header{color:#2c2c2c;display:flex;font-size:18px;font-weight:500;height:65px;letter-spacing:0;line-height:45px;padding:10px 70px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ez-time-line-picker-close,.ez-time-line-picker-header{align-items:center;box-sizing:border-box;justify-content:center}.ez-time-line-picker-close{color:#20262c;cursor:pointer;display:inline-flex;font-size:24px;height:24px;left:15px;position:absolute;top:20px;transition:color .3s ease;width:24px}.ez-time-line-picker-close:active{color:#f05757}.ez-time-line-picker-content{box-sizing:border-box;flex:1 1 auto;overflow-x:hidden;overflow-y:auto}.ez-time-line-picker-item{margin-bottom:20px;padding-left:10px;padding-right:10px}.ez-time-line-picker-item-title{color:#666;font-size:14px;font-weight:400;letter-spacing:0;line-height:20px;margin-bottom:10px;padding-left:1.5%}.ez-time-line-picker-item-list{display:flex;flex-wrap:wrap}.ez-time-line-picker-item-content{background-color:#ddd;border-radius:8px;display:flex;margin:0 1.5% 10px;overflow:hidden;padding-top:18.769%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:30.333%}.ez-time-line-picker-item-content:before{background-color:rgba(0,0,0,.3);content:"";height:100%;left:0;position:absolute;top:0;width:100%}.ez-time-line-picker-item-time{left:5px}.ez-time-line-picker-item-duration,.ez-time-line-picker-item-time{color:#fff;font-size:12px;font-size:11px;font-weight:400;letter-spacing:0;line-height:13px;position:absolute;top:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:2}.ez-time-line-picker-item-duration{right:5px}.ez-time-line-picker-item-cover{height:100%;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:0}.ez-time-line-picker .ez-time-line-item-cover-placeholder{font-size:30px;z-index:1}.ezplayer .ezplayer-progress{align-items:center;background-color:var(--ezplayer-panel-bg-color,rgba(0,0,0,.7));border-radius:var(--ezplayer-border-radius,8px);box-sizing:border-box;cursor:default;display:flex;flex-direction:column;justify-content:center;padding:36px 9px 11px;position:relative;width:38px}.ezplayer .ezplayer-progress,.ezplayer .ezplayer-progress-text{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ezplayer .ezplayer-progress-text{font-size:12px;height:17px;left:0;line-height:17px;position:absolute;text-align:center;top:10px;width:100%}.ezplayer .ezplayer-progress-minus,.ezplayer .ezplayer-progress-plus{display:flex;height:25px;justify-content:center}.ezplayer .ezplayer-progress-minus .ezplayer-icon,.ezplayer .ezplayer-progress-plus .ezplayer-icon{color:#fff;cursor:pointer;display:inline-block;font-size:20px;height:20px;text-align:center;transition:color .3s ease,border-color .3s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:20px}.ezplayer .ezplayer-progress-minus .ezplayer-icon:active,.ezplayer .ezplayer-progress-plus .ezplayer-icon:active{color:var(--ezplayer-primary-color,#407aff)}@media (hover:hover){.ezplayer .ezplayer-progress-minus .ezplayer-icon:hover,.ezplayer .ezplayer-progress-plus .ezplayer-icon:hover{color:var(--ezplayer-primary-color,#407aff)}}.ezplayer .ezplayer-progress-plus{padding-bottom:5px}.ezplayer .ezplayer-progress-minus{padding-top:5px}.ezplayer .ezplayer-progress-slider{background-color:hsla(0,0%,100%,.75);border-radius:2px;cursor:pointer;flex:1 1 auto;position:relative;width:4px}.ezplayer .ezplayer-progress-slider-fill{background-color:var(--ezplayer-primary-color,#407aff);border-radius:4px;bottom:0;height:0;left:0;position:absolute;width:100%}.ezplayer .ezplayer-progress-slider-handle{align-items:center;background-color:var(--ezplayer-primary-color,#407aff);border-radius:50%;cursor:pointer;display:inline-flex;height:12px;justify-content:center;left:50%;position:absolute;top:0;transform:translate(-50%,-50%);width:12px}.ezplayer .ezplayer-progress-slider-handle:hover{box-shadow:0 0 2px var(--ezplayer-primary-color,#407aff)}.ezplayer .ezplayer-progress-slider-handle:before{background-color:#fff;border-radius:50%;content:"";display:inline;height:6px;width:6px}.ezplayer-icon{align-items:center;color:inherit;display:inline-flex;font-size:var(--ezplayer-icon-font-size,24px);font-style:normal;line-height:0;text-align:center;text-rendering:optimizeLegibility;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ezplayer-select-panel{background-color:var(--ezplayer-panel-bg-color,rgba(0,0,0,.7));border-radius:var(--ezplayer-border-radius,8px);color:var(--ezplayer-default-color,#fff);display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;position:relative}.ezplayer-select-btn{width:50px}.ezplayer-select-btn span{display:inline-block;font-size:12px;font-size:calc(var(--ezplayer-font-size, 14px) - 2px);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ezplayer-select-list{align-items:center;display:flex;flex-direction:column;font-size:var(--ezplayer-font-size,14px);list-style:none;margin:0;padding:12px 0!important;width:100%}.ezplayer-select-option{box-sizing:border-box;cursor:pointer;display:inline-flex;height:28px;justify-content:center;line-height:18px;list-style:none;padding:5px 20px!important;transition:color .3s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ezplayer-select-option span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ezplayer-select-option:hover{color:var(--ezplayer-active-color)}.ezplayer-select-cancel,.ezplayer-select-close{display:none}.ezplayer-select-cancel{font-size:var(--ezplayer-font-size,14px)}.ezplayer-mobile .epicker-mobile.ezplayer-select-picker .ezplayer-select-panel{background-color:transparent;max-width:400px;padding-bottom:calc(54px + env(safe-area-inset-bottom));width:90%}.ezplayer-mobile .epicker-mobile.ezplayer-select-picker .ezplayer-select-list{align-items:center;background-color:#fff;border-radius:var(--ezplayer-border-radius,8px);display:flex;flex-direction:column;font-size:var(--ezplayer-font-size,14px);max-height:70vh;max-height:calc(90vh - 108px);overflow-x:hidden;overflow-y:auto;padding:20px 0!important}.ezplayer-mobile .epicker-mobile.ezplayer-select-picker .ezplayer-select-cancel,.ezplayer-mobile .epicker-mobile.ezplayer-select-picker .ezplayer-select-option{align-items:center;box-sizing:border-box;color:#2c2c2c;display:inline-flex;height:36px;justify-content:center;line-height:26px;padding:5px 20px!important}.ezplayer-mobile .epicker-mobile.ezplayer-select-picker .ezplayer-select-option{--webkit-tap-highlight-color:transparent!important}.ezplayer-mobile .epicker-mobile.ezplayer-select-picker .ezplayer-select-option:hover{color:#2c2c2c}.ezplayer-mobile .epicker-mobile.ezplayer-select-picker .ezplayer-select-option:active{background-color:#f8f8f8}.ezplayer-mobile .epicker-mobile.ezplayer-select-picker .ezplayer-select-cancel{background-color:#fff;border-radius:var(--ezplayer-border-radius,8px);display:flex;height:54px;margin-top:8px}.ezplayer-mobile .epicker-mobile.ezplayer-select-picker .ezplayer-select-cancel:active{color:var(--ezplayer-active-color)}.ezplayer-mobile.ezplayer-fullscreen .epicker-mobile.ezplayer-select-picker .epicker-body{bottom:0;left:unset;right:0;top:0;width:240px}.ezplayer-mobile.ezplayer-fullscreen .epicker-mobile.ezplayer-select-picker .ezplayer-select-panel{align-items:center;background-color:var(--ezplayer-panel-bg-color,rgba(0,0,0,.7));border-bottom-right-radius:0;border-top-right-radius:0;height:100%;justify-content:center;padding-bottom:env(safe-area-inset-bottom);width:100%}.ezplayer-mobile.ezplayer-fullscreen .epicker-mobile.ezplayer-select-picker .ezplayer-select-list{background-color:transparent;border-radius:0;color:#fff;height:auto;margin:0;max-height:100%;width:100%}.ezplayer-mobile.ezplayer-fullscreen .epicker-mobile.ezplayer-select-picker .ezplayer-select-option,.ezplayer-mobile.ezplayer-fullscreen .epicker-mobile.ezplayer-select-picker .ezplayer-select-option:hover{color:#fff}.ezplayer-mobile.ezplayer-fullscreen .epicker-mobile.ezplayer-select-picker .ezplayer-select-option:active{background-color:transparent;color:var(--ezplayer-active-color)}.ezplayer-mobile.ezplayer-fullscreen .epicker-mobile.ezplayer-select-picker .ezplayer-select-cancel{display:none}.ezplayer-mobile.ezplayer-fullscreen .epicker-mobile.ezplayer-select-picker .ezplayer-select-close{display:inline-flex;left:10px;position:absolute;top:10px}.ezplayer-mobile.ezplayer-fullscreen .epicker-mobile.ezplayer-select-picker .ezplayer-select-close:active{color:var(--ezplayer-active-color)}.ezplayer-control-fullscreen .ezplayer-icon-exit-fullscreen,.ezplayer-control-global-fullscreen .ezplayer-icon-exit-global-fullscreen{display:none}.ezplayer-fullscreen .ezplayer-icon-exit-fullscreen{display:inline-flex}.ezplayer-fullscreen .ezplayer-icon-fullscreen{display:none}.ezplayer-global-fullscreen .ezplayer-icon-exit-global-fullscreen{display:inline-flex}.ezplayer-global-fullscreen .ezplayer-icon-global-fullscreen{display:none}.ezplayer-loading{background-color:rgba(0,0,0,.5);bottom:0;color:#fff;display:none;font-size:14px;height:100%;left:0;position:absolute;right:0;top:0;transition:transform .3s cubic-bezier(.78,.14,.15,.86);vertical-align:middle;width:100%;z-index:4}.ezplayer-loading-dot{display:inline-block;font-size:25px;height:25px;position:relative;width:25px}.ezplayer-loading-dot-item{background-color:#fff;border-radius:2px;display:block;height:10px;position:absolute;transform-origin:50% 50%;width:10px}.ezplayer-loading-dot-item:first-child{animation:animationShape1 2s linear 0s infinite normal;left:0;opacity:1;top:0}.ezplayer-loading-dot-item:nth-child(2){animation:animationShape2 2s linear 0s infinite normal;left:15px;opacity:.8;top:0}.ezplayer-loading-dot-item:nth-child(3){animation:animationShape3 2s linear 0s infinite normal;left:0;opacity:.5;top:15px}.ezplayer-loading-dot-item:nth-child(4){animation:animationShape4 2s linear 0s infinite normal;left:15px;opacity:.3;top:15px}.ezplayer-loading-dot-load{animation:rotation 1s infinite}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ezplayer-load-blur{background:#fff;opacity:.5}}@keyframes ezdSpinMove{to{opacity:1}}@keyframes ezdRotate{to{transform:rotate(405deg)}}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes animationShape1{0%{transform:translate(0)}25%{transform:translateY(15px)}50%{transform:translate(15px,15px)}75%{transform:translate(15px)}to{transform:translate(translate)}}@keyframes animationShape2{0%{transform:translate(0)}25%{transform:translate(-15px)}50%{transform:translate(-15px,15px)}75%{transform:translateY(15px)}}@keyframes animationShape3{0%{transform:translate(0)}25%{transform:translate(15px)}50%{transform:translate(15px,-15px)}75%{transform:translateY(-15px)}}@keyframes animationShape4{0%{transform:translate(0)}25%{transform:translateY(-15px)}50%{transform:translate(-15px,-15px)}75%{transform:translate(-15px)}}.ezplayer-loading-text{margin-top:20px}.ezplayer-message{background-color:rgba(0,0,0,.4);bottom:0;color:#fff;display:none;font-size:16px;height:100%;left:0;overflow:hidden;position:absolute;right:0;top:0;width:100%;z-index:5}.ezplayer-message-content{align-items:center;display:flex;flex-direction:column;justify-content:center}.ezplayer-message-msg{display:-webkit-box;margin-top:15px;max-width:500px;overflow:hidden;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:0 20px}.ezplayer-message-error{color:#ff4d4f}.ezplayer-toast{background-color:rgba(0,0,0,.8);border-radius:var(--ezplayer-border-radius,8px);box-shadow:0 9px 28px 8px rgba(0,0,0,.05),0 3px 16px 0 rgba(0,0,0,.03),0 3px 7px -4px rgba(0,0,0,.05);color:#fff;display:flex;font-size:14px;left:50%;line-height:22px;max-width:450px;overflow:hidden;padding:9px 16px;position:absolute;top:50px;transform:translateX(-50%);z-index:6}.ezplayer-toast-content{padding-left:24px;position:relative}.ezplayer-toast .ezplayer-icon{font-size:16px;left:0;position:absolute;top:3px}.ezplayer-toast .ezplayer-icon-info-circle{color:var(--ezplayer-default-color,#fff)}.ezplayer-toast .ezplayer-icon-warn-circle{color:#faad14}.ezplayer-toast .ezplayer-icon-close-circle{color:#ff4d4f}.ezplayer-mobile .ezplayer-toast{font-size:12px;line-height:20px}.ezplayer-mobile .ezplayer-toast-content{padding-left:20px}.ezplayer-mobile .ezplayer-toast .ezplayer-icon{font-size:14px}.ezplayer-poster{bottom:0;display:none;height:100%;left:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:2}.ezplayer-poster img{border:0;font-size:0;height:100%;outline:none;pointer-events:none;width:100%}.ezplayer-icon-volume{position:relative}.ezplayer-icon-volume svg .ezplayer-icon-volume-high,.ezplayer-icon-volume svg .ezplayer-icon-volume-low,.ezplayer-icon-volume svg .ezplayer-icon-volume-muted{display:none}.ezplayer-icon-volume.ezplayer-icon-volume-high svg .ezplayer-icon-volume-high,.ezplayer-icon-volume.ezplayer-icon-volume-high svg .ezplayer-icon-volume-low,.ezplayer-icon-volume.ezplayer-icon-volume-low svg .ezplayer-icon-volume-low,.ezplayer-icon-volume.ezplayer-icon-volume-muted svg .ezplayer-icon-volume-muted,.ezplayer-icon-volume.ezplayer-icon-volume-zero svg .ezplayer-icon-volume-muted{display:inline}.ezplayer-volume-progress{height:126px}.ezplayer-control-rec{box-sizing:border-box;display:inline-flex;flex-direction:row}.ezplayer-control-rec .ezplayer-icon-cloud-rec,.ezplayer-control-rec .ezplayer-icon-cloud-record,.ezplayer-control-rec .ezplayer-icon-sdk{color:#d4d7dd;cursor:pointer;margin-left:5px}.ezplayer-mobile-extend .ezplayer-control-rec{background-color:#f4f6fc;border:1px solid #ededed;border-radius:18px;height:30px}.ezplayer-mobile-extend .ezplayer-icon-cloud-rec,.ezplayer-mobile-extend .ezplayer-icon-cloud-record,.ezplayer-mobile-extend .ezplayer-icon-sdk{cursor:pointer;font-size:20px;margin-left:1px;padding:2px 7px}.ezplayer-mobile-extend .ezplayer-icon-cloud-rec.ezplayer-active,.ezplayer-mobile-extend .ezplayer-icon-cloud-record.ezplayer-active,.ezplayer-mobile-extend .ezplayer-icon-sdk.ezplayer-active{background-color:#fff;border-radius:12px;box-shadow:0 1px 4px 0 hsla(0,0%,68%,.2)}.ezplayer-mobile .ezplayer-icon-cloud-rec,.ezplayer-mobile .ezplayer-icon-cloud-record,.ezplayer-mobile .ezplayer-icon-sdk{margin-left:10px}.ezplayer-more-panel{align-items:center;background-color:var(--ezplayer-panel-bg-color,rgba(0,0,0,.7));border-radius:var(--ezplayer-border-radius,8px);cursor:default;display:flex;flex-direction:row;padding:8px 10px}.ezplayer-more .ezplayer-control{margin-left:var(--ezplayer-control-space,16px)}.ezplayer-more .ezplayer-control:first-child{margin-left:0}.ezplayer-medium-height .ezplayer-zoom-panel,.ezplayer-mini-height .ezplayer-zoom-panel{height:100%;padding-bottom:var(--ezplayer-footer-height,80px);padding-top:0}.ezplayer-mini-height .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-footer-height, 80px) - 20px)}.ezplayer-mini-height .ezplayer-progress-slider{display:none!important}.ezplayer-mini-height .ezplayer-progress-plus{padding-bottom:0}.ezplayer-mini-height .ezplayer-progress-minus{padding-top:0}.ezplayer-zoom-panel{bottom:0;display:inline-flex;flex-direction:column;height:100%;justify-content:flex-end;left:20px;padding-bottom:calc(var(--ezplayer-footer-height, 80px) + 20px);padding-top:10%;pointer-events:none;position:absolute;top:0;z-index:23}.ezplayer-zoom-panel .ezplayer-progress{height:200px;max-height:95%;pointer-events:auto}.ezplayer-mobile .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-mobile-footer-height, 54px) + 10px);padding-top:5%}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-zoom-panel{padding-bottom:var(--ezplayer-mobile-fullscreen-footer-height,110px);padding-top:var(--ezplayer-mobile-fullscreen-header-height,75px)}.ezplayer-icon-talk-growth-dot1,.ezplayer-icon-talk-growth-dot2,.ezplayer-icon-talk-growth-dot3,.ezplayer-icon-talk-growth-dot4{color:var(--ezplayer-default-color,#fff)}.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot1,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot2,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot2,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-low .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-normal .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-normal .ezplayer-icon-talk-growth-dot4{color:var(--ezplayer-active-color,#407aff)}.ezplayer-record-timer{align-items:center;background-color:#ff4c5c;border-radius:24px;color:#fff;display:inline-flex;flex-direction:row;left:50%;padding:2px 6px;position:absolute;top:60px;transform:translateX(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:3}.ezplayer-record-timer .ezplayer-icon-record-circle{font-size:14px}.ezplayer-record-timer-time{font-weight:400;letter-spacing:1px;line-height:20px;margin-left:2px}.ezplayer-select-definition .ezplayer-select-panel{width:100px}.ezplayer-control-definition .ezplayer-select-btn{width:75px}.ezplayer-control-device{width:100%}.ezplayer-control-device span{display:inline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ezplayer-pause{bottom:0;color:#fff!important;cursor:pointer!important;height:100%;left:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:3}.ezplayer-pause-circle{align-items:center;background-color:rgba(0,0,0,.4);border-radius:50%;cursor:pointer;display:flex;font-size:20px;height:50px;justify-content:center;transition:transform .3s ease,opacity 1s ease;width:50px}.ezplayer-pause-circle:hover{opacity:.85}.ezplayer-pause-circle .ezplayer-icon-pause,.ezplayer-pause-circle .ezplayer-icon-play{font-size:32px}.ezplayer-pause-transform .ezplayer-pause-circle{opacity:0;transform:scale(1.1)}.ez-ptz-container{background:hsla(0,0%,100%,.8);border:1px solid hsla(0,0%,100%,.8);border-radius:100%;box-shadow:0 0 33px 4px rgba(0,0,0,.15);cursor:pointer;font-size:14px;height:80px;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:80px}.ez-ptz-icon{display:inline-block;height:0;position:absolute;width:0}.ez-ptz-icon.ez-ptz-icon-icon-active{border-bottom-color:#407aff}.ez-ptz-direction-top{border-bottom:8px solid #999;top:2px}.ez-ptz-direction-bottom,.ez-ptz-direction-top{border-left:4px solid transparent;border-right:4px solid transparent;left:calc(50% - 4px)}.ez-ptz-direction-bottom{border-top:8px solid #999;bottom:2px}.ez-ptz-direction-right{border-left:8px solid #999;right:2px}.ez-ptz-direction-left,.ez-ptz-direction-right{border-bottom:4px solid transparent;border-top:4px solid transparent;top:calc(50% - 4px)}.ez-ptz-direction-left{border-right:8px solid #999;left:2px}.ez-ptz-direction-top-left{top:calc(25% - 4px)}.ez-ptz-direction-left-bottom,.ez-ptz-direction-top-left{background:#999;border-radius:50%;height:4px;left:16px;width:4px}.ez-ptz-direction-bottom-right,.ez-ptz-direction-left-bottom{bottom:calc(25% - 4px)}.ez-ptz-direction-bottom-right,.ez-ptz-direction-right-top{background:#999;border-radius:50%;height:4px;right:16px;width:4px}.ez-ptz-direction-right-top{top:calc(25% - 4px)}.ez-ptz-direction-center{background:#407aff;border-radius:100%;height:23px;left:calc(50% - 12.4px);position:absolute;top:calc(50% - 12.4px);width:23px}.ez-ptz-container-wrap{align-items:center;box-sizing:content-box!important;display:flex;flex-direction:column;justify-content:center;width:100%}.ez-ptz-speed-container{width:100%}.ez-ptz-speed-progress-line{background:#fff;display:flex;height:1px;justify-content:space-between;margin:16px 0 8px}.ez-ptz-speed-progress-line-dot{background:#fff;border:2px solid #fff;border-radius:50%;cursor:pointer;height:9px;margin:-3px 0;width:9px}.ez-ptz-speed-progress-line-dot.ez-ptz-speed-active{border-color:#407aff}.ez-ptz-speed-progress-points{display:flex;justify-content:space-between}.ez-ptz-speed-progress-points-fast,.ez-ptz-speed-progress-points-mid,.ez-ptz-speed-progress-points-slow{color:#fff;cursor:pointer}.ez-ptz-btn-container{display:flex;justify-content:space-between;margin-top:14px;width:100%}.ez-ptz-btn-focal,.ez-ptz-btn-zoom{border:1px solid hsla(0,0%,100%,.5);border-radius:10px;box-sizing:content-box;display:flex;height:20px;padding-bottom:0}.ez-ptz-btn-focal-add,.ez-ptz-btn-focal-sub,.ez-ptz-btn-zoom-add,.ez-ptz-btn-zoom-sub{cursor:pointer;height:20px;text-align:center}.ez-ptz-btn-focal-add,.ez-ptz-btn-zoom-add{border-right:1px solid hsla(0,0%,100%,.5)}.ez-mobile-ptz{box-sizing:border-box}.ez-mobile-ptz-content{align-items:center;display:flex;justify-content:center}.ez-mobile-ptz-wrap{background-image:linear-gradient(180deg,#f6f8ff,hsla(0,0%,93%,.42) 50%);border-radius:100%;box-sizing:border-box;display:inline-block;overflow:hidden;padding:24px}.ez-mobile-ptz-container{background:hsla(0,0%,100%,.8);border:1px solid hsla(0,0%,100%,.8);border-radius:100%;box-sizing:border-box;cursor:pointer;height:260px;margin:auto;overflow:hidden;position:relative;width:260px}.ez-mobile-ptz-center{background:#fff;border:2px solid #eee;border-radius:100%;cursor:pointer;height:52px;left:calc(50% - 26px);position:absolute;top:calc(50% - 26px);width:52px}.ez-mobile-ptz-top{border-bottom:6px solid #aaa;border-left:6px solid transparent;border-right:6px solid transparent;cursor:pointer;display:inline-block;height:0;left:calc(50% - 6px);position:absolute;top:10px;width:0}.ez-mobile-ptz-top.ez-mobile-ptz-active{border-bottom-color:#1890ff}.ez-mobile-ptz-left{border-bottom:6px solid transparent;border-right:6px solid #aaa;border-top:6px solid transparent;cursor:pointer;display:inline-block;height:0;left:10px;position:absolute;top:calc(50% - 6px);width:0}.ez-mobile-ptz-left.ez-mobile-ptz-active{border-right-color:#1890ff}.ez-mobile-ptz-bottom{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #aaa;bottom:10px;display:inline-block;height:0;left:calc(50% - 6px);position:absolute;width:0}.ez-mobile-ptz-bottom.ez-mobile-ptz-active{border-top-color:#1890ff}.ez-mobile-ptz-right{border-bottom:6px solid transparent;border-left:6px solid #aaa;border-top:6px solid transparent;display:inline-block;height:0;position:absolute;right:10px;top:calc(50% - 6px);width:0}.ez-mobile-ptz-right.ez-mobile-ptz-active{border-left-color:#1890ff}.ezplayer-medium-height .ezplayer-ptz-panel,.ezplayer-mini-height .ezplayer-ptz-panel{padding-bottom:0;padding-top:0;right:0;z-index:22}.ezplayer-medium-height .ezplayer-ptz-panel .ezplayer-ptz-turntable,.ezplayer-mini-height .ezplayer-ptz-panel .ezplayer-ptz-turntable{border-bottom-right-radius:0;border-top-right-radius:0;max-height:none}.ezplayer-mini-height .ez-ptz-btn-container,.ezplayer-mini-height .ez-ptz-speed-container{display:none!important}.ezplayer-ptz-panel{box-sizing:border-box;flex-direction:column;max-width:70%;padding-bottom:var(--ezplayer-footer-height,80px);padding-top:var(--ezplayer-header-height,46px);pointer-events:none;position:absolute;right:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:150px;z-index:3}.ezplayer-ptz-panel,.ezplayer-ptz-panel .ezplayer-ptz-turntable{align-items:center;display:flex;height:100%;justify-content:center}.ezplayer-ptz-panel .ezplayer-ptz-turntable{background-color:var(--ezplayer-panel-bg-color,rgba(0,0,0,.7));border-radius:var(--ezplayer-border-radius,8px);flex:1 1 auto;max-height:283px;padding:20px;pointer-events:auto;width:100%}.ezplayer-mobile .ezplayer-control-ptz,.ezplayer-mobile .ezplayer-ptz-panel{display:none}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-control-ptz,.ezplayer-mobile.ezplayer-fullscreen .ezplayer-ptz-panel{display:inline-flex}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-ptz-panel{padding-bottom:calc(var(--ezplayer-mobile-fullscreen-footer-height, 110px) - 20px);padding-top:var(--ezplayer-mobile-fullscreen-header-height,75px)}.ezplayer-mobile.ezplayer-fullscreen.ezplayer-medium-height .ezplayer-ptz-panel,.ezplayer-mobile.ezplayer-fullscreen.ezplayer-mini-height .ezplayer-ptz-panel{padding-bottom:0;padding-top:0}.epicker-body-noscroll{overflow:hidden;touch-action:none}.epicker{box-shadow:0 9px 28px 8px #0000000d;display:none;margin:0;opacity:0;padding:0;position:absolute;transition:opacity .3s ease;vertical-align:top;z-index:1000}.epicker,.epicker-body{box-sizing:border-box;flex-direction:column}.epicker-body{display:flex}.epicker.epicker-mobile .epicker-mask{background:#0000004d;bottom:0;box-sizing:border-box;height:100%;left:0;position:fixed;right:0;top:0;width:100%;z-index:9998}.epicker.epicker-mobile .epicker-body{align-items:center;bottom:0;left:0;position:fixed;right:0;z-index:9999}.epicker-mobile .edate-mobile{--edate-hover-bg-color:transparent}.edate-container{background-color:#fff;box-sizing:border-box;display:flex;font-size:14px;max-height:80%;min-width:246px;text-align:center;width:100%}.edate-container *{border:none;box-sizing:border-box;margin:0;outline:none;padding:0;-webkit-tap-highlight-color:transparent}.edate-container li,.edate-container ul{border:0;box-sizing:border-box;list-style:none;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.edate-container table,.edate-container tbody,.edate-container td,.edate-container th,.edate-container thead,.edate-container tr{border:0;border-color:transparent;border-spacing:0;box-sizing:border-box;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.edate-container table:active,.edate-container table:focus,.edate-container table:focus-visible,.edate-container tbody:active,.edate-container tbody:focus,.edate-container tbody:focus-visible,.edate-container td:active,.edate-container td:focus,.edate-container td:focus-visible,.edate-container th:active,.edate-container th:focus,.edate-container th:focus-visible,.edate-container thead:active,.edate-container thead:focus,.edate-container thead:focus-visible,.edate-container tr:active,.edate-container tr:focus,.edate-container tr:focus-visible{background-color:transparent}.edate-container table{height:100%}.edate-panel{display:flex;flex-direction:column;width:100%}.edate-header{align-items:center;border-bottom:1px solid var(--edate-border-color,rgba(5,5,5,.06));box-sizing:border-box;color:var(--edate-default-color,rgba(0,0,0,.88));display:flex;font-weight:600;height:var(--edate-header-height,34px);justify-content:space-between;line-height:var(--edate-header-height,34px);padding:2px 15px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.edate-header-view{text-align:center;width:40%}.edate-header-title-hover{cursor:pointer;transition:color .2s ease-in-out}.edate-header-title-hover:hover{color:var(--edate-primary-color,#1677ff)}.edate-next-btns,.edate-prev-btns{display:inline-flex;height:var(--edate-header-height,34px);line-height:var(--edate-header-height,34px)}.edate-next-btn,.edate-prev-btn,.edate-super-next-btn,.edate-super-prev-btn{align-items:center;background:0 0;border:0;box-sizing:border-box;color:var(--edate-arrow-color,rgba(0,0,0,.45));cursor:pointer;display:inline-flex;font-size:var(--edate-font-size,14px);height:100%;justify-content:center;line-height:var(--edate-header-height,34px);min-width:1.6em;padding:0;transition:color .2s}.edate-next-btn:not(.edate-disabled):active,.edate-prev-btn:not(.edate-disabled):active,.edate-super-next-btn:not(.edate-disabled):active,.edate-super-prev-btn:not(.edate-disabled):active{color:var(--edate-arrow-hover-color,rgba(0,0,0,.88))}.edate-next-icon,.edate-prev-icon,.edate-super-next-icon,.edate-super-prev-icon{display:inline-flex;height:6px;position:relative;transform:rotate(-45deg);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:6px}.edate-next-icon:before,.edate-prev-icon:before,.edate-super-next-icon:before,.edate-super-prev-icon:before{inset-inline-start:0;top:0}.edate-next-icon:before,.edate-prev-icon:before,.edate-super-next-icon:after,.edate-super-next-icon:before,.edate-super-prev-icon:after,.edate-super-prev-icon:before{border:0 solid;border-block-end-width:0;border-block-start-width:1.5px;border-inline-end-width:0;border-inline-start-width:1.5px;content:"";display:inline-block;height:6px;position:absolute;width:6px}.edate-super-next-icon:after,.edate-super-prev-icon:after{left:-4px;top:-4px}.edate-next-icon,.edate-super-next-icon{transform:rotate(135deg)}.edate-footer{align-items:center;border-bottom:1px solid var(--edate-border-color,rgba(5,5,5,.06));border-left:1px solid var(--edate-border-color,rgba(5,5,5,.06));border-right:1px solid var(--edate-border-color,rgba(5,5,5,.06));box-sizing:border-box;display:flex;height:var(--edate-footer-height,34px);justify-content:space-between;padding:4px 5px}.edate-btn-text,.edate-now,.edate-today{color:var(--edate-primary-color,#1677ff);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.edate-btn-text:not(.edate-disabled):active,.edate-now:not(.edate-disabled):active,.edate-today:not(.edate-disabled):active{opacity:.75}.edate-close-btn{align-items:center;cursor:pointer;font-size:24px}.edate-close-btn,.edate-close-btn .edate-close-icon{display:inline-flex}.edate-close-btn:active{color:var(--edate-close-color,#f05757)}.edate-btn-text{padding:2px 4px}.edate-btn-text.edate-disabled{color:var(--edate-disabled-color,rgba(0,0,0,.25))!important}.edate-btn{background-image:none;background:transparent;border:1px solid #d9d9d9;border-radius:2px;color:var(--edate-primary-color,#1677ff);cursor:pointer;display:inline-block;font-weight:400;height:20px;line-height:19px;min-width:32px;outline:none;padding:0 4px;position:relative;text-align:center;touch-action:manipulation;transition:all .2s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.edate-btn.edate-disabled{background-color:var(--edate-disabled-bg-color,rgba(0,0,0,.04))!important;border-color:var(--edate-disabled-color,rgba(0,0,0,.25))!important;color:var(--edate-disabled-color,rgba(0,0,0,.25))!important;cursor:not-allowed!important}.edate-btn-primary{background-color:var(--edate-primary-color,#1677ff);border-color:var(--edate-primary-color,#1677ff);color:#fff}.edate-btn-primary:not(.edate-disabled):active{opacity:.75}.edate-disabled{cursor:not-allowed!important}.edate-disabled:before{background-color:var(--edate-disabled-bg-color,rgba(0,0,0,.04))!important}.edate-disabled:before,.edate-disabled>*{color:var(--edate-disabled-color,rgba(0,0,0,.25))!important;cursor:not-allowed!important}.edate-picker-date .emonth-container,.edate-picker-date .eyear-container,.edate-picker-month .ecalendar-container,.edate-picker-month .eyear-container,.edate-picker-year .ecalendar-container,.edate-picker-year .emonth-container{display:none}.epicker-mobile.edate-picker-container{border-radius:10px;overflow:hidden}.epicker-mobile.edate-picker-container .epicker-body{background-color:#fff;border-top-left-radius:10px;border-top-right-radius:10px;overflow:hidden;padding-bottom:15px}.epicker-mobile.edate-picker-container .epicker-body .edate-panel{border:none}.epicker-mobile.edate-picker-container .epicker-body .edate-header{border-bottom:none;height:44px}.ecalendar{box-sizing:border-box;cursor:unset;line-height:normal;margin:0;padding-left:0;text-align:left}.ecalendar-panel{border:1px solid var(--edate-border-color,rgba(5,5,5,.06));box-sizing:border-box;display:flex;flex-direction:column;width:100%}.ecalendar-body{box-sizing:border-box;color:var(--edate-default-color,rgba(0,0,0,.88));flex:1 1 auto;padding:6px 10px}.ecalendar-content{box-sizing:border-box;width:100%}.ecalendar-content th{height:30px}.ecalendar-content tr td{padding:3px 0}.ecalendar-content tr td:before{content:"";display:block;height:var(--edate-calendar-cell-height,24px);position:absolute;width:100%}.ecalendar-cell{box-sizing:border-box;color:rgba(0,0,0,.25);cursor:pointer;padding:0;position:relative;text-align:center}.ecalendar-cell:not(.edate-disabled):hover .ecalendar-cell-inner{background-color:var(--edate-hover-bg-color,rgba(0,0,0,.04))}.ecalendar-cell-in-view{color:var(--edate-default-color,rgba(0,0,0,.88))}.ecalendar-cell-in-view.ecalendar-cell-selected:not(.edate-disabled) .ecalendar-cell-inner{background-color:var(--edate-primary-color,#1677ff)!important;color:#fff}.ecalendar-cell-in-view.ecalendar-cell-selected:not(.edate-disabled) .ecalendar-badge{background-color:#fff}.ecalendar-cell-in-view.ecalendar-cell-selected.edate-disabled .ecalendar-cell-inner{background-color:var(--edate-disabled-bg-color,rgba(0,0,0,.25))}.ecalendar-cell-in-view.ecalendar-cell-today .ecalendar-cell-inner{border-color:var(--edate-primary-color,#1677ff)}.ecalendar-cell-in-view.ecalendar-cell-today.edate-disabled .ecalendar-cell-inner{border-color:var(--edate-disabled-bg-color,rgba(0,0,0,.25))}.ecalendar-cell-inner{align-items:center;border:1px solid transparent;border-radius:var(--edate-calendar-border-radius,2px);display:inline-flex;height:var(--edate-calendar-cell-height,26px);inset-inline-end:0;inset-inline-start:0;justify-content:center;line-height:var(--edate-calendar-cell-height,26px);padding:0;position:relative;transition:background .2s,border .2s;width:var(--edate-calendar-cell-width,26px);z-index:2}.ecalendar-cell .ecalendar-badge{background-color:var(--edate-primary-color,#1677ff);border-radius:50%;height:3px;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(8px);width:3px;z-index:3}.ecalendar-cell.edate-disabled .ecalendar-badge{background-color:var(--edate-disabled-color,rgba(0,0,0,.25))}.epicker-mobile .ecalendar-content tr td{padding:8px 0}.emonth{cursor:unset;line-height:normal}.emonth-panel{background-color:#fff;border:1px solid var(--edate-border-color,rgba(5,5,5,.06));display:flex;flex-direction:column}.emonth-panel .emonth-body{padding:1px 8px}.emonth-panel table{width:100%}.emonth-panel .emonth-cell{height:52px}.emonth-panel .emonth-cell-inner{padding:0 8px}.emonth-body{color:var(--edate-default-color,rgba(0,0,0,.88));padding:0 10px}.emonth-content{width:100%}.emonth-cell{box-sizing:border-box;color:rgba(0,0,0,.25);cursor:pointer;padding:0;position:relative;text-align:center}.emonth-cell:not(.edate-disabled):hover .emonth-cell-inner{background-color:var(--edate-hover-bg-color,rgba(0,0,0,.04))}.emonth-cell:before{content:"";height:22px;inset-inline-end:0;inset-inline-start:0;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;z-index:1}.emonth-cell-in-view{color:var(--edate-default-color,rgba(0,0,0,.88))}.emonth-cell-in-view.emonth-cell-selected:not(.edate-disabled) .emonth-cell-inner{background-color:var(--edate-primary-color,#1677ff)!important;color:#fff}.emonth-cell-in-view.emonth-cell-selected.edate-disabled .emonth-cell-inner{background-color:var(--edate-disabled-bg-color,rgba(0,0,0,.04))!important}.emonth-cell-inner{border-radius:var(--edate-border-radius,2px);display:inline-block;height:22px;line-height:22px;min-width:22px;position:relative;transition:background .2s,border .2s;z-index:2}:root{--edate-header-height:34px;--edate-footer-height:var(--edate-header-height,34px);--edate-font-size:14px;--edate-default-color:rgba(0,0,0,.88);--edate-primary-color:#648ffc;--edate-hover-color:var(--edate-default-color,rgba(0,0,0,.88));--edate-hover-bg-color:rgba(0,0,0,.04);--edate-active-color:var(--edate-default-color,rgba(0,0,0,.88));--edate-active-bg-color:#e6f4ff;--edate-disabled-color:rgba(0,0,0,.25);--edate-disabled-bg-color:rgba(0,0,0,.04);--edate-disabled-active-bg-color:rgba(0,0,0,.25);--edate-border-color:rgba(5,5,5,.06);--edate-border-radius:2px;--edate-close-color:#f05757;--edate-calendar-border-radius:50%;--edate-calendar-cell-width:26px;--edate-calendar-cell-height:26px;--edate-badge-color:var(--edate-primary-color,#648ffc);--edate-arrow-color:rgba(0,0,0,.45);--edate-arrow-hover-color:var(--edate-default-color,rgba(0,0,0,.88))}.eyear{cursor:unset;line-height:normal}.eyear-layout{align-items:stretch;display:flex;flex-wrap:nowrap}.eyear-panel{background-color:#fff;border:1px solid var(--edate-border-color,rgba(5,5,5,.06));display:flex;flex-direction:column}.eyear-panel .eyear-body{padding:1px 8px}.eyear-panel table{width:100%}.eyear-panel .eyear-cell{height:52px}.eyear-panel .eyear-cell-inner{padding:0 8px}.eyear-body{padding:0 10px}.eyear-cell{box-sizing:border-box;color:rgba(0,0,0,.25);cursor:pointer;padding:0;position:relative;text-align:center}.eyear-cell:not(.edate-disabled):hover .eyear-cell-inner{background-color:var(--edate-hover-bg-color,rgba(0,0,0,.04))}.eyear-cell:before{content:"";height:22px;inset-inline-end:0;inset-inline-start:0;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;z-index:1}.eyear-cell-in-view{color:var(--edate-default-color,rgba(0,0,0,.88))}.eyear-cell-in-view.eyear-cell-selected:not(.edate-disabled) .eyear-cell-inner{background-color:var(--edate-primary-color,#1677ff);color:#fff}.eyear-cell-in-view.eyear-cell-selected.edate-disabled .eyear-cell-inner{background-color:var(--edate-disabled-bg-color,rgba(0,0,0,.04))}.eyear-cell-inner{border-radius:var(--data-picker-border-radius,2px);display:inline-block;height:22px;line-height:22px;min-width:22px;position:relative;transition:background .2s,border .2s;z-index:2}.ezplayer-mobile-extend .ezplayer-mobile-date-filter{align-items:center;background:#f4f6fc;border:1px solid #ededed;border-radius:8px;box-sizing:border-box;color:#2c2c2c;display:inline-flex;font-family:PingFang SC;font-size:16px;font-weight:500;height:36px;justify-content:center;letter-spacing:0;line-height:20px;padding:6px 10px}.ezplayer-mobile-extend .ezplayer-mobile-date-filter-value{margin-right:5px}.ezplayer-mobile-extend .ezplayer-icon-filter{font-size:20px}.ezplayer-control-time-line{overflow:hidden;padding-right:40px;position:relative}.ezplayer-control-time-line .ezplayer-time-line-scale-add,.ezplayer-control-time-line .ezplayer-time-line-scale-sub{align-items:center;background-color:#333;border-radius:2px;color:var(--ezplayer-default-color,#fff);cursor:pointer;display:inline-flex;height:14px;justify-content:center;overflow:hidden;position:absolute;right:0;transition:color .3s ease;width:14px}.ezplayer-control-time-line .ezplayer-icon-add,.ezplayer-control-time-line .ezplayer-icon-reduce{font-size:12px;font-weight:500}.ezplayer-control-time-line .ezplayer-icon-add:hover,.ezplayer-control-time-line .ezplayer-icon-reduce:hover{color:var(--ezplayer-primary-color,#407aff)}.ezplayer-control-time-line .ezplayer-time-line-scale-add{top:2px}.ezplayer-control-time-line .ezplayer-time-line-scale-sub{bottom:2px}.ezplayer-mobile-extend .ezplayer-control-time-line{display:block;height:300px;margin-top:10px;padding-right:0}');var l,C,I,c={},h={exports:{}};function B(){return l||(l=1,function(A){var e=Object.prototype.hasOwnProperty,t="~";function i(){}function a(A,e,t){this.fn=A,this.context=e,this.once=t||!1}function r(A,e,i,r,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new a(i,r||A,n),s=t?t+e:e;return A._events[s]?A._events[s].fn?A._events[s]=[A._events[s],o]:A._events[s].push(o):(A._events[s]=o,A._eventsCount++),A}function n(A,e){0==--A._eventsCount?A._events=new i:delete A._events[e]}function o(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(t=!1)),o.prototype.eventNames=function(){var A,i,a=[];if(0===this._eventsCount)return a;for(i in A=this._events)e.call(A,i)&&a.push(t?i.slice(1):i);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(A)):a},o.prototype.listeners=function(A){var e=t?t+A:A,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var a=0,r=i.length,n=new Array(r);a<r;a++)n[a]=i[a].fn;return n},o.prototype.listenerCount=function(A){var e=t?t+A:A,i=this._events[e];return i?i.fn?1:i.length:0},o.prototype.emit=function(A,e,i,a,r,n){var o=t?t+A:A;if(!this._events[o])return!1;var s,g,l=this._events[o],C=arguments.length;if(l.fn){switch(l.once&&this.removeListener(A,l.fn,void 0,!0),C){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,i),!0;case 4:return l.fn.call(l.context,e,i,a),!0;case 5:return l.fn.call(l.context,e,i,a,r),!0;case 6:return l.fn.call(l.context,e,i,a,r,n),!0}for(g=1,s=new Array(C-1);g<C;g++)s[g-1]=arguments[g];l.fn.apply(l.context,s)}else{var I,c=l.length;for(g=0;g<c;g++)switch(l[g].once&&this.removeListener(A,l[g].fn,void 0,!0),C){case 1:l[g].fn.call(l[g].context);break;case 2:l[g].fn.call(l[g].context,e);break;case 3:l[g].fn.call(l[g].context,e,i);break;case 4:l[g].fn.call(l[g].context,e,i,a);break;default:if(!s)for(I=1,s=new Array(C-1);I<C;I++)s[I-1]=arguments[I];l[g].fn.apply(l[g].context,s)}}return!0},o.prototype.on=function(A,e,t){return r(this,A,e,t,!1)},o.prototype.once=function(A,e,t){return r(this,A,e,t,!0)},o.prototype.removeListener=function(A,e,i,a){var r=t?t+A:A;if(!this._events[r])return this;if(!e)return n(this,r),this;var o=this._events[r];if(o.fn)o.fn!==e||a&&!o.once||i&&o.context!==i||n(this,r);else{for(var s=0,g=[],l=o.length;s<l;s++)(o[s].fn!==e||a&&!o[s].once||i&&o[s].context!==i)&&g.push(o[s]);g.length?this._events[r]=1===g.length?g[0]:g:n(this,r)}return this},o.prototype.removeAllListeners=function(A){var e;return A?(e=t?t+A:A,this._events[e]&&n(this,e)):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=t,o.EventEmitter=o,A.exports=o}(h)),h.exports}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/function E(){if(I)return C;function A(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=A[t];return i}function e(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return A(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?A(e,t):void 0}}(e))||t){i&&(e=i);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}I=1;var t=function(){function A(){this.pickers=[]}var t=A.prototype;return t.add=function(A){this.pickers.push(A)},t.remove=function(A){var e=this.pickers.indexOf(A);e>-1?this.pickers.splice(e,1):console.warn("Picker not found in the provider.")},t.closeOther=function(A){for(var t,i=e(this.pickers);!(t=i()).done;){var a,r,n,o,s=t.value;!s||A.target===s.$container||(null==(r=s.$container)||null==(a=r.contains)?void 0:a.call(r,A.target))||A.target===s.$wrapperContent||(null==(o=s.$wrapperContent)||null==(n=o.contains)?void 0:n.call(o,A.target))||(s.open=!1)}},A.getInstance=function(){return A.instance||(A.instance=new A),A.instance},A}(),i=t.getInstance();function a(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}var r=["top","tl","tr","bottom","bl","br"],n="epicker",o={getPopupContainer:function(){return document.body},wrapClassName:"",open:!1,placement:"br",offset:[0,0],zIndex:1e3,content:"",trigger:"click",mouseLeaveDelay:.1,mouseEnterDelay:.1,isMobile:!1,triggerClose:!1},s=function(){function A(A,e){var t,a;this._open=!1,this._OpenChange=!1,this._animationTimer=null,this._disabled=!1,this._timer=null,this._options=Object.assign({},o,e||{}),this._options.isMobile&&(this._options.trigger="click"),i.add(this),this.$container="function"==typeof A?A():A,this.$wrapperContent=document.createElement("div"),this._initContentStyle(),"function"==typeof this._options.getPopupContainer?this._$popupContainer=this._options.getPopupContainer():this._$popupContainer=document.body,["INPUT","CANVAS","VIDEO","IMG"].includes(null==(t=this._$popupContainer)?void 0:t.tagName)&&(console.warn("popup container node does not support child elements, default body!"),this._$popupContainer=document.body),this._$popupContainer!==document.body&&(this._$popupContainer.style.position="relative"),null==(a=this._$popupContainer)||a.appendChild(this.$wrapperContent),this._onContentClick=this._onContentClick.bind(this),this._onShow=this._onShow.bind(this),this._onContainerClick=this._onContainerClick.bind(this),this._onWrapperShow=this._onWrapperShow.bind(this),this._onHide=this._onHide.bind(this),this._onDocumentClick=this._onDocumentClick.bind(this),this._eventListener(),this.open=!!this._options.open}var e=A.prototype;return e.setPlacement=function(A){this._disabled||(r.includes(A)?this._options.placement=A:console.warn(A+" is not a valid placement"),this._setPlacement())},e.destroy=function(){this._animationTimerClear(),this._removeHtml(),i.remove(this)},e.innerHTML=function(A){this.$body&&(this.$body.innerHTML=A||"",this._setPlacement())},e._onOpenChange=function(A){null==this._options.onOpenChange||this._options.onOpenChange.call(this._options,!!A)},e._animationTimerClear=function(){this._animationTimer&&(clearTimeout(this._animationTimer),this._animationTimer=null)},e._removeHtml=function(){var A,e,t,i,a,r,o,s,g,l,C,I,c;(null==(A=this.$wrapperContent)||A.removeEventListener("click",this._onContentClick),null==(t=this.$container)||null==(e=t.removeEventListener)||e.call(t,"click",this._onContentClick),"click"===this._options.trigger&&(null==(a=this.$container)||null==(i=a.removeEventListener)||i.call(a,"click",this._onContainerClick)),"hover"===this._options.trigger)&&(null==(o=this.$container)||null==(r=o.removeEventListener)||r.call(o,"mouseenter",this._onShow),null==(g=this.$container)||null==(s=g.removeEventListener)||s.call(g,"mouseover",this._onShow),null==(C=this.$container)||null==(l=C.removeEventListener)||l.call(C,"mouseleave",this._onHide),null==(I=this.$wrapperContent)||I.removeEventListener("mouseenter",this._onWrapperShow),null==(c=this.$wrapperContent)||c.removeEventListener("mouseleave",this._onHide));this._options.isMobile||(window.removeEventListener("blur",this._onHide),document.removeEventListener("visibilitychange",this._onHide),window.removeEventListener("resize",this._onHide),document.removeEventListener("click",this._onDocumentClick)),this._$mask&&(this._$mask.removeEventListener("click",this._onHide),this._$mask.remove(),this._$mask=null),this._options.isMobile&&document.body.classList.remove(n+"-body-noscroll"),this.$wrapperContent&&(this.$wrapperContent.remove(),this.$wrapperContent=null)},e._setPlacement=function(){var A,e;if(this._open&&!this._options.isMobile&&this.$container){var t,i=null==(e=this.$container)||null==(A=e.getBoundingClientRect)?void 0:A.call(e),a=this.$wrapperContent.getBoundingClientRect(),r=this._$popupContainer.getBoundingClientRect(),n=Math.ceil(i.left)-Math.ceil(r.left),o=-(Math.ceil(i.right)-Math.ceil(r.right)),s=Math.ceil(i.y)-Math.ceil(r.y),g=n+(Math.ceil(i.width)-Math.ceil(a.width))/2,l=s-Math.ceil(a.height),C=s+Math.ceil(i.height);if(/^t/.test(this._options.placement)){var I,c,h;switch(this._options.placement){case"top":t=void 0;break;case"tl":t=void 0,g=n;break;case"tr":g=void 0,t=o}this.$wrapperContent.style.cssText+="\n "+(void 0!==t?"right: "+(t+((null==(I=this._options.offset)?void 0:I[0])||0))+"px;":"")+"\n "+(void 0!==g?"left: "+(g+((null==(c=this._options.offset)?void 0:c[0])||0))+"px;":"")+"\n top: "+(l+((null==(h=this._options.offset)?void 0:h[1])||0))+"px;\n z-index:"+this._options.zIndex+";\n "}else if(/^b/.test(this._options.placement)){var B,E,x;switch(this._options.placement){case"bottom":t=void 0;break;case"bl":t=void 0,g=n;break;case"br":g=void 0,t=o}this.$wrapperContent&&(this.$wrapperContent.style.cssText+="\n "+(void 0!==t?"right: "+(t+((null==(B=this._options.offset)?void 0:B[0])||0))+"px;":"")+"\n "+(void 0!==g?"left: "+(g+((null==(E=this._options.offset)?void 0:E[0])||0))+"px;":"")+"\n top: "+(C+((null==(x=this._options.offset)?void 0:x[1])||0))+"px;\n z-index:"+this._options.zIndex+";\n ")}}},e._initContentStyle=function(){if(this.$wrapperContent&&(this.$wrapperContent.classList.add(""+n,n+"-wrapper",n+"-"+this._options.placement),this.$wrapperContent.style.display="none",this._options.isMobile&&(this.$wrapperContent.classList.add(n+"-mobile"),this._$mask=document.createElement("div"),this._$mask.classList.add(n+"-mask"),this.$wrapperContent.appendChild(this._$mask)),this.$body=document.createElement("div"),this.$body.classList.add(n+"-body"),this.$wrapperContent.appendChild(this.$body),"string"==typeof this._options.content?this.innerHTML(this._options.content):"function"==typeof this._options.content&&this.innerHTML(null==this._options.content?void 0:this._options.content.call(this._options)),"string"==typeof this._options.wrapClassName))try{var A,e;null==(e=this.$wrapperContent)||(A=e.classList).add.apply(A,[].concat(this._options.wrapClassName.split(" ")))}catch(A){}},e._eventListener=function(){var A,e,t,i,a,r,n,o,s,g;(this.$wrapperContent.addEventListener("click",this._onContentClick),null==(e=this.$container)||null==(A=e.addEventListener)||A.call(e,"click",this._onContentClick),"click"===this._options.trigger&&(null==(i=this.$container)||null==(t=i.addEventListener)||t.call(i,"click",this._onContainerClick)),"hover"===this._options.trigger)&&(null==(r=this.$container)||null==(a=r.addEventListener)||a.call(r,"mouseenter",this._onShow),null==(o=this.$container)||null==(n=o.addEventListener)||n.call(o,"mouseover",this._onShow),null==(g=this.$container)||null==(s=g.addEventListener)||s.call(g,"mouseleave",this._onHide),this.$wrapperContent.addEventListener("mouseenter",this._onWrapperShow),this.$wrapperContent.addEventListener("mouseleave",this._onHide));this._$mask&&this._$mask.addEventListener("click",this._onHide),this._options.isMobile||(window.addEventListener("blur",this._onHide),document.addEventListener("visibilitychange",this._onHide),window.addEventListener("resize",this._onHide),document.addEventListener("click",this._onDocumentClick))},e._onContentClick=function(A){i.closeOther(A)},e._onContainerClick=function(A){var e,t;if(!this._disabled){var i=(null==(t=this.$wrapperContent)||null==(e=t.contains)?void 0:e.call(t,A.target))||this.$wrapperContent===A.target;this._options.triggerClose&&"click"===this._options.trigger&&!i?this.open=!this.open:this.open=!0}},e._onShow=function(){this._disabled||(this.open=!0)},e._onWrapperShow=function(){this._disabled||this._onShow()},e._onHide=function(A){this._open&&!this._disabled&&((null==A?void 0:A.target)===this._$mask&&(null==A||A.stopPropagation()),this.open=!1)},e._onDocumentClick=function(A){var e;if(!this.$wrapperContent.contains(A.target)&&this.$wrapperContent!==A.target&&!(null==(e=this.$container)?void 0:e.contains(A.target))&&this.$container!==A.target){if(this._disabled)return;this._onHide()}},a(A,[{key:"open",get:function(){return this._open},set:function(A){var e=this;this._disabled||this._open!==!!A&&(this._animationTimerClear(),this._timer&&(clearTimeout(this._timer),this._timer=null),this._timer=A?setTimeout((function(){e.$wrapperContent&&(e.$wrapperContent.style.display="inline-flex",e.$wrapperContent.style.pointerEvents="",e._options.isMobile&&document.body.classList.add(n+"-body-noscroll"),e._animationTimer=setTimeout((function(){e._animationTimerClear(),e.$wrapperContent.style.opacity="1"}),0),requestAnimationFrame((function(){e._setPlacement()})),e._OpenChange=A,e._onOpenChange(A))}),1e3*(this._options.mouseEnterDelay<0?0:this._options.mouseEnterDelay)):setTimeout((function(){e.$wrapperContent&&(e.$wrapperContent.style.opacity="0",e.$wrapperContent.style.pointerEvents="none",e._options.isMobile&&document.body.classList.remove(n+"-body-noscroll"),e._animationTimer=setTimeout((function(){e._animationTimerClear(),e.$wrapperContent.style.display="none"}),301),e._OpenChange=A,e._onOpenChange(A))}),1e3*(this._options.mouseLeaveDelay<0?0:this._options.mouseLeaveDelay)),this._OpenChange===A&&this._timer&&(clearTimeout(this._timer),this._timer=null),this._open=!!A)}},{key:"disabled",get:function(){return this._disabled},set:function(A){var e,t,i,a,r,o;A?null==(i=this.$container)||null==(t=i.classList)||null==(e=t.add)||e.call(t,n+"-disabled"):null==(o=this.$container)||null==(r=o.classList)||null==(a=r.remove)||a.call(r,n+"-disabled");this._disabled=A}}]),A}();return s.VERSION="1.1.7",C=s}var x,d={};
|
|
17
17
|
/*
|
|
18
|
-
* @ezuikit/control-date-picker v1.0.
|
|
19
|
-
* Copyright (c) 2025-12-
|
|
18
|
+
* @ezuikit/control-date-picker v1.0.4
|
|
19
|
+
* Copyright (c) 2025-12-31 Ezviz-OpenBiz
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/function Q(){if(x)return d;x=1;var i=A,a=t,r=e,n=E(),o=function(){function A(){}return A.fillZero=function(A,e){return void 0===e&&(e=2),A.toString().padStart(e,"0")},A.chunkBySize=function(A,e){return Array.from({length:Math.ceil(A.length/e)}).map((function(t,i){return A.slice(i*e,(i+1)*e)}))},A.generateYears=function(A){for(var e=[],t=A%10+1;t>=0;t--)e.push(A-t);for(var i=1;e.length<12;i++)e.push(A+i);return e},A.getDaysInMonth=function(A,e){return new Date(A,e+1,0).getDate()},A.getFirstDayOfMonth=function(A,e,t){return void 0===t&&(t=0),(new Date(A,e).getDay()-t+7)%7},A.generateWeeksByYearMonth=function(e,t,i){void 0===i&&(i=0),t-=1;for(var a=A.getDaysInMonth(e,t),r=A.getFirstDayOfMonth(e,t,i),n=[],o=1;o<=r+a;o++){var s=o-r;s<1?n.push((0===t?e-1:e)+"-"+A.fillZero((t+12-1)%12+1)+"-"+A.fillZero(A.getDaysInMonth(e,t-1)+s)):s>a?n.push((11===t?e+1:e)+"-"+A.fillZero((t+1)%12+1)+"-"+(s-a)):n.push(e+"-"+A.fillZero(t+1)+"-"+A.fillZero(s))}for(var g=1;n.length<42;)n.push((11===t?e+1:e)+"-"+A.fillZero((t+1)%12+1)+"-"+A.fillZero(g++));return n},A.generateHours=function(){for(var e=[],t=0;t<24;t++)e.push(A.fillZero(t));return e},A.generateMinutesOrSeconds=function(){for(var e=[],t=0;t<=59;t++)e.push(A.fillZero(t));return e},A}(),s={en:{year:"",month:"",weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],today:"Today",ok:"OK",months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},zh:{year:"年",month:"月",weeks:["日","一","二","三","四","五","六"],today:"今天",ok:"确定",months:["01","02","03","04","05","06","07","08","09","10","11","12"]}},g={showSuperPrevIcon:!1,showSuperNextIcon:!1,showPrevIcon:!1,showNextIcon:!1,showHeaderClose:!1,showHeaderOk:!1,renderSuperPrevIcon:'<span class="edate-super-prev-icon"></span>',renderSuperNextIcon:'<span class="edate-super-next-icon"></span>',renderPrevIcon:'<span class="edate-prev-icon"></span>',renderNextIcon:'<span class="edate-next-icon"></span>',renderHeaderCloseIcon:'<span class="edate-close-icon">\n <svg viewBox="0 0 24 24" fill="none" width="1em" height="1em" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="close">\n\t <path d="M0 0L15.9998 0" stroke-linecap="round" stroke-width="1.5" transform="matrix(0.707099,0.707114,-0.707114,0.707099,6.34277,6.34326)" />\n\t\t <path d="M0 0L15.9998 0" stroke-linecap="round" stroke-width="1.5" transform="matrix(0.707099,-0.707114,0.707114,0.707099,6.34277,17.6567)" />\n </svg>\n </span>',renderHeaderOkIcon:function(A){return'<span class="edate-btn-text">'+((null==A?void 0:A.ok)||"确定")+"</span>"}},l=function(){function A(A){this.$header=null,this.options=r.all([{},g,A],{clone:!1}),this.$header=document.createElement("div"),this.$header.classList.add("edate-header",A.prefixCls+"-header"),A.className&&this.$header.classList.add(A.className),this._render(),this._eventListeners()}var e=A.prototype;return e._render=function(){var A,e,t,i,a,r;this.$header&&(this.$header.innerHTML="\n "+(this.options.showHeaderClose?'<div class="edate-close-btn">\n '+(null!=(A=this._getStrOrFunToStr(this.options.renderHeaderCloseIcon))?A:g.renderHeaderCloseIcon)+"\n </div>":this.options.showHeaderOk?"<span></span>":"")+"\n "+(this.options.showSuperPrevIcon||this.options.showPrevIcon?'\n <div class="edate-prev-btns">\n '+(this.options.showSuperPrevIcon?'<div class="edate-super-prev-btn '+this.options.prefixCls+'-super-prev-btn">\n '+(null!=(e=this._getStrOrFunToStr(this.options.renderSuperPrevIcon))?e:g.renderSuperPrevIcon)+"\n </div>":"")+"\n "+(this.options.showPrevIcon?'<div class="edate-prev-btn '+this.options.prefixCls+'-prev-btn">\n '+(null!=(t=this._getStrOrFunToStr(this.options.renderPrevIcon))?t:g.renderPrevIcon)+"\n </div>":"")+"\n </div>\n ":"")+'\n\n <div class="edate-header-view '+this.options.prefixCls+'-header-view"></div>\n\n '+(this.options.showNextIcon||this.options.showSuperNextIcon?'\n <div class="edate-next-btns">\n '+(this.options.showNextIcon?'<div class="edate-next-btn '+this.options.prefixCls+'-next-btn">\n '+(null!=(i=this._getStrOrFunToStr(this.options.renderNextIcon))?i:g.renderNextIcon)+"\n </div>":"")+"\n "+(this.options.showSuperNextIcon?'<div class="edate-super-next-btn '+this.options.prefixCls+'-super-next-btn">\n '+(null!=(a=this._getStrOrFunToStr(this.options.renderSuperNextIcon))?a:g.renderSuperNextIcon)+"\n </div>":"")+"\n </div>\n ":"")+"\n "+(this.options.showHeaderOk?'<div class="edate-ok-btn">\n '+(null!=(r=this._getStrOrFunToStr(this.options.renderHeaderOkIcon))?r:g.renderHeaderOkIcon)+"\n </div>":this.options.showHeaderClose?"<span></span>":""))},e._getStrOrFunToStr=function(A){if(null!=A){var e;if("function"==typeof A)return this._getStrOrFunToStr(null==A?void 0:A(null==(e=this.options)?void 0:e.locale));if("string"==typeof A)return A}},e.renderContent=function(A){if(this.$header){var e=this.$header.querySelector(".edate-header-view");if(!e)return;e.innerHTML=A}},e.destroy=function(){this.$header&&this.$header.remove()},e._eventListeners=function(){var A=this;A.$header&&(i(A.$header,".edate-super-prev-btn","click",(function(e){e.delegateTarget.classList.contains("edate-disabled")||null==A.options.onSuperPrev||A.options.onSuperPrev.call(A.options)})),i(A.$header,".edate-prev-btn","click",(function(e){e.delegateTarget.classList.contains("edate-disabled")||null==A.options.onPrev||A.options.onPrev.call(A.options)})),i(A.$header,".edate-next-btn","click",(function(e){e.delegateTarget.classList.contains("edate-disabled")||null==A.options.onNext||A.options.onNext.call(A.options)})),i(A.$header,".edate-super-next-btn","click",(function(e){e.delegateTarget.classList.contains("edate-disabled")||null==A.options.onSuperNext||A.options.onSuperNext.call(A.options)})),i(A.$header,".edate-close-btn","click",(function(e){e.delegateTarget.classList.contains("edate-disabled")||(null==A.options.onClose||A.options.onClose.call(A.options),e.stopPropagation(),e.preventDefault())})),i(A.$header,".edate-ok-btn","click",(function(e){e.delegateTarget.classList.contains("edate-disabled")||(null==A.options.onOk||A.options.onOk.call(A.options),e.stopPropagation(),e.preventDefault())})))},A}();function C(){return C=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},C.apply(this,arguments)}var I={prefixCls:"edate",locales:s,showHeader:!0},c=function(){function A(A,e){this.$panel=document.createElement("div"),this.$body=document.createElement("div"),this.$container=document.createElement("div"),this.language="zh",this.header=null,this.locale=s.zh,this.options=r.all([{},I,e],{clone:!1}),this.$popupContainer=A?"function"==typeof A?A():A:document.body,this._setLocale(),this.$container.classList.add("edate-container",(this.options.prefixCls||"edate")+"-container"),e.isMobile&&this.$container.classList.add("edate-mobile",this.options.prefixCls+"-mobile"),this.options.wrapClassName&&this.$container.classList.add(this.options.wrapClassName),this.$panel.classList.add("edate-panel",(this.options.prefixCls||"edate")+"-panel"),this.options.showHeader&&(this.header=new l(C({},this.options,{locale:this.locale,onPrev:this._onPrev.bind(this),onNext:this._onNext.bind(this),onSuperPrev:this._onSuperPrev.bind(this),onSuperNext:this._onSuperNext.bind(this),onClose:this._onClose.bind(this),onOk:this._onOk.bind(this)})),this.$panel.appendChild(this.header.$header)),this.$body.classList.add("edate-body",(this.options.prefixCls||"edate")+"-body"),this.$container.appendChild(this.$panel),this.$popupContainer.appendChild(this.$container)}var e=A.prototype;return e._setLocale=function(){if(this.options.locales)if("string"==typeof this.options.language){var A=this.options.language||navigator.language;this.options.locales[A]?this.locale=this.options.locales[A]:this.locale=this.options.locales.zh}else this.locale=this.options.locales.zh},e.destroy=function(){var A;(null==(A=this.$container)?void 0:A.parentNode)&&this.$container.parentNode.removeChild(this.$container),this.header=null,this.$container=null},e.setLocale=function(A){"string"==typeof A?this._setLocale():this.locale=A},e._onSuperPrev=function(){},e._onSuperNext=function(){},e._onPrev=function(){},e._onNext=function(){},e._onClose=function(){},e._onOk=function(){},A}();function h(){return h=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},h.apply(this,arguments)}function B(A,e){return B=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},B(A,e)}var Q={startOfWeek:0,showHeader:!0,showSuperPrevIcon:!0,showSuperNextIcon:!0,showPrevIcon:!0,showNextIcon:!0,language:"zh",renderBadge:'<span class="ecalendar-badge"></span>',badges:[]},f=function(A){function e(e,t){var i,a,r,n,o;return(i=A.call(this,e,h({},Q,t,{prefixCls:"ecalendar"}))||this).badges=[],(null==(a=i.options.badges)?void 0:a.length)&&i._updateBadges(i.options.badges,!1),(null==(r=i.options)?void 0:r.startOfWeek)&&((null==(n=i.options)?void 0:n.startOfWeek)>6||(null==(o=i.options)?void 0:o.startOfWeek)<0)&&(i.options.startOfWeek=0),i._render(),i.setCurrent(i.options.current,!1),i._onHeader(),i._onCell(),i}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&B(A,e)}(e,A);var t,r,n=e.prototype;return n.setCurrent=function(A,e){if(void 0===e&&(e=!0),"string"==typeof A||(n=A,null!=(o=Date)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](n):n instanceof o))try{if(A="string"==typeof A?a.DateTime.toDate(A):A,(!this._current||a.DateTime.format(A,"YYYY-MM-DD")!==a.DateTime.format(this._current,"YYYY-MM-DD"))&&(this._current=A,e&&(null==this.options.onChange||this.options.onChange.call(this.options,A,a.DateTime.format(A,"YYYY-MM-DD"))),this.$body)){var t,i;null==(t=this.$body.querySelector(".ecalendar-cell-selected"))||t.classList.remove("ecalendar-cell-selected");var r=a.DateTime.format(this._current,"YYYY-MM-DD");null==(i=this.$body.querySelector(".ecalendar-cell-in-view[title='"+r+"']"))||i.classList.add("ecalendar-cell-selected")}this._setRenderCurrent(this._current)}catch(A){this._setRenderCurrent(new Date)}else this._setRenderCurrent(new Date);var n,o},n.updateBadges=function(A){this._updateBadges(A)},n._updateBadges=function(A,e){void 0===e&&(e=!0),(null==A?void 0:A.length)>=0&&(this.badges=A.map((function(A){return a.DateTime.format(A,"YYYY-MM-DD")})),e&&this._renderDate())},n._setRenderCurrent=function(A){(!this._renderCurrent||A&&a.DateTime.format(this._renderCurrent,"YYYY-MM")!==a.DateTime.format(A,"YYYY-MM"))&&(this._renderCurrent=A||new Date,this._renderDate())},n._onCell=function(){var A=this;i(this.$body,".ecalendar-cell","click",(function(e){var t=new Date(e.delegateTarget.getAttribute("title").replace(/\//gi,"/")),i=e.delegateTarget.classList.contains("edate-disabled");i||A.setCurrent(t),null==A.options.onCell||A.options.onCell.call(A.options,t,a.DateTime.format(A._renderCurrent,"YYYY-MM-DD"),i),e.stopPropagation(),e.preventDefault()}))},n._onSuperPrev=function(){var A=new Date(this._renderCurrent);A.setFullYear(A.getFullYear()-1,A.getMonth(),A.getDate()),this._setRenderCurrent(A),null==this.options.onPrevMonth||this.options.onPrevMonth.call(this.options,this._current,this._renderCurrent)},n._onSuperNext=function(){var A=new Date(this._renderCurrent);A.setFullYear(A.getFullYear()+1,A.getMonth(),A.getDate()),this._setRenderCurrent(A),null==this.options.onNextMonth||this.options.onNextMonth.call(this.options,this._current,this._renderCurrent)},n._onPrev=function(){var A=new Date(this._renderCurrent);A.setMonth(A.getMonth()-1,A.getDate()),this._setRenderCurrent(A),null==this.options.onPrevMonth||this.options.onPrevMonth.call(this.options,this._current,this._renderCurrent)},n._onNext=function(){var A=new Date(this._renderCurrent);A.setMonth(A.getMonth()+1,A.getDate()),this._setRenderCurrent(A),null==this.options.onNextMonth||this.options.onNextMonth.call(this.options,this._current,this._renderCurrent)},n._onHeader=function(){var A=this;i(this.$panel,".ecalendar-header-month-btn","click",(function(){null==A.options.onMonth||A.options.onMonth.call(A.options,A._current,A._renderCurrent)})),i(this.$panel,".ecalendar-header-year-btn","click",(function(){null==A.options.onYear||A.options.onYear.call(A.options,A._current,A._renderCurrent)}))},n._onOk=function(){null==this.options.onOk||this.options.onOk.call(this.options,this.current)},n._onClose=function(){null==this.options.onClose||this.options.onClose.call(this.options,this.current)},n._render=function(){var A,e,t=[].concat(((null==(A=this.locale)?void 0:A.weeks)||[]).slice(this.options.startOfWeek),((null==(e=this.locale)?void 0:e.weeks)||[]).slice(0,this.options.startOfWeek));this.$body.innerHTML='<table class="ecalendar-content">\n <thead><tr>'+t.map((function(A){return"<th>"+A+"</th>"})).join("")+"</tr></thead>\n <tbody></tbody>\n </table>",this.$panel.appendChild(this.$body)},n._renderDate=function(){var A,e,t=this;if(this.$body){var i,r,n,s,g,l,C,I,c,h=a.DateTime.format(new Date,"YYYY-MM-DD"),B=this._renderCurrent.getFullYear(),E=this._renderCurrent.getMonth()+1,x=o.chunkBySize(o.generateWeeksByYearMonth(B,E,this.options.startOfWeek),7),d="function"==typeof this.options.onMonth,Q="function"==typeof this.options.onYear;(null==(A=this.header)?void 0:A.$header)&&this.header.renderContent("\n "+("zh"!==this.options.language?'<span class="ecalendar-header-month-btn '+(d?"edate-header-title-hover":"")+'">'+(null==(r=this.locale)||null==(i=r.months)?void 0:i[+(E-1)])+((null==(n=this.locale)?void 0:n.month)||"")+'</span> <span class="ecalendar-header-year-btn '+(Q?"edate-header-title-hover":"")+'">'+B+((null==(s=this.locale)?void 0:s.year)||"")+"</span>":'<span class="ecalendar-header-year-btn '+(Q?"edate-header-title-hover":"")+'">'+B+((null==(g=this.locale)?void 0:g.year)||"")+'</span> <span class="ecalendar-header-month-btn '+(d?"edate-header-title-hover":"")+'">'+(null==(C=this.locale)||null==(l=C.months)?void 0:l[+(E-1)])+((null==(I=this.locale)?void 0:I.month)||"")+"</span>")),(null==(e=this.$body.querySelector(".ecalendar-content"))?void 0:e.querySelector("tbody"))&&((null==(c=this.$body.querySelector(".ecalendar-content"))?void 0:c.querySelector("tbody")).innerHTML="\n "+x.slice(0,7).map((function(A){return"<tr>\n "+A.map((function(A){var e,i=A.split("-"),r=i[0],n=i[1],s=i[2],g=new Date(+r,+n,+s),l=[E===+n?"ecalendar-cell-in-view":"",h===A?"ecalendar-cell-today":"",t._current&&a.DateTime.format(t._current,"YYYY-MM-DD")===A?"ecalendar-cell-selected":"","function"==typeof(null==(e=t.options)?void 0:e.disabledDate)&&t.options.disabledDate(a.DateTime.toDate(A),A)?"edate-disabled":""].filter(Boolean),C=t._renderBadge(g,A);return'<td title="'+A+'" class="ecalendar-cell '+l.join(" ")+'">\n '+("function"==typeof t.options.renderDate?t.options.renderDate(g,A):'<span class="ecalendar-cell-inner">'+o.fillZero(+s)+"</span>")+"\n "+C+"\n </td>"})).join("")+"\n </tr>"})).join(""))}},n._renderBadge=function(A,e){var t="";t="function"==typeof this.options.renderBadge?this.options.renderBadge(A,e):"string"==typeof this.options.renderBadge?this.options.renderBadge:"";var i="function"==typeof this.options.showBadge&&this.options.showBadge(A,e);return this.badges.includes(e)||i||(t=""),t},t=e,(r=[{key:"current",get:function(){return this._current}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(t.prototype,r),e}(c);function u(A,e){return u=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},u(A,e)}f.DateTime=a.DateTime;var p={showHeader:!0,showSuperPrevIcon:!0,showSuperNextIcon:!0,language:"zh"},m=function(A){function e(e,t){var i;return(i=A.call(this,e,r.all([{},p,t||{},{showPrevIcon:!1,showNextIcon:!1,prefixCls:"emonth"}],{clone:!1}))||this)._render(),i.setCurrent(i.options.current,!1),i._onHeaderTitle(),i._onCell(),i}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&u(A,e)}(e,A);var t,n,s=e.prototype;return s.setCurrent=function(A,e){void 0===e&&(e=!0),this._setCurrent(A,e)},s._setCurrent=function(A,e){if("string"==typeof A||(r=A,null!=(n=Date)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](r):r instanceof n))try{var t=A;"string"==typeof t&&(t=a.DateTime.toDate(t));var i=t;this._current&&a.DateTime.format(i,"YYYY-MM-DD")===a.DateTime.format(this._current,"YYYY-MM-DD")||(this._current=i,"function"==typeof this.options.onChange&&e&&(null==this.options.onChange||this.options.onChange.call(this.options,i,a.DateTime.format(i,"YYYY-MM")))),this._setRenderCurrent(i)}catch(A){this._setRenderCurrent(new Date)}else this._setRenderCurrent(new Date);var r,n},s._setRenderCurrent=function(A){if((!this._renderCurrent||this._renderCurrent&&a.DateTime.format(A,"YYYY")!==a.DateTime.format(this._renderCurrent,"YYYY"))&&(this._renderCurrent=A,this._renderMonths(A.getFullYear())),this._current){var e,t;null==(e=this.$body.querySelector(".emonth-cell-selected"))||e.classList.remove("emonth-cell-selected");var i=a.DateTime.format(this._current,"YYYY-MM");null==(t=this.$body.querySelector(".emonth-cell-in-view[title='"+i+"']"))||t.classList.add("emonth-cell-selected")}this._setHeader()},s._onOk=function(){null==this.options.onOk||this.options.onOk.call(this.options,this.current)},s._onClose=function(){null==this.options.onClose||this.options.onClose.call(this.options,this.current)},s._onCell=function(){var A=this;i(this.$body,".emonth-cell","click",(function(e){e.stopPropagation(),e.preventDefault();var t=+e.delegateTarget.getAttribute("data-month"),i=a.DateTime.toDate(a.DateTime.format(A._current,"yyyy-MM-dd HH:mm:ss"));i.setMonth(t-1);var r=e.delegateTarget.classList.contains("edate-disabled");r||A.setCurrent(i),null==A.options.onCell||A.options.onCell.call(A.options,i,a.DateTime.format(i,"YYYY-MM"),r)}))},s._onSuperPrev=function(){var A=this._renderCurrent.getFullYear()-1,e=a.DateTime.toDate(A+a.DateTime.format(this._renderCurrent,"-MM-DDTHH:mm:ss"));this._setRenderCurrent(e),null==this.options.onSuperPrev||this.options.onSuperPrev.call(this.options,this._current,this._renderCurrent)},s._onSuperNext=function(){var A=this._renderCurrent.getFullYear()+1,e=a.DateTime.toDate(A+a.DateTime.format(this._renderCurrent,"-MM-DDTHH:mm:ss"));this._setRenderCurrent(e),null==this.options.onSuperNext||this.options.onSuperNext.call(this.options,this._current,this._renderCurrent)},s._onHeaderTitle=function(){var A=this;i(this.$panel,".edate-header-title-hover","click",(function(){null==A.options.onYear||A.options.onYear.call(A.options,A._current,A._renderCurrent)}))},s._setHeader=function(){if(this.$panel.querySelector(".emonth-header-view")){var A="function"==typeof this.options.onYear;this.$panel.querySelector(".emonth-header-view").innerHTML='<span class="'+(A?"edate-header-title-hover":"")+'">'+this._renderCurrent.getFullYear()+this.locale.year+"</span>"}},s._setDisabled=function(){for(var A=this._renderCurrent.getFullYear(),e=0;e<12;e++){var t=this.$body.querySelector(".emonth-cell[title='"+A+"-"+o.fillZero(e+1)+"']");if(t){var i=a.DateTime.toDate(A+"-"+o.fillZero(e+1)+"-"+a.DateTime.format(this._renderCurrent,"DDTHH:mm:ss"));"function"==typeof this.options.disabledMonth&&this.options.disabledMonth(i,a.DateTime.format(i,"YYYY-MM"))?t.classList.add("edate-disabled"):t.classList.remove("edate-disabled")}}},s._render=function(){this.$body.innerHTML='<table class="emonth-content"></table>',this.$panel.appendChild(this.$body)},s._renderMonths=function(A){var e=this;this.$body.querySelector(".emonth-content")&&(this.$body.querySelector(".emonth-content").innerHTML="\n <tbody>\n "+o.chunkBySize(this.locale.months,3).slice(0,4).map((function(t,i){return"<tr>\n "+t.map((function(t,r){return'<td title="'+A+"-"+o.fillZero(3*i+r+1)+'" data-month="'+o.fillZero(3*i+r+1)+'" class="emonth-cell emonth-cell-in-view">\n <span class="emonth-cell-inner">'+(e.options.monthRender&&"function"==typeof e.options.monthRender?e.options.monthRender(a.DateTime.toDate(A+"-"+o.fillZero(3*i+r+1)),A+"-"+o.fillZero(3*i+r+1))||"":t)+"</span>\n </td>"})).join("")+"\n </tr>"})).join("")+"\n </tbody>"),this._setDisabled()},t=e,(n=[{key:"current",get:function(){return this._current}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(t.prototype,n),e}(c);function _(A,e){return _=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},_(A,e)}var y={showHeader:!0,showSuperPrevIcon:!0,showSuperNextIcon:!0,language:"zh",prefixCls:"eyear"},S=function(A){function e(e,t){var i;return(i=A.call(this,e,r.all([{},y,t||{},{showPrevIcon:!1,showNextIcon:!1,renderPrevIcon:"",renderNextIcon:""}],{clone:!1}))||this)._render(),i._setCurrent(i.options.current,!1),i._onCell(),i}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&_(A,e)}(e,A);var t,n,s=e.prototype;return s.setCurrent=function(A,e){void 0===e&&(e=!0),this._setCurrent(A,e)},s._setCurrent=function(A,e){void 0===e&&(e=!0);var t,i,r="number"==typeof A?a.DateTime.toDate(A):(t=A,(null!=(i=Date)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](t):t instanceof i)?A:new Date);this._current&&a.DateTime.format(r,"YYYY-MM-DD")===a.DateTime.format(this._current,"YYYY-MM-DD")||(this._current=r,"function"==typeof this.options.onChange&&e&&this.options.onChange(r)),this._renderTenYear=(this._current||new Date).getFullYear(),this._renderYearList()},s._onOk=function(){null==this.options.onOk||this.options.onOk.call(this.options,this.current)},s._onClose=function(){null==this.options.onClose||this.options.onClose.call(this.options,this.current)},s._onCell=function(){var A=this;i(this.$body,".eyear-cell","click",(function(e){var t=+e.delegateTarget.getAttribute("title"),i=a.DateTime.toDate(a.DateTime.format(A._current,"yyyy-MM-dd HH:mm:ss"));i.setFullYear(t);var r=e.delegateTarget.classList.contains("edate-disabled");r||A._setCurrent(i),null==A.options.onCell||A.options.onCell.call(A.options,i,a.DateTime.format(i,"YYYY"),r),e.stopPropagation(),e.preventDefault()}))},s._onSuperPrev=function(){this._renderTenYear=this._renderTenYear-10,null==this.options.onPrevYear||this.options.onPrevYear.call(this.options,this._current,o.generateYears(this._renderTenYear)),this._renderYearList()},s._onSuperNext=function(){this._renderTenYear=this._renderTenYear+10,null==this.options.onNextYear||this.options.onNextYear.call(this.options,this._current,o.generateYears(this._renderTenYear)),this._renderYearList()},s._render=function(){this.$body.innerHTML='<table class="eyear-content"></table>',this.$panel.appendChild(this.$body)},s._renderYearList=function(){var A,e=this,t=o.generateYears(this._renderTenYear);null==(A=this.header)||A.renderContent(t[1]+" - "+t[t.length-2]),this.$body.querySelector(".eyear-content")&&(this.$body.querySelector(".eyear-content").innerHTML="\n <tbody>\n "+o.chunkBySize(t,3).slice(0,4).map((function(A,t){return"<tr>\n "+A.map((function(A,i){var r=0===t&&0===i||3===t&&2===i?"eyear-cell":"eyear-cell eyear-cell-in-view";return+A==+e._current.getFullYear()&&(r+=" eyear-cell-selected"),"function"==typeof e.options.disabledYear&&e.options.disabledYear(a.DateTime.toDate(A),A)&&(r+=" edate-disabled"),'<td title="'+A+'" class="'+r+'">\n '+(e.options.yearRender&&"function"==typeof e.options.yearRender?e.options.yearRender(a.DateTime.toDate(A),A):'<span class="eyear-cell-inner">'+ +A+"</span>")+"\n </td>"})).join("")+"\n </tr>"})).join("")+"\n </tbody>\n ")},t=e,(n=[{key:"current",get:function(){return this._current}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(t.prototype,n),e}(c);function D(){return D=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},D.apply(this,arguments)}function R(A,e){return R=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},R(A,e)}var F=["date","month","year"],w={getPopupContainer:function(){return document.body},language:"zh",isMobile:!1,mode:F[0]},b=function(A){function e(e,t){var i;return(i=A.call(this,e,r.all([{},w,t||{},{wrapClassName:("edate-picker-container "+((null==t?void 0:t.wrapClassName)||"")).trim()}],{clone:!1}))||this).current=null,i._current=null,i._calendar=null,i._month=null,i._year=null,i._currentMode="date",i.options=r.all([{},w,t||{}],{clone:!1}),i.options.current&&(i.current=i.options.current,i._current=i.options.current),i._currentMode=i.options.mode,i._switchMode(),i}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&R(A,e)}(e,A);var t,i,n=e.prototype;return n.setCurrent=function(A,e){void 0===e&&(e=!0),this._setCurrent(A,e)},n.updateBadges=function(A){var e;(null==A?void 0:A.length)>=0&&(null==(e=this._calendar)||e.updateBadges(A))},n.destroy=function(){var e,t,i;null==(e=this._calendar)||e.destroy(),this._calendar=null,null==(t=this._month)||t.destroy(),this._month=null,null==(i=this._year)||i.destroy(),this._year=null,A.prototype.destroy.call(this)},n._setCurrent=function(A,e){var t,i,a;void 0===e&&(e=!0),this._current=A,null==(t=this._calendar)||t.setCurrent(A,e),null==(i=this._month)||i.setCurrent(A,e),null==(a=this._year)||a.setCurrent(A,e)},n._switchMode=function(){this.$body.classList.add("edate-picker-"+this._currentMode),"date"===this._currentMode?this._initCalendar():"month"===this._currentMode?this._initMonth():"year"===this._currentMode&&this._initYear(),this.setPlacement(this.options.placement||"top")},n.hide=function(){this.open=!1},n._onOpenChange=function(e){A.prototype._onOpenChange.call(this,e),e&&(this._removeCurrentTypeClass(),this._currentMode=this.options.mode||"date",this._switchMode(),this._setCurrent(this.current,!1)),e||null==this.options.onClose||this.options.onClose.call(this.options,this.current,this._currentMode)},n._initCalendar=function(){var A=this;this._calendar||(this._calendar=new f(this.$body,D({},this.options,{current:this._current||new Date,onCell:this._onCell.bind(this),showHeaderOk:this.options.isMobile,showHeaderClose:this.options.isMobile,onOk:this._onOk.bind(this),onClose:this._onClose.bind(this),onMonth:this._onMonth.bind(this),onYear:this._onYear.bind(this),onChange:function(e){var t;A._current&&a.DateTime.format(A._current,"YYYY-MM-DD")===a.DateTime.format(e,"YYYY-MM-DD")||A._onChange(e,null==(t=A._calendar)?void 0:t.options.showHeaderOk)}})))},n._initMonth=function(){var A=this;this._month||(this._month=new m(this.$body,D({},this.options,{current:this._current||new Date,onCell:this._onCell.bind(this),onOk:this._onOk.bind(this),onClose:this._onClose.bind(this),showHeaderOk:this.options.isMobile,showHeaderClose:this.options.isMobile,onChange:function(e){var t;A._current&&a.DateTime.format(A._current,"YYYY-MM")===a.DateTime.format(e,"YYYY-MM")||A._onChange(e,null==(t=A._month)?void 0:t.options.showHeaderOk)},onYear:this._onYear.bind(this)})))},n._initYear=function(){var A=this;this._year||(this._year=new S(this.$body,D({},this.options,{current:this._current||new Date,onCell:this._onCell.bind(this),onOk:this._onOk.bind(this),onClose:this._onClose.bind(this),showHeaderOk:this.options.isMobile,showHeaderClose:this.options.isMobile,onChange:function(e){var t;A._current&&a.DateTime.format(A._current,"YYYY")===a.DateTime.format(e,"YYYY")||A._onChange(e,null==(t=A._year)?void 0:t.options.showHeaderOk)}})))},n._onOk=function(A){this.current=A||this._current,this._setCurrent(A||this._current),null==this.options.onOk||this.options.onOk.call(this.options,this.current,this._currentMode),this.hide()},n._onClose=function(){this.hide()},n._onChange=function(A,e){this._setCurrent(A,!0)},n._onCell=function(A,e,t){null==this.options.onCell||this.options.onCell.call(this.options,A,this._currentMode),this.options.isMobile||this._currentMode!==this.options.mode||t||this._current&&a.DateTime.format(A,"YYYY-MM-DD")!==a.DateTime.format(this._current,"YYYY-MM-DD")||(this.current=A,null==this.options.onChange||this.options.onChange.call(this.options,A,this._currentMode)),t||this._prvMode()},n._prvMode=function(){this._currentMode!==this.options.mode||this.options.isMobile||this.hide();var A=F.indexOf(this._currentMode);A>=1&&(A--,this._removeCurrentTypeClass(),this._currentMode=F[A],this._switchMode())},n._onYear=function(){this._removeCurrentTypeClass(),this._currentMode="year",this._switchMode()},n._onMonth=function(){this._removeCurrentTypeClass(),this._currentMode="month",this._switchMode()},n._removeCurrentTypeClass=function(){this.$body.classList.remove("edate-picker-"+this._currentMode)},t=e,(i=[{key:"_minModeIndex",get:function(){return F.indexOf(this.options.mode)}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(t.prototype,i),e}(n);return d.Calendar=f,d.DatePicker=b,d.Header=l,d.Month=m,d.Year=S,d}var f,u,p,m,_={};
|
|
22
22
|
/**
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
|
30
30
|
*/function y(){if(u)return f;function A(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}u=1;var e={content:"",width:"100%",height:"400px",readonly:!1,hideScrollbar:!1},t="drag-scroll",i=function(){function i(A,i){if(void 0===i&&(i={}),this._indicatorTimeout=null,this._$scrollbar=null,this._$scrollbarThumb=null,this._readonly=!1,!A)throw new Error("container is required");if(["VIDEO","CANVAS","IMG","TEXTAREA","INPUT"].includes(A.tagName))throw new Error("container cannot be 'VIDEO', 'CANVAS', 'IMG', 'TEXTAREA', 'INPUT' element");this.$container=A,this.options=Object.assign({},e,i),this.$container.classList.add(t,t+"-container"),this.$content=document.createElement("div"),this.$content.classList.add(t+"-content"),this.innerHtml(this.options.content),this.$container.appendChild(this.$content),this.isDragging=!1,this._startY=0,this.currentY=0,this.velocity=0,this._animationId=null,this._lastTimestamp=0,this._spring=.25,this._friction=.92,this._bounceDamping=.6,this._maxVelocity=30,this.options.hideScrollbar||this._renderScrollbar(),this._onMouseDown=this._onMouseDown.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this.readonly=this.options.readonly,this._init()}var a=i.prototype;return a.resize=function(A,e){var t="";/^\d+(\.\d+)?$/.test(A+"")?t="width: "+A+"px;":"string"==typeof A&&(t="width: "+A+";"),/^\d+(\.\d+)?$/.test(e+"")?t+="height: "+e+"px;":"string"==typeof e&&(t+="height: "+e+";"),this.$container.style.cssText+=t,this._applyTransform()},a.innerHtml=function(A){this.$content.innerHTML="function"==typeof A?A():A,this._applyTransform()},a.scrollToY=function(A,e){void 0===e&&(e=!0);var t=this.$content.scrollHeight-this.$container.clientHeight;A<0||A>t||(this.currentY=A,this.velocity=0,this._applyTransform(),e&&this._updateState())},a.destroy=function(){var A,e,t;this._animationId&&(cancelAnimationFrame(this._animationId),this._animationId=null),this._indicatorTimeout&&(clearTimeout(this._indicatorTimeout),this._indicatorTimeout=null),this.$container&&(this.$container.style.cursor="default"),null==(A=this._$scrollbarThumb)||A.remove(),this._$scrollbarThumb=null,null==(e=this._$scrollbar)||e.remove(),this._$scrollbar=null,null==(t=this.$content)||t.remove(),this.$content=null,this._removeEventListeners()},a._renderScrollbar=function(){this._$scrollbar=document.createElement("div"),this._$scrollbar.className=t+"-scrollbar",this._$scrollbarThumb=document.createElement("div"),this._$scrollbarThumb.className=t+"-scrollbar-thumb",this._$scrollbar.appendChild(this._$scrollbarThumb),this.$container.appendChild(this._$scrollbar)},a._init=function(){this.resize(this.options.width,this.options.height),this._addEventListeners(),this._updateScrollbar()},a._addEventListeners=function(){this.$container.addEventListener("pointerdown",this._onMouseDown),document.addEventListener("pointermove",this._onMouseMove),document.addEventListener("pointerup",this._onMouseUp),document.addEventListener("pointercancel",this._onMouseUp)},a._removeEventListeners=function(){this.$container.removeEventListener("touchmove",this._onTouchMove),this.$container.removeEventListener("pointerdown",this._onMouseDown),document.removeEventListener("pointermove",this._onMouseMove),document.removeEventListener("pointerup",this._onMouseUp),document.removeEventListener("pointercancel",this._onMouseUp)},a._onMouseDown=function(A){this.canDrag&&(this._startDrag(A.clientY),null==this.options.onDragStart||this.options.onDragStart.call(this.options,A))},a._onTouchMove=function(A){A.preventDefault()},a._startDrag=function(A){var e,i;this.canDrag&&(this.isDragging=!0,this._startY=A,this.velocity=0,null==(i=this._$scrollbar)||null==(e=i.classList)||e.add(t+"-show"),this.$container.style.cursor="grabbing")},a._onMouseMove=function(A){this.canDrag&&this.isDragging&&(this._drag(A.clientY),null==this.options.onDragging||this.options.onDragging.call(this.options,0,this.currentY))},a._drag=function(A){if(this.canDrag){var e=this._startY-A;this._startY=A,this.currentY+=e,this.velocity=e,this.velocity=Math.max(Math.min(this.velocity,this._maxVelocity),-this._maxVelocity),this._applyTransform(),this._updateState()}},a._onMouseUp=function(A){this.canDrag&&this.isDragging&&(this.isDragging=!1,this._endDrag(),null==this.options.onDragEnd||this.options.onDragEnd.call(this.options,A))},a._endDrag=function(){var A=this;this.$container.style.cursor="grab",setTimeout((function(){var e;A.isDragging||null==(e=A._$scrollbar)||e.classList.remove(t+"-show")}),1500)},a._applyTransform=function(){if(this.$content.offsetHeight<=this.$container.clientHeight)this.$content.style.transform="translate3d(0, 0, 0)";else{var A=this.$content.scrollHeight-this.$container.clientHeight;this.currentY<0?(this.currentY=0,this.velocity*=this._bounceDamping):this.currentY>A&&(this.currentY=A,this.velocity*=this._bounceDamping),this.$content.style.transform="translate3d(0, "+-this.currentY+"px, 0)",this._updateScrollbar()}},a._animate=function(A){if(void 0===A&&(A=0),this._animationId&&(cancelAnimationFrame(this._animationId),this._animationId=null),!(this.$content.offsetHeight<=this.$container.clientHeight)){this._lastTimestamp||(this._lastTimestamp=A);var e=Math.min(A-this._lastTimestamp,100)/16;if(this._lastTimestamp=A,!this.isDragging){this.velocity*=this._friction,this.currentY+=this.velocity;var t=this.$content.scrollHeight-this.$container.clientHeight;this.currentY<0?this.velocity-=this.currentY*this._spring*e:this.currentY>t&&(this.velocity-=(this.currentY-t)*this._spring*e),this._applyTransform(),this._updateState(),Math.abs(this.velocity)<.1&&this.currentY>=0&&this.currentY<=t&&(this.velocity=0)}}},a._updateScrollbar=function(){var A=this.$container.clientHeight,e=this.$content.scrollHeight,t=e-A;if(t<=0)this._$scrollbarThumb&&(this._$scrollbarThumb.style.height="0");else{var i=Math.max(A/e*A,20),a=this.currentY/t*(A-i);this._$scrollbarThumb&&(this._$scrollbarThumb.style.height=i+"px",this._$scrollbarThumb.style.transform="translateY("+a+"px)")}},a._updateState=function(){null==this.options.onChange||this.options.onChange.call(this.options,{x:0,y:this.currentY,velocity:+this.velocity.toFixed(1)})},A(i,[{key:"width",get:function(){return this.$container.clientWidth}},{key:"height",get:function(){return this.$container.clientHeight}},{key:"readonly",get:function(){return this._readonly},set:function(A){this._readonly!==A&&(this.$container.style.cursor=A?"not-allowed":"grab",this._readonly=A),this.$container.removeEventListener("touchmove",this._onTouchMove),A||this.$container.addEventListener("touchmove",this._onTouchMove,{passive:!1})}},{key:"canDrag",get:function(){var A=this.$content.offsetHeight;return!this.readonly&&A>this.$container.clientHeight}}]),i}();return f=i}
|
|
31
31
|
/*
|
|
32
|
-
* @ezuikit/control-time-line v1.0.
|
|
33
|
-
* Copyright (c) 2025-12-
|
|
32
|
+
* @ezuikit/control-time-line v1.0.6
|
|
33
|
+
* Copyright (c) 2025-12-31 Ezviz-OpenBiz
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/function S(){if(p)return _;p=1;var t=e,i=r,a=E(),n=y(),o=A,s={zh:{title:"包含{{len}}段录像",foldTitle:"{{len}}个录像"},en:{title:"Includes {{len}} {{unit}}",foldTitle:"{{len}} {{unit}}"}};var g={current:new Date,language:"zh",timeSections:[],readOnly:!1,className:"",timeWidth:0,width:"100%",timePointColor:"#1890ff",timeTextColor:"#FFF",timeScaleColor:"#FFF",timeSectionColor:"rgba(24, 144, 255, 0.5)",timeAxisBgColor:"#000",onChange:function(){},onDragStart:function(){},onDragging:function(){},onDragEnd:function(){},onDestroy:function(){}},l=function(){function A(A,e){if(this._current=new Date,this._readOnly=!1,this._width=0,this._height=0,this._destroyed=!1,this._timeWidth=0,this._timeSections=[],this.$container=A,!A)throw new Error("container is required");var a,r;this.options=t(g,e,{clone:!1}),this.options.timeSections&&Array.isArray(this.options.timeSections)&&(this._timeSections=this.options.timeSections),this.options.readOnly&&(this.readOnly=this.options.readOnly),this.options.className&&this.$container.classList.add(this.options.className),this.$container.style.position="relative",this.options.current&&(a=this.options.current,null!=(r=Date)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](a):a instanceof r)?this._current=this.options.current||new Date:this._current=new Date,this.i18n=new i(t(s,this.options.locales||{},{clone:!1}),{defaultLocale:this.options.language||"zh"}),this._timeWidth=this.options.timeWidth||0,this._resize(this.options.width||"100%",this.options.height)}var e,a,r=A.prototype;return r.setReadOnly=function(A){this.readOnly=A},r.update=function(A){this._current=A},r.updateTimeSections=function(A){A&&Array.isArray(A)&&(this._timeSections=A)},r.resize=function(A,e){this._resize(A,e)},r._resize=function(A,e){var t="";/^\d+(\.\d+)?$/.test(A+"")?t+="width: "+A+"px;":A&&(t+="width: "+A+";"),/^\d+(\.\d+)?$/.test(e+"")?t+="height: "+e+"px;":e&&(t+="height: "+e+";"),this.$container&&(this.$container.style.cssText+=t),this._width=Math.floor(this.$container.clientWidth),this._height=Math.floor(this.$container.clientHeight)},r.setTimeWidth=function(A){[0,1,2,3,4,5].includes(A)&&(this._timeWidth=A)},r.destroy=function(){this._current=null,null==this.options.onDestroy||this.options.onDestroy.call(this.options),this._timeSections=[],this._readOnly=!1,this._destroyed=!0},e=A,(a=[{key:"current",get:function(){return this._current},set:function(A){this._current=A}},{key:"readOnly",get:function(){return this._readOnly},set:function(A){this._readOnly!==A&&(this._readOnly=A,this.$container.style.cursor=A?"not-allowed":"pointer")}},{key:"timeSections",get:function(){return this._timeSections}},{key:"width",get:function(){return this._width}},{key:"height",get:function(){return this._height}},{key:"timeWidth",get:function(){return this._timeWidth}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(e.prototype,a),A}();l.LOCALES=s;var C=function(){function A(){}return A.toDate=function(A){var e,t,i=null;return"string"==typeof A&&A.includes(":")?i=new Date(A):"string"!=typeof A&&"number"!=typeof A||!/\d/.test(A+"")||10!==(A+"").length?"string"!=typeof A&&"number"!=typeof A||!/\d/.test(A+"")||13!==(A+"").length?(e=A,i=(null!=(t=Date)&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t)?A:new Date):i=new Date(+A):i=new Date(1e3*+A),i},A.formatDateToHHmmss=function(e){var t=A.toDate(e);if(t){var i=t.getHours(),a=t.getMinutes(),r=t.getSeconds();return(i>9?i:"0"+i)+":"+(a>9?a:"0"+a)+":"+(r>9?r:"0"+r)}return"00:00:00"},A.subTime=function(A){return+A>9?A+"":"0"+A},A.tranTime=function(e,t){void 0===t&&(t="YYYY-MM-DD HH:mm:ss");var i=A.toDate(e);return i?"YYYY-MM-DD"===t?i.getFullYear()+"-"+A.subTime(i.getMonth()+1)+"-"+A.subTime(i.getDate()):"HH:mm:ss"===t?A.subTime(i.getHours())+":"+A.subTime(i.getMinutes())+":"+A.subTime(i.getSeconds()):"HH"===t?A.subTime(i.getHours()):"mm:ss"===t?A.subTime(i.getMinutes())+":"+A.subTime(i.getSeconds()):"HH:mm"===t?A.subTime(i.getHours())+":"+A.subTime(i.getMinutes()):"YYYYMMDDTHHmmssZ"===t?i.getFullYear()+""+A.subTime(i.getMonth()+1)+A.subTime(i.getDate())+"T"+A.subTime(i.getHours())+A.subTime(i.getMinutes())+A.subTime(i.getSeconds())+"Z":i.getFullYear()+"-"+A.subTime(i.getMonth()+1)+"-"+A.subTime(i.getDate())+" "+A.subTime(i.getHours())+":"+A.subTime(i.getMinutes())+":"+A.subTime(i.getSeconds()):""},A.timeToSecond=function(A){var e=A.split(":");return 60*Number(e[0])*60+60*Number(e[1])+(Number(e[2])||0)},A.minuteToTime=function(A){var e=Math.floor(A/60),t=A%60;return(e>9?e:"0"+e)+":"+(t>9?t:"0"+t)},A.timeToMinute=function(A){var e=A.split(":");return 60*Number(e[0])+Number(e[1])},A.isOverlap=function(A,e,t,i){return Math.max(A,t)<=Math.min(e,i)},A.tranTimeToString=function(e,t){var i,a,r=Math.floor((null==(i=A.toDate(t))?void 0:i.getTime())-(null==(a=A.toDate(e))?void 0:a.getTime()))/1e3,n=r%60,o=Math.floor(r/60);return(o>0?A.subTime(o)+"'":"0'")+A.subTime(n)+"''"},A}(),I=[[1,10,10,"单位 1秒"],[60,20,5,"单位 1分钟"],[600,20,6,"单位 10分钟"],[3600,30,6,"单位 1小时"],[14400,40,2,"单位 4小时"],[43200,80,2,"单位 12小时"]],c=[[1,10,10,"单位 1分钟"],[10,20,5,"单位 10分钟"],[30,20,6,"单位 30分钟"],[60,30,6,"单位 1小时"],[120,40,2,"单位 2小时"],[240,80,2,"单位 4小时"]],h={targets:[],root:null,rootMargin:"0px",threshold:.1,loadingClass:"ez-lazy-image-loading",loadedClass:"ez-lazy-image-loaded",loadedErrorClass:"ez-lazy-image-error",onLoadError:function(){}},B=function(){function A(A){void 0===A&&(A={}),this.options=Object.assign({},h,A),this._observer=null,this._init()}var e=A.prototype;return e._init=function(){var e=this;A.isSupported&&(this._observer=new IntersectionObserver((function(A){A.forEach((function(A){var t;A.isIntersecting&&(e._loadImage(A.target),null==(t=e._observer)||t.unobserve(A.target))}))}),this.options)),this.addImages(this.options.targets)},e._loadImage=function(A){var e,t,i,a=this;if(A&&!(null==(e=A.classList)?void 0:e.contains(this.options.loadingClass))&&!(null==(t=A.classList)?void 0:t.contains(this.options.loadedClass))&&!(null==(i=A.classList)?void 0:i.contains(this.options.loadedErrorClass))&&A.hasAttribute("data-src")){var r=this;A.classList.add(this.options.loadingClass);var n=new Image;n.onload=function(){A.src=A.dataset.src,A.classList.remove(a.options.loadingClass),A.classList.add(a.options.loadedClass),A.dispatchEvent(new Event("lazyloaded"))},n.onerror=function(e){A.classList.remove(a.options.loadingClass),A.classList.add(a.options.loadedErrorClass),null==r.options.onLoadError||r.options.onLoadError.call(r.options,A)},n.src=A.dataset.src}},e.addImages=function(e){var t=this;(null==e?void 0:e.length)&&e.forEach((function(e){var i;(null==e?void 0:e.hasAttribute("data-src"))&&(A.isSupported&&t._observer?null==(i=t._observer)||i.observe(e):t._loadImage(e))}))},e.destroy=function(){this._observer&&(this._observer.disconnect(),this._observer=null)},A}();function x(){return x=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},x.apply(this,arguments)}function d(A,e){return d=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},d(A,e)}B.isSupported="IntersectionObserver"in window;var Q=Object.assign({},g,{height:400,width:"100%",timeWidth:0,readOnly:!1,timePointColor:"#648FFC",timeTextColor:"#666666",timeScaleColor:"transparent",timeSectionColor:"#369FFF",timeAxisBgColor:"#BDCDFF",currentTimeBgColor:"#648FFC",currentTimeColor:"#FFFFFF",showTimeWidthBtn:!0,showCoverFold:!0}),f=function(A){function e(e,i){var a;return(a=A.call(this,e,t(Q,i,{clone:!1}))||this)._isTouchStart=!1,a._dragScroll=null,a._moveStartX=0,a._moveStartY=0,a._imageLazyLoader=null,a._imageLazyLoaderPicker=null,a.state={start:"00:00:00",end:"24:00:00",current:null,timeArr:[],availTimeLine:[],index:0},a._onImageError=a._onImageError.bind(a),a._plusClick=a._plusClick.bind(a),a._minusClick=a._minusClick.bind(a),a._onPickerClose=a._onPickerClose.bind(a),a._onClickItem=a._onClickItem.bind(a),a._onClickCoverFold=a._onClickCoverFold.bind(a),a._imageLazyLoader=new B({root:a.$container,onLoadError:function(A){null==a._onImageError||a._onImageError.call(a,A)}}),a._render(),a.options.timeSections&&Array.isArray(a.options.timeSections)&&a.updateTimeSections(a.options.timeSections),a}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&d(A,e)}(e,A);var i,r,s=e.prototype;return s.setReadOnly=function(e){A.prototype.setReadOnly.call(this,e),this._dragScroll&&(this._dragScroll.readonly=e)},s.setTimeWidth=function(e){c[e]&&(A.prototype.setTimeWidth.call(this,e),this._matchTimeDot())},s.updateTimeSections=function(e,t){A.prototype.updateTimeSections.call(this,e);var i=e.map((function(A){return x({},A,{startTime:C.formatDateToHHmmss(A.startTime),endTime:C.formatDateToHHmmss(A.endTime)})}));if(i.length>0){void 0===t&&(t=i.length-1);var a=this.state.current;this._setState({availTimeLine:i,start:i[t].startTime,end:i[t].endTime,current:null===a?i[t].startTime:a}),this._matchTimeDot()}else this._setState({availTimeLine:[],current:C.formatDateToHHmmss(this.current||(new Date).getTime())}),this._matchTimeDot()},s.update=function(A){var e;A&&!(null==(e=this._dragScroll)?void 0:e.isDragging)&&(this._setState({current:C.tranTime(A,"HH:mm:ss")}),this._currentOffsetH())},s.destroy=function(){var e;if(this._scrollTimer&&(clearInterval(this._scrollTimer),this._scrollTimer=null),this._$currentTime)try{this.$container.removeChild(this._$currentTime),this._$currentTime=null}catch(A){}if(this._$itemContainer&&this._$itemList)try{this._$itemContainer.removeChild(this._$itemList),this._$itemList=null}catch(A){}if(this._$itemContainer)try{this.$container.removeChild(this._$itemContainer),this._$itemContainer=null}catch(A){}if(this._$op)try{this.$container.removeChild(this._$op),this._$op=null}catch(A){}this._picker&&(this._picker.destroy(),this._picker=null),this._imageLazyLoader&&(this._imageLazyLoader.destroy(),this._imageLazyLoader=null),this._imageLazyLoaderPicker&&(this._imageLazyLoaderPicker.destroy(),this._imageLazyLoaderPicker=null),this._removeEventListener(),null==(e=this._dragScroll)||e.destroy(),this._dragScroll=null,A.prototype.destroy.call(this)},s._setState=function(A){var e=this;Object.keys(A).forEach((function(t){var i,a;"current"===t&&A[t]?(e._setCurrentDOM(A[t]),e.state.current===A[t]||(null==(i=e._dragScroll)?void 0:i.isDragging)||(e.state[t]=A[t],e.current=new Date(C.tranTime((null==(a=e.timeSections[0])?void 0:a.endTime)||(new Date).getTime(),"YYYY-MM-DD")+" "+A[t]),null==e.options.onChange||e.options.onChange.call(e.options,e.current))):e.state[t]=A[t]}))},s._setCurrentDOM=function(A){this._$currentTime&&(this._$currentTime.querySelector(".ez-time-line-current-value").innerHTML=A)},s._matchTimeDot=function(){for(var A=this._scaleWidth,e=[],t=C.timeToMinute("24:00:00"),i=t=Math.floor(t/A)*A;i>=0;){var a=0,r=0;i==t&&(a=70),0==i&&(r=this.$container.clientHeight-70);var n=C.minuteToTime(i);e.push({id:i,current:n,label:"a"+i,marginTop:a,marginBottom:r,recArr:[],coverArr:this._filterTimeSectionsByTime(n)}),i-=A}this._setState({timeArr:e}),this._matchRecTimeDot()},s._matchRecTimeDot=function(){var A=this.state,e=A.availTimeLine,t=A.timeArr,i=this._scaleWidth,a=e.length;if(0===a)for(var r=0;r<t.length;r++)t[r].recArr=[];else{for(var n=0;n<t.length;n++)t[n].recArr=[];for(var o=0;o<a;o++){var s,g,l=e[o],I=C.timeToSecond(l.startTime),c=C.timeToSecond(l.endTime),h=Math.floor(I/(60*i))*i;s=(I-60*h)/i;var B=Math.floor(c/(60*i))*i;g=(c-60*B)/i;for(var E=0;E<t.length;E++)if(t[E].id==h&&t[E].id==B){var x=g-s,d=60-g;t[E].recArr.push({height:x,top:d})}else t[E].id==h?t[E].recArr.push({height:60-s,top:0}):t[E].id==B?t[E].recArr.push({height:g,top:60-g}):t[E].id>h&&t[E].id<B&&t[E].recArr.push({height:60,top:0})}}this._setState({timeArr:t}),this._renderDateLine()},s._renderDateLine=function(){var A=this,e=this.state.timeArr,t=this._$itemList;t.innerHTML="",e.forEach((function(e,i){var a,r=document.createElement("div");r.setAttribute("class","ez-time-line-time-scale-area"),e.marginTop&&(r.style.cssText+="margin-top: "+e.marginTop+"px;"),e.marginBottom&&(r.style.cssText+="margin-bottom: "+e.marginBottom+"px;"),r.style.cssText+="border-right-color: "+(A.options.timeAxisBgColor||"rgba(189, 205, 255, 1)")+";",r.setAttribute("data-time",e.current),r.setAttribute("data-index",i+""),document.createElement("div").setAttribute("class","ez-time-line-scale");var n="";e.coverArr.length&&A.options.showCoverFold&&(n+='\n <div class="ez-time-line-time-cover-fold '+(e.coverArr.length>1?"ez-time-line-time-cover-fold-multiple":"")+'"\n data-start="'+e.current+'">\n '+(e.coverArr.length>1?'<div class="ez-time-line-cover-fold-placeholder" style="color: #FFF"></div>':"")+'\n <div class="ez-time-line-time-cover-fold-img">\n <img data-src="'+A._setImageScr(e.coverArr[0].coverPic)+'" class="ez-time-line-img"/>\n <span class="ez-time-line-time-cover-fold-len">\n '+(e.coverArr.length>1?A.i18n.t("foldTitle",{len:e.coverArr.length,unit:"videos"}):""+C.tranTime(e.coverArr[0].startTime,"HH:mm"))+"\n </span>\n "+(1===e.coverArr.length?'<span class="ez-time-line-time-cover-fold-time">'+C.tranTimeToString(e.coverArr[0].startTime,e.coverArr[0].endTime)+"</span>":"")+'\n <span class="ez-time-line-time-cover-fold-pause"><svg viewBox="0 0 20 20" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="pause">\n\t\t <path d="M9.43914 2.47881L13.4688 8.4912C14.3594 9.81998 13.4071 11.6047 11.8074 11.6047L3.74811 11.6047C2.14849 11.6047 1.19616 9.81998 2.08675 8.4912L6.11641 2.47881C6.90863 1.2968 8.64693 1.2968 9.43914 2.47881Z" fill-rule="evenodd" transform="matrix(0,1,-1,0,16.5781,2.22229)" />\n </svg>\n </span>\n </div>\n </div>'),e.recArr.forEach((function(e){n+='<div class="ez-time-line-time-unavail"\n style="height: '+e.height+"px;background-color:"+(A.options.timeSectionColor||"#369FFF")+"; top: "+e.top+'px">\n </div>'})),n+="<div id="+e.label+' class="ez-time-line-time-label" style="color: '+(A.options.timeTextColor||"#666")+'">'+e.current+"</div>",r.innerHTML=n,t.appendChild(r),e.coverArr.length&&A.options.showCoverFold&&(null==(a=A._imageLazyLoader)||a.addImages(t.querySelectorAll("img.ez-time-line-img")||[]))})),this._currentOffsetH()},s._currentOffsetH=function(){var A=this.state.current;if(A){var e,t=(86400-C.timeToSecond(A)||0)/this._scaleWidth;null==(e=this._dragScroll)||e.scrollToY(t+60,!1)}},s._render=function(){var A=this;if(this._$currentTime=document.createElement("div"),this._$currentTime.classList.add("ez-time-line-current"),this._$currentTime.innerHTML='<div class="ez-time-line-current-content" style="color: '+(this.options.currentTimeBgColor||"#648FFC")+'">\n <span class="ez-time-line-current-tip"><svg viewBox="0 0 57 24" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="tip">\n <path class="ez-time-line-icon-tip" fill-rule="evenodd" d="m4,0l44,0c2.2091,0 4,1.7909 4,4l0,3.8218l4.9399,3.3572c0.5839,0.3968 0.5839,1.2574 0,1.6542l-4.9399,3.3572l0,3.8096c0,2.2091 -1.7909,4 -4,4l-44,0c-2.2091,0 -4,-1.7909 -4,-4l0,-16c0,-2.2091 1.7909,-4 4,-4z"/>\n </svg></span>\n <span class="ez-time-line-current-tip-line" style="background-color: '+(this.options.timePointColor||"#648FFC")+';"></span>\n <div class="ez-time-line-current-value" style="color: '+(this.options.currentTimeColor||"#FFFFFF")+'">00:00:00</div>\n </div>',this.$container.appendChild(this._$currentTime),this._$itemContainer=document.createElement("div"),this._$itemContainer.classList.add("ez-time-line-container"),this.$container.appendChild(this._$itemContainer),this._dragScroll=new n(this._$itemContainer,{hideScrollbar:!0,onChange:function(e){var t=A._offsetYToTime(e.y);t[1]!==A.state.current&&A._setCurrentDOM(t[0]>=86400?"23:59:59":t[1])},onDragStart:function(e){A._moveStartX=e.clientX,A._moveStartY=e.clientY,null==A.options.onDragStart||A.options.onDragStart.call(A.options,A.state.current)},onDragging:function(){null==A.options.onDragging||A.options.onDragging.call(A.options,A.state.current)},onDragEnd:function(){var e,t=A._offsetYToTime(null==(e=A._dragScroll)?void 0:e.currentY);t[1]!==A.state.current&&A._setState({current:t[0]>=86400?"23:59:59":t[1]}),null==A.options.onDragEnd||A.options.onDragEnd.call(A.options,A.state.current)}}),/\d/.test(this.options.height))this._$itemContainer.style.cssText+="height: "+this.options.height+"px";else if("string"==typeof this.options.height)this._$itemContainer.style.cssText+="height: "+this.options.height;else{var e=this.$container.clientHeight;this._$itemContainer.style.cssText+="height: "+e+"px"}this._$itemList=document.createElement("div"),this._$itemList.classList.add("ez-time-line-item"),this._dragScroll.$content.appendChild(this._$itemList),this.options.showTimeWidthBtn&&(this._$op=document.createElement("div"),this._$op.classList.add("ez-time-line-op"),this._$op.innerHTML='<span class="ez-time-line-op-wrapper"><span class="ez-time-line-icon-plus">\n <svg viewBox="0 0 16 16" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="plus">\n <path d="M0 0L10.6667 0" stroke="rgb(44,44,44)" stroke-linecap="round" stroke-width="1.5" transform="matrix(0,1,-1,0,8,2.66663)"/>\n <path d="M2.66669 8L13.3334 8" stroke="rgb(44,44,44)" stroke-linecap="round" stroke-width="1.5"/>\n </svg>\n </span> <span class="ez-time-line-icon-minus">\n <svg viewBox="0 0 16 16" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="minus">\n <path d="M2.66669 8L13.3334 8" stroke="rgb(44,44,44)" stroke-linecap="round" stroke-width="1.5"/>\n </svg>\n </span></span>',this.$container.appendChild(this._$op)),this.options.showCoverFold&&(this._picker=new a(null,{isMobile:!0,wrapClassName:"ez-time-line-picker",onOpenChange:function(e){var t,i;null==(i=A.options)||null==(t=i.onPickerOpenChange)||t.call(i,e)}}),this._imageLazyLoaderPicker=new B({root:this._picker.$body,onLoadError:function(e){null==A._onImageError||A._onImageError.call(A,e)}})),this._addEventListener()},s._addEventListener=function(){var A,e;this.options.showTimeWidthBtn&&this._$op&&(null==(A=this._$op.querySelector(".ez-time-line-icon-plus"))||A.addEventListener("click",this._plusClick,!1),null==(e=this._$op.querySelector(".ez-time-line-icon-minus"))||e.addEventListener("click",this._minusClick,!1)),this._matchTimeDot(),this._picker&&(this._delegatePickerClose=o(this._picker.$body,".ez-time-line-picker-close","click",this._onPickerClose,!1),this._delegateItemContent=o(this._picker.$body,".ez-time-line-picker-item-content","click",this._onClickItem,!1),this._delegateCoverFold=o(this._$itemList,".ez-time-line-time-cover-fold","click",this._onClickCoverFold,!1))},s._removeEventListener=function(){var A,e,t,i;this.options.showTimeWidthBtn&&this._$op&&(null==(A=this._$op.querySelector(".ez-time-line-icon-plus"))||A.removeEventListener("click",this._plusClick),null==(e=this._$op.querySelector(".ez-time-line-icon-minus"))||e.removeEventListener("click",this._minusClick)),this._picker&&(null==(i=this._picker.$body)||null==(t=i.querySelector(".ez-time-line-picker-close"))||t.removeEventListener("click",this._onPickerClose),this._delegateItemContent&&(this._delegateItemContent.forEach((function(A){A.destroy()})),this._delegateItemContent=null),this._delegatePickerClose&&(this._delegatePickerClose.forEach((function(A){A.destroy()})),this._delegatePickerClose=null),this._delegateCoverFold&&(this._delegateCoverFold.forEach((function(A){A.destroy()})),this._delegateCoverFold=null))},s._plusClick=function(){var A=this.timeWidth+1;A>0&&A<c.length&&this.setTimeWidth(A)},s._minusClick=function(){var A=this.timeWidth-1;A>=0&&A<c.length&&this.setTimeWidth(Math.floor(A))},s._timeSectionsToGroupsByHour=function(A){var e={};return A.forEach((function(A,t){var i=C.tranTime(A.startTime,"HH");e[+i]?e[+i].push(x({},A,{_index:t})):e[+i]=[x({},A,{_index:t})]})),e},s._filterTimeSectionsByTime=function(A){if(!A)return[];var e=C.timeToSecond(A+":00"),t=C.timeToSecond(A+":00")+60*this._scaleWidth;return this.timeSections.filter((function(A){var i=C.timeToSecond(C.tranTime(A.startTime,"HH:mm:ss"));return i>=e&&i<t}))},s._renderPickerContent=function(A){var e,t,i,a,r,n=this,o=this._filterTimeSectionsByTime(A),s=this._timeSectionsToGroupsByHour(o);null==(t=this._picker)||null==(e=t.innerHTML)||e.call(t,'<div class="ez-time-line-picker-container">\n <div class="ez-time-line-picker-header">\n <span class="ez-time-line-picker-close">\n <svg viewBox="0 0 24 24" fill="none" width="1em" height="1em" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="close">\n\t <path d="M0 0L15.9998 0" stroke-linecap="round" stroke-width="1.5" transform="matrix(0.707099,0.707114,-0.707114,0.707099,6.34277,6.34326)" />\n\t\t <path d="M0 0L15.9998 0" stroke-linecap="round" stroke-width="1.5" transform="matrix(0.707099,-0.707114,0.707114,0.707099,6.34277,17.6567)" />\n </svg>\n </span>\n '+this.i18n.t("title",{len:o.length,unit:o.length>1?"videos":"video"})+'\n </div>\n <div class="ez-time-line-picker-content">\n <div class="ez-time-line-picker-list">\n '+Object.keys(s).reverse().map((function(A){return'<div class="ez-time-line-picker-item">\n <div class="ez-time-line-picker-item-title">'+A+':00</div>\n <div class="ez-time-line-picker-item-list">\n '+s[A].reverse().map((function(A){return'<div class="ez-time-line-picker-item-content"\n data-start="'+C.tranTime(A.startTime,"YYYYMMDDTHHmmssZ")+'"\n data-end="'+C.tranTime(A.endTime,"YYYYMMDDTHHmmssZ")+'"\n data-index="'+A._index+'">\n <span class="ez-time-line-picker-item-time">'+C.tranTime(A.startTime,"HH:mm")+'</span>\n <span class="ez-time-line-picker-item-duration">\n '+C.tranTimeToString(A.startTime,A.endTime)+'\n </span>\n <img class="ez-time-line-picker-item-cover" data-src="'+n._setImageScr(A.coverPic)+'"/>\n </div>'})).join("")+"\n </div>\n </div>"})).join("")+"\n </div>\n </div>\n </div>\n </div>"),(null==(i=this._picker)?void 0:i.$body)&&(null==(r=this._imageLazyLoaderPicker)||r.addImages((null==(a=this._picker)?void 0:a.$body.querySelectorAll("img"))||[]))},s._onImageError=function(A){if(!A.hasAttribute("data-error")){var e,t=document.createElement("div");t.classList.add("ez-time-line-item-cover-placeholder"),t.innerHTML='\n <svg viewBox="0 0 19.1613 19.4583" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="picture">\n <path xmlns="http://www.w3.org/2000/svg" id="形状结合" d="M15.3276 2.63477L3.83173 2.63477C2.70848 2.63477 1.79541 3.55027 1.79541 4.68419L1.79541 14.7737C1.79541 15.9076 2.70848 16.8231 3.83173 16.8231L15.3276 16.8231C16.4504 16.8231 17.364 15.9074 17.364 14.7737L17.364 4.68419C17.364 3.55027 16.4509 2.63477 15.3276 2.63477ZM3.83247 3.851L15.3284 3.851C15.7936 3.851 16.1671 4.22551 16.1671 4.68429L16.1671 14.7738C16.1671 15.2323 15.7932 15.6071 15.3284 15.6071L3.83247 15.6071C3.36725 15.6071 2.99373 15.2326 2.99373 14.7738L2.99373 12.2622L6.7356 9.56381L6.78139 9.53916C6.84532 9.51493 6.91856 9.52524 6.9742 9.56947L13.2644 14.5698L13.3381 14.62C13.5918 14.7666 13.9197 14.7063 14.105 14.4658C14.3089 14.2014 14.263 13.8192 14.0026 13.6122L7.71239 8.61184L7.60526 8.5346C7.12945 8.22451 6.51026 8.23473 6.04222 8.57224L2.99373 10.7706L2.99373 4.68429C2.99373 4.22551 3.36725 3.851 3.83247 3.851ZM10.5794 7.29679C10.5794 6.06542 11.5624 5.0672 12.7749 5.0672C13.9875 5.0672 14.9705 6.06542 14.9705 7.29679C14.9705 8.52817 13.9875 9.52639 12.7749 9.52639C11.5624 9.52639 10.5794 8.52817 10.5794 7.29679ZM13.7722 7.2967C13.7722 6.73699 13.3254 6.28325 12.7742 6.28325C12.223 6.28325 11.7762 6.73699 11.7762 7.2967C11.7762 7.85642 12.223 8.31015 12.7742 8.31015C13.3254 8.31015 13.7722 7.85642 13.7722 7.2967Z" fill-rule="evenodd"/>\n </svg>\n ',null==(e=A.parentNode)||e.appendChild(t),A.setAttribute("data-error","true"),A.remove()}},s._onPickerClose=function(){this._picker&&(this._picker.open=!1)},s._onClickItem=function(A){var e,t,i=null==(t=A.delegateTarget)||null==(e=t.getAttribute)?void 0:e.call(t,"data-index");this._picker&&(this._picker.open=!1),null==this.options.onPickerSelect||this.options.onPickerSelect.call(this.options,this.timeSections[+i])},s._onClickCoverFold=function(A){var e,t,i;A.preventDefault();var a=null==(i=A.delegateTarget)||null==(t=i.parentElement)||null==(e=t.getAttribute)?void 0:e.call(t,"data-time"),r=Math.abs(this._moveStartX-A.clientX),n=Math.abs(this._moveStartY-A.clientY);this._picker&&a&&!(r>=1||n>=1)&&(this._renderPickerContent(a),this._picker.open=!0)},s._setImageScr=function(A){if(A){var e="x=200&"+(this.options.coverQuery||"");return A+(A.includes("?")?"&":"?")+e}return""},s._offsetYToTime=function(A){var e,t=A;A<60&&(t=60,null==(e=this._dragScroll)||e.scrollToY(t));var i=86400-Math.floor((t-60)*this._scaleWidth);return[i,C.subTime(Math.floor(i/3600))+":"+C.subTime(Math.floor(i%3600/60))+":"+C.subTime(i%60)]},i=e,(r=[{key:"_scaleWidth",get:function(){return(c[this.timeWidth]||c[0])[0]}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(i.prototype,r),e}(l);function u(){return u=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},u.apply(this,arguments)}function m(A,e){return m=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},m(A,e)}var S={height:36,dpr:window.devicePixelRatio||2,scaleOffsetTop:4,showYearMonthDay:!0},D=function(A){function e(e,i){var a;return(a=A.call(this,e,t(S,i,{clone:!0}))||this)._$canvas=null,a._ctx=null,a._timeWidthArray=I[0],a._centerPositionX=0,a._isMouseDown=!1,a._mousePosition=0,a._oldTime=null,a._isOver=!1,a._moved=!1,a._isCtrlKeyDown=!1,a._lastTouchDist=0,a.$container=e,a._mousemoveFun=a._mousemoveFun.bind(a),a._mouseoverFun=a._mouseoverFun.bind(a),a._mouseleaveFun=a._mouseleaveFun.bind(a),a._mousedownFun=a._mousedownFun.bind(a),a._mouseUpFun=a._mouseUpFun.bind(a),a._mousewheelFun=a._mousewheelFun.bind(a),a._touchstartFun=a._touchstartFun.bind(a),a._touchmoveFun=a._touchmoveFun.bind(a),a._touchendFun=a._touchendFun.bind(a),a._ctrlKeyDownFun=a._ctrlKeyDownFun.bind(a),a._ctrlKeyUpFun=a._ctrlKeyUpFun.bind(a),a._init(),a}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&m(A,e)}(e,A);var i,a,r=e.prototype;return r._init=function(){this._$canvas=document.createElement("canvas"),this._ctx=this._$canvas.getContext("2d"),this.readOnly||(this._$canvas.style.cssText+="cursor: pointer;"),this.$container.appendChild(this._$canvas),this.resize(this.width,this.height),this._update({current:this.current,timeWidth:this.timeWidth,timeSections:this.timeSections}),this._addEventListener()},r.resize=function(e,t){A.prototype.resize.call(this,e,t),this._$canvas&&e&&(this._$canvas.width=this.width*this.options.dpr,this._$canvas.style.cssText+="width: "+this.width+"px;"),this._$canvas&&t&&(this._$canvas.height=this.height*this.options.dpr,this._$canvas.style.cssText+="height: "+this.height+"px;"),this._draw()},r.setTimeWidth=function(A){this._update({timeWidth:A})},r.updateTimeSections=function(A){this._update({timeSections:A})},r.update=function(A){A&&!this._isMouseDown&&this._update({current:new Date(C.tranTime(A,"YYYY-MM-DD HH:mm:ss"))})},r._update=function(e){var t,i,a;void 0===e&&(e={}),(null==e?void 0:e.current)&&(t=e.current,null!=(i=Date)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](t):t instanceof i)&&(this.current=e.current),(null==e?void 0:e.timeSections)&&A.prototype.updateTimeSections.call(this,this._mergeTimeSections(e.timeSections)),"number"==typeof(null==e?void 0:e.timeWidth)&&(null==e?void 0:e.timeWidth)<I.length&&(A.prototype.setTimeWidth.call(this,e.timeWidth),this._timeWidthArray=I[Math.floor(this.timeWidth)]),"number"==typeof(null==e?void 0:e.timeWidth)&&this._timeWidthArray&&this._timeWidthArray[3]&&(null==(a=this._$canvas)||a.setAttribute("data-title",this._timeWidthArray[3])),this._draw()},r.setReadOnly=function(e){A.prototype.setReadOnly.call(this,e),this._$canvas&&(this._$canvas.style.cssText+="cursor: "+(e?"not-allowed":"pointer"))},r.destroy=function(){if(this._removeEventListener(),this._$canvas)try{this.$container.removeChild(this._$canvas),this._$canvas=null}catch(A){}A.prototype.destroy.call(this)},r._draw=function(){this._ctx&&(this._ctx.fillStyle=this.options.timeAxisBgColor,this._ctx.fillRect(0,0,this.width*this.options.dpr,this.height*this.options.dpr)),this._drawSections(),this._drawScale()},r._drawScale=function(){var A=1*this.options.dpr;this._centerPositionX=parseInt(this.width*this.options.dpr/2+"");for(var e={x:this.width*this.options.dpr/2,y:this.height*this.options.dpr},t=Math.floor(this.current.getTime()/1e3),i=(t-Math.floor(new Date(C.tranTime(new Date(1e3*t),"YYYY-MM-DD")+" 00:00:00").getTime()/1e3))%this._timeWidthArray[0],a=this.height*this.options.dpr/20,r=this._curScaleSpacing*this.options.dpr,n=Math.floor(this._centerPositionX+(this._timeWidthArray[0]-i)/this._timeWidthArray[0]*r),o=t-i,s=o+this._timeWidthArray[0],g=n-r;g>0;g-=r)0==(o-Math.floor(new Date(C.tranTime(new Date(1e3*o),"YYYY-MM-DD")+" 00:00:00").getTime()/1e3))%(this._timeWidthArray[0]*this._timeWidthArray[2])?(this._drawSolidLine(g,a,g,a+(this.options.scaleOffsetTop+4)*this.options.dpr,A),this._drawTextString(C.tranTime(new Date(1e3*o)),g,a+(this.options.scaleOffsetTop+4+4)*this.options.dpr,"center")):this._drawSolidLine(g,a,g,a+this.options.scaleOffsetTop*this.options.dpr,A),o-=this._timeWidthArray[0];for(var l=n;l<=this.width*this.options.dpr;l+=r)0==(s-Math.floor(new Date(C.tranTime(new Date(1e3*s),"YYYY-MM-DD")+" 00:00:00").getTime()/1e3))%(this._timeWidthArray[0]*this._timeWidthArray[2])?(this._drawSolidLine(l,a,l,a+(this.options.scaleOffsetTop+4)*this.options.dpr,A),this._drawTextString(C.tranTime(new Date(1e3*s)),l,a+(this.options.scaleOffsetTop+4+4)*this.options.dpr,"center")):this._drawSolidLine(l,a,l,a+this.options.scaleOffsetTop*this.options.dpr,A),s+=this._timeWidthArray[0];this._drawSolidLine(e.x,0,e.x,e.y,A,this.options.timePointColor)},r._drawSolidLine=function(A,e,t,i,a,r){this._ctx&&(this._ctx.save(),this._ctx.strokeStyle=null!=r?r:this.options.timeScaleColor,this._ctx.lineWidth=a,this._ctx.beginPath(),this._ctx.moveTo(A,e),this._ctx.lineTo(t,i),this._ctx.stroke(),this._ctx.restore())},r._drawTextString=function(A,e,t,i){if(this._ctx){var a=A.split(" ");this._ctx.font=12*this.options.dpr*1+"px serif",this._ctx.fillStyle=this.options.timeTextColor,this._ctx.textAlign=i||"left",this._timeWidthArray[0]%60==0&&(a[1]=a[1].replace(/:00$/,"")),this._ctx.fillText(a[1],e,t+8*this.options.dpr),!this.options.showYearMonthDay||"00:00:00"!==a[1]&&"00:00"!==a[1]&&this._timeWidthArray[0]*this._timeWidthArray[2]!=86400||(this._ctx.textAlign=i||"left",this._ctx.fillText(a[0],e,t+18*this.options.dpr))}},r._drawSections=function(){for(var A=this.timeSections||[],e=0;e<A.length;e++){var t=this._findPosition(A[e]);this._ctx&&C.isOverlap(0,this.width*this.options.dpr,t.x1,t.x2)&&(this._ctx.fillStyle=this.options.timeSectionColor,this._ctx.fillRect(t.x1,0,t.x2-t.x1,this.height*this.options.dpr))}},r._findPosition=function(A){var e=(parseInt((A.startTime-this.current.getTime())/1e3+"",10)/this._timeWidthArray[0]*this._curScaleSpacing+this.width/2)*this.options.dpr;return{x1:e,x2:e+parseInt((A.endTime-A.startTime)/1e3+"",10)/this._timeWidthArray[0]*this._curScaleSpacing*this.options.dpr}},r._mergeTimeSections=function(A){if(0===A.length)return A;for(var e=[(A=A.map((function(A){return 10===(A.startTime+"").length&&(A.startTime=1e3*A.startTime),10===(A.endTime+"").length&&(A.endTime=1e3*A.endTime),u({},A,{startTime:A.startTime,endTime:A.endTime})})))[0]],t=1;t<A.length;t++){var i=e[e.length-1],a=A[t];i.endTime>=a.startTime?i.endTime=Math.max(i.endTime,a.endTime):e.push(a)}return e},r._addEventListener=function(){this._$canvas&&(this._$canvas.addEventListener("mousemove",this._mousemoveFun),this._$canvas.addEventListener("mouseover",this._mouseoverFun),this._$canvas.addEventListener("mouseleave",this._mouseleaveFun),this._$canvas.addEventListener("mousedown",this._mousedownFun),this._$canvas.addEventListener("mouseup",this._mouseUpFun),this._$canvas.addEventListener("wheel",this._mousewheelFun),this.$container.addEventListener("wheel",(function(A){A.preventDefault()}),{passive:!1}),this._$canvas.addEventListener("keydown",this._ctrlKeyDownFun),this._$canvas.addEventListener("keyup",this._ctrlKeyUpFun),document.addEventListener("keydown",this._ctrlKeyDownFun,!1),document.addEventListener("keyup",this._ctrlKeyUpFun,!1),this._$canvas.addEventListener("touchstart",this._touchstartFun,{passive:!1}),this._$canvas.addEventListener("touchmove",this._touchmoveFun,{passive:!1}),this._$canvas.addEventListener("touchend",this._touchendFun,{passive:!1}))},r._removeEventListener=function(){this._$canvas&&(this._$canvas.removeEventListener("mousemove",this._mousemoveFun),this._$canvas.removeEventListener("mouseover",this._mouseoverFun),this._$canvas.removeEventListener("mouseleave",this._mouseleaveFun),this._$canvas.removeEventListener("mousedown",this._mousedownFun),this._$canvas.removeEventListener("mouseup",this._mouseUpFun),this._$canvas.removeEventListener("wheel",this._mousewheelFun),this._$canvas.removeEventListener("keydown",this._ctrlKeyDownFun),this._$canvas.removeEventListener("keyup",this._ctrlKeyUpFun),document.removeEventListener("keydown",this._ctrlKeyDownFun),document.removeEventListener("keyup",this._ctrlKeyUpFun),this._$canvas.removeEventListener("touchstart",this._touchstartFun),this._$canvas.removeEventListener("touchmove",this._touchmoveFun),this._$canvas.removeEventListener("touchend",this._touchendFun))},r._mousedownFun=function(A){this.readOnly||(this._isMouseDown=!0,this._mousePosition=A.pageX,this._oldTime=this.current,null==this.options.onDragStart||this.options.onDragStart.call(this.options,this.current))},r._mouseoverFun=function(){this.readOnly||(this._isOver=!0)},r._mouseleaveFun=function(A){this.readOnly||(this._isOver=!1,this._moveEndOrTouchEndFun(A))},r._mouseUpFun=function(A){this._moveEndOrTouchEndFun(A)},r._mousemoveFun=function(A){if(!this.readOnly)if(this._isMouseDown&&this._isOver)this._moveUpdateFun(A.pageX);else{var e=parseInt(this.$container.offsetLeft+"",10);this._mousePosition=A.pageX-e,this._update()}},r._mousewheelFun=function(A){A.preventDefault(),this.readOnly},r._ctrlKeyDownFun=function(A){(A.ctrlKey||"Control"===A.key)&&(this._isCtrlKeyDown=!0)},r._ctrlKeyUpFun=function(A){(A.ctrlKey||"Control"===A.key)&&(this._isCtrlKeyDown=!1)},r._getTouchDistance=function(A){var e=A[0],t=A[1],i=t.clientX-e.clientX,a=t.clientY-e.clientY;return Math.sqrt(i*i+a*a)},r._touchstartFun=function(A){if(!this.readOnly)if(this._oldTime=this.current,this._isOver=!0,1===A.touches.length){var e=A.touches[0];this._isMouseDown=!0,this._mousePosition=e.clientX}else 2===A.touches.length&&(this._lastTouchDist=this._getTouchDistance(A.touches))},r._touchmoveFun=function(A){if(A.preventDefault(),A.stopPropagation(),!this.readOnly)if(1===A.touches.length){var e=A.touches[0];this._moveUpdateFun(e.clientX)}else 2===A.touches.length&&(this._getTouchDistance(A.touches),this._lastTouchDist)},r._touchendFun=function(A){this.readOnly||this._moveEndOrTouchEndFun(A)},r._moveEndOrTouchEndFun=function(A){A.preventDefault(),this.readOnly||this._isMouseDown&&(this._isMouseDown=!1,this._moved&&(this._moved=!1,this._update({current:this.current}),this._oldTime=this.current,null==this.options.onDragEnd||this.options.onDragEnd.call(this.options,this.current,this._isOver)),this._isOver&&Math.abs(this._mousePosition-(A.pageX||0))>5&&(null==this.options.onChange||this.options.onChange.call(this.options,this.current)),this._mousePosition=0,this._lastTouchDist=0)},r._moveUpdateFun=function(A){var e=this._mousePosition-A;if(0!==e){if(this._oldTime){var t=this._oldTime.getTime()+1e3*parseInt(e/this._curScaleSpacing*this._timeWidthArray[0]+"",10);this._update({current:new Date(t)}),null==this.options.onDragging||this.options.onDragging.call(this.options,new Date(t))}this._moved=!0}},i=e,(a=[{key:"_curScaleSpacing",get:function(){var A,e;return Math.floor((null==(A=this._timeWidthArray)?void 0:A[1])-(null==(e=this._timeWidthArray)?void 0:e[1])*+(this.timeWidth%1/2).toFixed(2))}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(i.prototype,a),e}(l);return D.TIME_WIDTH=I,_.BaseTimeLine=l,_.MobileTimeLine=f,_.TimeLine=D,_}
|
|
35
|
+
*/function S(){if(p)return _;p=1;var i=e,a=r,n=E(),o=t,s=y(),g=A,l={zh:{title:"包含{{len}}段录像",foldTitle:"{{len}}个录像"},en:{title:"Includes {{len}} {{unit}}",foldTitle:"{{len}} {{unit}}"}};var C={current:new Date,language:"zh",timeSections:[],readOnly:!1,className:"",timeWidth:0,width:"100%",timePointColor:"#1890ff",timeTextColor:"#FFF",timeScaleColor:"#FFF",timeSectionColor:"rgba(24, 144, 255, 0.5)",timeAxisBgColor:"#000",onChange:function(){},onDragStart:function(){},onDragging:function(){},onDragEnd:function(){},onDestroy:function(){}},I=function(){function A(A,e){if(this._current=new Date,this._readOnly=!1,this._width=0,this._height=0,this._destroyed=!1,this._timeWidth=0,this._timeSections=[],this.$container=A,!A)throw new Error("container is required");var t,r;this.options=i(C,e,{clone:!1}),this.options.timeSections&&Array.isArray(this.options.timeSections)&&(this._timeSections=this.options.timeSections),this.options.readOnly&&(this.readOnly=this.options.readOnly),this.options.className&&this.$container.classList.add(this.options.className),this.$container.style.position="relative",this.options.current&&(t=this.options.current,null!=(r=Date)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?this._current=this.options.current||new Date:this._current=new Date,this.i18n=new a(i(l,this.options.locales||{},{clone:!1}),{defaultLocale:this.options.language||"zh"}),this._timeWidth=this.options.timeWidth||0,this._resize(this.options.width||"100%",this.options.height)}var e,t,r=A.prototype;return r.setReadOnly=function(A){this.readOnly=A},r.update=function(A){this._current=A},r.updateTimeSections=function(A){A&&Array.isArray(A)&&(this._timeSections=A)},r.resize=function(A,e){this._resize(A,e)},r._resize=function(A,e){var t="";/^\d+(\.\d+)?$/.test(A+"")?t+="width: "+A+"px;":A&&(t+="width: "+A+";"),/^\d+(\.\d+)?$/.test(e+"")?t+="height: "+e+"px;":e&&(t+="height: "+e+";"),this.$container&&(this.$container.style.cssText+=t),this._width=Math.floor(this.$container.clientWidth),this._height=Math.floor(this.$container.clientHeight)},r.setTimeWidth=function(A){[0,1,2,3,4,5].includes(A)&&(this._timeWidth=A)},r.destroy=function(){this._current=null,null==this.options.onDestroy||this.options.onDestroy.call(this.options),this._timeSections=[],this._readOnly=!1,this._destroyed=!0},e=A,(t=[{key:"current",get:function(){return this._current},set:function(A){this._current=A}},{key:"readOnly",get:function(){return this._readOnly},set:function(A){this._readOnly!==A&&(this._readOnly=A,this.$container.style.cursor=A?"not-allowed":"pointer")}},{key:"timeSections",get:function(){return this._timeSections}},{key:"width",get:function(){return this._width}},{key:"height",get:function(){return this._height}},{key:"timeWidth",get:function(){return this._timeWidth}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(e.prototype,t),A}();I.LOCALES=l;var c=function(){function A(){}return A.timeToSecond=function(A){var e=A.split(":");return 60*Number(e[0])*60+60*Number(e[1])+(Number(e[2])||0)},A.minuteToTime=function(A){var e=Math.floor(A/60),t=A%60;return(e>9?e:"0"+e)+":"+(t>9?t:"0"+t)},A.timeToMinute=function(A){var e=A.split(":");return 60*Number(e[0])+Number(e[1])},A.tranTimeToString=function(A,e){var t,i,a=Math.floor((null==(t=o.DateTime.toDate(e))?void 0:t.getTime())-(null==(i=o.DateTime.toDate(A))?void 0:i.getTime()))/1e3,r=a%60,n=Math.floor(a/60);return(n>0?o.DateTime.fillZero(n)+"'":"0'")+o.DateTime.fillZero(r)+"''"},A}(),h=[[1,10,10,"单位 1秒"],[60,20,5,"单位 1分钟"],[600,20,6,"单位 10分钟"],[3600,30,6,"单位 1小时"],[14400,40,2,"单位 4小时"],[43200,80,2,"单位 12小时"]],B=[[1,10,10,"单位 1分钟"],[10,20,5,"单位 10分钟"],[30,20,6,"单位 30分钟"],[60,30,6,"单位 1小时"],[120,40,2,"单位 2小时"],[240,80,2,"单位 4小时"]],x={targets:[],root:null,rootMargin:"0px",threshold:.1,loadingClass:"ez-lazy-image-loading",loadedClass:"ez-lazy-image-loaded",loadedErrorClass:"ez-lazy-image-error",onLoadError:function(){}},d=function(){function A(A){void 0===A&&(A={}),this.options=Object.assign({},x,A),this._observer=null,this._init()}var e=A.prototype;return e._init=function(){var e=this;A.isSupported&&(this._observer=new IntersectionObserver((function(A){A.forEach((function(A){var t;A.isIntersecting&&(e._loadImage(A.target),null==(t=e._observer)||t.unobserve(A.target))}))}),this.options)),this.addImages(this.options.targets)},e._loadImage=function(A){var e,t,i,a=this;if(A&&!(null==(e=A.classList)?void 0:e.contains(this.options.loadingClass))&&!(null==(t=A.classList)?void 0:t.contains(this.options.loadedClass))&&!(null==(i=A.classList)?void 0:i.contains(this.options.loadedErrorClass))&&A.hasAttribute("data-src")){var r=this;A.classList.add(this.options.loadingClass);var n=new Image;n.onload=function(){A.src=A.dataset.src,A.classList.remove(a.options.loadingClass),A.classList.add(a.options.loadedClass),A.dispatchEvent(new Event("lazyloaded"))},n.onerror=function(e){A.classList.remove(a.options.loadingClass),A.classList.add(a.options.loadedErrorClass),null==r.options.onLoadError||r.options.onLoadError.call(r.options,A)},n.src=A.dataset.src}},e.addImages=function(e){var t=this;(null==e?void 0:e.length)&&e.forEach((function(e){var i;(null==e?void 0:e.hasAttribute("data-src"))&&(A.isSupported&&t._observer?null==(i=t._observer)||i.observe(e):t._loadImage(e))}))},e.destroy=function(){this._observer&&(this._observer.disconnect(),this._observer=null)},A}();function Q(){return Q=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Q.apply(this,arguments)}function f(A,e){return f=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},f(A,e)}d.isSupported="IntersectionObserver"in window;var u=Object.assign({},C,{height:400,width:"100%",timeWidth:0,readOnly:!1,timePointColor:"#648FFC",timeTextColor:"#666666",timeScaleColor:"transparent",timeSectionColor:"#369FFF",timeAxisBgColor:"#BDCDFF",currentTimeBgColor:"#648FFC",currentTimeColor:"#FFFFFF",showTimeWidthBtn:!0,showCoverFold:!0}),m=function(A){function e(e,t){var a;return(a=A.call(this,e,i(u,t,{clone:!1}))||this)._isTouchStart=!1,a._dragScroll=null,a._moveStartX=0,a._moveStartY=0,a._imageLazyLoader=null,a._imageLazyLoaderPicker=null,a.state={start:"00:00:00",end:"24:00:00",current:null,timeArr:[],availTimeLine:[],index:0},a._onImageError=a._onImageError.bind(a),a._plusClick=a._plusClick.bind(a),a._minusClick=a._minusClick.bind(a),a._onPickerClose=a._onPickerClose.bind(a),a._onClickItem=a._onClickItem.bind(a),a._onClickCoverFold=a._onClickCoverFold.bind(a),a._imageLazyLoader=new d({root:a.$container,onLoadError:function(A){null==a._onImageError||a._onImageError.call(a,A)}}),a._render(),a.options.timeSections&&Array.isArray(a.options.timeSections)&&a.updateTimeSections(a.options.timeSections),a}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&f(A,e)}(e,A);var t,a,r=e.prototype;return r.setReadOnly=function(e){A.prototype.setReadOnly.call(this,e),this._dragScroll&&(this._dragScroll.readonly=e)},r.setTimeWidth=function(e){B[e]&&(A.prototype.setTimeWidth.call(this,e),this._matchTimeDot())},r.updateTimeSections=function(e,t){A.prototype.updateTimeSections.call(this,e);var i=e.map((function(A){return Q({},A,{startTime:o.DateTime.format(A.startTime,"HH:mm:ss"),endTime:o.DateTime.format(A.endTime,"HH:mm:ss")})}));if(i.length>0){void 0===t&&(t=i.length-1);var a=this.state.current;this._setState({availTimeLine:i,start:i[t].startTime,end:i[t].endTime,current:null===a?i[t].startTime:a}),this._matchTimeDot()}else this._setState({availTimeLine:[],current:o.DateTime.format(this.current||(new Date).getTime(),"HH:mm:ss")}),this._matchTimeDot()},r.update=function(A){var e;A&&!(null==(e=this._dragScroll)?void 0:e.isDragging)&&(this._setState({current:o.DateTime.format(A,"HH:mm:ss")}),this._currentOffsetH())},r.destroy=function(){var e;if(this._scrollTimer&&(clearInterval(this._scrollTimer),this._scrollTimer=null),this._$currentTime)try{this.$container.removeChild(this._$currentTime),this._$currentTime=null}catch(A){}if(this._$itemContainer&&this._$itemList)try{this._$itemContainer.removeChild(this._$itemList),this._$itemList=null}catch(A){}if(this._$itemContainer)try{this.$container.removeChild(this._$itemContainer),this._$itemContainer=null}catch(A){}if(this._$op)try{this.$container.removeChild(this._$op),this._$op=null}catch(A){}this._picker&&(this._picker.destroy(),this._picker=null),this._imageLazyLoader&&(this._imageLazyLoader.destroy(),this._imageLazyLoader=null),this._imageLazyLoaderPicker&&(this._imageLazyLoaderPicker.destroy(),this._imageLazyLoaderPicker=null),this._removeEventListener(),null==(e=this._dragScroll)||e.destroy(),this._dragScroll=null,A.prototype.destroy.call(this)},r._setState=function(A){var e=this;Object.keys(A).forEach((function(t){var i,a;"current"===t&&A[t]?(e._setCurrentDOM(A[t]),e.state.current===A[t]||(null==(i=e._dragScroll)?void 0:i.isDragging)||(e.state[t]=A[t],e.current=new Date(o.DateTime.format((null==(a=e.timeSections[0])?void 0:a.endTime)||(new Date).getTime(),"YYYY-MM-DD")+"T"+A[t]),null==e.options.onChange||e.options.onChange.call(e.options,e.current))):e.state[t]=A[t]}))},r._setCurrentDOM=function(A){this._$currentTime&&(this._$currentTime.querySelector(".ez-time-line-current-value").innerHTML=A)},r._matchTimeDot=function(){for(var A=this._scaleWidth,e=[],t=c.timeToMinute("24:00:00"),i=t=Math.floor(t/A)*A;i>=0;){var a=0,r=0;i==t&&(a=70),0==i&&(r=this.$container.clientHeight-70);var n=c.minuteToTime(i);e.push({id:i,current:n,label:"a"+i,marginTop:a,marginBottom:r,recArr:[],coverArr:this._filterTimeSectionsByTime(n)}),i-=A}this._setState({timeArr:e}),this._matchRecTimeDot()},r._matchRecTimeDot=function(){var A=this.state,e=A.availTimeLine,t=A.timeArr,i=this._scaleWidth,a=e.length;if(0===a)for(var r=0;r<t.length;r++)t[r].recArr=[];else{for(var n=0;n<t.length;n++)t[n].recArr=[];for(var o=0;o<a;o++){var s,g,l=e[o],C=c.timeToSecond(l.startTime),I=c.timeToSecond(l.endTime),h=Math.floor(C/(60*i))*i;s=(C-60*h)/i;var B=Math.floor(I/(60*i))*i;g=(I-60*B)/i;for(var E=0;E<t.length;E++)if(t[E].id==h&&t[E].id==B){var x=g-s,d=60-g;t[E].recArr.push({height:x,top:d})}else t[E].id==h?t[E].recArr.push({height:60-s,top:0}):t[E].id==B?t[E].recArr.push({height:g,top:60-g}):t[E].id>h&&t[E].id<B&&t[E].recArr.push({height:60,top:0})}}this._setState({timeArr:t}),this._renderDateLine()},r._renderDateLine=function(){var A=this,e=this.state.timeArr,t=this._$itemList;t.innerHTML="",e.forEach((function(e,i){var a,r=document.createElement("div");r.setAttribute("class","ez-time-line-time-scale-area"),e.marginTop&&(r.style.cssText+="margin-top: "+e.marginTop+"px;"),e.marginBottom&&(r.style.cssText+="margin-bottom: "+e.marginBottom+"px;"),r.style.cssText+="border-right-color: "+(A.options.timeAxisBgColor||"rgba(189, 205, 255, 1)")+";",r.setAttribute("data-time",e.current),r.setAttribute("data-index",i+""),document.createElement("div").setAttribute("class","ez-time-line-scale");var n="";e.coverArr.length&&A.options.showCoverFold&&(n+='\n <div class="ez-time-line-time-cover-fold '+(e.coverArr.length>1?"ez-time-line-time-cover-fold-multiple":"")+'"\n data-start="'+e.current+'">\n '+(e.coverArr.length>1?'<div class="ez-time-line-cover-fold-placeholder" style="color: #FFF"></div>':"")+'\n <div class="ez-time-line-time-cover-fold-img">\n <img data-src="'+A._setImageScr(e.coverArr[0].coverPic)+'" class="ez-time-line-img"/>\n <span class="ez-time-line-time-cover-fold-len">\n '+(e.coverArr.length>1?A.i18n.t("foldTitle",{len:e.coverArr.length,unit:"videos"}):""+o.DateTime.format(e.coverArr[0].startTime,"HH:mm"))+"\n </span>\n "+(1===e.coverArr.length?'<span class="ez-time-line-time-cover-fold-time">'+c.tranTimeToString(e.coverArr[0].startTime,e.coverArr[0].endTime)+"</span>":"")+'\n <span class="ez-time-line-time-cover-fold-pause"><svg viewBox="0 0 20 20" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="pause">\n\t\t <path d="M9.43914 2.47881L13.4688 8.4912C14.3594 9.81998 13.4071 11.6047 11.8074 11.6047L3.74811 11.6047C2.14849 11.6047 1.19616 9.81998 2.08675 8.4912L6.11641 2.47881C6.90863 1.2968 8.64693 1.2968 9.43914 2.47881Z" fill-rule="evenodd" transform="matrix(0,1,-1,0,16.5781,2.22229)" />\n </svg>\n </span>\n </div>\n </div>'),e.recArr.forEach((function(e){n+='<div class="ez-time-line-time-unavail"\n style="height: '+e.height+"px;background-color:"+(A.options.timeSectionColor||"#369FFF")+"; top: "+e.top+'px">\n </div>'})),n+="<div id="+e.label+' class="ez-time-line-time-label" style="color: '+(A.options.timeTextColor||"#666")+'">'+e.current+"</div>",r.innerHTML=n,t.appendChild(r),e.coverArr.length&&A.options.showCoverFold&&(null==(a=A._imageLazyLoader)||a.addImages(t.querySelectorAll("img.ez-time-line-img")||[]))})),this._currentOffsetH()},r._currentOffsetH=function(){var A=this.state.current;if(A){var e,t=(86400-c.timeToSecond(A)||0)/this._scaleWidth;null==(e=this._dragScroll)||e.scrollToY(t+60,!1)}},r._render=function(){var A=this;if(this._$currentTime=document.createElement("div"),this._$currentTime.classList.add("ez-time-line-current"),this._$currentTime.innerHTML='<div class="ez-time-line-current-content" style="color: '+(this.options.currentTimeBgColor||"#648FFC")+'">\n <span class="ez-time-line-current-tip"><svg viewBox="0 0 57 24" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="tip">\n <path class="ez-time-line-icon-tip" fill-rule="evenodd" d="m4,0l44,0c2.2091,0 4,1.7909 4,4l0,3.8218l4.9399,3.3572c0.5839,0.3968 0.5839,1.2574 0,1.6542l-4.9399,3.3572l0,3.8096c0,2.2091 -1.7909,4 -4,4l-44,0c-2.2091,0 -4,-1.7909 -4,-4l0,-16c0,-2.2091 1.7909,-4 4,-4z"/>\n </svg></span>\n <span class="ez-time-line-current-tip-line" style="background-color: '+(this.options.timePointColor||"#648FFC")+';"></span>\n <div class="ez-time-line-current-value" style="color: '+(this.options.currentTimeColor||"#FFFFFF")+'">00:00:00</div>\n </div>',this.$container.appendChild(this._$currentTime),this._$itemContainer=document.createElement("div"),this._$itemContainer.classList.add("ez-time-line-container"),this.$container.appendChild(this._$itemContainer),this._dragScroll=new s(this._$itemContainer,{hideScrollbar:!0,onChange:function(e){var t=A._offsetYToTime(e.y);t[1]!==A.state.current&&A._setCurrentDOM(t[0]>=86400?"23:59:59":t[1])},onDragStart:function(e){A._moveStartX=e.clientX,A._moveStartY=e.clientY,null==A.options.onDragStart||A.options.onDragStart.call(A.options,A.state.current)},onDragging:function(){null==A.options.onDragging||A.options.onDragging.call(A.options,A.state.current)},onDragEnd:function(){var e,t=A._offsetYToTime(null==(e=A._dragScroll)?void 0:e.currentY);t[1]!==A.state.current&&A._setState({current:t[0]>=86400?"23:59:59":t[1]}),null==A.options.onDragEnd||A.options.onDragEnd.call(A.options,A.state.current)}}),/\d/.test(this.options.height))this._$itemContainer.style.cssText+="height: "+this.options.height+"px";else if("string"==typeof this.options.height)this._$itemContainer.style.cssText+="height: "+this.options.height;else{var e=this.$container.clientHeight;this._$itemContainer.style.cssText+="height: "+e+"px"}this._$itemList=document.createElement("div"),this._$itemList.classList.add("ez-time-line-item"),this._dragScroll.$content.appendChild(this._$itemList),this.options.showTimeWidthBtn&&(this._$op=document.createElement("div"),this._$op.classList.add("ez-time-line-op"),this._$op.innerHTML='<span class="ez-time-line-op-wrapper"><span class="ez-time-line-icon-plus">\n <svg viewBox="0 0 16 16" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="plus">\n <path d="M0 0L10.6667 0" stroke="rgb(44,44,44)" stroke-linecap="round" stroke-width="1.5" transform="matrix(0,1,-1,0,8,2.66663)"/>\n <path d="M2.66669 8L13.3334 8" stroke="rgb(44,44,44)" stroke-linecap="round" stroke-width="1.5"/>\n </svg>\n </span> <span class="ez-time-line-icon-minus">\n <svg viewBox="0 0 16 16" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="minus">\n <path d="M2.66669 8L13.3334 8" stroke="rgb(44,44,44)" stroke-linecap="round" stroke-width="1.5"/>\n </svg>\n </span></span>',this.$container.appendChild(this._$op)),this.options.showCoverFold&&(this._picker=new n(null,{isMobile:!0,wrapClassName:"ez-time-line-picker",onOpenChange:function(e){var t,i;null==(i=A.options)||null==(t=i.onPickerOpenChange)||t.call(i,e)}}),this._imageLazyLoaderPicker=new d({root:this._picker.$body,onLoadError:function(e){null==A._onImageError||A._onImageError.call(A,e)}})),this._addEventListener()},r._addEventListener=function(){var A,e;this.options.showTimeWidthBtn&&this._$op&&(null==(A=this._$op.querySelector(".ez-time-line-icon-plus"))||A.addEventListener("click",this._plusClick,!1),null==(e=this._$op.querySelector(".ez-time-line-icon-minus"))||e.addEventListener("click",this._minusClick,!1)),this._matchTimeDot(),this._picker&&(this._delegatePickerClose=g(this._picker.$body,".ez-time-line-picker-close","click",this._onPickerClose,!1),this._delegateItemContent=g(this._picker.$body,".ez-time-line-picker-item-content","click",this._onClickItem,!1),this._delegateCoverFold=g(this._$itemList,".ez-time-line-time-cover-fold","click",this._onClickCoverFold,!1))},r._removeEventListener=function(){var A,e,t,i;this.options.showTimeWidthBtn&&this._$op&&(null==(A=this._$op.querySelector(".ez-time-line-icon-plus"))||A.removeEventListener("click",this._plusClick),null==(e=this._$op.querySelector(".ez-time-line-icon-minus"))||e.removeEventListener("click",this._minusClick)),this._picker&&(null==(i=this._picker.$body)||null==(t=i.querySelector(".ez-time-line-picker-close"))||t.removeEventListener("click",this._onPickerClose),this._delegateItemContent&&(this._delegateItemContent.forEach((function(A){A.destroy()})),this._delegateItemContent=null),this._delegatePickerClose&&(this._delegatePickerClose.forEach((function(A){A.destroy()})),this._delegatePickerClose=null),this._delegateCoverFold&&(this._delegateCoverFold.forEach((function(A){A.destroy()})),this._delegateCoverFold=null))},r._plusClick=function(){var A=this.timeWidth+1;A>0&&A<B.length&&this.setTimeWidth(A)},r._minusClick=function(){var A=this.timeWidth-1;A>=0&&A<B.length&&this.setTimeWidth(Math.floor(A))},r._timeSectionsToGroupsByHour=function(A){var e={};return A.forEach((function(A,t){var i=o.DateTime.format(A.startTime,"HH");e[+i]?e[+i].push(Q({},A,{_index:t})):e[+i]=[Q({},A,{_index:t})]})),e},r._filterTimeSectionsByTime=function(A){if(!A)return[];var e=c.timeToSecond(A+":00"),t=c.timeToSecond(A+":00")+60*this._scaleWidth;return this.timeSections.filter((function(A){var i=c.timeToSecond(o.DateTime.format(A.startTime,"HH:mm:ss"));return i>=e&&i<t}))},r._renderPickerContent=function(A){var e,t,i,a,r,n=this,s=this._filterTimeSectionsByTime(A),g=this._timeSectionsToGroupsByHour(s);null==(t=this._picker)||null==(e=t.innerHTML)||e.call(t,'<div class="ez-time-line-picker-container">\n <div class="ez-time-line-picker-header">\n <span class="ez-time-line-picker-close">\n <svg viewBox="0 0 24 24" fill="none" width="1em" height="1em" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="close">\n\t <path d="M0 0L15.9998 0" stroke-linecap="round" stroke-width="1.5" transform="matrix(0.707099,0.707114,-0.707114,0.707099,6.34277,6.34326)" />\n\t\t <path d="M0 0L15.9998 0" stroke-linecap="round" stroke-width="1.5" transform="matrix(0.707099,-0.707114,0.707114,0.707099,6.34277,17.6567)" />\n </svg>\n </span>\n '+this.i18n.t("title",{len:s.length,unit:s.length>1?"videos":"video"})+'\n </div>\n <div class="ez-time-line-picker-content">\n <div class="ez-time-line-picker-list">\n '+Object.keys(g).reverse().map((function(A){return'<div class="ez-time-line-picker-item">\n <div class="ez-time-line-picker-item-title">'+A+':00</div>\n <div class="ez-time-line-picker-item-list">\n '+g[A].reverse().map((function(A){return'<div class="ez-time-line-picker-item-content"\n data-start="'+o.DateTime.format(A.startTime,"YYYYMMDDTHHmmssZ")+'"\n data-end="'+o.DateTime.format(A.endTime,"YYYYMMDDTHHmmssZ")+'"\n data-index="'+A._index+'">\n <span class="ez-time-line-picker-item-time">'+o.DateTime.format(A.startTime,"HH:mm")+'</span>\n <span class="ez-time-line-picker-item-duration">\n '+c.tranTimeToString(A.startTime,A.endTime)+'\n </span>\n <img class="ez-time-line-picker-item-cover" data-src="'+n._setImageScr(A.coverPic)+'"/>\n </div>'})).join("")+"\n </div>\n </div>"})).join("")+"\n </div>\n </div>\n </div>\n </div>"),(null==(i=this._picker)?void 0:i.$body)&&(null==(r=this._imageLazyLoaderPicker)||r.addImages((null==(a=this._picker)?void 0:a.$body.querySelectorAll("img"))||[]))},r._onImageError=function(A){if(!A.hasAttribute("data-error")){var e,t=document.createElement("div");t.classList.add("ez-time-line-item-cover-placeholder"),t.innerHTML='\n <svg viewBox="0 0 19.1613 19.4583" fill="currentColor" width="1em" height="1em" focusable="false" aria-hidden="true" data-icon="picture">\n <path xmlns="http://www.w3.org/2000/svg" id="形状结合" d="M15.3276 2.63477L3.83173 2.63477C2.70848 2.63477 1.79541 3.55027 1.79541 4.68419L1.79541 14.7737C1.79541 15.9076 2.70848 16.8231 3.83173 16.8231L15.3276 16.8231C16.4504 16.8231 17.364 15.9074 17.364 14.7737L17.364 4.68419C17.364 3.55027 16.4509 2.63477 15.3276 2.63477ZM3.83247 3.851L15.3284 3.851C15.7936 3.851 16.1671 4.22551 16.1671 4.68429L16.1671 14.7738C16.1671 15.2323 15.7932 15.6071 15.3284 15.6071L3.83247 15.6071C3.36725 15.6071 2.99373 15.2326 2.99373 14.7738L2.99373 12.2622L6.7356 9.56381L6.78139 9.53916C6.84532 9.51493 6.91856 9.52524 6.9742 9.56947L13.2644 14.5698L13.3381 14.62C13.5918 14.7666 13.9197 14.7063 14.105 14.4658C14.3089 14.2014 14.263 13.8192 14.0026 13.6122L7.71239 8.61184L7.60526 8.5346C7.12945 8.22451 6.51026 8.23473 6.04222 8.57224L2.99373 10.7706L2.99373 4.68429C2.99373 4.22551 3.36725 3.851 3.83247 3.851ZM10.5794 7.29679C10.5794 6.06542 11.5624 5.0672 12.7749 5.0672C13.9875 5.0672 14.9705 6.06542 14.9705 7.29679C14.9705 8.52817 13.9875 9.52639 12.7749 9.52639C11.5624 9.52639 10.5794 8.52817 10.5794 7.29679ZM13.7722 7.2967C13.7722 6.73699 13.3254 6.28325 12.7742 6.28325C12.223 6.28325 11.7762 6.73699 11.7762 7.2967C11.7762 7.85642 12.223 8.31015 12.7742 8.31015C13.3254 8.31015 13.7722 7.85642 13.7722 7.2967Z" fill-rule="evenodd"/>\n </svg>\n ',null==(e=A.parentNode)||e.appendChild(t),A.setAttribute("data-error","true"),A.remove()}},r._onPickerClose=function(){this._picker&&(this._picker.open=!1)},r._onClickItem=function(A){var e,t,i=null==(t=A.delegateTarget)||null==(e=t.getAttribute)?void 0:e.call(t,"data-index");this._picker&&(this._picker.open=!1),null==this.options.onPickerSelect||this.options.onPickerSelect.call(this.options,this.timeSections[+i])},r._onClickCoverFold=function(A){var e,t,i;A.preventDefault();var a=null==(i=A.delegateTarget)||null==(t=i.parentElement)||null==(e=t.getAttribute)?void 0:e.call(t,"data-time"),r=Math.abs(this._moveStartX-A.clientX),n=Math.abs(this._moveStartY-A.clientY);this._picker&&a&&!(r>=1||n>=1)&&(this._renderPickerContent(a),this._picker.open=!0)},r._setImageScr=function(A){if(A){var e="x=200&"+(this.options.coverQuery||"");return A+(A.includes("?")?"&":"?")+e}return""},r._offsetYToTime=function(A){var e,t=A;A<60&&(t=60,null==(e=this._dragScroll)||e.scrollToY(t));var i=86400-Math.floor((t-60)*this._scaleWidth);return[i,o.DateTime.fillZero(Math.floor(i/3600))+":"+o.DateTime.fillZero(Math.floor(i%3600/60))+":"+o.DateTime.fillZero(i%60)]},t=e,(a=[{key:"_scaleWidth",get:function(){return(B[this.timeWidth]||B[0])[0]}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(t.prototype,a),e}(I);function S(){return S=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},S.apply(this,arguments)}function D(A,e){return D=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},D(A,e)}var R={height:36,dpr:window.devicePixelRatio||2,scaleOffsetTop:4,showYearMonthDay:!0},F=function(A){function e(e,t){var a;return(a=A.call(this,e,i(R,t,{clone:!0}))||this)._$canvas=null,a._ctx=null,a._timeWidthArray=h[0],a._centerPositionX=0,a._isMouseDown=!1,a._mousePosition=0,a._oldTime=null,a._isOver=!1,a._moved=!1,a._isCtrlKeyDown=!1,a._lastTouchDist=0,a.$container=e,a._mousemoveFun=a._mousemoveFun.bind(a),a._mouseoverFun=a._mouseoverFun.bind(a),a._mouseleaveFun=a._mouseleaveFun.bind(a),a._mousedownFun=a._mousedownFun.bind(a),a._mouseUpFun=a._mouseUpFun.bind(a),a._mousewheelFun=a._mousewheelFun.bind(a),a._touchstartFun=a._touchstartFun.bind(a),a._touchmoveFun=a._touchmoveFun.bind(a),a._touchendFun=a._touchendFun.bind(a),a._ctrlKeyDownFun=a._ctrlKeyDownFun.bind(a),a._ctrlKeyUpFun=a._ctrlKeyUpFun.bind(a),a._init(),a}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&D(A,e)}(e,A);var t,a,r=e.prototype;return r._init=function(){this._$canvas=document.createElement("canvas"),this._ctx=this._$canvas.getContext("2d"),this.readOnly||(this._$canvas.style.cssText+="cursor: pointer;"),this.$container.appendChild(this._$canvas),this.resize(this.width,this.height),this._update({current:this.current,timeWidth:this.timeWidth,timeSections:this.timeSections}),this._addEventListener()},r.resize=function(e,t){A.prototype.resize.call(this,e,t),this._$canvas&&e&&(this._$canvas.width=this.width*this.options.dpr,this._$canvas.style.cssText+="width: "+this.width+"px;"),this._$canvas&&t&&(this._$canvas.height=this.height*this.options.dpr,this._$canvas.style.cssText+="height: "+this.height+"px;"),this._draw()},r.setTimeWidth=function(A){this._update({timeWidth:A})},r.updateTimeSections=function(A){this._update({timeSections:A})},r.update=function(A){A&&!this._isMouseDown&&this._update({current:o.DateTime.toDate(A)})},r._update=function(e){var t,i,a;void 0===e&&(e={}),(null==e?void 0:e.current)&&(t=e.current,null!=(i=Date)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](t):t instanceof i)&&(this.current=e.current),(null==e?void 0:e.timeSections)&&A.prototype.updateTimeSections.call(this,this._mergeTimeSections(e.timeSections)),"number"==typeof(null==e?void 0:e.timeWidth)&&(null==e?void 0:e.timeWidth)<h.length&&(A.prototype.setTimeWidth.call(this,e.timeWidth),this._timeWidthArray=h[Math.floor(this.timeWidth)]),"number"==typeof(null==e?void 0:e.timeWidth)&&this._timeWidthArray&&this._timeWidthArray[3]&&(null==(a=this._$canvas)||a.setAttribute("data-title",this._timeWidthArray[3])),this._draw()},r.setReadOnly=function(e){A.prototype.setReadOnly.call(this,e),this._$canvas&&(this._$canvas.style.cssText+="cursor: "+(e?"not-allowed":"pointer"))},r.destroy=function(){if(this._removeEventListener(),this._$canvas)try{this.$container.removeChild(this._$canvas),this._$canvas=null}catch(A){}A.prototype.destroy.call(this)},r._draw=function(){this._ctx&&(this._ctx.fillStyle=this.options.timeAxisBgColor,this._ctx.fillRect(0,0,this.width*this.options.dpr,this.height*this.options.dpr)),this._drawSections(),this._drawScale()},r._drawScale=function(){var A=1*this.options.dpr;this._centerPositionX=parseInt(this.width*this.options.dpr/2+"");for(var e={x:this.width*this.options.dpr/2,y:this.height*this.options.dpr},t=Math.floor(this.current.getTime()/1e3),i=(t-Math.floor(o.DateTime.toDate(o.DateTime.format(new Date(1e3*t),"YYYY-MM-DD")).getTime()/1e3))%this._timeWidthArray[0],a=this.height*this.options.dpr/20,r=this._curScaleSpacing*this.options.dpr,n=Math.floor(this._centerPositionX+(this._timeWidthArray[0]-i)/this._timeWidthArray[0]*r),s=t-i,g=s+this._timeWidthArray[0],l=n-r;l>0;l-=r)0==(s-Math.floor(o.DateTime.toDate(o.DateTime.format(new Date(1e3*s),"YYYY-MM-DD")).getTime()/1e3))%(this._timeWidthArray[0]*this._timeWidthArray[2])?(this._drawSolidLine(l,a,l,a+(this.options.scaleOffsetTop+4)*this.options.dpr,A),this._drawTextString(o.DateTime.format(new Date(1e3*s),"YYYY-MM-DD HH:mm:ss"),l,a+(this.options.scaleOffsetTop+4+4)*this.options.dpr,"center")):this._drawSolidLine(l,a,l,a+this.options.scaleOffsetTop*this.options.dpr,A),s-=this._timeWidthArray[0];for(var C=n;C<=this.width*this.options.dpr;C+=r)0==(g-Math.floor(o.DateTime.toDate(o.DateTime.format(new Date(1e3*g),"YYYY-MM-DD")).getTime()/1e3))%(this._timeWidthArray[0]*this._timeWidthArray[2])?(this._drawSolidLine(C,a,C,a+(this.options.scaleOffsetTop+4)*this.options.dpr,A),this._drawTextString(o.DateTime.format(new Date(1e3*g),"YYYY-MM-DD HH:mm:ss"),C,a+(this.options.scaleOffsetTop+4+4)*this.options.dpr,"center")):this._drawSolidLine(C,a,C,a+this.options.scaleOffsetTop*this.options.dpr,A),g+=this._timeWidthArray[0];this._drawSolidLine(e.x,0,e.x,e.y,A,this.options.timePointColor)},r._drawSolidLine=function(A,e,t,i,a,r){this._ctx&&(this._ctx.save(),this._ctx.strokeStyle=null!=r?r:this.options.timeScaleColor,this._ctx.lineWidth=a,this._ctx.beginPath(),this._ctx.moveTo(A,e),this._ctx.lineTo(t,i),this._ctx.stroke(),this._ctx.restore())},r._drawTextString=function(A,e,t,i){if(this._ctx){var a=A.split(" ");this._ctx.font=12*this.options.dpr*1+"px serif",this._ctx.fillStyle=this.options.timeTextColor,this._ctx.textAlign=i||"left",this._timeWidthArray[0]%60==0&&(a[1]=a[1].replace(/:00$/,"")),this._ctx.fillText(a[1],e,t+8*this.options.dpr),!this.options.showYearMonthDay||"00:00:00"!==a[1]&&"00:00"!==a[1]&&this._timeWidthArray[0]*this._timeWidthArray[2]!=86400||(this._ctx.textAlign=i||"left",this._ctx.fillText(a[0],e,t+18*this.options.dpr))}},r._drawSections=function(){for(var A=this.timeSections||[],e=0;e<A.length;e++){var t=this._findPosition(A[e]);this._ctx&&(i=0,a=this.width*this.options.dpr,r=t.x1,n=t.x2,Math.max(i,r)<=Math.min(a,n))&&(this._ctx.fillStyle=this.options.timeSectionColor,this._ctx.fillRect(t.x1,0,t.x2-t.x1,this.height*this.options.dpr))}var i,a,r,n},r._findPosition=function(A){var e=(parseInt((A.startTime-this.current.getTime())/1e3+"",10)/this._timeWidthArray[0]*this._curScaleSpacing+this.width/2)*this.options.dpr;return{x1:e,x2:e+parseInt((A.endTime-A.startTime)/1e3+"",10)/this._timeWidthArray[0]*this._curScaleSpacing*this.options.dpr}},r._mergeTimeSections=function(A){if(0===A.length)return A;for(var e=[(A=A.map((function(A){return 10===(A.startTime+"").length&&(A.startTime=1e3*A.startTime),10===(A.endTime+"").length&&(A.endTime=1e3*A.endTime),S({},A,{startTime:A.startTime,endTime:A.endTime})})))[0]],t=1;t<A.length;t++){var i=e[e.length-1],a=A[t];i.endTime>=a.startTime?i.endTime=Math.max(i.endTime,a.endTime):e.push(a)}return e},r._addEventListener=function(){this._$canvas&&(this._$canvas.addEventListener("mousemove",this._mousemoveFun),this._$canvas.addEventListener("mouseover",this._mouseoverFun),this._$canvas.addEventListener("mouseleave",this._mouseleaveFun),this._$canvas.addEventListener("mousedown",this._mousedownFun),this._$canvas.addEventListener("mouseup",this._mouseUpFun),this._$canvas.addEventListener("wheel",this._mousewheelFun),this.$container.addEventListener("wheel",(function(A){A.preventDefault()}),{passive:!1}),this._$canvas.addEventListener("keydown",this._ctrlKeyDownFun),this._$canvas.addEventListener("keyup",this._ctrlKeyUpFun),document.addEventListener("keydown",this._ctrlKeyDownFun,!1),document.addEventListener("keyup",this._ctrlKeyUpFun,!1),this._$canvas.addEventListener("touchstart",this._touchstartFun,{passive:!1}),this._$canvas.addEventListener("touchmove",this._touchmoveFun,{passive:!1}),this._$canvas.addEventListener("touchend",this._touchendFun,{passive:!1}))},r._removeEventListener=function(){this._$canvas&&(this._$canvas.removeEventListener("mousemove",this._mousemoveFun),this._$canvas.removeEventListener("mouseover",this._mouseoverFun),this._$canvas.removeEventListener("mouseleave",this._mouseleaveFun),this._$canvas.removeEventListener("mousedown",this._mousedownFun),this._$canvas.removeEventListener("mouseup",this._mouseUpFun),this._$canvas.removeEventListener("wheel",this._mousewheelFun),this._$canvas.removeEventListener("keydown",this._ctrlKeyDownFun),this._$canvas.removeEventListener("keyup",this._ctrlKeyUpFun),document.removeEventListener("keydown",this._ctrlKeyDownFun),document.removeEventListener("keyup",this._ctrlKeyUpFun),this._$canvas.removeEventListener("touchstart",this._touchstartFun),this._$canvas.removeEventListener("touchmove",this._touchmoveFun),this._$canvas.removeEventListener("touchend",this._touchendFun))},r._mousedownFun=function(A){this.readOnly||(this._isMouseDown=!0,this._mousePosition=A.pageX,this._oldTime=this.current,null==this.options.onDragStart||this.options.onDragStart.call(this.options,this.current))},r._mouseoverFun=function(){this.readOnly||(this._isOver=!0)},r._mouseleaveFun=function(A){this.readOnly||(this._isOver=!1,this._moveEndOrTouchEndFun(A))},r._mouseUpFun=function(A){this._moveEndOrTouchEndFun(A)},r._mousemoveFun=function(A){if(!this.readOnly)if(this._isMouseDown&&this._isOver)this._moveUpdateFun(A.pageX);else{var e=parseInt(this.$container.offsetLeft+"",10);this._mousePosition=A.pageX-e,this._update()}},r._mousewheelFun=function(A){A.preventDefault(),this.readOnly},r._ctrlKeyDownFun=function(A){(A.ctrlKey||"Control"===A.key)&&(this._isCtrlKeyDown=!0)},r._ctrlKeyUpFun=function(A){(A.ctrlKey||"Control"===A.key)&&(this._isCtrlKeyDown=!1)},r._getTouchDistance=function(A){var e=A[0],t=A[1],i=t.clientX-e.clientX,a=t.clientY-e.clientY;return Math.sqrt(i*i+a*a)},r._touchstartFun=function(A){if(!this.readOnly)if(this._oldTime=this.current,this._isOver=!0,1===A.touches.length){var e=A.touches[0];this._isMouseDown=!0,this._mousePosition=e.clientX}else 2===A.touches.length&&(this._lastTouchDist=this._getTouchDistance(A.touches))},r._touchmoveFun=function(A){if(A.preventDefault(),A.stopPropagation(),!this.readOnly)if(1===A.touches.length){var e=A.touches[0];this._moveUpdateFun(e.clientX)}else 2===A.touches.length&&(this._getTouchDistance(A.touches),this._lastTouchDist)},r._touchendFun=function(A){this.readOnly||this._moveEndOrTouchEndFun(A)},r._moveEndOrTouchEndFun=function(A){A.preventDefault(),this.readOnly||this._isMouseDown&&(this._isMouseDown=!1,this._moved&&(this._moved=!1,this._update({current:this.current}),this._oldTime=this.current,null==this.options.onDragEnd||this.options.onDragEnd.call(this.options,this.current,this._isOver)),this._isOver&&Math.abs(this._mousePosition-(A.pageX||0))>5&&(null==this.options.onChange||this.options.onChange.call(this.options,this.current)),this._mousePosition=0,this._lastTouchDist=0)},r._moveUpdateFun=function(A){var e=this._mousePosition-A;if(0!==e){if(this._oldTime){var t=this._oldTime.getTime()+1e3*parseInt(e/this._curScaleSpacing*this._timeWidthArray[0]+"",10);this._update({current:new Date(t)}),null==this.options.onDragging||this.options.onDragging.call(this.options,new Date(t))}this._moved=!0}},t=e,(a=[{key:"_curScaleSpacing",get:function(){var A,e;return Math.floor((null==(A=this._timeWidthArray)?void 0:A[1])-(null==(e=this._timeWidthArray)?void 0:e[1])*+(this.timeWidth%1/2).toFixed(2))}}])&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(t.prototype,a),e}(I);return F.TIME_WIDTH=h,_.BaseTimeLine=I,_.MobileTimeLine=m,_.TimeLine=F,_}
|
|
36
36
|
/*
|
|
37
|
-
* @ezuikit/player-theme v2.1.0-beta.
|
|
38
|
-
* Copyright (c)
|
|
37
|
+
* @ezuikit/player-theme v2.1.0-beta.5
|
|
38
|
+
* Copyright (c) 2026-01-03 Ezviz-OpenBiz
|
|
39
39
|
* Released under the MIT License.
|
|
40
40
|
*/var D=function(){if(m)return c;m=1;var i=B(),o=E(),s=A,g=e,l=t,C=a,I=r,h=n,x=Q(),d=S(),f="ezplayer",u=0,p=1,_=2,y=["width","height","playing","volume","muted","loading","recType","isCurrentFullscreen","orientationAngle","zooming","zoom","recording","recordList","speed","urlInfo","videoLevelList","videoLevel","recMonth"],D="CLEAR_TIMER_HEADER_FOOTER_ANIMATION",R=["rec","cloudRec","cloudRecord"],F=["deviceID","deviceName"],w=["capturePicture","volume","ptz","record","talk","definition","speed","globalFullscreen"],b={loading:"loading",play:"play",capturePicture:"capturePicture",volumechange:"volumechange",zoomChange:"zoomChange",zoomingChange:"zoomingChange",zoomTranslateChange:"zoomTranslateChange",audioInfo:"audioInfo",videoInfo:"videoInfo",firstFrameDisplay:"firstFrameDisplay",fullscreen:"fullscreen",exitFullscreen:"exitFullscreen",fullscreenChange:"fullscreenChange",resize:"resize",orientationChange:"orientationChange",audioCodecUnsupported:"audioCodecUnsupported",changeTheme:"changeTheme",recTypeChange:"recTypeChange",definitionChange:"definitionChange",speedChange:"speedChange",recordingChange:"recordingChange",talkingChange:"talkingChange",talkVolumeChange:"talkVolumeChange",setLoggerOptions:"setLoggerOptions",records:"records",ptzSpeedChange:"ptzSpeedChange",setVideoLevelList:"setVideoLevelList",currentVideoLevel:"currentVideoLevel",currentVideoLevelAuto:"currentVideoLevelAuto",setAllDayRecTimes:"setAllDayRecTimes",getOSDTime:"getOSDTime",control:{play:"Control.play",playDestroy:"Control.playDestroy",capturePicture:"Control.capturePicture",capturePictureResult:"Control.capturePictureResult",capturePictureDestroy:"Control.capturePictureDestroy",volumechange:"Control.volumechange",volumePanelOpenChange:"Control.volumePanelOpenChange",volumeDestroy:"Control.volumeDestroy",controlsBarOpenChange:"Control.controlsBarOpenChange",headerMoreShowControlsChange:"Control.headerMoreShowControlsChange",headerMorePanelOpenChange:"Control.headerMorePanelOpenChange",footerMoreShowControlsChange:"Control.footerMoreShowControlsChange",footerMorePanelOpenChange:"Control.footerMorePanelOpenChange",deviceDestroy:"Control.deviceDestroy",recTypeChange:"Control.recTypeChange",recDestroy:"Control.recDestroy",definitionChange:"Control.definitionChange",definitionList:"Control.definitionList",definitionPanelOpenChange:"Control.definitionPanelOpenChange",definitionDestroy:"Control.definitionDestroy",speedChange:"Control.speedChange",speedPanelOpenChange:"Control.speedPanelOpenChange",speedDestroy:"Control.speedDestroy",ptzPanelOpenChange:"Control.ptzPanelOpenChange",ptzSpeedChange:"Control.ptzSpeedChange",ptzError:"Control.ptzError",ptzDestroy:"Control.ptzDestroy",recordingChange:"Control.recordingChange",recordDestroy:"Control.recordDestroy",talkingChange:"Control.talkingChange",talkError:"Control.talkError",talkDestroy:"Control.talkDestroy",zoomChange:"Control.zoomChange",zoomPanelOpenChange:"Control.zoomPanelOpenChange",zoomDestroy:"Control.zoomDestroy",fullscreenDestroy:"Control.fullscreenDestroy",globalFullscreenDestroy:"Control.globalFullscreenDestroy",datePanelOpenChange:"Control.datePanelOpenChange",dateChange:"Control.dateChange",dateMonthChange:"Control.dateMonthChange",dateDestroy:"Control.datePanelDestroy",timeLineChange:"Control.timeLineChange",timeLinePanelOpenChange:"Control.timeLinePanelOpenChange",timeLineDestroy:"Control.timeLineDestroy",beforeMountControls:"Control.beforeMountControls",mountedControls:"Control.mountedControls",beforeUnmountControls:"Control.beforeUnmountControls",unmountedControls:"Control.unmountedControls",posterDestroy:"Control.posterDestroy",loadingDestroy:"Control.loadingDestroy",messageDestroy:"Control.messageDestroy",contentDestroy:"Control.contentDestroy",contentRerender:"Control.contentRerender"},theme:{beforeDestroy:"Theme.beforeDestroy",destroyed:"Theme.destroyed",mobileExtendDestroy:"Theme.mobileExtendDestroy",recFooterDestroy:"Theme.recFooterDestroy"},message:"message"};function v(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function P(A,e){return P=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},P(A,e)}var k=function(A){function e(e){var t,i,a,r;return(t=A.call(this)||this).locale=null,t.__options={},t._disabled=!1,t._active=!1,t._camelCaseName="",t.__options=e,t.locale=(a=t.__options.locales,void 0===(r=t.__options.language)&&(r="zh"),(null==a?void 0:a[r])||(null==a?void 0:a.zh)||{}),t._camelCaseName=t.__options.classNameSuffix?t.__options.classNameSuffix.replace(/[-_\s]+(.)?/g,(function(A,e){return e?e.toUpperCase():""})).replace(/^(.)/,(function(A){return A.toLowerCase()})):"",t.$container=document.createElement(e.tagName||"span"),t.$container.classList.add(f+"-control"),"text"===(null==e?void 0:e.controlType)?t.$container.classList.add(f+"-control-text"):"block"===(null==e?void 0:e.controlType)?t.$container.classList.add(f+"-control-block"):t.$container.classList.add(f+"-control-btn"),(null==e?void 0:e.classNameSuffix)&&t.$container.classList.add(f+"-control-"+(null==e?void 0:e.classNameSuffix)),(null==e?void 0:e.className)&&t.$container.classList.add(e.className),e.getPopupContainer?t.$popupContainer=null==e.getPopupContainer?void 0:e.getPopupContainer.call(e):t.$popupContainer=document.body,t.$popupContainer.appendChild(t.$container),t._onDBlClick=t._onDBlClick.bind(t),t._onClick(),"block"!==(null==(i=t.__options)?void 0:i.controlType)&&t.$container.addEventListener("dblclick",t._onDBlClick),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&P(A,e)}(e,A);var t=e.prototype;return t.reset=function(A){this._camelCaseName&&this.emit("Control."+this._camelCaseName+"Reset",A)},t.resetPopupContainer=function(A,e,t){A!==this.$popupContainer&&(this.$popupContainer.contains(this.$container)&&this.$popupContainer.removeChild(this.$container),this.$popupContainer=A,"prepend"===e?this.$popupContainer.prepend(this.$container):"before"===e?t&&this.$popupContainer.insertBefore(this.$container,t):this.$popupContainer.appendChild(this.$container),this._camelCaseName&&this.emit("Control."+this._camelCaseName+"ResetContainer",this.__options.classNameSuffix,A))},t.hide=function(){this.$container&&(this.$container.style.display="none",this.$container.classList.add(f+"-hide"))},t.destroy=function(){var A,e,t;this._camelCaseName&&this.emit("Control."+this._camelCaseName+"Destroy"),"block"!==(null==(A=this.__options)?void 0:A.controlType)&&this.$container.addEventListener("dblclick",this._onDBlClick),this._active=!1,this.removeAllListeners(),null==(t=this.$container)||null==(e=t.remove)||e.call(t),this.$container=null},t._updateDisabledState=function(A){var e,t;A?null==(e=this.$container)||e.classList.add(f+"-disabled"):null==(t=this.$container)||t.classList.remove(f+"-disabled")},t._updateActiveState=function(A){var e,t;A?null==(e=this.$container)||e.classList.add(f+"-active"):null==(t=this.$container)||t.classList.remove(f+"-active")},t._onClick=function(){var A=this;this.$container.addEventListener("click",(function(e){var t;(null==(t=A.$container)?void 0:t.classList.contains(f+"-disabled"))||null==A._onControlClick||A._onControlClick.call(A,e)}))},t._onDBlClick=function(A){A.stopPropagation(),A.preventDefault()},t._onControlClick=function(A){null==this.__options.onClick||this.__options.onClick.call(this.__options,A)},v(e,[{key:"active",get:function(){return this._active},set:function(A){this._disabled&&!this._active||(this._active=A,this._updateActiveState(A))}},{key:"disabled",get:function(){return this._disabled},set:function(A){this._disabled=A,this._updateDisabledState(A)}}]),e}(i);function T(){return T=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},T.apply(this,arguments)}function N(A,e){return N=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},N(A,e)}var M={},L=function(A){function e(e){var t;return void 0===e&&(e={}),(t=A.call(this,Object.assign({},M,T({},e,{tagName:"div",controlType:"block",classNameSuffix:"loading"})))||this)._options=Object.assign({},e),t.$container.classList.add(f+"-loading",f+"-hide"),t._html(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&N(A,e)}(e,A);var t=e.prototype;return t._html=function(){var A;"function"==typeof this._options.render?this.$container.innerHTML=this._options.render():this.$container.innerHTML='\n <span class="'+f+"-loading-dot "+f+'-loading-dot-load">\n <i class="'+f+'-loading-dot-item"></i>\n <i class="'+f+'-loading-dot-item"></i>\n <i class="'+f+'-loading-dot-item"></i>\n <i class="'+f+'-loading-dot-item"></i>\n </span>\n <div class="'+f+'-loading-text">'+((null==(A=this.locale)?void 0:A.LOADING)||"loading...")+"</div>\n "},t.show=function(A){A&&(this.$container.innerHTML=A),this.$container.style.display="flex",this.$container.classList.remove(f+"-hide"),this.$popupContainer.classList.add(f+"-has-loading")},t.hide=function(){A.prototype.hide.call(this),this.$popupContainer.classList.remove(f+"-has-loading")},e}(k);function Y(){return Y=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Y.apply(this,arguments)}function G(A,e){return G=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},G(A,e)}var U={poster:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAkJCQkJCQoLCwoODw0PDhQSERESFB4WFxYXFh4uHSEdHSEdLikxKCUoMSlJOTMzOUlUR0NHVGZbW2aBeoGoqOIBCQkJCQkJCgsLCg4PDQ8OFBIRERIUHhYXFhcWHi4dIR0dIR0uKTEoJSgxKUk5MzM5SVRHQ0dUZltbZoF6gaio4v/CABEIA/0HHgMBIgACEQEDEQH/xAAZAAEBAQEBAQAAAAAAAAAAAAAAAQIEAwf/2gAIAQEAAAAA+WgAgAQAACTxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHUAEACAAAE8YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdQBAAgAAAPPzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOoCABAAAAGfEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6ggAIAAAATxgAAAAAAAAAAAAAAAAAAAAAAAAAAAAADqIACAAAACPLIAAAAAAAAAAAAAAAAAAAAAAAAAAAAADqgAIAAAAEMeYAAAAAAAAAAAAAAAAAAAAAAAAAAAAADpACAAAABAz5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOkAgAAAAQCeUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6QIAAAAEAHjAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOkIAAAAEAEeeQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOkQAAAAQAQYwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0oAAAAIAIDGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOgAAAAIAIBnzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6AAAACACAGfMAAAAAAAAAAAAAAAAAAAAAAAAAAAAADoAAAAgAgBE8wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOgAAAIAIAQTzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6AAACACACBPMAAAAAAAAAAAAAAAAAAAAAAAAAAAAADoAAAgAgAgE8wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOgAAIAIAIAZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0AAEAEAEAImAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOgABABACAEGcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdAAIAIAQAgMwCAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6ABABACACBbAJEkAAAAAAAAAAAAAAAAAAAAAAAAAAAAdACACACAEDWjAEDMgAAAAAAAAAAAAAAAAAAAAAAAAAAAOgEAEAEAIGtoYBAJJAAAAAAAAAAAAAAAAAAAAAAAAAAAB0CACACAEBvREyEAgzAAAAAAAAAAAAAAAAAAAAAAAAAAADoQAQAQAgLuoJkICBc5AAAAAAAAAAAAAAAAAAAAAAAAAAAdEAEAIAQC+iAzBAIKkyAAAAAAAAAAAAAAAAAAAAAAAAAAB7gEAIAQA9ADAQEFQzAAAAAAAAAAAAAAAAAAAAAAAAAAAe4EAIAIAboCZEAgqDMAAAAAAAAAAAAAAAAAAAAAAAAAAD3CAEAEAJrYCSEAgqBMgAAAAAAAAAAAAAAAAAAAAAAAAAB7kAEAIARfQAmRAQLASQAAAAAAAAAAAAAAAAAAAAAAAAAAe8AEAIAQb0AjJAIKgIkAAAAAAAAAAAAAAAAAAAAAAAAAAPYAgBACCvQBEiAQVAQkAAAAAAAAAAAAAAAAAAAAAAAAAAPYCAEAIKa0AjJAQKgQMgAAAAAAAAAAAAAAAAAAAAAAAAAHsEAIAQKNaBCRAIKgIEgAAAAAAAAAAAAAAAAAAAAAAAAAD2IAIAQUR6UQMkBBUBASAAAAAAAAAAAAAAAAAAAAAAAAAAPaACAEFEL6CBIgEFQICIAAAAAAAAAAAAAAAAAAAAAAAAAA9QCAEFEDWyCIgEFQECEAAAAAAAAAAAAAAAAAAAAAAAAAAeoEAIKIBraCIQECwEBCAAAAAAAAAAAAAAAAAAAAAAAAAAPUIAQUIA1tBEQCCoCBBAAAAAAAAAAAAAAAAAAAAAAAAAAHqQAgoQBGthEQCCoCBAgAAAAAAAAAAAAAAAAAAAAAAAAAD1gBBQgBDWyEIBBUCAgQAAAAAAAAAAAAAAAAAAAAAAAAAB6AEFEAIF9IEQCCoCBAgAAAAAAAAAAAAAAAAAAAAAAAAAB6AQUQAgD0CEBAsBAQIAAAAAAAAAAAAAAAAAAAAAAAAAAegQUQAgCPSkIBBUCAgQAAAAAAAAAAAAAAAAAAAAAAAAAAehBRACAINbQgEFQECAgAAAAAAAAAAAAAAAAAAAAAAAAAA9IKEAQAgXYQECwEBAgAAAAAAAAAAAAAAAAAAAAAAAAAAbKEAQAgDWiAQVAQIEAAAAAAAAAAAAAAAAAAAAAAAAAABuhAEAIAi+iAQVAQICAAAAAAAAAAAAAAAAAAAAAAAAAAA9BACAIAgb1AIKgQECAAAAAAAAAAAAAAAAAAAAAAAAAAAeiAEAQBALsCCoCBAQAAAAAAAAAAAAAAAAAAAAAAAAAADYBAEAIAXYQLAQECAAAAAAAAAAAAAAAAAAAAAAAAAAANgQBACAA1oQVAQIEAAAAAAAAAAAAAAAAAAAAAAAAAAANhAEAIAAXaCoCBAQAAAAAAAAAAAAAAAAAAAAAAAAAAA2QAgCAAAugsBAQIAAAAAAAAAAAAAAAAAAAAAAAAAW6qkSSwAgCAAAFtVAQIEAAAAAAAAAAAAAAAAAAAAAAAADWta1SgDlAQBAAAALdQEBBAAAAAAAAAAAAAAAAAAAAAAAAF1vdUFAHKCAIAAAAFqkBCAAAAAAAAAAAAAAAAAAAAAAAANem6CgoByiAEAAAAAKAQAAAAAAAAAAAAAAAAAAAAAAABdetFCgoByoAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABd+ihQUFAcgBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADfpSgoUFAcgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANemgUKCgoHGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAu/QBQUFBQcYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF9dAChQUFBxgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA160AKCgoKHGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/SgAUKCgocYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9NqABQUFBRxgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALvZQAFBQoKOMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC72FAAUKCgpxgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAemqFAAUFCgpxgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3soUABQoKCuMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANegoUABQUKCuMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAX0oUKAAoUFBeMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAu6oUUABQUKByAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG9FChQAFCgoOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABrYUKKAAoKChyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXahRQoAChQUOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAADdKKFCgAUFBRyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAuxQooUABQoKOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGtBRQoUACgoKcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXSihRQoACgoU5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2UKKFCgAUFBXIAAAAAAAAAAAAAAAAAAAAAAAAAAAAALtFFCihQAFBQrkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGtIoUUKFAAUKC8gAAAAAAAAAAAAAAAAAAAAAAAAAAAABdKiihRQoACgoXkAAAAAAAAAAAAAAAAAAAAAAAAAAAAALpSUKKFCgAKFBygAAAAAAAAAAAAAAAAAAAAAAAAAAAAGqVFFCihQAFBQ5QAAAAAAAAAAAAAAAAAAAAAAAAAAAADYpFFFChQAFChygAAAAAAAAAAAAAAAAAAAAAAAAAAAALaKihRQooACgo5QAAAAAAAAAAAAAAAAAAAAAAAAAAAAFtCoooUUKAAoUcoAAAAAAAAAAAAAAAAAAAAAAAAAAAADRRUUKKFCgAUFOUAAAAAAAAAAAAAAAAAAAAAAAAAAAAC0oVFFCihQAFCnKAAAAAAAAAAAAAAAAAAAAAAAAAAAABaKKihRQoUACgrlAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtCioooUUKAAoLygAAAAAAAAAAAAAAAAAAAAAAAAAAAAVRRUUKKFCgAUF5QAAAAAAAAAAAAAAAAAAAAAAAAAAAAKUUVFFCihQAFBzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUooqKFFChQAFDmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoooqKKFFCgAKHMAAAAAAAAAAAAAAAAAAAAAAAAAAAABRRRSUKKFCgAKOYAAAAAAAAAAAAAAAAAAAAAAAAAAAABRRRUUUKKFAAUcwAAAAAAAAAAAAAAAAAAAAAAAAAAAACiiikUUUKFAAU5gAAAAAAAAAAAAAAAAAAAAAAAAAAAACiiioooUKKAApzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFIooUUKAArmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFRQooUKABXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKKKFRRQooUABeYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKKKKihRQoUABzgAAAAAAAAAAAAAAAAAAAAAAAAAAAABRQoqKKFFCgAOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFRQooUKABzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoUUVFFCihQAOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAACiiiooUUKFABzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUKKKiihRQoAOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAABRRRSUKKFCgBzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFRRQooUAOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAooopFFFChQBzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAACiiioooUKKAOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUUUUiihRQoBzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAABRRRUUKKFCgOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKKKFRRQooUBzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoooqKFFChQOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFCioooUUKBzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUUUVFCihQoOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAChRRUUUKKFBzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKKKKihRQoUOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoooqKKFFChzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFJQooUKOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUUUBQBQKH/xAAXAQEBAQEAAAAAAAAAAAAAAAAAAQID/9oACAECEAAAAOoCAASAAAAAAAAAAAAAAANgQAAyAAAAAAAAAAAAAAA2EAACQAAAAAAAAAAAAAADZAAAJAAAAAAAAAAAAAAANwAAAZAAAAAAAAAAAAAAA0AAAJAAAAAAAAAAAAAAANAAAIQAAAAAAAAAAAAAADQAAIEAAAAAAAAAAAAAAA0AAIBAAAAAAAAAAAAAAANAAIAQAAAAAAAAAAAAAADQAIAEAAAAAAAAAAAAAAA0AIAAIAAAAAAAAAAAAAANAIABSBAAAAAAAAAAAAAANAQAFEsBAAAAAAAAAAAAAA0EABNBAIAAAAAAAAAAAAADRAARoJYEAAAAAAAAAAAAAAoAELqBAQAAAAAAAAAAAAACgAgtCAgAAAAAAAAAAAAACgCLDQICAAAAAAAAAAAAAAKAiwNBAQAAAAAAAAAAAAAAoIsA0ECAAAAAAAAAAAAAACiLADQgIAAAAAAAAAAAAAAKiwANEBAAAAAAAAAAAAAAAAAC1AgAAAAAAAAAAAAAAAAAtgIAAAAAAAAAAAAAAAAAFBAAAAAAAAAAAAAAAAAAKEAAAAAAAAAAAAAAAAAAUgAAAAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAtKMAAAAAAAAAAAAAAAAAaoFOYAAAAAAAAAAAAAAAAtoBTmAAAAAAAAAAAAAAAAaFAK5gAAAAAAAAAAAAAAAWgoBeYAAAAAAAAAAAAAAALQKAXmAAAAAAAAAAAAAAAFoBQDAAAAAAAAAAAAAAAAtAFAMAAAAAAAAAAAAAAAFUAKAwAAAAAAAAAAAAAAAUoAoDAAAAAAAAAAAAAAACigBQMAAAAAAAAAAAAAAAUFAFAwAAAAAAAAAAAAAABQUAKDAAAAAAAAAAAAAAACgoAoMAAAAAAAAAAAAAAAKCgBQwAAAAAAAAAAAAAAAUFAFDAAAAAAAAAAAAAAABQUAKMAAAAAAAAAAAAAAACgoAUwAAAAAAAAAAAAAAAFBQBTAAAAAAAAAAAAAAAAUFACsAAAAAAAAAAAAAAAAoKAKwAAAAAAAAAAAAAAACgoAXAAAAAAAAAAAAAAAAWUFAFwAAAAAAAAAAAAAAABQUAMgAAAAAAAAAAAAAAAsoKAMgAAAAAAAAAAAAAAAKCgDIAAAAAAAAAAAAAAABQUAyAAAAAAAAAAAAAAAAUFAMgAAAAAAAAAAAAAAACgoDIAAAAAAAAAAAAAAAAoKAyAAAAAAAAAAAAAAAAFBQMgAAAAAAAAAAAAAAAAoKDIAAAAAAAAAAAAAAAAKCgyAAAAAAAAAAAAAAAABQUMgAAAAAAAAAAAAAAAAUFDIAAAAAAAAAAAAAAAAAoD//EABYBAQEBAAAAAAAAAAAAAAAAAAABAv/aAAgBAxAAAADAAoigoAAAAAAAAAAAAAADIBSKAoAAAAAAAAAAAAAADIFIoAoAAAAAAAAAAAAAADIUigAUAAAAAAAAAAAAAADJSKAAUAAAAAAAAAAAAAADNIoAAoAAAAAAAAAAAAAACIUAAoAAAAAAAAAAAAAAAyUAApKAAAAAAAAAAAAAAAzQABUUAAAAAAAAAAAAAAAgABUUAAAAAAAAAAAAAAAIABUUAAAAAAAAAAAAAAACABUUAAAAAAAAAAAAAAAAgBUUBAoAAAAAAAAAAAAAAgFJQEBQAAAAAAAAAAAAAAgUlAJKFAAAAAAAAAAAAAACCooBIooAAAAAAAAAAAAAAIqKAGVCgAAAAAAAAAAAAAAIoAIBQAAAAAAAAAAAAAAIoACAoAAAAAAAAAAAAAAAAAM0KAAAAAAAAAAAAAAAAACBQAAAAAAAAAAAAAAAAAIKAAAAAAAAAAAAAAAAAAgoAAAAAAAAAAAAAAAAACFAAAAAAAAAAAAAAAAAAEUAAAAAAAAAAAAAAAAAASgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAloAAAAAAAAAAAAAAAAEQA0AAAAAAAAAAAAAAAAEgANAAAAAAAAAAAAAAAAElgANAAAAAAAAAAAAAAAAIlQANAAAAAAAAAAAAAAAAgSwANAAAAAAAAAAAAAAABASoANAAAAAAAAAAAAAAACAJYANAAAAAAAAAAAAAAABAIsANAAAAAAAAAAAAAAAEsASoA0AAAAAAAAAAAAAAAJYAlgDQAAAAAAAAAAAAAAAIAlQDQAAAAAAAAAAAAAAASwBLANAAAAAAAAAAAAAAAAQBKgNAAAAAAAAAAAAAAAAlgCWA0AAAAAAAAAAAAAAAAQCVA0AAAAAAAAAAAAAAABLAEsDQAAAAAAAAAAAAAAAAgEqDQAAAAAAAAAAAAAAACWAJYNAAAAAAAAAAAAAAAAEsAlQ0AAAAAAAAAAAAAAAASwBLDQAAAAAAAAAAAAAAAAlgEWNAAAAAAAAAAAAAAAACWAJU0AAAAAAAAAAAAAAAAEsASzQAAAAAAAAAAAAAAAAEASqAAAAAAAAAAAAAAAACWAJaAAAAAAAAAAAAAAAAAgCWgAAAAAAAAAAAAAAAASwBNAAAAAAAAAAAAAAAAACATQAAAAAAAAAAAAAAAACWAKAAAAAAAAAAAAAAAAAEAoAAAAAAAAAAAAAAAABLAKAAAAAAAAAAAAAAAAAJYCgAAAAAAAAAAAAAAAACWAoAAAAAAAAAAAAAAAAASwKAAAAAAAAAAAAAAAAAAg//EACgQAAEEAQIFBAMBAAAAAAAAAAEAAhFwMTBREhNAQYADECBQIWBh0P/aAAgBAQABPwD5QPeAoC/HURoOEi5SINyPFyOEi5Tcjs3I+5HYPmScm5HZuR1yOuR2Lkdi5Di5Di5Di5Di5Di5DchuR3vBUFQbdgrhRAnQgKFBtYNUAe51ItINJQAHRxZ4b8j0JFlgSgI+Z6IiyQJQEaB6MiyAI60ixgI0TbTRpHpjYY+iNhNGkbkPUmwG3IMaR8vRnSNtNzcjc3I3NyNzcjc3IM+ZIxcjbkFyi5AYuVpuWZuQGLlBuUG5QVNYQdlwO2XLcuU5co7rlHdcr+rlHdco7rlO3C5blwO2XC7Y/UzVQBPZD0yh6Q3QY3ZQB2+4BqUMcUPTHcoNA7ffypp8NJQYO6AA/RZUqVKlTSwYSg0C4Qw90ABcIYSgALhAJQaBcQZvcQEoNi4g2UBFxNbvcYbvcbWxcbRFxgXG0XGBcYE3IBFxgXGB5jgXGLkFxi5B5jjzHFyDzHFyD/AKp0pUqVKlSpUqVKlSpUqVK//EAB0RAAMAAgIDAAAAAAAAAAAAAAABEWBwEpCAoLD/2gAIAQIBAT8A30/QDhCeJ8zFLca7Hl0RQhCIiIjijjk8Jl8JuCfXf//EABoRAAICAwAAAAAAAAAAAAAAAAARAaAQYLD/2gAIAQMBAT8AtfzYjYxjyx7Q+5f/AP/Z"},J=function(A){function e(e){var t;return void 0===e&&(e={}),(t=A.call(this,Object.assign({},U,Y({},e,{tagName:"div",controlType:"block",classNameSuffix:"poster"})))||this)._options=Object.assign({},U,e),t.$container.classList.add(f+"-poster",f+"-hide"),t._imgLoadErrorEvent=t._imgLoadErrorEvent.bind(t),t._options.poster&&t.setPoster(t._options.poster),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&G(A,e)}(e,A);var t=e.prototype;return t._imgLoadErrorEvent=function(A){var e;null==this._options.onLoadImgError||this._options.onLoadImgError.call(this._options,(null==(e=A.target)?void 0:e.getAttribute("src"))||"")},t.setPoster=function(A){var e;""!==(A=null!=A?A:this._options.poster)?(this.$container.innerHTML='<img class="'+f+'-poster-img" src="'+A+'" />',null==(e=this.$container.querySelector("."+f+"-poster-img"))||e.addEventListener("error",this._imgLoadErrorEvent)):this.$container.innerHTML=""},t.show=function(){this.$container&&(this.$container.style.display="flex",this.$container.classList.remove(f+"-hide"))},t.hide=function(){var e,t;A.prototype.hide.call(this),null==(t=this.$container)||null==(e=t.querySelector("."+f+"-poster-img"))||e.removeEventListener("error",this._imgLoadErrorEvent)},t.destroy=function(){this.hide(),A.prototype.destroy.call(this)},e}(k),H='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="play">\n <rect x="6.5" y="5.5" rx="1.25" width="2.5" height="13"/>\n <rect x="15" y="5.5" rx="1.25" width="2.5" height="13"/>\n </svg>',O='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="pause"> <path d="M17.5 13.66L9.1 19.26C7.78 20.14 6 19.19 6 17.59L6 6.4C6 4.8 7.78 3.85 9.1 4.73L17.5 10.33C18.69 11.12 18.69 12.87 17.5 13.66Z" /></svg>',K=function(A){return'<svg width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" fill="none" focusable="false" aria-hidden="true" data-icon="volume">\n \t<path class="'+A+'-icon-volume-muted" d="M20.57 9.69L16.07 14.19" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n \t<path class="'+A+'-icon-volume-muted" d="M20.57 14.19L16.07 9.69" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n \x3c!-- 音低 --\x3e\n <path class="'+A+'-icon-volume-low" d="M15.53 15.97C16.69 15.25 17.49 13.75 17.49 12C17.49 10.25 16.69 8.75 15.53 8.02" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n \t\x3c!-- 音高 --\x3e\n <path class="'+A+'-icon-volume-high" d="M18.5 19.06C20.31 17.5 21.49 14.93 21.49 12C21.49 9.07 20.31 6.48 18.49 4.93" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n \t<path d="M5.87 8.62L9.85 5.25C10.5 4.7 11.49 5.16 11.49 6.01L11.49 17.98C11.49 18.83 10.5 19.29 9.85 18.74L5.87 15.37" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n \t<path d="M5.87 15.37L3.49 15.37C2.94 15.37 2.49 14.92 2.49 14.37L2.49 9.62C2.49 9.07 2.94 8.62 3.49 8.62L5.87 8.62" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>'},V='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="mobile-fullscreen">\n <path d="M4 2.9082L11 2.9082C12.5188 2.9082 13.75 4.1394 13.75 5.6582L13.75 17.6582C13.75 19.177 12.5188 20.4082 11 20.4082L4 20.4082C2.4812 20.4082 1.25 19.177 1.25 17.6582L1.25 5.6582C1.25 4.1394 2.4812 2.9082 4 2.9082ZM4 4.4082L11 4.4082C11.6903 4.4082 12.25 4.9679 12.25 5.6582L12.25 17.6582C12.25 18.3485 11.6903 18.9082 11 18.9082L4 18.9082C3.30969 18.9082 2.75 18.3485 2.75 17.6582L2.75 5.6582C2.75 4.9679 3.30969 4.4082 4 4.4082ZM22.1511 18.3113C22.1511 19.3595 21.2467 20.1652 20.1509 20.2362L19.993 20.2413L15.2939 20.2413C14.8798 20.2413 14.5439 19.9055 14.5439 19.4913C14.5439 19.1116 14.8262 18.7979 15.1921 18.7482L15.2939 18.7413L19.993 18.7413C20.344 18.7413 20.5962 18.5592 20.6432 18.3732L20.6511 18.3113L20.6511 12.4895C20.6511 12.3048 20.4338 12.1042 20.1062 12.066L19.993 12.0594L15.2939 12.0594C14.8798 12.0594 14.5439 11.7238 14.5439 11.3094C14.5439 10.9298 14.8262 10.616 15.1921 10.5663L15.2939 10.5594L19.993 10.5594C21.1055 10.5594 22.0605 11.3175 22.145 12.3416L22.1511 12.4895L22.1511 18.3113ZM10.3225 16.1035C10.3225 15.6893 9.98669 15.3535 9.57251 15.3535L5.84644 15.3535L5.74463 15.3604C5.37854 15.41 5.09644 15.7239 5.09644 16.1035C5.09644 16.5177 5.43225 16.8535 5.84644 16.8535L9.57251 16.8535L9.67432 16.8467C10.0404 16.797 10.3225 16.4832 10.3225 16.1035Z" clip-rule="evenodd" fill-rule="evenodd"/>\n </svg>',W='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="webFullscreen">\n \t<path d="M18.4009 2.40125L5.59972 2.40125C4.74849 2.39276 3.9297 2.72729 3.32788 3.32935C2.72607 3.9314 2.39188 4.75031 2.40062 5.6015L2.40062 18.4015C2.3922 19.2527 2.7267 20.0715 3.32874 20.6733C3.93079 21.2751 4.74969 21.6093 5.60091 21.6006L18.4009 21.6006C19.2519 21.609 20.0705 21.2747 20.6723 20.6729C21.2741 20.0711 21.6084 19.2525 21.6 18.4015L21.6 5.60034C21.6084 4.74933 21.2741 3.93073 20.6723 3.32892C20.0705 2.72711 19.2519 2.39282 18.4009 2.40125ZM18.401 20.3213C19.4246 20.3213 20.321 19.4249 20.321 18.4014L20.321 5.60022C20.321 4.5766 19.4246 3.68024 18.401 3.68024L5.59987 3.68024C4.57631 3.68024 3.67993 4.5766 3.67993 5.60022L3.67993 18.4014C3.67993 19.4249 4.57631 20.3213 5.59987 20.3213L18.401 20.3213ZM14.5599 5.27087L18.3997 5.27087L18.3997 5.27209C18.7849 5.27087 19.0405 5.52527 19.0405 5.91168L19.0405 9.75153C19.0405 10.1331 18.7849 10.3887 18.401 10.3911C18.0158 10.3887 17.7602 10.1331 17.7602 9.75153L17.7602 7.44763L14.0487 11.1591C13.9313 11.2808 13.7695 11.3494 13.6005 11.3494C13.4315 11.3494 13.2697 11.2808 13.1523 11.1591C13.0292 11.0428 12.9594 10.8809 12.9594 10.7115C12.9594 10.5421 13.0292 10.3802 13.1523 10.2639L16.8638 6.55005L14.5599 6.55005C14.1735 6.54883 13.9179 6.29443 13.9203 5.91046C13.9179 5.52411 14.1735 5.26971 14.5599 5.27087ZM10.594 12.6625L6.88254 16.3751L6.88254 14.0712C6.88254 13.686 6.62695 13.4304 6.24297 13.4304C5.85898 13.4304 5.60338 13.686 5.60219 14.0712L5.60219 17.9111C5.60219 18.2939 5.85898 18.5483 6.24297 18.5507L10.0828 18.5507C10.4668 18.5483 10.7224 18.2939 10.7224 17.9099C10.7224 17.5247 10.4668 17.2691 10.0816 17.2703L7.77771 17.2703L11.4904 13.5588C11.6133 13.4421 11.6829 13.2801 11.6829 13.1107C11.6829 12.9412 11.6133 12.7791 11.4904 12.6625C11.3737 12.5396 11.2117 12.47 11.0422 12.47C10.8727 12.47 10.7107 12.5396 10.594 12.6625Z" clip-rule="evenodd" fill-rule="evenodd"/>\n </svg>',Z='\n <svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="exitWebFullscreen">\n \t<path d="M18.4009 2.40125L5.59978 2.40125C4.74855 2.39276 3.92976 2.72729 3.32794 3.32935C2.72614 3.9314 2.39194 4.75031 2.40068 5.6015L2.40068 18.4015C2.39226 19.2527 2.72676 20.0715 3.3288 20.6733C3.93085 21.2751 4.74976 21.6093 5.60097 21.6006L18.4009 21.6006C19.252 21.609 20.0706 21.2747 20.6723 20.6729C21.2741 20.0711 21.6085 19.2525 21.6 18.4015L21.6 5.60034C21.6085 4.74933 21.2741 3.93073 20.6723 3.32892C20.0706 2.72711 19.252 2.39282 18.4009 2.40125ZM18.4012 20.3212C19.4247 20.3212 20.3211 19.4248 20.3211 18.4012L20.3211 5.6001C20.3211 4.57648 19.4247 3.68011 18.4012 3.68011L5.59999 3.68011C4.57643 3.68011 3.68005 4.57648 3.68005 5.6001L3.68005 18.4012C3.68005 19.4248 4.57643 20.3212 5.59999 20.3212L18.4012 20.3212ZM17.4401 11.3494L13.6002 11.3494L13.6002 11.3483C13.215 11.3494 12.9594 11.095 12.9594 10.7087L12.9594 6.86877C12.9594 6.48718 13.215 6.23163 13.599 6.22925C13.9842 6.23163 14.2398 6.48718 14.2398 6.86877L14.2398 9.17273L17.9512 5.46124C18.0686 5.3396 18.2304 5.27087 18.3994 5.27087C18.5685 5.27087 18.7303 5.3396 18.8476 5.46124C18.9708 5.57751 19.0406 5.73944 19.0406 5.90881C19.0406 6.07825 18.9708 6.24011 18.8476 6.35645L15.1362 10.0703L17.4401 10.0703C17.8265 10.0715 18.082 10.3259 18.0797 10.7099C18.082 11.0963 17.8265 11.3506 17.4401 11.3494ZM6.69115 18.358L10.4026 14.6454L10.4026 16.9493C10.4026 17.3345 10.6582 17.5901 11.0422 17.5901C11.4262 17.5901 11.6818 17.3345 11.683 16.9493L11.683 13.1094C11.683 12.7266 11.4262 12.4722 11.0422 12.4698L7.20233 12.4698C6.81834 12.4722 6.56276 12.7266 6.56276 13.1106C6.56276 13.4958 6.81834 13.7514 7.20354 13.7502L9.50746 13.7502L5.79478 17.4617C5.67188 17.5784 5.60228 17.7404 5.60228 17.9099C5.60228 18.0793 5.67188 18.2413 5.79478 18.358C5.91145 18.481 6.07349 18.5505 6.24297 18.5505C6.41243 18.5505 6.57446 18.481 6.69115 18.358Z" clip-rule="evenodd" fill-rule="evenodd"/>\n</svg>',X='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="fullscreen">\n <path d="M8 4L6 4C4.89 4 4 4.89 4 6L4 8" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n \t<path d="M4 16L4 18C4 19.1 4.89 20 6 20L8 20" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n \t<path d="M16 20L18 20C19.1 20 20 19.1 20 18L20 16" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n \t<path d="M20 8L20 6C20 4.89 19.1 4 18 4L16 4" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',q='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="exitFullscreen">\n <path d="M4 8L6 8C7.1 8 8 7.1 8 6L8 4" stroke-width="1.488819" stroke-linejoin="round" stroke-linecap="round"/>\n \t<path d="M8 20L8 18C8 16.89 7.1 16 6 16L4 16" stroke-width="1.488819" stroke-linejoin="round" stroke-linecap="round"/>\n \t<path d="M20 16L18 16C16.89 16 16 16.89 16 18L16 20" stroke-width="1.488819" stroke-linejoin="round" stroke-linecap="round"/>\n \t<path d="M16 4L16 6C16 7.1 16.89 8 18 8L20 8" stroke-width="1.488819" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',j='<svg width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="close"><path d="M6.34 6.34L17.65 17.65" stroke-width="1.5" stroke-linecap="round"/><path d="M6.34 17.65L17.65 6.34" stroke-width="1.5" stroke-linecap="round"/></svg>',z='<svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" focusable="false" aria-hidden="true" data-icon="close-circle">\n <path d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.5844 5.40312C10.6531 5.40312 10.7094 5.45937 10.7094 5.52812C10.7094 5.55781 10.7 5.5875 10.6812 5.60938L8.64844 8.03125L10.6781 10.4516C10.6969 10.475 10.7078 10.5031 10.7078 10.5328C10.7078 10.6031 10.6516 10.6578 10.5828 10.6578L9.55156 10.6531L8 8.80312L6.44844 10.6547L5.41563 10.6594C5.34688 10.6594 5.29063 10.6031 5.29063 10.5344C5.29063 10.5047 5.30156 10.4766 5.32031 10.4531L7.35313 8.03281L5.32031 5.61094C5.30156 5.5875 5.29063 5.55937 5.29063 5.52969C5.29063 5.45937 5.34688 5.40469 5.41563 5.40469L6.44844 5.40937L8 7.25937L9.55313 5.40781L10.5844 5.40312Z" fill-rule="evenodd" />\n </svg>',$='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="ptz">\n <circle cx="12" cy="12" r="2.771739" stroke-width="1.5"/>\n <path d="M9.06 5.14L10.76 3.8C11.48 3.23 12.51 3.23 13.23 3.8L14.93 5.14" stroke-width="1.5" stroke-linecap="round"/>\n <path d="M4.87 14.93L3.54 13.23C2.97 12.51 2.97 11.48 3.54 10.76L4.87 9.06" stroke-width="1.5" stroke-linecap="round"/>\n <path d="M18.91 14.93L20.24 13.23C20.81 12.51 20.81 11.48 20.24 10.76L18.91 9.06" stroke-width="1.5" stroke-linecap="round"/>\n <path d="M9.06 18.69L10.76 20.02C11.48 20.59 12.51 20.59 13.23 20.02L14.93 18.69" stroke-width="1.5" stroke-linecap="round"/>\n </svg>',AA='<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="sdk">\n <path d="M6.20253 2.50012L11.6496 2.50012C12.2335 2.50012 12.7939 2.72827 13.2069 3.13391L15.3547 5.24329C15.7677 5.64893 16 6.19934 16 6.77271L16 15.1062C16 16.3011 15.0142 17.2694 13.7975 17.2694L6.20253 17.2694C4.98578 17.2694 4 16.3011 4 15.1062L4 4.66333C4 3.46826 4.98578 2.50012 6.20253 2.50012ZM8.07051 6.09814C8.02467 5.76025 7.73502 5.49976 7.38452 5.49976C7.00217 5.49976 6.69221 5.80969 6.69221 6.19202L6.69221 8.49976L6.69853 8.59375C6.74437 8.93164 7.03403 9.19202 7.38452 9.19202C7.76688 9.19202 8.07683 8.88208 8.07683 8.49976L8.07683 6.19202L8.07051 6.09814ZM9.69238 5.49976C10.0429 5.49976 10.3325 5.76025 10.3784 6.09814L10.3847 6.19202L10.3847 8.49976C10.3847 8.88208 10.0747 9.19202 9.69238 9.19202C9.34189 9.19202 9.05223 8.93164 9.00639 8.59375L9.00008 8.49976L9.00008 6.19202C9.00008 5.80969 9.31003 5.49976 9.69238 5.49976ZM12.686 6.09814C12.6402 5.76025 12.3505 5.49976 12 5.49976C11.6176 5.49976 11.3077 5.80969 11.3077 6.19202L11.3077 8.49976L11.314 8.59375C11.3598 8.93164 11.6495 9.19202 12 9.19202C12.3824 9.19202 12.6923 8.88208 12.6923 8.49976L12.6923 6.19202L12.686 6.09814Z" clip-rule="evenodd" fill-rule="evenodd"/>\n </svg>',eA='<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="cloud">\n <path d="M9.76489 4.00439C7.65723 4.08447 5.79883 5.23486 4.89697 6.94995L4.78638 7.17236C2.60205 7.62524 1 9.40649 1 11.5239C1 14.0032 3.17749 16 5.84619 16L9.32983 16L9.32983 13.3784L7.66479 13.3784C7.21924 13.3784 6.99634 12.8398 7.31128 12.5249L9.63892 10.197C9.83423 10.002 10.1509 10.002 10.3462 10.197L12.6738 12.5249C12.9888 12.8398 12.7659 13.3784 12.3203 13.3784L10.6553 13.3784L10.6553 16L14.9846 16C17.1948 16 19 14.3445 19 12.2856L18.9954 12.1052C18.9058 10.3704 17.533 8.95557 15.7456 8.63818L15.6372 8.62036L15.6152 8.4624C15.2087 5.93188 12.8438 4 10 4L9.76489 4.00439Z" clip-rule="evenodd" fill-rule="evenodd"/>\n </svg>',tA='<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="cloud-record">\n <path d="M9.76489 4.00439C7.65723 4.08447 5.79883 5.23486 4.89697 6.94995L4.78638 7.17236C2.60205 7.62524 1 9.40649 1 11.5239C1 14.0032 3.17749 16 5.84619 16L14.9846 16C17.1948 16 19 14.3445 19 12.2856L18.9954 12.1052C18.9058 10.3704 17.533 8.95557 15.7456 8.63818L15.6372 8.62036L15.6152 8.4624C15.2087 5.93188 12.8438 4 10 4L9.76489 4.00439ZM10.8674 13.9116L6.89038 13.9116C6.26294 13.9116 5.75391 13.3889 5.75391 12.7449L5.75391 9.24487C5.75391 8.60034 6.26294 8.07812 6.89038 8.07812L10.8674 8.07812C11.4954 8.07812 12.0039 8.60034 12.0039 9.24487L12.0039 10.2937C12.2932 10.0627 12.9229 9.63184 13.4836 9.271C13.8145 9.05811 14.2461 9.24219 14.2461 9.63599L14.2461 12.3655C14.2461 12.759 13.8142 12.9434 13.4836 12.7307C12.9321 12.3755 12.303 11.9438 12.0039 11.707L12.0039 12.7449C12.0039 13.3889 11.4954 13.9116 10.8674 13.9116Z" clip-rule="evenodd" fill-rule="evenodd"/>\n </svg>',iA='<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="filter">\n <path d="M12.57 9.92L16.31 5.76C16.55 5.49 16.69 5.15 16.69 4.79C16.69 3.98 16.03 3.33 15.23 3.33L4.79 3.33C4.43 3.33 4.09 3.46 3.82 3.7L3.72 3.79C3.21 4.33 3.19 5.18 3.7 5.75L7.38 9.91L7.38 15.66C7.38 16.11 7.7 16.51 8.14 16.63L11.32 17.43C11.95 17.59 12.57 17.11 12.57 16.46L12.57 9.92ZM4.88 4.83L8.88 9.35L8.88 15.27L11.07 15.82L11.07 9.34L15.13 4.83L4.88 4.83Z" fill-rule="evenodd"/>\n </svg>',aA='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="more">\n <path d="M4 6.8L20.8 6.8" stroke-width="1.5" stroke-linecap="round"/>\n <path d="M4 12.39L12.4 12.39" stroke-width="1.5" stroke-linecap="round"/>\n <path d="M4 18L8.19 18" stroke-width="1.5" stroke-linecap="round"/>\n </svg>',rA='<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="more-dot">\n <path d="M8.75 3.75C8.75 3.05964 9.30964 2.5 10 2.5C10.6904 2.5 11.25 3.05964 11.25 3.75C11.25 4.44036 10.6904 5 10 5C9.30964 5 8.75 4.44036 8.75 3.75ZM8.75 10C8.75 9.30964 9.30964 8.75 10 8.75C10.6904 8.75 11.25 9.30964 11.25 10C11.25 10.6904 10.6904 11.25 10 11.25C9.30964 11.25 8.75 10.6904 8.75 10ZM10 15C9.30964 15 8.75 15.5596 8.75 16.25C8.75 16.9404 9.30964 17.5 10 17.5C10.6904 17.5 11.25 16.9404 11.25 16.25C11.25 15.5596 10.6904 15 10 15Z" fill-rule="evenodd" />\n </svg>',nA='<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="minus-circle">\n \t\t<path fill="currentColor" d="M10 3.75C13.4518 3.75 16.25 6.54822 16.25 10C16.25 13.4518 13.4518 16.25 10 16.25C6.54822 16.25 3.75 13.4518 3.75 10C3.75 6.54822 6.54822 3.75 10 3.75ZM10 5C7.23857 5 5 7.23858 5 10C5 12.7614 7.23857 15 10 15C12.7614 15 15 12.7614 15 10C15 7.23858 12.7614 5 10 5Z" fill-rule="evenodd" />\n\t\t <path stroke="currentColor" d="M7.46729 10.0588L12.4673 10.0588" stroke-linecap="round" stroke-width="1.25" />\n </svg>',oA='<svg width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="plus-circle">\n <path fill="currentColor" d="M10 3.75C13.4518 3.75 16.25 6.54822 16.25 10C16.25 13.4518 13.4518 16.25 10 16.25C6.54822 16.25 3.75 13.4518 3.75 10C3.75 6.54822 6.54822 3.75 10 3.75ZM10 5C7.23857 5 5 7.23858 5 10C5 12.7614 7.23857 15 10 15C12.7614 15 15 12.7614 15 10C15 7.23858 12.7614 5 10 5Z" fill-rule="evenodd" />\n <path stroke="currentColor" d="M7.46729 10.0588L12.4673 10.0588" stroke-linecap="round" stroke-width="1.25" />\n <path stroke="currentColor" d="M0 0L5 0" stroke-linecap="round" stroke-width="1.25" transform="matrix(0,1,-1,0,9.96729,7.55884)" />\n </svg>',sA='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="record">\n <path d="M4.53 19C3.03 19 1.8 17.74 1.8 16.2L1.8 7.8C1.8 6.25 3.03 5 4.53 5L14.08 5C15.58 5 16.8 6.25 16.8 7.8L16.8 16.2C16.8 17.74 15.58 19 14.08 19L4.53 19Z" stroke-width="1.5" stroke-linejoin="round"/>\n <path d="M17.25 13.64C17.94 14.2 18.97 15.03 20.36 16.15C21.09 16.74 22.19 16.21 22.19 15.27L22.19 8.72C22.19 7.78 21.09 7.25 20.36 7.84C18.99 8.94 17.96 9.77 17.28 10.32" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',gA='<svg width="1em" height="1em" viewBox="0 0 14 14" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="record-circle">\n\t\t<path d="M7.00044 2.5C9.70278 2.5 11.8935 4.69068 11.8935 7.39302C11.8935 10.0954 9.70278 12.286 7.00044 12.286C4.2981 12.286 2.10742 10.0954 2.10742 7.39302C2.10742 4.69068 4.2981 2.5 7.00044 2.5ZM7.00044 3.5C4.85039 3.5 3.10742 5.24296 3.10742 7.39302C3.10742 9.54307 4.85039 11.286 7.00044 11.286C9.15049 11.286 10.8935 9.54307 10.8935 7.39302C10.8935 5.24296 9.15049 3.5 7.00044 3.5ZM9.50049 7.39252C9.50049 6.01181 8.3812 4.89252 7.00049 4.89252C5.61978 4.89252 4.50049 6.01181 4.50049 7.39252C4.50049 8.77323 5.61978 9.89252 7.00049 9.89252C8.3812 9.89252 9.50049 8.77323 9.50049 7.39252Z" fill-rule="evenodd" />\n </svg>\n ',lA='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="talk">\n \t<path stroke="none" d="M12.22 18.95C12.65 18.95 13.01 19.21 13.07 19.54L13.08 19.64L13.08 21.78C13.08 22.16 12.69 22.47 12.22 22.47C11.78 22.47 11.42 22.21 11.37 21.87L11.36 21.78L11.36 19.64C11.36 19.26 11.74 18.95 12.22 18.95Z" fill-rule="evenodd"/>\n <path d="M19.53 11.37L19.53 11.58C19.53 15.74 16.15 19.11 11.99 19.11C7.83 19.11 4.46 15.74 4.46 11.58L4.46 11.43" fill="none" stroke-width="1.5" stroke-linecap="round"/>\n <path stroke="none" d="M12.05 1.52C9.3 1.52 7.07 3.58 7.07 6.12L7.07 12.07C7.07 14.61 9.3 16.67 12.05 16.67C14.79 16.67 17.02 14.61 17.02 12.07L17.02 6.12C17.02 3.58 14.79 1.52 12.05 1.52ZM8.57 12.07L8.57 6.12C8.57 5.94 8.59 5.75 8.63 5.57C8.67 5.36 8.74 5.16 8.83 4.96C8.86 4.89 8.9 4.82 8.93 4.75C9.09 4.46 9.3 4.21 9.55 3.97C9.64 3.89 9.73 3.81 9.83 3.74C10.08 3.55 10.35 3.4 10.66 3.28C10.79 3.23 10.93 3.19 11.06 3.15C11.38 3.07 11.71 3.02 12.05 3.02C12.38 3.02 12.71 3.07 13.03 3.15C13.17 3.19 13.3 3.23 13.43 3.28C13.74 3.4 14.02 3.55 14.27 3.74C14.36 3.81 14.45 3.89 14.54 3.97C14.79 4.21 15 4.46 15.16 4.75C15.2 4.82 15.23 4.89 15.26 4.96C15.35 5.16 15.42 5.36 15.46 5.57C15.5 5.75 15.52 5.94 15.52 6.12L15.52 12.07C15.52 12.26 15.5 12.44 15.46 12.63C15.42 12.83 15.35 13.04 15.26 13.24C15.23 13.31 15.2 13.38 15.16 13.45C15 13.73 14.79 13.99 14.54 14.22C14.45 14.3 14.36 14.38 14.27 14.45C14.02 14.64 13.74 14.79 13.43 14.91C13.3 14.96 13.17 15.01 13.03 15.05C12.71 15.13 12.38 15.17 12.05 15.17C11.71 15.17 11.38 15.13 11.06 15.05C10.93 15.01 10.79 14.96 10.66 14.91C10.35 14.79 10.08 14.64 9.83 14.45C9.73 14.38 9.64 14.3 9.55 14.22C9.3 13.99 9.09 13.73 8.93 13.45C8.9 13.38 8.86 13.31 8.83 13.24C8.74 13.04 8.67 12.83 8.63 12.63C8.59 12.44 8.57 12.26 8.57 12.07Z" fill-rule="evenodd"/>\n </svg>',CA=function(A){return'<svg width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="talk-growth">\n \t\t<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="'+A+'-icon-talk-growth-dot">\n <path class="'+A+'-icon-talk-growth-dot1" d="M19.1333 6.40039L22.8667 6.40039" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="'+A+'-icon-talk-growth-dot2" d="M19.1333 10.1338L21.9331 10.1338" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="'+A+'-icon-talk-growth-dot3" d="M19.1333 13.8672L20.9995 13.8672" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="'+A+'-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>'},IA='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="capture-picture">\n \t<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\t <circle cx="12" cy="12.525146" r="3.068097" stroke-width="1.5"/>\n </svg>',cA='<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>',hA='<svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" focusable="false" aria-hidden="true" data-icon="info-circle">\n <path d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM7.25 5.25C7.25 5.66421 7.58579 6 8 6C8.41421 6 8.75 5.66421 8.75 5.25C8.75 4.83579 8.41421 4.5 8 4.5C7.58579 4.5 7.25 4.83579 7.25 5.25ZM8.5 7.125C8.5 7.05625 8.44375 7 8.375 7L7.625 7C7.55625 7 7.5 7.05625 7.5 7.125L7.5 11.375C7.5 11.4438 7.55625 11.5 7.625 11.5L8.375 11.5C8.44375 11.5 8.5 11.4438 8.5 11.375L8.5 7.125Z" fill-rule="evenodd"/>\n </svg>',BA='<svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" focusable="false" aria-hidden="true" data-icon="info-circle">\n <path d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM7.5 8.875C7.5 8.94375 7.55625 9 7.625 9L8.375 9C8.44375 9 8.5 8.94375 8.5 8.875L8.5 4.625C8.5 4.55625 8.44375 4.5 8.375 4.5L7.625 4.5C7.55625 4.5 7.5 4.55625 7.5 4.625L7.5 8.875ZM7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75Z" fill-rule="evenodd" />\n </svg>',EA='<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="date">\n <g>\n <path d="m13.35,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.3,0.5 -0.5,0.5z" />\n <path d="m6.65,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.2,0.5 -0.5,0.5z" />\n <path d="m17.45,8.4l-15,0c-0.3,0 -0.5,-0.2 -0.5,-0.5s0.2,-0.5 0.5,-0.5l15,0c0.3,0 0.5,0.2 0.5,0.5s-0.2,0.5 -0.5,0.5z" />\n <path d="m15.85,18.4l-11.7,0c-1.2,0 -2.2,-1 -2.2,-2.2l0,-10.8c0,-1.2 1,-2.2 2.2,-2.2l11.7,0c1.2,0 2.2,1 2.2,2.2l0,10.8c-0.1,1.3 -1,2.2 -2.2,2.2zm-11.7,-14.1c-0.6,0 -1.2,0.5 -1.2,1.2l0,10.8c0,0.6 0.5,1.2 1.2,1.2l11.7,0c0.6,0 1.2,-0.5 1.2,-1.2l0,-10.9c0,-0.6 -0.5,-1.2 -1.2,-1.2l-11.7,0l0,0.1z" />\n <path d="m9.95,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5s0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7z" />\n <path d="m14.15,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7zm0,-1c-0.2,0 -0.3,0.1 -0.3,0.3c0,0.2 0.3,0.4 0.5,0.2c0.1,-0.1 0.1,-0.1 0.1,-0.2c0,-0.2 -0.1,-0.3 -0.3,-0.3z" />\n <path d="m5.85,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0,0.4 -0.3,0.7 -0.7,0.7z" />\n <path d="m9.95,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0.1,0.4 -0.3,0.7 -0.7,0.7z" />\n </g>\n </svg>',xA='<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="add">\n <path d="M10.5859 2.96875L9.41406 2.96875C9.3099 2.96875 9.25781 3.02083 9.25781 3.125L9.25781 9.25781L3.4375 9.25781C3.38542 9.25781 3.34635 9.27083 3.32031 9.29688C3.29427 9.32292 3.28125 9.36198 3.28125 9.41406L3.28125 10.5859C3.28125 10.6901 3.33333 10.7422 3.4375 10.7422L9.25781 10.7422L9.25781 16.875C9.25781 16.9792 9.3099 17.0312 9.41406 17.0312L10.5859 17.0312C10.6901 17.0312 10.7422 16.9792 10.7422 16.875L10.7422 10.7422L16.5625 10.7422C16.6667 10.7422 16.7188 10.6901 16.7188 10.5859L16.7188 9.41406C16.7188 9.3099 16.6667 9.25781 16.5625 9.25781L10.7422 9.25781L10.7422 3.125C10.7422 3.07292 10.7292 3.03385 10.7031 3.00781C10.6771 2.98177 10.638 2.96875 10.5859 2.96875Z" fill-rule="evenodd" /></svg>',dA='<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="reduce">\n \t<path d="M3.4375 9.25781L16.5625 9.25781C16.6667 9.25781 16.7188 9.3099 16.7188 9.41406L16.7188 10.5859C16.7188 10.6901 16.6667 10.7422 16.5625 10.7422L3.4375 10.7422C3.33333 10.7422 3.28125 10.6901 3.28125 10.5859L3.28125 9.41406C3.28125 9.3099 3.33333 9.25781 3.4375 9.25781Z" fill-rule="evenodd" />\n </svg>';function QA(A,e,t){void 0===t&&(t={});var i="";return t&&Object.keys(t).forEach((function(A){void 0!==t[A]&&null!==t[A]&&(i+=A+'="'+t[A]+'"')})),'<span class="'+f+"-icon "+f+"-icon-"+e+'" '+i+">"+A+"</span>"}var fA=function(A){return void 0===A&&(A={}),QA(H,"play",A)},uA=function(A){return void 0===A&&(A={}),QA(O,"pause",A)},pA=function(A){return void 0===A&&(A={}),QA(K(f),"volume",A)},mA=function(A){return void 0===A&&(A={}),QA(V,"mobile-fullscreen",A)},_A=function(A){return void 0===A&&(A={}),QA(Z,"exit-fullscreen",A)},yA=function(A){return void 0===A&&(A={}),QA(W,"fullscreen",A)},SA=function(A){return void 0===A&&(A={}),QA(q,"exit-global-fullscreen",A)},DA=function(A){return void 0===A&&(A={}),QA(X,"global-fullscreen",A)},RA=function(A){return void 0===A&&(A={}),QA(IA,"capture-picture",A)},FA=function(A){return void 0===A&&(A={}),QA($,"ptz",A)},wA=function(A){return void 0===A&&(A={}),QA(sA,"record",A)},bA=function(A){return void 0===A&&(A={}),QA(gA,"record-circle",A)},vA=function(A){return void 0===A&&(A={}),QA(lA,"talk",A)},PA=function(A){return void 0===A&&(A={}),QA(CA(f),"talk-growth",A)},kA=function(A){return void 0===A&&(A={}),QA(cA,"zoom",A)},TA=function(A){return void 0===A&&(A={}),QA(aA,"more",A)},NA=function(A){return void 0===A&&(A={}),QA(rA,"more-dot",A)},MA=function(A){return void 0===A&&(A={}),QA(nA,"minus-circle",A)},LA=function(A){return void 0===A&&(A={}),QA(oA,"plus-circle",A)},YA=function(A){return void 0===A&&(A={}),QA(AA,"sdk",A)},GA=function(A){return void 0===A&&(A={}),QA(eA,"cloud-rec",A)},UA=function(A){return void 0===A&&(A={}),QA(tA,"cloud-record",A)},JA=function(A){return void 0===A&&(A={}),QA(j,"close",A)},HA=function(A){return void 0===A&&(A={}),QA(z,"close-circle",A)},OA=function(A){return void 0===A&&(A={}),QA(BA,"warn-circle",A)},KA=function(A){return void 0===A&&(A={}),QA(hA,"info-circle",A)},VA=function(A){return void 0===A&&(A={}),QA(EA,"date",A)},WA=function(A){return void 0===A&&(A={}),QA(iA,"filter",A)},ZA=function(A){return void 0===A&&(A={}),QA(xA,"add",A)},XA=function(A){return void 0===A&&(A={}),QA(dA,"reduce",A)};function qA(){return qA=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},qA.apply(this,arguments)}function jA(A,e){return jA=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},jA(A,e)}var zA={},$A=function(A){function e(e){var t;return void 0===e&&(e={}),(t=A.call(this,Object.assign({},zA,qA({},e,{tagName:"div",controlType:"block"})))||this).options=Object.assign({},zA,e),t.$container.classList.add(f+"-message",f+"-hide"),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&jA(A,e)}(e,A);var t=e.prototype;return t.info=function(A,e){void 0===e&&(e=2),this._toast(A,"info",e)},t.warn=function(A,e){void 0===e&&(e=2),this._toast(A,"warn",e)},t.toastError=function(A,e){void 0===e&&(e=2),this._toast(A,"error",e)},t.error=function(A,e){void 0===e&&(e=0),this._show(this._getIcon("error")+'<div class="'+f+'-message-msg">'+(A||"")+"</div>",e,"error")},t._toast=function(A,e,t){var i=this;void 0===e&&(e="info"),void 0===t&&(t=2),this._toastTimer&&clearTimeout(this._toastTimer),this._toastTimer=null,this.options.rootContainer&&(this._$toast||(this._$toast=document.createElement("div"),this._$toast.classList.add(f+"-toast")),this._$toast.innerHTML='<div class="'+f+'-toast-content">'+this._getIcon(e)+'<span class="'+f+"-toast-msg "+f+"-toast-"+e+'">'+(A||"")+"</span></div>",this.options.rootContainer.appendChild(this._$toast),t>0&&(this._toastTimer=setTimeout((function(){var A;null==(A=i._$toast)||A.remove(),i._$toast=null,i._toastTimer&&clearTimeout(i._toastTimer),i._toastTimer=null}),1e3*t)))},t._show=function(A,e,t){var i=this;void 0===e&&(e=0),void 0===t&&(t="info"),this._timer&&(clearTimeout(this._timer),this._timer=null),this.$popupContainer.classList.add(f+"-has-message",f+"-has-message-"+t),"function"==typeof this.options.render?this.$container.innerHTML=this.options.render(A,e,t):this.$container.innerHTML='<div class="'+f+"-message-content "+f+"-message-"+t+'">'+(A||"")+"</div>",this.$container.style.display="flex",this.$container.classList.remove(f+"-hide"),e>0&&(this._timer=setTimeout((function(){i.hide(),i._timer&&clearTimeout(i._timer),i._timer=null}),1e3*e))},t.destroy=function(){var e;this._timer&&(clearTimeout(this._timer),this._timer=null),this._toastTimer&&clearTimeout(this._toastTimer),this._toastTimer=null,null==(e=this._$toast)||e.remove(),this._$toast=null,this.hide(),A.prototype.destroy.call(this)},t.hide=function(){var e=this;this.$container.innerHTML="",Array.from(this.$popupContainer.classList).forEach((function(A){new RegExp("^"+f+"-has-message","ig").test(A)&&e.$popupContainer.classList.remove(A)})),A.prototype.hide.call(this)},t._getIcon=function(A){var e=KA();switch(A){case"warn":e=OA();break;case"error":e=HA();break;default:e=KA()}return e},e}(k);function Ae(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function ee(){return ee=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},ee.apply(this,arguments)}function te(A,e){return te=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},te(A,e)}var ie=function(A){function e(e){var t;return(t=A.call(this,ee({},e,{tagName:"span",controlType:"button",classNameSuffix:"play"}))||this)._playing=!1,t._options=e,t._playing=!!e.props.playing,t.on(b.play,(function(A){t._playing!==A&&(t._playing=A,t._render())})),t._render(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&te(A,e)}(e,A);var t=e.prototype;return t._onControlClick=function(A){this._playing=!this._playing,this.emit(b.control.play,this._playing),null==this._options.onClick||this._options.onClick.call(this._options,A,this._playing),this._render()},t._render=function(){var A,e;this._playing?this.$container.innerHTML=fA({title:null==(A=this.locale)?void 0:A.BTN_PLAY}):this.$container.innerHTML=uA({title:null==(e=this.locale)?void 0:e.BTN_PAUSE})},Ae(e,[{key:"playing",get:function(){return this._playing}}]),e}(k);function ae(A,e){var t=null,i=0;return function(){for(var a=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var s=Date.now(),g=e-(s-i);g<=0?(i=s,A.apply(this,n)):t||(t=setTimeout((function(){i=Date.now(),t=null,A.apply(a,n)}),g))}}function re(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=A[t];return i}function ne(A,e){var t="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(t)return(t=t.call(A)).next.bind(t);if(Array.isArray(A)||(t=function(A,e){if(A){if("string"==typeof A)return re(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?re(A,e):void 0}}(A))||e){t&&(A=t);var i=0;return function(){return i>=A.length?{done:!0}:{done:!1,value:A[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 oe=function(){function A(){}return A.orientationEventListener=function(e){var t=null,i=function(){var e,t;if(null==(e=screen)?void 0:e.orientation)return{angle:screen.orientation.angle,type:screen.orientation.type||screen.mozOrientation||screen.msOrientation};if(void 0!==(null==(t=window)?void 0:t.orientation)){var i=window.orientation;return{angle:i>=0?i:360+i,type:90===Math.abs(i)?"landscape":"portrait"}}return A.isMobile?{angle:window.innerWidth>window.innerHeight?90:0,type:window.innerWidth>window.innerHeight?"landscape":"portrait"}:{angle:0,type:"unknow"}},a=i(),r=function(){var A=null==i?void 0:i();A.angle===a.angle&&A.type===a.type||(null==e||e(A),a=A)},n=function(){t&&clearTimeout(t),r&&(t=setTimeout(r,200))};return screen.orientation?screen.orientation.addEventListener("change",r):"onorientationchange"in window?window.addEventListener("orientationchange",r):A.isMobile&&window.addEventListener("resize",n),[a,function(){screen.orientation&&r?screen.orientation.removeEventListener("change",r):"onorientationchange"in window&&r?window.removeEventListener("orientationchange",r):A.isMobile&&window.removeEventListener("resize",n),r=null,n=null,i=null,t&&(clearTimeout(t),t=null)}]},A.resizeObserver=function(A,e){var t=function(t,i){for(var a,r=ne(t);!(a=r()).done;){a.value.target===A&&e&&e(t,i)}},i=new ResizeObserver(ae(t,50));return i.observe(A),{unobserve:function(){try{null==i||i.unobserve(A)}catch(A){}t=null},disconnect:function(){null==i||i.disconnect(),i=null,t=null}}},A}();function se(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}oe.isMobile=l.isMobile();var ge={step:.01,range:[0,1],draggable:!0,disabled:!1,showPercent:!1,showPlus:!1,showMinus:!1,isRotated:!1,onChange:function(){},renderText:function(A,e){return(100*e).toFixed(0)}},le=function(){function A(A){var e,t;if(this._percent=0,this._value=0,this._disabled=!1,this._delegateSliderMouseDown=null,this._delegateSliderHandleMouseDown=null,this._delegateProgressMouseDown=null,this._delegatePlusClick=null,this._delegateMinusClick=null,this._isRotated=!1,this.options=Object.assign({},ge,A),2!==(null==(e=this.options.range)?void 0:e.length))throw new Error("Progress range must be an array with two elements.");if(this.options.range[0]>=this.options.range[1])throw new Error("Progress range first element must be less than the second element.");this._isRotated=this.options.isRotated||!1,this.$container=A.container,this._render(),this._eventListeners();var i=null!=(t=this.options.defaultValue)?t:this.options.range[0];this._value=+i.toFixed(2),this._percent=+((i-this.options.range[0])/(this.options.range[1]-this.options.range[0])).toFixed(2),this._updateUI(),this.disabled=this.options.disabled}var e=A.prototype;return e.isRotate=function(A){this._isRotated=A},e.destroy=function(){var A,e,t,i,a,r,n,o,s,g;null==(e=this._delegateSliderMouseDown)||null==(A=e.destroy)||A.call(e),this._delegateSliderMouseDown=null,null==(i=this._delegateSliderHandleMouseDown)||null==(t=i.destroy)||t.call(i),this._delegateSliderHandleMouseDown=null,null==(r=this._delegateProgressMouseDown)||null==(a=r.destroy)||a.call(r),this._delegateProgressMouseDown=null,null==(o=this._delegatePlusClick)||null==(n=o.destroy)||n.call(o),this._delegatePlusClick=null,null==(g=this._delegateMinusClick)||null==(s=g.destroy)||s.call(g),this._delegateMinusClick=null,this.$content&&this.$container.removeChild(this.$content),this.$content=null},e._updateValuePercent=function(A,e){if("percent"===A){if(e<0||e>1)return;this._percent!==e&&(this._percent=+e.toFixed(2),this._convertPercentToValue(this._percent),null==this.options.onChange||this.options.onChange.call(this.options,this._value,this._percent,this.options.range),this._updateUI())}else if("value"===A){if(e<this.options.range[0]||e>this.options.range[1])return;this._value!==e&&(this._value=+e.toFixed(2),this._convertValueToPercent(this._value),null==this.options.onChange||this.options.onChange.call(this.options,this._value,this._percent,this.options.range),this._updateUI())}},e._convertPercentToValue=function(A){this._value=+(this.options.range[0]+(this.options.range[1]-this.options.range[0])*A).toFixed(2)},e._convertValueToPercent=function(A){this._percent=+((A-this.options.range[0])/(this.options.range[1]-this.options.range[0])).toFixed(2)},e._render=function(){var A;this.$content=document.createElement("div"),this.$content.className=f+"-progress "+(null!=(A=this.options.className)?A:""),this.$content.innerHTML=(this.options.showPercent?'<div class="'+f+'-progress-text">'+(null==this.options.renderText?void 0:this.options.renderText.call(this.options,this._value,this._percent,this.options.range))+"</div>":"")+"\n "+(this.options.showPlus?'<div class="'+f+'-progress-plus">\n '+LA()+"\n </div>":"")+'\n <div class="'+f+'-progress-slider">\n <div class="'+f+'-progress-slider-fill"></div>\n <div class="'+f+'-progress-slider-handle" style="top: 100%"></div>\n </div>\n '+(this.options.showMinus?'<div class="'+f+'-progress-minus">\n '+MA()+"\n </div>":""),this.$container.appendChild(this.$content)},e._updateUI=function(){var A=this.$content;if(null==A||A.setAttribute("data-value",this._value+""),A.querySelector("."+f+"-progress-slider-fill")){var e=+(100*this._percent).toFixed(0);this.options.showPercent&&(A.querySelector("."+f+"-progress-text").innerHTML=null==this.options.renderText?void 0:this.options.renderText.call(this.options,this._value,this._percent,this.options.range)),A.querySelector("."+f+"-progress-slider-fill").style.height=e+"%",A.querySelector("."+f+"-progress-slider-handle").style.top=100-e+"%"}},e._eventListeners=function(){var A=this,e=window.PointerEvent?"pointerdown":"mousedown";if(this._delegateSliderMouseDown=s(this.$content,"."+f+"-progress-slider",e,(function(e){var t,i;if(e.stopPropagation(),!e.delegateTarget.classList.contains(f+"-disabled")&&!A._disabled){var a=A.$content.querySelector("."+f+"-progress-slider").getBoundingClientRect(),r=0;if(oe.isMobile&&A._isRotated)r=+(Math.max(0,Math.min(e.clientX-a.x,a.width))/a.width).toFixed(2);else r=+(Math.max(0,Math.min(a.height-(e.clientY-a.y),a.height))/a.height).toFixed(2);A._convertPercentToValue(r),null==(i=A.options)||null==(t=i.onProgressClick)||t.call(i,A._value,r,A.options.range),A.percent=r}})),this._delegateSliderHandleMouseDown=s(this.$content,"."+f+"-progress-slider-handle",e,(function(e){if(e.stopPropagation(),A.options.draggable&&!e.delegateTarget.classList.contains(f+"-disabled")&&!A._disabled){var t=A._isRotated?e.clientX:e.clientY,i=A.$content.querySelector("."+f+"-progress-slider-fill").offsetHeight,a=A.$content.querySelector("."+f+"-progress-slider").offsetHeight,r=ae((function(e){if(e.stopPropagation(),A.options.draggable&&!A._disabled){var r=t-(A._isRotated?e.clientX:e.clientY),n=i+(A._isRotated?-r:r);n=Math.max(0,Math.min(n,a)),A.percent=+(n/a).toFixed(2)}}),20),n=A.$content,o=window.PointerEvent?"pointermove":"mousemove",s=window.PointerEvent?"pointerup":"mouseup",g=window.PointerEvent?"pointerleave":"mouseleave";n.addEventListener(o,r),n.addEventListener(s,l),n.addEventListener(g,l)}function l(){n.removeEventListener(o,r),r=null,n.removeEventListener(s,l),n.removeEventListener(g,l)}})),this.options.showPlus){var t=window.PointerEvent?"pointerdown":"click";this._delegatePlusClick=s(this.$content,"."+f+"-progress-plus",t,(function(e){if(e.stopPropagation(),!e.delegateTarget.classList.contains(f+"-disabled")&&!A._disabled){var t=A._value+A.options.step;t<=A.options.range[1]?A.value=t:A.value=A.options.range[1],null==A.options.onPlusClick||A.options.onPlusClick.call(A.options,A.value,A.percent,A.options.range)}}))}if(this.options.showMinus){var i=window.PointerEvent?"pointerdown":"click";this._delegateMinusClick=s(this.$content,"."+f+"-progress-minus",i,(function(e){if(e.stopPropagation(),!e.delegateTarget.classList.contains(f+"-disabled")&&!A._disabled){var t=A._value-A.options.step;t>=A.options.range[0]?A.value=t:A.value=A.options.range[0],null==A.options.onMinusClick||A.options.onMinusClick.call(A.options,A.value,A.percent,A.options.range)}}),!0)}["mousedown","touchstart","touchmove","dblclick"].forEach((function(e){s(A.$container,"."+f+"-progress",e,(function(A){A.stopPropagation(),A.preventDefault()}))}))},se(A,[{key:"disabled",get:function(){return this._disabled},set:function(A){this._disabled=A}},{key:"value",get:function(){return this._value},set:function(A){this._updateValuePercent("value",A)}},{key:"percent",get:function(){return this._percent},set:function(A){this._updateValuePercent("percent",A)}}]),A}();function Ce(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function Ie(){return Ie=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Ie.apply(this,arguments)}function ce(A,e){return ce=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},ce(A,e)}var he={volume:.8,muted:!1,open:!1,trigger:"hover",onOpenChange:function(){},onChange:function(){}},Be=function(A){function e(e){var t,i,a,r,n,s,l;(void 0===e&&(e={}),(t=A.call(this,Ie({},e,{tagName:"span",classNameSuffix:"volume",controlType:"button"}))||this)._muted=!1,t._volume=0,t._lastVolume=0,t._progress=null,t._options=g(he,e,{clone:!1}),t._render(),t._volume=(null==(i=t._options.props)?void 0:i.volume)>=1?1:(null==(a=t._options.props)?void 0:a.volume)<=0?0:+(null==(r=t._options.props)?void 0:r.volume.toFixed(2)),t._lastVolume=t._volume,t._muted=!!(null==(n=t._options.props)?void 0:n.muted)||!1,oe.isMobile||"ezopen"===t._options.PLAY_TYPE)||(t.picker=new o(t.$container,{getPopupContainer:function(){return t.$container},trigger:t._options.trigger,open:t._options.open,offset:[0,-10],placement:"top",onOpenChange:function(A){null==t._options.onOpenChange||t._options.onOpenChange.call(t._options,A,t._muted?t._lastVolume:t.volume,t._muted),t.emit(b.control.volumePanelOpenChange,A,t._lastVolume,t._muted)}}),t._progress=new le({container:t.picker.$body,defaultValue:(null==(s=t._options.props)?void 0:s.muted)?0:null==(l=t._options.props)?void 0:l.volume,range:[0,1],step:.1,showPercent:!0,className:f+"-volume-progress",onProgressClick:function(){t.muted=!1},onChange:function(A){A!==t._volume&&(t.volume=A)}}));return t._updateUI(),t._addEventListener(),t.on(b.audioCodecUnsupported,(function(){t.disabled=!0})),t.on(b.volumechange,(function(A,e){t._muted!==e&&(t.muted=e),t._lastVolume!==A&&(t.volume=A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&ce(A,e)}(e,A);var t=e.prototype;return t.destroy=function(){var e,t,i;null==(t=this._progress)||null==(e=t.destroy)||e.call(t),this._progress=null,null==(i=this.picker)||i.destroy(),this.picker=null,A.prototype.destroy.call(this)},t._toggleMute=function(){if(!this.disabled){var A;if(0===this._lastVolume)return this.volume=(null==(A=this._options.props)?void 0:A.volume)||.5,void(this.muted=!1);this.muted?this.muted=!1:this.muted=!0}},t._updateUI=function(){var A,e;(this._$content.classList.remove(f+"-icon-volume-muted"),this._$content.classList.remove(f+"-icon-volume-zero"),this._$content.classList.remove(f+"-icon-volume-low"),this._$content.classList.remove(f+"-icon-volume-high"),this._muted)?(this._volume=0,this._$content.classList.add(f+"-icon-volume-muted"),this._$content.setAttribute("title",(null==this||null==(A=this.locale)?void 0:A.BTN_MUTED)||"muted")):(this._$content.classList.remove(f+"-icon-volume-muted"),0===this._volume?this._$content.classList.add(f+"-icon-volume-zero"):this._volume<=.5?this._$content.classList.add(f+"-icon-volume-low"):this._$content.classList.add(f+"-icon-volume-high"),this._$content.setAttribute("title",(null==this||null==(e=this.locale)?void 0:e.BTN_VOLUME)||"volume"))},t._render=function(){var A;this.$container.innerHTML=pA({title:null==(A=this.locale)?void 0:A.BTN_VOLUME})},t._onControlClick=function(){},t._addEventListener=function(){var A=this;s(this.$container,"."+f+"-control-volume","mousedown",(function(){A.$container.classList.contains(f+"-disabled")||A._toggleMute()}))},Ce(e,[{key:"muted",get:function(){return this._muted},set:function(A){this._muted!==A&&(A?(this._volume=0,this._progress&&(this._progress.value=0)):(this._volume=this._lastVolume,this._progress&&(this._progress.value=this._lastVolume)),this._muted=A,null==this._options.onChange||this._options.onChange.call(this._options,this.volume,A),this.emit(b.control.volumechange,this.volume,A)),this._updateUI()}},{key:"volume",get:function(){return this._lastVolume},set:function(A){if(A>=0&&A<=1){var e=+A.toFixed(2);this._lastVolume!==e&&(this._volume=e,this._lastVolume=this._volume,this._progress&&(this._progress.value=this._muted?0:e),null==this._options.onChange||this._options.onChange.call(this._options,e,this._muted),this.emit(b.control.volumechange,e,this._muted)),this._updateUI()}}},{key:"disabled",get:function(){return this._disabled},set:function(A){this._disabled=A,this.picker&&(this.picker.disabled=A),this._updateDisabledState(A)}},{key:"_$content",get:function(){return this.$container.querySelector("."+f+"-icon-volume")}}]),e}(k);function Ee(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function xe(A){return function(){var e=this,t=arguments;return new Promise((function(i,a){var r=A.apply(e,t);function n(A){Ee(r,i,a,n,o,"next",A)}function o(A){Ee(r,i,a,n,o,"throw",A)}n(void 0)}))}}function de(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var Qe={prefix:"ezplayer"},fe=function(){function A(){this.fullscreens=[]}var e=A.prototype;return e.add=function(A,e){if(A){var t=this.fullscreens.findIndex((function(e){return e.element===A}));t>=0?(this.fullscreens[t].onChange||(this.fullscreens[t].onChange=[]),this.fullscreens[t].onChange.push(e)):this.fullscreens.push({element:A,onChange:[e]})}},e.getChanges=function(A){var e=this.fullscreens.find((function(e){return e.element===A}));return e&&(null==e?void 0:e.onChange)||[]},e.remove=function(A,e){var t=this.fullscreens.findIndex((function(e){return e.element===A}));if(t>=0){var i,a=null==(i=this.fullscreens[t].onChange)?void 0:i.find((function(A){return A===e}));if(a){var r,n=null==(r=this.fullscreens[t].onChange)?void 0:r.filter((function(A){return A!==a}));this.fullscreens[t].onChange=n}(!this.fullscreens[t].onChange||this.fullscreens[t].onChange&&0===this.fullscreens[t].onChange.length)&&this.fullscreens.splice(t,1)}},A.getInstance=function(){return A.instance||(A.instance=new A),A.instance},A}().getInstance(),ue=function(){function A(A,e){void 0===e&&(e={}),this._isCurrentFullscreen=!1,this._isFullscreen=!1,this._currentFullscreenElementList=[],this.$container=A,this._options=Object.assign({},Qe,e),this._options.onChange&&oe.isMobile&&fe.add(this.$container,this._options.onChange),this._isFullscreen=!!this._options.isFullscreen,this._fullscreenchange2=this._fullscreenchange2.bind(this),C.isEnabled&&C.on("change",this._fullscreenchange2)}var e=A.prototype;return e.fullscreen=function(){return xe((function(){return de(this,(function(A){switch(A.label){case 0:return oe.isMobile?(this._fullscreenchange(this.$container,!0),[3,3]):[3,1];case 1:return[4,C.request(this.$container)];case 2:return[2,A.sent()];case 3:return[2]}}))})).call(this)},e.exitFullscreen=function(){return xe((function(){return de(this,(function(A){switch(A.label){case 0:return oe.isMobile?(this._fullscreenchange(this.$container,!1),[3,3]):[3,1];case 1:return this._isFullscreen?[4,C.exit()]:[3,3];case 2:return[2,A.sent()];case 3:return[2]}}))})).call(this)},e.toggle=function(){return xe((function(){return de(this,(function(A){switch(A.label){case 0:return oe.isMobile?(this._fullscreenchange(this.$container,!this._isCurrentFullscreen),[3,3]):[3,1];case 1:return[4,C.toggle(this.$container)];case 2:return[2,A.sent()];case 3:return[2]}}))})).call(this)},e.destroy=function(){C.isEnabled&&C.off("change",this._fullscreenchange2),oe.isMobile&&this._options.onChange&&fe.remove(this.$container,this._options.onChange),this._fullscreenchange2=null},e._fullscreenchange2=function(){this._fullscreenchange()},e._fullscreenchange=function(A,e){var t,i,a,r=this;if(this._isFullscreen=C.isFullscreen,A)this._isCurrentFullscreen=!!e,this._currentFullscreenElementList=[];else if(this._isFullscreen){var n=C.element,o=this._currentFullscreenElementList.indexOf(n);n&&-1===o?this._currentFullscreenElementList.unshift(n):n&&o>=1&&this._currentFullscreenElementList.shift();var s=this._currentFullscreenElementList.indexOf(this.$container);this._isCurrentFullscreen=s>=0}else this._isCurrentFullscreen=!1,this._currentFullscreenElementList=[];this._isCurrentFullscreen?null==(t=this.$container)||t.classList.add(this._options.prefix+"-fullscreen"):(null==(i=this.$container)||i.classList.remove(this._options.prefix+"-fullscreen"),null==(a=this.$container)||a.classList.remove(this._options.prefix+"-global-fullscreen"));oe.isMobile?fe.getChanges(this.$container).forEach((function(A){A({isCurrentFullscreen:r._isCurrentFullscreen,isFullscreen:r._isFullscreen,isMobile:oe.isMobile})})):null==this._options.onChange||this._options.onChange.call(this._options,{isCurrentFullscreen:this._isCurrentFullscreen,isFullscreen:this._isFullscreen,isMobile:oe.isMobile}),oe.isMobile&&(this._isCurrentFullscreen?document.body.classList.add(this._options.prefix+"-body-mobile-noscroll"):document.body.classList.remove(this._options.prefix+"-body-mobile-noscroll"))},A}();function pe(){return pe=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},pe.apply(this,arguments)}function me(A,e){return me=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},me(A,e)}var _e=function(A){function e(e){var t,i,a;if((t=A.call(this,pe({tagName:"span",classNameSuffix:"fullscreen",controlType:"button"},e))||this).isCurrentFullscreen=!1,t.options=e,t.isCurrentFullscreen=!!(null==(i=e.props)?void 0:i.isCurrentFullscreen),t._$rootContainer=null==(a=t.options)?void 0:a.rootContainer,!t._$rootContainer)throw new Error("Fullscreen option fullscreenContainer is required!");return t._fullscreenChange=t._fullscreenChange.bind(t),t._fullscreenUtil=new ue(t._$rootContainer,{onChange:t._fullscreenChange,isFullscreen:t.isCurrentFullscreen}),t._render(),t._event(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&me(A,e)}(e,A);var t=e.prototype;return t.destroy=function(){var e;this.$container.innerHTML="",null==(e=this._fullscreenUtil)||e.destroy(),this._fullscreenUtil=null,A.prototype.destroy.call(this)},t._render=function(){var A,e,t;oe.isMobile?this.$container.innerHTML=mA({title:null==(A=this.locale)?void 0:A.BTN_FULLSCREEN}):this.$container.innerHTML=_A({title:null==(e=this.locale)?void 0:e.BTN_EXIT_FULLSCREEN})+yA({title:null==(t=this.locale)?void 0:t.BTN_FULLSCREEN})},t._fullscreenChange=function(A){this.isCurrentFullscreen=A.isCurrentFullscreen,this._render(),null==this.options.onChange||this.options.onChange.call(this.options,A)},t._onControlClick=function(){var A,e;this.isCurrentFullscreen?null==(A=this._fullscreenUtil)||A.exitFullscreen():null==(e=this._fullscreenUtil)||e.fullscreen()},t._event=function(){},e}(k);function ye(){return ye=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},ye.apply(this,arguments)}function Se(A,e){return Se=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Se(A,e)}var De=function(A){function e(e){var t,i;return(t=A.call(this,ye({},e,{tagName:"div",controlType:"block",classNameSuffix:"rec"}))||this)._options=e,t.recType=(null==(i=e.props)?void 0:i.recType)||"rec",t._onClickIcon(),t._onDBlClick=t._onDBlClick.bind(t),t.$container.addEventListener("dblclick",t._onDBlClick),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Se(A,e)}(e,A);var t=e.prototype;return t.destroy=function(){var e;this.$container.removeEventListener("dblclick",this._onDBlClick),null==(e=this._delegation)||e.destroy(),this._delegation=null,A.prototype.destroy.call(this)},t.addRecType=function(A){var e="";switch(A){case"rec":var t;e=YA({title:null==(t=this.locale)?void 0:t.BTN_REC,"data-type":"rec"});break;case"cloudRec":var i;e=GA({title:null==(i=this.locale)?void 0:i.BTN_CLOUDREC,"data-type":"cloudRec"});break;case"cloudRecord":var a;e=UA({title:null==(a=this.locale)?void 0:a.BTN_CLOUDRECORD,"data-type":"cloudRecord"})}if(e){var r=this.$container.innerHTML;this.$container.innerHTML=r+e,this._activeIcon(this.recType)}},t._activeIcon=function(A){switch(this.$container.querySelectorAll("."+f+"-icon").forEach((function(A){A.classList.remove(f+"-active")})),A){case"rec":var e;null==(e=this.$container.querySelector("."+f+"-icon-sdk"))||e.classList.add(f+"-active");break;case"cloudRec":var t;null==(t=this.$container.querySelector("."+f+"-icon-cloud-rec"))||t.classList.add(f+"-active");break;case"cloudRecord":var i;null==(i=this.$container.querySelector("."+f+"-icon-cloud-record"))||i.classList.add(f+"-active")}},t._onClickIcon=function(){var A=this;this._delegation=s(this.$container,"."+f+"-icon","click",(function(e){var t=e.delegateTarget;if(!t.classList.contains(f+"-disabled")){var i=t.getAttribute("data-type");A.recType!==i&&(A.recType=i,A._activeIcon(i),A.emit(b.control.recTypeChange,i),null==A._options.onChange||A._options.onChange.call(A._options,i))}}))},t._onControlClick=function(A){},e}(k),Re={391001:"取流地址或端口非法",395e3:"服务内部异常,请稍后重试",395400:"预览取流参数异常",395402:"设备当前时段无录像,请选择其他时间段",395403:"服务异常,请重试或联系客服",395404:"设备不在线,请优化网络后重启设备再试",395405:"设备侧网络问题,请检查优化网络后重启设备再试",395406:"token过期,请重试",395407:"客户端的URL格式错误",395409:"预览开启隐私保护",395410:"服务异常,请重试或联系客服",395411:"无权查看当前设备",395412:"服务异常,请重试或联系客服",395413:"服务异常,请重试或联系客服",395415:"设备通道错误",395416:"当前观看路数达到设备最大限制,请重启设备或联系设备售后处理",395451:"设备不支持该码流类型,请检查设备通道支持情况或联系硬件售后",395452:"设备侧网络较差,请检查优化网络后重启设备再试",395454:"设备侧网络较差,请检查优化网络后重启设备再试",395455:"设备通道异常,请检查通道配置后重试",395456:"设备通道异常,请检查通道配置后重试",395457:"服务异常,请重试或联系客服",395458:"服务异常,请重试或联系客服",395459:"服务异常,请重试或联系客服",395460:"服务异常,请重试或联系客服",395492:"服务异常,请重试或联系客服",395500:"服务异常,请重试或联系客服",395501:"服务异常,请重试或联系客服",395503:"服务异常,请重试或联系客服",395504:"服务异常,请重试或联系客服",395505:"服务异常,请重试或联系客服",395506:"暂不支持该设备直接取流,请连接NVR后重试或联系客服",395507:"设备4G无限流量套餐仅支持萤石云视频APP使用,请联系APP客服更换套餐",395530:"服务异常,请重试或联系客服",395544:"视频源不存在,请检查设备配置",395545:"服务异常,请重试或联系客服",395546:"同时观看人数达到账号最大限制,请联系客服",395547:"同时观看人数达到账号最大限制,请联系客服",395556:"服务异常,请重试或联系客服",395557:"设备取流失败,请联系硬件售后",395558:"查找录像开始时间错误",395560:"服务异常,请重试或联系客服",395561:"服务异常,请重试或联系客服",395562:"服务异常,请重试或联系客服",395563:"服务异常,请重试或联系客服",395564:"服务异常,请重试或联系客服",395566:"服务异常,请重试或联系客服",395567:"服务异常,请重试或联系客服",395568:"服务异常,请重试或联系客服",395569:"服务异常,请重试或联系客服",395600:"服务异常,请重试或联系客服",395601:"服务异常,请重试或联系客服",395602:"服务异常,请重试或联系客服",395610:"服务异常,请重试或联系客服",395620:"服务异常,请重试或联系客服",395701:"服务异常,请重试或联系客服",395702:"服务异常,请重试或联系客服",395703:"服务异常,请重试或联系客服",396001:"服务异常,请重试或联系客服",396099:"服务异常,请重试或联系客服",396101:"服务异常,请重试或联系客服",396102:"服务异常,请重试或联系客服",396103:"服务异常,请重试或联系客服",396104:"服务异常,请重试或联系客服",396105:"设备异常,请重试或联系客服",396106:"设备通道异常,请检查通道配置后重试",396107:"设备异常,请重试或联系客服",396108:"服务异常,请重试或联系客服",396109:"服务异常,请重试或联系客服",396110:"设备异常,请重试或联系客服",396501:"设备异常,请重试或联系客服",396502:"设备异常,请重试或联系客服",396503:"设备异常,请重试或联系客服",396504:"设备异常,请重试或联系客服",396505:"设备异常,请重试或联系客服",396506:"设备异常,请重试或联系客服",396508:"设备异常,请重试或联系客服",396509:"设备异常,请重试或联系客服",396510:"设备异常,请重试或联系客服",396511:"设备异常,请重试或联系客服",396512:"设备异常,请重试或联系客服",396513:"设备异常,请重试或联系客服",396514:"设备异常,请重试或联系客服",396515:"设备异常,请重试或联系客服",396516:"设备异常,请重试或联系客服",396517:"设备异常,请重试或联系客服",396518:"设备异常,请重试或联系客服",396519:"设备网络异常,请检查优化网络后重启设备再试",396520:"设备网络异常,请检查优化网络后重启设备再试",396700:"服务异常,请重试或联系客服",396701:"回放结束",397001:"服务异常,请重试或联系客服",397002:"服务异常,请重试或联系客服",397003:"服务异常,请重试或联系客服",397004:"服务异常,请重试或联系客服",397005:"设备取流连接断开,请检查网络后重试",397006:"服务异常,请重试或联系客服",397007:"服务异常,请重试或联系客服",399e3:"服务异常,请重试或联系客服",399001:"客户端网络超时",399002:"服务异常,请重试或联系客服",399016:"token失效,请更新并重试",399048:"同时观看人数达到账号最大限制,请联系客服",399049:"免费版并发数达到上限,请升级企业版使用多并发能力",399030:"取流失败,请重试",3810001:"操作失败",3810002:"账号异常,操作失败",3810005:"账号异常,操作失败",3820002:"设备不存在,请检查设备连接情况",3820006:"操作失败,请检查设备网络情况",3820007:"操作失败,请检查设备网络情况",3820008:"操作过于频繁,稍后再试",3820014:"操作失败",3820032:"通道不存在请检查设备连接情况",3849999:"操作失败,请重试",386e4:"操作失败,设备不支持该操作",3860001:"操作失败,用户无权限",3860002:"设备已旋转到上限位",3860003:"设备已旋转到下限位",3860004:"设备已旋转到左限位",3860005:"设备已旋转到右限位",3860006:"操作失败,请重试",3860009:"设备正在操作中",3860020:"操作失败",BTN_RETRY:"重试",BTN_RELOAD:"重新加载",LOADING:"加载中,请稍等...",TIMEFORMAT_ERROR:"时间格式有误,请确认",USE_MULTITHREADING_WARING:"您当前浏览器可以开启谷歌实验室多线程特性,获取更好播放体验,避免浏览器卡顿及崩溃,详见",OPEN_INSTRUCTIONS:"开启说明",INIT_FINSHED:"初始化播放器完成",INIT_SUCCESS:"初始化播放器成功",GET_PLAYURL_FAILED:"获取播放地址失败",VIDEO_LOADING:"视频加载中",DISCONNECT:"连接断开,请重试",DEVICE_ENCRYPTED:"设备已加密",NO_RECORD:"未找到录像片段",PLAY_FAILED:"播放失败,请检查设备及客户端网络",PLAY_SUCCESS:"播放成功",STOP_SUCCESS:"停止成功",CHANGE_PLAYURL_SUCCESS:"切换播放地址成功",CHANGE_PLAYURL_FAILED:"切换播放地址失败",GET_OSD_TIME:"获取OSD时间",GET_OSD_TIME_FAILED:"获取OSD时间失败",SET_POSTER:"设置播放器封面",RESIZE:"调整播放器尺寸",SPEED:"倍速",SPEED_RATE:"倍",SPEED_CANCEL:"取消",GET_SPEED:"获取当前播放速率",MAX_SPEED_LIMIT:"播放速度最大为4倍速度",MIN_SPEED_LIMIT:"播放速度最小为0.5倍速度",SEEK_CANNOT_CROSS_DAYS:"seek时间不能跨日期",SEEK_TIMEFORMAT_ERROR:"seek时间格式错误",PAUSE:"暂停",PAUSE_FAILED:"暂停失败",RESUME:"恢复播放",RESUME_FAILED:"恢复播放失败",CALL_END:"通话已结束",USER_DO_NOT_OWN_DEVICE:"loadingSetTextWithBtn",NO_CLOUD_RECORD:"该设备在当天没有云录制的录像",CHANGE_VIDEO_LEVEL:"切换清晰度",CHANGE_VIDEO_LEVEL_FAIL:"切换清晰度失败",GET_VIDEO_LEVEL_LIST:"获取设备支持的清晰度列表",PLEASE_INPUT_RIGHT_VIDEO_LEVEL:"请输入正确的清度",VIDEO_LEVEL_NOT_SUPPORT:"当前设备不支持该清晰度",VIDEO_LEVEL_AUTO:"自动",VIDEO_LEVEL_FLUENT:"流畅",VIDEO_LEVEL_STANDARD:"标清",VIDEO_LEVEL_HEIGH:"高清",VIDEO_LEVEL_SUPER:"超清",VIDEO_LEVEL_EXTREME:"极清",VIDEO_LEVEL_3K:"3K",VIDEO_LEVEL_4k:"4K",RESET_THEME:"重置主题",BTN_PLAY:"播放",BTN_PAUSE:"结束播放",BTN_VOLUME:"声音",BTN_MUTED:"静音",BTN_RECORDVIDEO:"录屏",BTN_CAPTURE:"截图",BTN_TALK:"对讲",BTN_ZOOM:"电子放大",BTN_3D_ZOOM:"3D定位",BTN_PTZ:"云台控制",BTN_GLOBAL_FULLSCREEN:"全局全屏",BTN_EXIT_GLOBAL_FULLSCREEN:"退出全局全屏",BTN_FULLSCREEN:"全屏",BTN_EXIR_FULLSCREEN:"退出全屏",BTN_HD:"画面清晰度",BTN_SPEED:"回放倍速",BTN_CLOUDREC:"云存储回放",BTN_CLOUDRECORD:"云录制",BTN_REC:"本地存储",BTN_CALENDAR:"日历",BTN_MORE:"更多",DEVICE_NAME:"设备名称",DEVICE_ID:"设备序列号",CAPTURE_SUCCESS:"截图成功",CAPTURE_FAILED:"截图失败",START_RECORD_SUCCESS:"开始录制成功",START_RECORD_FAILED:"开始录制失败",STOP_RECORD_SUCCESS:"停止录制成功",STOP_RECORD_FAILED:"停止录制失败",RECORD_TIPS:"今日录像",RECORDS:"个录像",OPEN_SOUND:"开启声音",CLOSE_SOUND:"关闭声音",SOUND_OPENED:"当前已经有画面正在播放声音",ZOOM:"电子放大",START_ZOOM:"开启电子放大",CLOSE_ZOOM:"关闭电子放大",ZOOM_ADD:"+",ZOOM_SUB:"-",ZOOM_ADD_MAX:"已经放大到最大倍数{{zoom}}X",ZOOM_SUB_MIN:"已经缩小到最小倍数{{zoom}}X",ZOOM_LIMIT_MAX:"超出最大倍率{{zoom}}X",ZOOM_LIMIT_MIN:"超出最小倍率{{zoom}}X",ZOOM_NOT_ENABLED:"放大未开启","3D_ZOOM":"3D定位","3D_ZOOM_DISABLE":"未启用3D定位功能","3D_ZOOM_FAILED":"3D定位失败,请重试",START_3D_ZOOM:"开启3D定位",CLOSE_3D_ZOOM:"关闭3D定位",DEVICE_NOT_SUPPORT_3D_ZOOM:"当前设备不支持3D定位功能","3D_ZOOM_ACTIVED":"3D定位已处于开启状态","3D_ZOOM_NOT_ACTIVED":"未启用3D定位功能","3D_ZOOM_CLOSED":"3D定位已处于关闭状态",CHANGE_ZOOM_TYPE:"改变缩放模式",FULLSCREEN:"全局全屏",FULLSCREEN_EXIT:"退出全局全屏",GET_WEB_FULLSCREEN_STATUS:"获取浏览器网页全屏状态",WEB_FULLSCREEN:"开启网页全屏",WEB_FULLSCREEN_EXIT:"退出网页全屏",DESTROY:"销毁",GET_CAPACITY:"获取设备能力级",GET_PTZ_STATUS:"获取当前云台状态",GET_PTZ_STATUS_FAILED:"未加载Theme模块,无法获取云台状态",MOBILE_HIDE_PTZ:"移动端,非全屏状态不展示云台",OPTION_PTZ_FAILED:"未加载Theme模块,无法操作云台",MOBILE_PTZ_TIPS:"请通过操控云台来调整摄像机视角",PTZ_FAST:"快",PTZ_MID:"中",PTZ_SLOW:"慢",PTZ_SPEED:"调整云台转动速度",DEVICE_ZOOM:"控制设备放大/缩小画面",DEVICE_FOCUS:"调整设备焦距",NOT_SUPPORT_DEVICE_ZOOM:"当前设备不支持物理缩放",NOT_SUPPORT_FOCUS:"当前设备不支持变焦",MIRROR:"镜像翻转",MIRROR_TYPE_ERROR:"翻转参数类型错误",CHANGE_FEC_TYPE:"切换鱼眼矫正类型",DEVICE_NOT_SUPPORT:"设备不支持鱼眼模式",TYPE_NOT_SUPPORT:"鱼眼矫正类型暂时不支持",FEC_SUPPORT_VERSION:"当前只有V3软解支持鱼眼矫正",NO_CANVAS_ID:"鱼眼矫正类型需要分屏,但是没有传正确的分屏的canvas id",SET_FEC_PARAMS:"设置3D矫正视角参数",GET_FEC_PARAMS:"获取3D矫正视角参数",SET_FEC_PARAMS_FAILED:"该矫正类型不能设置3D矫正视角参数",GET_FEC_PARAMS_FAILED:"该矫正类型不能获取3D矫正视角参数",GET_FEC_PARAMS_SUPPORT_VERSION:"当前只有V3软解支持鱼眼矫正获取3D矫正视角参数",SET_WATERMARK:"设置水印",FETCH_THEME_FAILED:"获取主题模板失败",cancel:"取消",ok:"确定",close:"关闭"},Fe={391001:"Illegal streaming address or port",395e3:"Internal service exception, please try again later",395400:"Preview streaming parameter exception",395402:"Device has no recording in the current time period, please select another time period",395403:"Service exception, please try again or contact customer service",395404:"The device is not online, Please optimize the network and restart the device to try again",395405:"Device side network is poor, please check and optimize the network and restart the device to try again",395406:"Token expired, please try again",395407:"Client URL format error",395409:"Service exception, please try again or contact customer service",395410:"Service exception, please try again or contact customer service",395411:"No permission to view the current device",395412:"Service exception, please try again or contact customer service",395413:"Service exception, please try again or contact customer service",395415:"Device channel error",395416:"The current number of viewing channels has reached the maximum limit of the device. Please restart the device or contact the device after-sales service",395451:"The device does not support this bitstream type. Please check the device channel support or contact the hardware after-sales service",395452:"The network on the device side is poor. Please check and optimize the network and restart the device to try again",395454:"The network on the device side is poor. Please check and optimize the network and restart the device to try again",395455:"The device channel is abnormal. Please check the channel configuration and try again",395456:"The device channel is abnormal. Please check the channel configuration and try again",395457:"Service exception, please try again or contact customer service",395458:"Service exception, please try again or contact customer service",395459:"Service exception, please try again or contact customer service",395460:"Service exception, please try again or contact customer service",395492:"Service exception, please try again or contact customer service",395500:"Service exception, please try again or contact customer service",395501:"Service exception, please try again or contact customer service",395503:"Service exception, please try again or contact customer service",395504:"Service exception, please try again or contact customer service",395505:"Service exception, please try again or contact customer service",395506:"Direct streaming of this device is not supported at present, please try again or contact customer service after connecting to NVR",395507:"Device 4G unlimited traffic package only supports EZVIZ Cloud Video APP, please contact APP customer service to change the package",395530:"Service exception, please try again or contact customer service",395544:"Video source does not exist, please check device configuration",395545:"Service exception, please try again or contact customer service",395546:"The number of simultaneous viewers has reached the maximum limit of the account, please contact customer service",395547:"The number of simultaneous viewers has reached the maximum limit of the account, please contact customer service",395556:"Service exception, please try again or contact customer service",395557:"Device streaming failed, please contact hardware after-sales",395558:"Error in finding the start time of recording",395560:"Service exception, please try again or contact customer service",395561:"Service exception, please try again or contact customer service",395562:"Service exception, please try again or contact customer service",395563:"Service exception, please try again or contact customer service",395564:"Service exception, please try again or contact customer service",395566:"Service exception, please try again or contact customer service",395567:"Service exception, please try again or contact customer service",395568:"Service exception, please try again or contact customer service",395569:"Service exception, please try again or contact customer service",395600:"Service exception, please try again or contact customer service",395601:"Service exception, please try again or contact customer service",395602:"Service exception, please try again or contact customer service",395610:"Service exception, please try again or contact customer service",395620:"Service exception, please try again or contact customer service",395701:"Service exception, please try again or contact customer service",395702:"Service exception, please try again or contact customer service",395703:"Service exception, please try again or contact customer service",396001:"Service exception, please try again or contact customer service",396099:"Service exception, please try again or contact customer service",396101:"Service exception, please try again or contact customer service",396102:"Service exception, please try again or contact customer service",396103:"Service exception, please try again or contact customer service",396104:"Service exception, please try again or contact customer service",396105:"Device abnormality, please try again or contact customer service",396106:"Device channel abnormality, please check the channel configuration and try again",396107:"Device abnormality, please try again or contact customer service",396108:"Service exception, please try again or contact customer service",396109:"Service exception, please try again or contact customer service",396110:"Device abnormality, please try again or contact customer service",396501:"Device abnormality, please try again or contact customer service",396502:"Device abnormality, please try again or contact customer service",396503:"Device abnormality, please try again or contact customer service",396504:"Device abnormality, please try again or contact customer service",396505:"Device abnormality, please try again or contact customer service",396506:"Device abnormality, please try again or contact customer service",396508:"Device abnormality, please try again or contact customer service",396509:"Device abnormality, please try again or contact customer service",396510:"Device abnormality, please try again or contact customer service",396511:"Device abnormality, please try again or contact customer service",396512:"Device abnormality, please try again or contact customer service",396513:"Device abnormality, please try again or contact customer service",396514:"Device abnormality, please try again or contact customer service",396515:"Device abnormality, please try again or contact customer service",396516:"Device abnormality, please try again or contact customer service",396517:"Device abnormality, please try again or contact customer service",396518:"Device abnormality, please try again or contact customer service",396519:"Device network abnormality, please check and optimize the network and restart the device to try again",396520:"Device network abnormality, please check and optimize the network and restart the device to try again",396700:"Service exception, please try again or contact customer service",396701:"Playback ends",397001:"Service exception, please try again or contact customer service",397002:"Service exception, please try again or contact customer service",397003:"Service exception, please try again or contact customer service",397004:"Service exception, please try again or contact customer service",397005:"Device streaming connection is disconnected, please check the network and try again",397006:"Service exception, please try again or contact customer service",397007:"Service exception, please try again or contact customer service",399e3:"Service exception, please try again or contact customer service",399001:"Client network timeout",399002:"Service exception, please try again or contact customer service",399016:"Token invalid, please update and retry",399048:"The number of simultaneous viewers has reached the maximum account limit, please contact customer service",399049:"The number of simultaneous viewers has reached the maximum account limit, please contact customer service",399030:"Stream retrieval failed, please try again",3810001:"Operation failed",3810002:"Account exception, operation failed",3810005:"Account exception, operation failed",3820002:"Device does not exist, please check the device connection status",3820006:"Operation failed, please check the network condition of the device",3820007:"Operation failed, please check the network condition of the device",3820008:"The operation is too frequent, please try again later",3820014:"Operation failed",3820032:"The channel does not exist. Please check the device connection status",3849999:"Operation failed, please try again",386e4:"Operation failed, the device does not support this operation",3860001:"Operation failed, user does not have permission",3860002:"The device has been rotated to the upper limit position",3860003:"The device has been rotated to the lower limit position",3860004:"The device has rotated to the left limit position",3860005:"The device has been rotated to the right limit position",3860006:"Operation failed, please try again",3860009:"The device is currently in operation",3860020:"Operation failed",BTN_RETRY:"Retry",BTN_RELOAD:"Reload",LOADING:"loading...",TIMEFORMAT_ERROR:"The time format is wrong, please confirm",USE_MULTITHREADING_WARING:"Your current browser can enable the multi-threaded feature of Google Labs to get a better playback experience and avoid browser freezes and crashes. For details, see:",OPEN_INSTRUCTIONS:"Enablement instructions",INIT_FINSHED:"Initialize the player completed",INIT_SUCCESS:"Initialize the player successfully",GET_PLAYURL_FAILED:"Failed to obtain the playback address",VIDEO_LOADING:"Video loading",DISCONNECT:"Connection disconnected, please try again",DEVICE_ENCRYPTED:"Device encrypted",NO_RECORD:"No video clips found",PLAY_FAILED:"Play failed, please check the device and client network",PLAY_SUCCESS:"Play successfully",STOP_SUCCESS:"Stop successfully",CHANGE_PLAYURL_SUCCESS:"Switch the playback address successfully",CHANGE_PLAYURL_FAILED:"Switch the playback address failed",GET_OSD_TIME:"Get OSD time",GET_OSD_TIME_FAILED:"Failed to get OSD time",SET_POSTER:"Set the player cover",RESIZE:"Adjust the player size",SPEED:"speeds",SPEED_RATE:"X",SPEED_CANCEL:"Cancel",GET_SPEED:"Get the current playback rate",MAX_SPEED_LIMIT:"The maximum playback speed is 4 times the speed",MIN_SPEED_LIMIT:"The minimum playback speed is 0.5 times the speed",SEEK_CANNOT_CROSS_DAYS:"The seek time cannot cross dates",SEEK_TIMEFORMAT_ERROR:"The seek time format is wrong",PAUSE:"Pause",PAUSE_FAILED:"Pause failed",RESUME:"Resume playback",RESUME_FAILED:"Resume playback failed",CALL_END:"Call ended",USER_DO_NOT_OWN_DEVICE:"loadingSetTextWithBtn",NO_CLOUD_RECORD:"The device has no cloud recorded video on that day",CHANGE_VIDEO_LEVEL:"Switch definition",CHANGE_VIDEO_LEVEL_FAIL:"Switch definition failed",GET_VIDEO_LEVEL_LIST:"Get the definition list supported by the device",PLEASE_INPUT_RIGHT_VIDEO_LEVEL:"Please enter the correct definition",VIDEO_LEVEL_NOT_SUPPORT:"The current device does not support this definition",VIDEO_LEVEL_AUTO:"Auto",VIDEO_LEVEL_FLUENT:"Fluent",VIDEO_LEVEL_STANDARD:"Standard",VIDEO_LEVEL_HEIGH:"heigh",VIDEO_LEVEL_SUPER:"Super",VIDEO_LEVEL_EXTREME:"Extreme",VIDEO_LEVEL_3K:"3K",VIDEO_LEVEL_4k:"4K",RESET_THEME:"Reset theme",BTN_PLAY:"Play",BTN_PAUSE:"Pause",BTN_VOLUME:"Volume",BTN_MUTED:"Muted",BTN_RECORDVIDEO:"Screen recording",BTN_CAPTURE:"Screenshot",BTN_TALK:"Intercom",BTN_ZOOM:"Electronic zoom",BTN_3D_ZOOM:"3D positioning",BTN_PTZ:"PTZ control",BTN_GLOBAL_FULLSCREEN:"Global fullscreen",BTN_EXIT_GLOBAL_FULLSCREEN:"Exit global fullscreen",BTN_FULLSCREEN:"Fullscreen",BTN_EXIR_FULLSCREEN:"Exit fullscreen",BTN_EXPEND:"Global full screen",BTN_WEBEXPEND:"Web page full screen",BTN_HD:"Image definition",BTN_SPEED:"Playback speed",BTN_CLOUDREC:"Cloud storage playback",BTN_CLOUDRECORD:"Cloud recording",BTN_REC:"Local storage",BTN_CALENDAR:"Calendar",BTN_MORE:"More",DEVICE_NAME:"Device name",DEVICE_ID:"Device serial number",CAPTURE_SUCCESS:"Screenshot successful",CAPTURE_FAILED:"Screenshot failed",START_RECORD_SUCCESS:"Start recording successful",START_RECORD_FAILED:"Screenshot failed",STOP_RECORD_SUCCESS:"Stop recording successful",STOP_RECORD_FAILED:"Stop recording failed",RECORD_TIPS:"Today's recording",RECORDS:" in total",OPEN_SOUND:"Turn on sound",CLOSE_SOUND:"Turn off sound",SOUND_OPENED:"There is already a picture playing sound at the moment",ZOOM:"Electronic zoom",START_ZOOM:"Turn on electronic zoom",CLOSE_ZOOM:"Turn off electronic zoom",ZOOM_ADD:"+",ZOOM_SUB:"-",ZOOM_ADD_MAX:"It has been enlarged to a maximum magnification of {{zoom}}X",ZOOM_SUB_MIN:"It has been reduced to the minimum multiple of {{zoom}}X",ZOOM_LIMIT_MAX:"Exceeding maximum magnification of {{zoom}}X",ZOOM_LIMIT_MIN:"Exceeding the minimum magnification of {{zoom}}X",ZOOM_NOT_ENABLED:"Zoom not enabled","3D_ZOOM":"3D positioning","3D_ZOOM_DISABLE":"3D positioning function not enabled","3D_ZOOM_FAILED":"3D positioning failed, please try again",START_3D_ZOOM:"Turn on 3D positioning",CLOSE_3D_ZOOM:"Turn off 3D positioning",DEVICE_NOT_SUPPORT_3D_ZOOM:"Current device does not support 3D positioning function","3D_ZOOM_ACTIVED":"3D positioning is already enabled","3D_ZOOM_NOT_ACTIVED":"3D positioning function is not enabled","3D_ZOOM_CLOSED":"3D positioning is already disabled",CHANGE_ZOOM_TYPE:"Change zoom mode",FULLSCREEN:"Global full screen",FULLSCREEN_EXIT:"Exit global full screen",GET_WEB_FULLSCREEN_STATUS:"Get browser web page full screen status",WEB_FULLSCREEN:"Turn on web page full screen",WEB_FULLSCREEN_EXIT:"Exit full screen webpage",DESTROY:"Destroy",GET_CAPACITY:"Get device capability level",GET_PTZ_STATUS:"Get current PTZ status",GET_PTZ_STATUS_FAILED:"Theme module is not loaded, PTZ status cannot be obtained",MOBILE_HIDE_PTZ:"Mobile terminal, PTZ is not displayed in non-full screen state",OPTION_PTZ_FAILED:"Theme module is not loaded, PTZ cannot be operated",MOBILE_PTZ_TIPS:"Adjust camera angle by manipulating gimbal",PTZ_FAST:"F",PTZ_MID:"M",PTZ_SLOW:"S",PTZ_SPEED:"Adjust the PTZ rotation speed",DEVICE_ZOOM:"Control the device to zoom in/out of the screen",DEVICE_FOCUS:"Adjusting the device's focal length",NOT_SUPPORT_DEVICE_ZOOM:"Device does not support physical zoom",NOT_SUPPORT_FOCUS:"Device does not support adjusting the focal length",MIRROR:"Mirror flip",MIRROR_TYPE_ERROR:"Flip parameter type error",CHANGE_FEC_TYPE:"Switch fisheye correction type",DEVICE_NOT_SUPPORT:"Device does not support fisheye mode",TYPE_NOT_SUPPORT:"Fisheye correction type is not supported temporarily",FEC_SUPPORT_VERSION:"Currently only V3 software solution supports fisheye correction",NO_CANVAS_ID:"Fisheye correction type requires split screen, but the correct split screen canvas id is not passed",SET_FEC_PARAMS:"Set 3D correction perspective parameters",GET_FEC_PARAMS:"Get 3D correction perspective parameters",SET_FEC_PARAMS_FAILED:"This correction type cannot set 3D correction perspective parameters",GET_FEC_PARAMS_FAILED:"This correction type cannot get 3D correction perspective parameters",GET_FEC_PARAMS_SUPPORT_VERSION:"Currently only V3 software solution supports fisheye correction Get 3D correction perspective parameters",SET_WATERMARK:"Set watermark",FETCH_THEME_FAILED:"Failed to fetch theme template",cancel:"Cancel",ok:"Ok",close:"Close"},we={autoFocus:3,footer:{btnList:[{iconId:"play",part:"left",isrender:1},{iconId:"volume",part:"left",defaultActive:0,isrender:1},{iconId:"record",part:"left",defaultActive:0,isrender:1},{iconId:"fullscreen",part:"right",defaultActive:0,isrender:1},{iconId:"globalFullscreen",part:"right",defaultActive:0,isrender:1}]}},be={pcLive:{autoFocus:3,header:{btnList:[{iconId:"deviceID",part:"left",isrender:1},{iconId:"deviceName",part:"left",isrender:1}]},footer:{btnList:[{iconId:"play",part:"left",isrender:1},{iconId:"capturePicture",part:"left",isrender:1},{iconId:"sound",part:"left",isrender:1},{iconId:"pantile",part:"left",isrender:1},{iconId:"recordvideo",part:"left",isrender:1},{iconId:"talk",part:"left",isrender:1},{iconId:"zoom",part:"left",isrender:1},{iconId:"hd",part:"right",isrender:1},{iconId:"webExpend",part:"right",isrender:1},{iconId:"expend",part:"right",isrender:1}]}},pcRec:{header:{btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"cloudRecord",part:"right",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1}]},footer:{btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},mobileLive:{header:{btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1}]},footer:{btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1}]}},mobileRec:{header:{btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"cloudRecord",part:"right",defaultActive:0,isrender:1}]},footer:{btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1}]}},security:{header:{btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1}]},footer:{btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1}]}},voice:{header:{btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1}]},footer:{btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1}]}}};function ve(A,e){return ve=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},ve(A,e)}var Pe=function(A){function e(e){var t;((t=A.call(this)||this)._scaleMode=0,t._originWidth=0,t._originHeight=0,t._width=0,t._height=0,t.options=e,t._scaleMode=e.scaleMode||0,t.$wrapper=document.createElement("div"),t.$wrapper.className=f+"-content-wrapper",t.$content=document.createElement("div"),t.$content.className=f+"-content",t.$video=document.createElement("div"),t.$video.className=f+"-content-video",t.$content.appendChild(t.$video),t.$wrapper.appendChild(t.$content),"function"==typeof e.getContainer)&&e.getContainer().appendChild(t.$wrapper);return t.on(b.videoInfo,(function(A,e){t._rerender(A,e)})),t.on(b.resize,(function(){t._rerender()})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&ve(A,e)}(e,A);var t=e.prototype;return t._rerender=function(A,e){void 0===A&&(A=0),void 0===e&&(e=0);var t=this.$wrapper.clientWidth,i=this.$wrapper.clientHeight;if(this._width!==t||this._height!==i||this._originWidth!==A||this._originHeight!==e){this._width=t,this._height=i,A>0&&e>0&&(this._originWidth=A,this._originHeight=e);var a="contain";if(this._scaleMode===u&&(a="fill"),this._scaleMode===_&&(a="cover"),t>0&&i>0&&this._originWidth>0&&this._originHeight>0&&this.$video){var r=(t-this._originWidth)/2,n=(i-this._originHeight)/2,o=t/this._originWidth,s=i/this._originHeight,g=o>s?s:o;this._scaleMode!==p&&o!==s&&(g=o+","+s),this._scaleMode===_&&(g=o>s?o:s),this.$video.style.cssText+="\n width: "+this._originWidth+"px;\n height: "+this._originHeight+"px;\n position: absolute;\n object-fit:"+a+";\n left: "+r+"px;\n top: "+n+"px;\n transform-origin: 50% 50%;\n transform: scale("+g+");\n ",this.emit(b.control.contentRerender,{scaleMode:this._scaleMode,objectFill:a,scale:g,width:this._originWidth,height:this._originHeight})}}},t.setScaleMode=function(A){void 0===A&&(A=0),this._scaleMode=A,this._rerender()},t.destroy=function(){var A;this.$video&&(this.$video.remove(),this.$video=null),this.$content&&(this.$content.remove(),this.$content=null),null==(A=this.$wrapper)||A.remove(),this.$wrapper=null,this.emit(b.control.contentDestroy),this.removeAllListeners()},e}(i);function ke(){return ke=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},ke.apply(this,arguments)}function Te(A,e){return Te=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Te(A,e)}var Ne=function(A){function e(e){var t;return(t=A.call(this,ke({},e,{tagName:"span",controlType:"button",classNameSuffix:"more"}))||this).list=[],t.options=e,t._render(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Te(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e,t=this;this.$container.innerHTML=oe.isMobile?TA({title:null==(A=this.locale)?void 0:A.BTN_MORE}):NA({title:null==(e=this.locale)?void 0:e.BTN_MORE}),this.picker=new o(this.$container,{getPopupContainer:function(){return t.$container},trigger:oe.isMobile?"click":"hover",wrapClassName:f+"-more "+this.options.wrapClassName,open:!!this.options.open,isMobile:!1,offset:this.options.offset||[0,0],placement:this.options.placement||"tr",onOpenChange:this.options.onOpenChange}),this.picker.$body&&(this.$panel=document.createElement("div"),this.$panel.classList.add(f+"-more-panel"),this.picker.$body.appendChild(this.$panel),this.picker.$body.addEventListener("dblclick",this._onDBlClick))},t.add=function(A,e,t){this.list.unshift({part:e,key:A,control:t})},t.remove=function(A){var e=this.list.findIndex((function(e){return e.control===A}));-1!==e&&this.list.splice(e,1)},t.destroy=function(){var e;(this.list=[],this.picker)&&(null==(e=this.picker.$body)||e.removeEventListener("dblclick",this._onDBlClick),this.picker.destroy(),this.picker=null);A.prototype.destroy.call(this)},t._onControlClick=function(A){},e}(k);function Me(A,e){var t;return function(){for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];var n=this;clearTimeout(t),t=setTimeout((function(){return A.apply(n,a)}),e)}}var Le=[b.getOSDTime,b.setAllDayRecTimes,b.talkVolumeChange];function Ye(A,e){Object.values(e).forEach((function(e){var t=e;Le.includes(t)||("string"==typeof t?A.on(t,(function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];try{A.logger.log("[Event]",t,JSON.stringify(i))}catch(e){var r;(r=A.logger).warn.apply(r,[].concat(["[Event]",t],i))}})):"[object Object]"===Object.prototype.toString.call(t)&&Ye(A,e))}))}function Ge(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function Ue(){return Ue=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Ue.apply(this,arguments)}function Je(A,e){return Je=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Je(A,e)}var He,Oe,Ke={open:!1,max:8},Ve=function(A){function e(e){var t;return(t=A.call(this,Ue({},e,{tagName:"span",controlType:"button",classNameSuffix:"zoom"}))||this)._value=1,t._isRotated=!1,t._options=Object.assign({},Ke,e||{}),t._render(),t.emit(b.zoomChange,(function(A){t._progress&&(t.value=A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Je(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e,t,i,a=this;this.$container.innerHTML=kA({title:null==(A=this.locale)?void 0:A.BTN_ZOOM}),this._$zoomPanel=document.createElement("div"),this._$zoomPanel.className=f+"-zoom-panel "+f+"-hide",null==(e=this._options.rootContainer)||e.appendChild(this._$zoomPanel);var r=this._options.max<=1?8:Math.floor(this._options.max);this._isRotated=!!(null==(t=this._options.props)?void 0:t.isCurrentFullscreen)&&[0,180].includes(null==(i=this._options.props)?void 0:i.orientationAngle),this._progress=new le({container:this._$zoomPanel,defaultValue:1,range:[1,r],step:1,showMinus:!0,showPlus:!0,showPercent:!0,isRotated:this._isRotated,onChange:function(A,e,t){A!==a._value&&(a._value=A,null==a._options.onChange||a._options.onChange.call(a._options,A,e,t),a.emit(b.control.zoomChange,A,e,t))},renderText:function(A){return A+"X"}})},t.reset=function(e){var t,i;this.active&&(null==(i=this._$zoomPanel)||null==(t=i.classList)||t.add(f+"-hide"),this._progress.value=1,this.active=!1,A.prototype.reset.call(this,e))},t.destroy=function(){var e;this._options.rootContainer&&this._$zoomPanel&&(null==(e=this._options.rootContainer)||e.removeChild(this._$zoomPanel),this._$zoomPanel=null);A.prototype.destroy.call(this)},t._onControlClick=function(e){this.active=!this.active,A.prototype._onControlClick.call(this,e)},Ge(e,[{key:"value",get:function(){return this._value},set:function(A){this._progress&&this._value!==A&&(this._progress.value=A,this._value=A)}},{key:"active",get:function(){return this._active},set:function(A){var e,t,i,a;(this._active=A,this._updateActiveState(A),this.active)?(null==(t=this._$zoomPanel)||null==(e=t.classList)||e.remove(f+"-hide"),this.emit(b.control.zoomPanelOpenChange,!0)):(null==(a=this._$zoomPanel)||null==(i=a.classList)||i.add(f+"-hide"),this._progress.value=1,this.emit(b.control.zoomPanelOpenChange,!1))}},{key:"isRotated",get:function(){return this._isRotated},set:function(A){this._progress&&this._progress.isRotate(A)}}]),e}(k);function We(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}
|
|
41
41
|
/*
|
|
42
42
|
* @ezuikit/control-zoom v0.0.2
|
|
43
43
|
* Copyright (c) 2025-11-12 Ezviz-OpenBiz
|
|
44
44
|
* Released under the MIT License.
|
|
45
|
-
*/var Ze=function(){if(Oe)return He;function A(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}Oe=1;var e=[0,0],t={initialZoom:1,defaultCursor:"pointer",scrollVelocity:.1,animDuration:.25,allowZoom:!0,allowPan:!0,onChange:function(){},onTranslateChange:function(){},onTap:function(){},max:8,min:1,zoomStep:.1,allowTouchEvents:!1,allowWheel:!0,ignoredMouseButtons:[],doubleTouchMaxDelay:300,decelerationDuration:750},i=function(){function i(A,i){var a=this;this._dragging=!1,this.destroy=function(){a.setAllowZoom(!1),a.reset(),a.removeEventListeners()},this.setTransform=function(A){a.transform=A},this.getTransform=function(){return a.transform},this.updateTranslate=function(){var A=0,e=0;A=a.percentPos[0]<0?a.percentPos[0]<-.5*(a.zoom-1)?-.5*(a.zoom-1):a.percentPos[0]:a.percentPos[0]>.5*(a.zoom-1)?.5*(a.zoom-1):a.percentPos[0],e=a.percentPos[1]<0?a.percentPos[1]<-.5*(a.zoom-1)?-.5*(a.zoom-1):a.percentPos[1]:a.percentPos[1]>.5*(a.zoom-1)?.5*(a.zoom-1):a.percentPos[1],a.percentPos=[A,e]},this.update=function(){a.container&&(a.updateTranslate(),a.container.style.transition="transform ease-out "+a.transition+"s",a.container.style.transform="translate3d("+100*a.percentPos[0]+"%, "+100*a.percentPos[1]+"%, 0) scale("+a.zoom+")")},this.setAllowZoom=function(A){a.options.allowZoom=A},this.setZoom=function(A,e){A=parseFloat(A.toFixed(a.getPrecision(a.options.zoomStep))),a.zoom!==A&&(a.zoom=A,a.update(),null==a.options.onChange||a.options.onChange.call(a.options,+a.zoom.toFixed(a.getPrecision(a.options.zoomStep)),e))},this.getZoom=function(){return a.zoom},this.setPos=function(A){var e,t,i=null==(e=a.container)?void 0:e.clientWidth,r=null==(t=a.container)?void 0:t.clientHeight;+a.pos[0]===A[0]&&+a.pos[1]===A[1]||(a.percentPos=[A[0]/i,A[1]/r],a.update(),null==a.options.onTranslateChange||a.options.onTranslateChange.call(a.options,{posX:A[0],posY:A[1]}))},this.setTransitionDuration=function(A){a.transition=A,a.update()},this.setCursor=function(A){a.container&&(a.container.style.cssText+="cursor:"+A+";",a.cursor=A)},this.zoomIn=function(A){var e,t,i=a.pos[0],r=a.pos[1],n=a.zoom,o=n+A<(null!=(e=a.options.max)?e:8)?n+A:null!=(t=a.options.max)?t:8;o!==n&&(i=i*(o-1)/(n>1?n-1:n),r=r*(o-1)/(n>1?n-1:n)),a.setZoom(o),a.setPos([i,r]),a.setTransitionDuration(a.options.animDuration)},this.zoomOut=function(A){var e,t,i=a.pos[0],r=a.pos[1],n=a.zoom,o=n-A>(null!=(e=a.options.min)?e:1)?n-A:null!=(t=a.options.min)?t:1;o!==n&&(i=i*(o-1)/(n-1),r=r*(o-1)/(n-1)),a.setZoom(o),a.setPos([i,r]),a.setTransitionDuration(a.options.animDuration)},this.zoomToZone=function(A,e,t,i){var r;if(a.container){var n,o=a.pos[0],s=a.pos[1],g=(null==(r=a.container)?void 0:r.parentNode).getBoundingClientRect(),l=a.zoom,C=g.width/t,I=g.height/i,c=Math.min(C,I,null!=(n=a.options.max)?n:8),h=a.container.getBoundingClientRect(),B=[h.width/l/2,h.height/l/2],E=[A+t/2,e+i/2];o=(B[0]-E[0])*c,s=(B[1]-E[1])*c,a.setZoom(c),a.setPos([o,s]),a.setTransitionDuration(a.options.animDuration)}},this.getNewPosition=function(A,t,i){var r=[a.zoom,a.pos[0],a.pos[1]][0];if(1===i||!a)return e;var n=[a.container.clientWidth,a.container.clientHeight],o=n[0],s=n[1];if(i>r)return[0,0];var g=-(A-o/2)/(o/2)*i/2,l=-(t-s/2)/(s/2)*i/2;return g>i/2-.5&&(g=3.5),l>i/2-.5&&(l=3.5),[o*g,s*l]},this.fullZoomInOnPosition=function(A,e){var i,r=null!=(i=a.options.max)?i:t.max;a.setZoom(null!=r?r:t.max),a.setPos(a.getNewPosition(A,e,r)),a.setTransitionDuration(a.options.animDuration)},this.getLimitedShift=function(A,e,t,i,a){if(A>0){if(i>e)return 0;if(i+A>e)return e-i}else if(A<0){if(a<t)return 0;if(a+A<t)return t-a}return A},this.getCursor=function(A,e){return A&&e?"move":A?"ew-resize":e?"ns-resize":"auto"},this.move=function(A,e,t){if(void 0===t&&(t=0),a.container){var i=a.pos[0],r=a.pos[1],n=a.container.getBoundingClientRect(),o=a.container.parentNode.getBoundingClientRect(),s=a.transform?e:A,g=a.transform?A:e,l=a.transform?[n.height>o.bottom-o.top,g>0&&n.top-o.top<0,g<0&&n.bottom-o.bottom>0]:[n.width>o.right-o.left,s>0&&n.left-o.left<0,s<0&&n.right-o.right>0],C=l[0]||l[1]||l[2];C&&(a.transform?i+=a.getLimitedShift(g,o.top,o.bottom,n.top,n.bottom):i+=a.getLimitedShift(s,o.left,o.right,n.left,n.right));var I=a.transform?[n.width>o.right-o.left,s>0&&n.right-o.right<0,s<0&&n.left-o.left>0]:[n.height>o.bottom-o.top,g>0&&n.top-o.top<0,g<0&&n.bottom-o.bottom>0],c=I[0]||I[1]||I[2];if(c)if(a.transform){r+=function(A,e,t,i,a){if(A>0){if(a<t+1)return 0;if(a+A<t+1)return t-a}else if(A<0){if(i+1>e)return 0;if(i+1+A>e)return e-i}return A}(s,o.left,o.right,n.left,n.right)}else r+=a.getLimitedShift(g,o.top,o.bottom,n.top,n.bottom);var h=a.getCursor(C,c);a.setPos([i,r]),a.setCursor(h),a.setTransitionDuration(t)}},this.isDoubleTapping=function(){var A,e,t,i,r=(new Date).getTime();return r-(null!=(A=a.lastTouchTime)?A:0)<(null!=(e=a.options.doubleTouchMaxDelay)?e:300)&&r-(null!=(t=a.lastDoubleTapTime)?t:0)>(null!=(i=a.options.doubleTouchMaxDelay)?i:750)?(a.lastDoubleTapTime=r,!0):(a.lastTouchTime=r,!1)},this.startDeceleration=function(A,e){var t=null,i=function(r){null===t&&(t=r);var n,o,s,g=r-t,l=((null!=(n=a.options.decelerationDuration)?n:750)-g)/(null!=(o=a.options.decelerationDuration)?o:750),C=[A*l,e*l],I=C[0],c=C[1];g<(null!=(s=a.options.decelerationDuration)?s:750)&&Math.max(Math.abs(I),Math.abs(c))>1?(a.move(I,c,0),a.lastRequestAnimationId=requestAnimationFrame(i)):a.lastRequestAnimationId=null};a.lastRequestAnimationId=requestAnimationFrame(i)},this.reset=function(){a.setZoom(a.options.initialZoom,!0),a.cursor=a.options.defaultCursor,a.setTransitionDuration(a.options.animDuration),a.setPos(e)},this.addScale=function(A){void 0===A&&(A=1),a.handleZoomAdd(A)},this.handleZoomAdd=function(A){if(void 0===A&&(A=1),a.options.allowZoom&&a.options.allowWheel){var e,t=parseFloat((a.zoom+A).toFixed(a.getPrecision(a.options.zoomStep)));t>(null!=(e=a.options.max)?e:8)&&(t=8),a.setZoom(t),a.setPos(a.pos),a.setTransitionDuration(.05)}},this.subScale=function(A){void 0===A&&(A=1),a.handleZoomSub(A)},this.handleZoomSub=function(A){if(void 0===A&&(A=1),a.options.allowZoom&&a.options.allowWheel){var e=parseFloat((a.zoom-A).toFixed(a.getPrecision(a.options.zoomStep)));e<1&&(e=1),a.setZoom(e),a.setPos(a.pos),a.setTransitionDuration(.05)}},this.handleMouseWheel=function(A){if(A.preventDefault(),a.options.allowZoom&&a.options.allowWheel){var e,t,i=A.deltaY<0?a.options.scrollVelocity:0-a.options.scrollVelocity,r=parseFloat(Math.max(Math.min(a.zoom+i,null!=(e=a.options.max)?e:8),null!=(t=a.options.min)?t:1).toFixed(a.getPrecision(a.options.zoomStep)));a.setZoom(r),a.setTransitionDuration(.05)}},this.handleMouseStart=function(A){var e;A.preventDefault(),a.options.allowPan&&!(null==(e=a.options.ignoredMouseButtons)?void 0:e.includes(A.button))&&(a._dragging=!0,a.lastRequestAnimationId&&cancelAnimationFrame(a.lastRequestAnimationId),a.lastCursor=a.getCoordinates(A))},this.handleMouseMove=function(A){A.preventDefault(),a.options.allowPan&&a.lastCursor&&a._dragging&&a._touchOrMouseDrag(A)},this.handleMouseStop=function(A){A.preventDefault(),a.lastShift&&(a.startDeceleration(a.lastShift[0],a.lastShift[1]),a.lastShift=null),a.lastCursor=null,a.setCursor("auto"),a._dragging=!1},this.handleTouchStart=function(A){var e=a.isDoubleTapping();a.isMultiTouch=A.touches.length,a.options.allowTouchEvents||A.preventDefault(),a.lastRequestAnimationId&&cancelAnimationFrame(a.lastRequestAnimationId);var t=a.getCoordinates(A.touches[0]),i=t[0],r=t[1];if(a.isMultiTouch>1)a.lastCursor=[i,r];else if(e&&a.options.allowZoom)if(1===a.zoom){var n=a.container.getBoundingClientRect();n.top,n.left;var o,s,g=n.x,l=n.y;i=(s=[i-(g=(o=a.transform?[l,g]:[g,l])[0]),r-(l=o[1])])[0],r=s[1],a.fullZoomInOnPosition(i,r)}else a.reset();else a._tapStartTime=(new Date).getTime(),a.options.allowPan&&(a.lastCursor=[i,r])},this.handleTouchMove=function(A){if(a.options.allowTouchEvents||A.preventDefault(),a.lastCursor)if(1===a.isMultiTouch)a._touchOrMouseDrag(A.touches[0]),a.lastTouchDistance=null;else if(a.isMultiTouch>1){var e=a.zoom,t=a.getCoordinates(A.touches[0]),i=t[0],r=t[1],n=a.getCoordinates(A.touches[1]),o=n[0],s=n[1],g=Math.sqrt(Math.pow(o-i,2)+Math.pow(s-r,2));if(a.lastTouchDistance&&g&&g!==a.lastTouchDistance){var l,C,I;if(a.options.allowZoom)if((e+=(g-a.lastTouchDistance)/100)>(null!=(l=a.options.max)?l:8))e=null!=(I=a.options.max)?I:8;else if(e<(null!=(C=a.options.min)?C:1)){var c;e=null!=(c=a.options.min)?c:1}a.setZoom(e),a.setTransitionDuration(0)}a.lastCursor=[i,r],a.lastTouchDistance=g}},this.handleTouchStop=function(){a.lastShift&&(a.startDeceleration(a.lastShift[0],a.lastShift[1]),a.lastShift=null),a._tapStartTime&&(new Date).getTime()-a._tapStartTime<200&&(null==a.options.onTap||a.options.onTap.call(a.options)),a._tapStartTime=void 0,a.lastCursor=null,a.lastTouchDistance=null,a.isMultiTouch=0},this.container=A,this.options=Object.assign({},t,i||{}),this.percentPos=e,this.transition=this.options.animDuration,this.zoom=1,this.cursor="auto",this.lastCursor=[0,0],this.lastShift=null,this.lastTouchDistance=null,this.lastRequestAnimationId=null,this.lastTouchTime=(new Date).getTime(),this.lastDoubleTapTime=(new Date).getTime(),this.transform=!1,this.isMultiTouch=1,this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseStart=this.handleMouseStart.bind(this),this.handleMouseStop=this.handleMouseStop.bind(this),this.handleMouseWheel=this.handleMouseWheel.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchStop=this.handleTouchStop.bind(this),this.getZoom=this.getZoom.bind(this),this.setZoom=this.setZoom.bind(this)}var a=i.prototype;return a.setUpEventListeners=function(){var A=this.container;window.matchMedia("(pointer: fine)").matches?(this.options.allowWheel&&(null==A||A.addEventListener("wheel",this.handleMouseWheel,{passive:!1})),null==A||A.addEventListener("mousedown",this.handleMouseStart,{passive:!1}),null==A||A.addEventListener("mousemove",this.handleMouseMove,{passive:!1}),null==A||A.addEventListener("mouseup",this.handleMouseStop,{passive:!1}),null==A||A.addEventListener("mouseleave",this.handleMouseStop,{passive:!1})):(null==A||A.addEventListener("touchstart",this.handleTouchStart,{passive:!1}),null==A||A.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),null==A||A.addEventListener("touchend",this.handleTouchStop,{passive:!1}),null==A||A.addEventListener("touchcancel",this.handleTouchStop,{passive:!1}))},a.removeEventListeners=function(){var A=this.container;window.matchMedia("(pointer: fine)").matches?(this.options.allowWheel&&(null==A||A.removeEventListener("wheel",this.handleMouseWheel)),null==A||A.removeEventListener("mousedown",this.handleMouseStart),null==A||A.removeEventListener("mousemove",this.handleMouseMove),null==A||A.removeEventListener("mouseup",this.handleMouseStop),null==A||A.removeEventListener("mouseleave",this.handleMouseStop)):(null==A||A.removeEventListener("touchstart",this.handleTouchStart),null==A||A.removeEventListener("touchmove",this.handleTouchMove),null==A||A.removeEventListener("touchend",this.handleTouchStop),null==A||A.removeEventListener("touchcancel",this.handleTouchStop))},a.getPrecision=function(A){void 0===A&&(A=1);var e=A.toString();return e.includes(".")?e.split(".")[1].length:1},a.getCoordinates=function(A){var e=this.container.clientHeight,t=this.container.clientTop,i=this.container.clientLeft,a=this.transform?[A.clientY,e-A.clientX]:[A.clientX-t,A.clientY-i];return[a[0],a[1]]},a._touchOrMouseDrag=function(A){if(this.lastCursor){var e=this.getCoordinates(A),t=e[0],i=e[1],a=t-this.lastCursor[0],r=i-this.lastCursor[1];this.move(a,r,0),this.lastCursor=[t,i],this.lastShift=[a,r]}},A(i,[{key:"pos",get:function(){return[this.container.clientWidth*this.percentPos[0],this.container.clientHeight*this.percentPos[1]]}}]),i}();return i.VERSION="0.0.2",He=i}(),Xe=We(Ze);function qe(){return qe=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},qe.apply(this,arguments)}function je(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function ze(A){return function(){var e=this,t=arguments;return new Promise((function(i,a){var r=A.apply(e,t);function n(A){je(r,i,a,n,o,"next",A)}function o(A){je(r,i,a,n,o,"throw",A)}n(void 0)}))}}function $e(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function At(A,e){return ze((function(){var t,i,a;return $e(this,(function(r){switch(r.label){case 0:return a=A.options.env.domain+"/api/service/media/template/getDetail?accessToken="+(A.options.accessToken||(null==(i=A.options.token)||null==(t=i.httpToken)?void 0:t.url))+"&id="+e,[4,fetch(a,{method:"GET"}).then((function(A){return ze((function(){return $e(this,(function(e){switch(e.label){case 0:return[4,A.json()];case 1:return[2,e.sent()]}}))}))()})).then((function(A){if(A.meta){var e,t,i,a;if((null==(t=A.data)||null==(e=t.footer)?void 0:e.btnList)&&oe.isMobile)null==(a=A.data)||null==(i=a.footer)||i.btnList.forEach((function(e,t){var i,a;"webExpend"===e.iconId?(null==(a=A.data)||null==(i=a.footer)?void 0:i.btnList)[t]={}:"expend"===e.iconId&&(e.iconId="webExpend")}));return A.data||null}return null}))];case 1:return[2,r.sent()]}}))}))()}function et(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function tt(){return tt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},tt.apply(this,arguments)}function it(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var at={sound:"volume",webExpend:"fullscreen",expend:"globalFullscreen",pantile:"ptz",recordvideo:"record",hd:"definition"};function rt(A){return[A.filter((function(A){return"left"===A.part})),A.filter((function(A){return"right"===A.part}))]}function nt(A,e){return(t=function(){var t,i,a;return it(this,(function(r){switch(r.label){case 0:return t=e,"string"==typeof e&&e.length<32?"simple"===e?[2,null]:(t=be[e],e||(null==(i=A.logger)||i.warn("Theme template "+e+" is not exist!"),t=null),[2,t]):[3,1];case 1:if("string"!=typeof e||32!==e.length)return[3,6];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,At(A,e)];case 3:return(a=r.sent())?[2,a]:(A.emit(b.message,A.i18n.t("FETCH_THEME_FAILED"),"themeError"),[3,5]);case 4:return r.sent(),A.emit(b.message,A.i18n.t("FETCH_THEME_FAILED"),"themeError"),[3,5];case 5:return[3,7];case 6:return"[object Object]"===Object.prototype.toString.call(e)?[2,e]:[2,null];case 7:return[2]}}))},function(){var A=this,e=arguments;return new Promise((function(i,a){var r=t.apply(A,e);function n(A){et(r,i,a,n,o,"next",A)}function o(A){et(r,i,a,n,o,"throw",A)}n(void 0)}))})();var t}function ot(A,e){void 0===e&&(e=.8);return/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(A)?function(A,e){return void 0===e&&(e=.8),3!==(A=A.replace(/^#/,"")).length&&4!==A.length||(A=A.split("").map((function(A){return A+A})).join("")),"rgba("+parseInt(A.substring(0,2),16)+", "+parseInt(A.substring(2,4),16)+", "+parseInt(A.substring(4,6),16)+", "+e+")"}(A,e):/^rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(,\s*[\d.]+)?\s*\)$/.test(A)?function(A,e){void 0===e&&(e=.8);var t=A.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)\)/);return t?"rgba("+t[1]+", "+t[2]+", "+t[3]+", "+e+")":""}(A,e):""}var st=function(){function A(A){if(void 0===A&&(A={}),this._options=A,this.$container=document.createElement("div"),this._defaultClass=f+"-"+this._options.cType,this._options.cType&&this.$container.classList.add(this._defaultClass),(null==A?void 0:A.className)&&this.$container.classList.add(A.className),(null==A?void 0:A.color)&&(this.$container.style.cssText+="--"+f+"-default-color: "+A.color+";"),(null==A?void 0:A.activeColor)&&(this.$container.style.cssText+="--"+f+"-active-color: "+A.activeColor+";"),null==A?void 0:A.backgroundColor){var e=ot(null==A?void 0:A.backgroundColor);e?"header"===this._options.cType?e="background: linear-gradient(0deg, transparent 0, "+e+");":"footer"===this._options.cType&&(e="background: linear-gradient(180deg, transparent 0, "+e+");"):e="background: "+(null==A?void 0:A.backgroundColor)+";",this.$container.style.cssText+=e+";"}A.getPopupContainer?this.$popupContainer=null==A.getPopupContainer?void 0:A.getPopupContainer.call(A):this.$popupContainer=document.body,this.$left=document.createElement("div"),this.$left.classList.add(this._defaultClass+"-left"),this.$right=document.createElement("div"),this.$right.classList.add(this._defaultClass+"-right"),this.$container.appendChild(this.$left),this.$container.appendChild(this.$right),this.$popupContainer.appendChild(this.$container)}return A.prototype.destroy=function(){var A;null==(A=this.$popupContainer)||A.removeChild(this.$container)},A}();function gt(){return gt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},gt.apply(this,arguments)}function lt(A,e){return lt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},lt(A,e)}var Ct=function(A){function e(e){return void 0===e&&(e={}),A.call(this,gt({},e,{cType:"footer"}))||this}return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&<(A,e)}(e,A),e}(st);function It(){return It=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},It.apply(this,arguments)}function ct(A,e){return ct=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},ct(A,e)}var ht=function(A){function e(e){return void 0===e&&(e={}),A.call(this,It({},e,{cType:"header"}))||this}return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&ct(A,e)}(e,A),e}(st);function Bt(){return Bt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Bt.apply(this,arguments)}function Et(A,e){return Et=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Et(A,e)}var xt=function(A){function e(e){return A.call(this,Bt({},e,{controlType:"button",classNameSuffix:"global-fullscreen"}))||this}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Et(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e;this.$container.innerHTML=SA({title:null==(A=this.locale)?void 0:A.BTN_EXIT_GLOBAL_FULLSCREEN})+DA({title:null==(e=this.locale)?void 0:e.BTN_GLOBAL_FULLSCREEN})},t._onControlClick=function(){var A,e;this.isCurrentFullscreen&&this._$rootContainer.classList.contains(f+"-global-fullscreen")?(this._$rootContainer.classList.remove(f+"-global-fullscreen"),null==(A=this._fullscreenUtil)||A.exitFullscreen()):(this._$rootContainer.classList.add(f+"-global-fullscreen"),null==(e=this._fullscreenUtil)||e.fullscreen())},e}(_e);function dt(){return dt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},dt.apply(this,arguments)}function Qt(A,e){return Qt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Qt(A,e)}var ft,ut=function(A){function e(e){var t;return(t=A.call(this,dt({},e,{tagName:"span",classNameSuffix:"capture-picture"}))||this)._timer=null,t.options=e,t._render(),"function"==typeof t.options.onCapture&&t.on(b.control.capturePictureResult,t.options.onCapture),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Qt(A,e)}(e,A);var t=e.prototype;return t.destroy=function(){this._timer&&(clearTimeout(this._timer),this._timer=null),A.prototype.destroy.call(this)},t._render=function(){var A;this.$container.innerHTML=RA({title:null==(A=this.locale)?void 0:A.BTN_CAPTURE})},t._onControlClick=function(e){var t,i,a=this;this.active=!0,this.emit(b.control.capturePicture,{type:null!=(t=this.options.type)?t:"download",quality:this.options.quality||.9,cloudRecUpload:null==(i=this.options.cloudRecUpload)||i}),this._timer&&(clearTimeout(this._timer),this._timer=null),this._timer=setTimeout((function(){a._timer&&(clearTimeout(a._timer),a._timer=null),a.active=!1}),200),A.prototype._onControlClick.call(this,e)},e}(k),pt={},mt=function(){if(ft)return pt;ft=1;var A=g,e=l,t={language:"zh",env:{domain:"https://open.ys7.com"},accessToken:"",speed:2,locales:{zh:{GET_PTZ_STATUS:"获取当前云台状态",GET_PTZ_STATUS_FAILED:"未加载Theme模块,无法获取云台状态",MOBILE_HIDE_PTZ:"移动端,非全屏状态不展示云台",OPTION_PTZ_FAILED:"未加载Theme模块,无法操作云台",MOBILE_PTZ_TIPS:"请通过操控云台来调整摄像机视角",PTZ_FAST:"快",PTZ_MID:"中",PTZ_SLOW:"慢",PTZ_SPEED:"调整云台转动速度",DEVICE_ZOOM:"控制设备放大/缩小画面",DEVICE_FOCUS:"调整设备焦距"},en:{GET_PTZ_STATUS:"Get current PTZ status",GET_PTZ_STATUS_FAILED:"Theme module is not loaded, PTZ status cannot be obtained",MOBILE_HIDE_PTZ:"Mobile terminal, PTZ is not displayed in non-full screen state",OPTION_PTZ_FAILED:"Theme module is not loaded, PTZ cannot be operated",MOBILE_PTZ_TIPS:"Adjust camera angle by manipulating gimbal",PTZ_FAST:"F",PTZ_MID:"M",PTZ_SLOW:"S",PTZ_SPEED:"Adjust the PTZ rotation speed",DEVICE_ZOOM:"Control the device to zoom in/out of the screen",DEVICE_FOCUS:"Adjusting the device's focal length"}}},i={1:1,2:3,3:7,slow:1,mid:3,fast:7},a="ez-ptz",r="ez-mobile-ptz",n=a+"-speed-active",o=a+"-direction",s=function(){function e(e,a){var r,n,o;if(void 0===a&&(a={}),!e)throw new Error("Ptz container is required");(this.options=A(t,a,{clone:!1}),null==(r=this.options.locales)?void 0:r[this.options.language])?this.locale=null==(n=this.options.locales)?void 0:n[this.options.language]:this.locale=null==(o=this.options.locales)?void 0:o.zh;this.$container=e,this.speed=i[this.options.speed||2]}var a=e.prototype;return a.updateOptions=function(e){this.options=A(this.options,e,{clone:!1})},a.destroy=function(){},e}();function C(A,e){return C=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},C(A,e)}var I=function(A){function e(e,t){var i;return(i=A.call(this,e,t)||this)._touchstart=i._touchstart.bind(i),i._touchend=i._touchend.bind(i),i._render(),i}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&C(A,e)}(e,A);var t=e.prototype;return t.destroy=function(){this._removeEventListener(),this.$content&&(this.$content.remove(),this.$content=null),A.prototype.destroy.call(this)},t._render=function(){this.$content=document.createElement("div"),this.$content.classList.add(r+"-content"),this.$content.innerHTML='\n <div class="'+r+'-wrap">\n <div class="'+r+'-container">\n <div class="'+r+"-center "+r+'-center"></div>\n <div class="'+r+"-icon "+r+"-top "+r+'-default"></div>\n <div class="'+r+"-icon "+r+"-left "+r+'-default"></div>\n <div class="'+r+"-icon "+r+"-bottom "+r+'-default"></div>\n <div class="'+r+"-icon "+r+"-right "+r+'-default"></div>\n </div>\n </div>\n ',this.$container.appendChild(this.$content),this._addEventListener()},t._addEventListener=function(){var A=this.$content.querySelector("."+r+"-wrap"),e="PointerEvent"in window?"pointerdown":"touchstart",t="PointerEvent"in window?"pointerup":"touchend";A&&(A.addEventListener(e,this._touchstart),A.addEventListener(t,this._touchend))},t._touchstart=function(A){A.preventDefault(),this._handlePtzTouch(A,"start")},t._touchend=function(A){A.preventDefault(),this._handlePtzTouch(A,"stop")},t._removeEventListener=function(){var A=this.$content.querySelector("."+r+"-wrap"),e="PointerEvent"in window?"pointerdown":"touchstart",t="PointerEvent"in window?"pointerup":"touchend";A&&(A.removeEventListener(e,this._touchstart),A.removeEventListener(t,this._touchend))},t._handlePtzTouch=function(A,e){var t,i,a,n,o,s,g;if(!this.options.accessToken&&!(null==(i=this.options.token)||null==(t=i.deviceToken)?void 0:t.video))throw new Error("Ptz accessToken or token.deviceToken.video is required");var l,C=this.$content.querySelector("."+r+"-wrap"),I=C.getBoundingClientRect(),c=I.left+130,h=I.top+130,B=(A.x||(null==(a=A.changedTouches[0])?void 0:a.clientX))-c,E=(A.y||(null==(n=A.changedTouches[0])?void 0:n.clientY))-h,x=0,d=(null==(o=this.options.env)?void 0:o.domain)+"/api/lapp/device/ptz/start",Q=this.options.accessToken||(null==(g=this.options.token)||null==(s=g.deviceToken)?void 0:s.video),f=C.querySelectorAll("."+r+"-icon");(Math.abs(B)>Math.abs(E)?B>0?(x=3,f[3].className=f[3].className.replace(r+"-default",r+"-active")):(x=2,f[1].className=f[1].className.replace(r+"-default",r+"-active")):E>0?(x=1,f[2].className=f[2].className.replace(r+"-default",r+"-active")):(x=0,f[0].className=f[0].className.replace(r+"-default",r+"-active")),C.style.cssText="background-image:linear-gradient("+(0===x?180:1===x?0:2===x?90:270)+"deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)","stop"===e)&&(d=(null==(l=this.options.env)?void 0:l.domain)+"/api/lapp/device/ptz/stop",C.style.cssText="",f[3].className=f[3].className.replace(r+"-active",r+"-default"),f[1].className=f[1].className.replace(r+"-active",r+"-default"),f[2].className=f[2].className.replace(r+"-active",r+"-default"),f[0].className=f[0].className.replace(r+"-active",r+"-default"));var u=null==this.options.onDirection?void 0:this.options.onDirection.call(this.options,{direction:x,speed:this.speed,type:e}),p=new FormData;p.append("deviceSerial",this.options.deviceSerial+""),p.append("channelNo",this.options.channelNo+""),p.append("speed","1"),p.append("direction",x+""),p.append("accessToken",Q),fetch(d,{method:"POST",body:p}).then((function(A){return A.json()})).then((function(A){200===A.code||[60005,60002,60003,60004].includes(+A.code)&&(C.style.cssText="background-image:linear-gradient("+(0===x?180:1===x?0:2===x?90:270)+"deg, #f45656 0%, rgba(100,143,252,0.00) 50%)"),null==u||u(A)})).catch((function(A){})).finally((function(){u=null}))},e}(s);function c(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function h(A){return function(){var e=this,t=arguments;return new Promise((function(i,a){var r=A.apply(e,t);function n(A){c(r,i,a,n,o,"next",A)}function o(A){c(r,i,a,n,o,"throw",A)}n(void 0)}))}}function B(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function E(A,e){return E=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},E(A,e)}function x(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var d=function(A){function t(t,i){var r;return void 0===i&&(i={}),(r=A.call(this,t,i)||this)._isMobile=e.isMobile(),r._isRotate=!1,r._clearTimer=null,r._$wrapper=document.createElement("div"),r._$wrapper.className=a+"-container-wrap",r._$directionCircleContainer=document.createElement("div"),r._$directionCircleContainer.classList.add(a+"-container"),r._$directionCircleContainer.innerHTML='\n <div class="'+a+"-main "+o+'-center"></div>\n <div class="'+a+"-icon "+o+'-top" data-direction="0"></div>\n <div class="'+a+"-icon "+o+'-top-left" data-direction="4"></div>\n <div class="'+a+"-icon "+o+'-left" data-direction="2"></div>\n <div class="'+a+"-icon "+o+'-left-bottom" data-direction="5"></div>\n <div class="'+a+"-icon "+o+'-bottom" data-direction="1"></div>\n <div class="'+a+"-icon "+o+'-bottom-right" data-direction="7"></div>\n <div class="'+a+"-icon "+o+'-right" data-direction="3"></div>\n <div class="'+a+"-icon "+o+'-right-top" data-direction="6"></div>\n ',r._$wrapper.appendChild(r._$directionCircleContainer),r._$speedContainer=document.createElement("div"),r._$speedContainer.classList.add(a+"-speed-container"),r._$speedContainer.innerHTML='\n <div class="'+a+'-speed-progress" title="'+r.locale.PTZ_SPEED+'">\n <div class="'+a+'-speed-progress-line">\n <div class="'+a+"-speed-progress-line-dot "+(1===r.speed?n:"")+'" data-id="slow" data-index="1" data-value="1"></div>\n <div class="'+a+"-speed-progress-line-dot "+(3===r.speed?n:"")+'" data-id="mid" data-index="2" data-value="3"></div>\n <div class="'+a+"-speed-progress-line-dot "+(7===r.speed?n:"")+'" data-id="fast" data-index="3" data-value="7"></div>\n </div>\n <div class="'+a+'-speed-progress-points">\n <div class="'+a+'-speed-progress-points-slow">\n '+r.locale.PTZ_SLOW+'\n </div>\n <div class="'+a+'-speed-progress-points-mid">\n '+r.locale.PTZ_MID+'\n </div>\n <div class="'+a+'-speed-progress-points-fast">\n '+r.locale.PTZ_FAST+"\n </div>\n </div>\n </div>\n ",r._$wrapper.appendChild(r._$speedContainer),r._$btnContainer=document.createElement("div"),r._$btnContainer.classList.add(a+"-btn-container"),r._$btnContainer.innerHTML='\n <div class="'+a+'-btn-zoom" title="'+r.locale.DEVICE_ZOOM+'" style="user-select: none;">\n <div class="'+a+'-btn-zoom-add" style="user-select: none;">\n <svg viewBox="0 0 1088 1024" version="1.1" width="20" height="20">\n <path d="M563.2 198.4c179.2 0 326.4 147.2 326.4 326.4s-147.2 326.4-326.4 326.4S230.4 704 230.4 524.8s147.2-326.4 332.8-326.4z m0 64c-147.2 0-262.4 115.2-262.4 262.4s115.2 262.4 262.4 262.4 262.4-115.2 262.4-262.4S704 262.4 563.2 262.4z" fill="#ffffff"></path>\n <path d="M691.2 556.8H428.8c-19.2 0-32-12.8-32-32s12.8-32 32-32h262.4c19.2 0 32 12.8 32 32s-12.8 32-32 32z" fill="#ffffff">\n </path>\n <path d="M556.8 691.2c-19.2 0-32-12.8-32-32V396.8c0-19.2 12.8-32 32-32s32 12.8 32 32v262.4c0 19.2-12.8 32-32 32z" fill="#ffffff"></path>\n </svg>\n </div>\n <div class="'+a+'-btn-zoom-sub" style="user-select: none;">\n <svg viewBox="0 0 1088 1024" version="1.1" width="20" height="20">\n <path d="M569.6 838.4c-172.8 0-307.2-140.8-307.2-307.2s140.8-307.2 307.2-307.2 307.2 140.8 307.2 307.2-140.8 307.2-307.2 307.2z m0-64c134.4 0 249.6-108.8 249.6-249.6S704 281.6 569.6 281.6 320 396.8 320 531.2s108.8 243.2 249.6 243.2z" fill="#ffffff"></path>\n <path d="M691.2 563.2H448c-19.2 0-32-12.8-32-32s12.8-38.4 32-38.4h249.6c19.2 0 32 12.8 32 32s-19.2 38.4-38.4 38.4z" fill="#ffffff"></path>\n </svg>\n </div>\n </div>\n <div class="'+a+'-btn-focal" title="'+r.locale.DEVICE_FOCUS+'" style="user-select: none;">\n <div class="'+a+'-btn-focal-add" style="user-select: none;">\n <svg viewBox="0 0 1088 1024" version="1.1" width="20" height="20">\n <path d="M646.4 825.6H320c-44.8 0-83.2-38.4-83.2-83.2V409.6c0-44.8 38.4-83.2 83.2-83.2h326.4c44.8 0 83.2 38.4 83.2 83.2v326.4c0 51.2-38.4 89.6-83.2 89.6zM320 390.4c-12.8 0-19.2 6.4-19.2 19.2v326.4c0 12.8 6.4 19.2 19.2 19.2h326.4c12.8 0 19.2-6.4 19.2-19.2V409.6c0-12.8-6.4-19.2-19.2-19.2H320z" fill="#ffffff"></path>\n <path d="M396.8 358.4V281.6c0-25.6 25.6-51.2 51.2-51.2h326.4c25.6 0 51.2 25.6 51.2 51.2v326.4c0 25.6-25.6 51.2-51.2 51.2H704l-6.4-268.8" fill="#ffffff"></path>\n </svg>\n </div>\n <div class="'+a+'-btn-focal-sub" style="user-select: none;">\n <svg viewBox="0 0 1088 1024" version="1.1" width="20" height="20">\n <path d="M320 358.4h326.4c25.6 0 51.2 25.6 51.2 51.2v326.4c0 25.6-25.6 51.2-51.2 51.2H320c-25.6 0-51.2-25.6-51.2-51.2V409.6c0-25.6 25.6-51.2 51.2-51.2z" fill="#ffffff"></path>\n <path d="M774.4 697.6H704c-19.2 0-32-12.8-32-32s12.8-32 32-32h70.4c12.8 0 19.2-6.4 19.2-19.2V281.6c0-12.8-6.4-19.2-19.2-19.2H448c-12.8 0-19.2 6.4-19.2 19.2v70.4c0 19.2-12.8 32-32 32s-32-12.8-32-25.6V281.6c0-44.8 38.4-83.2 83.2-83.2h326.4c44.8 0 83.2 38.4 83.2 83.2v326.4c0 51.2-38.4 89.6-83.2 89.6z" fill="#ffffff"></path>\n </svg>\n </div>\n </div>\n ',r._$wrapper.appendChild(r._$btnContainer),t.appendChild(r._$wrapper),r._$directionCircleContainer.onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handlePtzTouch(A,"start")},r._$directionCircleContainer.onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handlePtzTouch(A,"stop")},r._$directionCircleContainer.ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handlePtzTouch(A,"start")},r._$directionCircleContainer.ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handlePtzTouch(A,"stop")},r._onSwitchSpeed=function(A){var e=Array.from(r._$speedContainer.querySelectorAll("."+a+"-speed-progress-line-dot"));if(e.includes(A.target)&&!A.target.classList.contains(n)){e.forEach((function(e){e===A.target?e.classList.add(n):e.classList.remove(n)}));var t=A.target.getAttribute("data-value"),i=A.target.getAttribute("data-index");r.speed=+t,null==r.options.onSpeedChange||r.options.onSpeedChange.call(r.options,+i)}},r._$speedContainer.onmouseup=r._onSwitchSpeed,r._isMobile&&(r._$speedContainer.ontouchend=r._onSwitchSpeed),r._$btnContainer.querySelector("."+a+"-btn-zoom-add")&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-add").onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","add","start")},r._$btnContainer.querySelector("."+a+"-btn-zoom-add").onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","add","stop")}),r._$btnContainer.querySelector("."+a+"-btn-zoom-sub")&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-sub").onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","sub","start")},r._$btnContainer.querySelector("."+a+"-btn-zoom-sub").onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","sub","stop")}),r._$btnContainer.querySelector("."+a+"-btn-focal-add")&&(r._$btnContainer.querySelector("."+a+"-btn-focal-add").onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","add","start")},r._$btnContainer.querySelector("."+a+"-btn-focal-add").onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","add","stop")}),r._$btnContainer.querySelector("."+a+"-btn-focal-sub")&&(r._$btnContainer.querySelector("."+a+"-btn-focal-sub").onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","sub","start")},r._$btnContainer.querySelector("."+a+"-btn-focal-sub").onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","sub","stop")}),r._isMobile&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-add")&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-add").ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","add","start")},r._$btnContainer.querySelector("."+a+"-btn-zoom-add").ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","add","stop")}),r._$btnContainer.querySelector("."+a+"-btn-zoom-sub")&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-sub").ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","sub","start")},r._$btnContainer.querySelector("."+a+"-btn-zoom-sub").ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","sub","stop")}),r._$btnContainer.querySelector("."+a+"-btn-focal-add")&&(r._$btnContainer.querySelector("."+a+"-btn-focal-add").ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","add","start")},r._$btnContainer.querySelector("."+a+"-btn-focal-add").ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","add","stop")}),r._$btnContainer.querySelector("."+a+"-btn-focal-sub")&&(r._$btnContainer.querySelector("."+a+"-btn-focal-sub").ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","sub","start")},r._$btnContainer.querySelector("."+a+"-btn-focal-sub").ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","sub","stop")})),r}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&E(A,e)}(t,A);var i=t.prototype;return i.destroy=function(){this._clearTimer&&(clearTimeout(this._clearTimer),this._clearTimer=null),this._$directionCircleContainer&&(this._$directionCircleContainer.remove(),this._$directionCircleContainer=null),this._$speedContainer&&(this._onSwitchSpeed=null,this._$speedContainer.remove(),this._$speedContainer=null),this._$btnContainer&&(this._$btnContainer.remove(),this._$btnContainer=null),this._$wrapper&&(this._$wrapper.remove(),this._$wrapper=null),A.prototype.destroy.call(this)},i._handlePtzTouch=function(A,e){var t,i,a,r,n,o=this;if(!this.options.accessToken&&!(null==(i=this.options.token)||null==(t=i.deviceToken)?void 0:t.video))throw new Error("Ptz accessToken or token.deviceToken.video is required");this._ptzQueue||(this._ptzQueue=Promise.resolve());var s=this._$directionCircleContainer.getBoundingClientRect(),g=s.left+(this._$directionCircleContainer.clientWidth+2)/2,l=s.top+(this._$directionCircleContainer.clientHeight+2)/2,C=A.x||A.changedTouches[0].clientX,I=A.y||A.changedTouches[0].clientY,c=0,B=(null==(a=this.options.env)?void 0:a.domain)+"/api/lapp/device/ptz/start",E=this.options.accessToken||(null==(n=this.options.token)||null==(r=n.deviceToken)?void 0:r.video),d=0;function Q(A,e){var t=Math.atan2(e,A);t<0&&(t+=2*Math.PI);var i=t*(180/Math.PI)-225-12.5;return i<0&&(i+=360),Math.floor(i/45)+1}var f,u=C-g,p=I-l;if(this.isRotate)switch(Q(u,p)){case 1:c=2,d=90;break;case 2:c=4,d=135;break;case 3:c=0,d=180;break;case 4:c=6,d=225;break;case 5:c=3,d=270;break;case 6:c=7,d=315;break;case 7:c=1,d=0;break;case 8:c=5,d=45}else switch(Q(u,p)){case 1:c=0,d=180;break;case 2:c=6,d=225;break;case 3:c=3,d=270;break;case 4:c=7,d=315;break;case 5:c=1,d=0;break;case 6:c=5,d=45;break;case 7:c=2,d=90;break;case 8:c=4,d=135}(this._clearTimer&&(clearTimeout(this._clearTimer),this._clearTimer=null),this._$directionCircleContainer.style.cssText="start"===e?"background-image:linear-gradient("+d+"deg, #4277FF 0%, rgba(100,143,252,0.00) 30%)":"","stop"===e)&&(B=(null==(f=this.options.env)?void 0:f.domain)+"/api/lapp/device/ptz/stop");var m=null==this.options.onDirection?void 0:this.options.onDirection.call(this.options,{areaId:Q(u,p),direction:c,backDeg:d,isRotate:this.isRotate,speed:this.speed,type:e}),_=new FormData;_.append("deviceSerial",this.options.deviceSerial+""),_.append("channelNo",this.options.channelNo+""),_.append("speed",this.speed+""),_.append("direction",c+""),_.append("accessToken",E),this._ptzQueue=this._ptzQueue.then((function(){return h((function(){var A;return x(this,(function(t){switch(t.label){case 0:return A=this,[4,fetch(B,{method:"POST",body:_}).then((function(A){return h((function(){return x(this,(function(e){switch(e.label){case 0:return[4,A.json()];case 1:return[2,e.sent()]}}))}))()})).then((function(e){var t;null==m||m(e);var i=e.code||(null==e||null==(t=e.result)?void 0:t.code);return[6e4,60001,60002,60003,60004,60005,60006,10002].includes(+i)&&(A._$directionCircleContainer.style.cssText="background-image:linear-gradient("+d+"deg, #f45656 0%, rgba(100,143,252,0.00) 30%)"),e})).catch((function(A){})).finally((function(){m=null,"stop"===e&&(A._clearTimer=setTimeout((function(){A._$directionCircleContainer.style.cssText=""}),1e3))}))];case 1:return[2,t.sent()]}}))})).call(o)})),"stop"===e&&(this._ptzQueue=this._ptzQueue.finally((function(){})))},i._handleBtnTouch=function(A,e,t){var i,a,r,n,o=this;if(!this.options.accessToken&&!(null==(i=this.options.token)?void 0:i.deviceToken.video))throw new Error("Ptz accessToken or token.deviceToken.video is required");this._ptzOperation||(this._ptzOperation=Promise.resolve());var s=8;s="zoom"===A?"add"===e?8:9:"add"===e?10:11;var g,l=(null==(a=this.options.env)?void 0:a.domain)+"/api/lapp/device/ptz/start",C=this.options.accessToken||(null==(n=this.options.token)||null==(r=n.deviceToken)?void 0:r.video);"stop"===t&&(l=(null==(g=this.options.env)?void 0:g.domain)+"/api/lapp/device/ptz/stop");var I=null==this.options.onDirection?void 0:this.options.onDirection.call(this.options,{btn:A,option:e,type:t}),c=new FormData;c.append("deviceSerial",this.options.deviceSerial+""),c.append("channelNo",this.options.channelNo+""),c.append("speed",this.speed+""),c.append("direction",s+""),c.append("accessToken",C),this._ptzOperation=this._ptzOperation.then((function(){return h((function(){return x(this,(function(A){switch(A.label){case 0:return[4,fetch(l,{method:"POST",body:c}).then((function(A){return h((function(){return x(this,(function(e){switch(e.label){case 0:return[4,A.json()];case 1:return[2,e.sent()]}}))}))()})).then((function(A){return null==I||I(A),A})).catch((function(A){})).finally((function(){I=null}))];case 1:return[2,A.sent()]}}))}))()})),"stop"===t&&(this._ptzOperation=this._ptzOperation.finally((function(){o._ptzOperation=null})))},B(t,[{key:"isRotate",get:function(){return this._isRotate},set:function(A){this._isRotate=A}}]),t}(s);return pt.BasePtz=s,pt.MobilePtz=I,pt.Ptz=d,pt}();function _t(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function yt(){return yt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},yt.apply(this,arguments)}function St(A,e){return St=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},St(A,e)}var Dt=function(A){function e(e){var t;return(t=A.call(this,yt({},e,{tagName:"span",controlType:"button",classNameSuffix:"ptz"}))||this)._isRotated=!1,t._options=e,t._render(),t._onDBlPanelClick=t._onDBlPanelClick.bind(t),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&St(A,e)}(e,A);var t=e.prototype;return t.destroy=function(){var e,t,i;this._ptzControl&&(this._ptzControl.destroy(),this._ptzControl=null),this._ptzControl1&&(this._ptzControl1.destroy(),this._ptzControl1=null),null==(e=this.$panel)||e.removeEventListener("dblclick",this._onDBlPanelClick),null==(i=this.$panel)||null==(t=i.remove)||t.call(i),A.prototype.destroy.call(this)},t._render=function(){var A;this.$container.innerHTML=FA({title:null==(A=this.locale)?void 0:A.BTN_PTZ}),this._renderPanel()},t._renderPanel=function(){this._options.rootContainer&&(this.$panel=document.createElement("div"),this.$panel.classList.add(f+"-ptz-panel",f+"-hide"),this._options.rootContainer.appendChild(this.$panel),this.$turntable=document.createElement("div"),this.$turntable.classList.add(f+"-ptz-turntable"),this.$panel.appendChild(this.$turntable),this._ptzControl=new mt.Ptz(this.$turntable,yt({},this._options,{onSpeedChange:this._onSpeedChange.bind(this),onDirection:this._onDirection.bind(this)})),this.$panel.addEventListener("dblclick",this._onDBlPanelClick))},t.renderMobileExtend=function(A){this._ptzControl1||(this._ptzControl1=new mt.MobilePtz(A,yt({},this._options,{onSpeedChange:this._onSpeedChange.bind(this),onDirection:this._onDirection.bind(this)})))},t.updateOptions=function(A){this._ptzControl&&this._ptzControl.updateOptions(A),this._ptzControl1&&this._ptzControl.updateOptions(A)},t._onSpeedChange=function(A){this.emit(b.control.ptzSpeedChange,A),null==this._options.onSpeedChange||this._options.onSpeedChange.call(this._options,A)},t._onDirection=function(A){var e=this;return function(t){var i,a=+(t.code||(null==t||null==(i=t.result)?void 0:i.code));"start"===A.type&&200!==a&&e.emit(b.control.ptzError,{code:a,localeKey:"zoom"===A.btn&&6e4===a?"NOT_SUPPORT_DEVICE_ZOOM":"focal"===A.btn&&60006===a?"NOT_SUPPORT_FOCUS":"38"+a,msg:t.msg})}},t._onControlClick=function(e){A.prototype._onControlClick.call(this,e),this.active=!this.active},t._onDBlPanelClick=function(A){A.stopPropagation(),A.preventDefault()},t.reset=function(A){this.active=!1},_t(e,[{key:"isRotated",get:function(){return this._isRotated},set:function(A){this._ptzControl.isRotate=A,this._isRotated=A}},{key:"active",get:function(){return this._active},set:function(A){this._disabled&&!this._active||(this._active=A,this._updateActiveState(A),this._active?this.$panel.classList.remove(f+"-hide"):this.$panel.classList.add(f+"-hide"))}}]),e}(k);function Rt(A,e){void 0===e&&(e="MM:SS");var t=Math.floor(A/3600),i=Math.floor(A%3600/60),a=A%60,r=function(A){return A.toString().padStart(2,"0")};return e.replace("HH",r(t)).replace("MM",r(i)).replace("SS",r(a))}function Ft(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function wt(){return wt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},wt.apply(this,arguments)}function bt(A,e){return bt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},bt(A,e)}var vt={maxDuration:3600},Pt=function(A){function e(e){var t;return(t=A.call(this,wt({},e,{tagName:"span",controlType:"button",classNameSuffix:"record"}))||this)._seconds=0,t._options=Object.assign({},vt,e),t._render(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&bt(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A;this.$container.innerHTML=wA({title:null==(A=this.locale)?void 0:A.BTN_RECORDVIDEO})},t._renderTimer=function(){var A,e,t=this;this._timerNode=document.createElement("span"),this._timerNode.className=f+"-record-timer",null==(e=this._options)||null==(A=e.rootContainer)||A.appendChild(this._timerNode),this._timerNode.innerHTML=bA()+'<span class="'+f+'-record-timer-time">'+Rt(this._seconds)+"<span>";var i=this._timerNode.querySelector("."+f+"-record-timer-time");this._timer=setInterval((function(){t._seconds++,t._seconds>=t._options.maxDuration?t._destroyTimer():i&&(i.innerHTML=""+Rt(t._seconds))}),1e3)},t.reset=function(){this.active&&(this.active=!1,A.prototype.reset.call(this))},t.destroy=function(){this._destroyTimer(),A.prototype.destroy.call(this)},t._destroyTimer=function(){this._seconds=0,this._timer&&(clearInterval(this._timer),this._timer=null),this._timerNode&&(this._timerNode.remove(),this._timerNode=null),this._active=!1},t._onControlClick=function(e){this.active=!this.active,A.prototype._onControlClick.call(this,e)},Ft(e,[{key:"active",get:function(){return this._active},set:function(A){this._disabled&&!this._active||this._active!==A&&(this._active=A,this._updateActiveState(A),this.active?this._renderTimer():this._destroyTimer(),this.emit(b.control.recordingChange,this._active))}}]),e}(k);function kt(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function Tt(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function Nt(){return Nt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Nt.apply(this,arguments)}function Mt(A,e){return Mt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Mt(A,e)}function Lt(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var Yt=function(A){function e(e){var t;return(t=A.call(this,Nt({},e,{tagName:"span",controlType:"button",classNameSuffix:"talk"}))||this)._value=0,t._options=e,t._render(),t.on(b.talkingChange,(function(A){t.active!==A&&(t.active=A,t._render())})),t.on(b.talkVolumeChange,(function(A){var e,i;t.value=A,null==(i=t._options)||null==(e=i.onChange)||e.call(i,A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Mt(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e;this.$container.innerHTML=this.active?PA({title:null==(A=this.locale)?void 0:A.BTN_TALK}):vA({title:null==(e=this.locale)?void 0:e.BTN_TALK})},t.reset=function(e){this.active&&(this._value=0,this.active=!1,this._render(),this.emit(b.control.talkingChange,!1),A.prototype.reset.call(this,e))},t.destroy=function(){this.active&&this.reset(),A.prototype.destroy.call(this)},t._onControlClick=function(e){var t,i=this;return(t=function(){return Lt(this,(function(t){return A.prototype._onControlClick.call(i,e),this.active=!this.active,this.emit(b.control.talkingChange,this.active),this._render(),[2]}))},function(){var A=this,e=arguments;return new Promise((function(i,a){var r=t.apply(A,e);function n(A){kt(r,i,a,n,o,"next",A)}function o(A){kt(r,i,a,n,o,"throw",A)}n(void 0)}))}).call(this)},Tt(e,[{key:"value",get:function(){return this._value},set:function(A){if(this.active&&!(A<0||A>1)){this._value=A;var e="silent";A>0&&A<.25?e="low":A>=.25&&A<.5?e="normal":A>=.5&&A<.75?e="high":A>=.75&&(e="deafening");var t=Array.from(this.$container.classList).find((function(A){return A.startsWith(f+"-talk-gain-")}));t&&this.$container.classList.remove(t),this.$container.classList.add(f+"-talk-gain-"+e)}}}]),e}(k);function Gt(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function Ut(){return Ut=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Ut.apply(this,arguments)}function Jt(A,e){return Jt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Jt(A,e)}var Ht={fieldNames:{label:"label",value:"value"},renderLabel:function(A){return"<span>"+(A||"")+"</span>"},onChange:function(){},onOpenChange:function(){}},Ot=function(A){function e(e){var t,i,a,r;(t=A.call(this,Ut({tagName:"span",type:"button",controlType:"button"},Ht,e))||this)._options=g(Ht,e,{clone:!1}),t.list=e.list||[],void 0===e.value&&null===e.value||(t._value=e.value+"");var n=null!=(r=null==(i=t._options.fieldNames)?void 0:i.value)?r:"value";return t._picker=new o(t.$container,{getPopupContainer:function(){return oe.isMobile?e.rootContainer:t.$container},trigger:oe.isMobile?"click":"hover",isMobile:oe.isMobile,wrapClassName:f+"-select-picker "+f+"-select-"+e.classNameSuffix,open:t._options.open,offset:[0,-10],placement:"top",onOpenChange:function(A){var e=t.list.find((function(A){return A[n]+""===t.value}));null==t._options.onOpenChange||t._options.onOpenChange.call(t._options,A,t.value,e)}}),t.list&&t.updateOptions(t.list),t._onSelectChange(),t._activeOption(),t._onDBlPanelClick=t._onDBlPanelClick.bind(t),null==(a=t._picker.$body)||a.addEventListener("dblclick",t._onDBlPanelClick),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Jt(A,e)}(e,A);var t=e.prototype;return t.updateOptions=function(A){var e=this;if(void 0===A&&(A=[]),(null==A?void 0:A.length)>0&&this._picker){var t,i,a,r,n,o,s=null!=(n=null==(t=this._options.fieldNames)?void 0:t.label)?n:"label",g=null!=(o=null==(i=this._options.fieldNames)?void 0:i.value)?o:"value";null==(r=this._picker)||r.innerHTML('<div class="'+f+'-select-panel">\n <ul class="'+f+'-select-list">\n '+A.map((function(A){return'\n <li class="'+f+"-select-option "+(+A[g]===e.value?f+"-active":"")+'" data-value="'+A[g]+'">\n <span>'+A[s]+"</span>\n </li>\n "})).join("")+"\n </ul>\n "+(oe.isMobile?'<div class="'+f+'-select-cancel">\n <span>'+((null==(a=this.locale)?void 0:a.cancel)||"取消")+"</span>\n </div>":"")+"\n "+(oe.isMobile?'<span class="'+f+'-select-close">'+JA()+"</span>":"")+"\n <div>"),this.list=A,this._activeOption()}else if(0===(null==A?void 0:A.length)){var l,C;null==(C=this._picker)||null==(l=C.innerHTML)||l.call(C,"")}},t._render=function(A){var e;if(0!==this.list.length){var t,i=null!=(t=null==(e=this._options.fieldNames)?void 0:e.label)?t:"label";if(this.$container.querySelector("."+f+"-select-btn"))this.$container.querySelector("."+f+"-select-btn").innerHTML=null==this._options.renderLabel?void 0:this._options.renderLabel.call(this._options,null==A?void 0:A[i],A,this.list);else{var a=document.createElement("span");a.classList.add(f+"-btn",f+"-select-btn"),a.innerHTML=null==this._options.renderLabel?void 0:this._options.renderLabel.call(this._options,null==A?void 0:A[i],A,this.list),this.$container.appendChild(a),this._options.title&&a.setAttribute("title",this._options.title)}}},t._activeOption=function(){var A=this;if(this._picker){var e,t,i,a,r=null!=(a=null==(e=this._options.fieldNames)?void 0:e.value)?a:"value",n=null==(t=this._picker.$body)?void 0:t.querySelector("."+f+"-active");null==n||n.classList.remove(f+"-active");var o=null==(i=this._picker.$body)?void 0:i.querySelector("."+f+'-select-option[data-value="'+this.value+'"]');null==o||o.classList.add(f+"-active");var s=this.list.find((function(e){return e[r]+""===A.value}));this._render(s)}},t._onSelectChange=function(){var A=this;if(this._picker){var e,t,i=null!=(t=null==(e=this._options.fieldNames)?void 0:e.value)?t:"value";this._delegationOption=s(this._picker.$body,"."+f+"-select-option","click",(function(e){var t=e.delegateTarget;if(e.stopPropagation(),!t.classList.contains(f+"-disabled")){var a=t.getAttribute("data-value");if(A.value!==a){A.value=a;var r=A.list.find((function(e){return e[i]+""===A.value}));null==A._options.onChange||A._options.onChange.call(A._options,A.value,r),A._picker.open=!1}}})),this._delegationClose=s(this._picker.$body,"."+f+"-select-close","click",(function(e){e.stopPropagation(),A._picker.open=!1})),this._delegationCancel=s(this._picker.$body,"."+f+"-select-cancel","click",(function(e){e.stopPropagation(),A._picker.open=!1}))}},t.destroy=function(){var e,t,i,a,r,n,o,s;(null==(t=this._delegationOption)||null==(e=t.destroy)||e.call(t),this._delegationOption=null,null==(a=this._delegationClose)||null==(i=a.destroy)||i.call(a),this._delegationClose=null,null==(n=this._delegationCancel)||null==(r=n.destroy)||r.call(n),this._delegationCancel=null,this._picker)&&(null==(o=this._picker.$body)||o.removeEventListener("dblclick",this._onDBlPanelClick),null==(s=this._picker)||s.destroy(),this._picker=null);A.prototype.destroy.call(this)},t._onDBlPanelClick=function(A){A.stopPropagation(),A.preventDefault()},t._onControlClick=function(A){null==this._options.onClick||this._options.onClick.call(this._options,A)},Gt(e,[{key:"value",get:function(){return this._value},set:function(A){this.value!==A&&(this._value=A,this._activeOption())}},{key:"disabled",get:function(){return this._disabled},set:function(A){this._disabled=A,this._picker.disabled=A,this._updateDisabledState(A)}}]),e}(k);function Kt(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function Vt(){return Vt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Vt.apply(this,arguments)}function Wt(A,e){return Wt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Wt(A,e)}var Zt=["VIDEO_LEVEL_FLUENT","VIDEO_LEVEL_STANDARD","VIDEO_LEVEL_HEIGH","VIDEO_LEVEL_SUPER","VIDEO_LEVEL_EXTREME","VIDEO_LEVEL_3K","VIDEO_LEVEL_4k"],Xt={value:1,list:[]};function qt(A,e){return void 0===e&&(e={}),A.map((function(A){var t=+A.level,i=A.name;return i||(i=null==e?void 0:e[Zt[t]]),"VIDEO_LEVEL_AUTO"===i?i=null==e?void 0:e[i]:Zt.includes(i)&&(i=null==e?void 0:e[Zt[t]]),{name:i,level:A.level+"",streamTypeIn:A.streamTypeIn,type:A.type}}))}var jt=function(A){function e(e){var t,i,a,r;return void 0===e&&(e={}),t=A.call(this,Vt({},Xt,{value:null==(i=e.props)?void 0:i.videoLevel},e,{fieldNames:{label:"name",value:"level"},list:qt((null==e?void 0:e.list)||(null==(a=e.props)?void 0:a.videoLevelList)||[],(null==e?void 0:e.locales[e.language])||{}),title:null==e||null==(r=e.locales[e.language])?void 0:r.BTN_HD,controlType:"button",classNameSuffix:"definition",renderLabel:function(A,i,a){var r;if("auto"===(null==i?void 0:i.level)){var n,o=a.find((function(A){return A.level===Kt(t)._level}));return"<span>"+(null==e||null==(n=e.locales[e.language])?void 0:n.VIDEO_LEVEL_AUTO)+"("+((null==o?void 0:o.name)||"")+")</span>"}return"<span>"+(A||(null==(r=a[0])?void 0:r.name)||"")+"</span>"},onChange:function(A,i){var a;null==e||null==(a=e.onChange)||a.call(e,A,i),"auto"===A?Kt(t).emit(b.control.definitionChange,"auto",Kt(t)._level):(Kt(t)._level=A,Kt(t).emit(b.control.definitionChange,A,i))},onOpenChange:function(A,i,a){var r;null==e||null==(r=e.onOpenChange)||r.call(e,A,i,a),Kt(t).emit(b.control.definitionPanelOpenChange,A,i,a)}}))||this,t._level="",t.options=e||{},t.on(b.setVideoLevelList,(function(e){A.prototype.updateOptions.call(Kt(t),qt(e,t.locale))})),t.on(b.currentVideoLevel,(function(A,i){var a,r="object"==(void 0===A?"undefined":(a=A)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)?A.level:A;if(t._level=i+"","auto"===r){var n,o=t.list.find((function(A){return A.level===t._level}));t.$container.querySelector("."+f+"-select-btn").innerHTML="\n <span>"+(null==e||null==(n=e.locales[e.language])?void 0:n.VIDEO_LEVEL_AUTO)+"("+((null==o?void 0:o.name)||"")+")</span>\n "}else t.value!==t._level+""&&(t.value=t._level+"")})),t}return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Wt(A,e)}(e,A),e.prototype.reset=function(e){A.prototype.reset.call(this,e)},e}(Ot);function zt(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function $t(){return $t=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},$t.apply(this,arguments)}function Ai(A,e){return Ai=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Ai(A,e)}var ei={list:[.5,1,2,4,8,16].reverse().map((function(A){return{label:A+"x",value:A}}))},ti=function(A){function e(e){var t,i,a;return(t=A.call(this,$t({},ei,e,{value:(e.props.speed||1)+"",classNameSuffix:"speed",controlType:"button",title:null==e||null==(a=e.locales)||null==(i=a[e.language])?void 0:i.BTN_SPEED,onChange:function(A,i){var a;A=+A,null==e||null==(a=e.onChange)||a.call(e,A,i),zt(t).emit(b.control.speedChange,A,i)},onOpenChange:function(A,i,a){var r;i=+i,null==e||null==(r=e.onOpenChange)||r.call(e,A,i,a),zt(t).emit(b.control.speedPanelOpenChange,A,i,a)}}))||this)._filterSpeedList(e.list,e.props.recType),t.on(b.speedChange,(function(A){t.value!==A+""&&(t.value=A+"")})),t.on(b.control.recTypeChange,(function(A){t._filterSpeedList(e.list,A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Ai(A,e)}(e,A);var t=e.prototype;return t._filterSpeedList=function(A,e){if(!A)if("rec"===e){var t=this.list.filter((function(A){return(null==A?void 0:A.value)&&+A.value<8}));this.updateOptions(t)}else this.updateOptions(ei.list)},t.reset=function(e){this.value="1",A.prototype.reset.call(this,e)},e}(Ot);function ii(){return ii=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},ii.apply(this,arguments)}function ai(A,e){return ai=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},ai(A,e)}var ri=function(A){function e(e){var t,i,a,r;return(t=A.call(this,ii({maxDate:new Date},e,{tagName:"span",controlType:"button",classNameSuffix:"date"}))||this).options=e,t._value=l.DateTime.format((null==(r=t.options.props)||null==(a=r.urlInfo)||null==(i=a.searchParams)?void 0:i.begin)||new Date,"YYYY-MM-DD"),t._render(),t.on(b.control.dateMonthChange,(function(A){var e,i;null==(i=t.datePicker)||null==(e=i.updateBadges)||e.call(i,A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&ai(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e,t,i=this,a=l.isMobile();a?this.$container.innerHTML='\n <span class="'+f+'-mobile-date-filter" title="'+((null==(e=this.locale)?void 0:e.BTN_CALENDAR)||"")+'">\n <span class="'+f+'-mobile-date-filter-value">'+this._getDateStr()+"</span>\n "+WA()+"\n <span>":this.$container.innerHTML=VA({title:null==(t=this.locale)?void 0:t.BTN_CALENDAR});this.datePicker=new x.DatePicker(this.$container,{isMobile:a,getPopupContainer:function(){return i.$container},mode:"date",offset:[0,-10],badges:(null==(A=this.options.props)?void 0:A.recMonth)||[],language:"zh"===this.options.language?"zh":"en",current:l.DateTime.toDate(this._value),placement:"tr",triggerClose:!0,disabledDate:function(A){return A.getTime()>(i.options.maxDate||new Date).getTime()},onOk:function(A,e){A&&i._value!==l.DateTime.format(A,"YYYY-MM-DD")&&a&&(i._value=l.DateTime.format(A,"YYYY-MM-DD"),null==i.options.onOk||i.options.onOk.call(i.options,A),i.emit(b.control.dateChange,A),A&&i.$container.querySelector("."+f+"-mobile-date-filter-value")&&(i.$container.querySelector("."+f+"-mobile-date-filter-value").innerHTML=i._getDateStr()))},onChange:function(A,e){A&&i._value!==l.DateTime.format(A,"YYYY-MM-DD")&&!a&&"date"===e&&(i._value=l.DateTime.format(A,"YYYY-MM-DD"),null==i.options.onChange||i.options.onChange.call(i.options,A),i.emit(b.control.dateChange,A))},onOpenChange:function(A){null==i.options.onPanelChange||i.options.onPanelChange.call(i.options,A,i.datePicker.current),i.emit(b.control.datePanelOpenChange,A,i.datePicker.current)}})},t.setDate=function(A,e){var t;void 0===e&&(e=!0),null==(t=this.datePicker)||t.setCurrent(A,e),A&&!e&&this._value!==l.DateTime.format(A,"YYYY-MM-DD")&&(this._value=l.DateTime.format(A,"YYYY-MM-DD"),A&&this.$container.querySelector("."+f+"-mobile-date-filter-value")&&(this.$container.querySelector("."+f+"-mobile-date-filter-value").innerHTML=this._getDateStr()))},t.reset=function(){this.datePicker&&(this.datePicker.open=!1),A.prototype.reset.call(this)},t.destroy=function(){this.datePicker&&(this.datePicker.destroy(),this.datePicker=null),A.prototype.destroy.call(this)},t._getDateStr=function(){var A=this._value.split("-");return A[1]+"."+A[2]},t._onControlClick=function(e){A.prototype._onControlClick.call(this,e)},e}(k);function ni(){return ni=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},ni.apply(this,arguments)}function oi(A,e){return oi=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},oi(A,e)}var si=function(A){function e(e){var t,i,a;return(t=A.call(this,ni({},e,{tagName:"div",controlType:"block",classNameSuffix:"time-line"}))||this)._$add=null,t._$reduce=null,t._currentTime=0,t.records=[],t._currentTime=0,t._options=e,t.records=(null==(a=t._options)||null==(i=a.props)?void 0:i.recordList)||[],t._render(),t.on(b.setAllDayRecTimes,(function(A){var e,i;t.records=A,null==(i=t.timeLineUtil)||null==(e=i.updateTimeSections)||e.call(i,A)})),t.on(b.getOSDTime,(function(A){if(A){var e,i,a=new Date(1e3*A);t._currentTime=a.getTime(),null==(i=t.timeLineUtil)||null==(e=i.update)||e.call(i,a)}})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&oi(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e,t,i,a=this,r={language:this._options.language||"zh",coverQuery:this._options.coverQuery||"",showTimeWidthBtn:null==(t=this._options.showTimeWidthBtn)||t,showCoverFold:null==(i=this._options.showCoverFold)||i,onChange:function(A){a._currentTime!==(null==A?void 0:A.getTime())&&(null==a._options.onChange||a._options.onChange.call(a._options,A),a.emit(b.control.timeLineChange,A))},onPickerOpenChange:function(A){a.emit(b.control.timeLinePanelOpenChange,A)},onPickerSelect:function(A){var e=null;try{e=10===(A.startTime+"").length?new Date(1e3*A.startTime):(A.startTime,new Date(A.startTime)),null==a._options.onChange||a._options.onChange.call(a._options,e),a.emit(b.control.timeLineChange,e)}catch(A){}}};l.isMobile()?this.timeLineUtil=new d.MobileTimeLine(this.$container,r):(this.timeLineUtil=new d.TimeLine(this.$container,r),this._renderAddReduce()),null==(e=this.timeLineUtil)||null==(A=e.updateTimeSections)||A.call(e,this.records),this.timeLineUtil.update(new Date)},t.setWidth=function(A){l.isMobile()||this.timeLineUtil.resize(A)},t._renderAddReduce=function(){var A=this;this._$add=document.createElement("span"),this._$add.classList.add(f+"-time-line-scale-add"),this._$add.innerHTML=ZA(),this._$add.addEventListener("click",(function(){if(A.timeLineUtil){var e=Math.floor(A.timeLineUtil.timeWidth);A.timeLineUtil.setTimeWidth(e+1)}})),this._$reduce=document.createElement("span"),this._$reduce.classList.add(f+"-time-line-scale-sub"),this._$reduce.innerHTML=XA(),this._$reduce.addEventListener("click",(function(){if(A.timeLineUtil){var e=Math.floor(A.timeLineUtil.timeWidth);A.timeLineUtil.setTimeWidth(e-1)}})),this.$container.appendChild(this._$add),this.$container.appendChild(this._$reduce)},t.destroy=function(){this._$add&&(this._$add.remove(),this._$add=null),this._$reduce&&(this._$reduce.remove(),this._$reduce=null),this.timeLineUtil&&(this.timeLineUtil.destroy(),this.timeLineUtil=null),A.prototype.destroy.call(this)},t._onControlClick=function(A){null==this._options.onClick||this._options.onClick.call(this._options,A)},e}(k);function gi(){return gi=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},gi.apply(this,arguments)}function li(A,e){return li=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},li(A,e)}var Ci=function(A){function e(e){var t;return(t=A.call(this,gi({},e,{tagName:"span",controlType:"text",classNameSuffix:"device"}))||this)._render(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&li(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e;this.$container.innerHTML='<span class="'+f+"-text "+f+'-text-device">'+this._splicingString(this.__options.deviceName,null==(e=this.__options.props)||null==(A=e.urlInfo)?void 0:A.deviceSerial)+"</span>"},t.update=function(A,e){if(this.$container.querySelector("."+f+"-text-device")){var t=this.$container.querySelector("."+f+"-text-device"),i=this._splicingString(A,e);null==t||t.setAttribute("title",i),t.innerHTML=i}},t._splicingString=function(A,e){return(A||"")+(e?A?"("+e+")":""+e:"")},e}(k),Ii={play:ie,volume:Be,device:Ci,capturePicture:ut,ptz:Dt,record:Pt,talk:Yt,zoom:Ve,definition:jt,fullscreen:_e,globalFullscreen:xt,rec:De,speed:ti,date:ri,timeLine:si};function ci(A,e){return ci=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},ci(A,e)}var hi=function(A){function e(e,t){var i;return void 0===t&&(t={hasDatePicker:!0}),(i=A.call(this)||this).options=t,i.$container=e,i.$popupContainer=document.createElement("div"),i.$popupContainer.classList.add(f+"-rec-footer"),i.options.hasDatePicker&&i.$popupContainer.classList.add(f+"-rec-footer-has-date-picker"),i.$container.appendChild(i.$popupContainer),i.$timeLineContainer=document.createElement("div"),i.$timeLineContainer.classList.add(f+"-rec-footer-time-line"),i.options.hasDatePicker&&(i.$popupContainer.appendChild(i.$timeLineContainer),i.$datePickerContainer=document.createElement("div"),i.$datePickerContainer.classList.add(f+"-rec-footer-date-picker"),i.$popupContainer.appendChild(i.$datePickerContainer)),i.$popupContainer.addEventListener("dblclick",(function(A){A.preventDefault(),A.stopPropagation()})),i}return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&ci(A,e)}(e,A),e.prototype.destroy=function(){var A,e,t,i;(this.$datePickerContainer&&(this.$datePickerContainer.remove(),this.$datePickerContainer=null),this.$timeLineContainer)&&(null==(e=this.$timeLineContainer)||null==(A=e.remove)||A.call(e),this.$timeLineContainer=null);this.$popupContainer&&(null==(i=this.$popupContainer)||null==(t=i.remove)||t.call(i),this.$popupContainer=null);this.emit(b.theme.recFooterDestroy)},e}(i);function Bi(A,e){return Bi=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Bi(A,e)}var Ei=function(A){function e(e){var t;return(t=A.call(this)||this)._$siblingContainer=e,t.render(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Bi(A,e)}(e,A);var t=e.prototype;return t.render=function(){this.$container||(this.$container=document.createElement("div"),this.$container.classList.add(f+"-mobile-extend"),null==this._$siblingContainer.insertAdjacentElement||this._$siblingContainer.insertAdjacentElement.call(this._$siblingContainer,"afterend",this.$container),this.$controlPanel=document.createElement("div"),this.$controlPanel.classList.add(f+"-mobile-extend-control-panel"),this.$container.appendChild(this.$controlPanel),this.$content=document.createElement("div"),this.$content.classList.add(f+"-mobile-extend-control-content"),this.$controlPanel.appendChild(this.$content),this.$top=document.createElement("div"),this.$top.classList.add(f+"-mobile-extend-control-top"),this.$content.appendChild(this.$top),this.$topLeft=document.createElement("div"),this.$topLeft.classList.add(f+"-mobile-extend-control-top-left"),this.$top.appendChild(this.$topLeft),this.$topRight=document.createElement("div"),this.$topRight.classList.add(f+"-mobile-extend-control-top-right"),this.$top.appendChild(this.$topRight))},t.destroy=function(){var A;null==(A=this.$container)||A.remove(),this.emit(b.theme.mobileExtendDestroy)},e}(i);function xi(){return xi=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},xi.apply(this,arguments)}function di(A,e){return di=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},di(A,e)}var Qi={},fi=function(A){function e(e){var t;return void 0===e&&(e={}),(t=A.call(this,Object.assign({},Qi,xi({},e,{tagName:"div",controlType:"block",classNameSuffix:"pause"})))||this)._timer=null,t._timer2=null,t._timer3=null,t._firstFlag=!1,t._options=Object.assign({},Qi,e),t.$container.classList.add(f+"-pause",f+"-hide"),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&di(A,e)}(e,A);var t=e.prototype;return t.show=function(A,e){var t,i,a=this;this.$container&&(this._firstFlag?this.$container.style.cssText+="pointer-events: none;":this._firstFlag=!0,this.$container.innerHTML=A?'<div class="'+f+'-pause-circle">'+fA()+"</div>":'<div class="'+f+'-pause-circle">'+uA()+"</div>",this._timer&&(clearTimeout(this._timer),this._timer=null),this._timer2&&(clearTimeout(this._timer2),this._timer2=null),null==(i=this.$container)||null==(t=i.classList)||t.remove(f+"-hide"),this._timer=setTimeout((function(){var A,t;a._timer&&(clearTimeout(a._timer),a._timer=null),e||(null==(t=a.$container)||null==(A=t.classList)||A.add(f+"-pause-transform"),a._timer2=setTimeout((function(){var A,e,t,i;a._timer2&&(clearTimeout(a._timer2),a._timer2=null),null==(e=a.$container)||null==(A=e.classList)||A.add(f+"-hide"),null==(i=a.$container)||null==(t=i.classList)||t.remove(f+"-pause-transform")}),300))}),10))},t.destroy=function(){this._timer&&(clearTimeout(this._timer),this._timer=null),this._timer2&&(clearTimeout(this._timer2),this._timer2=null),this._timer3&&(clearTimeout(this._timer3),this._timer3=null),this.hide(),A.prototype.destroy.call(this)},t._onControlClick=function(A){var e=this;if(A.stopPropagation(),A.preventDefault(),this._firstFlag){if(this._timer3)return clearTimeout(this._timer3),void(this._timer3=null);this._timer3=setTimeout((function(){e._timer3&&(clearTimeout(e._timer3),e._timer3=null),e.emit(b.control.play,!0,"pause")}),250)}},e}(k),ui=function(A){if(A.controls){var e=Object.keys(A.controls).length>0||A._header||A._footer;if(A._interactiveResult&&(null==A._interactiveResult.cleanup||A._interactiveResult.cleanup.call(A._interactiveResult),A._interactiveResult=null),e&&A.emit(b.control.beforeUnmountControls),Object.keys(A.controls).length>0){for(var t in A.controls){var i,a;null==(i=(a=A.controls[t]).destroy)||i.call(a)}A.controls=null}A._pauseControl&&(null==A._pauseControl.destroy||A._pauseControl.destroy.call(A._pauseControl)),A._loadingControl&&(null==A._loadingControl.destroy||A._loadingControl.destroy.call(A._loadingControl)),A.messageControl&&(null==A.messageControl.destroy||A.messageControl.destroy.call(A.messageControl)),A.posterControl&&(null==A.posterControl.destroy||A.posterControl.destroy.call(A.posterControl)),A._headerMoreControl&&(null==A._headerMoreControl.destroy||A._headerMoreControl.destroy.call(A._headerMoreControl),A._headerMoreControl=null),A._footerMoreControl&&(null==A._footerMoreControl.destroy||A._footerMoreControl.destroy.call(A._footerMoreControl),A._footerMoreControl=null),A._recFooter&&(A._recFooter.destroy(),A._recFooter=null),A._mobileExtend&&(A._mobileExtend.destroy(),A._mobileExtend=null),A._header&&(A._header.destroy(),A._header=null),A._footer&&(A._footer.destroy(),A._footer=null),A._onPauseTimingFunc&&(A._onPauseTimingFunc=null),e&&A.emit(b.control.unmountedControls)}};function pi(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=A[t];return i}function mi(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function _i(){return _i=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},_i.apply(this,arguments)}function yi(A,e){var t="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(t)return(t=t.call(A)).next.bind(t);if(Array.isArray(A)||(t=function(A,e){if(A){if("string"==typeof A)return pi(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?pi(A,e):void 0}}(A))||e){t&&(A=t);var i=0;return function(){return i>=A.length?{done:!0}:{done:!1,value:A[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.")}function Si(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var Di=["ptz"];function Ri(A,e,t,i){if(void 0===i&&(i={}),A.$container)for(var a,r=yi(t);!(a=r()).done;){var n,o,s,g,l,C,I=a.value;if(!(((null==(n=A.options.mobileExtendOptions)?void 0:n.controls)||[]).includes(I.iconId)&&"ptz"!==I.iconId||(null==(s=A.options.mobileExtendOptions)||null==(o=s.controls)?void 0:o.includes("rec"))&&R.includes(I.iconId))||!oe.isMobile)if(R.includes(I.iconId)&&A._header)vi(A,A._header.$right,I.iconId,i);else if(F.includes(I.iconId))null!==A.options.deviceOptions&&((null==(g=A.controls)?void 0:g.deviceControl)||(A.controls.deviceControl=new Ii.device(_i({rootContainer:A.$container,getPopupContainer:function(){return e},recType:A.recType,language:A.options.language,locales:A.i18n.translations,type:A.options.type,deviceSerial:A.urlInfo.deviceSerial,channelNo:A.urlInfo.channelNo},(null==(l=A.options)?void 0:l.deviceOptions)||{},{props:i}))));else if(Ii[I.iconId]){if(null!==A.options[I.iconId+"Options"])A.controls[I.iconId+"Control"]=new Ii[I.iconId](_i({rootContainer:A.$container,getPopupContainer:function(){return e},language:A.options.language||"zh",locales:A.i18n.translations},Di.includes(I.iconId)?{env:A.options.env,accessToken:A.options.accessToken,token:A.options.token,deviceSerial:A.urlInfo.deviceSerial,channelNo:A.urlInfo.channelNo}:{},{PLAY_TYPE:A.options.type},(null==(C=A.options)?void 0:C[I.iconId+"Options"])||{},{props:i}))}else A.logger.warn("["+I.iconId+"] control does not exist")}}function Fi(A,e){return(t=function(){var t,i,a,r,n,o,s,g,l,C,I,c,h,B,E,x,d,Q,u,p,m,_,S,w,v,P,k,T;return Si(this,(function(N){switch(N.label){case 0:return[4,nt(A,e)];case 1:return o=N.sent(),ui(A),"[object Object]"!==Object.prototype.toString.call(o)||(null!==A.options.loadingOptions&&(A._loadingControl=new L(_i({language:A.options.language,locales:A.i18n.translations},A.options.loadingOptions||{},{getPopupContainer:function(){return A.$container}}))),null!==A.options.pauseOptions&&(A._pauseControl=new fi(_i({language:A.options.language,locales:A.i18n.translations},A.options.pauseOptions||{},{getPopupContainer:function(){return A.contentControl.$wrapper}})),A.options.autoPlay||A._pauseControl.show(!1,!0)),null!==A.options.messageOptions&&(A.messageControl=new $A(_i({rootContainer:A.$container},A.options.messageOptions||{},{getPopupContainer:function(){return A.contentControl.$wrapper}}))),null!==A.options.posterOptions&&(A.posterControl=new J(_i({},A.options.posterOptions||{},{getPopupContainer:function(){return A.contentControl.$video}}))),A.controls={},A.emit(b.control.beforeMountControls),s=function(A){var e,t,i,a={};a.autoFocus=null!=(i=null==A?void 0:A.autoFocus)?i:3,a.poster=(null==A?void 0:A.poster)||"";var r,n,o,s,g,l,C=[],I=[],c=((null==A||null==(e=A.header)?void 0:e.btnList)||[]).filter((function(A){return 1===A.isrender&&["deviceID","deviceName"].includes(A.iconId)?(C.push(A),!1):1===A.isrender&&R.includes(A.iconId)?(I.push(I[0]?tt({},A,{part:I[0].part}):A),!1):1===A.isrender})).map((function(A){return at[A.iconId]&&(A.iconId=at[A.iconId]),A})),h=((null==A||null==(t=A.footer)?void 0:t.btnList)||[]).filter((function(A){return 1===A.isrender&&F.includes(A.iconId)?(C.push(A),!1):1===A.isrender&&R.includes(A.iconId)?(I.push(I[0]?tt({},A,{part:I[0].part}):A),!1):1===A.isrender})).map((function(A){return at[A.iconId]&&(A.iconId=at[A.iconId]),A}));return c.length>0||C.length>0||I.length>0?(a.header={},a.header.color=null==A||null==(r=A.header)?void 0:r.color,a.header.backgroundColor=null==A||null==(n=A.header)?void 0:n.backgroundColor,a.header.activeColor=null==A||null==(o=A.header)?void 0:o.activeColor,a.header.btnList=[].concat(C||[],I||[],c||[])):a.header=void 0,h.length>0?(a.footer={},a.footer.color=null==A||null==(s=A.footer)?void 0:s.color,a.footer.backgroundColor=null==A||null==(g=A.footer)?void 0:g.backgroundColor,a.footer.activeColor=null==A||null==(l=A.footer)?void 0:l.activeColor,a.footer.btnList=h):a.footer=void 0,a}(o),A._themeData=s,s.poster&&A.setPoster(s.poster),A._playing||null==(t=A.posterControl)||t.show(),0===(g=y.reduce((function(e,t){return e[t]=A[t],e}),{})).width&&(g.width=Math.floor(A.$container.clientWidth)),0===g.height&&(g.height=Math.floor(A.$container.clientHeight)),s.header&&(A._header=new ht({getPopupContainer:function(){return A.$container},color:s.header.color,activeColor:s.header.activeColor,backgroundColor:s.header.backgroundColor}),l=rt(s.header.btnList||[]),C=l[0],I=l[1],Ri(A,A._header.$left,C,g),Ri(A,A._header.$right,I,g)),s.footer&&(A._footer=new Ct({getPopupContainer:function(){return A.$container},color:s.footer.color,activeColor:s.footer.activeColor,backgroundColor:s.footer.backgroundColor}),(A._header||A._footer)&&0!==(null==s?void 0:s.autoFocus)&&(A._interactiveResult=function(A,e,t){void 0===e&&(e=3e3);var i=null,a=!1,r=!1,n=A.querySelector("."+f+"-header"),o=A.querySelector("."+f+"-footer"),s=function(){i&&(clearTimeout(i),i=null)},g=function(){null==s||s(),null==n||n.classList.remove(f+"-hide-transition"),null==o||o.classList.remove(f+"-hide-transition"),a||t(!0),a=!0},l=function(){r||(null==s||s(),A.classList.contains(f+"-player-pause")||(null==n||n.classList.add(f+"-hide-transition"),null==o||o.classList.add(f+"-hide-transition"),a&&t(!1),a=!1))},C=function(){null==g||g(),i=setTimeout((function(){null==s||s(),null==l||l()}),e)},I=function(A){var e;null==A||null==(e=A.stopPropagation)||e.call(A),null==s||s()},c=function(){a?null==l||l():null==C||C()},h=function(A){var e;null==A||null==(e=A.stopPropagation)||e.call(A),null==C||C()};if(C(),oe.isMobile&&c){var B="click";A.addEventListener(B,c),o&&o.addEventListener(B,h),n&&n.addEventListener(B,h)}else{var E,x,d,Q,u=window.PointerEvent?"pointerdown":"click";A.addEventListener(u,C),A.addEventListener("mousemove",C),A.addEventListener("mouseleave",l),o&&(null==o||null==(E=o.addEventListener)||E.call(o,u,I),null==o||null==(x=o.addEventListener)||x.call(o,"mousemove",I)),n&&(null==n||null==(d=n.addEventListener)||d.call(n,u,I),null==n||null==(Q=n.addEventListener)||Q.call(n,"mousemove",I))}return{cleanup:function(){if(A){if(oe.isMobile&&c){var e="click";A.removeEventListener(e,c),o&&C&&o.removeEventListener(e,h),n&&C&&n.removeEventListener(e,h)}if(C){var t,i,a,B,E=window.PointerEvent?"pointerdown":"click";A.removeEventListener(E,C),A.removeEventListener("mousemove",C),A.removeEventListener("mouseleave",l),o&&s&&(null==o||null==(t=o.removeEventListener)||t.call(o,E,I),null==o||null==(i=o.removeEventListener)||i.call(o,"mousemove",I)),n&&s&&(null==n||null==(a=n.removeEventListener)||a.call(n,E,I),null==n||null==(B=n.removeEventListener)||B.call(n,"mousemove",I))}l&&A.removeEventListener("mouseleave",l),c=null,C=null,l=null,g=null,h=null,I=null,null==s||s(),s=null,r=!1}},clearTimeout:function(){null==s||s(),r=!0},setTimeoutShow:function(){null==C||C(),r=!1},hide:l}}(A.$container,1e3*((null==o?void 0:o.autoFocus)||3),(function(e){A.emit(b.control.controlsBarOpenChange,e)})),A._onPauseTimingFunc&&(A.removeListener(D,A._onPauseTimingFunc),A._onPauseTimingFunc=null),A._onPauseTimingFunc=function(e){var t,i,a,r;e?null==(i=A._interactiveResult)||null==(t=i.clearTimeout)||t.call(i):A._playing&&(null==(r=A._interactiveResult)||null==(a=r.setTimeoutShow)||a.call(r))},A.on(D,A._onPauseTimingFunc),A._onPauseTimingFunc(!A._playing)),(null==(c=A.controls)?void 0:c.volumeControl)&&(A.controls.volumeControl.disabled=!0),(null==(h=A.controls)?void 0:h.globalFullscreenControl)&&!A.playing&&(A.controls.globalFullscreenControl.disabled=!0),B=rt(s.footer.btnList||[]),E=B[0],x=B[1],Ri(A,A._footer.$left,E,g),Ri(A,A._footer.$right,x,g)),Q=[].concat((null==(i=s.header)?void 0:i.btnList)||[],null!=(d=null==(a=s.footer)?void 0:a.btnList)?d:[]),u=Q.some((function(A){return R.includes(A.iconId)})),oe.isMobile||null===A.options.timeLineOptions||A.options.disabledTimeLine||!u||(A._recFooter=new hi(A.$container,{hasDatePicker:null!==A.options.dateOptions}),wi(A,A._recFooter.$timeLineContainer,g),A._footer&&(A._footer.$container.style.cssText+="bottom: 36px;"),null!==A.options.dateOptions&&bi(A,A._recFooter.$datePickerContainer,g)),oe.isMobile&&(null==(n=A.options.mobileExtendOptions)||null==(r=n.controls)?void 0:r.length)&&((p=Q.some((function(A){return"ptz"===A.iconId})))||u)&&(A._mobileExtend=new Ei(A.$container),null!==A.options.dateOptions&&(null==(m=A.options.mobileExtendOptions)?void 0:m.controls.includes("date"))&&u&&bi(A,A._mobileExtend.$topLeft,g),null!==A.options.recOptions&&(null==(_=A.options.mobileExtendOptions)?void 0:_.controls.includes("rec"))&&u&&[].concat((null==(P=s.header)?void 0:P.btnList)||[],null!=(T=null==(k=s.footer)?void 0:k.btnList)?T:[]).forEach((function(e){var t;R.includes(e.iconId)&&vi(A,null==(t=A._mobileExtend)?void 0:t.$topRight,e.iconId,g)})),null===A.options.timeLineOptions&&A.options.disabledTimeLine||!(null==(S=A.options.mobileExtendOptions)?void 0:S.controls.includes("timeLine"))||!u||wi(A,A._mobileExtend.$content,g),oe.isMobile&&(null==(v=A.options.mobileExtendOptions)||null==(w=v.controls)?void 0:w.includes("ptz"))&&p&&A.controls.ptzControl&&A.controls.ptzControl.renderMobileExtend(A._mobileExtend.$content)),A.emit(b.control.mountedControls),A.playing||A._disabled(!0),function(A){var e,t,i,a,r,n,o,s,g,l,C,I,c,h,B;A._recFooter&&A._recFooter.on(b.theme.recFooterDestroy,(function(){A.emit(b.theme.recFooterDestroy)})),A._mobileExtend&&A._mobileExtend.on(b.theme.mobileExtendDestroy,(function(){A.emit(b.theme.mobileExtendDestroy)})),A._pauseControl&&A._pauseControl.on(b.control.play,(function(e,t){A.playing||(A.playing=e,A.emit(b.control.play,e,t))})),(null==(e=A.controls)?void 0:e.playControl)&&(A.controls.playControl.on(b.control.play,(function(e){A.playing!==e&&(A.playing=e,A.emit(b.control.play,e))})),A.controls.playControl.on(b.control.playDestroy,(function(){A.emit(b.control.playDestroy)}))),(null==(t=A.controls)?void 0:t.volumeControl)&&(A.controls.volumeControl.on(b.control.volumechange,(function(e,t){A.muted!==t&&(A.muted=t),A.volume!==e&&(A.volume=e),A.emit(b.control.volumechange,e,t)})),A.controls.volumeControl.on(b.control.volumePanelOpenChange,(function(e,t,i){A.emit(b.control.volumePanelOpenChange,e,t,i)})),A.controls.volumeControl.on(b.control.volumeDestroy,(function(){A.emit(b.control.volumeDestroy)}))),(null==(i=A.controls)?void 0:i.ptzControl)&&(A.controls.ptzControl.on(b.control.ptzPanelOpenChange,(function(e){oe.isMobile&&A.emit(D,e),A.emit(b.control.ptzPanelOpenChange,e)})),A.controls.ptzControl.on(b.control.ptzSpeedChange,(function(e){A.emit(b.control.ptzSpeedChange,e),A.emit(b.ptzSpeedChange,e)})),A.controls.ptzControl.on(b.control.ptzError,(function(e){A.emit(b.control.ptzError,e);var t=A.i18n.t(e.localeKey);/^\[missing/.test(t)&&(t=e.msg),A.emit(b.message,t+" ["+e.code+"]","ptzError",2)})),A.controls.ptzControl.on(b.control.ptzDestroy,(function(){A.emit(b.control.ptzDestroy)}))),(null==(a=A.controls)?void 0:a.recordControl)&&(A.controls.recordControl.on(b.control.recordingChange,(function(e){A.recording!==e&&A.emit(b.control.recordingChange,e)})),A.controls.recordControl.on(b.control.recordDestroy,(function(){A.emit(b.control.recordDestroy)}))),(null==(r=A.controls)?void 0:r.talkControl)&&(A.controls.talkControl.on(b.control.talkingChange,(function(e){A.talking!==e&&A.emit(b.control.talkingChange,e)})),A.controls.talkControl.on(b.control.talkDestroy,(function(){A.emit(b.control.talkDestroy)}))),(null==(n=A.controls)?void 0:n.zoomControl)&&(A.controls.zoomControl.on(b.control.zoomChange,(function(e,t,i){A.zoom!==e&&(A.zoom=e,A.emit(b.control.zoomChange,e))})),A.controls.zoomControl.on(b.control.zoomPanelOpenChange,(function(e,t){A.zooming!==e&&(A.zooming=e,A.emit(b.control.zoomPanelOpenChange,e))})),A.controls.zoomControl.on(b.control.zoomDestroy,(function(){A.zooming&&(A.zoom=1,A.zooming=!1),A.emit(b.control.zoomDestroy)}))),(null==(o=A.controls)?void 0:o.definitionControl)&&(A.controls.definitionControl.on(b.control.definitionPanelOpenChange,(function(e,t,i){A.emit(D,e,t),A.emit(b.control.definitionPanelOpenChange,e,t,i)})),A.controls.definitionControl.on(b.control.definitionChange,(function(e,t){A.emit(b.control.definitionChange,e,t)})),A.controls.definitionControl.on(b.control.definitionDestroy,(function(){A.emit(b.control.definitionDestroy)}))),(null==(s=A.controls)?void 0:s.speedControl)&&(A.controls.speedControl.on(b.control.speedPanelOpenChange,(function(e,t,i){A.emit(D,e,t),A.emit(b.control.speedPanelOpenChange,e,t,i)})),A.controls.speedControl.on(b.control.speedChange,(function(e,t){A.emit(b.control.speedChange,e,t)})),A.controls.speedControl.on(b.control.speedDestroy,(function(){A.emit(b.control.speedDestroy)}))),(null==(g=A.controls)?void 0:g.capturePictureControl)&&(A.controls.capturePictureControl.on(b.control.capturePicture,(function(e){A.emit(b.control.capturePicture,e)})),A.controls.capturePictureControl.on(b.control.capturePictureDestroy,(function(){A.emit(b.control.capturePictureDestroy)}))),(null==(l=A.controls)?void 0:l.fullscreenControl)&&A.controls.fullscreenControl.on(b.control.fullscreenDestroy,(function(){A.emit(b.control.fullscreenDestroy)})),(null==(C=A.controls)?void 0:C.globalFullscreenControl)&&A.controls.globalFullscreenControl.on(b.control.globalFullscreenDestroy,(function(){A.emit(b.control.globalFullscreenDestroy)})),(null==(I=A.controls)?void 0:I.deviceControl)&&A.controls.deviceControl.on(b.control.deviceDestroy,(function(){A.emit(b.control.deviceDestroy)})),(null==(c=A.controls)?void 0:c.recControl)&&(A.controls.recControl.on(b.control.recTypeChange,(function(e){var t,i;A.recType!==e&&(A.recType=e,A.emit(b.control.recTypeChange,e),(null==(t=A._headerMoreControl)?void 0:t.picker)&&(A._headerMoreControl.picker.open=!1),(null==(i=A.controls)?void 0:i.speedControl)&&A.controls.speedControl.emit(b.control.recTypeChange,e))})),A.controls.recControl.on(b.control.recDestroy,(function(){A.emit(b.control.recDestroy)}))),(null==(h=A.controls)?void 0:h.timeLineControl)&&(A.controls.timeLineControl.on(b.control.timeLineChange,(function(e){A.emit(b.control.timeLineChange,e)})),A.controls.timeLineControl.on(b.control.timeLinePanelOpenChange,(function(e){var t,i,a,r,n;(null==(i=A.controls)||null==(t=i.dateControl)?void 0:t.datePicker)&&(null==(n=A.controls)||null==(r=n.dateControl)||null==(a=r.datePicker)||a.hide()),A.emit(b.control.timeLinePanelOpenChange,e)})),A.controls.timeLineControl.on(b.control.timeLineDestroy,(function(){A.emit(b.control.timeLineDestroy)}))),(null==(B=A.controls)?void 0:B.dateControl)&&(A.controls.dateControl.on(b.control.datePanelOpenChange,(function(e,t){A.emit(b.control.datePanelOpenChange,e,t)})),A.controls.dateControl.on(b.control.dateChange,(function(e){A.emit(b.control.dateChange,e)})),A.controls.dateControl.on(b.control.dateDestroy,(function(){A.emit(b.control.recDestroy)}))),A.contentControl&&A.contentControl.on(b.control.contentRerender,(function(e){A.emit(b.control.contentRerender,e)}))}(A)),[2]}}))},function(){var A=this,e=arguments;return new Promise((function(i,a){var r=t.apply(A,e);function n(A){mi(r,i,a,n,o,"next",A)}function o(A){mi(r,i,a,n,o,"throw",A)}n(void 0)}))})();var t}var wi=function(A,e,t){var i,a;(void 0===t&&(t={}),A.controls.timeLineControl||null===A.options.timeLineOptions)||(A.controls.timeLineControl=new Ii.timeLine(_i({getPopupContainer:function(){return e},language:A.options.language,locales:A.i18n.translations,coverQuery:(null==(i=A.urlInfo)?void 0:i.validateCode)?"decodekey="+A.urlInfo.validateCode:""},(null==(a=A.options)?void 0:a.timeLineOptions)||{},{props:t})))},bi=function(A,e,t){var i;(void 0===t&&(t={}),A.controls.dateControl||null===A.options.dateOptions)||(A.controls.dateControl=new Ii.date(_i({getPopupContainer:function(){return e},language:A.options.language,locales:A.i18n.translations},(null==(i=A.options)?void 0:i.dateOptions)||{},{props:t})))},vi=function(A,e,t,i){var a,r,n,o;(void 0===i&&(i={}),!(null==(a=A.controls)?void 0:a.recControl)&&null!==A.options.recOptions&&e)&&(A.controls.recControl=new Ii.rec(_i({getPopupContainer:function(){return e},recType:A.recType,language:A.options.language,locales:A.i18n.translations},(null==(o=A.options)?void 0:o.recOptions)||{},{props:i})));(null==(r=A.controls)?void 0:r.recControl)&&(null==(n=A.controls)?void 0:n.recControl).addRecType(t)};function Pi(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=A[t];return i}function ki(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function Ti(A){return function(){var e=this,t=arguments;return new Promise((function(i,a){var r=A.apply(e,t);function n(A){ki(r,i,a,n,o,"next",A)}function o(A){ki(r,i,a,n,o,"throw",A)}n(void 0)}))}}function Ni(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function Mi(){return Mi=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Mi.apply(this,arguments)}function Li(A,e){return Li=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Li(A,e)}function Yi(A,e){var t="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(t)return(t=t.call(A)).next.bind(t);if(Array.isArray(A)||(t=function(A,e){if(A){if("string"==typeof A)return Pi(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Pi(A,e):void 0}}(A))||e){t&&(A=t);var i=0;return function(){return i>=A.length?{done:!0}:{done:!1,value:A[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.")}function Gi(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var Ui={dblClickFullscreen:!0,language:"zh",autoPlay:!0,scaleMode:u,loggerOptions:{level:"INFO",showTime:!0},env:{domain:"https://open.ys7.com"},mobileExtendOptions:{controls:["ptz","timeLine","rec","date"]}},Ji=function(A){function e(e){var t,i,a,r,n,o,s,g,C,I,c,h,B,E,x,d,Q,f,u,p,m;((t=A.call(this)||this).options=Ui,t.staticPath="",t.controls={},t._seekDate=null,t.recType="",t._headerMoreControl=null,t._footerMoreControl=null,t._header=null,t._footer=null,t._recFooter=null,t._mobileExtend=null,t._interactiveResult=null,t._themeData=null,t._fullscreen=null,t.zoomUtil=null,t._cleanupOrientation=null,t._cleanUpResizeObserver=null,t._width=0,t._height=0,t._isCurrentFullscreen=!1,t._orientationAngle=0,t._playing=!1,t._loading=!1,t._volume=0,t._muted=!1,t._zoom=1,t._zooming=!1,t._recording=!1,t._talking=!1,t._speed=1,t._videoLevelAuto=!1,t.videoLevelList=[],t.recordList=[],t._resizeOverflowTimer=null,t.recMonth=[],t._onPauseTimingFunc=null,t.destroyed=!1,t.urlInfo=null,t.scaleMode=0,t._initOptions(e),"ezopen"===t.options.type)&&(t.urlInfo=l.parseEzopenUrl(t.options.url),(null==(g=t.urlInfo)||null==(s=g.searchParams)?void 0:s.spaceId)&&(t.options.spaceId=t.urlInfo.searchParams.spaceId),"rec"===t.urlInfo.type&&(t._seekDate=(null==(I=t.urlInfo)||null==(C=I.searchParams)?void 0:C.begin)?l.DateTime.toDate(null==(h=t.urlInfo)||null==(c=h.searchParams)?void 0:c.begin):l.DateTime.toDate(l.DateTime.format(new Date,"YYYY/MM/DD")+" 00:00:00")));return t._getRecType(t.options.url),Ye(t,b),null==e.onInitializing||e.onInitializing.call(e,t),t.options.autoPlay&&(t.playing=!0),t._initClassName(),t.contentControl=new Pe({getContainer:function(){return t.$container},scaleMode:t.scaleMode}),function(A,e,t){A.zoomUtil=new Xe(e,qe({},t||{},{min:1,onChange:function(e,i){var a;e!==A._zoom&&(A.zoom=e,null==t||null==(a=t.onChange)||a.call(t,e,i))},onTranslateChange:function(e){var i;A.emit(b.zoomTranslateChange,e),null==t||null==(i=t.onTranslateChange)||i.call(t,e)},onTap:null==t?void 0:t.onTap}))}(t,t.contentControl.$content,Mi({},t.options.zoomOptions||{},{onTap:function(){var A,e;null==(e=t._interactiveResult)||null==(A=e.setTimeoutShow)||A.call(e)}})),t._volume=null!=(E=null!=(B=null==(i=t.options.volumeOptions)?void 0:i.volume)?B:t.options.volume)?E:.8,t._muted=null!=(d=null!=(x=null==(a=t.options.volumeOptions)?void 0:a.muted)?x:t.options.muted)&&d,t._speed=null!=(f=null!=(Q=null==(r=t.options.speedOptions)?void 0:r.value)?Q:t.options.value)?f:1,t._mobileInnerWidthHeight=t._mobileInnerWidthHeight.bind(t),t._throttleMobileInnerWidthHeight=ae(t._mobileInnerWidthHeight,20).bind(t),t._onDblClickFullscreen=Me(t._onDblClickFullscreen,20).bind(t),t._headerMoreControlShow=Me(t._headerMoreControlShow.bind(t),200),t._footerMoreControlShow=Me(t._footerMoreControlShow.bind(t),200),t.destroyed=!1,t._renderTheme(["flv","hls","mp4"].includes(e.type)?we:null!=(p=null!=(u=null==(n=t.options)?void 0:n.template)?u:null==(o=t.options)?void 0:o.themeData)?p:null),t._addEventListener(),null==(m=t)||m.on(b.audioCodecUnsupported,(function(){var A;(null==(A=m.controls)?void 0:A.volumeControl)&&m.controls.volumeControl.emit(b.audioCodecUnsupported)})),null==m||m.on(b.message,(function(A,e,t){var i;if(/error$/gi.test(e)&&["ptzError","talkError","themeError","3DZoomError"].includes(e))null==(i=m.messageControl)||i.toastError(A,t);else if(/error$/gi.test(e)){var a;0===(t||0)&&(m.playing=!1),null==(a=m.messageControl)||a.error(A,t)}else if("warn"===e){var r;null==(r=m.messageControl)||r.warn(A,t)}else if("info"===e){var n;null==(n=m.messageControl)||n.info(A,t)}})),null==m||m.on(b.audioInfo,(function(A){var e;(null==m||null==(e=m.controls)?void 0:e.volumeControl)&&(A.audioFormatName||A.encType)&&(m.controls.volumeControl.disabled=!1)})),null==m||m.on(b.videoInfo,(function(A){var e,t;A&&(null==(t=m.contentControl)||null==(e=t.emit)||e.call(t,b.videoInfo,A.width,A.height))})),null==m||m.on(b.resize,(function(){var A,e;null==(e=m.contentControl)||null==(A=e.emit)||A.call(e,b.resize)})),null==m||m.on("getDeviceInfo",(function(A){})),null==m||m.on(b.firstFrameDisplay,(function(){m._disabled(!1)})),null==m||m.on(b.play,(function(A){var e,t;A&&(null==(t=m.messageControl)||t.hide()),(null==m||null==(e=m.controls)?void 0:e.globalFullscreenControl)&&(m.controls.globalFullscreenControl.disabled=!A)})),m.on(b.talkingChange,(function(A){var e,t,i,a,r;m._talking=A,(null==(e=m.controls)?void 0:e.talkControl)&&A!==(null==(i=m.controls)||null==(t=i.talkControl)?void 0:t.active)&&(null==(r=m.controls)||null==(a=r.talkControl)||a.emit(b.talkingChange,A))})),m.on(b.talkVolumeChange,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.talkControl)||null==(e=t.emit)||e.call(t,b.talkVolumeChange,A)})),m.on(b.recordingChange,(function(A){var e,t,i;m._recording=A,(null==(e=m.controls)?void 0:e.recordControl)&&A!==(null==(i=m.controls)||null==(t=i.recordControl)?void 0:t.active)&&(m.controls.recordControl.active=A)})),m.on(b.setVideoLevelList,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.definitionControl)||null==(e=t.emit)||e.call(t,b.setVideoLevelList,A||[])})),m.on(b.currentVideoLevel,(function(A,e){var t,i,a;null==(a=m.controls)||null==(i=a.definitionControl)||null==(t=i.emit)||t.call(i,b.currentVideoLevel,A,e)})),m.on(b.zoomingChange,(function(A){var e,t,i;(null==(e=m.controls)?void 0:e.zoomControl)&&(null==(i=m.controls)||null==(t=i.zoomControl)?void 0:t.active)!==A&&(m.controls.zoomControl.active=A)})),m.on(b.zoomChange,(function(A){var e,t,i;(null==(e=m.controls)?void 0:e.zoomControl)&&(null==(i=m.controls)||null==(t=i.zoomControl)?void 0:t.value)!==A&&(m.controls.zoomControl.value=A)})),m.on(b.speedChange,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.speedControl)||null==(e=t.emit)||e.call(t,b.speedChange,A)})),m.on(b.setAllDayRecTimes,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.timeLineControl)||null==(e=t.emit)||e.call(t,b.setAllDayRecTimes,A.list)})),m.on(b.getOSDTime,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.timeLineControl)||null==(e=t.emit)||e.call(t,b.getOSDTime,A.data)})),null==m||m.on(b.fullscreenChange,(function(A){var e,t,i,a;m.zoomUtil&&([0,180].includes(m.orientationAngle)&&A.isMobile&&A.isCurrentFullscreen?null==(t=m.zoomUtil)||null==(e=t.setTransform)||e.call(t,!0):null==(a=m.zoomUtil)||null==(i=a.setTransform)||i.call(a,!1))})),null==m||m.on(b.orientationChange,(function(A){var e,t,i,a;m.zoomUtil&&([0,180].includes(A)&&oe.isMobile&&m.isCurrentFullscreen?null==(t=m.zoomUtil)||null==(e=t.setTransform)||e.call(t,!0):null==(a=m.zoomUtil)||null==(i=a.setTransform)||i.call(a,!1))})),null==m||m.on(b.control.dateMonthChange,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.dateControl)||null==(e=t.emit)||e.call(t,b.control.dateMonthChange,A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Li(A,e)}(e,A);var t=e.prototype;return t.resize=function(A,e){!function(A,e,t){var i="";/^\d+(\.\d+)?$/.test(e+"")?i+="width: "+e+"px;":e&&(i+="width: "+e+";"),/^\d+(\.\d+)?$/.test(t+"")?i+="height: "+t+"px;":t&&(i+="height: "+t+";"),A.$container&&(A.$container.style.cssText+=i)}(this,A,e)},t.fullscreen=function(){return Ti((function(){var A;return Gi(this,(function(e){switch(e.label){case 0:return[4,null==(A=this._fullscreen)?void 0:A.fullscreen()];case 1:return[2,e.sent()]}}))})).call(this)},t.exitFullscreen=function(){return Ti((function(){var A;return Gi(this,(function(e){switch(e.label){case 0:return[4,null==(A=this._fullscreen)?void 0:A.exitFullscreen()];case 1:return[2,e.sent()]}}))})).call(this)},t.changeTheme=function(A){this._renderTheme(A),null==this.emit||this.emit.call(this,b.changeTheme,A)},t.setPoster=function(A){var e;null==(e=this.posterControl)||e.setPoster(A)},t.setLoggerOptions=function(A){var e;void 0===A&&(A={}),null==(e=this.logger)||e.setOptions(A),null==this||this.emit(b.setLoggerOptions,A)},t.setScaleMode=function(A){if([0,1,2].includes(+A)){var e,t;this.scaleMode=+A,null==(t=this.contentControl)||null==(e=t.setScaleMode)||e.call(t,+A);for(var i,a=this.$container.classList,r=Yi(a);!(i=r()).done;){var n=i.value;n.startsWith(f+"-scale-mode-")&&a.remove(n)}0===this.scaleMode?this.$container.classList.add(f+"-scale-mode-full"):1===this.scaleMode?this.$container.classList.add(f+"-scale-mode-auto"):2===this.scaleMode&&this.$container.classList.add(f+"-scale-mode-full-auto")}else{var o;null==(o=this.logger)||o.warn("scaleMode must be 0 | 1 | 2")}},t.destroy=function(){var A,e,t=this;this.$container&&!this.destroyed&&(this.emit(b.theme.beforeDestroy),this._removeEventListener(),ui(this),null==(A=this.contentControl)||A.destroy(),this.contentControl=null,this._resizeOverflowTimer&&(clearTimeout(this._resizeOverflowTimer),this._resizeOverflowTimer=null),Array.from((null==(e=this.$container)?void 0:e.classList)||[]).forEach((function(A){new RegExp("^"+f+"-","g").test(A)&&t.$container.classList.remove(A)})),this.$container.classList.remove(""+f),this._themeData=null,this.i18n&&(this.i18n=null),this.recType="",this.recMonth=[],this.emit(b.theme.destroyed),this.removeAllListeners(),this.logger&&(this.logger=null),this.destroyed=!0)},t._initOptions=function(A){var t,i,a,r;if(void 0===A&&(A={}),this.options=g(Ui,A,{clone:!1}),"function"==typeof this.options.container?this.$container=this.options.container():this.$container=this.options.container,!this.$container)throw new Error("container option is required!");if(["VIDEO","CANVAS"].includes(this.$container.tagName))throw new Error("container node cannot be video or canvas!");this.staticPath=this.options.staticPath,this.logger=h(Mi({},this.options.loggerOptions||{},{name:(null==(t=this.options.loggerOptions)?void 0:t.name)||this.options.type.toUpperCase()})),this.logger.log(navigator.userAgent||"unknown"),this.logger.log("[Theme Version] ",e.THEME_VERSION),"container"in this.options&&delete this.options.container;try{this.logger.log("[options] \n",JSON.stringify(this.options))}catch(A){this.logger.log("[options] \n",this.options)}var n,o=this.options.language||"zh",s=g({zh:Re,en:Fe},this.options.locales||{},{clone:!1});(this.i18n=new I(s,{defaultLocale:o}),(null==(a=this.options.definitionOptions)||null==(i=a.list)?void 0:i.length)>0||(null==(r=this.options.videoLevelList)?void 0:r.length)>0)&&(this.videoLevelList=(null==(n=this.options.definitionOptions)?void 0:n.list)||this.options.videoLevelList);this.setScaleMode(this.options.scaleMode)},t._initClassName=function(){var A,e;this.$container.classList.add(f,oe.isMobile?f+"-mobile":f+"-pc"),["ezopen","flv","hls","mp4"].includes(this.options.type)&&this.$container.classList.add(f+"-"+this.options.type),["en","zh"].includes(this.options.language||"zh")&&this.$container.classList.add(f+"-lang-"+(this.options.language||"zh")),"string"==typeof this.options.className&&this.$container.classList.add(this.options.className),this.resize(null==(A=this.options)?void 0:A.width,null==(e=this.options)?void 0:e.height)},t._renderTheme=function(A){return Ti((function(){return Gi(this,(function(e){return Fi(this,A),[2]}))})).call(this)},t._mobileInnerWidthHeight=function(){if(oe.isMobile){var A,e,t,i,a=Math.floor(window.innerHeight),r=Math.floor(window.innerWidth);null==(e=this.$container)||null==(A=e.style)||A.setProperty("--"+f+"-mobile-inner-height",a+"px"),null==(i=this.$container)||null==(t=i.style)||t.setProperty("--"+f+"-mobile-inner-width",r+"px")}},t._addEventListener=function(){var A=this;this._fullscreen=new ue(this.$container,{prefix:f,onChange:function(e){var t;(e.isCurrentFullscreen?A.emit(b.fullscreen):A._isCurrentFullscreen&&A.emit(b.exitFullscreen),A._isCurrentFullscreen=e.isCurrentFullscreen,A.emit(b.fullscreenChange,Mi({},e,{orientationAngle:A._orientationAngle})),A._isRotated(),oe.isMobile&&!A._isCurrentFullscreen)&&((null==(t=A.controls)?void 0:t.ptzControl)&&A.controls.ptzControl.reset())}});var t=function(e){if(A.$container){var t;switch(null==(t=A.$container.classList)||t.remove(f+"-angle-0",f+"-angle-90",f+"-angle-180",f+"-angle-270"),e.angle){case 0:A.$container.classList.add(f+"-angle-0");break;case 90:A.$container.classList.add(f+"-angle-90");break;case 180:A.$container.classList.add(f+"-angle-180");break;case 270:A.$container.classList.add(f+"-angle-270")}A.orientationAngle!==e.angle&&A.emit(b.orientationChange,e.angle),A._orientationAngle=e.angle,A._mobileInnerWidthHeight(),A._isRotated()}},i=oe.orientationEventListener(t),a=i[0],r=i[1];this._cleanupOrientation=r,t(a),this._mobileInnerWidthHeight(),window.addEventListener("resize",this._throttleMobileInnerWidthHeight),this._cleanUpResizeObserver=oe.resizeObserver(this.$container,ae((function(){var t,i,a=Math.floor(A.$container.clientWidth),r=Math.floor(A.$container.clientHeight);(a>200&&a<=375?(A.$container.classList.add(f+"-medium-width"),A.$container.classList.remove(f+"-mini-width")):(a<=200?A.$container.classList.add(f+"-mini-width"):A.$container.classList.remove(f+"-mini-width"),A.$container.classList.remove(f+"-medium-width")),r>200&&r<=375?(A.$container.classList.add(f+"-medium-height"),A.$container.classList.remove(f+"-mini-height")):(r<=200?A.$container.classList.add(f+"-mini-height"):A.$container.classList.remove(f+"-mini-height"),A.$container.classList.remove(f+"-medium-height")),A.width!==a||A.height!==r)&&(A.emit(e.EVENTS.resize,{width:a,height:r,isCurrentFullscreen:A.isCurrentFullscreen,orientationAngle:A.orientationAngle}),A._width=a,A._height=r,(null==(i=A.controls)?void 0:i.timeLineControl)&&A.controls.timeLineControl.setWidth(a-20-36),A._headerMoreControlShow(),A._footerMoreControlShow());null==(t=A.$container)||t.classList.add(f+"-overflow-hidden"),A._resizeOverflowTimer&&(clearTimeout(A._resizeOverflowTimer),A._resizeOverflowTimer=null),A._resizeOverflowTimer=setTimeout((function(){var e;A._resizeOverflowTimer&&(clearTimeout(A._resizeOverflowTimer),A._resizeOverflowTimer=null),null==(e=A.$container)||e.classList.remove(f+"-overflow-hidden")}),200)}),20)),this.options.dblClickFullscreen&&!oe.isMobile&&this.$container.addEventListener("dblclick",this._onDblClickFullscreen)},t._headerMoreControlShow=function(){var A=this;if(this._header){var t,i,a,r,n=(null==(i=this._header)||null==(t=i.$left)?void 0:t.clientWidth)||0,o=(null==(r=this._header)||null==(a=r.$right)?void 0:a.clientWidth)||0,s=n+o+30>this._width;if(s){var g,l,C;if(!this._headerMoreControl&&(null==(g=this.controls)?void 0:g.recControl))this._headerMoreControl=new Ne({language:this.options.language,locales:this.i18n.translations,rootContainer:this.$container,getPopupContainer:function(){var e;return null==(e=A._header)?void 0:e.$right},placement:"br",controls:this.controls,open:!1,offset:[0,8],wrapClassName:f+"-header-more",onOpenChange:function(e){A.emit(b.control.headerMorePanelOpenChange,e)}}),null==(C=this.controls)||null==(l=C.recControl)||l.resetPopupContainer(this._headerMoreControl.$panel);this.emit(e.EVENTS.control.headerMoreShowControlsChange,s)}else if(this._width-n-o>100){var I,c,h,B,E;if(this._headerMoreControl&&(null==(I=this.controls)?void 0:I.recControl))null==(B=this.controls)||null==(h=B.recControl)||h.resetPopupContainer(null==(c=this._header)?void 0:c.$right),null==(E=this._headerMoreControl)||E.destroy(),this._headerMoreControl=null,this.emit(e.EVENTS.control.headerMoreShowControlsChange,!1)}}},t._footerMoreControlShow=function(){var A=this,t=function(){if(A._footer){var i,a,r=(null==(i=A._footer.$left)?void 0:i.clientWidth)||0,n=(null==(a=A._footer.$right)?void 0:a.clientWidth)||0;if(r+n+26>A._width){var o,s,g,l,C,I,c;!A._footerMoreControl&&(null==(o=A._footer)?void 0:o.$right)&&(A._footerMoreControl=new Ne({language:A.options.language,locales:A.i18n.translations,rootContainer:A.$container,getPopupContainer:function(){var e;return null==(e=A._footer)?void 0:e.$right},placement:"tr",controls:A.controls,open:!1,offset:[0,-8],wrapClassName:f+"-footer-more",onOpenChange:function(e){A.emit(b.control.footerMorePanelOpenChange,e)}}));var h=((null==(g=A._themeData)||null==(s=g.footer)?void 0:s.btnList)||[]).filter((function(e){var t,i=((null==(t=A._footerMoreControl)?void 0:t.list)||[]).findIndex((function(t){var i;return t.control===(null==(i=A.controls)?void 0:i[e.iconId+"Control"])}));return-1===i}));if(h.length<=0)return;if(0===(null==(C=A._footerMoreControl)||null==(l=C.list)?void 0:l.length))for(var B,E=Yi([h.pop(),h.pop()]);!(B=E()).done;){var x=B.value;if(x){var d,Q,u,p,m,_=x.iconId+"Control";null==(u=A.controls)||null==(Q=u[_])||null==(d=Q.resetPopupContainer)||d.call(Q,A._footerMoreControl.$panel,"prepend"),null==(m=A._footerMoreControl)||m.add(_,x.part,null==(p=A.controls)?void 0:p[_])}}else if(A._footerMoreControl){var y=h.pop();if(!y)return;var S,D,R,F,w,v=y.iconId+"Control";null==(R=A.controls)||null==(D=R[v])||null==(S=D.resetPopupContainer)||S.call(D,A._footerMoreControl.$panel,"prepend"),null==(w=A._footerMoreControl)||w.add(v,y.part,null==(F=A.controls)?void 0:F[v])}A.emit(e.EVENTS.control.footerMoreShowControlsChange,!!A._footerMoreControl,null==(c=A._footerMoreControl)||null==(I=c.list)?void 0:I.map((function(A){return A.key}))),A._footerMoreControl&&t()}else if(A._width-r-n>110){var P,k;if(null==(k=A._footerMoreControl)||null==(P=k.list)?void 0:P.length){var T,N,M,L,Y,G=null==(T=A._footerMoreControl)?void 0:T.list.shift();if(G){var U,J,H;if("left"===G.part)null==(H=G.control)||null==(J=H.resetPopupContainer)||J.call(H,A._footer.$left,"append");else if("right"===G.part){var O,K,V,W,Z,X;if(0===(null==(K=A._footerMoreControl)||null==(O=K.list)?void 0:O.length))null==(W=G.control)||null==(V=W.resetPopupContainer)||V.call(W,A._footer.$right,"append");else null==(X=G.control)||null==(Z=X.resetPopupContainer)||Z.call(X,A._footer.$right,"before",A._footerMoreControl.$container)}null==(U=A._footerMoreControl)||U.remove(G.control)}if(1===(null==(M=A._footerMoreControl)||null==(N=M.list)?void 0:N.length)){var q,j,z,$=null==(q=A._footerMoreControl)?void 0:q.list.shift();if($){var AA,eA,tA;if("left"===$.part)null==(tA=$.control)||null==(eA=tA.resetPopupContainer)||eA.call(tA,A._footer.$left,"append");else if("right"===$.part){var iA,aA;null==(aA=$.control)||null==(iA=aA.resetPopupContainer)||iA.call(aA,A._footer.$right,"append")}null==(AA=A._footerMoreControl)||AA.remove($.control)}null==(z=A._footerMoreControl)||null==(j=z.destroy)||j.call(z),A._footerMoreControl=null}A.emit(e.EVENTS.control.footerMoreShowControlsChange,!!A._footerMoreControl,null==(Y=A._footerMoreControl)||null==(L=Y.list)?void 0:L.map((function(A){return A.key}))),t()}}}};t()},t._removeEventListener=function(){var A,e,t,i;this._isCurrentFullscreen&&(null==(i=this._fullscreen)||i.exitFullscreen());null==(A=this._fullscreen)||A.destroy(),this._fullscreen=null,null==this._cleanupOrientation||this._cleanupOrientation.call(this),this._cleanupOrientation=null,null==(t=this._cleanUpResizeObserver)||null==(e=t.unobserve)||e.call(t),this._cleanUpResizeObserver=null,window.removeEventListener("resize",this._throttleMobileInnerWidthHeight),this._throttleMobileInnerWidthHeight=null,this.options.dblClickFullscreen&&!oe.isMobile&&this.$container.removeEventListener("dblclick",this._onDblClickFullscreen)},t._setVideoLevelList=function(A){this.videoLevelList=A},t._disabled=function(A){var e=this;void 0===A&&(A=!0),w.forEach((function(t){var i;(null==(i=e.controls)?void 0:i[t+"Control"])&&(e.controls[t+"Control"].disabled=A)}))},t._onDblClickFullscreen=function(){this.isCurrentFullscreen?this.exitFullscreen():this.fullscreen()},t._getRecType=function(A){if("ezopen"===this.options.type&&/^ezopen:\/\//.test(A)){var e,t=l.parseEzopenUrl(A);if("rec"===t.type)return"cloud"===t.recType&&"7"===(null==t||null==(e=t.searchParams)?void 0:e.busType)?(this.recType="cloudRecord","cloudRecord"):"cloud"===t.recType?(this.recType="cloudRec","cloudRec"):(this.recType="rec","rec")}return this.recType="",""},t.resetControl=function(){var A=this;this.zooming&&1!==this.zoom&&(this.zoom=1),["ptz","talk","record","speed"].forEach((function(e){var t;(null==(t=A.controls)?void 0:t[e+"Control"])&&A.controls[e+"Control"].reset()}))},t._isRotated=function(){var A,e,t,i;oe.isMobile&&(this.isCurrentFullscreen&&[0,180].includes(this._orientationAngle)?((null==(A=this.controls)?void 0:A.ptzControl)&&(this.controls.ptzControl.isRotated=!0),(null==(e=this.controls)?void 0:e.zoomControl)&&(this.controls.zoomControl.isRotated=!0)):((null==(t=this.controls)?void 0:t.ptzControl)&&(this.controls.ptzControl.isRotated=!1),(null==(i=this.controls)?void 0:i.zoomControl)&&(this.controls.zoomControl.isRotated=!1)))},Ni(e,[{key:"width",get:function(){return this._width}},{key:"height",get:function(){return this._height}},{key:"playing",get:function(){return this._playing},set:function(A){var e,t,i,a,r,n=this;if(this._playing!==A){var o,s,g,l;if(this._playing=A,A||(this.loading=!1,["ptz","talk","record"].forEach((function(A){var e;(null==(e=n.controls)?void 0:e[A+"Control"])&&n.controls[A+"Control"].reset()})),this._disabled(!0)),this.emit(b.play,A),null==(o=this.controls)?void 0:o.playControl)if(this.controls.playControl.playing!==A)null==(l=this.controls)||l.playControl.emit(b.play,A);null==(g=this._pauseControl)||null==(s=g.show)||s.call(g,A)}this._playing&&(null==(e=this.messageControl)||e.hide());this._playing?null==(i=this._interactiveResult)||null==(t=i.setTimeoutShow)||t.call(i):null==(r=this._interactiveResult)||null==(a=r.clearTimeout)||a.call(r)}},{key:"loading",get:function(){return this._loading},set:function(A){var e,t;(this._loading=A,A)?null==(e=this._loadingControl)||e.show():null==(t=this._loadingControl)||t.hide();this._loading!==A&&this.emit(b.loading,A)}},{key:"volume",get:function(){return this._volume},set:function(A){var e,t,i;A>=0&&A<=1&&(this._volume!==A&&(this._volume=A,this.emit(b.volumechange,A,this._muted),(null==(e=this.controls)?void 0:e.volumeControl)&&(null==(i=this.controls)||null==(t=i.volumeControl)?void 0:t.volume)!==A&&this.controls.volumeControl.emit(b.volumechange,A,this._muted)))}},{key:"muted",get:function(){return this._muted},set:function(A){var e,t,i;this._muted!==A&&(this._muted=A,this.emit(b.volumechange,this._volume,this._muted),(null==(e=this.controls)?void 0:e.volumeControl)&&(null==(i=this.controls)||null==(t=i.volumeControl)?void 0:t.muted)!==A&&this.controls.volumeControl.emit(b.volumechange,this._volume,A))}},{key:"zooming",get:function(){return this._zooming},set:function(A){var e,t,i,a,r,n,o,s,g,l;this._zooming!==A&&(this._zooming=A,this.emit(b.zoomingChange,A),this.zoomUtil&&(A?(null==(t=this.zoomUtil)||null==(e=t.setUpEventListeners)||e.call(t),null==(a=this.zoomUtil)||null==(i=a.setAllowZoom)||i.call(a,!0)):(null==(n=this.zoomUtil)||null==(r=n.reset)||r.call(n),null==(s=this.zoomUtil)||null==(o=s.removeEventListeners)||o.call(s),null==(l=this.zoomUtil)||null==(g=l.setAllowZoom)||g.call(l,!1))))}},{key:"zoom",get:function(){return this._zoom},set:function(A){var e,t,i,a,r;if(!this._zooming)return null==(i=this.messageControl)||null==(t=i.info)||t.call(i,this.i18n.t("ZOOM_NOT_ENABLED")),void(null==(a=this.logger)||a.warn(this.i18n.t("ZOOM_NOT_ENABLED")));A=+A.toFixed(1);var n,o,s,g,l,C,I,c,h,B,E=null!=(r=null==(e=this.options.zoomOptions)?void 0:e.max)?r:Ke.max;if(A>E)return null==(o=this.messageControl)||null==(n=o.info)||n.call(o,this.i18n.t("ZOOM_LIMIT_MAX",{zoom:E})),void(null==(s=this.logger)||s.warn(this.i18n.t("ZOOM_LIMIT_MAX",{zoom:E})));if(A<1)return null==(l=this.messageControl)||null==(g=l.info)||g.call(l,this.i18n.t("ZOOM_LIMIT_MIN",{zoom:"1"})),void(null==(C=this.logger)||C.warn(this.i18n.t("ZOOM_LIMIT_MIN",{zoom:"1"})));if(A===E)null==(c=this.messageControl)||null==(I=c.info)||I.call(c,this.i18n.t("ZOOM_ADD_MAX",{zoom:E}));else if(1===A){var x,d;null==(d=this.messageControl)||null==(x=d.info)||x.call(d,this.i18n.t("ZOOM_SUB_MIN",{zoom:1}))}A!==this._zoom&&(this._zoom=A,this.emit(b.zoomChange,A),null==this||null==(B=this.zoomUtil)||null==(h=B.setZoom)||h.call(B,A))}},{key:"talking",get:function(){return this._talking}},{key:"speed",get:function(){return this._speed},set:function(A){(A=+A)!==this._speed&&(this._speed=A,this.emit(b.speedChange,A))}},{key:"talkGain",get:function(){var A,e,t;return(null==(e=this.controls)||null==(A=e.talkControl)?void 0:A.active)?(null==(t=this.controls)?void 0:t.talkControl).value:null}},{key:"recording",get:function(){return this._recording}},{key:"ptzing",get:function(){var A,e;return null==(e=this.controls)||null==(A=e.ptzControl)?void 0:A.active}},{key:"videoLevelAuto",get:function(){return this._videoLevelAuto}},{key:"isCurrentFullscreen",get:function(){return this._isCurrentFullscreen}},{key:"orientationAngle",get:function(){return this._orientationAngle}},{key:"hasHeaderMoreControl",get:function(){return!!this._headerMoreControl}},{key:"hasFooterMoreControl",get:function(){return!!this._footerMoreControl}}]),e}(i);return Ji.TEMPLATES=be,Ji.EVENTS=b,Ji.LOCALES={zh:Re,en:Fe},Ji.THEME_VERSION="2.1.0-beta.3",c.Control=k,c.EVENTS=b,c.Fullscreen=_e,c.Loading=L,c.Message=$A,c.Play=ie,c.Poster=J,c.Rec=De,c.Theme=Ji,c.Utils=oe,c.Volume=Be,c}();Date.prototype.Format=function(A){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var t in/(y+)/.test(A)&&(A=A.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+t+")").test(A)&&(A=A.replace(RegExp.$1,1==RegExp.$1.length?e[t]:("00"+e[t]).substr((""+e[t]).length)));return A};const R=(A,e,t,i)=>{var a=document.getElementsByTagName("head")[0].getElementsByTagName("script"),r=!1;if(t)r=t();else for(var n=0;n<a.length;n++)a[n].getAttribute("src")==A&&(r=!0,a[n].readyState?a[n].onreadystatechange=function(){"complete"!=a[n].readyState&&"loaded"!=a[n].readyState||(a[n].onreadystatechange=null,e(i))}:a[n].onload=()=>{e(i)});if(!r){try{if(!document.querySelector(`script[src="${A}"]`)){var o=document.createElement("script");o.setAttribute("src",A),o.setAttribute("crossorigin",!0),o.onload=()=>e(i),document.getElementsByTagName("head")[0].appendChild(o)}}catch(A){}setTimeout((()=>{e(i)}),15)}},F=A=>{for(var e=document.getElementsByTagName("head")[0].getElementsByTagName("script"),t=0;t<e.length;t++)if(e[t].getAttribute("src")==A)return void document.getElementsByTagName("head")[0].removeChild(e[t])},w=(A,e)=>{var t=new RegExp("(\\?|#|&)"+A+"=(.*?)(#|&|$)"),i=(e||window.location.href).match(t);return decodeURIComponent(i?i[2]:"")},b=(A,e)=>{var t=e.parentNode;t.lastChild==e?t.appendChild(A):t.insertBefore(A,e.nextSibling)},P=A=>({deviceSerial:A.split("/")[3],channelNo:A.split("/")[4].split(".")[0],validCode:2===A.split("/")[2].split("@").length?A.split("/")[2].split("@")[0]:"",hd:-1!==A.indexOf(".hd"),type:-1!==A.indexOf(".cloud.rec")?"cloud.rec":-1!==A.indexOf(".rec")?"rec":"live"}),k=()=>!!window&&navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i);function T(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function N(A){return function(){var e=this,t=arguments;return new Promise((function(i,a){var r=A.apply(e,t);function n(A){T(r,i,a,n,o,"next",A)}function o(A){T(r,i,a,n,o,"throw",A)}n(void 0)}))}}let M=null;function L(A=[]){return new Promise(((e,t)=>{if(M)return void e(M);const i=indexedDB.open("EZUIKitDB",1);i.onupgradeneeded=e=>{const t=e.target.result;A.forEach((A=>{t.objectStoreNames.contains(A)||t.createObjectStore(A,{keyPath:"id"})}))},i.onsuccess=A=>{const t=A.target;M=t.result,e(M)},i.onerror=A=>{const e=A.target;t(e.error)}}))}function Y(A,e,t){return G.apply(this,arguments)}function G(){return(G=N((function*(A,e,t){const i=yield L([A]);return new Promise(((a,r)=>{const n=i.transaction([A],"readwrite").objectStore(A),o=t?n.add(e,t):n.add(e);o.onsuccess=()=>{a()},o.onerror=A=>{const e=A.target;r(e.error)}}))}))).apply(this,arguments)}function U(A,e){return J.apply(this,arguments)}function J(){return(J=N((function*(A,e){const t=yield L([A]);return new Promise(((i,a)=>{const r=t.transaction([A],"readonly").objectStore(A).get(e);r.onsuccess=()=>{i(r.result)},r.onerror=A=>{const e=A.target;a(e.error)}}))}))).apply(this,arguments)}function H(A,e,t){return O.apply(this,arguments)}function O(){return(O=N((function*(A,e,t){const i=yield L([A]);return new Promise(((a,r)=>{const n=i.transaction([A],"readwrite").objectStore(A),o=t?n.put(e,t):n.put(e);o.onsuccess=()=>{a()},o.onerror=A=>{const e=A.target;r(e.error)}}))}))).apply(this,arguments)}var K={391001:"取流地址或端口非法",391004:"连接到流媒体服务失败",395e3:"服务内部异常,请稍后重试",395400:"预览取流参数异常",395402:"设备当前时段无录像,请选择其他时间段",395403:"服务异常,请重试或联系客服",395404:"设备不在线,请优化网络后重启设备再试",395405:"设备侧网络问题,请检查优化网络后重启设备再试",395406:"token过期,请重试",395407:"客户端的URL格式错误",395409:"预览开启隐私保护",395410:"服务异常,请重试或联系客服",395411:"无权查看当前设备",395412:"服务异常,请重试或联系客服",395413:"服务异常,请重试或联系客服",395415:"设备通道错误",395416:"当前观看路数达到设备最大限制,请重启设备或联系设备售后处理",395451:"设备不支持该码流类型,请检查设备通道支持情况或联系硬件售后",395452:"设备侧网络较差,请检查优化网络后重启设备再试",395454:"设备侧网络较差,请检查优化网络后重启设备再试",395455:"设备通道异常,请检查通道配置后重试",395456:"设备通道异常,请检查通道配置后重试",395457:"服务异常,请重试或联系客服",395458:"服务异常,请重试或联系客服",395459:"服务异常,请重试或联系客服",395460:"服务异常,请重试或联系客服",395492:"服务异常,请重试或联系客服",395500:"服务异常,请重试或联系客服",395501:"服务异常,请重试或联系客服",395503:"服务异常,请重试或联系客服",395504:"服务异常,请重试或联系客服",395505:"服务异常,请重试或联系客服",395506:"暂不支持该设备直接取流,请连接NVR后重试或联系客服",395507:"设备4G无限流量套餐仅支持萤石云视频APP使用,请联系APP客服更换套餐",395530:"服务异常,请重试或联系客服",395544:"视频源不存在,请检查设备配置",395545:"服务异常,请重试或联系客服",395546:"同时观看人数达到账号最大限制,请联系客服",395547:"同时观看人数达到账号最大限制,请联系客服",395556:"服务异常,请重试或联系客服",395557:"设备取流失败,请联系硬件售后",395558:"查找录像开始时间错误",395560:"服务异常,请重试或联系客服",395561:"服务异常,请重试或联系客服",395562:"服务异常,请重试或联系客服",395563:"服务异常,请重试或联系客服",395564:"服务异常,请重试或联系客服",395566:"服务异常,请重试或联系客服",395567:"服务异常,请重试或联系客服",395568:"服务异常,请重试或联系客服",395569:"服务异常,请重试或联系客服",395600:"服务异常,请重试或联系客服",395601:"服务异常,请重试或联系客服",395602:"服务异常,请重试或联系客服",395610:"服务异常,请重试或联系客服",395620:"服务异常,请重试或联系客服",395701:"服务异常,请重试或联系客服",395702:"服务异常,请重试或联系客服",395703:"服务异常,请重试或联系客服",396001:"服务异常,请重试或联系客服",396099:"服务异常,请重试或联系客服",396101:"服务异常,请重试或联系客服",396102:"服务异常,请重试或联系客服",396103:"服务异常,请重试或联系客服",396104:"服务异常,请重试或联系客服",396105:"设备异常,请重试或联系客服",396106:"设备通道异常,请检查通道配置后重试",396107:"设备异常,请重试或联系客服",396108:"服务异常,请重试或联系客服",396109:"服务异常,请重试或联系客服",396110:"设备异常,请重试或联系客服",396501:"设备异常,请重试或联系客服",396502:"设备异常,请重试或联系客服",396503:"设备异常,请重试或联系客服",396504:"设备异常,请重试或联系客服",396505:"设备异常,请重试或联系客服",396506:"设备异常,请重试或联系客服",396508:"设备异常,请重试或联系客服",396509:"设备异常,请重试或联系客服",396510:"设备异常,请重试或联系客服",396511:"设备异常,请重试或联系客服",396512:"设备异常,请重试或联系客服",396513:"设备异常,请重试或联系客服",396514:"设备异常,请重试或联系客服",396515:"设备异常,请重试或联系客服",396516:"设备异常,请重试或联系客服",396517:"设备异常,请重试或联系客服",396518:"设备异常,请重试或联系客服",396519:"设备网络异常,请检查优化网络后重启设备再试",396520:"设备网络异常,请检查优化网络后重启设备再试",396700:"服务异常,请重试或联系客服",396701:"回放结束",397001:"服务异常,请重试或联系客服",397002:"服务异常,请重试或联系客服",397003:"服务异常,请重试或联系客服",397004:"服务异常,请重试或联系客服",397005:"设备取流连接断开,请检查网络后重试",397006:"服务异常,请重试或联系客服",397007:"服务异常,请重试或联系客服",399e3:"服务异常,请重试或联系客服",399001:"客户端网络超时",399002:"服务异常,请重试或联系客服",399016:"token失效,请更新并重试",399048:"同时观看人数达到账号最大限制,请联系客服",399049:"免费版并发数达到上限,请升级企业版使用多并发能力",3810001:"操作失败",3810002:"账号异常,操作失败",3810005:"账号异常,操作失败",3820002:"设备不存在,请检查设备连接情况",3820006:"操作失败,请检查设备网络情况",3820007:"操作失败,请检查设备网络情况",3820008:"操作过于频繁,稍后再试",3820014:"操作失败",3820032:"通道不存在请检查设备连接情况",3849999:"操作失败,请重试",386e4:"操作失败,设备不支持该操作",3860001:"操作失败,用户无权限",3860002:"设备已旋转到上限位",3860003:"设备已旋转到下限位",3860004:"设备已旋转到左限位",3860005:"设备已旋转到右限位",3860006:"操作失败,请重试",3860009:"设备正在操作中",3860020:"操作失败",BTN_RETRY:"重试",BTN_RELOAD:"重新加载",LOADING:"加载中,请稍后",TIMEFORMAT_ERROR:"时间格式有误,请确认",USE_MULTITHREADING_WARING:"您当前浏览器可以开启谷歌实验室多线程特性,获取更好播放体验,避免浏览器卡顿及崩溃,详见",OPEN_INSTRUCTIONS:"开启说明",INIT_FINSHED:"初始化播放器完成",INIT_SUCCESS:"初始化播放器成功",GET_PLAYURL_FAILED:"获取播放地址失败",VIDEO_LOADING:"视频加载中",DISCONNECT:"连接断开,请重试",DEVICE_ENCRYPTED:"设备已加密",NO_RECORD:"未找到录像片段",PLAY_FAILED:"播放失败,请检查设备及客户端网络",PLAY_SUCCESS:"播放成功",STOP_SUCCESS:"停止成功",CHANGE_PLAYURL_SUCCESS:"切换播放地址成功",CHANGE_PLAYURL_FAILED:"切换播放地址失败",GET_OSD_TIME:"获取OSD时间",GET_OSD_TIME_FAILED:"获取OSD时间失败",SET_POSTER:"设置播放器封面",RESIZE:"调整播放器尺寸",SPEED:"倍速",SPEED_RATE:"倍",SPEED_CANCEL:"取消",GET_SPEED:"获取当前播放速率",MAX_SPEED_LIMIT:"播放速度最大为4倍速度",MIN_SPEED_LIMIT:"播放速度最小为0.5倍速度",SEEK_CANNOT_CROSS_DAYS:"seek时间不能跨日期",SEEK_TIMEFORMAT_ERROR:"seek时间格式错误",PAUSE:"暂停",PAUSE_FAILED:"暂停失败",RESUME:"恢复播放",RESUME_FAILED:"恢复播放失败",CALL_END:"通话已结束",USER_DO_NOT_OWN_DEVICE:"loadingSetTextWithBtn",NO_CLOUD_RECORD:"该设备在当天没有云录制的录像",CHANGE_VIDEO_LEVEL:"切换清晰度",CHANGE_VIDEO_LEVEL_FAIL:"切换清晰度失败",GET_VIDEO_LEVEL_LIST:"获取设备支持的清晰度列表",PLEASE_INPUT_RIGHT_VIDEO_LEVEL:"请输入正确的清度",VIDEO_LEVEL_NOT_SUPPORT:"当前设备不支持该清晰度",VIDEO_LEVEL_AUTO:"自动",VIDEO_LEVEL_FLUENT:"流畅",VIDEO_LEVEL_STANDARD:"标清",VIDEO_LEVEL_HEIGH:"高清",VIDEO_LEVEL_SUPER:"超清",VIDEO_LEVEL_EXTREME:"极清",VIDEO_LEVEL_3K:"3K",VIDEO_LEVEL_4k:"4K",RESET_THEME:"重置主题",BTN_PLAY:"播放/结束播放",BTN_SOUND:"声音",BTN_RECORDVIDEO:"录屏",BTN_CAPTURE:"截图",BTN_TALK:"对讲",BTN_ZOOM:"电子放大",BTN_3D_ZOOM:"3D定位",BTN_PTZ:"云台控制",BTN_EXPEND:"全局全屏",BTN_WEBEXPEND:"网页全屏",BTN_HD:"画面清晰度",BTN_SPEED:"回放倍速",BTN_CLOUDREC:"云存储回放",BTN_CLOUDRECORD:"云录制",BTN_REC:"本地存储",DEVICE_NAME:"设备名称",DEVICE_ID:"设备序列号",CAPTURE_SUCCESS:"截图成功",CAPTURE_FAILED:"截图失败",START_RECORD_SUCCESS:"开始录制成功",START_RECORD_FAILED:"开始录制失败",STOP_RECORD_SUCCESS:"停止录制成功",STOP_RECORD_FAILED:"停止录制失败",RECORD_TIPS:"今日录像",RECORDS:"个录像",OPEN_SOUND:"开启声音",CLOSE_SOUND:"关闭声音",SOUND_OPENED:"当前已经有画面正在播放声音",ZOOM:"电子放大",START_ZOOM:"开启电子放大",CLOSE_ZOOM:"关闭电子放大",ZOOM_ADD:"+",ZOOM_SUB:"-",ZOOM_ADD_MAX:"已经放大到最大倍数8.0X",ZOOM_SUB_MIN:"已经缩小到最小倍数1.0X",ZOOM_LIMIT_MAX:"超出最大倍率8.0X",ZOOM_LIMIT_MIN:"超出最小倍率1.0X","3D_ZOOM":"3D定位","3D_ZOOM_DISABLE":"未启用3D定位功能","3D_ZOOM_FAILED":"3D定位失败,请重试",START_3D_ZOOM:"开启3D定位",CLOSE_3D_ZOOM:"关闭3D定位",DEVICE_NOT_SUPPORT_3D_ZOOM:"当前设备不支持3D定位功能","3D_ZOOM_ACTIVED":"3D定位已处于开启状态","3D_ZOOM_NOT_ACTIVED":"未启用3D定位功能","3D_ZOOM_CLOSED":"3D定位已处于关闭状态",CHANGE_ZOOM_TYPE:"改变缩放模式",FULLSCREEN:"全局全屏",FULLSCREEN_EXIT:"退出全局全屏",GET_WEB_FULLSCREEN_STATUS:"获取浏览器网页全屏状态",WEB_FULLSCREEN:"开启网页全屏",WEB_FULLSCREEN_EXIT:"退出网页全屏",DESTROY:"销毁",GET_CAPACITY:"获取设备能力级",GET_PTZ_STATUS:"获取当前云台状态",GET_PTZ_STATUS_FAILED:"未加载Theme模块,无法获取云台状态",MOBILE_HIDE_PTZ:"移动端,非全屏状态不展示云台",OPTION_PTZ_FAILED:"未加载Theme模块,无法操作云台",MOBILE_PTZ_TIPS:"请通过操控云台来调整摄像机视角",PTZ_FAST:"快",PTZ_MID:"中",PTZ_SLOW:"慢",PTZ_SPEED:"调整云台转动速度",DEVICE_ZOOM:"控制设备放大/缩小画面",DEVICE_FOCUS:"调整设备焦距",NOT_SUPPORT_DEVICE_ZOOM:"当前设备不支持物理缩放",NOT_SUPPORT_FOCUS:"当前设备不支持变焦",MIRROR:"镜像翻转",MIRROR_TYPE_ERROR:"翻转参数类型错误",CHANGE_FEC_TYPE:"切换鱼眼矫正类型",DEVICE_NOT_SUPPORT:"设备不支持鱼眼模式",TYPE_NOT_SUPPORT:"鱼眼矫正类型暂时不支持",FEC_SUPPORT_VERSION:"当前只有V3软解支持鱼眼矫正",NO_CANVAS_ID:"鱼眼矫正类型需要分屏,但是没有传正确的分屏的canvas id",SET_FEC_PARAMS:"设置3D矫正视角参数",GET_FEC_PARAMS:"获取3D矫正视角参数",SET_FEC_PARAMS_FAILED:"该矫正类型不能设置3D矫正视角参数",GET_FEC_PARAMS_FAILED:"该矫正类型不能获取3D矫正视角参数",GET_FEC_PARAMS_SUPPORT_VERSION:"当前只有V3软解支持鱼眼矫正获取3D矫正视角参数",SET_WATERMARK:"设置水印",SET_GLOBALBASETIME:"设置全局时间戳",SET_ANTIALIAS:"设置抗锯齿",TALK_PERMISSION_DENIED:"对讲失败,请检查麦克风权限",TALK_ERROR:"对讲失败,请检查麦克风或网络",TALK_TALKING:"当前已经有设备正在对讲",videoFormat:"编码格式",frameRate:"帧率",systemFormat:"封装格式",resolution:"分辨率",bitrate:"码率",frameLostRate:"丢帧率",lagRate:"卡顿比"},V={391001:"Illegal streaming address or port",391004:"Failed to connect to streaming service",395e3:"Internal service exception, please try again later",395400:"Preview streaming parameter exception",395402:"Device has no recording in the current time period, please select another time period",395403:"Service exception, please try again or contact customer service",395404:"The device is not online, Please optimize the network and restart the device to try again",395405:"Device side network is poor, please check and optimize the network and restart the device to try again",395406:"Token expired, please try again",395407:"Client URL format error",395409:"Service exception, please try again or contact customer service",395410:"Service exception, please try again or contact customer service",395411:"No permission to view the current device",395412:"Service exception, please try again or contact customer service",395413:"Service exception, please try again or contact customer service",395415:"Device channel error",395416:"The current number of viewing channels has reached the maximum limit of the device. Please restart the device or contact the device after-sales service",395451:"The device does not support this bitstream type. Please check the device channel support or contact the hardware after-sales service",395452:"The network on the device side is poor. Please check and optimize the network and restart the device to try again",395454:"The network on the device side is poor. Please check and optimize the network and restart the device to try again",395455:"The device channel is abnormal. Please check the channel configuration and try again",395456:"The device channel is abnormal. Please check the channel configuration and try again",395457:"Service exception, please try again or contact customer service",395458:"Service exception, please try again or contact customer service",395459:"Service exception, please try again or contact customer service",395460:"Service exception, please try again or contact customer service",395492:"Service exception, please try again or contact customer service",395500:"Service exception, please try again or contact customer service",395501:"Service exception, please try again or contact customer service",395503:"Service exception, please try again or contact customer service",395504:"Service exception, please try again or contact customer service",395505:"Service exception, please try again or contact customer service",395506:"Direct streaming of this device is not supported at present, please try again or contact customer service after connecting to NVR",395507:"Device 4G unlimited traffic package only supports EZVIZ Cloud Video APP, please contact APP customer service to change the package",395530:"Service exception, please try again or contact customer service",395544:"Video source does not exist, please check device configuration",395545:"Service exception, please try again or contact customer service",395546:"The number of simultaneous viewers has reached the maximum limit of the account, please contact customer service",395547:"The number of simultaneous viewers has reached the maximum limit of the account, please contact customer service",395556:"Service exception, please try again or contact customer service",395557:"Device streaming failed, please contact hardware after-sales",395558:"Error in finding the start time of recording",395560:"Service exception, please try again or contact customer service",395561:"Service exception, please try again or contact customer service",395562:"Service exception, please try again or contact customer service",395563:"Service exception, please try again or contact customer service",395564:"Service exception, please try again or contact customer service",395566:"Service exception, please try again or contact customer service",395567:"Service exception, please try again or contact customer service",395568:"Service exception, please try again or contact customer service",395569:"Service exception, please try again or contact customer service",395600:"Service exception, please try again or contact customer service",395601:"Service exception, please try again or contact customer service",395602:"Service exception, please try again or contact customer service",395610:"Service exception, please try again or contact customer service",395620:"Service exception, please try again or contact customer service",395701:"Service exception, please try again or contact customer service",395702:"Service exception, please try again or contact customer service",395703:"Service exception, please try again or contact customer service",396001:"Service exception, please try again or contact customer service",396099:"Service exception, please try again or contact customer service",396101:"Service exception, please try again or contact customer service",396102:"Service exception, please try again or contact customer service",396103:"Service exception, please try again or contact customer service",396104:"Service exception, please try again or contact customer service",396105:"Device abnormality, please try again or contact customer service",396106:"Device channel abnormality, please check the channel configuration and try again",396107:"Device abnormality, please try again or contact customer service",396108:"Service exception, please try again or contact customer service",396109:"Service exception, please try again or contact customer service",396110:"Device abnormality, please try again or contact customer service",396501:"Device abnormality, please try again or contact customer service",396502:"Device abnormality, please try again or contact customer service",396503:"Device abnormality, please try again or contact customer service",396504:"Device abnormality, please try again or contact customer service",396505:"Device abnormality, please try again or contact customer service",396506:"Device abnormality, please try again or contact customer service",396508:"Device abnormality, please try again or contact customer service",396509:"Device abnormality, please try again or contact customer service",396510:"Device abnormality, please try again or contact customer service",396511:"Device abnormality, please try again or contact customer service",396512:"Device abnormality, please try again or contact customer service",396513:"Device abnormality, please try again or contact customer service",396514:"Device abnormality, please try again or contact customer service",396515:"Device abnormality, please try again or contact customer service",396516:"Device abnormality, please try again or contact customer service",396517:"Device abnormality, please try again or contact customer service",396518:"Device abnormality, please try again or contact customer service",396519:"Device network abnormality, please check and optimize the network and restart the device to try again",396520:"Device network abnormality, please check and optimize the network and restart the device to try again",396700:"Service exception, please try again or contact customer service",396701:"Playback ends",397001:"Service exception, please try again or contact customer service",397002:"Service exception, please try again or contact customer service",397003:"Service exception, please try again or contact customer service",397004:"Service exception, please try again or contact customer service",397005:"Device streaming connection is disconnected, please check the network and try again",397006:"Service exception, please try again or contact customer service",397007:"Service exception, please try again or contact customer service",399e3:"Service exception, please try again or contact customer service",399001:"Client network timeout",399002:"Service exception, please try again or contact customer service",399016:"Token invalid, please update and retry",399048:"The number of simultaneous viewers has reached the maximum account limit, please contact customer service",399049:"The number of simultaneous viewers has reached the maximum account limit, please contact customer service",3810001:"Operation failed",3810002:"Account exception, operation failed",3810005:"Account exception, operation failed",3820002:"Device does not exist, please check the device connection status",3820006:"Operation failed, please check the network condition of the device",3820007:"Operation failed, please check the network condition of the device",3820008:"The operation is too frequent, please try again later",3820014:"Operation failed",3820032:"The channel does not exist. Please check the device connection status",3849999:"Operation failed, please try again",386e4:"Operation failed, the device does not support this operation",3860001:"Operation failed, user does not have permission",3860002:"The device has been rotated to the upper limit position",3860003:"The device has been rotated to the lower limit position",3860004:"The device has rotated to the left limit position",3860005:"The device has been rotated to the right limit position",3860006:"Operation failed, please try again",3860009:"The device is currently in operation",3860020:"Operation failed",BTN_RETRY:"Retry",BTN_RELOAD:"Reload",LOADING:"Loading, please wait",TIMEFORMAT_ERROR:"The time format is wrong, please confirm",USE_MULTITHREADING_WARING:"Your current browser can enable the multi-threaded feature of Google Labs to get a better playback experience and avoid browser freezes and crashes. For details, see:",OPEN_INSTRUCTIONS:"Enablement instructions",INIT_FINSHED:"Initialize the player completed",INIT_SUCCESS:"Initialize the player successfully",GET_PLAYURL_FAILED:"Failed to obtain the playback address",VIDEO_LOADING:"Video loading",DISCONNECT:"Connection disconnected, please try again",DEVICE_ENCRYPTED:"Device encrypted",NO_RECORD:"No video clips found",PLAY_FAILED:"Play failed, please check the device and client network",PLAY_SUCCESS:"Play successfully",STOP_SUCCESS:"Stop successfully",CHANGE_PLAYURL_SUCCESS:"Switch the playback address successfully",CHANGE_PLAYURL_FAILED:"Switch the playback address failed",GET_OSD_TIME:"Get OSD time",GET_OSD_TIME_FAILED:"Failed to get OSD time",SET_POSTER:"Set the player cover",RESIZE:"Adjust the player size",SPEED:"speeds",SPEED_RATE:"X",SPEED_CANCEL:"Cancel",GET_SPEED:"Get the current playback rate",MAX_SPEED_LIMIT:"The maximum playback speed is 4 times the speed",MIN_SPEED_LIMIT:"The minimum playback speed is 0.5 times the speed",SEEK_CANNOT_CROSS_DAYS:"The seek time cannot cross dates",SEEK_TIMEFORMAT_ERROR:"The seek time format is wrong",PAUSE:"Pause",PAUSE_FAILED:"Pause failed",RESUME:"Resume playback",RESUME_FAILED:"Resume playback failed",CALL_END:"Call ended",USER_DO_NOT_OWN_DEVICE:"loadingSetTextWithBtn",NO_CLOUD_RECORD:"The device has no cloud recorded video on that day",CHANGE_VIDEO_LEVEL:"Switch definition",CHANGE_VIDEO_LEVEL_FAIL:"Switch definition failed",GET_VIDEO_LEVEL_LIST:"Get the definition list supported by the device",PLEASE_INPUT_RIGHT_VIDEO_LEVEL:"Please enter the correct definition",VIDEO_LEVEL_NOT_SUPPORT:"The current device does not support this definition",VIDEO_LEVEL_AUTO:"Auto",VIDEO_LEVEL_FLUENT:"Fluent",VIDEO_LEVEL_STANDARD:"Standard",VIDEO_LEVEL_HEIGH:"heigh",VIDEO_LEVEL_SUPER:"Super",VIDEO_LEVEL_EXTREME:"Extreme",VIDEO_LEVEL_3K:"3K",VIDEO_LEVEL_4k:"4K",RESET_THEME:"Reset theme",BTN_PLAY:"Play/end playback",BTN_SOUND:"Sound",BTN_RECORDVIDEO:"Screen recording",BTN_CAPTURE:"Screenshot",BTN_TALK:"Intercom",BTN_ZOOM:"Electronic zoom",BTN_3D_ZOOM:"3D positioning",BTN_PTZ:"PTZ control",BTN_EXPEND:"Global full screen",BTN_WEBEXPEND:"Web page full screen",BTN_HD:"Image definition",BTN_SPEED:"Playback speed",BTN_CLOUDREC:"Cloud storage playback",BTN_CLOUDRECORD:"Cloud recording",BTN_REC:"Local storage",DEVICE_NAME:"Device name",DEVICE_ID:"Device serial number",CAPTURE_SUCCESS:"Screenshot successful",CAPTURE_FAILED:"Screenshot failed",START_RECORD_SUCCESS:"Start recording successful",START_RECORD_FAILED:"Screenshot failed",STOP_RECORD_SUCCESS:"Stop recording successful",STOP_RECORD_FAILED:"Stop recording failed",RECORD_TIPS:"Today's recording",RECORDS:" in total",OPEN_SOUND:"Turn on sound",CLOSE_SOUND:"Turn off sound",SOUND_OPENED:"There is already a picture playing sound at the moment",ZOOM:"Electronic zoom",START_ZOOM:"Turn on electronic zoom",CLOSE_ZOOM:"Turn off electronic zoom",ZOOM_ADD:"+",ZOOM_SUB:"-",ZOOM_ADD_MAX:"It has been enlarged to a maximum magnification of 8.0X",ZOOM_SUB_MIN:"It has been reduced to the minimum multiple of 1.0X",ZOOM_LIMIT_MAX:"Exceeding maximum magnification of 8.0X",ZOOM_LIMIT_MIN:"Exceeding the minimum magnification of 1.0X","3D_ZOOM":"3D positioning","3D_ZOOM_DISABLE":"3D positioning function not enabled","3D_ZOOM_FAILED":"3D positioning failed, please try again",START_3D_ZOOM:"Turn on 3D positioning",CLOSE_3D_ZOOM:"Turn off 3D positioning",DEVICE_NOT_SUPPORT_3D_ZOOM:"Current device does not support 3D positioning function","3D_ZOOM_ACTIVED":"3D positioning is already enabled","3D_ZOOM_NOT_ACTIVED":"3D positioning function is not enabled","3D_ZOOM_CLOSED":"3D positioning is already disabled",CHANGE_ZOOM_TYPE:"Change zoom mode",FULLSCREEN:"Global full screen",FULLSCREEN_EXIT:"Exit global full screen",GET_WEB_FULLSCREEN_STATUS:"Get browser web page full screen status",WEB_FULLSCREEN:"Turn on web page full screen",WEB_FULLSCREEN_EXIT:"Exit full screen webpage",DESTROY:"Destroy",GET_CAPACITY:"Get device capability level",GET_PTZ_STATUS:"Get current PTZ status",GET_PTZ_STATUS_FAILED:"Theme module is not loaded, PTZ status cannot be obtained",MOBILE_HIDE_PTZ:"Mobile terminal, PTZ is not displayed in non-full screen state",OPTION_PTZ_FAILED:"Theme module is not loaded, PTZ cannot be operated",MOBILE_PTZ_TIPS:"Adjust camera angle by manipulating gimbal",PTZ_FAST:"F",PTZ_MID:"M",PTZ_SLOW:"S",PTZ_SPEED:"Adjust the PTZ rotation speed",DEVICE_ZOOM:"Control the device to zoom in/out of the screen",DEVICE_FOCUS:"Adjusting the device's focal length",NOT_SUPPORT_DEVICE_ZOOM:"Device does not support physical zoom",NOT_SUPPORT_FOCUS:"Device does not support adjusting the focal length",MIRROR:"Mirror flip",MIRROR_TYPE_ERROR:"Flip parameter type error",CHANGE_FEC_TYPE:"Switch fisheye correction type",DEVICE_NOT_SUPPORT:"Device does not support fisheye mode",TYPE_NOT_SUPPORT:"Fisheye correction type is not supported temporarily",FEC_SUPPORT_VERSION:"Currently only V3 software solution supports fisheye correction",NO_CANVAS_ID:"Fisheye correction type requires split screen, but the correct split screen canvas id is not passed",SET_FEC_PARAMS:"Set 3D correction perspective parameters",GET_FEC_PARAMS:"Get 3D correction perspective parameters",SET_FEC_PARAMS_FAILED:"This correction type cannot set 3D correction perspective parameters",GET_FEC_PARAMS_FAILED:"This correction type cannot get 3D correction perspective parameters",GET_FEC_PARAMS_SUPPORT_VERSION:"Currently only V3 software solution supports fisheye correction Get 3D correction perspective parameters",SET_WATERMARK:"Set watermark",SET_GLOBALBASETIME:"Set global base time",SET_ANTIALIAS:"Set anti-aliasing",TALK_PERMISSION_DENIED:"Permission denied",TALK_ERROR:"Talk failed, please check microphone or network",TALK_TALKING:"Currently devices that are talking to each other",videoFormat:"Video format",frameRate:"Frame fate",systemFormat:"System format",resolution:"Resolution",bitrate:"Bitrate",frameLostRate:"Frame Lost rate",lagRate:"Lag rate"};
|
|
45
|
+
*/var Ze=function(){if(Oe)return He;function A(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}Oe=1;var e=[0,0],t={initialZoom:1,defaultCursor:"pointer",scrollVelocity:.1,animDuration:.25,allowZoom:!0,allowPan:!0,onChange:function(){},onTranslateChange:function(){},onTap:function(){},max:8,min:1,zoomStep:.1,allowTouchEvents:!1,allowWheel:!0,ignoredMouseButtons:[],doubleTouchMaxDelay:300,decelerationDuration:750},i=function(){function i(A,i){var a=this;this._dragging=!1,this.destroy=function(){a.setAllowZoom(!1),a.reset(),a.removeEventListeners()},this.setTransform=function(A){a.transform=A},this.getTransform=function(){return a.transform},this.updateTranslate=function(){var A=0,e=0;A=a.percentPos[0]<0?a.percentPos[0]<-.5*(a.zoom-1)?-.5*(a.zoom-1):a.percentPos[0]:a.percentPos[0]>.5*(a.zoom-1)?.5*(a.zoom-1):a.percentPos[0],e=a.percentPos[1]<0?a.percentPos[1]<-.5*(a.zoom-1)?-.5*(a.zoom-1):a.percentPos[1]:a.percentPos[1]>.5*(a.zoom-1)?.5*(a.zoom-1):a.percentPos[1],a.percentPos=[A,e]},this.update=function(){a.container&&(a.updateTranslate(),a.container.style.transition="transform ease-out "+a.transition+"s",a.container.style.transform="translate3d("+100*a.percentPos[0]+"%, "+100*a.percentPos[1]+"%, 0) scale("+a.zoom+")")},this.setAllowZoom=function(A){a.options.allowZoom=A},this.setZoom=function(A,e){A=parseFloat(A.toFixed(a.getPrecision(a.options.zoomStep))),a.zoom!==A&&(a.zoom=A,a.update(),null==a.options.onChange||a.options.onChange.call(a.options,+a.zoom.toFixed(a.getPrecision(a.options.zoomStep)),e))},this.getZoom=function(){return a.zoom},this.setPos=function(A){var e,t,i=null==(e=a.container)?void 0:e.clientWidth,r=null==(t=a.container)?void 0:t.clientHeight;+a.pos[0]===A[0]&&+a.pos[1]===A[1]||(a.percentPos=[A[0]/i,A[1]/r],a.update(),null==a.options.onTranslateChange||a.options.onTranslateChange.call(a.options,{posX:A[0],posY:A[1]}))},this.setTransitionDuration=function(A){a.transition=A,a.update()},this.setCursor=function(A){a.container&&(a.container.style.cssText+="cursor:"+A+";",a.cursor=A)},this.zoomIn=function(A){var e,t,i=a.pos[0],r=a.pos[1],n=a.zoom,o=n+A<(null!=(e=a.options.max)?e:8)?n+A:null!=(t=a.options.max)?t:8;o!==n&&(i=i*(o-1)/(n>1?n-1:n),r=r*(o-1)/(n>1?n-1:n)),a.setZoom(o),a.setPos([i,r]),a.setTransitionDuration(a.options.animDuration)},this.zoomOut=function(A){var e,t,i=a.pos[0],r=a.pos[1],n=a.zoom,o=n-A>(null!=(e=a.options.min)?e:1)?n-A:null!=(t=a.options.min)?t:1;o!==n&&(i=i*(o-1)/(n-1),r=r*(o-1)/(n-1)),a.setZoom(o),a.setPos([i,r]),a.setTransitionDuration(a.options.animDuration)},this.zoomToZone=function(A,e,t,i){var r;if(a.container){var n,o=a.pos[0],s=a.pos[1],g=(null==(r=a.container)?void 0:r.parentNode).getBoundingClientRect(),l=a.zoom,C=g.width/t,I=g.height/i,c=Math.min(C,I,null!=(n=a.options.max)?n:8),h=a.container.getBoundingClientRect(),B=[h.width/l/2,h.height/l/2],E=[A+t/2,e+i/2];o=(B[0]-E[0])*c,s=(B[1]-E[1])*c,a.setZoom(c),a.setPos([o,s]),a.setTransitionDuration(a.options.animDuration)}},this.getNewPosition=function(A,t,i){var r=[a.zoom,a.pos[0],a.pos[1]][0];if(1===i||!a)return e;var n=[a.container.clientWidth,a.container.clientHeight],o=n[0],s=n[1];if(i>r)return[0,0];var g=-(A-o/2)/(o/2)*i/2,l=-(t-s/2)/(s/2)*i/2;return g>i/2-.5&&(g=3.5),l>i/2-.5&&(l=3.5),[o*g,s*l]},this.fullZoomInOnPosition=function(A,e){var i,r=null!=(i=a.options.max)?i:t.max;a.setZoom(null!=r?r:t.max),a.setPos(a.getNewPosition(A,e,r)),a.setTransitionDuration(a.options.animDuration)},this.getLimitedShift=function(A,e,t,i,a){if(A>0){if(i>e)return 0;if(i+A>e)return e-i}else if(A<0){if(a<t)return 0;if(a+A<t)return t-a}return A},this.getCursor=function(A,e){return A&&e?"move":A?"ew-resize":e?"ns-resize":"auto"},this.move=function(A,e,t){if(void 0===t&&(t=0),a.container){var i=a.pos[0],r=a.pos[1],n=a.container.getBoundingClientRect(),o=a.container.parentNode.getBoundingClientRect(),s=a.transform?e:A,g=a.transform?A:e,l=a.transform?[n.height>o.bottom-o.top,g>0&&n.top-o.top<0,g<0&&n.bottom-o.bottom>0]:[n.width>o.right-o.left,s>0&&n.left-o.left<0,s<0&&n.right-o.right>0],C=l[0]||l[1]||l[2];C&&(a.transform?i+=a.getLimitedShift(g,o.top,o.bottom,n.top,n.bottom):i+=a.getLimitedShift(s,o.left,o.right,n.left,n.right));var I=a.transform?[n.width>o.right-o.left,s>0&&n.right-o.right<0,s<0&&n.left-o.left>0]:[n.height>o.bottom-o.top,g>0&&n.top-o.top<0,g<0&&n.bottom-o.bottom>0],c=I[0]||I[1]||I[2];if(c)if(a.transform){r+=function(A,e,t,i,a){if(A>0){if(a<t+1)return 0;if(a+A<t+1)return t-a}else if(A<0){if(i+1>e)return 0;if(i+1+A>e)return e-i}return A}(s,o.left,o.right,n.left,n.right)}else r+=a.getLimitedShift(g,o.top,o.bottom,n.top,n.bottom);var h=a.getCursor(C,c);a.setPos([i,r]),a.setCursor(h),a.setTransitionDuration(t)}},this.isDoubleTapping=function(){var A,e,t,i,r=(new Date).getTime();return r-(null!=(A=a.lastTouchTime)?A:0)<(null!=(e=a.options.doubleTouchMaxDelay)?e:300)&&r-(null!=(t=a.lastDoubleTapTime)?t:0)>(null!=(i=a.options.doubleTouchMaxDelay)?i:750)?(a.lastDoubleTapTime=r,!0):(a.lastTouchTime=r,!1)},this.startDeceleration=function(A,e){var t=null,i=function(r){null===t&&(t=r);var n,o,s,g=r-t,l=((null!=(n=a.options.decelerationDuration)?n:750)-g)/(null!=(o=a.options.decelerationDuration)?o:750),C=[A*l,e*l],I=C[0],c=C[1];g<(null!=(s=a.options.decelerationDuration)?s:750)&&Math.max(Math.abs(I),Math.abs(c))>1?(a.move(I,c,0),a.lastRequestAnimationId=requestAnimationFrame(i)):a.lastRequestAnimationId=null};a.lastRequestAnimationId=requestAnimationFrame(i)},this.reset=function(){a.setZoom(a.options.initialZoom,!0),a.cursor=a.options.defaultCursor,a.setTransitionDuration(a.options.animDuration),a.setPos(e)},this.addScale=function(A){void 0===A&&(A=1),a.handleZoomAdd(A)},this.handleZoomAdd=function(A){if(void 0===A&&(A=1),a.options.allowZoom&&a.options.allowWheel){var e,t=parseFloat((a.zoom+A).toFixed(a.getPrecision(a.options.zoomStep)));t>(null!=(e=a.options.max)?e:8)&&(t=8),a.setZoom(t),a.setPos(a.pos),a.setTransitionDuration(.05)}},this.subScale=function(A){void 0===A&&(A=1),a.handleZoomSub(A)},this.handleZoomSub=function(A){if(void 0===A&&(A=1),a.options.allowZoom&&a.options.allowWheel){var e=parseFloat((a.zoom-A).toFixed(a.getPrecision(a.options.zoomStep)));e<1&&(e=1),a.setZoom(e),a.setPos(a.pos),a.setTransitionDuration(.05)}},this.handleMouseWheel=function(A){if(A.preventDefault(),a.options.allowZoom&&a.options.allowWheel){var e,t,i=A.deltaY<0?a.options.scrollVelocity:0-a.options.scrollVelocity,r=parseFloat(Math.max(Math.min(a.zoom+i,null!=(e=a.options.max)?e:8),null!=(t=a.options.min)?t:1).toFixed(a.getPrecision(a.options.zoomStep)));a.setZoom(r),a.setTransitionDuration(.05)}},this.handleMouseStart=function(A){var e;A.preventDefault(),a.options.allowPan&&!(null==(e=a.options.ignoredMouseButtons)?void 0:e.includes(A.button))&&(a._dragging=!0,a.lastRequestAnimationId&&cancelAnimationFrame(a.lastRequestAnimationId),a.lastCursor=a.getCoordinates(A))},this.handleMouseMove=function(A){A.preventDefault(),a.options.allowPan&&a.lastCursor&&a._dragging&&a._touchOrMouseDrag(A)},this.handleMouseStop=function(A){A.preventDefault(),a.lastShift&&(a.startDeceleration(a.lastShift[0],a.lastShift[1]),a.lastShift=null),a.lastCursor=null,a.setCursor("auto"),a._dragging=!1},this.handleTouchStart=function(A){var e=a.isDoubleTapping();a.isMultiTouch=A.touches.length,a.options.allowTouchEvents||A.preventDefault(),a.lastRequestAnimationId&&cancelAnimationFrame(a.lastRequestAnimationId);var t=a.getCoordinates(A.touches[0]),i=t[0],r=t[1];if(a.isMultiTouch>1)a.lastCursor=[i,r];else if(e&&a.options.allowZoom)if(1===a.zoom){var n=a.container.getBoundingClientRect();n.top,n.left;var o,s,g=n.x,l=n.y;i=(s=[i-(g=(o=a.transform?[l,g]:[g,l])[0]),r-(l=o[1])])[0],r=s[1],a.fullZoomInOnPosition(i,r)}else a.reset();else a._tapStartTime=(new Date).getTime(),a.options.allowPan&&(a.lastCursor=[i,r])},this.handleTouchMove=function(A){if(a.options.allowTouchEvents||A.preventDefault(),a.lastCursor)if(1===a.isMultiTouch)a._touchOrMouseDrag(A.touches[0]),a.lastTouchDistance=null;else if(a.isMultiTouch>1){var e=a.zoom,t=a.getCoordinates(A.touches[0]),i=t[0],r=t[1],n=a.getCoordinates(A.touches[1]),o=n[0],s=n[1],g=Math.sqrt(Math.pow(o-i,2)+Math.pow(s-r,2));if(a.lastTouchDistance&&g&&g!==a.lastTouchDistance){var l,C,I;if(a.options.allowZoom)if((e+=(g-a.lastTouchDistance)/100)>(null!=(l=a.options.max)?l:8))e=null!=(I=a.options.max)?I:8;else if(e<(null!=(C=a.options.min)?C:1)){var c;e=null!=(c=a.options.min)?c:1}a.setZoom(e),a.setTransitionDuration(0)}a.lastCursor=[i,r],a.lastTouchDistance=g}},this.handleTouchStop=function(){a.lastShift&&(a.startDeceleration(a.lastShift[0],a.lastShift[1]),a.lastShift=null),a._tapStartTime&&(new Date).getTime()-a._tapStartTime<200&&(null==a.options.onTap||a.options.onTap.call(a.options)),a._tapStartTime=void 0,a.lastCursor=null,a.lastTouchDistance=null,a.isMultiTouch=0},this.container=A,this.options=Object.assign({},t,i||{}),this.percentPos=e,this.transition=this.options.animDuration,this.zoom=1,this.cursor="auto",this.lastCursor=[0,0],this.lastShift=null,this.lastTouchDistance=null,this.lastRequestAnimationId=null,this.lastTouchTime=(new Date).getTime(),this.lastDoubleTapTime=(new Date).getTime(),this.transform=!1,this.isMultiTouch=1,this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseStart=this.handleMouseStart.bind(this),this.handleMouseStop=this.handleMouseStop.bind(this),this.handleMouseWheel=this.handleMouseWheel.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchStop=this.handleTouchStop.bind(this),this.getZoom=this.getZoom.bind(this),this.setZoom=this.setZoom.bind(this)}var a=i.prototype;return a.setUpEventListeners=function(){var A=this.container;window.matchMedia("(pointer: fine)").matches?(this.options.allowWheel&&(null==A||A.addEventListener("wheel",this.handleMouseWheel,{passive:!1})),null==A||A.addEventListener("mousedown",this.handleMouseStart,{passive:!1}),null==A||A.addEventListener("mousemove",this.handleMouseMove,{passive:!1}),null==A||A.addEventListener("mouseup",this.handleMouseStop,{passive:!1}),null==A||A.addEventListener("mouseleave",this.handleMouseStop,{passive:!1})):(null==A||A.addEventListener("touchstart",this.handleTouchStart,{passive:!1}),null==A||A.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),null==A||A.addEventListener("touchend",this.handleTouchStop,{passive:!1}),null==A||A.addEventListener("touchcancel",this.handleTouchStop,{passive:!1}))},a.removeEventListeners=function(){var A=this.container;window.matchMedia("(pointer: fine)").matches?(this.options.allowWheel&&(null==A||A.removeEventListener("wheel",this.handleMouseWheel)),null==A||A.removeEventListener("mousedown",this.handleMouseStart),null==A||A.removeEventListener("mousemove",this.handleMouseMove),null==A||A.removeEventListener("mouseup",this.handleMouseStop),null==A||A.removeEventListener("mouseleave",this.handleMouseStop)):(null==A||A.removeEventListener("touchstart",this.handleTouchStart),null==A||A.removeEventListener("touchmove",this.handleTouchMove),null==A||A.removeEventListener("touchend",this.handleTouchStop),null==A||A.removeEventListener("touchcancel",this.handleTouchStop))},a.getPrecision=function(A){void 0===A&&(A=1);var e=A.toString();return e.includes(".")?e.split(".")[1].length:1},a.getCoordinates=function(A){var e=this.container.clientHeight,t=this.container.clientTop,i=this.container.clientLeft,a=this.transform?[A.clientY,e-A.clientX]:[A.clientX-t,A.clientY-i];return[a[0],a[1]]},a._touchOrMouseDrag=function(A){if(this.lastCursor){var e=this.getCoordinates(A),t=e[0],i=e[1],a=t-this.lastCursor[0],r=i-this.lastCursor[1];this.move(a,r,0),this.lastCursor=[t,i],this.lastShift=[a,r]}},A(i,[{key:"pos",get:function(){return[this.container.clientWidth*this.percentPos[0],this.container.clientHeight*this.percentPos[1]]}}]),i}();return i.VERSION="0.0.2",He=i}(),Xe=We(Ze);function qe(){return qe=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},qe.apply(this,arguments)}function je(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function ze(A){return function(){var e=this,t=arguments;return new Promise((function(i,a){var r=A.apply(e,t);function n(A){je(r,i,a,n,o,"next",A)}function o(A){je(r,i,a,n,o,"throw",A)}n(void 0)}))}}function $e(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function At(A,e){return ze((function(){var t,i,a;return $e(this,(function(r){switch(r.label){case 0:return a=A.options.env.domain+"/api/service/media/template/getDetail?accessToken="+(A.options.accessToken||(null==(i=A.options.token)||null==(t=i.httpToken)?void 0:t.url))+"&id="+e,[4,fetch(a,{method:"GET"}).then((function(A){return ze((function(){return $e(this,(function(e){switch(e.label){case 0:return[4,A.json()];case 1:return[2,e.sent()]}}))}))()})).then((function(A){if(A.meta){var e,t,i,a;if((null==(t=A.data)||null==(e=t.footer)?void 0:e.btnList)&&oe.isMobile)null==(a=A.data)||null==(i=a.footer)||i.btnList.forEach((function(e,t){var i,a;"webExpend"===e.iconId?(null==(a=A.data)||null==(i=a.footer)?void 0:i.btnList)[t]={}:"expend"===e.iconId&&(e.iconId="webExpend")}));return A.data||null}return null}))];case 1:return[2,r.sent()]}}))}))()}function et(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function tt(){return tt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},tt.apply(this,arguments)}function it(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var at={sound:"volume",webExpend:"fullscreen",expend:"globalFullscreen",pantile:"ptz",recordvideo:"record",hd:"definition"};function rt(A){return[A.filter((function(A){return"left"===A.part})),A.filter((function(A){return"right"===A.part}))]}function nt(A,e){return(t=function(){var t,i,a;return it(this,(function(r){switch(r.label){case 0:return t=e,"string"==typeof e&&e.length<32?"simple"===e?[2,null]:(t=be[e],e||(null==(i=A.logger)||i.warn("Theme template "+e+" is not exist!"),t=null),[2,t]):[3,1];case 1:if("string"!=typeof e||32!==e.length)return[3,6];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,At(A,e)];case 3:return(a=r.sent())?[2,a]:(A.emit(b.message,A.i18n.t("FETCH_THEME_FAILED"),"themeError"),[3,5]);case 4:return r.sent(),A.emit(b.message,A.i18n.t("FETCH_THEME_FAILED"),"themeError"),[3,5];case 5:return[3,7];case 6:return"[object Object]"===Object.prototype.toString.call(e)?[2,e]:[2,null];case 7:return[2]}}))},function(){var A=this,e=arguments;return new Promise((function(i,a){var r=t.apply(A,e);function n(A){et(r,i,a,n,o,"next",A)}function o(A){et(r,i,a,n,o,"throw",A)}n(void 0)}))})();var t}function ot(A,e){void 0===e&&(e=.8);return/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(A)?function(A,e){return void 0===e&&(e=.8),3!==(A=A.replace(/^#/,"")).length&&4!==A.length||(A=A.split("").map((function(A){return A+A})).join("")),"rgba("+parseInt(A.substring(0,2),16)+", "+parseInt(A.substring(2,4),16)+", "+parseInt(A.substring(4,6),16)+", "+e+")"}(A,e):/^rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(,\s*[\d.]+)?\s*\)$/.test(A)?function(A,e){void 0===e&&(e=.8);var t=A.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)\)/);return t?"rgba("+t[1]+", "+t[2]+", "+t[3]+", "+e+")":""}(A,e):""}var st=function(){function A(A){if(void 0===A&&(A={}),this._options=A,this.$container=document.createElement("div"),this._defaultClass=f+"-"+this._options.cType,this._options.cType&&this.$container.classList.add(this._defaultClass),(null==A?void 0:A.className)&&this.$container.classList.add(A.className),(null==A?void 0:A.color)&&(this.$container.style.cssText+="--"+f+"-default-color: "+A.color+";"),(null==A?void 0:A.activeColor)&&(this.$container.style.cssText+="--"+f+"-active-color: "+A.activeColor+";"),null==A?void 0:A.backgroundColor){var e=ot(null==A?void 0:A.backgroundColor);e?"header"===this._options.cType?e="background: linear-gradient(0deg, transparent 0, "+e+");":"footer"===this._options.cType&&(e="background: linear-gradient(180deg, transparent 0, "+e+");"):e="background: "+(null==A?void 0:A.backgroundColor)+";",this.$container.style.cssText+=e+";"}A.getPopupContainer?this.$popupContainer=null==A.getPopupContainer?void 0:A.getPopupContainer.call(A):this.$popupContainer=document.body,this.$left=document.createElement("div"),this.$left.classList.add(this._defaultClass+"-left"),this.$right=document.createElement("div"),this.$right.classList.add(this._defaultClass+"-right"),this.$container.appendChild(this.$left),this.$container.appendChild(this.$right),this.$popupContainer.appendChild(this.$container)}return A.prototype.destroy=function(){var A;null==(A=this.$popupContainer)||A.removeChild(this.$container)},A}();function gt(){return gt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},gt.apply(this,arguments)}function lt(A,e){return lt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},lt(A,e)}var Ct=function(A){function e(e){return void 0===e&&(e={}),A.call(this,gt({},e,{cType:"footer"}))||this}return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&<(A,e)}(e,A),e}(st);function It(){return It=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},It.apply(this,arguments)}function ct(A,e){return ct=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},ct(A,e)}var ht=function(A){function e(e){return void 0===e&&(e={}),A.call(this,It({},e,{cType:"header"}))||this}return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&ct(A,e)}(e,A),e}(st);function Bt(){return Bt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Bt.apply(this,arguments)}function Et(A,e){return Et=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Et(A,e)}var xt=function(A){function e(e){return A.call(this,Bt({},e,{controlType:"button",classNameSuffix:"global-fullscreen"}))||this}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Et(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e;this.$container.innerHTML=SA({title:null==(A=this.locale)?void 0:A.BTN_EXIT_GLOBAL_FULLSCREEN})+DA({title:null==(e=this.locale)?void 0:e.BTN_GLOBAL_FULLSCREEN})},t._onControlClick=function(){var A,e;this.isCurrentFullscreen&&this._$rootContainer.classList.contains(f+"-global-fullscreen")?(this._$rootContainer.classList.remove(f+"-global-fullscreen"),null==(A=this._fullscreenUtil)||A.exitFullscreen()):(this._$rootContainer.classList.add(f+"-global-fullscreen"),null==(e=this._fullscreenUtil)||e.fullscreen())},e}(_e);function dt(){return dt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},dt.apply(this,arguments)}function Qt(A,e){return Qt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Qt(A,e)}var ft,ut=function(A){function e(e){var t;return(t=A.call(this,dt({},e,{tagName:"span",classNameSuffix:"capture-picture"}))||this)._timer=null,t.options=e,t._render(),"function"==typeof t.options.onCapture&&t.on(b.control.capturePictureResult,t.options.onCapture),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Qt(A,e)}(e,A);var t=e.prototype;return t.destroy=function(){this._timer&&(clearTimeout(this._timer),this._timer=null),A.prototype.destroy.call(this)},t._render=function(){var A;this.$container.innerHTML=RA({title:null==(A=this.locale)?void 0:A.BTN_CAPTURE})},t._onControlClick=function(e){var t,i,a=this;this.active=!0,this.emit(b.control.capturePicture,{type:null!=(t=this.options.type)?t:"download",quality:this.options.quality||.9,cloudRecUpload:null==(i=this.options.cloudRecUpload)||i}),this._timer&&(clearTimeout(this._timer),this._timer=null),this._timer=setTimeout((function(){a._timer&&(clearTimeout(a._timer),a._timer=null),a.active=!1}),200),A.prototype._onControlClick.call(this,e)},e}(k),pt={},mt=function(){if(ft)return pt;ft=1;var A=g,e=l,t={language:"zh",env:{domain:"https://open.ys7.com"},accessToken:"",speed:2,locales:{zh:{GET_PTZ_STATUS:"获取当前云台状态",GET_PTZ_STATUS_FAILED:"未加载Theme模块,无法获取云台状态",MOBILE_HIDE_PTZ:"移动端,非全屏状态不展示云台",OPTION_PTZ_FAILED:"未加载Theme模块,无法操作云台",MOBILE_PTZ_TIPS:"请通过操控云台来调整摄像机视角",PTZ_FAST:"快",PTZ_MID:"中",PTZ_SLOW:"慢",PTZ_SPEED:"调整云台转动速度",DEVICE_ZOOM:"控制设备放大/缩小画面",DEVICE_FOCUS:"调整设备焦距"},en:{GET_PTZ_STATUS:"Get current PTZ status",GET_PTZ_STATUS_FAILED:"Theme module is not loaded, PTZ status cannot be obtained",MOBILE_HIDE_PTZ:"Mobile terminal, PTZ is not displayed in non-full screen state",OPTION_PTZ_FAILED:"Theme module is not loaded, PTZ cannot be operated",MOBILE_PTZ_TIPS:"Adjust camera angle by manipulating gimbal",PTZ_FAST:"F",PTZ_MID:"M",PTZ_SLOW:"S",PTZ_SPEED:"Adjust the PTZ rotation speed",DEVICE_ZOOM:"Control the device to zoom in/out of the screen",DEVICE_FOCUS:"Adjusting the device's focal length"}}},i={1:1,2:3,3:7,slow:1,mid:3,fast:7},a="ez-ptz",r="ez-mobile-ptz",n=a+"-speed-active",o=a+"-direction",s=function(){function e(e,a){var r,n,o;if(void 0===a&&(a={}),!e)throw new Error("Ptz container is required");(this.options=A(t,a,{clone:!1}),null==(r=this.options.locales)?void 0:r[this.options.language])?this.locale=null==(n=this.options.locales)?void 0:n[this.options.language]:this.locale=null==(o=this.options.locales)?void 0:o.zh;this.$container=e,this.speed=i[this.options.speed||2]}var a=e.prototype;return a.updateOptions=function(e){this.options=A(this.options,e,{clone:!1})},a.destroy=function(){},e}();function C(A,e){return C=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},C(A,e)}var I=function(A){function e(e,t){var i;return(i=A.call(this,e,t)||this)._touchstart=i._touchstart.bind(i),i._touchend=i._touchend.bind(i),i._render(),i}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&C(A,e)}(e,A);var t=e.prototype;return t.destroy=function(){this._removeEventListener(),this.$content&&(this.$content.remove(),this.$content=null),A.prototype.destroy.call(this)},t._render=function(){this.$content=document.createElement("div"),this.$content.classList.add(r+"-content"),this.$content.innerHTML='\n <div class="'+r+'-wrap">\n <div class="'+r+'-container">\n <div class="'+r+"-center "+r+'-center"></div>\n <div class="'+r+"-icon "+r+"-top "+r+'-default"></div>\n <div class="'+r+"-icon "+r+"-left "+r+'-default"></div>\n <div class="'+r+"-icon "+r+"-bottom "+r+'-default"></div>\n <div class="'+r+"-icon "+r+"-right "+r+'-default"></div>\n </div>\n </div>\n ',this.$container.appendChild(this.$content),this._addEventListener()},t._addEventListener=function(){var A=this.$content.querySelector("."+r+"-wrap"),e="PointerEvent"in window?"pointerdown":"touchstart",t="PointerEvent"in window?"pointerup":"touchend";A&&(A.addEventListener(e,this._touchstart),A.addEventListener(t,this._touchend))},t._touchstart=function(A){A.preventDefault(),this._handlePtzTouch(A,"start")},t._touchend=function(A){A.preventDefault(),this._handlePtzTouch(A,"stop")},t._removeEventListener=function(){var A=this.$content.querySelector("."+r+"-wrap"),e="PointerEvent"in window?"pointerdown":"touchstart",t="PointerEvent"in window?"pointerup":"touchend";A&&(A.removeEventListener(e,this._touchstart),A.removeEventListener(t,this._touchend))},t._handlePtzTouch=function(A,e){var t,i,a,n,o,s,g;if(!this.options.accessToken&&!(null==(i=this.options.token)||null==(t=i.deviceToken)?void 0:t.video))throw new Error("Ptz accessToken or token.deviceToken.video is required");var l,C=this.$content.querySelector("."+r+"-wrap"),I=C.getBoundingClientRect(),c=I.left+130,h=I.top+130,B=(A.x||(null==(a=A.changedTouches[0])?void 0:a.clientX))-c,E=(A.y||(null==(n=A.changedTouches[0])?void 0:n.clientY))-h,x=0,d=(null==(o=this.options.env)?void 0:o.domain)+"/api/lapp/device/ptz/start",Q=this.options.accessToken||(null==(g=this.options.token)||null==(s=g.deviceToken)?void 0:s.video),f=C.querySelectorAll("."+r+"-icon");(Math.abs(B)>Math.abs(E)?B>0?(x=3,f[3].className=f[3].className.replace(r+"-default",r+"-active")):(x=2,f[1].className=f[1].className.replace(r+"-default",r+"-active")):E>0?(x=1,f[2].className=f[2].className.replace(r+"-default",r+"-active")):(x=0,f[0].className=f[0].className.replace(r+"-default",r+"-active")),C.style.cssText="background-image:linear-gradient("+(0===x?180:1===x?0:2===x?90:270)+"deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)","stop"===e)&&(d=(null==(l=this.options.env)?void 0:l.domain)+"/api/lapp/device/ptz/stop",C.style.cssText="",f[3].className=f[3].className.replace(r+"-active",r+"-default"),f[1].className=f[1].className.replace(r+"-active",r+"-default"),f[2].className=f[2].className.replace(r+"-active",r+"-default"),f[0].className=f[0].className.replace(r+"-active",r+"-default"));var u=null==this.options.onDirection?void 0:this.options.onDirection.call(this.options,{direction:x,speed:this.speed,type:e}),p=new FormData;p.append("deviceSerial",this.options.deviceSerial+""),p.append("channelNo",this.options.channelNo+""),p.append("speed","1"),p.append("direction",x+""),p.append("accessToken",Q),fetch(d,{method:"POST",body:p}).then((function(A){return A.json()})).then((function(A){200===A.code||[60005,60002,60003,60004].includes(+A.code)&&(C.style.cssText="background-image:linear-gradient("+(0===x?180:1===x?0:2===x?90:270)+"deg, #f45656 0%, rgba(100,143,252,0.00) 50%)"),null==u||u(A)})).catch((function(A){})).finally((function(){u=null}))},e}(s);function c(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function h(A){return function(){var e=this,t=arguments;return new Promise((function(i,a){var r=A.apply(e,t);function n(A){c(r,i,a,n,o,"next",A)}function o(A){c(r,i,a,n,o,"throw",A)}n(void 0)}))}}function B(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function E(A,e){return E=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},E(A,e)}function x(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var d=function(A){function t(t,i){var r;return void 0===i&&(i={}),(r=A.call(this,t,i)||this)._isMobile=e.isMobile(),r._isRotate=!1,r._clearTimer=null,r._$wrapper=document.createElement("div"),r._$wrapper.className=a+"-container-wrap",r._$directionCircleContainer=document.createElement("div"),r._$directionCircleContainer.classList.add(a+"-container"),r._$directionCircleContainer.innerHTML='\n <div class="'+a+"-main "+o+'-center"></div>\n <div class="'+a+"-icon "+o+'-top" data-direction="0"></div>\n <div class="'+a+"-icon "+o+'-top-left" data-direction="4"></div>\n <div class="'+a+"-icon "+o+'-left" data-direction="2"></div>\n <div class="'+a+"-icon "+o+'-left-bottom" data-direction="5"></div>\n <div class="'+a+"-icon "+o+'-bottom" data-direction="1"></div>\n <div class="'+a+"-icon "+o+'-bottom-right" data-direction="7"></div>\n <div class="'+a+"-icon "+o+'-right" data-direction="3"></div>\n <div class="'+a+"-icon "+o+'-right-top" data-direction="6"></div>\n ',r._$wrapper.appendChild(r._$directionCircleContainer),r._$speedContainer=document.createElement("div"),r._$speedContainer.classList.add(a+"-speed-container"),r._$speedContainer.innerHTML='\n <div class="'+a+'-speed-progress" title="'+r.locale.PTZ_SPEED+'">\n <div class="'+a+'-speed-progress-line">\n <div class="'+a+"-speed-progress-line-dot "+(1===r.speed?n:"")+'" data-id="slow" data-index="1" data-value="1"></div>\n <div class="'+a+"-speed-progress-line-dot "+(3===r.speed?n:"")+'" data-id="mid" data-index="2" data-value="3"></div>\n <div class="'+a+"-speed-progress-line-dot "+(7===r.speed?n:"")+'" data-id="fast" data-index="3" data-value="7"></div>\n </div>\n <div class="'+a+'-speed-progress-points">\n <div class="'+a+'-speed-progress-points-slow">\n '+r.locale.PTZ_SLOW+'\n </div>\n <div class="'+a+'-speed-progress-points-mid">\n '+r.locale.PTZ_MID+'\n </div>\n <div class="'+a+'-speed-progress-points-fast">\n '+r.locale.PTZ_FAST+"\n </div>\n </div>\n </div>\n ",r._$wrapper.appendChild(r._$speedContainer),r._$btnContainer=document.createElement("div"),r._$btnContainer.classList.add(a+"-btn-container"),r._$btnContainer.innerHTML='\n <div class="'+a+'-btn-zoom" title="'+r.locale.DEVICE_ZOOM+'" style="user-select: none;">\n <div class="'+a+'-btn-zoom-add" style="user-select: none;">\n <svg viewBox="0 0 1088 1024" version="1.1" width="20" height="20">\n <path d="M563.2 198.4c179.2 0 326.4 147.2 326.4 326.4s-147.2 326.4-326.4 326.4S230.4 704 230.4 524.8s147.2-326.4 332.8-326.4z m0 64c-147.2 0-262.4 115.2-262.4 262.4s115.2 262.4 262.4 262.4 262.4-115.2 262.4-262.4S704 262.4 563.2 262.4z" fill="#ffffff"></path>\n <path d="M691.2 556.8H428.8c-19.2 0-32-12.8-32-32s12.8-32 32-32h262.4c19.2 0 32 12.8 32 32s-12.8 32-32 32z" fill="#ffffff">\n </path>\n <path d="M556.8 691.2c-19.2 0-32-12.8-32-32V396.8c0-19.2 12.8-32 32-32s32 12.8 32 32v262.4c0 19.2-12.8 32-32 32z" fill="#ffffff"></path>\n </svg>\n </div>\n <div class="'+a+'-btn-zoom-sub" style="user-select: none;">\n <svg viewBox="0 0 1088 1024" version="1.1" width="20" height="20">\n <path d="M569.6 838.4c-172.8 0-307.2-140.8-307.2-307.2s140.8-307.2 307.2-307.2 307.2 140.8 307.2 307.2-140.8 307.2-307.2 307.2z m0-64c134.4 0 249.6-108.8 249.6-249.6S704 281.6 569.6 281.6 320 396.8 320 531.2s108.8 243.2 249.6 243.2z" fill="#ffffff"></path>\n <path d="M691.2 563.2H448c-19.2 0-32-12.8-32-32s12.8-38.4 32-38.4h249.6c19.2 0 32 12.8 32 32s-19.2 38.4-38.4 38.4z" fill="#ffffff"></path>\n </svg>\n </div>\n </div>\n <div class="'+a+'-btn-focal" title="'+r.locale.DEVICE_FOCUS+'" style="user-select: none;">\n <div class="'+a+'-btn-focal-add" style="user-select: none;">\n <svg viewBox="0 0 1088 1024" version="1.1" width="20" height="20">\n <path d="M646.4 825.6H320c-44.8 0-83.2-38.4-83.2-83.2V409.6c0-44.8 38.4-83.2 83.2-83.2h326.4c44.8 0 83.2 38.4 83.2 83.2v326.4c0 51.2-38.4 89.6-83.2 89.6zM320 390.4c-12.8 0-19.2 6.4-19.2 19.2v326.4c0 12.8 6.4 19.2 19.2 19.2h326.4c12.8 0 19.2-6.4 19.2-19.2V409.6c0-12.8-6.4-19.2-19.2-19.2H320z" fill="#ffffff"></path>\n <path d="M396.8 358.4V281.6c0-25.6 25.6-51.2 51.2-51.2h326.4c25.6 0 51.2 25.6 51.2 51.2v326.4c0 25.6-25.6 51.2-51.2 51.2H704l-6.4-268.8" fill="#ffffff"></path>\n </svg>\n </div>\n <div class="'+a+'-btn-focal-sub" style="user-select: none;">\n <svg viewBox="0 0 1088 1024" version="1.1" width="20" height="20">\n <path d="M320 358.4h326.4c25.6 0 51.2 25.6 51.2 51.2v326.4c0 25.6-25.6 51.2-51.2 51.2H320c-25.6 0-51.2-25.6-51.2-51.2V409.6c0-25.6 25.6-51.2 51.2-51.2z" fill="#ffffff"></path>\n <path d="M774.4 697.6H704c-19.2 0-32-12.8-32-32s12.8-32 32-32h70.4c12.8 0 19.2-6.4 19.2-19.2V281.6c0-12.8-6.4-19.2-19.2-19.2H448c-12.8 0-19.2 6.4-19.2 19.2v70.4c0 19.2-12.8 32-32 32s-32-12.8-32-25.6V281.6c0-44.8 38.4-83.2 83.2-83.2h326.4c44.8 0 83.2 38.4 83.2 83.2v326.4c0 51.2-38.4 89.6-83.2 89.6z" fill="#ffffff"></path>\n </svg>\n </div>\n </div>\n ',r._$wrapper.appendChild(r._$btnContainer),t.appendChild(r._$wrapper),r._$directionCircleContainer.onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handlePtzTouch(A,"start")},r._$directionCircleContainer.onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handlePtzTouch(A,"stop")},r._$directionCircleContainer.ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handlePtzTouch(A,"start")},r._$directionCircleContainer.ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handlePtzTouch(A,"stop")},r._onSwitchSpeed=function(A){var e=Array.from(r._$speedContainer.querySelectorAll("."+a+"-speed-progress-line-dot"));if(e.includes(A.target)&&!A.target.classList.contains(n)){e.forEach((function(e){e===A.target?e.classList.add(n):e.classList.remove(n)}));var t=A.target.getAttribute("data-value"),i=A.target.getAttribute("data-index");r.speed=+t,null==r.options.onSpeedChange||r.options.onSpeedChange.call(r.options,+i)}},r._$speedContainer.onmouseup=r._onSwitchSpeed,r._isMobile&&(r._$speedContainer.ontouchend=r._onSwitchSpeed),r._$btnContainer.querySelector("."+a+"-btn-zoom-add")&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-add").onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","add","start")},r._$btnContainer.querySelector("."+a+"-btn-zoom-add").onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","add","stop")}),r._$btnContainer.querySelector("."+a+"-btn-zoom-sub")&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-sub").onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","sub","start")},r._$btnContainer.querySelector("."+a+"-btn-zoom-sub").onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","sub","stop")}),r._$btnContainer.querySelector("."+a+"-btn-focal-add")&&(r._$btnContainer.querySelector("."+a+"-btn-focal-add").onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","add","start")},r._$btnContainer.querySelector("."+a+"-btn-focal-add").onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","add","stop")}),r._$btnContainer.querySelector("."+a+"-btn-focal-sub")&&(r._$btnContainer.querySelector("."+a+"-btn-focal-sub").onmousedown=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","sub","start")},r._$btnContainer.querySelector("."+a+"-btn-focal-sub").onmouseup=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","sub","stop")}),r._isMobile&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-add")&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-add").ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","add","start")},r._$btnContainer.querySelector("."+a+"-btn-zoom-add").ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","add","stop")}),r._$btnContainer.querySelector("."+a+"-btn-zoom-sub")&&(r._$btnContainer.querySelector("."+a+"-btn-zoom-sub").ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","sub","start")},r._$btnContainer.querySelector("."+a+"-btn-zoom-sub").ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("zoom","sub","stop")}),r._$btnContainer.querySelector("."+a+"-btn-focal-add")&&(r._$btnContainer.querySelector("."+a+"-btn-focal-add").ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","add","start")},r._$btnContainer.querySelector("."+a+"-btn-focal-add").ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","add","stop")}),r._$btnContainer.querySelector("."+a+"-btn-focal-sub")&&(r._$btnContainer.querySelector("."+a+"-btn-focal-sub").ontouchstart=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","sub","start")},r._$btnContainer.querySelector("."+a+"-btn-focal-sub").ontouchend=function(A){A.preventDefault(),A.stopPropagation(),r._handleBtnTouch("focal","sub","stop")})),r}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&E(A,e)}(t,A);var i=t.prototype;return i.destroy=function(){this._clearTimer&&(clearTimeout(this._clearTimer),this._clearTimer=null),this._$directionCircleContainer&&(this._$directionCircleContainer.remove(),this._$directionCircleContainer=null),this._$speedContainer&&(this._onSwitchSpeed=null,this._$speedContainer.remove(),this._$speedContainer=null),this._$btnContainer&&(this._$btnContainer.remove(),this._$btnContainer=null),this._$wrapper&&(this._$wrapper.remove(),this._$wrapper=null),A.prototype.destroy.call(this)},i._handlePtzTouch=function(A,e){var t,i,a,r,n,o=this;if(!this.options.accessToken&&!(null==(i=this.options.token)||null==(t=i.deviceToken)?void 0:t.video))throw new Error("Ptz accessToken or token.deviceToken.video is required");this._ptzQueue||(this._ptzQueue=Promise.resolve());var s=this._$directionCircleContainer.getBoundingClientRect(),g=s.left+(this._$directionCircleContainer.clientWidth+2)/2,l=s.top+(this._$directionCircleContainer.clientHeight+2)/2,C=A.x||A.changedTouches[0].clientX,I=A.y||A.changedTouches[0].clientY,c=0,B=(null==(a=this.options.env)?void 0:a.domain)+"/api/lapp/device/ptz/start",E=this.options.accessToken||(null==(n=this.options.token)||null==(r=n.deviceToken)?void 0:r.video),d=0;function Q(A,e){var t=Math.atan2(e,A);t<0&&(t+=2*Math.PI);var i=t*(180/Math.PI)-225-12.5;return i<0&&(i+=360),Math.floor(i/45)+1}var f,u=C-g,p=I-l;if(this.isRotate)switch(Q(u,p)){case 1:c=2,d=90;break;case 2:c=4,d=135;break;case 3:c=0,d=180;break;case 4:c=6,d=225;break;case 5:c=3,d=270;break;case 6:c=7,d=315;break;case 7:c=1,d=0;break;case 8:c=5,d=45}else switch(Q(u,p)){case 1:c=0,d=180;break;case 2:c=6,d=225;break;case 3:c=3,d=270;break;case 4:c=7,d=315;break;case 5:c=1,d=0;break;case 6:c=5,d=45;break;case 7:c=2,d=90;break;case 8:c=4,d=135}(this._clearTimer&&(clearTimeout(this._clearTimer),this._clearTimer=null),this._$directionCircleContainer.style.cssText="start"===e?"background-image:linear-gradient("+d+"deg, #4277FF 0%, rgba(100,143,252,0.00) 30%)":"","stop"===e)&&(B=(null==(f=this.options.env)?void 0:f.domain)+"/api/lapp/device/ptz/stop");var m=null==this.options.onDirection?void 0:this.options.onDirection.call(this.options,{areaId:Q(u,p),direction:c,backDeg:d,isRotate:this.isRotate,speed:this.speed,type:e}),_=new FormData;_.append("deviceSerial",this.options.deviceSerial+""),_.append("channelNo",this.options.channelNo+""),_.append("speed",this.speed+""),_.append("direction",c+""),_.append("accessToken",E),this._ptzQueue=this._ptzQueue.then((function(){return h((function(){var A;return x(this,(function(t){switch(t.label){case 0:return A=this,[4,fetch(B,{method:"POST",body:_}).then((function(A){return h((function(){return x(this,(function(e){switch(e.label){case 0:return[4,A.json()];case 1:return[2,e.sent()]}}))}))()})).then((function(e){var t;null==m||m(e);var i=e.code||(null==e||null==(t=e.result)?void 0:t.code);return[6e4,60001,60002,60003,60004,60005,60006,10002].includes(+i)&&(A._$directionCircleContainer.style.cssText="background-image:linear-gradient("+d+"deg, #f45656 0%, rgba(100,143,252,0.00) 30%)"),e})).catch((function(A){})).finally((function(){m=null,"stop"===e&&(A._clearTimer=setTimeout((function(){A._$directionCircleContainer.style.cssText=""}),1e3))}))];case 1:return[2,t.sent()]}}))})).call(o)})),"stop"===e&&(this._ptzQueue=this._ptzQueue.finally((function(){})))},i._handleBtnTouch=function(A,e,t){var i,a,r,n,o=this;if(!this.options.accessToken&&!(null==(i=this.options.token)?void 0:i.deviceToken.video))throw new Error("Ptz accessToken or token.deviceToken.video is required");this._ptzOperation||(this._ptzOperation=Promise.resolve());var s=8;s="zoom"===A?"add"===e?8:9:"add"===e?10:11;var g,l=(null==(a=this.options.env)?void 0:a.domain)+"/api/lapp/device/ptz/start",C=this.options.accessToken||(null==(n=this.options.token)||null==(r=n.deviceToken)?void 0:r.video);"stop"===t&&(l=(null==(g=this.options.env)?void 0:g.domain)+"/api/lapp/device/ptz/stop");var I=null==this.options.onDirection?void 0:this.options.onDirection.call(this.options,{btn:A,option:e,type:t}),c=new FormData;c.append("deviceSerial",this.options.deviceSerial+""),c.append("channelNo",this.options.channelNo+""),c.append("speed",this.speed+""),c.append("direction",s+""),c.append("accessToken",C),this._ptzOperation=this._ptzOperation.then((function(){return h((function(){return x(this,(function(A){switch(A.label){case 0:return[4,fetch(l,{method:"POST",body:c}).then((function(A){return h((function(){return x(this,(function(e){switch(e.label){case 0:return[4,A.json()];case 1:return[2,e.sent()]}}))}))()})).then((function(A){return null==I||I(A),A})).catch((function(A){})).finally((function(){I=null}))];case 1:return[2,A.sent()]}}))}))()})),"stop"===t&&(this._ptzOperation=this._ptzOperation.finally((function(){o._ptzOperation=null})))},B(t,[{key:"isRotate",get:function(){return this._isRotate},set:function(A){this._isRotate=A}}]),t}(s);return pt.BasePtz=s,pt.MobilePtz=I,pt.Ptz=d,pt}();function _t(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function yt(){return yt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},yt.apply(this,arguments)}function St(A,e){return St=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},St(A,e)}var Dt=function(A){function e(e){var t;return(t=A.call(this,yt({},e,{tagName:"span",controlType:"button",classNameSuffix:"ptz"}))||this)._isRotated=!1,t._options=e,t._render(),t._onDBlPanelClick=t._onDBlPanelClick.bind(t),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&St(A,e)}(e,A);var t=e.prototype;return t.destroy=function(){var e,t,i;this._ptzControl&&(this._ptzControl.destroy(),this._ptzControl=null),this._ptzControl1&&(this._ptzControl1.destroy(),this._ptzControl1=null),null==(e=this.$panel)||e.removeEventListener("dblclick",this._onDBlPanelClick),null==(i=this.$panel)||null==(t=i.remove)||t.call(i),A.prototype.destroy.call(this)},t._render=function(){var A;this.$container.innerHTML=FA({title:null==(A=this.locale)?void 0:A.BTN_PTZ}),this._renderPanel()},t._renderPanel=function(){this._options.rootContainer&&(this.$panel=document.createElement("div"),this.$panel.classList.add(f+"-ptz-panel",f+"-hide"),this._options.rootContainer.appendChild(this.$panel),this.$turntable=document.createElement("div"),this.$turntable.classList.add(f+"-ptz-turntable"),this.$panel.appendChild(this.$turntable),this._ptzControl=new mt.Ptz(this.$turntable,yt({},this._options,{onSpeedChange:this._onSpeedChange.bind(this),onDirection:this._onDirection.bind(this)})),this.$panel.addEventListener("dblclick",this._onDBlPanelClick))},t.renderMobileExtend=function(A){this._ptzControl1||(this._ptzControl1=new mt.MobilePtz(A,yt({},this._options,{onSpeedChange:this._onSpeedChange.bind(this),onDirection:this._onDirection.bind(this)})))},t.updateOptions=function(A){this._ptzControl&&this._ptzControl.updateOptions(A),this._ptzControl1&&this._ptzControl.updateOptions(A)},t._onSpeedChange=function(A){this.emit(b.control.ptzSpeedChange,A),null==this._options.onSpeedChange||this._options.onSpeedChange.call(this._options,A)},t._onDirection=function(A){var e=this;return function(t){var i,a=+(t.code||(null==t||null==(i=t.result)?void 0:i.code));"start"===A.type&&200!==a&&e.emit(b.control.ptzError,{code:a,localeKey:"zoom"===A.btn&&6e4===a?"NOT_SUPPORT_DEVICE_ZOOM":"focal"===A.btn&&60006===a?"NOT_SUPPORT_FOCUS":"38"+a,msg:t.msg})}},t._onControlClick=function(e){A.prototype._onControlClick.call(this,e),this.active=!this.active},t._onDBlPanelClick=function(A){A.stopPropagation(),A.preventDefault()},t.reset=function(A){this.active=!1},_t(e,[{key:"isRotated",get:function(){return this._isRotated},set:function(A){this._ptzControl.isRotate=A,this._isRotated=A}},{key:"active",get:function(){return this._active},set:function(A){this._disabled&&!this._active||(this._active=A,this._updateActiveState(A),this._active?this.$panel.classList.remove(f+"-hide"):this.$panel.classList.add(f+"-hide"))}}]),e}(k);function Rt(A,e){void 0===e&&(e="MM:SS");var t=Math.floor(A/3600),i=Math.floor(A%3600/60),a=A%60,r=function(A){return A.toString().padStart(2,"0")};return e.replace("HH",r(t)).replace("MM",r(i)).replace("SS",r(a))}function Ft(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function wt(){return wt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},wt.apply(this,arguments)}function bt(A,e){return bt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},bt(A,e)}var vt={maxDuration:3600},Pt=function(A){function e(e){var t;return(t=A.call(this,wt({},e,{tagName:"span",controlType:"button",classNameSuffix:"record"}))||this)._seconds=0,t._options=Object.assign({},vt,e),t._render(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&bt(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A;this.$container.innerHTML=wA({title:null==(A=this.locale)?void 0:A.BTN_RECORDVIDEO})},t._renderTimer=function(){var A,e,t=this;this._timerNode=document.createElement("span"),this._timerNode.className=f+"-record-timer",null==(e=this._options)||null==(A=e.rootContainer)||A.appendChild(this._timerNode),this._timerNode.innerHTML=bA()+'<span class="'+f+'-record-timer-time">'+Rt(this._seconds)+"<span>";var i=this._timerNode.querySelector("."+f+"-record-timer-time");this._timer=setInterval((function(){t._seconds++,t._seconds>=t._options.maxDuration?t._destroyTimer():i&&(i.innerHTML=""+Rt(t._seconds))}),1e3)},t.reset=function(){this.active&&(this.active=!1,A.prototype.reset.call(this))},t.destroy=function(){this._destroyTimer(),A.prototype.destroy.call(this)},t._destroyTimer=function(){this._seconds=0,this._timer&&(clearInterval(this._timer),this._timer=null),this._timerNode&&(this._timerNode.remove(),this._timerNode=null),this._active=!1},t._onControlClick=function(e){this.active=!this.active,A.prototype._onControlClick.call(this,e)},Ft(e,[{key:"active",get:function(){return this._active},set:function(A){this._disabled&&!this._active||this._active!==A&&(this._active=A,this._updateActiveState(A),this.active?this._renderTimer():this._destroyTimer(),this.emit(b.control.recordingChange,this._active))}}]),e}(k);function kt(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function Tt(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function Nt(){return Nt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Nt.apply(this,arguments)}function Mt(A,e){return Mt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Mt(A,e)}function Lt(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var Yt=function(A){function e(e){var t;return(t=A.call(this,Nt({},e,{tagName:"span",controlType:"button",classNameSuffix:"talk"}))||this)._value=0,t._options=e,t._render(),t.on(b.talkingChange,(function(A){t.active!==A&&(t.active=A,t._render())})),t.on(b.talkVolumeChange,(function(A){var e,i;t.value=A,null==(i=t._options)||null==(e=i.onChange)||e.call(i,A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Mt(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e;this.$container.innerHTML=this.active?PA({title:null==(A=this.locale)?void 0:A.BTN_TALK}):vA({title:null==(e=this.locale)?void 0:e.BTN_TALK})},t.reset=function(e){this.active&&(this._value=0,this.active=!1,this._render(),this.emit(b.control.talkingChange,!1),A.prototype.reset.call(this,e))},t.destroy=function(){this.active&&this.reset(),A.prototype.destroy.call(this)},t._onControlClick=function(e){var t,i=this;return(t=function(){return Lt(this,(function(t){return A.prototype._onControlClick.call(i,e),this.active=!this.active,this.emit(b.control.talkingChange,this.active),this._render(),[2]}))},function(){var A=this,e=arguments;return new Promise((function(i,a){var r=t.apply(A,e);function n(A){kt(r,i,a,n,o,"next",A)}function o(A){kt(r,i,a,n,o,"throw",A)}n(void 0)}))}).call(this)},Tt(e,[{key:"value",get:function(){return this._value},set:function(A){if(this.active&&!(A<0||A>1)){this._value=A;var e="silent";A>0&&A<.25?e="low":A>=.25&&A<.5?e="normal":A>=.5&&A<.75?e="high":A>=.75&&(e="deafening");var t=Array.from(this.$container.classList).find((function(A){return A.startsWith(f+"-talk-gain-")}));t&&this.$container.classList.remove(t),this.$container.classList.add(f+"-talk-gain-"+e)}}}]),e}(k);function Gt(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function Ut(){return Ut=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Ut.apply(this,arguments)}function Jt(A,e){return Jt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Jt(A,e)}var Ht={fieldNames:{label:"label",value:"value"},renderLabel:function(A){return"<span>"+(A||"")+"</span>"},onChange:function(){},onOpenChange:function(){}},Ot=function(A){function e(e){var t,i,a,r;(t=A.call(this,Ut({tagName:"span",type:"button",controlType:"button"},Ht,e))||this)._options=g(Ht,e,{clone:!1}),t.list=e.list||[],void 0===e.value&&null===e.value||(t._value=e.value+"");var n=null!=(r=null==(i=t._options.fieldNames)?void 0:i.value)?r:"value";return t._picker=new o(t.$container,{getPopupContainer:function(){return oe.isMobile?e.rootContainer:t.$container},trigger:oe.isMobile?"click":"hover",isMobile:oe.isMobile,wrapClassName:f+"-select-picker "+f+"-select-"+e.classNameSuffix,open:t._options.open,offset:[0,-10],placement:"top",onOpenChange:function(A){var e=t.list.find((function(A){return A[n]+""===t.value}));null==t._options.onOpenChange||t._options.onOpenChange.call(t._options,A,t.value,e)}}),t.list&&t.updateOptions(t.list),t._onSelectChange(),t._activeOption(),t._onDBlPanelClick=t._onDBlPanelClick.bind(t),null==(a=t._picker.$body)||a.addEventListener("dblclick",t._onDBlPanelClick),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Jt(A,e)}(e,A);var t=e.prototype;return t.updateOptions=function(A){var e=this;if(void 0===A&&(A=[]),(null==A?void 0:A.length)>0&&this._picker){var t,i,a,r,n,o,s=null!=(n=null==(t=this._options.fieldNames)?void 0:t.label)?n:"label",g=null!=(o=null==(i=this._options.fieldNames)?void 0:i.value)?o:"value";null==(r=this._picker)||r.innerHTML('<div class="'+f+'-select-panel">\n <ul class="'+f+'-select-list">\n '+A.map((function(A){return'\n <li class="'+f+"-select-option "+(+A[g]===e.value?f+"-active":"")+'" data-value="'+A[g]+'">\n <span>'+A[s]+"</span>\n </li>\n "})).join("")+"\n </ul>\n "+(oe.isMobile?'<div class="'+f+'-select-cancel">\n <span>'+((null==(a=this.locale)?void 0:a.cancel)||"取消")+"</span>\n </div>":"")+"\n "+(oe.isMobile?'<span class="'+f+'-select-close">'+JA()+"</span>":"")+"\n <div>"),this.list=A,this._activeOption()}else if(0===(null==A?void 0:A.length)){var l,C;null==(C=this._picker)||null==(l=C.innerHTML)||l.call(C,"")}},t._render=function(A){var e;if(0!==this.list.length){var t,i=null!=(t=null==(e=this._options.fieldNames)?void 0:e.label)?t:"label";if(this.$container.querySelector("."+f+"-select-btn"))this.$container.querySelector("."+f+"-select-btn").innerHTML=null==this._options.renderLabel?void 0:this._options.renderLabel.call(this._options,null==A?void 0:A[i],A,this.list);else{var a=document.createElement("span");a.classList.add(f+"-btn",f+"-select-btn"),a.innerHTML=null==this._options.renderLabel?void 0:this._options.renderLabel.call(this._options,null==A?void 0:A[i],A,this.list),this.$container.appendChild(a),this._options.title&&a.setAttribute("title",this._options.title)}}},t._activeOption=function(){var A=this;if(this._picker){var e,t,i,a,r=null!=(a=null==(e=this._options.fieldNames)?void 0:e.value)?a:"value",n=null==(t=this._picker.$body)?void 0:t.querySelector("."+f+"-active");null==n||n.classList.remove(f+"-active");var o=null==(i=this._picker.$body)?void 0:i.querySelector("."+f+'-select-option[data-value="'+this.value+'"]');null==o||o.classList.add(f+"-active");var s=this.list.find((function(e){return e[r]+""===A.value}));this._render(s)}},t._onSelectChange=function(){var A=this;if(this._picker){var e,t,i=null!=(t=null==(e=this._options.fieldNames)?void 0:e.value)?t:"value";this._delegationOption=s(this._picker.$body,"."+f+"-select-option","click",(function(e){var t=e.delegateTarget;if(e.stopPropagation(),!t.classList.contains(f+"-disabled")){var a=t.getAttribute("data-value");if(A.value!==a){A.value=a;var r=A.list.find((function(e){return e[i]+""===A.value}));null==A._options.onChange||A._options.onChange.call(A._options,A.value,r),A._picker.open=!1}}})),this._delegationClose=s(this._picker.$body,"."+f+"-select-close","click",(function(e){e.stopPropagation(),A._picker.open=!1})),this._delegationCancel=s(this._picker.$body,"."+f+"-select-cancel","click",(function(e){e.stopPropagation(),A._picker.open=!1}))}},t.destroy=function(){var e,t,i,a,r,n,o,s;(null==(t=this._delegationOption)||null==(e=t.destroy)||e.call(t),this._delegationOption=null,null==(a=this._delegationClose)||null==(i=a.destroy)||i.call(a),this._delegationClose=null,null==(n=this._delegationCancel)||null==(r=n.destroy)||r.call(n),this._delegationCancel=null,this._picker)&&(null==(o=this._picker.$body)||o.removeEventListener("dblclick",this._onDBlPanelClick),null==(s=this._picker)||s.destroy(),this._picker=null);A.prototype.destroy.call(this)},t._onDBlPanelClick=function(A){A.stopPropagation(),A.preventDefault()},t._onControlClick=function(A){null==this._options.onClick||this._options.onClick.call(this._options,A)},Gt(e,[{key:"value",get:function(){return this._value},set:function(A){this.value!==A&&(this._value=A,this._activeOption())}},{key:"disabled",get:function(){return this._disabled},set:function(A){this._disabled=A,this._picker.disabled=A,this._updateDisabledState(A)}}]),e}(k);function Kt(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function Vt(){return Vt=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Vt.apply(this,arguments)}function Wt(A,e){return Wt=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Wt(A,e)}var Zt=["VIDEO_LEVEL_FLUENT","VIDEO_LEVEL_STANDARD","VIDEO_LEVEL_HEIGH","VIDEO_LEVEL_SUPER","VIDEO_LEVEL_EXTREME","VIDEO_LEVEL_3K","VIDEO_LEVEL_4k"],Xt={value:1,list:[]};function qt(A,e){return void 0===e&&(e={}),A.map((function(A){var t=+A.level,i=A.name;return i||(i=null==e?void 0:e[Zt[t]]),"VIDEO_LEVEL_AUTO"===i?i=null==e?void 0:e[i]:Zt.includes(i)&&(i=null==e?void 0:e[Zt[t]]),{name:i,level:A.level+"",streamTypeIn:A.streamTypeIn,type:A.type}}))}var jt=function(A){function e(e){var t,i,a,r;return void 0===e&&(e={}),t=A.call(this,Vt({},Xt,{value:null==(i=e.props)?void 0:i.videoLevel},e,{fieldNames:{label:"name",value:"level"},list:qt((null==e?void 0:e.list)||(null==(a=e.props)?void 0:a.videoLevelList)||[],(null==e?void 0:e.locales[e.language])||{}),title:null==e||null==(r=e.locales[e.language])?void 0:r.BTN_HD,controlType:"button",classNameSuffix:"definition",renderLabel:function(A,i,a){var r;if("auto"===(null==i?void 0:i.level)){var n,o=a.find((function(A){return A.level===Kt(t)._level}));return"<span>"+(null==e||null==(n=e.locales[e.language])?void 0:n.VIDEO_LEVEL_AUTO)+"("+((null==o?void 0:o.name)||"")+")</span>"}return"<span>"+(A||(null==(r=a[0])?void 0:r.name)||"")+"</span>"},onChange:function(A,i){var a;null==e||null==(a=e.onChange)||a.call(e,A,i),"auto"===A?Kt(t).emit(b.control.definitionChange,"auto",Kt(t)._level):(Kt(t)._level=A,Kt(t).emit(b.control.definitionChange,A,i))},onOpenChange:function(A,i,a){var r;null==e||null==(r=e.onOpenChange)||r.call(e,A,i,a),Kt(t).emit(b.control.definitionPanelOpenChange,A,i,a)}}))||this,t._level="",t.options=e||{},t.on(b.setVideoLevelList,(function(e){A.prototype.updateOptions.call(Kt(t),qt(e,t.locale))})),t.on(b.currentVideoLevel,(function(A,i){var a,r="object"==(void 0===A?"undefined":(a=A)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)?A.level:A;if(t._level=i+"","auto"===r){var n,o=t.list.find((function(A){return A.level===t._level}));t.$container.querySelector("."+f+"-select-btn").innerHTML="\n <span>"+(null==e||null==(n=e.locales[e.language])?void 0:n.VIDEO_LEVEL_AUTO)+"("+((null==o?void 0:o.name)||"")+")</span>\n "}else t.value!==t._level+""&&(t.value=t._level+"")})),t}return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Wt(A,e)}(e,A),e.prototype.reset=function(e){A.prototype.reset.call(this,e)},e}(Ot);function zt(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function $t(){return $t=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},$t.apply(this,arguments)}function Ai(A,e){return Ai=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Ai(A,e)}var ei={list:[.5,1,2,4,8,16].reverse().map((function(A){return{label:A+"x",value:A}}))},ti=function(A){function e(e){var t,i,a;return(t=A.call(this,$t({},ei,e,{value:(e.props.speed||1)+"",classNameSuffix:"speed",controlType:"button",title:null==e||null==(a=e.locales)||null==(i=a[e.language])?void 0:i.BTN_SPEED,onChange:function(A,i){var a;A=+A,null==e||null==(a=e.onChange)||a.call(e,A,i),zt(t).emit(b.control.speedChange,A,i)},onOpenChange:function(A,i,a){var r;i=+i,null==e||null==(r=e.onOpenChange)||r.call(e,A,i,a),zt(t).emit(b.control.speedPanelOpenChange,A,i,a)}}))||this)._filterSpeedList(e.list,e.props.recType),t.on(b.speedChange,(function(A){t.value!==A+""&&(t.value=A+"")})),t.on(b.control.recTypeChange,(function(A){t._filterSpeedList(e.list,A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Ai(A,e)}(e,A);var t=e.prototype;return t._filterSpeedList=function(A,e){if(!A)if("rec"===e){var t=this.list.filter((function(A){return(null==A?void 0:A.value)&&+A.value<8}));this.updateOptions(t)}else this.updateOptions(ei.list)},t.reset=function(e){this.value="1",A.prototype.reset.call(this,e)},e}(Ot);function ii(){return ii=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},ii.apply(this,arguments)}function ai(A,e){return ai=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},ai(A,e)}var ri=function(A){function e(e){var t,i,a,r;return(t=A.call(this,ii({maxDate:new Date},e,{tagName:"span",controlType:"button",classNameSuffix:"date"}))||this).options=e,t._value=l.DateTime.format((null==(r=t.options.props)||null==(a=r.urlInfo)||null==(i=a.searchParams)?void 0:i.begin)||new Date,"YYYY-MM-DD"),t._render(),t.on(b.control.dateMonthChange,(function(A){var e,i;null==(i=t.datePicker)||null==(e=i.updateBadges)||e.call(i,A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&ai(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e,t,i=this,a=l.isMobile();a?this.$container.innerHTML='\n <span class="'+f+'-mobile-date-filter" title="'+((null==(e=this.locale)?void 0:e.BTN_CALENDAR)||"")+'">\n <span class="'+f+'-mobile-date-filter-value">'+this._getDateStr()+"</span>\n "+WA()+"\n <span>":this.$container.innerHTML=VA({title:null==(t=this.locale)?void 0:t.BTN_CALENDAR});this.datePicker=new x.DatePicker(this.$container,{isMobile:a,getPopupContainer:function(){return i.$container},mode:"date",offset:[0,-10],badges:(null==(A=this.options.props)?void 0:A.recMonth)||[],language:"zh"===this.options.language?"zh":"en",current:l.DateTime.toDate(this._value),placement:"tr",triggerClose:!0,disabledDate:function(A){return A.getTime()>(i.options.maxDate||new Date).getTime()},onOk:function(A,e){A&&i._value!==l.DateTime.format(A,"YYYY-MM-DD")&&a&&(i._value=l.DateTime.format(A,"YYYY-MM-DD"),null==i.options.onOk||i.options.onOk.call(i.options,A),i.emit(b.control.dateChange,A),A&&i.$container.querySelector("."+f+"-mobile-date-filter-value")&&(i.$container.querySelector("."+f+"-mobile-date-filter-value").innerHTML=i._getDateStr()))},onChange:function(A,e){A&&i._value!==l.DateTime.format(A,"YYYY-MM-DD")&&!a&&"date"===e&&(i._value=l.DateTime.format(A,"YYYY-MM-DD"),null==i.options.onChange||i.options.onChange.call(i.options,A),i.emit(b.control.dateChange,A))},onOpenChange:function(A){null==i.options.onPanelChange||i.options.onPanelChange.call(i.options,A,i.datePicker.current),i.emit(b.control.datePanelOpenChange,A,i.datePicker.current)}})},t.setDate=function(A,e){var t;void 0===e&&(e=!0),null==(t=this.datePicker)||t.setCurrent(A,e),A&&!e&&this._value!==l.DateTime.format(A,"YYYY-MM-DD")&&(this._value=l.DateTime.format(A,"YYYY-MM-DD"),A&&this.$container.querySelector("."+f+"-mobile-date-filter-value")&&(this.$container.querySelector("."+f+"-mobile-date-filter-value").innerHTML=this._getDateStr()))},t.reset=function(){this.datePicker&&(this.datePicker.open=!1),A.prototype.reset.call(this)},t.destroy=function(){this.datePicker&&(this.datePicker.destroy(),this.datePicker=null),A.prototype.destroy.call(this)},t._getDateStr=function(){var A=this._value.split("-");return A[1]+"."+A[2]},t._onControlClick=function(e){A.prototype._onControlClick.call(this,e)},e}(k);function ni(){return ni=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},ni.apply(this,arguments)}function oi(A,e){return oi=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},oi(A,e)}var si=function(A){function e(e){var t,i,a;return(t=A.call(this,ni({},e,{tagName:"div",controlType:"block",classNameSuffix:"time-line"}))||this)._$add=null,t._$reduce=null,t._currentTime=0,t.records=[],t._currentTime=0,t._options=e,t.records=(null==(a=t._options)||null==(i=a.props)?void 0:i.recordList)||[],t._render(),t.on(b.setAllDayRecTimes,(function(A){var e,i;t.records=A,null==(i=t.timeLineUtil)||null==(e=i.updateTimeSections)||e.call(i,A)})),t.on(b.getOSDTime,(function(A){if(A){var e,i,a=new Date(1e3*A);t._currentTime=a.getTime(),null==(i=t.timeLineUtil)||null==(e=i.update)||e.call(i,a)}})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&oi(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e,t,i,a=this,r={language:this._options.language||"zh",coverQuery:this._options.coverQuery||"",showTimeWidthBtn:null==(t=this._options.showTimeWidthBtn)||t,showCoverFold:null==(i=this._options.showCoverFold)||i,onChange:function(A){a._currentTime!==(null==A?void 0:A.getTime())&&(null==a._options.onChange||a._options.onChange.call(a._options,A),a.emit(b.control.timeLineChange,A))},onPickerOpenChange:function(A){a.emit(b.control.timeLinePanelOpenChange,A)},onPickerSelect:function(A){var e=null;try{e=10===(A.startTime+"").length?new Date(1e3*A.startTime):(A.startTime,new Date(A.startTime)),null==a._options.onChange||a._options.onChange.call(a._options,e),a.emit(b.control.timeLineChange,e)}catch(A){}}};l.isMobile()?this.timeLineUtil=new d.MobileTimeLine(this.$container,r):(this.timeLineUtil=new d.TimeLine(this.$container,r),this._renderAddReduce()),null==(e=this.timeLineUtil)||null==(A=e.updateTimeSections)||A.call(e,this.records),this.timeLineUtil.update(new Date)},t.setWidth=function(A){l.isMobile()||this.timeLineUtil.resize(A)},t._renderAddReduce=function(){var A=this;this._$add=document.createElement("span"),this._$add.classList.add(f+"-time-line-scale-add"),this._$add.innerHTML=ZA(),this._$add.addEventListener("click",(function(){if(A.timeLineUtil){var e=Math.floor(A.timeLineUtil.timeWidth);A.timeLineUtil.setTimeWidth(e+1)}})),this._$reduce=document.createElement("span"),this._$reduce.classList.add(f+"-time-line-scale-sub"),this._$reduce.innerHTML=XA(),this._$reduce.addEventListener("click",(function(){if(A.timeLineUtil){var e=Math.floor(A.timeLineUtil.timeWidth);A.timeLineUtil.setTimeWidth(e-1)}})),this.$container.appendChild(this._$add),this.$container.appendChild(this._$reduce)},t.destroy=function(){this._$add&&(this._$add.remove(),this._$add=null),this._$reduce&&(this._$reduce.remove(),this._$reduce=null),this.timeLineUtil&&(this.timeLineUtil.destroy(),this.timeLineUtil=null),A.prototype.destroy.call(this)},t._onControlClick=function(A){null==this._options.onClick||this._options.onClick.call(this._options,A)},e}(k);function gi(){return gi=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},gi.apply(this,arguments)}function li(A,e){return li=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},li(A,e)}var Ci=function(A){function e(e){var t;return(t=A.call(this,gi({},e,{tagName:"span",controlType:"text",classNameSuffix:"device"}))||this)._render(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&li(A,e)}(e,A);var t=e.prototype;return t._render=function(){var A,e;this.$container.innerHTML='<span class="'+f+"-text "+f+'-text-device">'+this._splicingString(this.__options.deviceName,null==(e=this.__options.props)||null==(A=e.urlInfo)?void 0:A.deviceSerial)+"</span>"},t.update=function(A,e){if(this.$container.querySelector("."+f+"-text-device")){var t=this.$container.querySelector("."+f+"-text-device"),i=this._splicingString(A,e);null==t||t.setAttribute("title",i),t.innerHTML=i}},t._splicingString=function(A,e){return(A||"")+(e?A?"("+e+")":""+e:"")},e}(k),Ii={play:ie,volume:Be,device:Ci,capturePicture:ut,ptz:Dt,record:Pt,talk:Yt,zoom:Ve,definition:jt,fullscreen:_e,globalFullscreen:xt,rec:De,speed:ti,date:ri,timeLine:si};function ci(A,e){return ci=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},ci(A,e)}var hi=function(A){function e(e,t){var i;return void 0===t&&(t={hasDatePicker:!0}),(i=A.call(this)||this).options=t,i.$container=e,i.$popupContainer=document.createElement("div"),i.$popupContainer.classList.add(f+"-rec-footer"),i.options.hasDatePicker&&i.$popupContainer.classList.add(f+"-rec-footer-has-date-picker"),i.$container.appendChild(i.$popupContainer),i.$timeLineContainer=document.createElement("div"),i.$timeLineContainer.classList.add(f+"-rec-footer-time-line"),i.options.hasDatePicker&&(i.$popupContainer.appendChild(i.$timeLineContainer),i.$datePickerContainer=document.createElement("div"),i.$datePickerContainer.classList.add(f+"-rec-footer-date-picker"),i.$popupContainer.appendChild(i.$datePickerContainer)),i.$popupContainer.addEventListener("dblclick",(function(A){A.preventDefault(),A.stopPropagation()})),i}return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&ci(A,e)}(e,A),e.prototype.destroy=function(){var A,e,t,i;(this.$datePickerContainer&&(this.$datePickerContainer.remove(),this.$datePickerContainer=null),this.$timeLineContainer)&&(null==(e=this.$timeLineContainer)||null==(A=e.remove)||A.call(e),this.$timeLineContainer=null);this.$popupContainer&&(null==(i=this.$popupContainer)||null==(t=i.remove)||t.call(i),this.$popupContainer=null);this.emit(b.theme.recFooterDestroy)},e}(i);function Bi(A,e){return Bi=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Bi(A,e)}var Ei=function(A){function e(e){var t;return(t=A.call(this)||this)._$siblingContainer=e,t.render(),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Bi(A,e)}(e,A);var t=e.prototype;return t.render=function(){this.$container||(this.$container=document.createElement("div"),this.$container.classList.add(f+"-mobile-extend"),null==this._$siblingContainer.insertAdjacentElement||this._$siblingContainer.insertAdjacentElement.call(this._$siblingContainer,"afterend",this.$container),this.$controlPanel=document.createElement("div"),this.$controlPanel.classList.add(f+"-mobile-extend-control-panel"),this.$container.appendChild(this.$controlPanel),this.$content=document.createElement("div"),this.$content.classList.add(f+"-mobile-extend-control-content"),this.$controlPanel.appendChild(this.$content),this.$top=document.createElement("div"),this.$top.classList.add(f+"-mobile-extend-control-top"),this.$content.appendChild(this.$top),this.$topLeft=document.createElement("div"),this.$topLeft.classList.add(f+"-mobile-extend-control-top-left"),this.$top.appendChild(this.$topLeft),this.$topRight=document.createElement("div"),this.$topRight.classList.add(f+"-mobile-extend-control-top-right"),this.$top.appendChild(this.$topRight))},t.destroy=function(){var A;null==(A=this.$container)||A.remove(),this.emit(b.theme.mobileExtendDestroy)},e}(i);function xi(){return xi=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},xi.apply(this,arguments)}function di(A,e){return di=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},di(A,e)}var Qi={},fi=function(A){function e(e){var t;return void 0===e&&(e={}),(t=A.call(this,Object.assign({},Qi,xi({},e,{tagName:"div",controlType:"block",classNameSuffix:"pause"})))||this)._timer=null,t._timer2=null,t._timer3=null,t._firstFlag=!1,t._options=Object.assign({},Qi,e),t.$container.classList.add(f+"-pause",f+"-hide"),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&di(A,e)}(e,A);var t=e.prototype;return t.show=function(A,e){var t,i,a=this;this.$container&&(this._firstFlag?this.$container.style.cssText+="pointer-events: none;":this._firstFlag=!0,this.$container.innerHTML=A?'<div class="'+f+'-pause-circle">'+fA()+"</div>":'<div class="'+f+'-pause-circle">'+uA()+"</div>",this._timer&&(clearTimeout(this._timer),this._timer=null),this._timer2&&(clearTimeout(this._timer2),this._timer2=null),null==(i=this.$container)||null==(t=i.classList)||t.remove(f+"-hide"),this._timer=setTimeout((function(){var A,t;a._timer&&(clearTimeout(a._timer),a._timer=null),e||(null==(t=a.$container)||null==(A=t.classList)||A.add(f+"-pause-transform"),a._timer2=setTimeout((function(){var A,e,t,i;a._timer2&&(clearTimeout(a._timer2),a._timer2=null),null==(e=a.$container)||null==(A=e.classList)||A.add(f+"-hide"),null==(i=a.$container)||null==(t=i.classList)||t.remove(f+"-pause-transform")}),300))}),10))},t.destroy=function(){this._timer&&(clearTimeout(this._timer),this._timer=null),this._timer2&&(clearTimeout(this._timer2),this._timer2=null),this._timer3&&(clearTimeout(this._timer3),this._timer3=null),this.hide(),A.prototype.destroy.call(this)},t._onControlClick=function(A){var e=this;if(A.stopPropagation(),A.preventDefault(),this._firstFlag){if(this._timer3)return clearTimeout(this._timer3),void(this._timer3=null);this._timer3=setTimeout((function(){e._timer3&&(clearTimeout(e._timer3),e._timer3=null),e.emit(b.control.play,!0,"pause")}),250)}},e}(k),ui=function(A){if(A.controls){var e=Object.keys(A.controls).length>0||A._header||A._footer;if(A._interactiveResult&&(null==A._interactiveResult.cleanup||A._interactiveResult.cleanup.call(A._interactiveResult),A._interactiveResult=null),e&&A.emit(b.control.beforeUnmountControls),Object.keys(A.controls).length>0){for(var t in A.controls){var i,a;null==(i=(a=A.controls[t]).destroy)||i.call(a)}A.controls=null}A._pauseControl&&(null==A._pauseControl.destroy||A._pauseControl.destroy.call(A._pauseControl)),A._loadingControl&&(null==A._loadingControl.destroy||A._loadingControl.destroy.call(A._loadingControl)),A.messageControl&&(null==A.messageControl.destroy||A.messageControl.destroy.call(A.messageControl)),A.posterControl&&(null==A.posterControl.destroy||A.posterControl.destroy.call(A.posterControl)),A._headerMoreControl&&(null==A._headerMoreControl.destroy||A._headerMoreControl.destroy.call(A._headerMoreControl),A._headerMoreControl=null),A._footerMoreControl&&(null==A._footerMoreControl.destroy||A._footerMoreControl.destroy.call(A._footerMoreControl),A._footerMoreControl=null),A._recFooter&&(A._recFooter.destroy(),A._recFooter=null),A._mobileExtend&&(A._mobileExtend.destroy(),A._mobileExtend=null),A._header&&(A._header.destroy(),A._header=null),A._footer&&(A._footer.destroy(),A._footer=null),A._onPauseTimingFunc&&(A._onPauseTimingFunc=null),e&&A.emit(b.control.unmountedControls)}};function pi(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=A[t];return i}function mi(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function _i(){return _i=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},_i.apply(this,arguments)}function yi(A,e){var t="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(t)return(t=t.call(A)).next.bind(t);if(Array.isArray(A)||(t=function(A,e){if(A){if("string"==typeof A)return pi(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?pi(A,e):void 0}}(A))||e){t&&(A=t);var i=0;return function(){return i>=A.length?{done:!0}:{done:!1,value:A[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.")}function Si(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var Di=["ptz"];function Ri(A,e,t,i){if(void 0===i&&(i={}),A.$container)for(var a,r=yi(t);!(a=r()).done;){var n,o,s,g,l,C,I=a.value;if(!(((null==(n=A.options.mobileExtendOptions)?void 0:n.controls)||[]).includes(I.iconId)&&"ptz"!==I.iconId||(null==(s=A.options.mobileExtendOptions)||null==(o=s.controls)?void 0:o.includes("rec"))&&R.includes(I.iconId))||!oe.isMobile)if(R.includes(I.iconId)&&A._header)vi(A,A._header.$right,I.iconId,i);else if(F.includes(I.iconId))null!==A.options.deviceOptions&&((null==(g=A.controls)?void 0:g.deviceControl)||(A.controls.deviceControl=new Ii.device(_i({rootContainer:A.$container,getPopupContainer:function(){return e},recType:A.recType,language:A.options.language,locales:A.i18n.translations,type:A.options.type,deviceSerial:A.urlInfo.deviceSerial,channelNo:A.urlInfo.channelNo},(null==(l=A.options)?void 0:l.deviceOptions)||{},{props:i}))));else if(Ii[I.iconId]){if(null!==A.options[I.iconId+"Options"])A.controls[I.iconId+"Control"]=new Ii[I.iconId](_i({rootContainer:A.$container,getPopupContainer:function(){return e},language:A.options.language||"zh",locales:A.i18n.translations},Di.includes(I.iconId)?{env:A.options.env,accessToken:A.options.accessToken,token:A.options.token,deviceSerial:A.urlInfo.deviceSerial,channelNo:A.urlInfo.channelNo}:{},{PLAY_TYPE:A.options.type},(null==(C=A.options)?void 0:C[I.iconId+"Options"])||{},{props:i}))}else A.logger.warn("["+I.iconId+"] control does not exist")}}function Fi(A,e){return(t=function(){var t,i,a,r,n,o,s,g,l,C,I,c,h,B,E,x,d,Q,u,p,m,_,S,w,v,P,k,T;return Si(this,(function(N){switch(N.label){case 0:return[4,nt(A,e)];case 1:return o=N.sent(),ui(A),"[object Object]"!==Object.prototype.toString.call(o)||(null!==A.options.loadingOptions&&(A._loadingControl=new L(_i({language:A.options.language,locales:A.i18n.translations},A.options.loadingOptions||{},{getPopupContainer:function(){return A.$container}}))),null!==A.options.pauseOptions&&(A._pauseControl=new fi(_i({language:A.options.language,locales:A.i18n.translations},A.options.pauseOptions||{},{getPopupContainer:function(){return A.contentControl.$wrapper}})),A.options.autoPlay||A._pauseControl.show(!1,!0)),null!==A.options.messageOptions&&(A.messageControl=new $A(_i({rootContainer:A.$container},A.options.messageOptions||{},{getPopupContainer:function(){return A.contentControl.$wrapper}}))),null!==A.options.posterOptions&&(A.posterControl=new J(_i({},A.options.posterOptions||{},{getPopupContainer:function(){return A.contentControl.$video}}))),A.controls={},A.emit(b.control.beforeMountControls),s=function(A){var e,t,i,a={};a.autoFocus=null!=(i=null==A?void 0:A.autoFocus)?i:3,a.poster=(null==A?void 0:A.poster)||"";var r,n,o,s,g,l,C=[],I=[],c=((null==A||null==(e=A.header)?void 0:e.btnList)||[]).filter((function(A){return 1===A.isrender&&["deviceID","deviceName"].includes(A.iconId)?(C.push(A),!1):1===A.isrender&&R.includes(A.iconId)?(I.push(I[0]?tt({},A,{part:I[0].part}):A),!1):1===A.isrender})).map((function(A){return at[A.iconId]&&(A.iconId=at[A.iconId]),A})),h=((null==A||null==(t=A.footer)?void 0:t.btnList)||[]).filter((function(A){return 1===A.isrender&&F.includes(A.iconId)?(C.push(A),!1):1===A.isrender&&R.includes(A.iconId)?(I.push(I[0]?tt({},A,{part:I[0].part}):A),!1):1===A.isrender})).map((function(A){return at[A.iconId]&&(A.iconId=at[A.iconId]),A}));return c.length>0||C.length>0||I.length>0?(a.header={},a.header.color=null==A||null==(r=A.header)?void 0:r.color,a.header.backgroundColor=null==A||null==(n=A.header)?void 0:n.backgroundColor,a.header.activeColor=null==A||null==(o=A.header)?void 0:o.activeColor,a.header.btnList=[].concat(C||[],I||[],c||[])):a.header=void 0,h.length>0?(a.footer={},a.footer.color=null==A||null==(s=A.footer)?void 0:s.color,a.footer.backgroundColor=null==A||null==(g=A.footer)?void 0:g.backgroundColor,a.footer.activeColor=null==A||null==(l=A.footer)?void 0:l.activeColor,a.footer.btnList=h):a.footer=void 0,a}(o),A._themeData=s,s.poster&&A.setPoster(s.poster),A._playing||null==(t=A.posterControl)||t.show(),0===(g=y.reduce((function(e,t){return e[t]=A[t],e}),{})).width&&(g.width=Math.floor(A.$container.clientWidth)),0===g.height&&(g.height=Math.floor(A.$container.clientHeight)),s.header&&(A._header=new ht({getPopupContainer:function(){return A.$container},color:s.header.color,activeColor:s.header.activeColor,backgroundColor:s.header.backgroundColor}),l=rt(s.header.btnList||[]),C=l[0],I=l[1],Ri(A,A._header.$left,C,g),Ri(A,A._header.$right,I,g)),s.footer&&(A._footer=new Ct({getPopupContainer:function(){return A.$container},color:s.footer.color,activeColor:s.footer.activeColor,backgroundColor:s.footer.backgroundColor}),(A._header||A._footer)&&0!==(null==s?void 0:s.autoFocus)&&(A._interactiveResult=function(A,e,t){void 0===e&&(e=3e3);var i=null,a=!1,r=!1,n=A.querySelector("."+f+"-header"),o=A.querySelector("."+f+"-footer"),s=function(){i&&(clearTimeout(i),i=null)},g=function(){null==s||s(),null==n||n.classList.remove(f+"-hide-transition"),null==o||o.classList.remove(f+"-hide-transition"),a||t(!0),a=!0},l=function(){r||(null==s||s(),A.classList.contains(f+"-player-pause")||(null==n||n.classList.add(f+"-hide-transition"),null==o||o.classList.add(f+"-hide-transition"),a&&t(!1),a=!1))},C=function(){null==g||g(),i=setTimeout((function(){null==s||s(),null==l||l()}),e)},I=function(A){var e;null==A||null==(e=A.stopPropagation)||e.call(A),null==s||s()},c=function(){a?null==l||l():null==C||C()},h=function(A){var e;null==A||null==(e=A.stopPropagation)||e.call(A),null==C||C()};if(C(),oe.isMobile&&c){var B="click";A.addEventListener(B,c),o&&o.addEventListener(B,h),n&&n.addEventListener(B,h)}else{var E,x,d,Q,u=window.PointerEvent?"pointerdown":"click";A.addEventListener(u,C),A.addEventListener("mousemove",C),A.addEventListener("mouseleave",l),o&&(null==o||null==(E=o.addEventListener)||E.call(o,u,I),null==o||null==(x=o.addEventListener)||x.call(o,"mousemove",I)),n&&(null==n||null==(d=n.addEventListener)||d.call(n,u,I),null==n||null==(Q=n.addEventListener)||Q.call(n,"mousemove",I))}return{cleanup:function(){if(A){if(oe.isMobile&&c){var e="click";A.removeEventListener(e,c),o&&C&&o.removeEventListener(e,h),n&&C&&n.removeEventListener(e,h)}if(C){var t,i,a,B,E=window.PointerEvent?"pointerdown":"click";A.removeEventListener(E,C),A.removeEventListener("mousemove",C),A.removeEventListener("mouseleave",l),o&&s&&(null==o||null==(t=o.removeEventListener)||t.call(o,E,I),null==o||null==(i=o.removeEventListener)||i.call(o,"mousemove",I)),n&&s&&(null==n||null==(a=n.removeEventListener)||a.call(n,E,I),null==n||null==(B=n.removeEventListener)||B.call(n,"mousemove",I))}l&&A.removeEventListener("mouseleave",l),c=null,C=null,l=null,g=null,h=null,I=null,null==s||s(),s=null,r=!1}},clearTimeout:function(){null==s||s(),r=!0},setTimeoutShow:function(){null==C||C(),r=!1},hide:l}}(A.$container,1e3*((null==o?void 0:o.autoFocus)||3),(function(e){A.emit(b.control.controlsBarOpenChange,e)})),A._onPauseTimingFunc&&(A.removeListener(D,A._onPauseTimingFunc),A._onPauseTimingFunc=null),A._onPauseTimingFunc=function(e){var t,i,a,r;e?null==(i=A._interactiveResult)||null==(t=i.clearTimeout)||t.call(i):A._playing&&(null==(r=A._interactiveResult)||null==(a=r.setTimeoutShow)||a.call(r))},A.on(D,A._onPauseTimingFunc),A._onPauseTimingFunc(!A._playing)),(null==(c=A.controls)?void 0:c.volumeControl)&&(A.controls.volumeControl.disabled=!0),(null==(h=A.controls)?void 0:h.globalFullscreenControl)&&!A.playing&&(A.controls.globalFullscreenControl.disabled=!0),B=rt(s.footer.btnList||[]),E=B[0],x=B[1],Ri(A,A._footer.$left,E,g),Ri(A,A._footer.$right,x,g)),Q=[].concat((null==(i=s.header)?void 0:i.btnList)||[],null!=(d=null==(a=s.footer)?void 0:a.btnList)?d:[]),u=Q.some((function(A){return R.includes(A.iconId)})),oe.isMobile||null===A.options.timeLineOptions||A.options.disabledTimeLine||!u||(A._recFooter=new hi(A.$container,{hasDatePicker:null!==A.options.dateOptions}),wi(A,A._recFooter.$timeLineContainer,g),A._footer&&(A._footer.$container.style.cssText+="bottom: 36px;"),null!==A.options.dateOptions&&bi(A,A._recFooter.$datePickerContainer,g)),oe.isMobile&&(null==(n=A.options.mobileExtendOptions)||null==(r=n.controls)?void 0:r.length)&&((p=Q.some((function(A){return"ptz"===A.iconId})))||u)&&(A._mobileExtend=new Ei(A.$container),null!==A.options.dateOptions&&(null==(m=A.options.mobileExtendOptions)?void 0:m.controls.includes("date"))&&u&&bi(A,A._mobileExtend.$topLeft,g),null!==A.options.recOptions&&(null==(_=A.options.mobileExtendOptions)?void 0:_.controls.includes("rec"))&&u&&[].concat((null==(P=s.header)?void 0:P.btnList)||[],null!=(T=null==(k=s.footer)?void 0:k.btnList)?T:[]).forEach((function(e){var t;R.includes(e.iconId)&&vi(A,null==(t=A._mobileExtend)?void 0:t.$topRight,e.iconId,g)})),null===A.options.timeLineOptions&&A.options.disabledTimeLine||!(null==(S=A.options.mobileExtendOptions)?void 0:S.controls.includes("timeLine"))||!u||wi(A,A._mobileExtend.$content,g),oe.isMobile&&(null==(v=A.options.mobileExtendOptions)||null==(w=v.controls)?void 0:w.includes("ptz"))&&p&&A.controls.ptzControl&&A.controls.ptzControl.renderMobileExtend(A._mobileExtend.$content)),A.emit(b.control.mountedControls),A.playing||A._disabled(!0),function(A){var e,t,i,a,r,n,o,s,g,l,C,I,c,h,B;A._recFooter&&A._recFooter.on(b.theme.recFooterDestroy,(function(){A.emit(b.theme.recFooterDestroy)})),A._mobileExtend&&A._mobileExtend.on(b.theme.mobileExtendDestroy,(function(){A.emit(b.theme.mobileExtendDestroy)})),A._pauseControl&&A._pauseControl.on(b.control.play,(function(e,t){A.playing||(A.playing=e,A.emit(b.control.play,e,t))})),(null==(e=A.controls)?void 0:e.playControl)&&(A.controls.playControl.on(b.control.play,(function(e){A.playing!==e&&(A.playing=e,A.emit(b.control.play,e))})),A.controls.playControl.on(b.control.playDestroy,(function(){A.emit(b.control.playDestroy)}))),(null==(t=A.controls)?void 0:t.volumeControl)&&(A.controls.volumeControl.on(b.control.volumechange,(function(e,t){A.muted!==t&&(A.muted=t),A.volume!==e&&(A.volume=e),A.emit(b.control.volumechange,e,t)})),A.controls.volumeControl.on(b.control.volumePanelOpenChange,(function(e,t,i){A.emit(b.control.volumePanelOpenChange,e,t,i)})),A.controls.volumeControl.on(b.control.volumeDestroy,(function(){A.emit(b.control.volumeDestroy)}))),(null==(i=A.controls)?void 0:i.ptzControl)&&(A.controls.ptzControl.on(b.control.ptzPanelOpenChange,(function(e){oe.isMobile&&A.emit(D,e),A.emit(b.control.ptzPanelOpenChange,e)})),A.controls.ptzControl.on(b.control.ptzSpeedChange,(function(e){A.emit(b.control.ptzSpeedChange,e),A.emit(b.ptzSpeedChange,e)})),A.controls.ptzControl.on(b.control.ptzError,(function(e){A.emit(b.control.ptzError,e);var t=A.i18n.t(e.localeKey);/^\[missing/.test(t)&&(t=e.msg),A.emit(b.message,t+" ["+e.code+"]","ptzError",2)})),A.controls.ptzControl.on(b.control.ptzDestroy,(function(){A.emit(b.control.ptzDestroy)}))),(null==(a=A.controls)?void 0:a.recordControl)&&(A.controls.recordControl.on(b.control.recordingChange,(function(e){A.recording!==e&&A.emit(b.control.recordingChange,e)})),A.controls.recordControl.on(b.control.recordDestroy,(function(){A.emit(b.control.recordDestroy)}))),(null==(r=A.controls)?void 0:r.talkControl)&&(A.controls.talkControl.on(b.control.talkingChange,(function(e){A.talking!==e&&A.emit(b.control.talkingChange,e)})),A.controls.talkControl.on(b.control.talkDestroy,(function(){A.emit(b.control.talkDestroy)}))),(null==(n=A.controls)?void 0:n.zoomControl)&&(A.controls.zoomControl.on(b.control.zoomChange,(function(e,t,i){A.zoom!==e&&(A.zoom=e,A.emit(b.control.zoomChange,e))})),A.controls.zoomControl.on(b.control.zoomPanelOpenChange,(function(e,t){A.zooming!==e&&(A.zooming=e,A.emit(b.control.zoomPanelOpenChange,e))})),A.controls.zoomControl.on(b.control.zoomDestroy,(function(){A.zooming&&(A.zoom=1,A.zooming=!1),A.emit(b.control.zoomDestroy)}))),(null==(o=A.controls)?void 0:o.definitionControl)&&(A.controls.definitionControl.on(b.control.definitionPanelOpenChange,(function(e,t,i){A.emit(D,e,t),A.emit(b.control.definitionPanelOpenChange,e,t,i)})),A.controls.definitionControl.on(b.control.definitionChange,(function(e,t){A.emit(b.control.definitionChange,e,t)})),A.controls.definitionControl.on(b.control.definitionDestroy,(function(){A.emit(b.control.definitionDestroy)}))),(null==(s=A.controls)?void 0:s.speedControl)&&(A.controls.speedControl.on(b.control.speedPanelOpenChange,(function(e,t,i){A.emit(D,e,t),A.emit(b.control.speedPanelOpenChange,e,t,i)})),A.controls.speedControl.on(b.control.speedChange,(function(e,t){A.emit(b.control.speedChange,e,t)})),A.controls.speedControl.on(b.control.speedDestroy,(function(){A.emit(b.control.speedDestroy)}))),(null==(g=A.controls)?void 0:g.capturePictureControl)&&(A.controls.capturePictureControl.on(b.control.capturePicture,(function(e){A.emit(b.control.capturePicture,e)})),A.controls.capturePictureControl.on(b.control.capturePictureDestroy,(function(){A.emit(b.control.capturePictureDestroy)}))),(null==(l=A.controls)?void 0:l.fullscreenControl)&&A.controls.fullscreenControl.on(b.control.fullscreenDestroy,(function(){A.emit(b.control.fullscreenDestroy)})),(null==(C=A.controls)?void 0:C.globalFullscreenControl)&&A.controls.globalFullscreenControl.on(b.control.globalFullscreenDestroy,(function(){A.emit(b.control.globalFullscreenDestroy)})),(null==(I=A.controls)?void 0:I.deviceControl)&&A.controls.deviceControl.on(b.control.deviceDestroy,(function(){A.emit(b.control.deviceDestroy)})),(null==(c=A.controls)?void 0:c.recControl)&&(A.controls.recControl.on(b.control.recTypeChange,(function(e){var t,i;A.recType!==e&&(A.recType=e,A.emit(b.control.recTypeChange,e),(null==(t=A._headerMoreControl)?void 0:t.picker)&&(A._headerMoreControl.picker.open=!1),(null==(i=A.controls)?void 0:i.speedControl)&&A.controls.speedControl.emit(b.control.recTypeChange,e))})),A.controls.recControl.on(b.control.recDestroy,(function(){A.emit(b.control.recDestroy)}))),(null==(h=A.controls)?void 0:h.timeLineControl)&&(A.controls.timeLineControl.on(b.control.timeLineChange,(function(e){A.emit(b.control.timeLineChange,e)})),A.controls.timeLineControl.on(b.control.timeLinePanelOpenChange,(function(e){var t,i,a,r,n;(null==(i=A.controls)||null==(t=i.dateControl)?void 0:t.datePicker)&&(null==(n=A.controls)||null==(r=n.dateControl)||null==(a=r.datePicker)||a.hide()),A.emit(b.control.timeLinePanelOpenChange,e)})),A.controls.timeLineControl.on(b.control.timeLineDestroy,(function(){A.emit(b.control.timeLineDestroy)}))),(null==(B=A.controls)?void 0:B.dateControl)&&(A.controls.dateControl.on(b.control.datePanelOpenChange,(function(e,t){A.emit(b.control.datePanelOpenChange,e,t)})),A.controls.dateControl.on(b.control.dateChange,(function(e){A.emit(b.control.dateChange,e)})),A.controls.dateControl.on(b.control.dateDestroy,(function(){A.emit(b.control.recDestroy)})))}(A)),[2]}}))},function(){var A=this,e=arguments;return new Promise((function(i,a){var r=t.apply(A,e);function n(A){mi(r,i,a,n,o,"next",A)}function o(A){mi(r,i,a,n,o,"throw",A)}n(void 0)}))})();var t}var wi=function(A,e,t){var i,a;(void 0===t&&(t={}),A.controls.timeLineControl||null===A.options.timeLineOptions)||(A.controls.timeLineControl=new Ii.timeLine(_i({getPopupContainer:function(){return e},language:A.options.language,locales:A.i18n.translations,coverQuery:(null==(i=A.urlInfo)?void 0:i.validateCode)?"decodekey="+A.urlInfo.validateCode:""},(null==(a=A.options)?void 0:a.timeLineOptions)||{},{props:t})))},bi=function(A,e,t){var i;(void 0===t&&(t={}),A.controls.dateControl||null===A.options.dateOptions)||(A.controls.dateControl=new Ii.date(_i({getPopupContainer:function(){return e},language:A.options.language,locales:A.i18n.translations},(null==(i=A.options)?void 0:i.dateOptions)||{},{props:t})))},vi=function(A,e,t,i){var a,r,n,o;(void 0===i&&(i={}),!(null==(a=A.controls)?void 0:a.recControl)&&null!==A.options.recOptions&&e)&&(A.controls.recControl=new Ii.rec(_i({getPopupContainer:function(){return e},recType:A.recType,language:A.options.language,locales:A.i18n.translations},(null==(o=A.options)?void 0:o.recOptions)||{},{props:i})));(null==(r=A.controls)?void 0:r.recControl)&&(null==(n=A.controls)?void 0:n.recControl).addRecType(t)};function Pi(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=A[t];return i}function ki(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function Ti(A){return function(){var e=this,t=arguments;return new Promise((function(i,a){var r=A.apply(e,t);function n(A){ki(r,i,a,n,o,"next",A)}function o(A){ki(r,i,a,n,o,"throw",A)}n(void 0)}))}}function Ni(A,e,t){return e&&function(A,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}(A.prototype,e),A}function Mi(){return Mi=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Mi.apply(this,arguments)}function Li(A,e){return Li=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},Li(A,e)}function Yi(A,e){var t="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(t)return(t=t.call(A)).next.bind(t);if(Array.isArray(A)||(t=function(A,e){if(A){if("string"==typeof A)return Pi(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Pi(A,e):void 0}}(A))||e){t&&(A=t);var i=0;return function(){return i>=A.length?{done:!0}:{done:!1,value:A[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.")}function Gi(A,e){var t,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(A,r)}catch(A){o=[6,A],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var Ui={dblClickFullscreen:!0,language:"zh",autoPlay:!0,scaleMode:u,loggerOptions:{level:"INFO",showTime:!0},env:{domain:"https://open.ys7.com"},mobileExtendOptions:{controls:["ptz","timeLine","rec","date"]}},Ji=function(A){function e(e){var t,i,a,r,n,o,s,g,C,I,c,h,B,E,x,d,Q,f,u,p,m;((t=A.call(this)||this).options=Ui,t.staticPath="",t.controls={},t._seekDate=null,t.recType="",t._headerMoreControl=null,t._footerMoreControl=null,t._header=null,t._footer=null,t._recFooter=null,t._mobileExtend=null,t._interactiveResult=null,t._themeData=null,t._fullscreen=null,t.zoomUtil=null,t._cleanupOrientation=null,t._cleanUpResizeObserver=null,t._width=0,t._height=0,t._isCurrentFullscreen=!1,t._orientationAngle=0,t._playing=!1,t._loading=!1,t._volume=0,t._muted=!1,t._zoom=1,t._zooming=!1,t._recording=!1,t._talking=!1,t._speed=1,t._videoLevelAuto=!1,t.videoLevelList=[],t.recordList=[],t._resizeOverflowTimer=null,t.recMonth=[],t._onPauseTimingFunc=null,t.destroyed=!1,t.urlInfo=null,t.scaleMode=0,t._initOptions(e),"ezopen"===t.options.type)&&(t.urlInfo=l.parseEzopenUrl(t.options.url),(null==(g=t.urlInfo)||null==(s=g.searchParams)?void 0:s.spaceId)&&(t.options.spaceId=t.urlInfo.searchParams.spaceId),"rec"===t.urlInfo.type&&(t._seekDate=(null==(I=t.urlInfo)||null==(C=I.searchParams)?void 0:C.begin)?l.DateTime.toDate(null==(h=t.urlInfo)||null==(c=h.searchParams)?void 0:c.begin):l.DateTime.toDate(l.DateTime.format(new Date,"YYYY/MM/DD")+" 00:00:00")));return t._getRecType(t.options.url),Ye(t,b),null==e.onInitializing||e.onInitializing.call(e,t),t.options.autoPlay&&(t.playing=!0),t._initClassName(),t.contentControl=new Pe({getContainer:function(){return t.$container},scaleMode:t.scaleMode}),t.contentControl.on(b.control.contentRerender,(function(A){t.emit(b.control.contentRerender,A)})),function(A,e,t){A.zoomUtil=new Xe(e,qe({},t||{},{min:1,onChange:function(e,i){var a;e!==A._zoom&&(A.zoom=e,null==t||null==(a=t.onChange)||a.call(t,e,i))},onTranslateChange:function(e){var i;A.emit(b.zoomTranslateChange,e),null==t||null==(i=t.onTranslateChange)||i.call(t,e)},onTap:null==t?void 0:t.onTap}))}(t,t.contentControl.$content,Mi({},t.options.zoomOptions||{},{onTap:function(){var A,e;null==(e=t._interactiveResult)||null==(A=e.setTimeoutShow)||A.call(e)}})),t._volume=null!=(E=null!=(B=null==(i=t.options.volumeOptions)?void 0:i.volume)?B:t.options.volume)?E:.8,t._muted=null!=(d=null!=(x=null==(a=t.options.volumeOptions)?void 0:a.muted)?x:t.options.muted)&&d,t._speed=null!=(f=null!=(Q=null==(r=t.options.speedOptions)?void 0:r.value)?Q:t.options.value)?f:1,t._mobileInnerWidthHeight=t._mobileInnerWidthHeight.bind(t),t._throttleMobileInnerWidthHeight=ae(t._mobileInnerWidthHeight,20).bind(t),t._onDblClickFullscreen=Me(t._onDblClickFullscreen,20).bind(t),t._headerMoreControlShow=Me(t._headerMoreControlShow.bind(t),200),t._footerMoreControlShow=Me(t._footerMoreControlShow.bind(t),200),t.destroyed=!1,t._renderTheme(["flv","hls","mp4"].includes(e.type)?we:null!=(p=null!=(u=null==(n=t.options)?void 0:n.template)?u:null==(o=t.options)?void 0:o.themeData)?p:null),t._addEventListener(),null==(m=t)||m.on(b.audioCodecUnsupported,(function(){var A;(null==(A=m.controls)?void 0:A.volumeControl)&&m.controls.volumeControl.emit(b.audioCodecUnsupported)})),null==m||m.on(b.message,(function(A,e,t){var i;if(/error$/gi.test(e)&&["ptzError","talkError","themeError","3DZoomError"].includes(e))null==(i=m.messageControl)||i.toastError(A,t);else if(/error$/gi.test(e)){var a;0===(t||0)&&(m.playing=!1),null==(a=m.messageControl)||a.error(A,t)}else if("warn"===e){var r;null==(r=m.messageControl)||r.warn(A,t)}else if("info"===e){var n;null==(n=m.messageControl)||n.info(A,t)}})),null==m||m.on(b.audioInfo,(function(A){var e;(null==m||null==(e=m.controls)?void 0:e.volumeControl)&&(A.audioFormatName||A.encType)&&(m.controls.volumeControl.disabled=!1)})),null==m||m.on(b.videoInfo,(function(A){var e,t;A&&(null==(t=m.contentControl)||null==(e=t.emit)||e.call(t,b.videoInfo,A.width,A.height))})),null==m||m.on(b.resize,(function(){var A,e;null==(e=m.contentControl)||null==(A=e.emit)||A.call(e,b.resize)})),null==m||m.on("getDeviceInfo",(function(A){})),null==m||m.on(b.firstFrameDisplay,(function(){m._disabled(!1)})),null==m||m.on(b.play,(function(A){var e,t;A&&(null==(t=m.messageControl)||t.hide()),(null==m||null==(e=m.controls)?void 0:e.globalFullscreenControl)&&(m.controls.globalFullscreenControl.disabled=!A)})),m.on(b.talkingChange,(function(A){var e,t,i,a,r;m._talking=A,(null==(e=m.controls)?void 0:e.talkControl)&&A!==(null==(i=m.controls)||null==(t=i.talkControl)?void 0:t.active)&&(null==(r=m.controls)||null==(a=r.talkControl)||a.emit(b.talkingChange,A))})),m.on(b.talkVolumeChange,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.talkControl)||null==(e=t.emit)||e.call(t,b.talkVolumeChange,A)})),m.on(b.recordingChange,(function(A){var e,t,i;m._recording=A,(null==(e=m.controls)?void 0:e.recordControl)&&A!==(null==(i=m.controls)||null==(t=i.recordControl)?void 0:t.active)&&(m.controls.recordControl.active=A)})),m.on(b.setVideoLevelList,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.definitionControl)||null==(e=t.emit)||e.call(t,b.setVideoLevelList,A||[])})),m.on(b.currentVideoLevel,(function(A,e){var t,i,a;null==(a=m.controls)||null==(i=a.definitionControl)||null==(t=i.emit)||t.call(i,b.currentVideoLevel,A,e)})),m.on(b.zoomingChange,(function(A){var e,t,i;(null==(e=m.controls)?void 0:e.zoomControl)&&(null==(i=m.controls)||null==(t=i.zoomControl)?void 0:t.active)!==A&&(m.controls.zoomControl.active=A)})),m.on(b.zoomChange,(function(A){var e,t,i;(null==(e=m.controls)?void 0:e.zoomControl)&&(null==(i=m.controls)||null==(t=i.zoomControl)?void 0:t.value)!==A&&(m.controls.zoomControl.value=A)})),m.on(b.speedChange,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.speedControl)||null==(e=t.emit)||e.call(t,b.speedChange,A)})),m.on(b.setAllDayRecTimes,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.timeLineControl)||null==(e=t.emit)||e.call(t,b.setAllDayRecTimes,A.list)})),m.on(b.getOSDTime,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.timeLineControl)||null==(e=t.emit)||e.call(t,b.getOSDTime,A.data)})),null==m||m.on(b.fullscreenChange,(function(A){var e,t,i,a;m.zoomUtil&&([0,180].includes(m.orientationAngle)&&A.isMobile&&A.isCurrentFullscreen?null==(t=m.zoomUtil)||null==(e=t.setTransform)||e.call(t,!0):null==(a=m.zoomUtil)||null==(i=a.setTransform)||i.call(a,!1))})),null==m||m.on(b.orientationChange,(function(A){var e,t,i,a;m.zoomUtil&&([0,180].includes(A)&&oe.isMobile&&m.isCurrentFullscreen?null==(t=m.zoomUtil)||null==(e=t.setTransform)||e.call(t,!0):null==(a=m.zoomUtil)||null==(i=a.setTransform)||i.call(a,!1))})),null==m||m.on(b.control.dateMonthChange,(function(A){var e,t,i;null==(i=m.controls)||null==(t=i.dateControl)||null==(e=t.emit)||e.call(t,b.control.dateMonthChange,A)})),t}!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&Li(A,e)}(e,A);var t=e.prototype;return t.resize=function(A,e){!function(A,e,t){var i="";/^\d+(\.\d+)?$/.test(e+"")?i+="width: "+e+"px;":e&&(i+="width: "+e+";"),/^\d+(\.\d+)?$/.test(t+"")?i+="height: "+t+"px;":t&&(i+="height: "+t+";"),A.$container&&(A.$container.style.cssText+=i)}(this,A,e)},t.fullscreen=function(){return Ti((function(){var A;return Gi(this,(function(e){switch(e.label){case 0:return[4,null==(A=this._fullscreen)?void 0:A.fullscreen()];case 1:return[2,e.sent()]}}))})).call(this)},t.exitFullscreen=function(){return Ti((function(){var A;return Gi(this,(function(e){switch(e.label){case 0:return[4,null==(A=this._fullscreen)?void 0:A.exitFullscreen()];case 1:return[2,e.sent()]}}))})).call(this)},t.changeTheme=function(A){this._renderTheme(A),null==this.emit||this.emit.call(this,b.changeTheme,A)},t.setPoster=function(A){var e;null==(e=this.posterControl)||e.setPoster(A)},t.setLoggerOptions=function(A){var e;void 0===A&&(A={}),null==(e=this.logger)||e.setOptions(A),null==this||this.emit(b.setLoggerOptions,A)},t.setScaleMode=function(A){if([0,1,2].includes(+A)){var e,t;this.scaleMode=+A,null==(t=this.contentControl)||null==(e=t.setScaleMode)||e.call(t,+A);for(var i,a=this.$container.classList,r=Yi(a);!(i=r()).done;){var n=i.value;n.startsWith(f+"-scale-mode-")&&a.remove(n)}0===this.scaleMode?this.$container.classList.add(f+"-scale-mode-full"):1===this.scaleMode?this.$container.classList.add(f+"-scale-mode-auto"):2===this.scaleMode&&this.$container.classList.add(f+"-scale-mode-full-auto")}else{var o;null==(o=this.logger)||o.warn("scaleMode must be 0 | 1 | 2")}},t.destroy=function(){var A,e,t=this;this.$container&&!this.destroyed&&(this.emit(b.theme.beforeDestroy),this._removeEventListener(),ui(this),null==(A=this.contentControl)||A.destroy(),this.contentControl=null,this._resizeOverflowTimer&&(clearTimeout(this._resizeOverflowTimer),this._resizeOverflowTimer=null),Array.from((null==(e=this.$container)?void 0:e.classList)||[]).forEach((function(A){new RegExp("^"+f+"-","g").test(A)&&t.$container.classList.remove(A)})),this.$container.classList.remove(""+f),this._themeData=null,this.i18n&&(this.i18n=null),this.recType="",this.recMonth=[],this.emit(b.theme.destroyed),this.removeAllListeners(),this.logger&&(this.logger=null),this.destroyed=!0)},t._initOptions=function(A){var t,i,a,r;if(void 0===A&&(A={}),this.options=g(Ui,A,{clone:!1}),"function"==typeof this.options.container?this.$container=this.options.container():this.$container=this.options.container,!this.$container)throw new Error("container option is required!");if(["VIDEO","CANVAS"].includes(this.$container.tagName))throw new Error("container node cannot be video or canvas!");this.staticPath=this.options.staticPath,this.logger=h(Mi({},this.options.loggerOptions||{},{name:(null==(t=this.options.loggerOptions)?void 0:t.name)||this.options.type.toUpperCase()})),this.logger.log(navigator.userAgent||"unknown"),this.logger.log("[Theme Version] ",e.THEME_VERSION),"container"in this.options&&delete this.options.container;try{this.logger.log("[options] \n",JSON.stringify(this.options))}catch(A){this.logger.log("[options] \n",this.options)}var n,o=this.options.language||"zh",s=g({zh:Re,en:Fe},this.options.locales||{},{clone:!1});(this.i18n=new I(s,{defaultLocale:o}),(null==(a=this.options.definitionOptions)||null==(i=a.list)?void 0:i.length)>0||(null==(r=this.options.videoLevelList)?void 0:r.length)>0)&&(this.videoLevelList=(null==(n=this.options.definitionOptions)?void 0:n.list)||this.options.videoLevelList);this.setScaleMode(this.options.scaleMode)},t._initClassName=function(){var A,e;this.$container.classList.add(f,oe.isMobile?f+"-mobile":f+"-pc"),["ezopen","flv","hls","mp4"].includes(this.options.type)&&this.$container.classList.add(f+"-"+this.options.type),["en","zh"].includes(this.options.language||"zh")&&this.$container.classList.add(f+"-lang-"+(this.options.language||"zh")),"string"==typeof this.options.className&&this.$container.classList.add(this.options.className),this.resize(null==(A=this.options)?void 0:A.width,null==(e=this.options)?void 0:e.height)},t._renderTheme=function(A){return Ti((function(){return Gi(this,(function(e){return Fi(this,A),[2]}))})).call(this)},t._mobileInnerWidthHeight=function(){if(oe.isMobile){var A,e,t,i,a=Math.floor(window.innerHeight),r=Math.floor(window.innerWidth);null==(e=this.$container)||null==(A=e.style)||A.setProperty("--"+f+"-mobile-inner-height",a+"px"),null==(i=this.$container)||null==(t=i.style)||t.setProperty("--"+f+"-mobile-inner-width",r+"px")}},t._addEventListener=function(){var A=this;this._fullscreen=new ue(this.$container,{prefix:f,onChange:function(e){var t;(e.isCurrentFullscreen?A.emit(b.fullscreen):A._isCurrentFullscreen&&A.emit(b.exitFullscreen),A._isCurrentFullscreen=e.isCurrentFullscreen,A.emit(b.fullscreenChange,Mi({},e,{orientationAngle:A._orientationAngle})),A._isRotated(),oe.isMobile&&!A._isCurrentFullscreen)&&((null==(t=A.controls)?void 0:t.ptzControl)&&A.controls.ptzControl.reset())}});var t=function(e){if(A.$container){var t;switch(null==(t=A.$container.classList)||t.remove(f+"-angle-0",f+"-angle-90",f+"-angle-180",f+"-angle-270"),e.angle){case 0:A.$container.classList.add(f+"-angle-0");break;case 90:A.$container.classList.add(f+"-angle-90");break;case 180:A.$container.classList.add(f+"-angle-180");break;case 270:A.$container.classList.add(f+"-angle-270")}A.orientationAngle!==e.angle&&A.emit(b.orientationChange,e.angle),A._orientationAngle=e.angle,A._mobileInnerWidthHeight(),A._isRotated()}},i=oe.orientationEventListener(t),a=i[0],r=i[1];this._cleanupOrientation=r,t(a),this._mobileInnerWidthHeight(),window.addEventListener("resize",this._throttleMobileInnerWidthHeight),this._cleanUpResizeObserver=oe.resizeObserver(this.$container,ae((function(){var t,i,a=Math.floor(A.$container.clientWidth),r=Math.floor(A.$container.clientHeight);(a>200&&a<=375?(A.$container.classList.add(f+"-medium-width"),A.$container.classList.remove(f+"-mini-width")):(a<=200?A.$container.classList.add(f+"-mini-width"):A.$container.classList.remove(f+"-mini-width"),A.$container.classList.remove(f+"-medium-width")),r>200&&r<=375?(A.$container.classList.add(f+"-medium-height"),A.$container.classList.remove(f+"-mini-height")):(r<=200?A.$container.classList.add(f+"-mini-height"):A.$container.classList.remove(f+"-mini-height"),A.$container.classList.remove(f+"-medium-height")),A.width!==a||A.height!==r)&&(A.emit(e.EVENTS.resize,{width:a,height:r,isCurrentFullscreen:A.isCurrentFullscreen,orientationAngle:A.orientationAngle}),A._width=a,A._height=r,(null==(i=A.controls)?void 0:i.timeLineControl)&&A.controls.timeLineControl.setWidth(a-20-36),A._headerMoreControlShow(),A._footerMoreControlShow());null==(t=A.$container)||t.classList.add(f+"-overflow-hidden"),A._resizeOverflowTimer&&(clearTimeout(A._resizeOverflowTimer),A._resizeOverflowTimer=null),A._resizeOverflowTimer=setTimeout((function(){var e;A._resizeOverflowTimer&&(clearTimeout(A._resizeOverflowTimer),A._resizeOverflowTimer=null),null==(e=A.$container)||e.classList.remove(f+"-overflow-hidden")}),200)}),20)),this.options.dblClickFullscreen&&!oe.isMobile&&this.$container.addEventListener("dblclick",this._onDblClickFullscreen)},t._headerMoreControlShow=function(){var A=this;if(this._header){var t,i,a,r,n=(null==(i=this._header)||null==(t=i.$left)?void 0:t.clientWidth)||0,o=(null==(r=this._header)||null==(a=r.$right)?void 0:a.clientWidth)||0,s=n+o+30>this._width;if(s){var g,l,C;if(!this._headerMoreControl&&(null==(g=this.controls)?void 0:g.recControl))this._headerMoreControl=new Ne({language:this.options.language,locales:this.i18n.translations,rootContainer:this.$container,getPopupContainer:function(){var e;return null==(e=A._header)?void 0:e.$right},placement:"br",controls:this.controls,open:!1,offset:[0,8],wrapClassName:f+"-header-more",onOpenChange:function(e){A.emit(b.control.headerMorePanelOpenChange,e)}}),null==(C=this.controls)||null==(l=C.recControl)||l.resetPopupContainer(this._headerMoreControl.$panel);this.emit(e.EVENTS.control.headerMoreShowControlsChange,s)}else if(this._width-n-o>100){var I,c,h,B,E;if(this._headerMoreControl&&(null==(I=this.controls)?void 0:I.recControl))null==(B=this.controls)||null==(h=B.recControl)||h.resetPopupContainer(null==(c=this._header)?void 0:c.$right),null==(E=this._headerMoreControl)||E.destroy(),this._headerMoreControl=null,this.emit(e.EVENTS.control.headerMoreShowControlsChange,!1)}}},t._footerMoreControlShow=function(){var A=this,t=function(){if(A._footer){var i,a,r=(null==(i=A._footer.$left)?void 0:i.clientWidth)||0,n=(null==(a=A._footer.$right)?void 0:a.clientWidth)||0;if(r+n+26>A._width){var o,s,g,l,C,I,c;!A._footerMoreControl&&(null==(o=A._footer)?void 0:o.$right)&&(A._footerMoreControl=new Ne({language:A.options.language,locales:A.i18n.translations,rootContainer:A.$container,getPopupContainer:function(){var e;return null==(e=A._footer)?void 0:e.$right},placement:"tr",controls:A.controls,open:!1,offset:[0,-8],wrapClassName:f+"-footer-more",onOpenChange:function(e){A.emit(b.control.footerMorePanelOpenChange,e)}}));var h=((null==(g=A._themeData)||null==(s=g.footer)?void 0:s.btnList)||[]).filter((function(e){var t,i=((null==(t=A._footerMoreControl)?void 0:t.list)||[]).findIndex((function(t){var i;return t.control===(null==(i=A.controls)?void 0:i[e.iconId+"Control"])}));return-1===i}));if(h.length<=0)return;if(0===(null==(C=A._footerMoreControl)||null==(l=C.list)?void 0:l.length))for(var B,E=Yi([h.pop(),h.pop()]);!(B=E()).done;){var x=B.value;if(x){var d,Q,u,p,m,_=x.iconId+"Control";null==(u=A.controls)||null==(Q=u[_])||null==(d=Q.resetPopupContainer)||d.call(Q,A._footerMoreControl.$panel,"prepend"),null==(m=A._footerMoreControl)||m.add(_,x.part,null==(p=A.controls)?void 0:p[_])}}else if(A._footerMoreControl){var y=h.pop();if(!y)return;var S,D,R,F,w,v=y.iconId+"Control";null==(R=A.controls)||null==(D=R[v])||null==(S=D.resetPopupContainer)||S.call(D,A._footerMoreControl.$panel,"prepend"),null==(w=A._footerMoreControl)||w.add(v,y.part,null==(F=A.controls)?void 0:F[v])}A.emit(e.EVENTS.control.footerMoreShowControlsChange,!!A._footerMoreControl,null==(c=A._footerMoreControl)||null==(I=c.list)?void 0:I.map((function(A){return A.key}))),A._footerMoreControl&&t()}else if(A._width-r-n>110){var P,k;if(null==(k=A._footerMoreControl)||null==(P=k.list)?void 0:P.length){var T,N,M,L,Y,G=null==(T=A._footerMoreControl)?void 0:T.list.shift();if(G){var U,J,H;if("left"===G.part)null==(H=G.control)||null==(J=H.resetPopupContainer)||J.call(H,A._footer.$left,"append");else if("right"===G.part){var O,K,V,W,Z,X;if(0===(null==(K=A._footerMoreControl)||null==(O=K.list)?void 0:O.length))null==(W=G.control)||null==(V=W.resetPopupContainer)||V.call(W,A._footer.$right,"append");else null==(X=G.control)||null==(Z=X.resetPopupContainer)||Z.call(X,A._footer.$right,"before",A._footerMoreControl.$container)}null==(U=A._footerMoreControl)||U.remove(G.control)}if(1===(null==(M=A._footerMoreControl)||null==(N=M.list)?void 0:N.length)){var q,j,z,$=null==(q=A._footerMoreControl)?void 0:q.list.shift();if($){var AA,eA,tA;if("left"===$.part)null==(tA=$.control)||null==(eA=tA.resetPopupContainer)||eA.call(tA,A._footer.$left,"append");else if("right"===$.part){var iA,aA;null==(aA=$.control)||null==(iA=aA.resetPopupContainer)||iA.call(aA,A._footer.$right,"append")}null==(AA=A._footerMoreControl)||AA.remove($.control)}null==(z=A._footerMoreControl)||null==(j=z.destroy)||j.call(z),A._footerMoreControl=null}A.emit(e.EVENTS.control.footerMoreShowControlsChange,!!A._footerMoreControl,null==(Y=A._footerMoreControl)||null==(L=Y.list)?void 0:L.map((function(A){return A.key}))),t()}}}};t()},t._removeEventListener=function(){var A,e,t,i;this._isCurrentFullscreen&&(null==(i=this._fullscreen)||i.exitFullscreen());null==(A=this._fullscreen)||A.destroy(),this._fullscreen=null,null==this._cleanupOrientation||this._cleanupOrientation.call(this),this._cleanupOrientation=null,null==(t=this._cleanUpResizeObserver)||null==(e=t.unobserve)||e.call(t),this._cleanUpResizeObserver=null,window.removeEventListener("resize",this._throttleMobileInnerWidthHeight),this._throttleMobileInnerWidthHeight=null,this.options.dblClickFullscreen&&!oe.isMobile&&this.$container.removeEventListener("dblclick",this._onDblClickFullscreen)},t._setVideoLevelList=function(A){this.videoLevelList=A},t._disabled=function(A){var e=this;void 0===A&&(A=!0),w.forEach((function(t){var i;(null==(i=e.controls)?void 0:i[t+"Control"])&&(e.controls[t+"Control"].disabled=A)}))},t._onDblClickFullscreen=function(){this.isCurrentFullscreen?this.exitFullscreen():this.fullscreen()},t._getRecType=function(A){if("ezopen"===this.options.type&&/^ezopen:\/\//.test(A)){var e,t=l.parseEzopenUrl(A);if("rec"===t.type)return"cloud"===t.recType&&"7"===(null==t||null==(e=t.searchParams)?void 0:e.busType)?(this.recType="cloudRecord","cloudRecord"):"cloud"===t.recType?(this.recType="cloudRec","cloudRec"):(this.recType="rec","rec")}return this.recType="",""},t.resetControl=function(){var A=this;this.zooming&&1!==this.zoom&&(this.zoom=1),["ptz","talk","record","speed"].forEach((function(e){var t;(null==(t=A.controls)?void 0:t[e+"Control"])&&A.controls[e+"Control"].reset()}))},t._isRotated=function(){var A,e,t,i;oe.isMobile&&(this.isCurrentFullscreen&&[0,180].includes(this._orientationAngle)?((null==(A=this.controls)?void 0:A.ptzControl)&&(this.controls.ptzControl.isRotated=!0),(null==(e=this.controls)?void 0:e.zoomControl)&&(this.controls.zoomControl.isRotated=!0)):((null==(t=this.controls)?void 0:t.ptzControl)&&(this.controls.ptzControl.isRotated=!1),(null==(i=this.controls)?void 0:i.zoomControl)&&(this.controls.zoomControl.isRotated=!1)))},Ni(e,[{key:"width",get:function(){return this._width}},{key:"height",get:function(){return this._height}},{key:"playing",get:function(){return this._playing},set:function(A){var e,t,i,a,r,n=this;if(this._playing!==A){var o,s,g,l;if(this._playing=A,A||(this.loading=!1,["ptz","talk","record"].forEach((function(A){var e;(null==(e=n.controls)?void 0:e[A+"Control"])&&n.controls[A+"Control"].reset()})),this._disabled(!0)),this.emit(b.play,A),null==(o=this.controls)?void 0:o.playControl)if(this.controls.playControl.playing!==A)null==(l=this.controls)||l.playControl.emit(b.play,A);null==(g=this._pauseControl)||null==(s=g.show)||s.call(g,A)}this._playing&&(null==(e=this.messageControl)||e.hide());this._playing?null==(i=this._interactiveResult)||null==(t=i.setTimeoutShow)||t.call(i):null==(r=this._interactiveResult)||null==(a=r.clearTimeout)||a.call(r)}},{key:"loading",get:function(){return this._loading},set:function(A){var e,t;(this._loading=A,A)?null==(e=this._loadingControl)||e.show():null==(t=this._loadingControl)||t.hide();this._loading!==A&&this.emit(b.loading,A)}},{key:"volume",get:function(){return this._volume},set:function(A){var e,t,i;A>=0&&A<=1&&(this._volume!==A&&(this._volume=A,this.emit(b.volumechange,A,this._muted),(null==(e=this.controls)?void 0:e.volumeControl)&&(null==(i=this.controls)||null==(t=i.volumeControl)?void 0:t.volume)!==A&&this.controls.volumeControl.emit(b.volumechange,A,this._muted)))}},{key:"muted",get:function(){return this._muted},set:function(A){var e,t,i;this._muted!==A&&(this._muted=A,this.emit(b.volumechange,this._volume,this._muted),(null==(e=this.controls)?void 0:e.volumeControl)&&(null==(i=this.controls)||null==(t=i.volumeControl)?void 0:t.muted)!==A&&this.controls.volumeControl.emit(b.volumechange,this._volume,A))}},{key:"zooming",get:function(){return this._zooming},set:function(A){var e,t,i,a,r,n,o,s,g,l;this._zooming!==A&&(this._zooming=A,this.emit(b.zoomingChange,A),this.zoomUtil&&(A?(null==(t=this.zoomUtil)||null==(e=t.setUpEventListeners)||e.call(t),null==(a=this.zoomUtil)||null==(i=a.setAllowZoom)||i.call(a,!0)):(null==(n=this.zoomUtil)||null==(r=n.reset)||r.call(n),null==(s=this.zoomUtil)||null==(o=s.removeEventListeners)||o.call(s),null==(l=this.zoomUtil)||null==(g=l.setAllowZoom)||g.call(l,!1))))}},{key:"zoom",get:function(){return this._zoom},set:function(A){var e,t,i,a,r;if(!this._zooming)return null==(i=this.messageControl)||null==(t=i.info)||t.call(i,this.i18n.t("ZOOM_NOT_ENABLED")),void(null==(a=this.logger)||a.warn(this.i18n.t("ZOOM_NOT_ENABLED")));A=+A.toFixed(1);var n,o,s,g,l,C,I,c,h,B,E=null!=(r=null==(e=this.options.zoomOptions)?void 0:e.max)?r:Ke.max;if(A>E)return null==(o=this.messageControl)||null==(n=o.info)||n.call(o,this.i18n.t("ZOOM_LIMIT_MAX",{zoom:E})),void(null==(s=this.logger)||s.warn(this.i18n.t("ZOOM_LIMIT_MAX",{zoom:E})));if(A<1)return null==(l=this.messageControl)||null==(g=l.info)||g.call(l,this.i18n.t("ZOOM_LIMIT_MIN",{zoom:"1"})),void(null==(C=this.logger)||C.warn(this.i18n.t("ZOOM_LIMIT_MIN",{zoom:"1"})));if(A===E)null==(c=this.messageControl)||null==(I=c.info)||I.call(c,this.i18n.t("ZOOM_ADD_MAX",{zoom:E}));else if(1===A){var x,d;null==(d=this.messageControl)||null==(x=d.info)||x.call(d,this.i18n.t("ZOOM_SUB_MIN",{zoom:1}))}A!==this._zoom&&(this._zoom=A,this.emit(b.zoomChange,A),null==this||null==(B=this.zoomUtil)||null==(h=B.setZoom)||h.call(B,A))}},{key:"talking",get:function(){return this._talking}},{key:"speed",get:function(){return this._speed},set:function(A){(A=+A)!==this._speed&&(this._speed=A,this.emit(b.speedChange,A))}},{key:"talkGain",get:function(){var A,e,t;return(null==(e=this.controls)||null==(A=e.talkControl)?void 0:A.active)?(null==(t=this.controls)?void 0:t.talkControl).value:null}},{key:"recording",get:function(){return this._recording}},{key:"ptzing",get:function(){var A,e;return null==(e=this.controls)||null==(A=e.ptzControl)?void 0:A.active}},{key:"videoLevelAuto",get:function(){return this._videoLevelAuto}},{key:"isCurrentFullscreen",get:function(){return this._isCurrentFullscreen}},{key:"orientationAngle",get:function(){return this._orientationAngle}},{key:"hasHeaderMoreControl",get:function(){return!!this._headerMoreControl}},{key:"hasFooterMoreControl",get:function(){return!!this._footerMoreControl}}]),e}(i);return Ji.TEMPLATES=be,Ji.EVENTS=b,Ji.LOCALES={zh:Re,en:Fe},Ji.THEME_VERSION="2.1.0-beta.5",c.Control=k,c.EVENTS=b,c.Fullscreen=_e,c.Loading=L,c.Message=$A,c.Play=ie,c.Poster=J,c.Rec=De,c.Theme=Ji,c.Utils=oe,c.Volume=Be,c}();Date.prototype.Format=function(A){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var t in/(y+)/.test(A)&&(A=A.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+t+")").test(A)&&(A=A.replace(RegExp.$1,1==RegExp.$1.length?e[t]:("00"+e[t]).substr((""+e[t]).length)));return A};const R=(A,e,t,i)=>{var a=document.getElementsByTagName("head")[0].getElementsByTagName("script"),r=!1;if(t)r=t();else for(var n=0;n<a.length;n++)a[n].getAttribute("src")==A&&(r=!0,a[n].readyState?a[n].onreadystatechange=function(){"complete"!=a[n].readyState&&"loaded"!=a[n].readyState||(a[n].onreadystatechange=null,e(i))}:a[n].onload=()=>{e(i)});if(!r){try{if(!document.querySelector(`script[src="${A}"]`)){var o=document.createElement("script");o.setAttribute("src",A),o.setAttribute("crossorigin",!0),o.onload=()=>e(i),document.getElementsByTagName("head")[0].appendChild(o)}}catch(A){}setTimeout((()=>{e(i)}),15)}},F=A=>{for(var e=document.getElementsByTagName("head")[0].getElementsByTagName("script"),t=0;t<e.length;t++)if(e[t].getAttribute("src")==A)return void document.getElementsByTagName("head")[0].removeChild(e[t])},w=(A,e)=>{var t=new RegExp("(\\?|#|&)"+A+"=(.*?)(#|&|$)"),i=(e||window.location.href).match(t);return decodeURIComponent(i?i[2]:"")},b=(A,e)=>{var t=e.parentNode;t.lastChild==e?t.appendChild(A):t.insertBefore(A,e.nextSibling)},P=A=>({deviceSerial:A.split("/")[3],channelNo:A.split("/")[4].split(".")[0],validCode:2===A.split("/")[2].split("@").length?A.split("/")[2].split("@")[0]:"",hd:-1!==A.indexOf(".hd"),type:-1!==A.indexOf(".cloud.rec")?"cloud.rec":-1!==A.indexOf(".rec")?"rec":"live"}),k=()=>!!window&&navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i);function T(A,e,t,i,a,r,n){try{var o=A[r](n),s=o.value}catch(A){return void t(A)}o.done?e(s):Promise.resolve(s).then(i,a)}function N(A){return function(){var e=this,t=arguments;return new Promise((function(i,a){var r=A.apply(e,t);function n(A){T(r,i,a,n,o,"next",A)}function o(A){T(r,i,a,n,o,"throw",A)}n(void 0)}))}}let M=null;function L(A=[]){return new Promise(((e,t)=>{if(M)return void e(M);const i=indexedDB.open("EZUIKitDB",1);i.onupgradeneeded=e=>{const t=e.target.result;A.forEach((A=>{t.objectStoreNames.contains(A)||t.createObjectStore(A,{keyPath:"id"})}))},i.onsuccess=A=>{const t=A.target;M=t.result,e(M)},i.onerror=A=>{const e=A.target;t(e.error)}}))}function Y(A,e,t){return G.apply(this,arguments)}function G(){return(G=N((function*(A,e,t){const i=yield L([A]);return new Promise(((a,r)=>{const n=i.transaction([A],"readwrite").objectStore(A),o=t?n.add(e,t):n.add(e);o.onsuccess=()=>{a()},o.onerror=A=>{const e=A.target;r(e.error)}}))}))).apply(this,arguments)}function U(A,e){return J.apply(this,arguments)}function J(){return(J=N((function*(A,e){const t=yield L([A]);return new Promise(((i,a)=>{const r=t.transaction([A],"readonly").objectStore(A).get(e);r.onsuccess=()=>{i(r.result)},r.onerror=A=>{const e=A.target;a(e.error)}}))}))).apply(this,arguments)}function H(A,e,t){return O.apply(this,arguments)}function O(){return(O=N((function*(A,e,t){const i=yield L([A]);return new Promise(((a,r)=>{const n=i.transaction([A],"readwrite").objectStore(A),o=t?n.put(e,t):n.put(e);o.onsuccess=()=>{a()},o.onerror=A=>{const e=A.target;r(e.error)}}))}))).apply(this,arguments)}var K={391001:"取流地址或端口非法",391004:"连接到流媒体服务失败",395e3:"服务内部异常,请稍后重试",395400:"预览取流参数异常",395402:"设备当前时段无录像,请选择其他时间段",395403:"服务异常,请重试或联系客服",395404:"设备不在线,请优化网络后重启设备再试",395405:"设备侧网络问题,请检查优化网络后重启设备再试",395406:"token过期,请重试",395407:"客户端的URL格式错误",395409:"预览开启隐私保护",395410:"服务异常,请重试或联系客服",395411:"无权查看当前设备",395412:"服务异常,请重试或联系客服",395413:"服务异常,请重试或联系客服",395415:"设备通道错误",395416:"当前观看路数达到设备最大限制,请重启设备或联系设备售后处理",395451:"设备不支持该码流类型,请检查设备通道支持情况或联系硬件售后",395452:"设备侧网络较差,请检查优化网络后重启设备再试",395454:"设备侧网络较差,请检查优化网络后重启设备再试",395455:"设备通道异常,请检查通道配置后重试",395456:"设备通道异常,请检查通道配置后重试",395457:"服务异常,请重试或联系客服",395458:"服务异常,请重试或联系客服",395459:"服务异常,请重试或联系客服",395460:"服务异常,请重试或联系客服",395492:"服务异常,请重试或联系客服",395500:"服务异常,请重试或联系客服",395501:"服务异常,请重试或联系客服",395503:"服务异常,请重试或联系客服",395504:"服务异常,请重试或联系客服",395505:"服务异常,请重试或联系客服",395506:"暂不支持该设备直接取流,请连接NVR后重试或联系客服",395507:"设备4G无限流量套餐仅支持萤石云视频APP使用,请联系APP客服更换套餐",395530:"服务异常,请重试或联系客服",395544:"视频源不存在,请检查设备配置",395545:"服务异常,请重试或联系客服",395546:"同时观看人数达到账号最大限制,请联系客服",395547:"同时观看人数达到账号最大限制,请联系客服",395556:"服务异常,请重试或联系客服",395557:"设备取流失败,请联系硬件售后",395558:"查找录像开始时间错误",395560:"服务异常,请重试或联系客服",395561:"服务异常,请重试或联系客服",395562:"服务异常,请重试或联系客服",395563:"服务异常,请重试或联系客服",395564:"服务异常,请重试或联系客服",395566:"服务异常,请重试或联系客服",395567:"服务异常,请重试或联系客服",395568:"服务异常,请重试或联系客服",395569:"服务异常,请重试或联系客服",395600:"服务异常,请重试或联系客服",395601:"服务异常,请重试或联系客服",395602:"服务异常,请重试或联系客服",395610:"服务异常,请重试或联系客服",395620:"服务异常,请重试或联系客服",395701:"服务异常,请重试或联系客服",395702:"服务异常,请重试或联系客服",395703:"服务异常,请重试或联系客服",396001:"服务异常,请重试或联系客服",396099:"服务异常,请重试或联系客服",396101:"服务异常,请重试或联系客服",396102:"服务异常,请重试或联系客服",396103:"服务异常,请重试或联系客服",396104:"服务异常,请重试或联系客服",396105:"设备异常,请重试或联系客服",396106:"设备通道异常,请检查通道配置后重试",396107:"设备异常,请重试或联系客服",396108:"服务异常,请重试或联系客服",396109:"服务异常,请重试或联系客服",396110:"设备异常,请重试或联系客服",396501:"设备异常,请重试或联系客服",396502:"设备异常,请重试或联系客服",396503:"设备异常,请重试或联系客服",396504:"设备异常,请重试或联系客服",396505:"设备异常,请重试或联系客服",396506:"设备异常,请重试或联系客服",396508:"设备异常,请重试或联系客服",396509:"设备异常,请重试或联系客服",396510:"设备异常,请重试或联系客服",396511:"设备异常,请重试或联系客服",396512:"设备异常,请重试或联系客服",396513:"设备异常,请重试或联系客服",396514:"设备异常,请重试或联系客服",396515:"设备异常,请重试或联系客服",396516:"设备异常,请重试或联系客服",396517:"设备异常,请重试或联系客服",396518:"设备异常,请重试或联系客服",396519:"设备网络异常,请检查优化网络后重启设备再试",396520:"设备网络异常,请检查优化网络后重启设备再试",396700:"服务异常,请重试或联系客服",396701:"回放结束",397001:"服务异常,请重试或联系客服",397002:"服务异常,请重试或联系客服",397003:"服务异常,请重试或联系客服",397004:"服务异常,请重试或联系客服",397005:"设备取流连接断开,请检查网络后重试",397006:"服务异常,请重试或联系客服",397007:"服务异常,请重试或联系客服",399e3:"服务异常,请重试或联系客服",399001:"客户端网络超时",399002:"服务异常,请重试或联系客服",399016:"token失效,请更新并重试",399048:"同时观看人数达到账号最大限制,请联系客服",399049:"免费版并发数达到上限,请升级企业版使用多并发能力",3810001:"操作失败",3810002:"账号异常,操作失败",3810005:"账号异常,操作失败",3820002:"设备不存在,请检查设备连接情况",3820006:"操作失败,请检查设备网络情况",3820007:"操作失败,请检查设备网络情况",3820008:"操作过于频繁,稍后再试",3820014:"操作失败",3820032:"通道不存在请检查设备连接情况",3849999:"操作失败,请重试",386e4:"操作失败,设备不支持该操作",3860001:"操作失败,用户无权限",3860002:"设备已旋转到上限位",3860003:"设备已旋转到下限位",3860004:"设备已旋转到左限位",3860005:"设备已旋转到右限位",3860006:"操作失败,请重试",3860009:"设备正在操作中",3860020:"操作失败",BTN_RETRY:"重试",BTN_RELOAD:"重新加载",LOADING:"加载中,请稍后",TIMEFORMAT_ERROR:"时间格式有误,请确认",USE_MULTITHREADING_WARING:"您当前浏览器可以开启谷歌实验室多线程特性,获取更好播放体验,避免浏览器卡顿及崩溃,详见",OPEN_INSTRUCTIONS:"开启说明",INIT_FINSHED:"初始化播放器完成",INIT_SUCCESS:"初始化播放器成功",GET_PLAYURL_FAILED:"获取播放地址失败",VIDEO_LOADING:"视频加载中",DISCONNECT:"连接断开,请重试",DEVICE_ENCRYPTED:"设备已加密",NO_RECORD:"未找到录像片段",PLAY_FAILED:"播放失败,请检查设备及客户端网络",PLAY_SUCCESS:"播放成功",STOP_SUCCESS:"停止成功",CHANGE_PLAYURL_SUCCESS:"切换播放地址成功",CHANGE_PLAYURL_FAILED:"切换播放地址失败",GET_OSD_TIME:"获取OSD时间",GET_OSD_TIME_FAILED:"获取OSD时间失败",SET_POSTER:"设置播放器封面",RESIZE:"调整播放器尺寸",SPEED:"倍速",SPEED_RATE:"倍",SPEED_CANCEL:"取消",GET_SPEED:"获取当前播放速率",MAX_SPEED_LIMIT:"播放速度最大为4倍速度",MIN_SPEED_LIMIT:"播放速度最小为0.5倍速度",SEEK_CANNOT_CROSS_DAYS:"seek时间不能跨日期",SEEK_TIMEFORMAT_ERROR:"seek时间格式错误",PAUSE:"暂停",PAUSE_FAILED:"暂停失败",RESUME:"恢复播放",RESUME_FAILED:"恢复播放失败",CALL_END:"通话已结束",USER_DO_NOT_OWN_DEVICE:"loadingSetTextWithBtn",NO_CLOUD_RECORD:"该设备在当天没有云录制的录像",CHANGE_VIDEO_LEVEL:"切换清晰度",CHANGE_VIDEO_LEVEL_FAIL:"切换清晰度失败",GET_VIDEO_LEVEL_LIST:"获取设备支持的清晰度列表",PLEASE_INPUT_RIGHT_VIDEO_LEVEL:"请输入正确的清度",VIDEO_LEVEL_NOT_SUPPORT:"当前设备不支持该清晰度",VIDEO_LEVEL_AUTO:"自动",VIDEO_LEVEL_FLUENT:"流畅",VIDEO_LEVEL_STANDARD:"标清",VIDEO_LEVEL_HEIGH:"高清",VIDEO_LEVEL_SUPER:"超清",VIDEO_LEVEL_EXTREME:"极清",VIDEO_LEVEL_3K:"3K",VIDEO_LEVEL_4k:"4K",RESET_THEME:"重置主题",BTN_PLAY:"播放/结束播放",BTN_SOUND:"声音",BTN_RECORDVIDEO:"录屏",BTN_CAPTURE:"截图",BTN_TALK:"对讲",BTN_ZOOM:"电子放大",BTN_3D_ZOOM:"3D定位",BTN_PTZ:"云台控制",BTN_EXPEND:"全局全屏",BTN_WEBEXPEND:"网页全屏",BTN_HD:"画面清晰度",BTN_SPEED:"回放倍速",BTN_CLOUDREC:"云存储回放",BTN_CLOUDRECORD:"云录制",BTN_REC:"本地存储",DEVICE_NAME:"设备名称",DEVICE_ID:"设备序列号",CAPTURE_SUCCESS:"截图成功",CAPTURE_FAILED:"截图失败",START_RECORD_SUCCESS:"开始录制成功",START_RECORD_FAILED:"开始录制失败",STOP_RECORD_SUCCESS:"停止录制成功",STOP_RECORD_FAILED:"停止录制失败",RECORD_TIPS:"今日录像",RECORDS:"个录像",OPEN_SOUND:"开启声音",CLOSE_SOUND:"关闭声音",SOUND_OPENED:"当前已经有画面正在播放声音",ZOOM:"电子放大",START_ZOOM:"开启电子放大",CLOSE_ZOOM:"关闭电子放大",ZOOM_ADD:"+",ZOOM_SUB:"-",ZOOM_ADD_MAX:"已经放大到最大倍数8.0X",ZOOM_SUB_MIN:"已经缩小到最小倍数1.0X",ZOOM_LIMIT_MAX:"超出最大倍率8.0X",ZOOM_LIMIT_MIN:"超出最小倍率1.0X","3D_ZOOM":"3D定位","3D_ZOOM_DISABLE":"未启用3D定位功能","3D_ZOOM_FAILED":"3D定位失败,请重试",START_3D_ZOOM:"开启3D定位",CLOSE_3D_ZOOM:"关闭3D定位",DEVICE_NOT_SUPPORT_3D_ZOOM:"当前设备不支持3D定位功能","3D_ZOOM_ACTIVED":"3D定位已处于开启状态","3D_ZOOM_NOT_ACTIVED":"未启用3D定位功能","3D_ZOOM_CLOSED":"3D定位已处于关闭状态",CHANGE_ZOOM_TYPE:"改变缩放模式",FULLSCREEN:"全局全屏",FULLSCREEN_EXIT:"退出全局全屏",GET_WEB_FULLSCREEN_STATUS:"获取浏览器网页全屏状态",WEB_FULLSCREEN:"开启网页全屏",WEB_FULLSCREEN_EXIT:"退出网页全屏",DESTROY:"销毁",GET_CAPACITY:"获取设备能力级",GET_PTZ_STATUS:"获取当前云台状态",GET_PTZ_STATUS_FAILED:"未加载Theme模块,无法获取云台状态",MOBILE_HIDE_PTZ:"移动端,非全屏状态不展示云台",OPTION_PTZ_FAILED:"未加载Theme模块,无法操作云台",MOBILE_PTZ_TIPS:"请通过操控云台来调整摄像机视角",PTZ_FAST:"快",PTZ_MID:"中",PTZ_SLOW:"慢",PTZ_SPEED:"调整云台转动速度",DEVICE_ZOOM:"控制设备放大/缩小画面",DEVICE_FOCUS:"调整设备焦距",NOT_SUPPORT_DEVICE_ZOOM:"当前设备不支持物理缩放",NOT_SUPPORT_FOCUS:"当前设备不支持变焦",MIRROR:"镜像翻转",MIRROR_TYPE_ERROR:"翻转参数类型错误",CHANGE_FEC_TYPE:"切换鱼眼矫正类型",DEVICE_NOT_SUPPORT:"设备不支持鱼眼模式",TYPE_NOT_SUPPORT:"鱼眼矫正类型暂时不支持",FEC_SUPPORT_VERSION:"当前只有V3软解支持鱼眼矫正",NO_CANVAS_ID:"鱼眼矫正类型需要分屏,但是没有传正确的分屏的canvas id",SET_FEC_PARAMS:"设置3D矫正视角参数",GET_FEC_PARAMS:"获取3D矫正视角参数",SET_FEC_PARAMS_FAILED:"该矫正类型不能设置3D矫正视角参数",GET_FEC_PARAMS_FAILED:"该矫正类型不能获取3D矫正视角参数",GET_FEC_PARAMS_SUPPORT_VERSION:"当前只有V3软解支持鱼眼矫正获取3D矫正视角参数",SET_WATERMARK:"设置水印",SET_GLOBALBASETIME:"设置全局时间戳",SET_ANTIALIAS:"设置抗锯齿",TALK_PERMISSION_DENIED:"对讲失败,请检查麦克风权限",TALK_ERROR:"对讲失败,请检查麦克风或网络",TALK_TALKING:"当前已经有设备正在对讲",videoFormat:"编码格式",frameRate:"帧率",systemFormat:"封装格式",resolution:"分辨率",bitrate:"码率",frameLostRate:"丢帧率",lagRate:"卡顿比"},V={391001:"Illegal streaming address or port",391004:"Failed to connect to streaming service",395e3:"Internal service exception, please try again later",395400:"Preview streaming parameter exception",395402:"Device has no recording in the current time period, please select another time period",395403:"Service exception, please try again or contact customer service",395404:"The device is not online, Please optimize the network and restart the device to try again",395405:"Device side network is poor, please check and optimize the network and restart the device to try again",395406:"Token expired, please try again",395407:"Client URL format error",395409:"Service exception, please try again or contact customer service",395410:"Service exception, please try again or contact customer service",395411:"No permission to view the current device",395412:"Service exception, please try again or contact customer service",395413:"Service exception, please try again or contact customer service",395415:"Device channel error",395416:"The current number of viewing channels has reached the maximum limit of the device. Please restart the device or contact the device after-sales service",395451:"The device does not support this bitstream type. Please check the device channel support or contact the hardware after-sales service",395452:"The network on the device side is poor. Please check and optimize the network and restart the device to try again",395454:"The network on the device side is poor. Please check and optimize the network and restart the device to try again",395455:"The device channel is abnormal. Please check the channel configuration and try again",395456:"The device channel is abnormal. Please check the channel configuration and try again",395457:"Service exception, please try again or contact customer service",395458:"Service exception, please try again or contact customer service",395459:"Service exception, please try again or contact customer service",395460:"Service exception, please try again or contact customer service",395492:"Service exception, please try again or contact customer service",395500:"Service exception, please try again or contact customer service",395501:"Service exception, please try again or contact customer service",395503:"Service exception, please try again or contact customer service",395504:"Service exception, please try again or contact customer service",395505:"Service exception, please try again or contact customer service",395506:"Direct streaming of this device is not supported at present, please try again or contact customer service after connecting to NVR",395507:"Device 4G unlimited traffic package only supports EZVIZ Cloud Video APP, please contact APP customer service to change the package",395530:"Service exception, please try again or contact customer service",395544:"Video source does not exist, please check device configuration",395545:"Service exception, please try again or contact customer service",395546:"The number of simultaneous viewers has reached the maximum limit of the account, please contact customer service",395547:"The number of simultaneous viewers has reached the maximum limit of the account, please contact customer service",395556:"Service exception, please try again or contact customer service",395557:"Device streaming failed, please contact hardware after-sales",395558:"Error in finding the start time of recording",395560:"Service exception, please try again or contact customer service",395561:"Service exception, please try again or contact customer service",395562:"Service exception, please try again or contact customer service",395563:"Service exception, please try again or contact customer service",395564:"Service exception, please try again or contact customer service",395566:"Service exception, please try again or contact customer service",395567:"Service exception, please try again or contact customer service",395568:"Service exception, please try again or contact customer service",395569:"Service exception, please try again or contact customer service",395600:"Service exception, please try again or contact customer service",395601:"Service exception, please try again or contact customer service",395602:"Service exception, please try again or contact customer service",395610:"Service exception, please try again or contact customer service",395620:"Service exception, please try again or contact customer service",395701:"Service exception, please try again or contact customer service",395702:"Service exception, please try again or contact customer service",395703:"Service exception, please try again or contact customer service",396001:"Service exception, please try again or contact customer service",396099:"Service exception, please try again or contact customer service",396101:"Service exception, please try again or contact customer service",396102:"Service exception, please try again or contact customer service",396103:"Service exception, please try again or contact customer service",396104:"Service exception, please try again or contact customer service",396105:"Device abnormality, please try again or contact customer service",396106:"Device channel abnormality, please check the channel configuration and try again",396107:"Device abnormality, please try again or contact customer service",396108:"Service exception, please try again or contact customer service",396109:"Service exception, please try again or contact customer service",396110:"Device abnormality, please try again or contact customer service",396501:"Device abnormality, please try again or contact customer service",396502:"Device abnormality, please try again or contact customer service",396503:"Device abnormality, please try again or contact customer service",396504:"Device abnormality, please try again or contact customer service",396505:"Device abnormality, please try again or contact customer service",396506:"Device abnormality, please try again or contact customer service",396508:"Device abnormality, please try again or contact customer service",396509:"Device abnormality, please try again or contact customer service",396510:"Device abnormality, please try again or contact customer service",396511:"Device abnormality, please try again or contact customer service",396512:"Device abnormality, please try again or contact customer service",396513:"Device abnormality, please try again or contact customer service",396514:"Device abnormality, please try again or contact customer service",396515:"Device abnormality, please try again or contact customer service",396516:"Device abnormality, please try again or contact customer service",396517:"Device abnormality, please try again or contact customer service",396518:"Device abnormality, please try again or contact customer service",396519:"Device network abnormality, please check and optimize the network and restart the device to try again",396520:"Device network abnormality, please check and optimize the network and restart the device to try again",396700:"Service exception, please try again or contact customer service",396701:"Playback ends",397001:"Service exception, please try again or contact customer service",397002:"Service exception, please try again or contact customer service",397003:"Service exception, please try again or contact customer service",397004:"Service exception, please try again or contact customer service",397005:"Device streaming connection is disconnected, please check the network and try again",397006:"Service exception, please try again or contact customer service",397007:"Service exception, please try again or contact customer service",399e3:"Service exception, please try again or contact customer service",399001:"Client network timeout",399002:"Service exception, please try again or contact customer service",399016:"Token invalid, please update and retry",399048:"The number of simultaneous viewers has reached the maximum account limit, please contact customer service",399049:"The number of simultaneous viewers has reached the maximum account limit, please contact customer service",3810001:"Operation failed",3810002:"Account exception, operation failed",3810005:"Account exception, operation failed",3820002:"Device does not exist, please check the device connection status",3820006:"Operation failed, please check the network condition of the device",3820007:"Operation failed, please check the network condition of the device",3820008:"The operation is too frequent, please try again later",3820014:"Operation failed",3820032:"The channel does not exist. Please check the device connection status",3849999:"Operation failed, please try again",386e4:"Operation failed, the device does not support this operation",3860001:"Operation failed, user does not have permission",3860002:"The device has been rotated to the upper limit position",3860003:"The device has been rotated to the lower limit position",3860004:"The device has rotated to the left limit position",3860005:"The device has been rotated to the right limit position",3860006:"Operation failed, please try again",3860009:"The device is currently in operation",3860020:"Operation failed",BTN_RETRY:"Retry",BTN_RELOAD:"Reload",LOADING:"Loading, please wait",TIMEFORMAT_ERROR:"The time format is wrong, please confirm",USE_MULTITHREADING_WARING:"Your current browser can enable the multi-threaded feature of Google Labs to get a better playback experience and avoid browser freezes and crashes. For details, see:",OPEN_INSTRUCTIONS:"Enablement instructions",INIT_FINSHED:"Initialize the player completed",INIT_SUCCESS:"Initialize the player successfully",GET_PLAYURL_FAILED:"Failed to obtain the playback address",VIDEO_LOADING:"Video loading",DISCONNECT:"Connection disconnected, please try again",DEVICE_ENCRYPTED:"Device encrypted",NO_RECORD:"No video clips found",PLAY_FAILED:"Play failed, please check the device and client network",PLAY_SUCCESS:"Play successfully",STOP_SUCCESS:"Stop successfully",CHANGE_PLAYURL_SUCCESS:"Switch the playback address successfully",CHANGE_PLAYURL_FAILED:"Switch the playback address failed",GET_OSD_TIME:"Get OSD time",GET_OSD_TIME_FAILED:"Failed to get OSD time",SET_POSTER:"Set the player cover",RESIZE:"Adjust the player size",SPEED:"speeds",SPEED_RATE:"X",SPEED_CANCEL:"Cancel",GET_SPEED:"Get the current playback rate",MAX_SPEED_LIMIT:"The maximum playback speed is 4 times the speed",MIN_SPEED_LIMIT:"The minimum playback speed is 0.5 times the speed",SEEK_CANNOT_CROSS_DAYS:"The seek time cannot cross dates",SEEK_TIMEFORMAT_ERROR:"The seek time format is wrong",PAUSE:"Pause",PAUSE_FAILED:"Pause failed",RESUME:"Resume playback",RESUME_FAILED:"Resume playback failed",CALL_END:"Call ended",USER_DO_NOT_OWN_DEVICE:"loadingSetTextWithBtn",NO_CLOUD_RECORD:"The device has no cloud recorded video on that day",CHANGE_VIDEO_LEVEL:"Switch definition",CHANGE_VIDEO_LEVEL_FAIL:"Switch definition failed",GET_VIDEO_LEVEL_LIST:"Get the definition list supported by the device",PLEASE_INPUT_RIGHT_VIDEO_LEVEL:"Please enter the correct definition",VIDEO_LEVEL_NOT_SUPPORT:"The current device does not support this definition",VIDEO_LEVEL_AUTO:"Auto",VIDEO_LEVEL_FLUENT:"Fluent",VIDEO_LEVEL_STANDARD:"Standard",VIDEO_LEVEL_HEIGH:"heigh",VIDEO_LEVEL_SUPER:"Super",VIDEO_LEVEL_EXTREME:"Extreme",VIDEO_LEVEL_3K:"3K",VIDEO_LEVEL_4k:"4K",RESET_THEME:"Reset theme",BTN_PLAY:"Play/end playback",BTN_SOUND:"Sound",BTN_RECORDVIDEO:"Screen recording",BTN_CAPTURE:"Screenshot",BTN_TALK:"Intercom",BTN_ZOOM:"Electronic zoom",BTN_3D_ZOOM:"3D positioning",BTN_PTZ:"PTZ control",BTN_EXPEND:"Global full screen",BTN_WEBEXPEND:"Web page full screen",BTN_HD:"Image definition",BTN_SPEED:"Playback speed",BTN_CLOUDREC:"Cloud storage playback",BTN_CLOUDRECORD:"Cloud recording",BTN_REC:"Local storage",DEVICE_NAME:"Device name",DEVICE_ID:"Device serial number",CAPTURE_SUCCESS:"Screenshot successful",CAPTURE_FAILED:"Screenshot failed",START_RECORD_SUCCESS:"Start recording successful",START_RECORD_FAILED:"Screenshot failed",STOP_RECORD_SUCCESS:"Stop recording successful",STOP_RECORD_FAILED:"Stop recording failed",RECORD_TIPS:"Today's recording",RECORDS:" in total",OPEN_SOUND:"Turn on sound",CLOSE_SOUND:"Turn off sound",SOUND_OPENED:"There is already a picture playing sound at the moment",ZOOM:"Electronic zoom",START_ZOOM:"Turn on electronic zoom",CLOSE_ZOOM:"Turn off electronic zoom",ZOOM_ADD:"+",ZOOM_SUB:"-",ZOOM_ADD_MAX:"It has been enlarged to a maximum magnification of 8.0X",ZOOM_SUB_MIN:"It has been reduced to the minimum multiple of 1.0X",ZOOM_LIMIT_MAX:"Exceeding maximum magnification of 8.0X",ZOOM_LIMIT_MIN:"Exceeding the minimum magnification of 1.0X","3D_ZOOM":"3D positioning","3D_ZOOM_DISABLE":"3D positioning function not enabled","3D_ZOOM_FAILED":"3D positioning failed, please try again",START_3D_ZOOM:"Turn on 3D positioning",CLOSE_3D_ZOOM:"Turn off 3D positioning",DEVICE_NOT_SUPPORT_3D_ZOOM:"Current device does not support 3D positioning function","3D_ZOOM_ACTIVED":"3D positioning is already enabled","3D_ZOOM_NOT_ACTIVED":"3D positioning function is not enabled","3D_ZOOM_CLOSED":"3D positioning is already disabled",CHANGE_ZOOM_TYPE:"Change zoom mode",FULLSCREEN:"Global full screen",FULLSCREEN_EXIT:"Exit global full screen",GET_WEB_FULLSCREEN_STATUS:"Get browser web page full screen status",WEB_FULLSCREEN:"Turn on web page full screen",WEB_FULLSCREEN_EXIT:"Exit full screen webpage",DESTROY:"Destroy",GET_CAPACITY:"Get device capability level",GET_PTZ_STATUS:"Get current PTZ status",GET_PTZ_STATUS_FAILED:"Theme module is not loaded, PTZ status cannot be obtained",MOBILE_HIDE_PTZ:"Mobile terminal, PTZ is not displayed in non-full screen state",OPTION_PTZ_FAILED:"Theme module is not loaded, PTZ cannot be operated",MOBILE_PTZ_TIPS:"Adjust camera angle by manipulating gimbal",PTZ_FAST:"F",PTZ_MID:"M",PTZ_SLOW:"S",PTZ_SPEED:"Adjust the PTZ rotation speed",DEVICE_ZOOM:"Control the device to zoom in/out of the screen",DEVICE_FOCUS:"Adjusting the device's focal length",NOT_SUPPORT_DEVICE_ZOOM:"Device does not support physical zoom",NOT_SUPPORT_FOCUS:"Device does not support adjusting the focal length",MIRROR:"Mirror flip",MIRROR_TYPE_ERROR:"Flip parameter type error",CHANGE_FEC_TYPE:"Switch fisheye correction type",DEVICE_NOT_SUPPORT:"Device does not support fisheye mode",TYPE_NOT_SUPPORT:"Fisheye correction type is not supported temporarily",FEC_SUPPORT_VERSION:"Currently only V3 software solution supports fisheye correction",NO_CANVAS_ID:"Fisheye correction type requires split screen, but the correct split screen canvas id is not passed",SET_FEC_PARAMS:"Set 3D correction perspective parameters",GET_FEC_PARAMS:"Get 3D correction perspective parameters",SET_FEC_PARAMS_FAILED:"This correction type cannot set 3D correction perspective parameters",GET_FEC_PARAMS_FAILED:"This correction type cannot get 3D correction perspective parameters",GET_FEC_PARAMS_SUPPORT_VERSION:"Currently only V3 software solution supports fisheye correction Get 3D correction perspective parameters",SET_WATERMARK:"Set watermark",SET_GLOBALBASETIME:"Set global base time",SET_ANTIALIAS:"Set anti-aliasing",TALK_PERMISSION_DENIED:"Permission denied",TALK_ERROR:"Talk failed, please check microphone or network",TALK_TALKING:"Currently devices that are talking to each other",videoFormat:"Video format",frameRate:"Frame fate",systemFormat:"System format",resolution:"Resolution",bitrate:"Bitrate",frameLostRate:"Frame Lost rate",lagRate:"Lag rate"};
|
|
46
46
|
/*
|
|
47
47
|
* TalkControl v0.0.2
|
|
48
48
|
* talk
|
|
49
|
-
* Copyright (c)
|
|
49
|
+
* Copyright (c) 2026-01-03 Ezviz-OpenBiz
|
|
50
50
|
* Released under the MIT License.
|
|
51
51
|
*/
|
|
52
52
|
let W=class{on(A,e){A&&e&&(this.events[A]=this.events[A]||[],this.events[A].push(e))}emit(A,e){A&&this.events[A]&&this.events[A].forEach((A=>A(e)))}off(A,e){A&&e&&this.events[A]&&this.events[A].splice(this.events[A].indexOf(e),1)}once(A,e){const t=this;this.on(A,(function i(){const a=Array.prototype.slice.call(arguments);e.apply(null,a),t.off(A,i)}))}removeAllListener(){this.events={}}constructor(){this.events={}}};!function(A){"object"==typeof exports&&"undefined"!=typeof module?module.exports=A():"function"==typeof define&&define.amd?define([],A):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).adapter=A()}((function(){return function A(e,t,i){function a(n,o){if(!t[n]){if(!e[n]){var s="function"==typeof require&&require;if(!o&&s)return s(n,!0);if(r)return r(n,!0);var g=new Error("Cannot find module '"+n+"'");throw g.code="MODULE_NOT_FOUND",g}var l=t[n]={exports:{}};e[n][0].call(l.exports,(function(A){return a(e[n][1][A]||A)}),l,l.exports,A,e,t,i)}return t[n].exports}for(var r="function"==typeof require&&require,n=0;n<i.length;n++)a(i[n]);return a}({1:[function(A,e,t){var i=(0,A("./adapter_factory.js").adapterFactory)({window:window});window.adapter=i,e.exports=i},{"./adapter_factory.js":2}],2:[function(A,e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.adapterFactory=
|