From 166ed6e38f6fe8ed9a0ad75270b81dc7eec5300e Mon Sep 17 00:00:00 2001 From: ihzero Date: Tue, 2 Jan 2024 23:16:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/build/h5/index.html | 2 +- .../js/{index.6f65ea29.js => index.b8997f94.js} | 2 +- ...r.810e53f6.js => pages-index-monitor.2b31a247.js} | 12 ++++++------ src/pages/index/monitor.vue | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) rename dist/build/h5/static/js/{index.6f65ea29.js => index.b8997f94.js} (99%) rename dist/build/h5/static/js/{pages-index-monitor.810e53f6.js => pages-index-monitor.2b31a247.js} (81%) diff --git a/dist/build/h5/index.html b/dist/build/h5/index.html index de1b530..f090467 100644 --- a/dist/build/h5/index.html +++ b/dist/build/h5/index.html @@ -1,2 +1,2 @@
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/dist/build/h5/static/js/index.6f65ea29.js b/dist/build/h5/static/js/index.b8997f94.js similarity index 99% rename from dist/build/h5/static/js/index.6f65ea29.js rename to dist/build/h5/static/js/index.b8997f94.js index 048ce86..ac5dbb9 100644 --- a/dist/build/h5/static/js/index.6f65ea29.js +++ b/dist/build/h5/static/js/index.b8997f94.js @@ -1 +1 @@ -(function(t){function a(a){for(var n,r,p=a[0],s=a[1],g=a[2],d=0,c=[];d0&&void 0!==arguments[0]?arguments[0]:"加载中...",a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];uni.showLoading({title:t,mask:a})}function g(){uni.hideLoading()}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,n=arguments.length>3?arguments[3]:void 0;uni.showToast({title:t,icon:a,mask:!1,duration:e,success:function(){n&&n()}})}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";uni.setNavigationBarTitle({title:t})}function c(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};uni.previewImage({current:t,urls:a,complete:function(t){e(t)}})}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:9,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};uni.chooseImage({count:t,sizeType:["compressed"],sourceType:["album","camera"],success:function(t){var e=t.tempFilePaths;a(e)},fail:function(){e()}})}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["album","camera"];uni.chooseVideo({sourceType:e,success:function(a){console.log(a);var e=a.tempFilePath;t(e,a)},fail:function(){a()}})}function f(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};uni.previewMedia({current:t,sources:a,complete:function(t){e(t)}})}function b(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:80,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};console.log(t,"|"),uni.compressImage({src:t,quality:a,success:function(t){console.log(t.tempFilePath),e(t.tempFilePath)},fail:function(t){console.log("失败"),n(t)}})}function h(t,a){try{uni.setStorageSync(t,a)}catch(e){}}function y(t,a){try{uni.setStorage({key:t,data:a})}catch(e){}}function w(t){try{return uni.getStorageSync(t)}catch(a){}}function _(t){try{uni.removeStorageSync(t)}catch(a){}}function v(){try{uni.clearStorageSync()}catch(t){}}function x(t){uni.showTabBarRedDot({index:t})}function C(t){uni.hideTabBarRedDot({index:t})}function k(){var t=getCurrentPages(),a=t[t.length-2];console.log(t,a),a?uni.navigateBack():uni.switchTab({url:"/pages/index/index"})}function S(t,a){if(!t)return"";var e=new Date(t),n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var i in/(y+)/.test(a)&&(a=a.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+i+")").test(a)&&(a=a.replace(RegExp.$1,1==RegExp.$1.length?n[i]:("00"+n[i]).substr((""+n[i]).length)));return a}function P(t){var a=/^1\d{10}$/;return!!a.test(t)}function T(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",e=[];return console.log(a),t.map((function(t){return[t]})).forEach((function(t){var n=(0,p.default)(t,1),i=Object.assign({},((0,r.default)(n[0]),n[0])),s=e.find((function(t){var e=(0,p.default)(t,1),n=Object.assign({},((0,r.default)(e[0]),e[0]));return n[a]===i[a]}));s?e.forEach((function(t,n){var o=(0,p.default)(t,1),s=Object.assign({},((0,r.default)(o[0]),o[0]));s[a]===i[a]&&e[n].push(i)})):e.push([(0,o.default)({},i)])})),e}function A(t,a,e){for(var n="",i=e-a,o=0;oo)return 1;if(i1&&void 0!==arguments[1]?arguments[1]:function(){},e=t;wx.requestSubscribeMessage({tmplIds:e,success:function(t){console.log(t,"成功");var n,o=0,r=(0,i.default)(e);try{for(r.s();!(n=r.n()).done;){var p=n.value;"accept"===t[p]&&(o+=1)}}catch(s){r.e(s)}finally{r.f()}0==o||a(t)},fail:function(t){20004==t.errCode?console.log("用户拒绝了",t):a(res)}})}function D(t){var a=/^(([1][1-5])|([2][1-3])|([3][1-7])|([4][1-6])|([5][0-4])|([6][1-5])|([7][1])|([8][1-2]))\d{4}(([1][9]\d{2})|([2]\d{3}))(([0][1-9])|([1][0-2]))(([0][1-9])|([1-2][0-9])|([3][0-1]))\d{3}[0-9xX]$/;if(!a.test(t))return{status:0,msg:"身份证号码不合规"};var e=t.substr(6,4),n=t.substr(10,2),i=t.substr(12,2),o=Date.parse(n+"-"+i+"-"+e),r=Date.parse(new Date),p=new Date(e,n,0).getDate();if(o>r||i>p)return{status:0,msg:"出生日期不合规"};for(var s=new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2),g=new Array("1","0","X","9","8","7","6","5","4","3","2"),d=t.split(""),u=0,c=0;c<17;c++)u+=parseInt(d[c])*parseInt(s[c]);return d[17].toUpperCase()!=g[u%11].toUpperCase()?{status:0,msg:"身份证校验码不合规"}:{status:1,msg:"校验通过"}}function B(t){var a=new RegExp("^[a-z0-9A-Z]+[- | a-z0-9A-Z . _]+@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-z]{2,}$");return a.test(t)}function N(t){var a=/[1-9]\d{12,18}/;return a.test(t)}function L(t){var a=/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;return a.test(t)}function U(){var t=new Date,a=new Date(t);a.setDate(t.getDate()-7);var e=new Date(t);return e.setDate(t.getDate()-1),{startDate:a,endDate:e}}function I(){var t=new Date,a=new Date(t);a.setMonth(t.getMonth()-1);var e=new Date(t);return e.setDate(t.getDate()-1),{startDate:a,endDate:e}}e("ac1f"),e("00b4"),e("5319"),e("4d63"),e("c607"),e("2c3e"),e("25f0"),e("d3b7"),e("159b"),e("d81d"),e("7db0"),e("14d9"),e("e25e"),e("fb6a")},"8eac":function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("f3f3"));e("d3b7"),e("159b"),e("b64b");var o=n(e("cca2")),r=n(e("2974")),p=n(e("d606")),s=e("3bf7"),g=function(t,a){var e={};return t.forEach((function(t){(0,s.isUndefined)(a[t])||(e[t]=a[t])})),e};a.default=function(t){return new Promise((function(a,e){var n,d=(0,o.default)((0,r.default)(t.baseURL,t.url),t.params),u={url:d,header:t.header,complete:function(n){t.fullPath=d,n.config=t;try{"string"===typeof n.data&&(n.data=JSON.parse(n.data))}catch(i){}(0,p.default)(a,e,n)}};if("UPLOAD"===t.method){delete u.header["content-type"],delete u.header["Content-Type"];var c={filePath:t.filePath,name:t.name},m=["files","file","timeout","formData"];n=uni.uploadFile((0,i.default)((0,i.default)((0,i.default)({},u),c),g(m,t)))}else if("DOWNLOAD"===t.method)(0,s.isUndefined)(t["timeout"])||(u["timeout"]=t["timeout"]),n=uni.downloadFile(u);else{var l=["data","method","timeout","dataType","responseType","withCredentials"];n=uni.request((0,i.default)((0,i.default)({},u),g(l,t)))}t.getTask&&t.getTask(n,t)}))}},9154:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.yn-select-list[data-v-2137a64a]{display:flex;flex-direction:column;flex:1}.u-select-input-list[data-v-2137a64a]{position:relative;flex:1;display:flex;flex-direction:row;border-radius:%?8?%;min-height:%?72?%;border:1px solid #dcdfe6;padding:0 %?20?%}.u-select-input-list .select_wrapper[data-v-2137a64a]{flex:1;display:flex;flex-direction:column;justify-content:center;font-size:%?28?%;color:#000}.u-select-input-list .right-icon .u-icon__icon[data-v-2137a64a]{margin-left:%?10?%;color:#c0c4cc}',""]),t.exports=a},"94d5":function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.userInfo=a.token=a.showAppbar=void 0;a.userInfo=function(t){return t.userInfo},a.token=function(t){return t.user_access_token},a.showAppbar=function(t){return t.showAppbar}},9580:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;a.default={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,withCredentials:!1,validateStatus:function(t){return t>=200&&t<300}}},"9b17":function(t,a,e){"use strict";e.r(a);var n=e("458f"),i=e("a5cb");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("ad9b");var r,p=e("f0c5"),s=Object(p["a"])(i["default"],n["b"],n["c"],!1,null,"2137a64a",null,!1,n["a"],r);a["default"]=s.exports},"9fb0":function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.USER_INFO=a.USERKEY=a.USERACCESSTOKEN=void 0;a.USER_INFO="USER_INFO",a.USERACCESSTOKEN="USERACCESSTOKEN",a.USERKEY="USERKEY"},a5cb:function(t,a,e){"use strict";e.r(a);var n=e("7f73"),i=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a},abc2:function(t,a,e){"use strict";function n(){this.handlers=[]}e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("14d9"),e("d3b7"),e("159b"),n.prototype.use=function(t,a){return this.handlers.push({fulfilled:t,rejected:a}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){this.handlers.forEach((function(a){null!==a&&t(a)}))};a.default=n},ad9b:function(t,a,e){"use strict";var n=e("23f0"),i=e.n(n);i.a},bb58:function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("f3f3"));e("d3b7"),e("159b");var o=e("3bf7"),r=function(t,a,e){var n={};return t.forEach((function(t){(0,o.isUndefined)(e[t])?(0,o.isUndefined)(a[t])||(n[t]=a[t]):n[t]=e[t]})),n};a.default=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=a.method||t.method||"GET",n={baseURL:t.baseURL||"",method:e,url:a.url||"",params:a.params||{},custom:(0,i.default)((0,i.default)({},t.custom||{}),a.custom||{}),header:(0,o.deepMerge)(t.header||{},a.header||{})},p=["getTask","validateStatus"];if(n=(0,i.default)((0,i.default)({},n),r(p,t,a)),"DOWNLOAD"===e)(0,o.isUndefined)(a.timeout)?(0,o.isUndefined)(t.timeout)||(n["timeout"]=t["timeout"]):n["timeout"]=a["timeout"];else if("UPLOAD"===e){delete n.header["content-type"],delete n.header["Content-Type"];var s=["files","file","filePath","name","timeout","formData"];s.forEach((function(t){(0,o.isUndefined)(a[t])||(n[t]=a[t])})),(0,o.isUndefined)(n.timeout)&&!(0,o.isUndefined)(t.timeout)&&(n["timeout"]=t["timeout"])}else{var g=["data","timeout","dataType","responseType","withCredentials"];n=(0,i.default)((0,i.default)({},n),r(g,t,a))}return n}},be8f:function(t,a,e){var n=e("62f5").default;e("d3b7"),uni.addInterceptor({returnValue:function(t){return!t||"object"!==n(t)&&"function"!==typeof t||"function"!==typeof t.then?t:new Promise((function(a,e){t.then((function(t){return t[0]?e(t[0]):a(t[1])}))}))}})},cca2:function(t,a,e){"use strict";e("7a82");var n=e("4a46").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=r,e("ac1f"),e("5319"),e("d401"),e("d3b7"),e("25f0"),e("e9c4"),e("14d9"),e("c975"),e("fb6a");var i=n(e("3bf7"));function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r(t,a){if(!a)return t;var e;if(i.isURLSearchParams(a))e=a.toString();else{var n=[];i.forEach(a,(function(t,a){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?a+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),n.push(o(a)+"="+o(t))})))})),e=n.join("&")}if(e){var r=t.indexOf("#");-1!==r&&(t=t.slice(0,r)),t+=(-1===t.indexOf("?")?"?":"&")+e}return t}},d606:function(t,a,e){"use strict";function n(t,a,e){var n=e.config.validateStatus,i=e.statusCode;!i||n&&!n(i)?a(e):t(e)}e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=n},dd03:function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("4360")),o=n(e("0cc2"));a.default={onLaunch:function(t){var a=t.query,e=a.appbar,n=a.token;n&&o.default.setAccessToken(n),"hidden"==e?(i.default.commit("showAppbar",!1),this.hideNavBar()):i.default.commit("showAppbar",!0)},methods:{hideNavBar:function(){this.$nextTick((function(){var t=document.getElementsByTagName("uni-page-head");t[0]&&(t[0].style.display="none")}))}}}},e250:function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("d3b7"),e("159b"),e("3c65"),e("14d9");var i=n(e("f3f3")),o=n(e("276c")),r=n(e("e954")),p=n(e("19f4")),s=n(e("abc2")),g=n(e("bb58")),d=n(e("9580")),u=e("3bf7");a.default=function(){function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.default)(this,t),(0,u.isPlainObject)(a)||(a={},console.warn("设置全局参数必须接收一个Object")),this.config=(0,i.default)((0,i.default)({},d.default),a),this.interceptors={request:new s.default,response:new s.default}}return(0,r.default)(t,[{key:"setConfig",value:function(t){this.config=t(this.config)}},{key:"middleware",value:function(t){t=(0,g.default)(this.config,t);var a=[p.default,void 0],e=Promise.resolve(t);this.interceptors.request.forEach((function(t){a.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)}));while(a.length)e=e.then(a.shift(),a.shift());return e}},{key:"request",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.middleware(t)}},{key:"get",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.middleware((0,i.default)({url:t,method:"GET"},a))}},{key:"post",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"POST"},e))}},{key:"put",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"PUT"},e))}},{key:"delete",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"DELETE"},e))}},{key:"connect",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"CONNECT"},e))}},{key:"head",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"HEAD"},e))}},{key:"options",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"OPTIONS"},e))}},{key:"trace",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"TRACE"},e))}},{key:"upload",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.url=t,a.method="UPLOAD",this.middleware(a)}},{key:"download",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.url=t,a.method="DOWNLOAD",this.middleware(a)}}]),t}()},e799:function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("d3b7"),e("caad"),e("2532"),e("d9e2"),e("d401");var i=n(e("4360"));function o(t,a){var e,n,o=a.value,r=i.default.getters&&(null!==(e=null===(n=i.default.getters.userInfo)||void 0===n?void 0:n.permissions_slug)&&void 0!==e?e:[]);if(!(o&&o instanceof Array))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");if(o.length>0){var p=o,s=r.some((function(t){return p.includes(t)}));s||t.parentNode&&t.parentNode.removeChild(t)}}a.default={inserted:function(t,a){o(t,a)},update:function(t,a){o(t,a)}}},ea0b:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'/* windicss layer base */*,::before,::after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}*{--tw-ring-inset:var(--tw-empty,);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent;--tw-shadow:0 0 transparent}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}b{font-weight:bolder}uni-button, uni-input{font-family:inherit;font-size:100%;line-height:1.15;margin:0;padding:0;line-height:inherit;color:inherit}uni-button{text-transform:none;background-color:initial;background-image:none}uni-button, [type="button"], [type="reset"], [type="submit"]{-webkit-appearance:button}uni-button, [role="button"]{cursor:pointer}uni-canvas, iframe, img{display:block;vertical-align:middle}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}img{border-style:solid;max-width:100%;height:auto}uni-input::-webkit-input-placeholder{opacity:1;color:#9ca3af}uni-input::placeholder{opacity:1;color:#9ca3af}uni-input::webkit-input-placeholder{opacity:1;color:#9ca3af}uni-input::-moz-placeholder{opacity:1;color:#9ca3af}uni-input:-ms-input-placeholder{opacity:1;color:#9ca3af}uni-input::-ms-input-placeholder{opacity:1;color:#9ca3af}\n/* windicss layer components */.flex-center{display:flex;align-items:center;justify-content:center}\n/* windicss layer utilities */.container{width:100%}.space-y-20rpx > :not([hidden]) ~ :not([hidden]){--tw-space-y-reverse:0;margin-top:calc(%?20?% * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(%?20?% * var(--tw-space-y-reverse))}.bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-hex-76E9F0{--tw-bg-opacity:1;background-color:rgba(118,233,240,var(--tw-bg-opacity))}.bg-hex-F7B379{--tw-bg-opacity:1;background-color:rgba(247,179,121,var(--tw-bg-opacity))}.bg-hex-EB313E{--tw-bg-opacity:1;background-color:rgba(235,49,62,var(--tw-bg-opacity))}.rounded-md{border-radius:.375rem}.border-solid{border-style:solid}.border{border-width:1px}.border-0\\.5px{border-width:.5px}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.grid{display:-ms-grid;display:grid}.hidden{display:none}.flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;-webkit-flex:1 1 0%;flex:1 1 0%}.font-bold{font-weight:700}.h-full{height:100%}.\\!h-full{height:100%!important}.h-90rpx{height:%?90?%}.h-86rpx{height:%?86?%}.h-80rpx{height:%?80?%}.h-120rpx{height:%?120?%}.h-16rpx{height:%?16?%}.h-20rpx{height:%?20?%}.h-80vh{height:80vh}.h-500rpx{height:%?500?%}.text-base{font-size:1rem;line-height:1.5rem}.text-34rpx{font-size:%?34?%;line-height:1}.text-28rpx{font-size:%?28?%;line-height:1}.text-32rpx{font-size:%?32?%;line-height:1}.text-30rpx{font-size:%?30?%;line-height:1}.text-42rpx{font-size:%?42?%;line-height:1}.text-24rpx{font-size:%?24?%;line-height:1}.leading-86rpx{line-height:%?86?%}.my-20rpx{margin-top:%?20?%;margin-bottom:%?20?%}.mx-30rpx{margin-left:%?30?%;margin-right:%?30?%}.my-12rpx{margin-top:%?12?%;margin-bottom:%?12?%}.my-10rpx{margin-top:%?10?%;margin-bottom:%?10?%}.mx-20rpx{margin-left:%?20?%;margin-right:%?20?%}.mr-20px{margin-right:20px}.mt-20rpx{margin-top:%?20?%}.ml-1{margin-left:.25rem}.ml-16rpx{margin-left:%?16?%}.ml-10rpx{margin-left:%?10?%}.mr-20rpx{margin-right:%?20?%}.ml-4rpx{margin-left:%?4?%}.mb-20rpx{margin-bottom:%?20?%}.max-h-1200rpx{max-height:%?1200?%}.opacity-50{opacity:.5}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.p-30rpx{padding:%?30?%}.p-20rpx{padding:%?20?%}.p-16rpx{padding:%?16?%}.px-20rpx{padding-left:%?20?%;padding-right:%?20?%}.px{padding-left:1px;padding-right:1px}.px-10rpx{padding-left:%?10?%;padding-right:%?10?%}.py-10rpx{padding-top:%?10?%;padding-bottom:%?10?%}.py-20rpx{padding-top:%?20?%;padding-bottom:%?20?%}.px-26rpx{padding-left:%?26?%;padding-right:%?26?%}.pb-20rpx{padding-bottom:%?20?%}.\\!pointer-events-none{pointer-events:none!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0}.left-0{left:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px -1px rgba(0,0,0,0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -4px rgba(0,0,0,0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);-webkit-box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.text-center{text-align:center}.text-hex-fa3534{--tw-text-opacity:1;color:rgba(250,53,52,var(--tw-text-opacity))}.text-hex-2979ff{--tw-text-opacity:1;color:rgba(41,121,255,var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.indent{text-indent:1.5rem}.content-type{content:"type"}.content-box{content:"box"}.ordinal{--tw-ordinal:ordinal;--tw-slashed-zero:var(--tw-empty,);--tw-numeric-figure:var(--tw-empty,);--tw-numeric-spacing:var(--tw-empty,);--tw-numeric-fraction:var(--tw-empty,);font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.invisible{visibility:hidden}.w-full{width:100%}.w-120rpx{width:%?120?%}.w-16rpx{width:%?16?%}.w-140rpx{width:%?140?%}.gap-20rpx{grid-gap:%?20?%;gap:%?20?%}.gap-x-20rpx{-webkit-column-gap:%?20?%;-moz-column-gap:%?20?%;grid-column-gap:%?20?%;column-gap:%?20?%}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate:0;--tw-rotate-x:0;--tw-rotate-y:0;--tw-rotate-z:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;-webkit-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));-ms-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,filter,backdrop-filter;-o-transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,-webkit-box-shadow,transform,-webkit-transform,filter,backdrop-filter;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);-o-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.filter{--tw-blur:var(--tw-empty,);--tw-brightness:var(--tw-empty,);--tw-contrast:var(--tw-empty,);--tw-grayscale:var(--tw-empty,);--tw-hue-rotate:var(--tw-empty,);--tw-invert:var(--tw-empty,);--tw-saturate:var(--tw-empty,);--tw-sepia:var(--tw-empty,);--tw-drop-shadow:var(--tw-empty,);-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur:blur(8px)}',""]),t.exports=a},ef9e:function(t,a,e){var n=e("ea0b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("d88fd794",n,!0,{sourceMap:!1,shadowMode:!1})},fcc2:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={userInfo:{},user_access_token:"",user_key:"",showAppbar:!0};a.default=n}}); \ No newline at end of file +(function(t){function a(a){for(var n,r,p=a[0],s=a[1],g=a[2],d=0,c=[];d0&&void 0!==arguments[0]?arguments[0]:"加载中...",a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];uni.showLoading({title:t,mask:a})}function g(){uni.hideLoading()}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,n=arguments.length>3?arguments[3]:void 0;uni.showToast({title:t,icon:a,mask:!1,duration:e,success:function(){n&&n()}})}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";uni.setNavigationBarTitle({title:t})}function c(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};uni.previewImage({current:t,urls:a,complete:function(t){e(t)}})}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:9,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};uni.chooseImage({count:t,sizeType:["compressed"],sourceType:["album","camera"],success:function(t){var e=t.tempFilePaths;a(e)},fail:function(){e()}})}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["album","camera"];uni.chooseVideo({sourceType:e,success:function(a){console.log(a);var e=a.tempFilePath;t(e,a)},fail:function(){a()}})}function f(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};uni.previewMedia({current:t,sources:a,complete:function(t){e(t)}})}function b(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:80,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};console.log(t,"|"),uni.compressImage({src:t,quality:a,success:function(t){console.log(t.tempFilePath),e(t.tempFilePath)},fail:function(t){console.log("失败"),n(t)}})}function h(t,a){try{uni.setStorageSync(t,a)}catch(e){}}function y(t,a){try{uni.setStorage({key:t,data:a})}catch(e){}}function w(t){try{return uni.getStorageSync(t)}catch(a){}}function _(t){try{uni.removeStorageSync(t)}catch(a){}}function v(){try{uni.clearStorageSync()}catch(t){}}function x(t){uni.showTabBarRedDot({index:t})}function C(t){uni.hideTabBarRedDot({index:t})}function k(){var t=getCurrentPages(),a=t[t.length-2];console.log(t,a),a?uni.navigateBack():uni.switchTab({url:"/pages/index/index"})}function S(t,a){if(!t)return"";var e=new Date(t),n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var i in/(y+)/.test(a)&&(a=a.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+i+")").test(a)&&(a=a.replace(RegExp.$1,1==RegExp.$1.length?n[i]:("00"+n[i]).substr((""+n[i]).length)));return a}function P(t){var a=/^1\d{10}$/;return!!a.test(t)}function T(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",e=[];return console.log(a),t.map((function(t){return[t]})).forEach((function(t){var n=(0,p.default)(t,1),i=Object.assign({},((0,r.default)(n[0]),n[0])),s=e.find((function(t){var e=(0,p.default)(t,1),n=Object.assign({},((0,r.default)(e[0]),e[0]));return n[a]===i[a]}));s?e.forEach((function(t,n){var o=(0,p.default)(t,1),s=Object.assign({},((0,r.default)(o[0]),o[0]));s[a]===i[a]&&e[n].push(i)})):e.push([(0,o.default)({},i)])})),e}function A(t,a,e){for(var n="",i=e-a,o=0;oo)return 1;if(i1&&void 0!==arguments[1]?arguments[1]:function(){},e=t;wx.requestSubscribeMessage({tmplIds:e,success:function(t){console.log(t,"成功");var n,o=0,r=(0,i.default)(e);try{for(r.s();!(n=r.n()).done;){var p=n.value;"accept"===t[p]&&(o+=1)}}catch(s){r.e(s)}finally{r.f()}0==o||a(t)},fail:function(t){20004==t.errCode?console.log("用户拒绝了",t):a(res)}})}function D(t){var a=/^(([1][1-5])|([2][1-3])|([3][1-7])|([4][1-6])|([5][0-4])|([6][1-5])|([7][1])|([8][1-2]))\d{4}(([1][9]\d{2})|([2]\d{3}))(([0][1-9])|([1][0-2]))(([0][1-9])|([1-2][0-9])|([3][0-1]))\d{3}[0-9xX]$/;if(!a.test(t))return{status:0,msg:"身份证号码不合规"};var e=t.substr(6,4),n=t.substr(10,2),i=t.substr(12,2),o=Date.parse(n+"-"+i+"-"+e),r=Date.parse(new Date),p=new Date(e,n,0).getDate();if(o>r||i>p)return{status:0,msg:"出生日期不合规"};for(var s=new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2),g=new Array("1","0","X","9","8","7","6","5","4","3","2"),d=t.split(""),u=0,c=0;c<17;c++)u+=parseInt(d[c])*parseInt(s[c]);return d[17].toUpperCase()!=g[u%11].toUpperCase()?{status:0,msg:"身份证校验码不合规"}:{status:1,msg:"校验通过"}}function B(t){var a=new RegExp("^[a-z0-9A-Z]+[- | a-z0-9A-Z . _]+@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-z]{2,}$");return a.test(t)}function N(t){var a=/[1-9]\d{12,18}/;return a.test(t)}function L(t){var a=/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;return a.test(t)}function U(){var t=new Date,a=new Date(t);a.setDate(t.getDate()-7);var e=new Date(t);return e.setDate(t.getDate()-1),{startDate:a,endDate:e}}function I(){var t=new Date,a=new Date(t);a.setMonth(t.getMonth()-1);var e=new Date(t);return e.setDate(t.getDate()-1),{startDate:a,endDate:e}}e("ac1f"),e("00b4"),e("5319"),e("4d63"),e("c607"),e("2c3e"),e("25f0"),e("d3b7"),e("159b"),e("d81d"),e("7db0"),e("14d9"),e("e25e"),e("fb6a")},"8eac":function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("f3f3"));e("d3b7"),e("159b"),e("b64b");var o=n(e("cca2")),r=n(e("2974")),p=n(e("d606")),s=e("3bf7"),g=function(t,a){var e={};return t.forEach((function(t){(0,s.isUndefined)(a[t])||(e[t]=a[t])})),e};a.default=function(t){return new Promise((function(a,e){var n,d=(0,o.default)((0,r.default)(t.baseURL,t.url),t.params),u={url:d,header:t.header,complete:function(n){t.fullPath=d,n.config=t;try{"string"===typeof n.data&&(n.data=JSON.parse(n.data))}catch(i){}(0,p.default)(a,e,n)}};if("UPLOAD"===t.method){delete u.header["content-type"],delete u.header["Content-Type"];var c={filePath:t.filePath,name:t.name},m=["files","file","timeout","formData"];n=uni.uploadFile((0,i.default)((0,i.default)((0,i.default)({},u),c),g(m,t)))}else if("DOWNLOAD"===t.method)(0,s.isUndefined)(t["timeout"])||(u["timeout"]=t["timeout"]),n=uni.downloadFile(u);else{var l=["data","method","timeout","dataType","responseType","withCredentials"];n=uni.request((0,i.default)((0,i.default)({},u),g(l,t)))}t.getTask&&t.getTask(n,t)}))}},9154:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.yn-select-list[data-v-2137a64a]{display:flex;flex-direction:column;flex:1}.u-select-input-list[data-v-2137a64a]{position:relative;flex:1;display:flex;flex-direction:row;border-radius:%?8?%;min-height:%?72?%;border:1px solid #dcdfe6;padding:0 %?20?%}.u-select-input-list .select_wrapper[data-v-2137a64a]{flex:1;display:flex;flex-direction:column;justify-content:center;font-size:%?28?%;color:#000}.u-select-input-list .right-icon .u-icon__icon[data-v-2137a64a]{margin-left:%?10?%;color:#c0c4cc}',""]),t.exports=a},"94d5":function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.userInfo=a.token=a.showAppbar=void 0;a.userInfo=function(t){return t.userInfo},a.token=function(t){return t.user_access_token},a.showAppbar=function(t){return t.showAppbar}},9580:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;a.default={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,withCredentials:!1,validateStatus:function(t){return t>=200&&t<300}}},"9b17":function(t,a,e){"use strict";e.r(a);var n=e("458f"),i=e("a5cb");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("ad9b");var r,p=e("f0c5"),s=Object(p["a"])(i["default"],n["b"],n["c"],!1,null,"2137a64a",null,!1,n["a"],r);a["default"]=s.exports},"9fb0":function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.USER_INFO=a.USERKEY=a.USERACCESSTOKEN=void 0;a.USER_INFO="USER_INFO",a.USERACCESSTOKEN="USERACCESSTOKEN",a.USERKEY="USERKEY"},a5cb:function(t,a,e){"use strict";e.r(a);var n=e("7f73"),i=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a},abc2:function(t,a,e){"use strict";function n(){this.handlers=[]}e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("14d9"),e("d3b7"),e("159b"),n.prototype.use=function(t,a){return this.handlers.push({fulfilled:t,rejected:a}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){this.handlers.forEach((function(a){null!==a&&t(a)}))};a.default=n},ad9b:function(t,a,e){"use strict";var n=e("23f0"),i=e.n(n);i.a},bb58:function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("f3f3"));e("d3b7"),e("159b");var o=e("3bf7"),r=function(t,a,e){var n={};return t.forEach((function(t){(0,o.isUndefined)(e[t])?(0,o.isUndefined)(a[t])||(n[t]=a[t]):n[t]=e[t]})),n};a.default=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=a.method||t.method||"GET",n={baseURL:t.baseURL||"",method:e,url:a.url||"",params:a.params||{},custom:(0,i.default)((0,i.default)({},t.custom||{}),a.custom||{}),header:(0,o.deepMerge)(t.header||{},a.header||{})},p=["getTask","validateStatus"];if(n=(0,i.default)((0,i.default)({},n),r(p,t,a)),"DOWNLOAD"===e)(0,o.isUndefined)(a.timeout)?(0,o.isUndefined)(t.timeout)||(n["timeout"]=t["timeout"]):n["timeout"]=a["timeout"];else if("UPLOAD"===e){delete n.header["content-type"],delete n.header["Content-Type"];var s=["files","file","filePath","name","timeout","formData"];s.forEach((function(t){(0,o.isUndefined)(a[t])||(n[t]=a[t])})),(0,o.isUndefined)(n.timeout)&&!(0,o.isUndefined)(t.timeout)&&(n["timeout"]=t["timeout"])}else{var g=["data","timeout","dataType","responseType","withCredentials"];n=(0,i.default)((0,i.default)({},n),r(g,t,a))}return n}},be8f:function(t,a,e){var n=e("62f5").default;e("d3b7"),uni.addInterceptor({returnValue:function(t){return!t||"object"!==n(t)&&"function"!==typeof t||"function"!==typeof t.then?t:new Promise((function(a,e){t.then((function(t){return t[0]?e(t[0]):a(t[1])}))}))}})},cca2:function(t,a,e){"use strict";e("7a82");var n=e("4a46").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=r,e("ac1f"),e("5319"),e("d401"),e("d3b7"),e("25f0"),e("e9c4"),e("14d9"),e("c975"),e("fb6a");var i=n(e("3bf7"));function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r(t,a){if(!a)return t;var e;if(i.isURLSearchParams(a))e=a.toString();else{var n=[];i.forEach(a,(function(t,a){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?a+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),n.push(o(a)+"="+o(t))})))})),e=n.join("&")}if(e){var r=t.indexOf("#");-1!==r&&(t=t.slice(0,r)),t+=(-1===t.indexOf("?")?"?":"&")+e}return t}},d606:function(t,a,e){"use strict";function n(t,a,e){var n=e.config.validateStatus,i=e.statusCode;!i||n&&!n(i)?a(e):t(e)}e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=n},dd03:function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("4360")),o=n(e("0cc2"));a.default={onLaunch:function(t){var a=t.query,e=a.appbar,n=a.token;n&&o.default.setAccessToken(n),"hidden"==e?(i.default.commit("showAppbar",!1),this.hideNavBar()):i.default.commit("showAppbar",!0)},methods:{hideNavBar:function(){this.$nextTick((function(){var t=document.getElementsByTagName("uni-page-head");t[0]&&(t[0].style.display="none")}))}}}},e250:function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("d3b7"),e("159b"),e("3c65"),e("14d9");var i=n(e("f3f3")),o=n(e("276c")),r=n(e("e954")),p=n(e("19f4")),s=n(e("abc2")),g=n(e("bb58")),d=n(e("9580")),u=e("3bf7");a.default=function(){function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.default)(this,t),(0,u.isPlainObject)(a)||(a={},console.warn("设置全局参数必须接收一个Object")),this.config=(0,i.default)((0,i.default)({},d.default),a),this.interceptors={request:new s.default,response:new s.default}}return(0,r.default)(t,[{key:"setConfig",value:function(t){this.config=t(this.config)}},{key:"middleware",value:function(t){t=(0,g.default)(this.config,t);var a=[p.default,void 0],e=Promise.resolve(t);this.interceptors.request.forEach((function(t){a.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)}));while(a.length)e=e.then(a.shift(),a.shift());return e}},{key:"request",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.middleware(t)}},{key:"get",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.middleware((0,i.default)({url:t,method:"GET"},a))}},{key:"post",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"POST"},e))}},{key:"put",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"PUT"},e))}},{key:"delete",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"DELETE"},e))}},{key:"connect",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"CONNECT"},e))}},{key:"head",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"HEAD"},e))}},{key:"options",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"OPTIONS"},e))}},{key:"trace",value:function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware((0,i.default)({url:t,data:a,method:"TRACE"},e))}},{key:"upload",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.url=t,a.method="UPLOAD",this.middleware(a)}},{key:"download",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.url=t,a.method="DOWNLOAD",this.middleware(a)}}]),t}()},e799:function(t,a,e){"use strict";e("7a82");var n=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("d3b7"),e("caad"),e("2532"),e("d9e2"),e("d401");var i=n(e("4360"));function o(t,a){var e,n,o=a.value,r=i.default.getters&&(null!==(e=null===(n=i.default.getters.userInfo)||void 0===n?void 0:n.permissions_slug)&&void 0!==e?e:[]);if(!(o&&o instanceof Array))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");if(o.length>0){var p=o,s=r.some((function(t){return p.includes(t)}));s||t.parentNode&&t.parentNode.removeChild(t)}}a.default={inserted:function(t,a){o(t,a)},update:function(t,a){o(t,a)}}},ea0b:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'/* windicss layer base */*,::before,::after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}*{--tw-ring-inset:var(--tw-empty,);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent;--tw-shadow:0 0 transparent}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}b{font-weight:bolder}uni-button, uni-input{font-family:inherit;font-size:100%;line-height:1.15;margin:0;padding:0;line-height:inherit;color:inherit}uni-button{text-transform:none;background-color:initial;background-image:none}uni-button, [type="button"], [type="reset"], [type="submit"]{-webkit-appearance:button}uni-button, [role="button"]{cursor:pointer}uni-canvas, iframe, img{display:block;vertical-align:middle}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}img{border-style:solid;max-width:100%;height:auto}uni-input::-webkit-input-placeholder{opacity:1;color:#9ca3af}uni-input::placeholder{opacity:1;color:#9ca3af}uni-input::webkit-input-placeholder{opacity:1;color:#9ca3af}uni-input::-moz-placeholder{opacity:1;color:#9ca3af}uni-input:-ms-input-placeholder{opacity:1;color:#9ca3af}uni-input::-ms-input-placeholder{opacity:1;color:#9ca3af}\n/* windicss layer components */.flex-center{display:flex;align-items:center;justify-content:center}\n/* windicss layer utilities */.container{width:100%}.space-y-20rpx > :not([hidden]) ~ :not([hidden]){--tw-space-y-reverse:0;margin-top:calc(%?20?% * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(%?20?% * var(--tw-space-y-reverse))}.bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-hex-76E9F0{--tw-bg-opacity:1;background-color:rgba(118,233,240,var(--tw-bg-opacity))}.bg-hex-F7B379{--tw-bg-opacity:1;background-color:rgba(247,179,121,var(--tw-bg-opacity))}.bg-hex-EB313E{--tw-bg-opacity:1;background-color:rgba(235,49,62,var(--tw-bg-opacity))}.rounded-md{border-radius:.375rem}.border-solid{border-style:solid}.border{border-width:1px}.border-0\\.5px{border-width:.5px}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.grid{display:-ms-grid;display:grid}.hidden{display:none}.flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;-webkit-flex:1 1 0%;flex:1 1 0%}.font-bold{font-weight:700}.h-full{height:100%}.\\!h-full{height:100%!important}.h-90rpx{height:%?90?%}.h-86rpx{height:%?86?%}.h-80rpx{height:%?80?%}.h-120rpx{height:%?120?%}.h-16rpx{height:%?16?%}.h-20rpx{height:%?20?%}.h-80vh{height:80vh}.h-500rpx{height:%?500?%}.text-base{font-size:1rem;line-height:1.5rem}.text-34rpx{font-size:%?34?%;line-height:1}.text-28rpx{font-size:%?28?%;line-height:1}.text-32rpx{font-size:%?32?%;line-height:1}.text-30rpx{font-size:%?30?%;line-height:1}.text-42rpx{font-size:%?42?%;line-height:1}.text-24rpx{font-size:%?24?%;line-height:1}.leading-86rpx{line-height:%?86?%}.my-20rpx{margin-top:%?20?%;margin-bottom:%?20?%}.mx-30rpx{margin-left:%?30?%;margin-right:%?30?%}.my-12rpx{margin-top:%?12?%;margin-bottom:%?12?%}.my-10rpx{margin-top:%?10?%;margin-bottom:%?10?%}.mx-20rpx{margin-left:%?20?%;margin-right:%?20?%}.mr-20px{margin-right:20px}.mt-20rpx{margin-top:%?20?%}.ml-1{margin-left:.25rem}.ml-16rpx{margin-left:%?16?%}.ml-10rpx{margin-left:%?10?%}.mr-20rpx{margin-right:%?20?%}.ml-4rpx{margin-left:%?4?%}.mb-20rpx{margin-bottom:%?20?%}.max-h-1200rpx{max-height:%?1200?%}.opacity-50{opacity:.5}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.p-30rpx{padding:%?30?%}.p-20rpx{padding:%?20?%}.p-16rpx{padding:%?16?%}.px-20rpx{padding-left:%?20?%;padding-right:%?20?%}.px{padding-left:1px;padding-right:1px}.px-10rpx{padding-left:%?10?%;padding-right:%?10?%}.py-10rpx{padding-top:%?10?%;padding-bottom:%?10?%}.py-20rpx{padding-top:%?20?%;padding-bottom:%?20?%}.px-26rpx{padding-left:%?26?%;padding-right:%?26?%}.pb-20rpx{padding-bottom:%?20?%}.\\!pointer-events-none{pointer-events:none!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0}.left-0{left:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px -1px rgba(0,0,0,0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -4px rgba(0,0,0,0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);-webkit-box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.text-center{text-align:center}.text-hex-fa3534{--tw-text-opacity:1;color:rgba(250,53,52,var(--tw-text-opacity))}.text-hex-2979ff{--tw-text-opacity:1;color:rgba(41,121,255,var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.indent{text-indent:1.5rem}.content-type{content:"type"}.content-box{content:"box"}.ordinal{--tw-ordinal:ordinal;--tw-slashed-zero:var(--tw-empty,);--tw-numeric-figure:var(--tw-empty,);--tw-numeric-spacing:var(--tw-empty,);--tw-numeric-fraction:var(--tw-empty,);font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.invisible{visibility:hidden}.w-full{width:100%}.w-120rpx{width:%?120?%}.w-16rpx{width:%?16?%}.w-140rpx{width:%?140?%}.gap-20rpx{grid-gap:%?20?%;gap:%?20?%}.gap-x-20rpx{-webkit-column-gap:%?20?%;-moz-column-gap:%?20?%;grid-column-gap:%?20?%;column-gap:%?20?%}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate:0;--tw-rotate-x:0;--tw-rotate-y:0;--tw-rotate-z:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;-webkit-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));-ms-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,filter,backdrop-filter;-o-transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,-webkit-box-shadow,transform,-webkit-transform,filter,backdrop-filter;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);-o-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.filter{--tw-blur:var(--tw-empty,);--tw-brightness:var(--tw-empty,);--tw-contrast:var(--tw-empty,);--tw-grayscale:var(--tw-empty,);--tw-hue-rotate:var(--tw-empty,);--tw-invert:var(--tw-empty,);--tw-saturate:var(--tw-empty,);--tw-sepia:var(--tw-empty,);--tw-drop-shadow:var(--tw-empty,);-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur:blur(8px)}',""]),t.exports=a},ef9e:function(t,a,e){var n=e("ea0b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("d88fd794",n,!0,{sourceMap:!1,shadowMode:!1})},fcc2:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={userInfo:{},user_access_token:"",user_key:"",showAppbar:!0};a.default=n}}); \ No newline at end of file diff --git a/dist/build/h5/static/js/pages-index-monitor.810e53f6.js b/dist/build/h5/static/js/pages-index-monitor.2b31a247.js similarity index 81% rename from dist/build/h5/static/js/pages-index-monitor.810e53f6.js rename to dist/build/h5/static/js/pages-index-monitor.2b31a247.js index b436b8a..43e330e 100644 --- a/dist/build/h5/static/js/pages-index-monitor.810e53f6.js +++ b/dist/build/h5/static/js/pages-index-monitor.2b31a247.js @@ -1,4 +1,4 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-monitor"],{"0158":function(e,t,i){"use strict";i.r(t);var n=i("0247"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=a.a},"0235":function(e,t,i){"use strict";i.d(t,"i",(function(){return l})),i.d(t,"h",(function(){return u})),i.d(t,"d",(function(){return c})),i.d(t,"f",(function(){return h})),i.d(t,"e",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"g",(function(){return v})),i.d(t,"a",(function(){return m})),i.d(t,"b",(function(){return g}));var n=i("be09"),a=i.n(n),r={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},s=["video","audio","text"],o=["Video","Audio","Text"],l=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,i){var n=("00"+Number(t).toString(16)).slice(-2),a=("00"+Number(i).toString(16)).slice(-2);return"avc1."+n+"00"+a})):e},u=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach((function(e){var t;e=e.trim(),s.forEach((function(n){var a=r[n].exec(e.toLowerCase());if(a&&!(a.length<=1)){t=n;var s=e.substring(0,a[1].length),o=e.replace(s,"");i.push({type:s,details:o,mediaType:n})}})),t||i.push({type:e,details:"",mediaType:"unknown"})})),i},c=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var a=i[n];if(a.default&&a.playlists)return u(a.playlists[0].attributes.CODECS)}return null},h=function(e){return void 0===e&&(e=""),r.audio.test(e.trim().toLowerCase())},d=function(e){return void 0===e&&(e=""),r.text.test(e.trim().toLowerCase())},p=function(e){if(e&&"string"===typeof e){var t=e.toLowerCase().split(",").map((function(e){return l(e.trim())})),i="video";1===t.length&&h(t[0])?i="audio":1===t.length&&d(t[0])&&(i="application");var n="mp4";return t.every((function(e){return r.mp4.test(e)}))?n="mp4":t.every((function(e){return r.webm.test(e)}))?n="webm":t.every((function(e){return r.ogg.test(e)}))&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}},f=function(e){return void 0===e&&(e=""),a.a.MediaSource&&a.a.MediaSource.isTypeSupported&&a.a.MediaSource.isTypeSupported(p(e))||!1},v=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t=0&&!this.plain?"":"u-hairline-border"}},data:function(){return{rippleTop:0,rippleLeft:0,fields:{},waveActive:!1}},methods:{click:function(e){var t=this;this.$u.throttle((function(){!0!==t.loading&&!0!==t.disabled&&(t.ripple&&(t.waveActive=!1,t.$nextTick((function(){this.getWaveQuery(e)}))),t.$emit("click",e))}),this.throttleTime)},getWaveQuery:function(e){var t=this;this.getElQuery().then((function(i){var n=i[0];if(n.width&&n.width&&(n.targetWidth=n.height>n.width?n.height:n.width,n.targetWidth)){t.fields=n;var a="",r="";a=e.touches[0].clientX,r=e.touches[0].clientY,t.rippleTop=r-n.top-n.targetWidth/2,t.rippleLeft=a-n.left-n.targetWidth/2,t.$nextTick((function(){t.waveActive=!0}))}}))},getElQuery:function(){var e=this;return new Promise((function(t){var i="";i=uni.createSelectorQuery().in(e),i.select(".u-btn").boundingClientRect(),i.exec((function(e){t(e)}))}))},getphonenumber:function(e){this.$emit("getphonenumber",e)},getuserinfo:function(e){this.$emit("getuserinfo",e)},error:function(e){this.$emit("error",e)},opensetting:function(e){this.$emit("opensetting",e)},launchapp:function(e){this.$emit("launchapp",e)}}}},"03a3":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n}));var n={uSubsection:i("3ba2").default,uDropdown:i("20b3").default,uDropdownItem:i("0dcd").default,uIcon:i("f86b").default,uButton:i("d9ad").default,uSwitch:i("89f2").default,uLoadmore:i("eb64").default,uEmpty:i("7516").default,uPicker:i("665d").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"monitor-page bg-page"},[i("v-uni-view",{staticClass:"utab-section"},[i("u-subsection",{attrs:{list:e.list,current:e.current},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.sectionChange.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"secreen-section",staticStyle:{"background-color":"#fff"}},[0==e.current?i("u-dropdown",{ref:"uDropdown",staticClass:"dropdown-box"},[i("u-dropdown-item",{attrs:{title:"基地",height:"700rpx",options:e.deviceAddressList},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)}},model:{value:e.addressValue,callback:function(t){e.addressValue=t},expression:"addressValue"}}),i("u-dropdown-item",{attrs:{title:"检测点",height:"700rpx",options:e.options2},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change2.apply(void 0,arguments)}},model:{value:e.device_id,callback:function(t){e.device_id=t},expression:"device_id"}}),i("u-dropdown-item",{attrs:{title:"全部",options:e.options3},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change3.apply(void 0,arguments)}},model:{value:e.is_recommend,callback:function(t){e.is_recommend=t},expression:"is_recommend"}})],1):e._e(),1==e.current?i("u-dropdown",{ref:"uDropdown2",staticClass:"dropdown-box",on:{open:function(t){arguments[0]=t=e.$handleEvent(t),e.openDropDown.apply(void 0,arguments)}}},[i("u-dropdown-item",{attrs:{title:"基地",height:"700rpx",options:e.deviceAddressList2},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)}},model:{value:e.addressValue2,callback:function(t){e.addressValue2=t},expression:"addressValue2"}}),i("u-dropdown-item",{attrs:{title:"检测点",height:"700rpx",options:e.options4},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change4.apply(void 0,arguments)}},model:{value:e.device_id2,callback:function(t){e.device_id2=t},expression:"device_id2"}}),1==e.current?i("u-dropdown-item",{attrs:{title:"日期"}},[i("v-uni-view",{staticClass:"slot-content",staticStyle:{"background-color":"#ffffff"}},[i("v-uni-view",{staticClass:"select-date u-border-bottom",staticStyle:{"margin-bottom":"0"}},[i("v-uni-view",{staticClass:"name",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerTimeFn("start")}}},[i("u-icon",{attrs:{name:"calendar",color:"#333",size:"32"}}),i("v-uni-text",{staticStyle:{"margin-left":"6rpx"}},[e._v("开始时间:")])],1),i("v-uni-view",{staticClass:"time_box"},[e.start_date_c?i("v-uni-view",{staticClass:"tile_val",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerTimeFn("start")}}},[e._v(e._s(e.start_date_c))]):i("v-uni-view",{staticClass:"tip_txt",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerTimeFn("start")}}},[e._v("请选择开始时间")]),e.start_date_c?i("v-uni-view",{staticClass:"delete_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteDateFn("start")}}},[i("u-icon",{attrs:{name:"close-circle",color:"#333",size:"34"}})],1):e._e()],1)],1),i("v-uni-view",{staticClass:"select-date u-border-bottom",staticStyle:{"margin-bottom":"0"}},[i("v-uni-view",{staticClass:"name",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerTimeFn("end")}}},[i("u-icon",{attrs:{name:"calendar",color:"#333",size:"32"}}),i("v-uni-text",{staticStyle:{"margin-left":"6rpx"}},[e._v("结束时间:")])],1),i("v-uni-view",{staticClass:"time_box"},[e.end_date_c?i("v-uni-view",{staticClass:"tile_val",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerTimeFn("end")}}},[e._v(e._s(e.end_date_c))]):i("v-uni-view",{staticClass:"tip_txt",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerTimeFn("end")}}},[e._v("请选择结束时间")]),e.end_date_c?i("v-uni-view",{staticClass:"delete_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteDateFn("end")}}},[i("u-icon",{attrs:{name:"close-circle",color:"#333",size:"34"}})],1):e._e()],1)],1),e.selectedTimeTip?i("v-uni-view",{staticClass:"select-date u-border-bottom"},[i("v-uni-view",{staticClass:"tip_err_text"},[e._v("请选择开始时间和结束时间,查询视频")])],1):e._e(),i("v-uni-view",{staticClass:"btn_group"},[i("u-button",{staticClass:"btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.resetSecreen()}}},[e._v("重置")]),i("u-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectedDateConform()}}},[e._v("查询")])],1)],1)],1):e._e()],1):e._e()],1),0==e.current&&e.addressName?i("v-uni-view",{staticClass:"secreen-show-box mt20"},[i("v-uni-view",{staticClass:"label_t"},[e._v("当前位置:")]),i("v-uni-view",{staticClass:"info"},[e._v(e._s(e.addressName)+"-"+e._s(e.device_id?e.device_id:"全部")+"-"+e._s(e.is_recommend?"推荐":"全部"))])],1):e._e(),1==e.current&&e.q_start_time?i("v-uni-view",{staticClass:"secreen-show-box mt20"},[i("v-uni-view",{staticClass:"label_t"},[e._v("查询:")]),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",[e._v(e._s(e.addressName2)+"-"+e._s(e.device_id2))]),i("v-uni-view",[e._v(e._s(e.q_start_time)+" 到 "+e._s(e.q_end_time))])],1)],1):e._e(),i("v-uni-view",{staticClass:"content-box"},[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:0==e.current,expression:"current == 0"}],staticClass:"video_ul"},[e._l(e.videoList,(function(t,n){return i("v-uni-view",{key:n+"s",staticClass:"video_li"},[i("v-uni-view",{staticClass:"video_cd"},[i("LiveVideo",{attrs:{id:t.id}})],1),i("v-uni-view",{staticClass:"bottom-box"},[i("v-uni-view",{staticClass:"row flex-row"},[i("v-uni-view",{staticClass:"lab"},[e._v("推荐:")]),i("u-switch",{attrs:{size:"30"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeRecommend(t,n)}},model:{value:t.bl_recommend,callback:function(i){e.$set(t,"bl_recommend",i)},expression:"video.bl_recommend"}})],1),i("v-uni-view",{staticClass:"address"},[e._v(e._s(t.base_name)+"-"+e._s(t.monitoring_point))])],1)],1)})),i("u-loadmore",{attrs:{status:e.loading}})],2),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==e.current,expression:"current == 1"}],staticClass:"video_ul"},[e._l(e.videoList2,(function(t,n){return i("v-uni-view",{key:n+"s2",staticClass:"video_li"},[i("v-uni-view",{staticClass:"video_cd"},[i("LiveVideo",{attrs:{id:t.id}})],1),i("v-uni-view",{staticClass:"bottom-box"},[i("v-uni-view",{staticClass:"address"},[e._v(e._s(t.base_name)+"-"+e._s(t.monitoring_point))])],1)],1)})),e.loading2?i("u-loadmore",{attrs:{status:e.loading2}}):e._e(),e.videoList2&&e.videoList2.length?e._e():i("u-empty",{attrs:{text:"请选择要查看的视频的日期",mode:"history","margin-top":"100"}})],2)],1),i("u-picker",{attrs:{mode:"time",params:e.pickerParams,"default-time":e.defaultTime},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerChange.apply(void 0,arguments)}},model:{value:e.pickerShow,callback:function(t){e.pickerShow=t},expression:"pickerShow"}})],1)},r=[]},"0696":function(e,t,i){"use strict";var n=i("8866"),a=i.n(n);a.a},"095a":function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return s}));var n=i("be09"),a=i.n(n),r=function(t){return a.a.atob?a.a.atob(t):e.from(t,"base64").toString("binary")};function s(e){for(var t=r(e),i=new Uint8Array(t.length),n=0;n0;a+=12,r--)i.references.push({referenceType:(128&e[a])>>>7,referencedSize:2147483647&t.getUint32(a),subsegmentDuration:t.getUint32(a+4),startsWithSap:!!(128&e[a+8]),sapType:(112&e[a+8])>>>4,sapDeltaTime:268435455&t.getUint32(a+8)});return i};e.exports=a},"0b92":function(e,t,i){var n=i("7357");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("87c220d8",n,!0,{sourceMap:!1,shadowMode:!1})},"0c01":function(e,t,i){"use strict";var n=i("d136"),a=i.n(n),r=i("be09"),s=i.n(r),o="http://example.com",l=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=s.a.location&&s.a.location.href||"");var i="function"===typeof s.a.URL,n=/^\/\//.test(e),r=!s.a.location&&!/\/\//i.test(e);if(i?e=new s.a.URL(e,s.a.location||o):/\/\//i.test(e)||(e=a.a.buildAbsoluteURL(s.a.location&&s.a.location.href||"",e)),i){var l=new URL(t,e);return r?l.href.slice(o.length):n?l.href.slice(l.protocol.length):l.href}return a.a.buildAbsoluteURL(e,t)};t["a"]=l},"0c1c":function(e,t,i){"use strict";e.exports=function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}},"0c42":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-switch[data-v-0d3821ba]{position:relative;display:inline-block;box-sizing:initial;width:2em;height:1em;background-color:#fff;border:1px solid rgba(0,0,0,.1);border-radius:1em;transition:background-color .3s;font-size:%?50?%}.u-switch__node[data-v-0d3821ba]{display:flex;flex-direction:row;align-items:center;justify-content:center;position:absolute;top:0;left:0;border-radius:100%;z-index:1;background-color:#fff;background-color:#fff;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);transition:-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05),-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:-webkit-transform cubic-bezier(.3,1.05,.4,1.05);transition:transform cubic-bezier(.3,1.05,.4,1.05);transition:transform cubic-bezier(.3,1.05,.4,1.05),-webkit-transform cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05)}.u-switch__loading[data-v-0d3821ba]{display:flex;flex-direction:row;align-items:center;justify-content:center}.u-switch--on[data-v-0d3821ba]{background-color:#1989fa}.u-switch--on .u-switch__node[data-v-0d3821ba]{-webkit-transform:translateX(100%);transform:translateX(100%)}.u-switch--disabled[data-v-0d3821ba]{opacity:.4}',""]),e.exports=t},"0de0":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return/mp4a\.\d+.\d+/i.test(e)},a=function(e){return/avc1\.[\da-f]+/i.test(e)},r=function(e){var t={type:"",parameters:{}},i=e.trim().split(";");return t.type=i.shift().trim(),i.forEach((function(e){var i=e.trim().split("=");if(i.length>1){var n=i[0].replace(/"/g,"").trim(),a=i[1].replace(/"/g,"").trim();t.parameters[n]=a}})),t},s=function(e){return e.map((function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,i){var n=("00"+Number(t).toString(16)).slice(-2),a=("00"+Number(i).toString(16)).slice(-2);return"avc1."+n+"00"+a}))}))};t["default"]={isAudioCodec:n,parseContentType:r,isVideoCodec:a,translateLegacyCodecs:s},e.exports=t["default"]},"0ea2":function(e,t,i){"use strict";var n,a,r,s=i("4329"),o=i("4e69"),l=i("ae75"),u=i("256f").TimestampRolloverStream,c=i("ae75"),h=188,d=71;n=function(){var e=new Uint8Array(h),t=0;n.prototype.init.call(this),this.push=function(i){var n,a=0,r=h;t?(n=new Uint8Array(i.byteLength+t),n.set(e.subarray(0,t)),n.set(i,t),t=0):n=i;while(r>>4>1&&(n+=t[n]+1),0===i.pid)i.type="pat",e(t.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid){i.type="pmt",e(t.subarray(n),i),this.trigger("data",i);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,i]):this.processPes_(t,n,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=l.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=l.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},a.prototype=new s,a.STREAM_TYPES={h264:27,adts:15},r=function(){var e=this,t={data:[],size:0},i={data:[],size:0},n={data:[],size:0},a=function(e,t){var i;t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!==(4&e[6]),i=e[7],192&i&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8])},s=function(t,i,n){var r,s=new Uint8Array(t.size),o={type:i},l=0,u=0,c=!1;if(t.data.length&&!(t.size<9)){for(o.trackId=t.data[0].pid,l=0;l=0&&e<=100}function r(){var e=100,t=3,i=0,r=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!a(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!a(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!a(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!a(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!a(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=n(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}e.exports=r},"12c6":function(e,t,i){ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-monitor"],{"0158":function(e,t,i){"use strict";i.r(t);var n=i("0247"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=a.a},"0235":function(e,t,i){"use strict";i.d(t,"i",(function(){return l})),i.d(t,"h",(function(){return u})),i.d(t,"d",(function(){return c})),i.d(t,"f",(function(){return h})),i.d(t,"e",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"g",(function(){return v})),i.d(t,"a",(function(){return m})),i.d(t,"b",(function(){return g}));var n=i("be09"),a=i.n(n),r={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},s=["video","audio","text"],o=["Video","Audio","Text"],l=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,i){var n=("00"+Number(t).toString(16)).slice(-2),a=("00"+Number(i).toString(16)).slice(-2);return"avc1."+n+"00"+a})):e},u=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach((function(e){var t;e=e.trim(),s.forEach((function(n){var a=r[n].exec(e.toLowerCase());if(a&&!(a.length<=1)){t=n;var s=e.substring(0,a[1].length),o=e.replace(s,"");i.push({type:s,details:o,mediaType:n})}})),t||i.push({type:e,details:"",mediaType:"unknown"})})),i},c=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var a=i[n];if(a.default&&a.playlists)return u(a.playlists[0].attributes.CODECS)}return null},h=function(e){return void 0===e&&(e=""),r.audio.test(e.trim().toLowerCase())},d=function(e){return void 0===e&&(e=""),r.text.test(e.trim().toLowerCase())},p=function(e){if(e&&"string"===typeof e){var t=e.toLowerCase().split(",").map((function(e){return l(e.trim())})),i="video";1===t.length&&h(t[0])?i="audio":1===t.length&&d(t[0])&&(i="application");var n="mp4";return t.every((function(e){return r.mp4.test(e)}))?n="mp4":t.every((function(e){return r.webm.test(e)}))?n="webm":t.every((function(e){return r.ogg.test(e)}))&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}},f=function(e){return void 0===e&&(e=""),a.a.MediaSource&&a.a.MediaSource.isTypeSupported&&a.a.MediaSource.isTypeSupported(p(e))||!1},v=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t=0&&!this.plain?"":"u-hairline-border"}},data:function(){return{rippleTop:0,rippleLeft:0,fields:{},waveActive:!1}},methods:{click:function(e){var t=this;this.$u.throttle((function(){!0!==t.loading&&!0!==t.disabled&&(t.ripple&&(t.waveActive=!1,t.$nextTick((function(){this.getWaveQuery(e)}))),t.$emit("click",e))}),this.throttleTime)},getWaveQuery:function(e){var t=this;this.getElQuery().then((function(i){var n=i[0];if(n.width&&n.width&&(n.targetWidth=n.height>n.width?n.height:n.width,n.targetWidth)){t.fields=n;var a="",r="";a=e.touches[0].clientX,r=e.touches[0].clientY,t.rippleTop=r-n.top-n.targetWidth/2,t.rippleLeft=a-n.left-n.targetWidth/2,t.$nextTick((function(){t.waveActive=!0}))}}))},getElQuery:function(){var e=this;return new Promise((function(t){var i="";i=uni.createSelectorQuery().in(e),i.select(".u-btn").boundingClientRect(),i.exec((function(e){t(e)}))}))},getphonenumber:function(e){this.$emit("getphonenumber",e)},getuserinfo:function(e){this.$emit("getuserinfo",e)},error:function(e){this.$emit("error",e)},opensetting:function(e){this.$emit("opensetting",e)},launchapp:function(e){this.$emit("launchapp",e)}}}},"0696":function(e,t,i){"use strict";var n=i("8866"),a=i.n(n);a.a},"095a":function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return s}));var n=i("be09"),a=i.n(n),r=function(t){return a.a.atob?a.a.atob(t):e.from(t,"base64").toString("binary")};function s(e){for(var t=r(e),i=new Uint8Array(t.length),n=0;n0;a+=12,r--)i.references.push({referenceType:(128&e[a])>>>7,referencedSize:2147483647&t.getUint32(a),subsegmentDuration:t.getUint32(a+4),startsWithSap:!!(128&e[a+8]),sapType:(112&e[a+8])>>>4,sapDeltaTime:268435455&t.getUint32(a+8)});return i};e.exports=a},"0b92":function(e,t,i){var n=i("7357");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("87c220d8",n,!0,{sourceMap:!1,shadowMode:!1})},"0c01":function(e,t,i){"use strict";var n=i("d136"),a=i.n(n),r=i("be09"),s=i.n(r),o="http://example.com",l=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=s.a.location&&s.a.location.href||"");var i="function"===typeof s.a.URL,n=/^\/\//.test(e),r=!s.a.location&&!/\/\//i.test(e);if(i?e=new s.a.URL(e,s.a.location||o):/\/\//i.test(e)||(e=a.a.buildAbsoluteURL(s.a.location&&s.a.location.href||"",e)),i){var l=new URL(t,e);return r?l.href.slice(o.length):n?l.href.slice(l.protocol.length):l.href}return a.a.buildAbsoluteURL(e,t)};t["a"]=l},"0c1c":function(e,t,i){"use strict";e.exports=function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}},"0c42":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-switch[data-v-0d3821ba]{position:relative;display:inline-block;box-sizing:initial;width:2em;height:1em;background-color:#fff;border:1px solid rgba(0,0,0,.1);border-radius:1em;transition:background-color .3s;font-size:%?50?%}.u-switch__node[data-v-0d3821ba]{display:flex;flex-direction:row;align-items:center;justify-content:center;position:absolute;top:0;left:0;border-radius:100%;z-index:1;background-color:#fff;background-color:#fff;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);transition:-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05),-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:-webkit-transform cubic-bezier(.3,1.05,.4,1.05);transition:transform cubic-bezier(.3,1.05,.4,1.05);transition:transform cubic-bezier(.3,1.05,.4,1.05),-webkit-transform cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05)}.u-switch__loading[data-v-0d3821ba]{display:flex;flex-direction:row;align-items:center;justify-content:center}.u-switch--on[data-v-0d3821ba]{background-color:#1989fa}.u-switch--on .u-switch__node[data-v-0d3821ba]{-webkit-transform:translateX(100%);transform:translateX(100%)}.u-switch--disabled[data-v-0d3821ba]{opacity:.4}',""]),e.exports=t},"0de0":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return/mp4a\.\d+.\d+/i.test(e)},a=function(e){return/avc1\.[\da-f]+/i.test(e)},r=function(e){var t={type:"",parameters:{}},i=e.trim().split(";");return t.type=i.shift().trim(),i.forEach((function(e){var i=e.trim().split("=");if(i.length>1){var n=i[0].replace(/"/g,"").trim(),a=i[1].replace(/"/g,"").trim();t.parameters[n]=a}})),t},s=function(e){return e.map((function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,i){var n=("00"+Number(t).toString(16)).slice(-2),a=("00"+Number(i).toString(16)).slice(-2);return"avc1."+n+"00"+a}))}))};t["default"]={isAudioCodec:n,parseContentType:r,isVideoCodec:a,translateLegacyCodecs:s},e.exports=t["default"]},"0ea2":function(e,t,i){"use strict";var n,a,r,s=i("4329"),o=i("4e69"),l=i("ae75"),u=i("256f").TimestampRolloverStream,c=i("ae75"),h=188,d=71;n=function(){var e=new Uint8Array(h),t=0;n.prototype.init.call(this),this.push=function(i){var n,a=0,r=h;t?(n=new Uint8Array(i.byteLength+t),n.set(e.subarray(0,t)),n.set(i,t),t=0):n=i;while(r>>4>1&&(n+=t[n]+1),0===i.pid)i.type="pat",e(t.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid){i.type="pmt",e(t.subarray(n),i),this.trigger("data",i);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,i]):this.processPes_(t,n,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=l.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=l.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},a.prototype=new s,a.STREAM_TYPES={h264:27,adts:15},r=function(){var e=this,t={data:[],size:0},i={data:[],size:0},n={data:[],size:0},a=function(e,t){var i;t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!==(4&e[6]),i=e[7],192&i&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8])},s=function(t,i,n){var r,s=new Uint8Array(t.size),o={type:i},l=0,u=0,c=!1;if(t.data.length&&!(t.size<9)){for(o.trackId=t.data[0].pid,l=0;l=0&&e<=100}function r(){var e=100,t=3,i=0,r=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!a(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!a(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!a(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!a(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!a(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=n(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}e.exports=r},"12c6":function(e,t,i){ /** * @license * Video.js 6.13.0 @@ -10,7 +10,7 @@ * Available under Apache License Version 2.0 * */ -function n(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=n(i("ea7c")),r=n(i("4742")),s=n(i("1b8d")),o=n(i("8c10")),l=n(i("eec7")),u=n(i("bec7")),c="6.13.0",h=a.navigator&&a.navigator.userAgent||"",d=/AppleWebKit\/([\d.]+)/i.exec(h),p=d?parseFloat(d.pop()):null,f=/iPad/i.test(h),v=/iPhone/i.test(h)&&!f,m=/iPod/i.test(h),g=v||f||m,b=function(){var e=h.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),y=/Android/i.test(h),_=function(){var e=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),T=y&&/webkit/i.test(h)&&_<2.3,S=y&&_<5&&p<537,w=/Firefox/i.test(h),k=/Edge/i.test(h),E=!k&&(/Chrome/i.test(h)||/CriOS/i.test(h)),C=function(){var e=h.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),x=/MSIE\s8\.0/.test(h),A=function(){var e=/MSIE\s(\d+)\.\d/.exec(h),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(h)&&/rv:11.0/.test(h)&&(t=11),t}(),j=/Safari/i.test(h)&&!E&&!y&&!k,I=(j||g)&&!E,O=ie()&&("ontouchstart"in a||a.navigator.maxTouchPoints||a.DocumentTouch&&a.document instanceof a.DocumentTouch),P=ie()&&"backgroundSize"in a.document.createElement("video").style,L=(Object.freeze||Object)({IS_IPAD:f,IS_IPHONE:v,IS_IPOD:m,IS_IOS:g,IOS_VERSION:b,IS_ANDROID:y,ANDROID_VERSION:_,IS_OLD_ANDROID:T,IS_NATIVE_ANDROID:S,IS_FIREFOX:w,IS_EDGE:k,IS_CHROME:E,CHROME_VERSION:C,IS_IE8:x,IE_VERSION:A,IS_SAFARI:j,IS_ANY_SAFARI:I,TOUCH_ENABLED:O,BACKGROUND_SIZE_SUPPORTED:P}),D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},R=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},N=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},B=function(e,t){return e.raw=t,e},U=Object.prototype.toString,F=function(e){return z(e)?Object.keys(e):[]};function V(e,t){F(e).forEach((function(i){return t(e[i],i)}))}function H(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return F(e).reduce((function(i,n){return t(i,e[n],n)}),i)}function q(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],a=r.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var i=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Y.warn(s(J,e,i)),a.setAttribute(e,i)):"textContent"===e?oe(a,i):a[e]=i})),Object.getOwnPropertyNames(i).forEach((function(e){a.setAttribute(e,i[e])})),n&&Ce(a,n),a}function oe(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function le(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ue(e,t){return ee(t),e.classList?e.classList.contains(t):te(t).test(e.className)}function ce(e,t){return e.classList?e.classList.add(t):ue(e,t)||(e.className=(e.className+" "+t).trim()),e}function he(e,t){return e.classList?e.classList.remove(t):(ee(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function de(e,t,i){var n=ue(e,t);if("function"===typeof i&&(i=i(e,t)),"boolean"!==typeof i&&(i=!n),i!==n)return i?ce(e,t):he(e,t),e}function pe(e,t){Object.getOwnPropertyNames(t).forEach((function(i){var n=t[i];null===n||"undefined"===typeof n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)}))}function fe(e){var t={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,a=n.length-1;a>=0;a--){var r=n[a].name,s=n[a].value;"boolean"!==typeof e[r]&&-1===i.indexOf(","+r+",")||(s=null!==s),t[r]=s}return t}function ve(e,t){return e.getAttribute(t)}function me(e,t,i){e.setAttribute(t,i)}function ge(e,t){e.removeAttribute(t)}function be(){r.body.focus(),r.onselectstart=function(){return!1}}function ye(){r.onselectstart=function(){return!0}}function _e(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(i[e]=t[e])})),i.height||(i.height=parseFloat(Q(e,"height"))),i.width||(i.width=parseFloat(Q(e,"width"))),i}}function Te(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var i=r.documentElement,n=r.body,s=i.clientLeft||n.clientLeft||0,o=a.pageXOffset||n.scrollLeft,l=t.left+o-s,u=i.clientTop||n.clientTop||0,c=a.pageYOffset||n.scrollTop,h=t.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function Se(e,t){var i={},n=Te(e),a=e.offsetWidth,r=e.offsetHeight,s=n.top,o=n.left,l=t.pageY,u=t.pageX;return t.changedTouches&&(u=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-l+r)/r)),i.x=Math.max(0,Math.min(1,(u-o)/a)),i}function we(e){return z(e)&&3===e.nodeType}function ke(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Ee(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ne(e)||we(e)?e:"string"===typeof e&&/\S/.test(e)?r.createTextNode(e):void 0})).filter((function(e){return e}))}function Ce(e,t){return Ee(t).forEach((function(t){return e.appendChild(t)})),e}function xe(e,t){return Ce(ke(e),t)}function Ae(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===A||0===e.button&&1===e.buttons))}var je=re("querySelector"),Ie=re("querySelectorAll"),Oe=(Object.freeze||Object)({isReal:ie,isEl:ne,isInFrame:ae,createEl:se,textContent:oe,prependTo:le,hasClass:ue,addClass:ce,removeClass:he,toggleClass:de,setAttributes:pe,getAttributes:fe,getAttribute:ve,setAttribute:me,removeAttribute:ge,blockTextSelection:be,unblockTextSelection:ye,getBoundingClientRect:_e,findPosition:Te,getPointerPosition:Se,isTextNode:we,emptyEl:ke,normalizeContent:Ee,appendContent:Ce,insertContent:xe,isSingleLeftClick:Ae,$:je,$$:Ie}),Pe=1;function Le(){return Pe++}var De={},Me="vdata"+(new Date).getTime();function Re(e){var t=e[Me];return t||(t=e[Me]=Le()),De[t]||(De[t]={}),De[t]}function Ne(e){var t=e[Me];return!!t&&!!Object.getOwnPropertyNames(De[t]).length}function Be(e){var t=e[Me];if(t){delete De[t];try{delete e[Me]}catch(i){e.removeAttribute?e.removeAttribute(Me):e[Me]=null}}}function Ue(e,t){var i=Re(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&Be(e)}function Fe(e,t,i,n){i.forEach((function(i){e(t,i,n)}))}function Ve(e){function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped){var n=e||a.event;for(var s in e={},n)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&n.preventDefault||(e[s]=n[s]));if(e.target||(e.target=e.srcElement||r),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){var o=r.documentElement,l=r.body;e.pageX=e.clientX+(o&&o.scrollLeft||l&&l.scrollLeft||0)-(o&&o.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(o&&o.scrollTop||l&&l.scrollTop||0)-(o&&o.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var He=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){He=!0}});a.addEventListener("test",null,e),a.removeEventListener("test",null,e)}catch(t){}})();var qe=["touchstart","touchmove"];function ze(e,t,i){if(Array.isArray(t))return Fe(ze,e,t,i);var n=Re(e);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),i.guid||(i.guid=Le()),n.handlers[t].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(t,i){if(!n.disabled){t=Ve(t);var a=n.handlers[t.type];if(a)for(var r=a.slice(0),s=0,o=r.length;s-1&&(a={passive:!0}),e.addEventListener(t,n.dispatcher,a)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function We(e,t,i){if(Ne(e)){var n=Re(e);if(n.handlers){if(Array.isArray(t))return Fe(We,e,t,i);var a=function(e,t){n.handlers[t]=[],Ue(e,t)};if(void 0!==t){var r=n.handlers[t];if(r)if(i){if(i.guid)for(var s=0;s0)for(var a=0,s=e.length;a0)for(var o=0,l=t.length;o0)for(var u=0,c=i.length;u0)for(var h=0,d=n.length;h=t&&(e.apply(void 0,arguments),i=n)};return n},nt=function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a,r=void 0,s=function(){n.clearTimeout(r),r=null},o=function(){var a=this,s=arguments,o=function(){r=null,o=null,i||e.apply(a,s)};!r&&i&&e.apply(a,s),n.clearTimeout(r),r=n.setTimeout(o,t)};return o.cancel=s,o},at=function(){};at.prototype.allowedEvents_={},at.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},ze(this,e,t),this.addEventListener=i},at.prototype.addEventListener=at.prototype.on,at.prototype.off=function(e,t){We(this,e,t)},at.prototype.removeEventListener=at.prototype.off,at.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},$e(this,e,t),this.addEventListener=i},at.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=Ve(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Ge(this,e)},at.prototype.dispatchEvent=at.prototype.trigger;var rt=function(e){return e instanceof at||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},st=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},ot=function(e){if(!e.nodeName&&!rt(e))throw new Error("Invalid target; must be a DOM node or evented object.")},lt=function(e){if(!st(e))throw new Error("Invalid event type; must be a non-empty string or array.")},ut=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},ct=function(e,t){var i=t.length<3||t[0]===e||t[0]===e.eventBusEl_,n=void 0,a=void 0,r=void 0;return i?(n=e.eventBusEl_,t.length>=3&&t.shift(),a=t[0],r=t[1]):(n=t[0],a=t[1],r=t[2]),ot(n),lt(a),ut(r),r=tt(e,r),{isTargetingSelf:i,target:n,type:a,listener:r}},ht=function(e,t,i,n){ot(e),e.nodeName?Xe[t](e,i,n):e[t](i,n)},dt={on:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=t.eventBusKey;if(i){if(!e[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');e.eventBusEl_=e[i]}else e.eventBusEl_=se("span",{className:"vjs-event-bus"});return q(e,dt),e.on("dispose",(function(){e.off(),a.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var ft={state:{},setState:function(e){var t=this;"function"===typeof e&&(e=e());var i=void 0;return V(e,(function(e,n){t.state[n]!==e&&(i=i||{},i[n]={from:t.state[n],to:e}),t.state[n]=e})),i&&rt(this)&&this.trigger({changes:i,type:"statechanged"}),i}};function vt(e,t){return q(e,ft),e.state=q({},e.state,t),"function"===typeof e.handleStateChanged&&rt(e)&&e.on("statechanged",e.handleStateChanged),e}function mt(e){return"string"!==typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function gt(e,t){return mt(e)===mt(t)}function bt(){for(var e={},t=arguments.length,i=Array(t),n=0;n=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Be(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return Y.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=bt(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,i){return se(e,t,i)},e.prototype.localize=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=this.player_.language&&this.player_.language(),a=this.player_.languages&&this.player_.languages(),r=a&&a[n],s=n&&n.split("-")[0],o=a&&a[s],l=i;return r&&r[e]?l=r[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,i){var n=t[i-1],a=n;return"undefined"===typeof n&&(a=e),a}))),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=mt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,a=void 0,r=void 0;if("string"===typeof t){r=mt(t);var s=i.componentClass||r;i.name=r;var o=e.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!==typeof o)return null;a=new o(this.player_||this,i)}else a=t;if(this.children_.splice(n,0,a),"function"===typeof a.id&&(this.childIndex_[a.id()]=a),r=r||a.name&&mt(a.name()),r&&(this.childNameIndex_[r]=a),"function"===typeof a.el&&a.el()){var l=this.contentEl().children,u=l[n]||null;this.contentEl().insertBefore(a.el(),u)}return a},e.prototype.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,i=this.options_.children;if(i){var n=this.options_,a=function(e){var i=e.name,a=e.opts;if(void 0!==n[i]&&(a=n[i]),!1!==a){!0===a&&(a={}),a.playerOptions=t.options_.playerOptions;var r=t.addChild(i,a);r&&(t[i]=r)}},r=void 0,s=e.getComponent("Tech");r=Array.isArray(i)?i:Object.keys(i),r.concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var n=void 0,a=void 0;return"string"===typeof e?(n=e,a=i[n]||t.options_[n]||{}):(n=e.name,a=e),{name:n,opts:a}})).filter((function(t){var i=e.getComponent(t.opts.componentClass||mt(t.name));return i&&!s.isTech(i)})).forEach(a)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},e.prototype.$=function(e,t){return je(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Ie(e,t||this.contentEl())},e.prototype.hasClass=function(e){return ue(this.el_,e)},e.prototype.addClass=function(e){ce(this.el_,e)},e.prototype.removeClass=function(e){he(this.el_,e)},e.prototype.toggleClass=function(e,t){de(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return ve(this.el_,e)},e.prototype.setAttribute=function(e,t){me(this.el_,e,t)},e.prototype.removeAttribute=function(e){ge(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,i){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[e],a=n.indexOf("px");return-1!==a?parseInt(n.slice(0,a),10):parseInt(this.el_["offset"+mt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"===typeof a.getComputedStyle){var i=a.getComputedStyle(this.el_);t=i.getPropertyValue(e)||i[e]}if(t=parseFloat(t),0===t){var n="offset"+mt(e);t=this.el_[n]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,i=10,n=200,a=void 0;this.on("touchstart",(function(i){1===i.touches.length&&(t={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=(new Date).getTime(),a=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)a=!1;else if(t){var n=e.touches[0].pageX-t.pageX,r=e.touches[0].pageY-t.pageY,s=Math.sqrt(n*n+r*r);s>i&&(a=!1)}}));var r=function(){a=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(i){if(t=null,!0===a){var r=(new Date).getTime()-e;r0&&u.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=i,i},e.getComponent=function(t){if(t)return t=mt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function _t(e,t,i){if("number"!==typeof t||t<0||t>i)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}function Tt(e,t,i,n){return _t(e,n,i.length-1),i[n][t]}function St(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Tt.bind(null,"start",0,e),end:Tt.bind(null,"end",1,e)}}function wt(e,t){return Array.isArray(e)?St(e):void 0===e||void 0===t?St():St([[e,t]])}function kt(e,t){var i=0,n=void 0,a=void 0;if(!t)return 0;e&&e.length||(e=wt(0,0));for(var r=0;rt&&(a=t),i+=a-n;return i/t}yt.prototype.supportsRaf_="function"===typeof a.requestAnimationFrame&&"function"===typeof a.cancelAnimationFrame,yt.registerComponent("Component",yt);for(var Et={},Ct=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],xt=Ct[0],At=void 0,jt=0;jt0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;M(this,t);var s=N(this,e.call(this));if(!a&&(a=s,x))for(var o in a=r.createElement("custom"),t.prototype)"constructor"!==o&&(a[o]=t.prototype[o]);a.tracks_=[],Object.defineProperty(a,"length",{get:function(){return this.tracks_.length}});for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:[];M(this,t);for(var s=void 0,o=a.length-1;o>=0;o--)if(a[o].enabled){zt(a,a[o]);break}if(x){for(var l in s=r.createElement("custom"),Ht.prototype)"constructor"!==l&&(s[l]=Ht.prototype[l]);for(var u in t.prototype)"constructor"!==u&&(s[u]=t.prototype[u])}return i=N(this,e.call(this,a,s)),s=i,s.changing_=!1,n=s,N(i,n)}return R(t,e),t.prototype.addTrack=function(t){var i=this;t.enabled&&zt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",(function(){i.changing_||(i.changing_=!0,zt(i,t),i.changing_=!1,i.trigger("change"))}))},t}(Ht),Gt=function(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];M(this,t);for(var s=void 0,o=a.length-1;o>=0;o--)if(a[o].selected){Gt(a,a[o]);break}if(x){for(var l in s=r.createElement("custom"),Ht.prototype)"constructor"!==l&&(s[l]=Ht.prototype[l]);for(var u in t.prototype)"constructor"!==u&&(s[u]=t.prototype[u])}return i=N(this,e.call(this,a,s)),s=i,s.changing_=!1,Object.defineProperty(s,"selectedIndex",{get:function(){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:[];M(this,t);var s=void 0;if(x){for(var o in s=r.createElement("custom"),Ht.prototype)"constructor"!==o&&(s[o]=Ht.prototype[o]);for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l])}return i=N(this,e.call(this,a,s)),s=i,n=s,N(i,n)}return R(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",tt(this,(function(){this.trigger("change")})));var i=["metadata","chapters"];-1===i.indexOf(t.kind)&&t.addEventListener("modechange",tt(this,(function(){this.trigger("selectedlanguagechange")})))},t}(Ht),Yt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];M(this,e);var i=this;if(x)for(var n in i=r.createElement("custom"),e.prototype)"constructor"!==n&&(i[n]=e.prototype[n]);i.trackElements_=[],Object.defineProperty(i,"length",{get:function(){return this.trackElements_.length}});for(var a=0,s=t.length;a0&&void 0!==arguments[0]?arguments[0]:{};M(this,t);var a=N(this,e.call(this)),s=a;if(x)for(var o in s=r.createElement("custom"),t.prototype)"constructor"!==o&&(s[o]=t.prototype[o]);var l={id:n.id||"vjs_track_"+Le(),kind:n.kind||"",label:n.label||"",language:n.language||""},u=function(e){Object.defineProperty(s,e,{get:function(){return l[e]},set:function(){}})};for(var c in l)u(c);return i=s,N(a,i)}return R(t,e),t}(at),ii=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],i=r.createElement("a");i.href=e;var n=""===i.host&&"file:"!==i.protocol,s=void 0;n&&(s=r.createElement("div"),s.innerHTML='',i=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),r.body.appendChild(s));for(var o={},l=0;lx',e=t.firstChild.href}return e},ai=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,i=t.exec(e);if(i)return i.pop().toLowerCase()}return""},ri=function(e){var t=a.location,i=ii(e),n=":"===i.protocol?t.protocol:i.protocol,r=n+i.host!==t.protocol+t.host;return r},si=(Object.freeze||Object)({parseUrl:ii,getAbsoluteURL:ni,getFileExtension:ai,isCrossOrigin:ri}),oi=function(e,t){var i=new a.WebVTT.Parser(a,a.vttjs,a.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),n.length>0&&(a.console&&a.console.groupCollapsed&&a.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach((function(e){return Y.error(e)})),a.console&&a.console.groupEnd&&a.console.groupEnd()),i.flush()},li=function(e,t){var i={uri:e},n=ri(e);n&&(i.cors=n),l(i,tt(this,(function(e,i,n){if(e)return Y.error(e,i);if(t.loaded_=!0,"function"!==typeof a.WebVTT){if(t.tech_){var r=function(){return oi(n,t)};t.tech_.on("vttjsloaded",r),t.tech_.on("vttjserror",(function(){Y.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",r)}))}}else oi(n,t)})))},ui=function(e){function t(){var i,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(M(this,t),!a.tech)throw new Error("A tech was not provided.");var r=bt(a,{kind:Zt[a.kind]||"subtitles",language:a.language||a.srclang||""}),s=ei[r.mode]||"disabled",o=r["default"];"metadata"!==r.kind&&"chapters"!==r.kind||(s="hidden");var l=(i=N(this,e.call(this,r)),i);if(l.tech_=r.tech,x)for(var u in t.prototype)"constructor"!==u&&(l[u]=t.prototype[u]);l.cues_=[],l.activeCues_=[];var c=new Kt(l.cues_),h=new Kt(l.activeCues_),d=!1,p=tt(l,(function(){this.activeCues=this.activeCues,d&&(this.trigger("cuechange"),d=!1)}));return"disabled"!==s&&l.tech_.ready((function(){l.tech_.on("timeupdate",p)}),!0),Object.defineProperty(l,"default",{get:function(){return o},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return s},set:function(e){var t=this;ei[e]&&(s=e,"disabled"!==s?this.tech_.ready((function(){t.tech_.on("timeupdate",p)}),!0):this.tech_.off("timeupdate",p),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?c:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i=e||a.startTime===a.endTime&&a.startTime<=e&&a.startTime+.5>=e)&&t.push(a)}if(d=!1,t.length!==this.activeCues_.length)d=!0;else for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};M(this,t);var r=bt(a,{kind:Jt[a.kind]||""}),s=(i=N(this,e.call(this,r)),i),o=!1;if(x)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"enabled",{get:function(){return o},set:function(e){"boolean"===typeof e&&e!==o&&(o=e,this.trigger("enabledchange"))}}),r.enabled&&(s.enabled=r.enabled),s.loaded_=!0,n=s,N(i,n)}return R(t,e),t}(ti),hi=function(e){function t(){var i,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};M(this,t);var r=bt(a,{kind:Qt[a.kind]||""}),s=(i=N(this,e.call(this,r)),i),o=!1;if(x)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"selected",{get:function(){return o},set:function(e){"boolean"===typeof e&&e!==o&&(o=e,this.trigger("selectedchange"))}}),r.selected&&(s.selected=r.selected),n=s,N(i,n)}return R(t,e),t}(ti),di=0,pi=1,fi=2,vi=3,mi=function(e){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};M(this,t);var n=N(this,e.call(this)),a=void 0,s=n;if(x)for(var o in s=r.createElement("custom"),t.prototype)"constructor"!==o&&(s[o]=t.prototype[o]);var l,u=new ui(i);return s.kind=u.kind,s.src=u.src,s.srclang=u.language,s.label=u.label,s["default"]=u["default"],Object.defineProperty(s,"readyState",{get:function(){return a}}),Object.defineProperty(s,"track",{get:function(){return u}}),a=di,u.addEventListener("loadeddata",(function(){a=fi,s.trigger({type:"load",target:s})})),x?(l=s,N(n,l)):n}return R(t,e),t}(at);mi.prototype.allowedEvents_={load:"load"},mi.NONE=di,mi.LOADING=pi,mi.LOADED=fi,mi.ERROR=vi;var gi={audio:{ListClass:Wt,TrackClass:ci,capitalName:"Audio"},video:{ListClass:$t,TrackClass:hi,capitalName:"Video"},text:{ListClass:Xt,TrackClass:ui,capitalName:"Text"}};Object.keys(gi).forEach((function(e){gi[e].getterName=e+"Tracks",gi[e].privateName=e+"Tracks_"}));var bi={remoteText:{ListClass:Xt,TrackClass:ui,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Yt,TrackClass:mi,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},yi=bt(gi,bi);function _i(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=e.textTracks();a.kind=t,i&&(a.label=i),n&&(a.language=n),a.tech=e;var s=new yi.text.TrackClass(a);return r.addTrack(s),s}bi.names=Object.keys(bi),gi.names=Object.keys(gi),yi.names=[].concat(bi.names).concat(gi.names);var Ti=function(e){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};M(this,t),i.reportTouchActivity=!1;var a=N(this,e.call(this,null,i,n));return a.hasStarted_=!1,a.on("playing",(function(){this.hasStarted_=!0})),a.on("loadstart",(function(){this.hasStarted_=!1})),yi.names.forEach((function(e){var t=yi[e];i&&i[t.getterName]&&(a[t.privateName]=i[t.getterName])})),a.featuresProgressEvents||a.manualProgressOn(),a.featuresTimeupdateEvents||a.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===i["native"+e+"Tracks"]&&(a["featuresNative"+e+"Tracks"]=!1)})),!1===i.nativeCaptions||!1===i.nativeTextTracks?a.featuresNativeTextTracks=!1:!0!==i.nativeCaptions&&!0!==i.nativeTextTracks||(a.featuresNativeTextTracks=!0),a.featuresNativeTextTracks||a.emulateTextTracks(),a.autoRemoteTextTracks_=new yi.text.ListClass,a.initTrackListeners(),i.nativeControlsForTouch||a.emitTapEvents(),a.constructor&&(a.name_=a.constructor.name||"Unknown Tech"),a}return R(t,e),t.prototype.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return wt(0,0)},t.prototype.bufferedPercent=function(){return kt(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(gi.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var i=t[e+"Tracks"]()||[],n=i.length;while(n--){var a=i[n];"text"===e&&t.removeRemoteTextTrack(a),i.removeTrack(a)}}))},t.prototype.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var i=e[t];this.removeRemoteTextTrack(i)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new Ot(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?wt(0,0):wt()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;gi.names.forEach((function(t){var i=gi[t],n=function(){e.trigger(t+"trackchange")},a=e[i.getterName]();a.addEventListener("removetrack",n),a.addEventListener("addtrack",n),e.on("dispose",(function(){a.removeEventListener("removetrack",n),a.removeEventListener("addtrack",n)}))}))},t.prototype.addWebVttScript_=function(){var e=this;if(!a.WebVTT)if(r.body.contains(this.el())){if(!this.options_["vtt.js"]&&W(u)&&Object.keys(u).length>0)return void this.trigger("vttjsloaded");var t=r.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks(),i=this.remoteTextTracks(),n=function(e){return t.addTrack(e.track)},a=function(e){return t.removeTrack(e.track)};i.on("addtrack",n),i.on("removetrack",a),this.addWebVttScript_();var r=function(){return e.trigger("texttrackchange")},s=function(){r();for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],n=this.createRemoteTextTrack(t);return!0!==i&&!1!==i&&(Y.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==i&&this.ready((function(){return e.autoRemoteTextTracks_.addTrack(n.track)})),n},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,i){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,i){if(t.techs_||(t.techs_={}),!t.isTech(i))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=mt(e),t.techs_[e]=i,"Tech"!==e&&t.defaultTechOrder_.push(e),i},t.getTech=function(e){if(e)return e=mt(e),t.techs_&&t.techs_[e]?t.techs_[e]:a&&a.videojs&&a.videojs[e]?(Y.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),a.videojs[e]):void 0},t}(yt);yi.names.forEach((function(e){var t=yi[e];Ti.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Ti.prototype.featuresVolumeControl=!0,Ti.prototype.featuresMuteControl=!0,Ti.prototype.featuresFullscreenResize=!1,Ti.prototype.featuresPlaybackRate=!1,Ti.prototype.featuresProgressEvents=!1,Ti.prototype.featuresSourceset=!1,Ti.prototype.featuresTimeupdateEvents=!1,Ti.prototype.featuresNativeTextTracks=!1,Ti.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){var n=e.sourceHandlers;n||(n=e.sourceHandlers=[]),void 0===i&&(i=n.length),n.splice(i,0,t)},e.canPlayType=function(t){for(var i=e.sourceHandlers||[],n=void 0,a=0;a3&&void 0!==arguments[3]?arguments[3]:null,a="call"+mt(i),r=e.reduce(Di(a),n),s=r===ki,o=s?null:t[i](r);return Mi(e,i,o,s),o}var Oi={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},Pi={setCurrentTime:1},Li={play:1,pause:1};function Di(e){return function(t,i){return t===ki?ki:i[e]?i[e](t):t}}function Mi(e,t,i,n){for(var a=e.length-1;a>=0;a--){var r=e[a];r[t]&&r[t](n,i)}}function Ri(e){wi[e.id()]=null}function Ni(e,t){var i=wi[e.id()],n=null;if(void 0===i||null===i)return n=t(e),wi[e.id()]=[[t,n]],n;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments[2],n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=t[0],o=t.slice(1);if("string"===typeof s)Bi(e,Si[s],i,n,a,r);else if(s){var l=Ni(n,s);if(!l.setSource)return a.push(l),Bi(e,o,i,n,a,r);l.setSource(q({},e),(function(t,s){if(t)return Bi(e,o,i,n,a,r);a.push(l),Bi(s,e.type===s.type?o:Si[s.type],i,n,a,r)}))}else o.length?Bi(e,o,i,n,a,r):r?i(e,a):Bi(e,Si["*"],i,n,a,!0)}var Ui={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Fi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=ai(e),i=Ui[t.toLowerCase()];return i||""},Vi=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter((function(e){return e.src===t}));if(i.length)return i[0].type;for(var n=e.$$("source"),a=0;a0&&void 0!==arguments[0]?arguments[0]:"div",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i=q({innerHTML:'',className:this.buildCSSClass(),tabIndex:0},i),"button"===t&&Y.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),n=q({role:"button"},n),this.tabIndex_=i.tabIndex;var a=e.prototype.createEl.call(this,t,i,n);return this.createControlTextEl(a),a},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=se("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var i=this.localize(e);this.controlText_=e,oe(this.controlTextEl_,i),this.nonIconControl||t.setAttribute("title",i)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){ze(r,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){We(r,"keydown",tt(this,this.handleKeyPress))},t}(yt);yt.registerComponent("ClickableComponent",Wi);var Gi=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.update(),i.on("posterchange",tt(a,a.update)),a}return R(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=se("div",{className:"vjs-poster",tabIndex:-1});return P||(this.fallbackImg_=se("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?Dt(this.player_.play()):this.player_.pause())},t}(Wi);yt.registerComponent("PosterImage",Gi);var $i="#222",Xi="#ccc",Yi={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Ki(e,t){var i=void 0;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function Qi(e,t,i){try{e.style[t]=i}catch(n){return}}var Ji=function(e){function t(i,n,r){M(this,t);var s=N(this,e.call(this,i,n,r)),o=tt(s,s.updateDisplay);return i.on("loadstart",tt(s,s.toggleDisplay)),i.on("texttrackchange",o),i.on("loadstart",tt(s,s.preselectTrack)),i.ready(tt(s,(function(){if(i.tech_&&i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",o),i.on("playerresize",o),a.addEventListener&&a.addEventListener("orientationchange",o),i.on("dispose",(function(){return a.removeEventListener("orientationchange",o)}));for(var e=this.options_.playerOptions.tracks||[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button",t=q({innerHTML:'',className:this.buildCSSClass()},t),i=q({type:"button"},i);var n=yt.prototype.createEl.call(this,e,t,i);return this.createControlTextEl(n),n},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.constructor.name;return Y.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),yt.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(Wi);yt.registerComponent("Button",en);var tn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.mouseused_=!1,a.on("mousedown",a.handleMouseDown),a}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)Dt(t);else{var i=this.player_.getChild("controlBar"),n=i&&i.getChild("playToggle");if(n){var a=function(){return n.focus()};Lt(t)?t.then(a,(function(){})):this.setTimeout(a,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(en);tn.prototype.controlText_="Play Video",yt.registerComponent("BigPlayButton",tn);var nn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.controlText(n&&n.controlText||a.localize("Close")),a}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(en);yt.registerComponent("CloseButton",nn);var an=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.on(i,"play",a.handlePlay),a.on(i,"pause",a.handlePause),a.on(i,"ended",a.handleEnded),a}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(en);an.prototype.controlText_="Play",yt.registerComponent("PlayToggle",an);var rn=function(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=Math.floor(e/60%60),a=Math.floor(e/3600),r=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(a=n=i="-"),a=a>0||s>0?a+":":"",n=((a||r>=10)&&n<10?"0"+n:n)+":",i=i<10?"0"+i:i,a+n+i},sn=rn;function on(e){sn=e}function ln(){sn=rn}var un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return sn(e,t)},cn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.throttledUpdateContent=it(tt(a,a.updateContent),25),a.on(i,"timeupdate",a.throttledUpdateContent),a}return R(t,e),t.prototype.createEl=function(t){var i=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:i+" vjs-time-control vjs-control",innerHTML:''+this.localize(this.labelText_)+" "});return this.contentEl_=se("span",{className:i+"-display"},{"aria-live":"off"}),this.updateTextNode_(),n.appendChild(this.contentEl_),n},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=r.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return un(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(yt);cn.prototype.labelText_="Time",cn.prototype.controlText_="Time",yt.registerComponent("TimeDisplay",cn);var hn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.on(i,"ended",a.handleEnded),a}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(cn);hn.prototype.labelText_="Current Time",hn.prototype.controlText_="Current Time",yt.registerComponent("CurrentTimeDisplay",hn);var dn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.on(i,"durationchange",a.updateContent),a.on(i,"loadedmetadata",a.throttledUpdateContent),a}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(cn);dn.prototype.labelText_="Duration",dn.prototype.controlText_="Duration",yt.registerComponent("DurationDisplay",dn);var pn=function(e){function t(){return M(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},t}(yt);yt.registerComponent("TimeDivider",pn);var fn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.on(i,"durationchange",a.throttledUpdateContent),a.on(i,"ended",a.handleEnded),a}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(cn);fn.prototype.labelText_="Remaining Time",fn.prototype.controlText_="Remaining Time",yt.registerComponent("RemainingTimeDisplay",fn);var vn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.updateShowing(),a.on(a.player(),"durationchange",a.updateShowing),a}return R(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=se("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+" "+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(yt);yt.registerComponent("LiveDisplay",vn);var mn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.bar=a.getChild(a.options_.barName),a.vertical(!!a.options_.vertical),a.enable(),a}return R(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.className=i.className+" vjs-slider",i=q({tabIndex:0},i),n=q({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),e.prototype.createEl.call(this,t,i,n)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||E||e.preventDefault(),be(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;ye(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!==typeof e||e!==e||e<0||e===1/0)&&(e=0);var i=(100*e).toFixed(2)+"%",n=t.el().style;return this.vertical()?n.height=i:n.width=i,e}}},t.prototype.calculateDistance=function(e){var t=Se(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(yt);yt.registerComponent("Slider",mn);var gn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.partEls_=[],a.on(i,"progress",a.update),a}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),i=this.player_.duration(),n=this.player_.bufferedEnd(),a=this.partEls_,r=function(e,t){var i=e/t||0;return 100*(i>=1?1:i)+"%"};this.el_.style.width=r(n,i);for(var s=0;st.length;c--)this.el_.removeChild(a[c-1]);a.length=t.length},t}(yt);yt.registerComponent("LoadProgressBar",gn);var bn=function(e){function t(){return M(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,i){var n=_e(this.el_),a=_e(this.player_.el()),r=e.width*t;if(a&&n){var s=e.left-a.left+r,o=e.width-r+(a.right-e.right),l=n.width/2;sn.width&&(l=n.width),this.el_.style.right="-"+l+"px",oe(this.el_,i)}},t}(yt);yt.registerComponent("TimeTooltip",bn);var yn=function(e){function t(){return M(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},t.prototype.update=function(e,t){var i=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var n=i.player_.scrubbing()?i.player_.getCache().currentTime:i.player_.currentTime(),a=un(n,i.player_.duration()),r=i.getChild("timeTooltip");r&&r.update(e,t,a)}))},t}(yt);yn.prototype.options_={children:[]},A&&!(A>8)||g||y||yn.prototype.options_.children.push("timeTooltip"),yt.registerComponent("PlayProgressBar",yn);var _n=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.update=it(tt(a,a.update),25),a}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var i=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var n=i.player_.duration(),a=un(t*n,n);i.el_.style.left=e.width*t+"px",i.getChild("timeTooltip").update(e,t,a)}))},t}(yt);_n.prototype.options_={children:["timeTooltip"]},yt.registerComponent("MouseTimeDisplay",_n);var Tn=5,Sn=30,wn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.setEventHandlers_(),a}return R(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=it(tt(this,this.update),Sn),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval((function(){e.requestAnimationFrame((function(){e.update()}))}),Sn)})),this.on(this.player_,["ended","pause","waiting"],(function(){e.clearInterval(e.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var i=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[un(e,i),un(i,i)],"{1} of {2}")),this.bar.update(_e(this.el_),t)},t.prototype.update=function(t){var i=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),i),i},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){Ae(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(Ae(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Dt(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+Tn)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-Tn)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(mn);wn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},A&&!(A>8)||g||y||wn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),wn.prototype.playerEvent="timeupdate",yt.registerComponent("SeekBar",wn);var kn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.handleMouseMove=it(tt(a,a.handleMouseMove),25),a.throttledHandleMouseSeek=it(tt(a,a.handleMouseSeek),25),a.enable(),a}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var i=t.getChild("mouseTimeDisplay"),n=t.el(),a=_e(n),r=Se(n,e).x;r>1?r=1:r<0&&(r=0),i&&i.update(a,r)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(yt);kn.prototype.options_={children:["seekBar"]},yt.registerComponent("ProgressControl",kn);var En=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.on(i,"fullscreenchange",a.handleFullscreenChange),!1===r[Et.fullscreenEnabled]&&a.disable(),a}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(en);En.prototype.controlText_="Fullscreen",yt.registerComponent("FullscreenToggle",En);var Cn=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},xn=function(e){function t(){return M(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},t}(yt);yt.registerComponent("VolumeLevel",xn);var An=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.on("slideractive",a.updateLastVolume_),a.on(i,"volumechange",a.updateARIAAttributes),i.ready((function(){return a.updateARIAAttributes()})),a}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){Ae(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){Ae(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(mn);An.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},An.prototype.playerEvent="volumechange",yt.registerComponent("VolumeBar",An);var jn=function(e){function t(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M(this,t),n.vertical=n.vertical||!1,("undefined"===typeof n.volumeBar||W(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var a=N(this,e.call(this,i,n));return Cn(a,i),a.throttledHandleMouseMove=it(tt(a,a.handleMouseMove),25),a.on("mousedown",a.handleMouseDown),a.on("touchstart",a.handleMouseDown),a.on(a.volumeBar,["focus","slideractive"],(function(){a.volumeBar.addClass("vjs-slider-active"),a.addClass("vjs-slider-active"),a.trigger("slideractive")})),a.on(a.volumeBar,["blur","sliderinactive"],(function(){a.volumeBar.removeClass("vjs-slider-active"),a.removeClass("vjs-slider-active"),a.trigger("sliderinactive")})),a}return R(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(yt);jn.prototype.options_={children:["volumeBar"]},yt.registerComponent("VolumeControl",jn);var In=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},On=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return In(a,i),a.on(i,["loadstart","volumechange"],a.update),a}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){var n=i<.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;g&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)he(this.el_,"vjs-vol-"+i);ce(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(en);On.prototype.controlText_="Mute",yt.registerComponent("MuteToggle",On);var Pn=function(e){function t(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M(this,t),"undefined"!==typeof n.inline?n.inline=n.inline:n.inline=!0,("undefined"===typeof n.volumeControl||W(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var a=N(this,e.call(this,i,n));return a.on(i,["loadstart"],a.volumePanelState_),a.on(a.volumeControl,["slideractive"],a.sliderActive_),a.on(a.volumeControl,["sliderinactive"],a.sliderInactive_),a}return R(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(yt);Pn.prototype.options_={children:["muteToggle","volumeControl"]},yt.registerComponent("VolumePanel",Pn);var Ln=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return n&&(a.menuButton_=n.menuButton),a.focusedChild_=-1,a.on("keydown",a.handleKeyPress),a}return R(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",tt(this,(function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())})))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=se(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),ze(i,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),i},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice(),i=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);i&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(yt);yt.registerComponent("Menu",Ln);var Dn=function(e){function t(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M(this,t);var a=N(this,e.call(this,i,n));a.menuButton_=new en(i,n),a.menuButton_.controlText(a.controlText_),a.menuButton_.el_.setAttribute("aria-haspopup","true");var r=en.prototype.buildCSSClass();return a.menuButton_.el_.className=a.buildCSSClass()+" "+r,a.menuButton_.removeClass("vjs-control"),a.addChild(a.menuButton_),a.update(),a.enabled_=!0,a.on(a.menuButton_,"tap",a.handleClick),a.on(a.menuButton_,"click",a.handleClick),a.on(a.menuButton_,"focus",a.handleFocus),a.on(a.menuButton_,"blur",a.handleBlur),a.on("keydown",a.handleSubmenuKeyPress),a}return R(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new Ln(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=se("li",{className:"vjs-menu-title",innerHTML:mt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),le(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",tt(this,(function(e){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){ze(r,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleBlur=function(){We(r,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),g&&ae())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(yt);yt.registerComponent("MenuButton",Dn);var Mn=function(e){function t(i,n){M(this,t);var a=n.tracks,r=N(this,e.call(this,i,n));if(r.items.length<=1&&r.hide(),!a)return N(r);var s=tt(r,r.update);return a.addEventListener("removetrack",s),a.addEventListener("addtrack",s),r.player_.on("ready",s),r.player_.on("dispose",(function(){a.removeEventListener("removetrack",s),a.removeEventListener("addtrack",s)})),r}return R(t,e),t}(Dn);yt.registerComponent("TrackButton",Mn);var Rn=function(e){function t(i,n){M(this,t);var a=N(this,e.call(this,i,n));return a.selectable=n.selectable,a.isSelected_=n.selected||!1,a.multiSelectable=n.multiSelectable,a.selected(a.isSelected_),a.selectable?a.multiSelectable?a.el_.setAttribute("role","menuitemcheckbox"):a.el_.setAttribute("role","menuitemradio"):a.el_.setAttribute("role","menuitem"),a}return R(t,e),t.prototype.createEl=function(t,i,n){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",q({className:"vjs-menu-item",innerHTML:''+this.localize(this.options_.label)+"",tabIndex:-1},i),n)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Wi);yt.registerComponent("MenuItem",Rn);var Nn=function(e){function t(i,n){M(this,t);var s=n.track,o=i.textTracks();n.label=s.label||s.language||"Unknown",n.selected="showing"===s.mode;var l=N(this,e.call(this,i,n));l.track=s;var u=function(){for(var e=arguments.length,t=Array(e),i=0;i-1?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Rn);yt.registerComponent("TextTrackMenuItem",Nn);var Bn=function(e){function t(i,n){return M(this,t),n.track={player:i,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,N(this,e.call(this,i,n))}return R(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,a=t.length;n-1&&"showing"===r.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},t.prototype.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,a=t.length;n-1&&"showing"===r.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Nn);yt.registerComponent("OffTextTrackMenuItem",Bn);var Un=function(e){function t(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return M(this,t),n.tracks=i.textTracks(),N(this,e.call(this,i,n))}return R(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nn,i=void 0;this.label_&&(i=this.label_+" off"),e.push(new Bn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var a=0;a-1){var s=new t(this.player_,{track:r,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+r.kind+"-menu-item"),e.push(s)}}return e},t}(Mn);yt.registerComponent("TextTrackButton",Un);var Fn=function(e){function t(i,n){M(this,t);var a=n.track,r=n.cue,s=i.currentTime();n.selectable=!0,n.multiSelectable=!1,n.label=r.text,n.selected=r.startTime<=s&&s=0;t--){var i=e[t];if(i.kind===this.kind_)return i}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(mt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i