@vtx/player 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -498,7 +498,7 @@ n.exports=function(){function n(n){var t=typeof n;return null!==n&&("object"===t
|
|
|
498
498
|
\*********************************/
|
|
499
499
|
/*! exports provided: default */function(n,t,e){e.r(t);var r=e(/*! ../utils/logger */"./src/utils/logger.ts"),a=e(/*! ../loader/load-stats */"./src/loader/load-stats.ts"),o=/^age:\s*[\d.]+\s*$/m,i=function(){function n(n){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=n?n.xhrSetup:null,this.stats=new a.LoadStats,this.retryDelay=0}var t=n.prototype;return t.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},t.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,4!==n.readyState&&(this.stats.aborted=!0,n.abort()))},t.abort=function(){var n;this.abortInternal(),null!==(n=this.callbacks)&&void 0!==n&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},t.load=function(n,t,e){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=t,this.callbacks=e,this.retryDelay=t.retryDelay,this.loadInternal()},t.loadInternal=function(){var n=this.config,t=this.context;if(n){var e=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0;var a=this.xhrSetup;try{if(a)try{a(e,t.url)}catch(n){e.open("GET",t.url,!0),a(e,t.url)}e.readyState||e.open("GET",t.url,!0);var o=this.context.headers;if(o)for(var i in o)e.setRequestHeader(i,o[i])}catch(n){return void this.callbacks.onError({code:e.status,text:n.message},t,e)}t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}},t.readystatechange=function(){var n=this.context,t=this.loader,e=this.stats;if(n&&t){var a=t.readyState,o=this.config;if(!e.aborted&&a>=2)if(self.clearTimeout(this.requestTimeout),0===e.loading.first&&(e.loading.first=Math.max(self.performance.now(),e.loading.start)),4===a){t.onreadystatechange=null,t.onprogress=null;var i=t.status;if(i>=200&&i<300){var l,s;if(e.loading.end=Math.max(self.performance.now(),e.loading.first),s="arraybuffer"===n.responseType?(l=t.response).byteLength:(l=t.responseText).length,e.loaded=e.total=s,!this.callbacks)return;var c=this.callbacks.onProgress;if(c&&c(e,n,l,t),!this.callbacks)return;var u={url:t.responseURL,data:l};this.callbacks.onSuccess(u,e,n,t)}else e.retry>=o.maxRetry||i>=400&&i<499?(r.logger.error(i+" while loading "+n.url),this.callbacks.onError({code:i,text:t.statusText},n,t)):(r.logger.warn(i+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,o.maxRetryDelay),e.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout)}},t.loadtimeout=function(){r.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},t.loadprogress=function(n){var t=this.stats;t.loaded=n.loaded,n.lengthComputable&&(t.total=n.total)},t.getCacheAge=function(){var n=null;if(this.loader&&o.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");n=t?parseFloat(t):null}return n},n}();t.default=i}}).default}));var M=A(P.exports);function F(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var z={exports:{}};!function(n,t){n.exports=function(){var t,e;function r(){return t.apply(null,arguments)}function a(n){t=n}function o(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function i(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function s(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;var t;for(t in n)if(l(n,t))return!1;return!0}function c(n){return void 0===n}function u(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function d(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function p(n,t){var e,r=[],a=n.length;for(e=0;e<a;++e)r.push(t(n[e],e));return r}function f(n,t){for(var e in t)l(t,e)&&(n[e]=t[e]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function h(n,t,e,r){return Xe(n,t,e,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(n){return null==n._pf&&(n._pf=m()),n._pf}function b(n){if(null==n._isValid){var t=g(n),r=e.call(t.parsedDateParts,(function(n){return null!=n})),a=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return a;n._isValid=a}return n._isValid}function v(n){var t=h(NaN);return null!=n?f(g(t),n):g(t).userInvalidated=!0,t}e=Array.prototype.some?Array.prototype.some:function(n){var t,e=Object(this),r=e.length>>>0;for(t=0;t<r;t++)if(t in e&&n.call(this,e[t],t,e))return!0;return!1};var y=r.momentProperties=[],x=!1;function w(n,t){var e,r,a,o=y.length;if(c(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),c(t._i)||(n._i=t._i),c(t._f)||(n._f=t._f),c(t._l)||(n._l=t._l),c(t._strict)||(n._strict=t._strict),c(t._tzm)||(n._tzm=t._tzm),c(t._isUTC)||(n._isUTC=t._isUTC),c(t._offset)||(n._offset=t._offset),c(t._pf)||(n._pf=g(t)),c(t._locale)||(n._locale=t._locale),o>0)for(e=0;e<o;e++)c(a=t[r=y[e]])||(n[r]=a);return n}function k(n){w(this,n),this._d=new Date(null!=n._d?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,r.updateOffset(this),x=!1)}function E(n){return n instanceof k||null!=n&&null!=n._isAMomentObject}function S(n){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function _(n,t){var e=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,n),e){var a,o,i,s=[],c=arguments.length;for(o=0;o<c;o++){if(a="","object"==typeof arguments[o]){for(i in a+="\n["+o+"] ",arguments[0])l(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[o];s.push(a)}S(n+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),e=!1}return t.apply(this,arguments)}),t)}var C,T={};function O(n,t){null!=r.deprecationHandler&&r.deprecationHandler(n,t),T[n]||(S(t),T[n]=!0)}function N(n){return"undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function A(n){var t,e;for(e in n)l(n,e)&&(N(t=n[e])?this[e]=t:this["_"+e]=t);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(n,t){var e,r=f({},n);for(e in t)l(t,e)&&(i(n[e])&&i(t[e])?(r[e]={},f(r[e],n[e]),f(r[e],t[e])):null!=t[e]?r[e]=t[e]:delete r[e]);for(e in n)l(n,e)&&!l(t,e)&&i(n[e])&&(r[e]=f({},r[e]));return r}function R(n){null!=n&&this.set(n)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,C=Object.keys?Object.keys:function(n){var t,e=[];for(t in n)l(n,t)&&e.push(t);return e};var L={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(n,t,e){var r=this._calendar[n]||this._calendar.sameElse;return N(r)?r.call(t,e):r}function P(n,t,e){var r=""+Math.abs(n),a=t-r.length;return(n>=0?e?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},B={};function U(n,t,e,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),n&&(B[n]=a),t&&(B[t[0]]=function(){return P(a.apply(this,arguments),t[1],t[2])}),e&&(B[e]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function V(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function H(n){var t,e,r=n.match(M);for(t=0,e=r.length;t<e;t++)B[r[t]]?r[t]=B[r[t]]:r[t]=V(r[t]);return function(t){var a,o="";for(a=0;a<e;a++)o+=N(r[a])?r[a].call(t,n):r[a];return o}}function K(n,t){return n.isValid()?(t=G(t,n.localeData()),j[t]=j[t]||H(t),j[t](n)):n.localeData().invalidDate()}function G(n,t){var e=5;function r(n){return t.longDateFormat(n)||n}for(z.lastIndex=0;e>=0&&z.test(n);)n=n.replace(z,r),z.lastIndex=0,e-=1;return n}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(n){var t=this._longDateFormat[n],e=this._longDateFormat[n.toUpperCase()];return t||!e?t:(this._longDateFormat[n]=e.match(M).map((function(n){return"MMMM"===n||"MM"===n||"DD"===n||"dddd"===n?n.slice(1):n})).join(""),this._longDateFormat[n])}var q="Invalid date";function X(){return this._invalidDate}var $="%d",Z=/\d{1,2}/;function J(n){return this._ordinal.replace("%d",n)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function nn(n,t,e,r){var a=this._relativeTime[e];return N(a)?a(n,t,e,r):a.replace(/%d/i,n)}function tn(n,t){var e=this._relativeTime[n>0?"future":"past"];return N(e)?e(t):e.replace(/%s/i,t)}var en={};function rn(n,t){var e=n.toLowerCase();en[e]=en[e+"s"]=en[t]=n}function an(n){return"string"==typeof n?en[n]||en[n.toLowerCase()]:void 0}function on(n){var t,e,r={};for(e in n)l(n,e)&&(t=an(e))&&(r[t]=n[e]);return r}var ln={};function sn(n,t){ln[n]=t}function cn(n){var t,e=[];for(t in n)l(n,t)&&e.push({unit:t,priority:ln[t]});return e.sort((function(n,t){return n.priority-t.priority})),e}function un(n){return n%4==0&&n%100!=0||n%400==0}function dn(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function pn(n){var t=+n,e=0;return 0!==t&&isFinite(t)&&(e=dn(t)),e}function fn(n,t){return function(e){return null!=e?(mn(this,n,e),r.updateOffset(this,t),this):hn(this,n)}}function hn(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function mn(n,t,e){n.isValid()&&!isNaN(e)&&("FullYear"===t&&un(n.year())&&1===n.month()&&29===n.date()?(e=pn(e),n._d["set"+(n._isUTC?"UTC":"")+t](e,n.month(),tt(e,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+t](e))}function gn(n){return N(this[n=an(n)])?this[n]():this}function bn(n,t){if("object"==typeof n){var e,r=cn(n=on(n)),a=r.length;for(e=0;e<a;e++)this[r[e].unit](n[r[e].unit])}else if(N(this[n=an(n)]))return this[n](t);return this}var vn,yn=/\d/,xn=/\d\d/,wn=/\d{3}/,kn=/\d{4}/,En=/[+-]?\d{6}/,Sn=/\d\d?/,_n=/\d\d\d\d?/,Cn=/\d\d\d\d\d\d?/,Tn=/\d{1,3}/,On=/\d{1,4}/,Nn=/[+-]?\d{1,6}/,An=/\d+/,Dn=/[+-]?\d+/,Rn=/Z|[+-]\d\d:?\d\d/gi,Ln=/Z|[+-]\d\d(?::?\d\d)?/gi,In=/[+-]?\d+(\.\d{1,3})?/,Pn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Mn(n,t,e){vn[n]=N(t)?t:function(n,r){return n&&e?e:t}}function Fn(n,t){return l(vn,n)?vn[n](t._strict,t._locale):new RegExp(zn(n))}function zn(n){return jn(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(n,t,e,r,a){return t||e||r||a})))}function jn(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}vn={};var Bn={};function Un(n,t){var e,r,a=t;for("string"==typeof n&&(n=[n]),u(t)&&(a=function(n,e){e[t]=pn(n)}),r=n.length,e=0;e<r;e++)Bn[n[e]]=a}function Vn(n,t){Un(n,(function(n,e,r,a){r._w=r._w||{},t(n,r._w,r,a)}))}function Hn(n,t,e){null!=t&&l(Bn,n)&&Bn[n](t,e._a,e,n)}var Kn,Gn=0,Wn=1,Yn=2,qn=3,Xn=4,$n=5,Zn=6,Jn=7,Qn=8;function nt(n,t){return(n%t+t)%t}function tt(n,t){if(isNaN(n)||isNaN(t))return NaN;var e=nt(t,12);return n+=(t-e)/12,1===e?un(n)?29:28:31-e%7%2}Kn=Array.prototype.indexOf?Array.prototype.indexOf:function(n){var t;for(t=0;t<this.length;++t)if(this[t]===n)return t;return-1},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(n){return this.localeData().monthsShort(this,n)})),U("MMMM",0,0,(function(n){return this.localeData().months(this,n)})),rn("month","M"),sn("month",8),Mn("M",Sn),Mn("MM",Sn,xn),Mn("MMM",(function(n,t){return t.monthsShortRegex(n)})),Mn("MMMM",(function(n,t){return t.monthsRegex(n)})),Un(["M","MM"],(function(n,t){t[Wn]=pn(n)-1})),Un(["MMM","MMMM"],(function(n,t,e,r){var a=e._locale.monthsParse(n,r,e._strict);null!=a?t[Wn]=a:g(e).invalidMonth=n}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Pn,it=Pn;function lt(n,t){return n?o(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][n.month()]:o(this._months)?this._months:this._months.standalone}function st(n,t){return n?o(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[at.test(t)?"format":"standalone"][n.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(n,t,e){var r,a,o,i=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return e?"MMM"===t?-1!==(a=Kn.call(this._shortMonthsParse,i))?a:null:-1!==(a=Kn.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=Kn.call(this._shortMonthsParse,i))||-1!==(a=Kn.call(this._longMonthsParse,i))?a:null:-1!==(a=Kn.call(this._longMonthsParse,i))||-1!==(a=Kn.call(this._shortMonthsParse,i))?a:null}function ut(n,t,e){var r,a,o;if(this._monthsParseExact)return ct.call(this,n,t,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=h([2e3,r]),e&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),e||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),e&&"MMMM"===t&&this._longMonthsParse[r].test(n))return r;if(e&&"MMM"===t&&this._shortMonthsParse[r].test(n))return r;if(!e&&this._monthsParse[r].test(n))return r}}function dt(n,t){var e;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=pn(t);else if(!u(t=n.localeData().monthsParse(t)))return n;return e=Math.min(n.date(),tt(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,e),n}function pt(n){return null!=n?(dt(this,n),r.updateOffset(this,!0),this):hn(this,"Month")}function ft(){return tt(this.year(),this.month())}function ht(n){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function mt(n){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function gt(){function n(n,t){return t.length-n.length}var t,e,r=[],a=[],o=[];for(t=0;t<12;t++)e=h([2e3,t]),r.push(this.monthsShort(e,"")),a.push(this.months(e,"")),o.push(this.months(e,"")),o.push(this.monthsShort(e,""));for(r.sort(n),a.sort(n),o.sort(n),t=0;t<12;t++)r[t]=jn(r[t]),a[t]=jn(a[t]);for(t=0;t<24;t++)o[t]=jn(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function bt(n){return un(n)?366:365}U("Y",0,0,(function(){var n=this.year();return n<=9999?P(n,4):"+"+n})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),rn("year","y"),sn("year",1),Mn("Y",Dn),Mn("YY",Sn,xn),Mn("YYYY",On,kn),Mn("YYYYY",Nn,En),Mn("YYYYYY",Nn,En),Un(["YYYYY","YYYYYY"],Gn),Un("YYYY",(function(n,t){t[Gn]=2===n.length?r.parseTwoDigitYear(n):pn(n)})),Un("YY",(function(n,t){t[Gn]=r.parseTwoDigitYear(n)})),Un("Y",(function(n,t){t[Gn]=parseInt(n,10)})),r.parseTwoDigitYear=function(n){return pn(n)+(pn(n)>68?1900:2e3)};var vt=fn("FullYear",!0);function yt(){return un(this.year())}function xt(n,t,e,r,a,o,i){var l;return n<100&&n>=0?(l=new Date(n+400,t,e,r,a,o,i),isFinite(l.getFullYear())&&l.setFullYear(n)):l=new Date(n,t,e,r,a,o,i),l}function wt(n){var t,e;return n<100&&n>=0?((e=Array.prototype.slice.call(arguments))[0]=n+400,t=new Date(Date.UTC.apply(null,e)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function kt(n,t,e){var r=7+t-e;return-(7+wt(n,0,r).getUTCDay()-t)%7+r-1}function Et(n,t,e,r,a){var o,i,l=1+7*(t-1)+(7+e-r)%7+kt(n,r,a);return l<=0?i=bt(o=n-1)+l:l>bt(n)?(o=n+1,i=l-bt(n)):(o=n,i=l),{year:o,dayOfYear:i}}function St(n,t,e){var r,a,o=kt(n.year(),t,e),i=Math.floor((n.dayOfYear()-o-1)/7)+1;return i<1?r=i+_t(a=n.year()-1,t,e):i>_t(n.year(),t,e)?(r=i-_t(n.year(),t,e),a=n.year()+1):(a=n.year(),r=i),{week:r,year:a}}function _t(n,t,e){var r=kt(n,t,e),a=kt(n+1,t,e);return(bt(n)-r+a)/7}function Ct(n){return St(n,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),rn("week","w"),rn("isoWeek","W"),sn("week",5),sn("isoWeek",5),Mn("w",Sn),Mn("ww",Sn,xn),Mn("W",Sn),Mn("WW",Sn,xn),Vn(["w","ww","W","WW"],(function(n,t,e,r){t[r.substr(0,1)]=pn(n)}));var Tt={dow:0,doy:6};function Ot(){return this._week.dow}function Nt(){return this._week.doy}function At(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")}function Dt(n){var t=St(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")}function Rt(n,t){return"string"!=typeof n?n:isNaN(n)?"number"==typeof(n=t.weekdaysParse(n))?n:null:parseInt(n,10)}function Lt(n,t){return"string"==typeof n?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function It(n,t){return n.slice(t,7).concat(n.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,(function(n){return this.localeData().weekdaysMin(this,n)})),U("ddd",0,0,(function(n){return this.localeData().weekdaysShort(this,n)})),U("dddd",0,0,(function(n){return this.localeData().weekdays(this,n)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),rn("day","d"),rn("weekday","e"),rn("isoWeekday","E"),sn("day",11),sn("weekday",11),sn("isoWeekday",11),Mn("d",Sn),Mn("e",Sn),Mn("E",Sn),Mn("dd",(function(n,t){return t.weekdaysMinRegex(n)})),Mn("ddd",(function(n,t){return t.weekdaysShortRegex(n)})),Mn("dddd",(function(n,t){return t.weekdaysRegex(n)})),Vn(["dd","ddd","dddd"],(function(n,t,e,r){var a=e._locale.weekdaysParse(n,r,e._strict);null!=a?t.d=a:g(e).invalidWeekday=n})),Vn(["d","e","E"],(function(n,t,e,r){t[r]=pn(n)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ft="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=Pn,jt=Pn,Bt=Pn;function Ut(n,t){var e=o(this._weekdays)?this._weekdays:this._weekdays[n&&!0!==n&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===n?It(e,this._week.dow):n?e[n.day()]:e}function Vt(n){return!0===n?It(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Ht(n){return!0===n?It(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Kt(n,t,e){var r,a,o,i=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return e?"dddd"===t?-1!==(a=Kn.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Kn.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Kn.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=Kn.call(this._weekdaysParse,i))||-1!==(a=Kn.call(this._shortWeekdaysParse,i))||-1!==(a=Kn.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Kn.call(this._shortWeekdaysParse,i))||-1!==(a=Kn.call(this._weekdaysParse,i))||-1!==(a=Kn.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Kn.call(this._minWeekdaysParse,i))||-1!==(a=Kn.call(this._weekdaysParse,i))||-1!==(a=Kn.call(this._shortWeekdaysParse,i))?a:null}function Gt(n,t,e){var r,a,o;if(this._weekdaysParseExact)return Kt.call(this,n,t,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=h([2e3,1]).day(r),e&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),e&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))return r;if(e&&"ddd"===t&&this._shortWeekdaysParse[r].test(n))return r;if(e&&"dd"===t&&this._minWeekdaysParse[r].test(n))return r;if(!e&&this._weekdaysParse[r].test(n))return r}}function Wt(n){if(!this.isValid())return null!=n?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=Rt(n,this.localeData()),this.add(n-t,"d")):t}function Yt(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")}function qt(n){if(!this.isValid())return null!=n?this:NaN;if(null!=n){var t=Lt(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Xt(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=zt),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function $t(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jt),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zt(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bt),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function n(n,t){return t.length-n.length}var t,e,r,a,o,i=[],l=[],s=[],c=[];for(t=0;t<7;t++)e=h([2e3,1]).day(t),r=jn(this.weekdaysMin(e,"")),a=jn(this.weekdaysShort(e,"")),o=jn(this.weekdays(e,"")),i.push(r),l.push(a),s.push(o),c.push(r),c.push(a),c.push(o);i.sort(n),l.sort(n),s.sort(n),c.sort(n),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Qt(){return this.hours()%12||12}function ne(){return this.hours()||24}function te(n,t){U(n,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ee(n,t){return t._meridiemParse}function re(n){return"p"===(n+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Qt),U("k",["kk",2],0,ne),U("hmm",0,0,(function(){return""+Qt.apply(this)+P(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Qt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),te("a",!0),te("A",!1),rn("hour","h"),sn("hour",13),Mn("a",ee),Mn("A",ee),Mn("H",Sn),Mn("h",Sn),Mn("k",Sn),Mn("HH",Sn,xn),Mn("hh",Sn,xn),Mn("kk",Sn,xn),Mn("hmm",_n),Mn("hmmss",Cn),Mn("Hmm",_n),Mn("Hmmss",Cn),Un(["H","HH"],qn),Un(["k","kk"],(function(n,t,e){var r=pn(n);t[qn]=24===r?0:r})),Un(["a","A"],(function(n,t,e){e._isPm=e._locale.isPM(n),e._meridiem=n})),Un(["h","hh"],(function(n,t,e){t[qn]=pn(n),g(e).bigHour=!0})),Un("hmm",(function(n,t,e){var r=n.length-2;t[qn]=pn(n.substr(0,r)),t[Xn]=pn(n.substr(r)),g(e).bigHour=!0})),Un("hmmss",(function(n,t,e){var r=n.length-4,a=n.length-2;t[qn]=pn(n.substr(0,r)),t[Xn]=pn(n.substr(r,2)),t[$n]=pn(n.substr(a)),g(e).bigHour=!0})),Un("Hmm",(function(n,t,e){var r=n.length-2;t[qn]=pn(n.substr(0,r)),t[Xn]=pn(n.substr(r))})),Un("Hmmss",(function(n,t,e){var r=n.length-4,a=n.length-2;t[qn]=pn(n.substr(0,r)),t[Xn]=pn(n.substr(r,2)),t[$n]=pn(n.substr(a))}));var ae=/[ap]\.?m?\.?/i,oe=fn("Hours",!0);function ie(n,t,e){return n>11?e?"pm":"PM":e?"am":"AM"}var le,se={calendar:L,longDateFormat:W,invalidDate:q,ordinal:$,dayOfMonthOrdinalParse:Z,relativeTime:Q,months:et,monthsShort:rt,week:Tt,weekdays:Pt,weekdaysMin:Ft,weekdaysShort:Mt,meridiemParse:ae},ce={},ue={};function de(n,t){var e,r=Math.min(n.length,t.length);for(e=0;e<r;e+=1)if(n[e]!==t[e])return e;return r}function pe(n){return n?n.toLowerCase().replace("_","-"):n}function fe(n){for(var t,e,r,a,o=0;o<n.length;){for(t=(a=pe(n[o]).split("-")).length,e=(e=pe(n[o+1]))?e.split("-"):null;t>0;){if(r=me(a.slice(0,t).join("-")))return r;if(e&&e.length>=t&&de(a,e)>=t-1)break;t--}o++}return le}function he(n){return null!=n.match("^[^/\\\\]*$")}function me(t){var e=null;if(void 0===ce[t]&&n&&n.exports&&he(t))try{e=le._abbr,F("./locale/"+t),ge(e)}catch(n){ce[t]=null}return ce[t]}function ge(n,t){var e;return n&&((e=c(t)?ye(n):be(n,t))?le=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),le._abbr}function be(n,t){if(null!==t){var e,r=se;if(t.abbr=n,null!=ce[n])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ce[n]._config;else if(null!=t.parentLocale)if(null!=ce[t.parentLocale])r=ce[t.parentLocale]._config;else{if(null==(e=me(t.parentLocale)))return ue[t.parentLocale]||(ue[t.parentLocale]=[]),ue[t.parentLocale].push({name:n,config:t}),null;r=e._config}return ce[n]=new R(D(r,t)),ue[n]&&ue[n].forEach((function(n){be(n.name,n.config)})),ge(n),ce[n]}return delete ce[n],null}function ve(n,t){if(null!=t){var e,r,a=se;null!=ce[n]&&null!=ce[n].parentLocale?ce[n].set(D(ce[n]._config,t)):(null!=(r=me(n))&&(a=r._config),t=D(a,t),null==r&&(t.abbr=n),(e=new R(t)).parentLocale=ce[n],ce[n]=e),ge(n)}else null!=ce[n]&&(null!=ce[n].parentLocale?(ce[n]=ce[n].parentLocale,n===ge()&&ge(n)):null!=ce[n]&&delete ce[n]);return ce[n]}function ye(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return le;if(!o(n)){if(t=me(n))return t;n=[n]}return fe(n)}function xe(){return C(ce)}function we(n){var t,e=n._a;return e&&-2===g(n).overflow&&(t=e[Wn]<0||e[Wn]>11?Wn:e[Yn]<1||e[Yn]>tt(e[Gn],e[Wn])?Yn:e[qn]<0||e[qn]>24||24===e[qn]&&(0!==e[Xn]||0!==e[$n]||0!==e[Zn])?qn:e[Xn]<0||e[Xn]>59?Xn:e[$n]<0||e[$n]>59?$n:e[Zn]<0||e[Zn]>999?Zn:-1,g(n)._overflowDayOfYear&&(t<Gn||t>Yn)&&(t=Yn),g(n)._overflowWeeks&&-1===t&&(t=Jn),g(n)._overflowWeekday&&-1===t&&(t=Qn),g(n).overflow=t),n}var ke=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ee=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Se=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ce=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Te=/^\/?Date\((-?\d+)/i,Oe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ne={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ae(n){var t,e,r,a,o,i,l=n._i,s=ke.exec(l)||Ee.exec(l),c=_e.length,u=Ce.length;if(s){for(g(n).iso=!0,t=0,e=c;t<e;t++)if(_e[t][1].exec(s[1])){a=_e[t][0],r=!1!==_e[t][2];break}if(null==a)return void(n._isValid=!1);if(s[3]){for(t=0,e=u;t<e;t++)if(Ce[t][1].exec(s[3])){o=(s[2]||" ")+Ce[t][0];break}if(null==o)return void(n._isValid=!1)}if(!r&&null!=o)return void(n._isValid=!1);if(s[4]){if(!Se.exec(s[4]))return void(n._isValid=!1);i="Z"}n._f=a+(o||"")+(i||""),Ve(n)}else n._isValid=!1}function De(n,t,e,r,a,o){var i=[Re(n),rt.indexOf(t),parseInt(e,10),parseInt(r,10),parseInt(a,10)];return o&&i.push(parseInt(o,10)),i}function Re(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function Le(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ie(n,t,e){return!n||Mt.indexOf(n)===new Date(t[0],t[1],t[2]).getDay()||(g(e).weekdayMismatch=!0,e._isValid=!1,!1)}function Pe(n,t,e){if(n)return Ne[n];if(t)return 0;var r=parseInt(e,10),a=r%100;return(r-a)/100*60+a}function Me(n){var t,e=Oe.exec(Le(n._i));if(e){if(t=De(e[4],e[3],e[2],e[5],e[6],e[7]),!Ie(e[1],t,n))return;n._a=t,n._tzm=Pe(e[8],e[9],e[10]),n._d=wt.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),g(n).rfc2822=!0}else n._isValid=!1}function Fe(n){var t=Te.exec(n._i);null===t?(Ae(n),!1===n._isValid&&(delete n._isValid,Me(n),!1===n._isValid&&(delete n._isValid,n._strict?n._isValid=!1:r.createFromInputFallback(n)))):n._d=new Date(+t[1])}function ze(n,t,e){return null!=n?n:null!=t?t:e}function je(n){var t=new Date(r.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Be(n){var t,e,r,a,o,i=[];if(!n._d){for(r=je(n),n._w&&null==n._a[Yn]&&null==n._a[Wn]&&Ue(n),null!=n._dayOfYear&&(o=ze(n._a[Gn],r[Gn]),(n._dayOfYear>bt(o)||0===n._dayOfYear)&&(g(n)._overflowDayOfYear=!0),e=wt(o,0,n._dayOfYear),n._a[Wn]=e.getUTCMonth(),n._a[Yn]=e.getUTCDate()),t=0;t<3&&null==n._a[t];++t)n._a[t]=i[t]=r[t];for(;t<7;t++)n._a[t]=i[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[qn]&&0===n._a[Xn]&&0===n._a[$n]&&0===n._a[Zn]&&(n._nextDay=!0,n._a[qn]=0),n._d=(n._useUTC?wt:xt).apply(null,i),a=n._useUTC?n._d.getUTCDay():n._d.getDay(),null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[qn]=24),n._w&&void 0!==n._w.d&&n._w.d!==a&&(g(n).weekdayMismatch=!0)}}function Ue(n){var t,e,r,a,o,i,l,s,c;null!=(t=n._w).GG||null!=t.W||null!=t.E?(o=1,i=4,e=ze(t.GG,n._a[Gn],St($e(),1,4).year),r=ze(t.W,1),((a=ze(t.E,1))<1||a>7)&&(s=!0)):(o=n._locale._week.dow,i=n._locale._week.doy,c=St($e(),o,i),e=ze(t.gg,n._a[Gn],c.year),r=ze(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(s=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(s=!0)):a=o),r<1||r>_t(e,o,i)?g(n)._overflowWeeks=!0:null!=s?g(n)._overflowWeekday=!0:(l=Et(e,r,a,o,i),n._a[Gn]=l.year,n._dayOfYear=l.dayOfYear)}function Ve(n){if(n._f!==r.ISO_8601)if(n._f!==r.RFC_2822){n._a=[],g(n).empty=!0;var t,e,a,o,i,l,s,c=""+n._i,u=c.length,d=0;for(s=(a=G(n._f,n._locale).match(M)||[]).length,t=0;t<s;t++)o=a[t],(e=(c.match(Fn(o,n))||[])[0])&&((i=c.substr(0,c.indexOf(e))).length>0&&g(n).unusedInput.push(i),c=c.slice(c.indexOf(e)+e.length),d+=e.length),B[o]?(e?g(n).empty=!1:g(n).unusedTokens.push(o),Hn(o,e,n)):n._strict&&!e&&g(n).unusedTokens.push(o);g(n).charsLeftOver=u-d,c.length>0&&g(n).unusedInput.push(c),n._a[qn]<=12&&!0===g(n).bigHour&&n._a[qn]>0&&(g(n).bigHour=void 0),g(n).parsedDateParts=n._a.slice(0),g(n).meridiem=n._meridiem,n._a[qn]=He(n._locale,n._a[qn],n._meridiem),null!==(l=g(n).era)&&(n._a[Gn]=n._locale.erasConvertYear(l,n._a[Gn])),Be(n),we(n)}else Me(n);else Ae(n)}function He(n,t,e){var r;return null==e?t:null!=n.meridiemHour?n.meridiemHour(t,e):null!=n.isPM?((r=n.isPM(e))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Ke(n){var t,e,r,a,o,i,l=!1,s=n._f.length;if(0===s)return g(n).invalidFormat=!0,void(n._d=new Date(NaN));for(a=0;a<s;a++)o=0,i=!1,t=w({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[a],Ve(t),b(t)&&(i=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,l?o<r&&(r=o,e=t):(null==r||o<r||i)&&(r=o,e=t,i&&(l=!0));f(n,e||t)}function Ge(n){if(!n._d){var t=on(n._i),e=void 0===t.day?t.date:t.day;n._a=p([t.year,t.month,e,t.hour,t.minute,t.second,t.millisecond],(function(n){return n&&parseInt(n,10)})),Be(n)}}function We(n){var t=new k(we(Ye(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ye(n){var t=n._i,e=n._f;return n._locale=n._locale||ye(n._l),null===t||void 0===e&&""===t?v({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),E(t)?new k(we(t)):(d(t)?n._d=t:o(e)?Ke(n):e?Ve(n):qe(n),b(n)||(n._d=null),n))}function qe(n){var t=n._i;c(t)?n._d=new Date(r.now()):d(t)?n._d=new Date(t.valueOf()):"string"==typeof t?Fe(n):o(t)?(n._a=p(t.slice(0),(function(n){return parseInt(n,10)})),Be(n)):i(t)?Ge(n):u(t)?n._d=new Date(t):r.createFromInputFallback(n)}function Xe(n,t,e,r,a){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==e&&!1!==e||(r=e,e=void 0),(i(n)&&s(n)||o(n)&&0===n.length)&&(n=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=e,l._i=n,l._f=t,l._strict=r,We(l)}function $e(n,t,e,r){return Xe(n,t,e,r,!1)}r.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Ze=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var n=$e.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:v()})),Je=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var n=$e.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:v()}));function Qe(n,t){var e,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return $e();for(e=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][n](e)||(e=t[r]);return e}function nr(){return Qe("isBefore",[].slice.call(arguments,0))}function tr(){return Qe("isAfter",[].slice.call(arguments,0))}var er=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ar(n){var t,e,r=!1,a=rr.length;for(t in n)if(l(n,t)&&(-1===Kn.call(rr,t)||null!=n[t]&&isNaN(n[t])))return!1;for(e=0;e<a;++e)if(n[rr[e]]){if(r)return!1;parseFloat(n[rr[e]])!==pn(n[rr[e]])&&(r=!0)}return!0}function or(){return this._isValid}function ir(){return Nr(NaN)}function lr(n){var t=on(n),e=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,s=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ar(t),this._milliseconds=+u+1e3*c+6e4*s+1e3*l*60*60,this._days=+i+7*o,this._months=+a+3*r+12*e,this._data={},this._locale=ye(),this._bubble()}function sr(n){return n instanceof lr}function cr(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function ur(n,t,e){var r,a=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),i=0;for(r=0;r<a;r++)(e&&n[r]!==t[r]||!e&&pn(n[r])!==pn(t[r]))&&i++;return i+o}function dr(n,t){U(n,0,0,(function(){var n=this.utcOffset(),e="+";return n<0&&(n=-n,e="-"),e+P(~~(n/60),2)+t+P(~~n%60,2)}))}dr("Z",":"),dr("ZZ",""),Mn("Z",Ln),Mn("ZZ",Ln),Un(["Z","ZZ"],(function(n,t,e){e._useUTC=!0,e._tzm=fr(Ln,n)}));var pr=/([\+\-]|\d\d)/gi;function fr(n,t){var e,r,a=(t||"").match(n);return null===a?null:0===(r=60*(e=((a[a.length-1]||[])+"").match(pr)||["-",0,0])[1]+pn(e[2]))?0:"+"===e[0]?r:-r}function hr(n,t){var e,a;return t._isUTC?(e=t.clone(),a=(E(n)||d(n)?n.valueOf():$e(n).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+a),r.updateOffset(e,!1),e):$e(n).local()}function mr(n){return-Math.round(n._d.getTimezoneOffset())}function gr(n,t,e){var a,o=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(null===(n=fr(Ln,n)))return this}else Math.abs(n)<16&&!e&&(n*=60);return!this._isUTC&&t&&(a=mr(this)),this._offset=n,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==n&&(!t||this._changeInProgress?Ir(this,Nr(n-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function br(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function vr(n){return this.utcOffset(0,n)}function yr(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(mr(this),"m")),this}function xr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=fr(Rn,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this}function wr(n){return!!this.isValid()&&(n=n?$e(n).utcOffset():0,(this.utcOffset()-n)%60==0)}function kr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Er(){if(!c(this._isDSTShifted))return this._isDSTShifted;var n,t={};return w(t,this),(t=Ye(t))._a?(n=t._isUTC?h(t._a):$e(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function _r(){return!!this.isValid()&&this._isUTC}function Cr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Tr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nr(n,t){var e,r,a,o=n,i=null;return sr(n)?o={ms:n._milliseconds,d:n._days,M:n._months}:u(n)||!isNaN(+n)?(o={},t?o[t]=+n:o.milliseconds=+n):(i=Tr.exec(n))?(e="-"===i[1]?-1:1,o={y:0,d:pn(i[Yn])*e,h:pn(i[qn])*e,m:pn(i[Xn])*e,s:pn(i[$n])*e,ms:pn(cr(1e3*i[Zn]))*e}):(i=Or.exec(n))?(e="-"===i[1]?-1:1,o={y:Ar(i[2],e),M:Ar(i[3],e),w:Ar(i[4],e),d:Ar(i[5],e),h:Ar(i[6],e),m:Ar(i[7],e),s:Ar(i[8],e)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=Rr($e(o.from),$e(o.to)),(o={}).ms=a.milliseconds,o.M=a.months),r=new lr(o),sr(n)&&l(n,"_locale")&&(r._locale=n._locale),sr(n)&&l(n,"_isValid")&&(r._isValid=n._isValid),r}function Ar(n,t){var e=n&&parseFloat(n.replace(",","."));return(isNaN(e)?0:e)*t}function Dr(n,t){var e={};return e.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(e.months,"M").isAfter(t)&&--e.months,e.milliseconds=+t-+n.clone().add(e.months,"M"),e}function Rr(n,t){var e;return n.isValid()&&t.isValid()?(t=hr(t,n),n.isBefore(t)?e=Dr(n,t):((e=Dr(t,n)).milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function Lr(n,t){return function(e,r){var a;return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=e,e=r,r=a),Ir(this,Nr(e,r),n),this}}function Ir(n,t,e,a){var o=t._milliseconds,i=cr(t._days),l=cr(t._months);n.isValid()&&(a=null==a||a,l&&dt(n,hn(n,"Month")+l*e),i&&mn(n,"Date",hn(n,"Date")+i*e),o&&n._d.setTime(n._d.valueOf()+o*e),a&&r.updateOffset(n,i||l))}Nr.fn=lr.prototype,Nr.invalid=ir;var Pr=Lr(1,"add"),Mr=Lr(-1,"subtract");function Fr(n){return"string"==typeof n||n instanceof String}function zr(n){return E(n)||d(n)||Fr(n)||u(n)||Br(n)||jr(n)||null==n}function jr(n){var t,e,r=i(n)&&!s(n),a=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=o.length;for(t=0;t<c;t+=1)e=o[t],a=a||l(n,e);return r&&a}function Br(n){var t=o(n),e=!1;return t&&(e=0===n.filter((function(t){return!u(t)&&Fr(n)})).length),t&&e}function Ur(n){var t,e,r=i(n)&&!s(n),a=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)e=o[t],a=a||l(n,e);return r&&a}function Vr(n,t){var e=n.diff(t,"days",!0);return e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"}function Hr(n,t){1===arguments.length&&(arguments[0]?zr(arguments[0])?(n=arguments[0],t=void 0):Ur(arguments[0])&&(t=arguments[0],n=void 0):(n=void 0,t=void 0));var e=n||$e(),a=hr(e,this).startOf("day"),o=r.calendarFormat(this,a)||"sameElse",i=t&&(N(t[o])?t[o].call(this,e):t[o]);return this.format(i||this.localeData().calendar(o,this,$e(e)))}function Kr(){return new k(this)}function Gr(n,t){var e=E(n)?n:$e(n);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=an(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())}function Wr(n,t){var e=E(n)?n:$e(n);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=an(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())}function Yr(n,t,e,r){var a=E(n)?n:$e(n),o=E(t)?t:$e(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,e):!this.isBefore(a,e))&&(")"===r[1]?this.isBefore(o,e):!this.isAfter(o,e))}function qr(n,t){var e,r=E(n)?n:$e(n);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=an(t)||"millisecond")?this.valueOf()===r.valueOf():(e=r.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))}function Xr(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function $r(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function Zr(n,t,e){var r,a,o;if(!this.isValid())return NaN;if(!(r=hr(n,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=an(t)){case"year":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return e?o:dn(o)}function Jr(n,t){if(n.date()<t.date())return-Jr(t,n);var e=12*(t.year()-n.year())+(t.month()-n.month()),r=n.clone().add(e,"months");return-(e+(t-r<0?(t-r)/(r-n.clone().add(e-1,"months")):(t-r)/(n.clone().add(e+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function na(n){if(!this.isValid())return null;var t=!0!==n,e=t?this.clone().utc():this;return e.year()<0||e.year()>9999?K(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",K(e,"Z")):K(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ta(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n,t,e,r,a="moment",o="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),n="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",e="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(n+t+e+r)}function ea(n){n||(n=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=K(this,n);return this.localeData().postformat(t)}function ra(n,t){return this.isValid()&&(E(n)&&n.isValid()||$e(n).isValid())?Nr({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aa(n){return this.from($e(),n)}function oa(n,t){return this.isValid()&&(E(n)&&n.isValid()||$e(n).isValid())?Nr({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ia(n){return this.to($e(),n)}function la(n){var t;return void 0===n?this._locale._abbr:(null!=(t=ye(n))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sa=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(n){return void 0===n?this.localeData():this.locale(n)}));function ca(){return this._locale}var ua=1e3,da=60*ua,pa=60*da,fa=3506328*pa;function ha(n,t){return(n%t+t)%t}function ma(n,t,e){return n<100&&n>=0?new Date(n+400,t,e)-fa:new Date(n,t,e).valueOf()}function ga(n,t,e){return n<100&&n>=0?Date.UTC(n+400,t,e)-fa:Date.UTC(n,t,e)}function ba(n){var t,e;if(void 0===(n=an(n))||"millisecond"===n||!this.isValid())return this;switch(e=this._isUTC?ga:ma,n){case"year":t=e(this.year(),0,1);break;case"quarter":t=e(this.year(),this.month()-this.month()%3,1);break;case"month":t=e(this.year(),this.month(),1);break;case"week":t=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=e(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ha(t+(this._isUTC?0:this.utcOffset()*da),pa);break;case"minute":t=this._d.valueOf(),t-=ha(t,da);break;case"second":t=this._d.valueOf(),t-=ha(t,ua)}return this._d.setTime(t),r.updateOffset(this,!0),this}function va(n){var t,e;if(void 0===(n=an(n))||"millisecond"===n||!this.isValid())return this;switch(e=this._isUTC?ga:ma,n){case"year":t=e(this.year()+1,0,1)-1;break;case"quarter":t=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=e(this.year(),this.month()+1,1)-1;break;case"week":t=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pa-ha(t+(this._isUTC?0:this.utcOffset()*da),pa)-1;break;case"minute":t=this._d.valueOf(),t+=da-ha(t,da)-1;break;case"second":t=this._d.valueOf(),t+=ua-ha(t,ua)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function ya(){return this._d.valueOf()-6e4*(this._offset||0)}function xa(){return Math.floor(this.valueOf()/1e3)}function wa(){return new Date(this.valueOf())}function ka(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function Ea(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sa(){return this.isValid()?this.toISOString():null}function _a(){return b(this)}function Ca(){return f({},g(this))}function Ta(){return g(this).overflow}function Oa(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Na(n,t){var e,a,o,i=this._eras||ye("en")._eras;for(e=0,a=i.length;e<a;++e)switch("string"==typeof i[e].since&&(o=r(i[e].since).startOf("day"),i[e].since=o.valueOf()),typeof i[e].until){case"undefined":i[e].until=1/0;break;case"string":o=r(i[e].until).startOf("day").valueOf(),i[e].until=o.valueOf()}return i}function Aa(n,t,e){var r,a,o,i,l,s=this.eras();for(n=n.toUpperCase(),r=0,a=s.length;r<a;++r)if(o=s[r].name.toUpperCase(),i=s[r].abbr.toUpperCase(),l=s[r].narrow.toUpperCase(),e)switch(t){case"N":case"NN":case"NNN":if(i===n)return s[r];break;case"NNNN":if(o===n)return s[r];break;case"NNNNN":if(l===n)return s[r]}else if([o,i,l].indexOf(n)>=0)return s[r]}function Da(n,t){var e=n.since<=n.until?1:-1;return void 0===t?r(n.since).year():r(n.since).year()+(t-n.offset)*e}function Ra(){var n,t,e,r=this.localeData().eras();for(n=0,t=r.length;n<t;++n){if(e=this.clone().startOf("day").valueOf(),r[n].since<=e&&e<=r[n].until)return r[n].name;if(r[n].until<=e&&e<=r[n].since)return r[n].name}return""}function La(){var n,t,e,r=this.localeData().eras();for(n=0,t=r.length;n<t;++n){if(e=this.clone().startOf("day").valueOf(),r[n].since<=e&&e<=r[n].until)return r[n].narrow;if(r[n].until<=e&&e<=r[n].since)return r[n].narrow}return""}function Ia(){var n,t,e,r=this.localeData().eras();for(n=0,t=r.length;n<t;++n){if(e=this.clone().startOf("day").valueOf(),r[n].since<=e&&e<=r[n].until)return r[n].abbr;if(r[n].until<=e&&e<=r[n].since)return r[n].abbr}return""}function Pa(){var n,t,e,a,o=this.localeData().eras();for(n=0,t=o.length;n<t;++n)if(e=o[n].since<=o[n].until?1:-1,a=this.clone().startOf("day").valueOf(),o[n].since<=a&&a<=o[n].until||o[n].until<=a&&a<=o[n].since)return(this.year()-r(o[n].since).year())*e+o[n].offset;return this.year()}function Ma(n){return l(this,"_erasNameRegex")||Ha.call(this),n?this._erasNameRegex:this._erasRegex}function Fa(n){return l(this,"_erasAbbrRegex")||Ha.call(this),n?this._erasAbbrRegex:this._erasRegex}function za(n){return l(this,"_erasNarrowRegex")||Ha.call(this),n?this._erasNarrowRegex:this._erasRegex}function ja(n,t){return t.erasAbbrRegex(n)}function Ba(n,t){return t.erasNameRegex(n)}function Ua(n,t){return t.erasNarrowRegex(n)}function Va(n,t){return t._eraYearOrdinalRegex||An}function Ha(){var n,t,e=[],r=[],a=[],o=[],i=this.eras();for(n=0,t=i.length;n<t;++n)r.push(jn(i[n].name)),e.push(jn(i[n].abbr)),a.push(jn(i[n].narrow)),o.push(jn(i[n].name)),o.push(jn(i[n].abbr)),o.push(jn(i[n].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Ka(n,t){U(0,[n,n.length],0,t)}function Ga(n){return Za.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wa(n){return Za.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function Ya(){return _t(this.year(),1,4)}function qa(){return _t(this.isoWeekYear(),1,4)}function Xa(){var n=this.localeData()._week;return _t(this.year(),n.dow,n.doy)}function $a(){var n=this.localeData()._week;return _t(this.weekYear(),n.dow,n.doy)}function Za(n,t,e,r,a){var o;return null==n?St(this,r,a).year:(t>(o=_t(n,r,a))&&(t=o),Ja.call(this,n,t,e,r,a))}function Ja(n,t,e,r,a){var o=Et(n,t,e,r,a),i=wt(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Qa(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Mn("N",ja),Mn("NN",ja),Mn("NNN",ja),Mn("NNNN",Ba),Mn("NNNNN",Ua),Un(["N","NN","NNN","NNNN","NNNNN"],(function(n,t,e,r){var a=e._locale.erasParse(n,r,e._strict);a?g(e).era=a:g(e).invalidEra=n})),Mn("y",An),Mn("yy",An),Mn("yyy",An),Mn("yyyy",An),Mn("yo",Va),Un(["y","yy","yyy","yyyy"],Gn),Un(["yo"],(function(n,t,e,r){var a;e._locale._eraYearOrdinalRegex&&(a=n.match(e._locale._eraYearOrdinalRegex)),e._locale.eraYearOrdinalParse?t[Gn]=e._locale.eraYearOrdinalParse(n,a):t[Gn]=parseInt(n,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ka("gggg","weekYear"),Ka("ggggg","weekYear"),Ka("GGGG","isoWeekYear"),Ka("GGGGG","isoWeekYear"),rn("weekYear","gg"),rn("isoWeekYear","GG"),sn("weekYear",1),sn("isoWeekYear",1),Mn("G",Dn),Mn("g",Dn),Mn("GG",Sn,xn),Mn("gg",Sn,xn),Mn("GGGG",On,kn),Mn("gggg",On,kn),Mn("GGGGG",Nn,En),Mn("ggggg",Nn,En),Vn(["gggg","ggggg","GGGG","GGGGG"],(function(n,t,e,r){t[r.substr(0,2)]=pn(n)})),Vn(["gg","GG"],(function(n,t,e,a){t[a]=r.parseTwoDigitYear(n)})),U("Q",0,"Qo","quarter"),rn("quarter","Q"),sn("quarter",7),Mn("Q",yn),Un("Q",(function(n,t){t[Wn]=3*(pn(n)-1)})),U("D",["DD",2],"Do","date"),rn("date","D"),sn("date",9),Mn("D",Sn),Mn("DD",Sn,xn),Mn("Do",(function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Un(["D","DD"],Yn),Un("Do",(function(n,t){t[Yn]=pn(n.match(Sn)[0])}));var no=fn("Date",!0);function to(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),rn("dayOfYear","DDD"),sn("dayOfYear",4),Mn("DDD",Tn),Mn("DDDD",wn),Un(["DDD","DDDD"],(function(n,t,e){e._dayOfYear=pn(n)})),U("m",["mm",2],0,"minute"),rn("minute","m"),sn("minute",14),Mn("m",Sn),Mn("mm",Sn,xn),Un(["m","mm"],Xn);var eo=fn("Minutes",!1);U("s",["ss",2],0,"second"),rn("second","s"),sn("second",15),Mn("s",Sn),Mn("ss",Sn,xn),Un(["s","ss"],$n);var ro,ao,oo=fn("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rn("millisecond","ms"),sn("millisecond",16),Mn("S",Tn,yn),Mn("SS",Tn,xn),Mn("SSS",Tn,wn),ro="SSSS";ro.length<=9;ro+="S")Mn(ro,An);function io(n,t){t[Zn]=pn(1e3*("0."+n))}for(ro="S";ro.length<=9;ro+="S")Un(ro,io);function lo(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ao=fn("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var co=k.prototype;function uo(n){return $e(1e3*n)}function po(){return $e.apply(null,arguments).parseZone()}function fo(n){return n}co.add=Pr,co.calendar=Hr,co.clone=Kr,co.diff=Zr,co.endOf=va,co.format=ea,co.from=ra,co.fromNow=aa,co.to=oa,co.toNow=ia,co.get=gn,co.invalidAt=Ta,co.isAfter=Gr,co.isBefore=Wr,co.isBetween=Yr,co.isSame=qr,co.isSameOrAfter=Xr,co.isSameOrBefore=$r,co.isValid=_a,co.lang=sa,co.locale=la,co.localeData=ca,co.max=Je,co.min=Ze,co.parsingFlags=Ca,co.set=bn,co.startOf=ba,co.subtract=Mr,co.toArray=ka,co.toObject=Ea,co.toDate=wa,co.toISOString=na,co.inspect=ta,"undefined"!=typeof Symbol&&null!=Symbol.for&&(co[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),co.toJSON=Sa,co.toString=Qr,co.unix=xa,co.valueOf=ya,co.creationData=Oa,co.eraName=Ra,co.eraNarrow=La,co.eraAbbr=Ia,co.eraYear=Pa,co.year=vt,co.isLeapYear=yt,co.weekYear=Ga,co.isoWeekYear=Wa,co.quarter=co.quarters=Qa,co.month=pt,co.daysInMonth=ft,co.week=co.weeks=At,co.isoWeek=co.isoWeeks=Dt,co.weeksInYear=Xa,co.weeksInWeekYear=$a,co.isoWeeksInYear=Ya,co.isoWeeksInISOWeekYear=qa,co.date=no,co.day=co.days=Wt,co.weekday=Yt,co.isoWeekday=qt,co.dayOfYear=to,co.hour=co.hours=oe,co.minute=co.minutes=eo,co.second=co.seconds=oo,co.millisecond=co.milliseconds=ao,co.utcOffset=gr,co.utc=vr,co.local=yr,co.parseZone=xr,co.hasAlignedHourOffset=wr,co.isDST=kr,co.isLocal=Sr,co.isUtcOffset=_r,co.isUtc=Cr,co.isUTC=Cr,co.zoneAbbr=lo,co.zoneName=so,co.dates=_("dates accessor is deprecated. Use date instead.",no),co.months=_("months accessor is deprecated. Use month instead",pt),co.years=_("years accessor is deprecated. Use year instead",vt),co.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",br),co.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Er);var ho=R.prototype;function mo(n,t,e,r){var a=ye(),o=h().set(r,t);return a[e](o,n)}function go(n,t,e){if(u(n)&&(t=n,n=void 0),n=n||"",null!=t)return mo(n,t,e,"month");var r,a=[];for(r=0;r<12;r++)a[r]=mo(n,r,e,"month");return a}function bo(n,t,e,r){"boolean"==typeof n?(u(t)&&(e=t,t=void 0),t=t||""):(e=t=n,n=!1,u(t)&&(e=t,t=void 0),t=t||"");var a,o=ye(),i=n?o._week.dow:0,l=[];if(null!=e)return mo(t,(e+i)%7,r,"day");for(a=0;a<7;a++)l[a]=mo(t,(a+i)%7,r,"day");return l}function vo(n,t){return go(n,t,"months")}function yo(n,t){return go(n,t,"monthsShort")}function xo(n,t,e){return bo(n,t,e,"weekdays")}function wo(n,t,e){return bo(n,t,e,"weekdaysShort")}function ko(n,t,e){return bo(n,t,e,"weekdaysMin")}ho.calendar=I,ho.longDateFormat=Y,ho.invalidDate=X,ho.ordinal=J,ho.preparse=fo,ho.postformat=fo,ho.relativeTime=nn,ho.pastFuture=tn,ho.set=A,ho.eras=Na,ho.erasParse=Aa,ho.erasConvertYear=Da,ho.erasAbbrRegex=Fa,ho.erasNameRegex=Ma,ho.erasNarrowRegex=za,ho.months=lt,ho.monthsShort=st,ho.monthsParse=ut,ho.monthsRegex=mt,ho.monthsShortRegex=ht,ho.week=Ct,ho.firstDayOfYear=Nt,ho.firstDayOfWeek=Ot,ho.weekdays=Ut,ho.weekdaysMin=Ht,ho.weekdaysShort=Vt,ho.weekdaysParse=Gt,ho.weekdaysRegex=Xt,ho.weekdaysShortRegex=$t,ho.weekdaysMinRegex=Zt,ho.isPM=re,ho.meridiem=ie,ge("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===pn(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",ge),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",ye);var Eo=Math.abs;function So(){var n=this._data;return this._milliseconds=Eo(this._milliseconds),this._days=Eo(this._days),this._months=Eo(this._months),n.milliseconds=Eo(n.milliseconds),n.seconds=Eo(n.seconds),n.minutes=Eo(n.minutes),n.hours=Eo(n.hours),n.months=Eo(n.months),n.years=Eo(n.years),this}function _o(n,t,e,r){var a=Nr(t,e);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function Co(n,t){return _o(this,n,t,1)}function To(n,t){return _o(this,n,t,-1)}function Oo(n){return n<0?Math.floor(n):Math.ceil(n)}function No(){var n,t,e,r,a,o=this._milliseconds,i=this._days,l=this._months,s=this._data;return o>=0&&i>=0&&l>=0||o<=0&&i<=0&&l<=0||(o+=864e5*Oo(Do(l)+i),i=0,l=0),s.milliseconds=o%1e3,n=dn(o/1e3),s.seconds=n%60,t=dn(n/60),s.minutes=t%60,e=dn(t/60),s.hours=e%24,i+=dn(e/24),l+=a=dn(Ao(i)),i-=Oo(Do(a)),r=dn(l/12),l%=12,s.days=i,s.months=l,s.years=r,this}function Ao(n){return 4800*n/146097}function Do(n){return 146097*n/4800}function Ro(n){if(!this.isValid())return NaN;var t,e,r=this._milliseconds;if("month"===(n=an(n))||"quarter"===n||"year"===n)switch(t=this._days+r/864e5,e=this._months+Ao(t),n){case"month":return e;case"quarter":return e/3;case"year":return e/12}else switch(t=this._days+Math.round(Do(this._months)),n){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+n)}}function Lo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pn(this._months/12):NaN}function Io(n){return function(){return this.as(n)}}var Po=Io("ms"),Mo=Io("s"),Fo=Io("m"),zo=Io("h"),jo=Io("d"),Bo=Io("w"),Uo=Io("M"),Vo=Io("Q"),Ho=Io("y");function Ko(){return Nr(this)}function Go(n){return n=an(n),this.isValid()?this[n+"s"]():NaN}function Wo(n){return function(){return this.isValid()?this._data[n]:NaN}}var Yo=Wo("milliseconds"),qo=Wo("seconds"),Xo=Wo("minutes"),$o=Wo("hours"),Zo=Wo("days"),Jo=Wo("months"),Qo=Wo("years");function ni(){return dn(this.days()/7)}var ti=Math.round,ei={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ri(n,t,e,r,a){return a.relativeTime(t||1,!!e,n,r)}function ai(n,t,e,r){var a=Nr(n).abs(),o=ti(a.as("s")),i=ti(a.as("m")),l=ti(a.as("h")),s=ti(a.as("d")),c=ti(a.as("M")),u=ti(a.as("w")),d=ti(a.as("y")),p=o<=e.ss&&["s",o]||o<e.s&&["ss",o]||i<=1&&["m"]||i<e.m&&["mm",i]||l<=1&&["h"]||l<e.h&&["hh",l]||s<=1&&["d"]||s<e.d&&["dd",s];return null!=e.w&&(p=p||u<=1&&["w"]||u<e.w&&["ww",u]),(p=p||c<=1&&["M"]||c<e.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+n>0,p[4]=r,ri.apply(null,p)}function oi(n){return void 0===n?ti:"function"==typeof n&&(ti=n,!0)}function ii(n,t){return void 0!==ei[n]&&(void 0===t?ei[n]:(ei[n]=t,"s"===n&&(ei.ss=t-1),!0))}function li(n,t){if(!this.isValid())return this.localeData().invalidDate();var e,r,a=!1,o=ei;return"object"==typeof n&&(t=n,n=!1),"boolean"==typeof n&&(a=n),"object"==typeof t&&(o=Object.assign({},ei,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ai(this,!a,o,e=this.localeData()),a&&(r=e.pastFuture(+this,r)),e.postformat(r)}var si=Math.abs;function ci(n){return(n>0)-(n<0)||+n}function ui(){if(!this.isValid())return this.localeData().invalidDate();var n,t,e,r,a,o,i,l,s=si(this._milliseconds)/1e3,c=si(this._days),u=si(this._months),d=this.asSeconds();return d?(n=dn(s/60),t=dn(n/60),s%=60,n%=60,e=dn(u/12),u%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",o=ci(this._months)!==ci(d)?"-":"",i=ci(this._days)!==ci(d)?"-":"",l=ci(this._milliseconds)!==ci(d)?"-":"",a+"P"+(e?o+e+"Y":"")+(u?o+u+"M":"")+(c?i+c+"D":"")+(t||n||s?"T":"")+(t?l+t+"H":"")+(n?l+n+"M":"")+(s?l+r+"S":"")):"P0D"}var di=lr.prototype;return di.isValid=or,di.abs=So,di.add=Co,di.subtract=To,di.as=Ro,di.asMilliseconds=Po,di.asSeconds=Mo,di.asMinutes=Fo,di.asHours=zo,di.asDays=jo,di.asWeeks=Bo,di.asMonths=Uo,di.asQuarters=Vo,di.asYears=Ho,di.valueOf=Lo,di._bubble=No,di.clone=Ko,di.get=Go,di.milliseconds=Yo,di.seconds=qo,di.minutes=Xo,di.hours=$o,di.days=Zo,di.weeks=ni,di.months=Jo,di.years=Qo,di.humanize=li,di.toISOString=ui,di.toString=ui,di.toJSON=ui,di.locale=la,di.localeData=ca,di.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ui),di.lang=sa,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Mn("x",Dn),Mn("X",In),Un("X",(function(n,t,e){e._d=new Date(1e3*parseFloat(n))})),Un("x",(function(n,t,e){e._d=new Date(pn(n))})),
|
|
500
500
|
//! moment.js
|
|
501
|
-
r.version="2.29.3",a($e),r.fn=co,r.min=nr,r.max=tr,r.now=er,r.utc=h,r.unix=uo,r.months=vo,r.isDate=d,r.locale=ge,r.invalid=v,r.duration=Nr,r.isMoment=E,r.weekdays=xo,r.parseZone=po,r.localeData=ye,r.isDuration=sr,r.monthsShort=yo,r.weekdaysMin=ko,r.defineLocale=be,r.updateLocale=ve,r.locales=xe,r.weekdaysShort=wo,r.normalizeUnits=an,r.relativeTimeRounding=oi,r.relativeTimeThreshold=ii,r.calendarFormat=Vr,r.prototype=co,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(z);var j=z.exports;const B="function"==typeof btoa,U="function"==typeof Buffer,V=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),H=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),K=((n=>{let t={};H.forEach(((n,e)=>t[n]=e))})(),String.fromCharCode.bind(String)),G=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),n=>n.replace(/=/g,"").replace(/[+\/]/g,(n=>"+"==n?"-":"_"))),W=n=>{let t,e,r,a,o="";const i=n.length%3;for(let i=0;i<n.length;){if((e=n.charCodeAt(i++))>255||(r=n.charCodeAt(i++))>255||(a=n.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=e<<16|r<<8|a,o+=H[t>>18&63]+H[t>>12&63]+H[t>>6&63]+H[63&t]}return i?o.slice(0,i-3)+"===".substring(i):o},Y=B?n=>btoa(n):U?n=>Buffer.from(n,"binary").toString("base64"):W,q=U?n=>Buffer.from(n).toString("base64"):n=>{let t=[];for(let e=0,r=n.length;e<r;e+=4096)t.push(K.apply(null,n.subarray(e,e+4096)));return Y(t.join(""))},X=n=>{if(n.length<2)return(t=n.charCodeAt(0))<128?n:t<2048?K(192|t>>>6)+K(128|63&t):K(224|t>>>12&15)+K(128|t>>>6&63)+K(128|63&t);var t=65536+1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320);return K(240|t>>>18&7)+K(128|t>>>12&63)+K(128|t>>>6&63)+K(128|63&t)},$=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Z=n=>n.replace($,X),J=U?n=>Buffer.from(n,"utf8").toString("base64"):V?n=>q(V.encode(n)):n=>Y(Z(n)),Q=(n,t=!1)=>t?G(J(n)):J(n),nn=Q;var tn;!function(n){n.default="YYYY-MM-DDTHH:mm:ss",n.params="YYYY-MM-DD HH:mm:ss",n.url="YYYYMMDDTHHmmss"}(tn||(tn={}));var en=function(){var n=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()},rn=function(n){var t=n;if("https:"===document.location.protocol)if(n.startsWith("http:"))t="/visProxy/"+(e=(n=n.replace("http://","")).substring(0,n.indexOf("/")))+"/play"+(r=n.substring(n.indexOf("/")));else if(n.startsWith("ws:")){var e=(n=n.replace("http://","")).substring(0,n.indexOf("/")),r=n.substring(n.indexOf("/"));t="wss://"+window.location.host+"/visProxy/"+e+"/play"+r}return t},an=function(n){return"".concat((n/Math.pow(1024,2)).toFixed(2),"MB")},on=function(n){var t=Math.floor(n/3600),e=Math.floor(n%3600/60),r=Math.floor(n%60);return"".concat(t>0?t+"小时":"").concat(e>0?e+"分":"").concat(r>0?r+"秒":"")},ln=function(n){var t=Math.floor(n/3600),e=Math.floor(n%3600/60),r=Math.floor(n%60);return"".concat(t>=10?t:"0"+t,":").concat(e>=10?e:"0"+e,":").concat(r>=10?r:"0"+r)},sn=function(n){return j(n).format(tn.default)+"Z"},cn=function(n,t,e){var r=T(n.split("?"),2),a=r[0],o=r[1],i=new URLSearchParams(o);return i.set("beginTime",j(t).format(tn.url)),i.set("endTime",j(e).format(tn.url)),"".concat(a,"?").concat(i.toString())},un=function(){function n(n){this.player=null,this.preSpeed=1;var t=n.url,e=n.container,r=n.live,a=void 0===r||r,o=n.type,i=n.startTime,l=n.endTime,s=function(n,t,e,r){var a=n,o="flv";return n.startsWith("ws://")&&(o="hk_ws",a=t?n:n.split("?")[0]),n.startsWith("rtsp://")&&(o="flv",a="/cloud/vic/convert/flv/live.flv?url=".concat(nn(t?n:cn(n,e,r)))),n.endsWith(".m3u8")&&(a=n,o="hls"),{url:rn(a),type:o}}(t,a,i,l);this.type=o||s.type,this.url=s.url,this.startTime=i,this.endTime=l;var c=document.createElement("video");if(c.className="vtx-player-video",c.muted=!0,this.video=c,"flv"===this.type&&I.isSupported()&&c&&(e.appendChild(c),this.player=I.createPlayer({type:"flv",isLive:a,url:this.url}),this.player.attachMediaElement(this.video),this.player.load()),"hls"===this.type&&M.isSupported()&&c&&(e.appendChild(c),this.player=new M,this.player.loadSource(this.url),this.player.attachMedia(this.video)),"hk_ws"===this.type){this.player=new JSPlugin({szId:e.id,szBasePath:"/vis-reborn/",iMaxSplit:1,iCurrentSplit:1});var u=document.getElementById("".concat(e.id,"_playVideo0"));this.video=u}}return n.prototype.play=function(){return"flv"===this.type?this.player.play():"hls"===this.type?this.video.play():"hk_ws"===this.type?this.player.JS_Play(this.url,{playURL:this.url,mode:0},1):Promise.resolve()},n.prototype.playBack=function(){return"hk_ws"===this.type?this.player.JS_Play(this.url,{playURL:this.url,mode:0},1,sn(this.startTime),sn(this.endTime)):this.play()},n.prototype.destroy=function(){"flv"===this.type&&(this.player.destroy(),this.player=null,this.video.remove());"hls"===this.type&&(this.player.destroy(),this.player=null,this.video.remove());"hk_ws"===this.type&&this.player.JS_Stop(1)},n.prototype.capture=function(n,t){void 0===n&&(n="视频截图"),void 0===t&&(t=!0);var e=n;if(t&&(e+="-".concat(j().format("YYYYMMDDHHmmss"))),"hk_ws"===this.type){var r=this.player;r&&r.JS_CapturePicture(1,e,"JPEG")}else dn(this.video,e)},n.prototype.resize=function(){"hk_ws"===this.type&&this.player.JS_Resize()},n.prototype.setVolume=function(n){"flv"===this.type&&(this.player.volume=n/100);("hls"===this.type&&(this.video.volume=n/100),"hk_ws"===this.type)&&this.player.JS_SetVolume(1,n)},n.prototype.setSpeed=function(n){if("hk_ws"===this.type){var t=this.player;this.preSpeed/n==2&&t.JS_Slow(1),this.preSpeed/n==4&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})),this.preSpeed/n==8&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})),this.preSpeed/n==16&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})),n/this.preSpeed==2&&t.JS_Fast(1),n/this.preSpeed==4&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})),n/this.preSpeed==8&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})),n/this.preSpeed==16&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})),this.preSpeed=n}else this.video.playbackRate=n},n.prototype.onTimeUpdate=function(n){var t=this;this.video.addEventListener("timeupdate",(function(){var e=t.video.currentTime;"hk_ws"===t.type&&t.seekTime&&(e+=t.seekTime.diff(t.startTime,"seconds")),n(e,"hk_ws"===t.type?t.preSpeed:t.video.playbackRate)}))},n.prototype.seekTo=function(n){var t;return S(this,void 0,void 0,(function(){var e,r;return _(this,(function(a){switch(a.label){case 0:return"hk_ws"!==this.type?[3,2]:(e=this.player,r=null===(t=j(this.startTime))||void 0===t?void 0:t.add(n,"seconds"),[4,e.JS_Seek(1,sn(r),sn(this.endTime))]);case 1:return a.sent(),this.seekTime=r,[3,3];case 2:return this.video.currentTime=n,[2,Promise.resolve()];case 3:return[2]}}))}))},n.prototype.pause=function(n){"hk_ws"===this.type?this.player.JS_Pause(1).then((function(){return n&&n()})):(this.video.pause(),n&&n())},n.prototype.resume=function(n){"hk_ws"===this.type?this.player.JS_Resume(1).then((function(){return n&&n()})):(this.video.play(),n&&n())},n.prototype.startTalk=function(n){return"hk_ws"===this.type?this.player.JS_StartTalk(n):Promise.reject()},n.prototype.stopTalk=function(){return"hk_ws"===this.type?this.player.JS_StopTalk():Promise.reject()},n}(),dn=function(n,t){var e=document.createElement("canvas");e.width=n.videoWidth,e.height=n.videoHeight;var r,a=e.getContext("2d");a&&(a.drawImage(n,0,0,e.width,e.height),e.toBlob((function(n){if(n){r=URL.createObjectURL(n);var e=document.createElement("a");e.href=r,e.download="".concat(t,".png"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(r)}})))};k(".vtx-live-player {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #2b3d51;\n border: 1px solid transparent;\n}\n.vtx-live-player .controls {\n position: absolute;\n bottom: 0;\n display: flex;\n align-items: center;\n width: 100%;\n height: 30px;\n padding: 0 12px;\n background-color: #131d27;\n opacity: 0;\n transition: opacity 0.5s;\n}\n.vtx-live-player .controls .right {\n margin-left: auto;\n}\n.vtx-live-player .controls .right > div {\n height: 24px;\n}\n.vtx-live-player:hover .controls {\n opacity: 1;\n}\n.vtx-live-player video {\n width: 100%;\n height: 100%;\n object-fit: fill;\n}\n.vtx-live-player .sub-wnd {\n width: 100% !important;\n height: 100% !important;\n background-color: #2b3d51 !important;\n border: 1px solid transparent !important;\n}\n.vtx-live-player .error-container {\n position: absolute;\n top: 50%;\n left: 50%;\n display: flex;\n flex-direction: column;\n align-items: center;\n transform: translate(-50%, -50%);\n}\n.vtx-live-player .error-container .text {\n margin: 20px 0;\n font-size: 14px;\n color: rgba(255, 255, 255, 0.65);\n}\n.vtx-live-player .loading-container {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n");var pn=function(n){return"function"==typeof n};function fn(n){"development"===process.env.NODE_ENV&&(pn(n)||console.error("useMemoizedFn expected parameter is a function, got "+typeof n));var t=o(n);t.current=i((function(){return n}),[n]);var e=o();return e.current||(e.current=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.current.apply(this,n)}),e.current}var hn,mn=(hn=l,function(n,t){var e=o(!1);hn((function(){return function(){e.current=!1}}),[]),hn((function(){if(e.current)return n();e.current=!0}),t)}),gn=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},bn=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(gn(arguments[t]));return n},vn=function(n,t){var e=t.manual,r=t.ready,a=void 0===r||r,i=t.defaultParams,l=void 0===i?[]:i,s=t.refreshDeps,c=void 0===s?[]:s,u=t.refreshDepsAction,d=o(!1);return d.current=!1,mn((function(){!e&&a&&(d.current=!0,n.run.apply(n,bn(l)))}),[a]),mn((function(){d.current||e||(d.current=!0,u?u():n.refresh())}),bn(c)),{onBefore:function(){if(!a)return{stopNow:!0}}}};function yn(n,t){if(n===t)return!0;for(var e=0;e<n.length;e++)if(!Object.is(n[e],t[e]))return!1;return!0}function xn(n,t){var e=o({deps:t,obj:void 0,initialized:!1}).current;return!1!==e.initialized&&yn(e.deps,t)||(e.deps=t,e.obj=n(),e.initialized=!0),e.obj}function wn(n){var t=o(n);return t.current=n,t}vn.onInit=function(n){var t=n.ready,e=void 0===t||t;return{loading:!n.manual&&e}};var kn=function(n){"development"===process.env.NODE_ENV&&(pn(n)||console.error("useUnmount expected parameter is a function, got "+typeof n));var t=wn(n);l((function(){return function(){t.current()}}),[])},En=function(){return En=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var a in t=arguments[e])Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},En.apply(this,arguments)},Sn=new Map,_n=new Map,Cn={},Tn=function(n,t){return Cn[n]||(Cn[n]=[]),Cn[n].push(t),function(){var e=Cn[n].indexOf(t);Cn[n].splice(e,1)}},On=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Nn=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(On(arguments[t]));return n},An=function(n,t){var e=t.cacheKey,r=t.cacheTime,a=void 0===r?3e5:r,i=t.staleTime,l=void 0===i?0:i,s=t.setCache,c=t.getCache,u=o(),d=o(),p=function(n,t){s?s(t):function(n,t,e){var r=Sn.get(n);(null==r?void 0:r.timer)&&clearTimeout(r.timer);var a=void 0;t>-1&&(a=setTimeout((function(){Sn.delete(n)}),t)),Sn.set(n,En(En({},e),{timer:a}))}(n,a,t),function(n,t){Cn[n]&&Cn[n].forEach((function(n){return n(t)}))}(n,t.data)},f=function(n,t){return void 0===t&&(t=[]),c?c(t):function(n){return Sn.get(n)}(n)};return xn((function(){if(e){var t=f(e);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===l||(new Date).getTime()-t.time<=l)&&(n.state.loading=!1)),u.current=Tn(e,(function(t){n.setState({data:t})}))}}),[]),kn((function(){var n;null===(n=u.current)||void 0===n||n.call(u)})),e?{onBefore:function(n){var t=f(e,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===l||(new Date).getTime()-t.time<=l?{loading:!1,data:null==t?void 0:t.data,returnNow:!0}:{data:null==t?void 0:t.data}:{}},onRequest:function(n,t){var r=function(n){return _n.get(n)}(e);return r&&r!==d.current||(r=n.apply(void 0,Nn(t)),d.current=r,function(n,t){_n.set(n,t),t.then((function(t){return _n.delete(n),t})).catch((function(){_n.delete(n)}))}(e,r)),{servicePromise:r}},onSuccess:function(t,r){var a;e&&(null===(a=u.current)||void 0===a||a.call(u),p(e,{data:t,params:r,time:(new Date).getTime()}),u.current=Tn(e,(function(t){n.setState({data:t})})))},onMutate:function(t){var r;e&&(null===(r=u.current)||void 0===r||r.call(u),p(e,{data:t,params:n.state.params,time:(new Date).getTime()}),u.current=Tn(e,(function(t){n.setState({data:t})})))}}:{}};var Dn=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},Rn="object"==typeof N&&N&&N.Object===Object&&N,Ln=Rn,In="object"==typeof self&&self&&self.Object===Object&&self,Pn=Ln||In||Function("return this")(),Mn=Pn,Fn=function(){return Mn.Date.now()},zn=/\s/;var jn=function(n){for(var t=n.length;t--&&zn.test(n.charAt(t)););return t},Bn=jn,Un=/^\s+/;var Vn=function(n){return n?n.slice(0,Bn(n)+1).replace(Un,""):n},Hn=Pn.Symbol,Kn=Hn,Gn=Object.prototype,Wn=Gn.hasOwnProperty,Yn=Gn.toString,qn=Kn?Kn.toStringTag:void 0;var Xn=function(n){var t=Wn.call(n,qn),e=n[qn];try{n[qn]=void 0;var r=!0}catch(n){}var a=Yn.call(n);return r&&(t?n[qn]=e:delete n[qn]),a},$n=Object.prototype.toString;var Zn=Xn,Jn=function(n){return $n.call(n)},Qn=Hn?Hn.toStringTag:void 0;var nt=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Qn&&Qn in Object(n)?Zn(n):Jn(n)};var tt=function(n){return null!=n&&"object"==typeof n},et=nt,rt=tt;var at=function(n){return"symbol"==typeof n||rt(n)&&"[object Symbol]"==et(n)},ot=Vn,it=Dn,lt=at,st=/^[-+]0x[0-9a-f]+$/i,ct=/^0b[01]+$/i,ut=/^0o[0-7]+$/i,dt=parseInt;var pt=function(n){if("number"==typeof n)return n;if(lt(n))return NaN;if(it(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=it(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=ot(n);var e=ct.test(n);return e||ut.test(n)?dt(n.slice(2),e?2:8):st.test(n)?NaN:+n},ft=Dn,ht=Fn,mt=pt,gt=Math.max,bt=Math.min;var vt=function(n,t,e){var r,a,o,i,l,s,c=0,u=!1,d=!1,p=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function f(t){var e=r,o=a;return r=a=void 0,c=t,i=n.apply(o,e)}function h(n){return c=n,l=setTimeout(g,t),u?f(n):i}function m(n){var e=n-s;return void 0===s||e>=t||e<0||d&&n-c>=o}function g(){var n=ht();if(m(n))return b(n);l=setTimeout(g,function(n){var e=t-(n-s);return d?bt(e,o-(n-c)):e}(n))}function b(n){return l=void 0,p&&r?f(n):(r=a=void 0,i)}function v(){var n=ht(),e=m(n);if(r=arguments,a=this,s=n,e){if(void 0===l)return h(s);if(d)return clearTimeout(l),l=setTimeout(g,t),f(s)}return void 0===l&&(l=setTimeout(g,t)),i}return t=mt(t)||0,ft(e)&&(u=!!e.leading,o=(d="maxWait"in e)?gt(mt(e.maxWait)||0,t):o,p="trailing"in e?!!e.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=a=l=void 0},v.flush=function(){return void 0===l?i:b(ht())},v},yt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},xt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(yt(arguments[t]));return n},wt=function(n,t){var e=t.debounceWait,r=t.debounceLeading,a=t.debounceTrailing,s=t.debounceMaxWait,c=o(),u=i((function(){var n={};return void 0!==r&&(n.leading=r),void 0!==a&&(n.trailing=a),void 0!==s&&(n.maxWait=s),n}),[r,a,s]);return l((function(){if(e){var t=n.runAsync.bind(n);return c.current=vt((function(n){n()}),e,u),n.runAsync=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new Promise((function(e,r){var a;null===(a=c.current)||void 0===a||a.call(c,(function(){t.apply(void 0,xt(n)).then(e).catch(r)}))}))},function(){var e;null===(e=c.current)||void 0===e||e.cancel(),n.runAsync=t}}}),[e,u]),e?{onCancel:function(){var n;null===(n=c.current)||void 0===n||n.cancel()}}:{}},kt=function(n,t){var e=t.loadingDelay,r=o();if(!e)return{};var a=function(){r.current&&clearTimeout(r.current)};return{onBefore:function(){return a(),r.current=setTimeout((function(){n.setState({loading:!0})}),e),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}};function Et(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function St(){return!Et()||"hidden"!==document.visibilityState}var _t=[];if(Et()){window.addEventListener("visibilitychange",(function(){if(St())for(var n=0;n<_t.length;n++){(0,_t[n])()}}),!1)}var Ct=function(n,t){var e=t.pollingInterval,r=t.pollingWhenHidden,a=void 0===r||r,i=o(),l=o(),s=function(){var n;i.current&&clearTimeout(i.current),null===(n=l.current)||void 0===n||n.call(l)};return mn((function(){e||s()}),[e]),e?{onBefore:function(){s()},onFinally:function(){var t;a||St()?i.current=setTimeout((function(){n.refresh()}),e):l.current=(t=function(){n.refresh()},_t.push(t),function(){var n=_t.indexOf(t);_t.splice(n,1)})},onCancel:function(){s()}}:{}},Tt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Ot=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Tt(arguments[t]));return n};var Nt=[];if(Et()){var At=function(){if(St()&&(!Et()||void 0===navigator.onLine||navigator.onLine))for(var n=0;n<Nt.length;n++){(0,Nt[n])()}};window.addEventListener("visibilitychange",At,!1),window.addEventListener("focus",At,!1)}var Dt=function(n,t){var e=t.refreshOnWindowFocus,r=t.focusTimespan,a=void 0===r?5e3:r,i=o(),s=function(){var n;null===(n=i.current)||void 0===n||n.call(i)};return l((function(){if(e){var t=(o=n.refresh.bind(n),l=a,c=!1,function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];c||(c=!0,o.apply(void 0,Ot(n)),setTimeout((function(){c=!1}),l))});i.current=(r=function(){t()},Nt.push(r),function(){var n=Nt.indexOf(r);Nt.splice(n,1)})}var r,o,l,c;return function(){s()}}),[e,a]),kn((function(){s()})),{}},Rt=function(n,t){var e=t.retryInterval,r=t.retryCount,a=o(),i=o(0),l=o(!1);return r?{onBefore:function(){l.current||(i.current=0),l.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){i.current=0},onError:function(){if(i.current+=1,-1===r||i.current<=r){var t=null!=e?e:Math.min(1e3*Math.pow(2,i.current),3e4);a.current=setTimeout((function(){l.current=!0,n.refresh()}),t)}else i.current=0},onCancel:function(){i.current=0,a.current&&clearTimeout(a.current)}}:{}},Lt=vt,It=Dn;var Pt=function(n,t,e){var r=!0,a=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return It(e)&&(r="leading"in e?!!e.leading:r,a="trailing"in e?!!e.trailing:a),Lt(n,t,{leading:r,maxWait:t,trailing:a})},Mt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Ft=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Mt(arguments[t]));return n},zt=function(n,t){var e=t.throttleWait,r=t.throttleLeading,a=t.throttleTrailing,i=o(),s={};return void 0!==r&&(s.leading=r),void 0!==a&&(s.trailing=a),l((function(){if(e){var t=n.runAsync.bind(n);return i.current=Pt((function(n){n()}),e,s),n.runAsync=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new Promise((function(e,r){var a;null===(a=i.current)||void 0===a||a.call(i,(function(){t.apply(void 0,Ft(n)).then(e).catch(r)}))}))},function(){var e;n.runAsync=t,null===(e=i.current)||void 0===e||e.cancel()}}}),[e,r,a]),e?{onCancel:function(){var n;null===(n=i.current)||void 0===n||n.cancel()}}:{}},jt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Bt=function(){return Bt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var a in t=arguments[e])Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},Bt.apply(this,arguments)},Ut=function(n,t,e,r){return new(e||(e=Promise))((function(a,o){function i(n){try{s(r.next(n))}catch(n){o(n)}}function l(n){try{s(r.throw(n))}catch(n){o(n)}}function s(n){var t;n.done?a(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(i,l)}s((r=r.apply(n,t||[])).next())}))},Vt=function(n,t){var e,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(n,i)}catch(n){o=[6,n],r=0}finally{e=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},Ht=function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(n);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(e[r[a]]=n[r[a]])}return e},Kt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Gt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Kt(arguments[t]));return n},Wt=function(){function n(n,t,e,r){void 0===r&&(r={}),this.serviceRef=n,this.options=t,this.subscribe=e,this.initState=r,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Bt(Bt(Bt({},this.state),{loading:!t.manual}),r)}return n.prototype.setState=function(n){void 0===n&&(n={}),this.state=Bt(Bt({},this.state),n),this.subscribe()},n.prototype.runPluginHandler=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];var r=this.pluginImpls.map((function(e){var r;return null===(r=e[n])||void 0===r?void 0:r.call.apply(r,Gt([e],t))})).filter(Boolean);return Object.assign.apply(Object,Gt([{}],r))},n.prototype.runAsync=function(){for(var n,t,e,r,a,o,i,l,s,c,u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return Ut(this,void 0,void 0,(function(){var d,p,f,h,m,g,b,v,y,x,w;return Vt(this,(function(k){switch(k.label){case 0:if(this.count+=1,d=this.count,p=this.runPluginHandler("onBefore",u),f=p.stopNow,h=void 0!==f&&f,m=p.returnNow,g=void 0!==m&&m,b=Ht(p,["stopNow","returnNow"]),h)return[2,new Promise((function(){}))];if(this.setState(Bt({loading:!0,params:u},b)),g)return[2,Promise.resolve(b.data)];null===(t=(n=this.options).onBefore)||void 0===t||t.call(n,u),k.label=1;case 1:return k.trys.push([1,3,,4]),(v=this.runPluginHandler("onRequest",this.serviceRef.current,u).servicePromise)||(v=(w=this.serviceRef).current.apply(w,Gt(u))),[4,v];case 2:return y=k.sent(),d!==this.count?[2,new Promise((function(){}))]:(this.setState({data:y,error:void 0,loading:!1}),null===(r=(e=this.options).onSuccess)||void 0===r||r.call(e,y,u),this.runPluginHandler("onSuccess",y,u),null===(o=(a=this.options).onFinally)||void 0===o||o.call(a,u,y,void 0),d===this.count&&this.runPluginHandler("onFinally",u,y,void 0),[2,y]);case 3:if(x=k.sent(),d!==this.count)return[2,new Promise((function(){}))];throw this.setState({error:x,loading:!1}),null===(l=(i=this.options).onError)||void 0===l||l.call(i,x,u),this.runPluginHandler("onError",x,u),null===(c=(s=this.options).onFinally)||void 0===c||c.call(s,u,void 0,x),d===this.count&&this.runPluginHandler("onFinally",u,void 0,x),x;case 4:return[2]}}))}))},n.prototype.run=function(){for(var n=this,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.runAsync.apply(this,Gt(t)).catch((function(t){n.options.onError||console.error(t)}))},n.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},n.prototype.refresh=function(){this.run.apply(this,Gt(this.state.params||[]))},n.prototype.refreshAsync=function(){return this.runAsync.apply(this,Gt(this.state.params||[]))},n.prototype.mutate=function(n){var t;t=pn(n)?n(this.state.data):n,this.runPluginHandler("onMutate",t),this.setState({data:t})},n}(),Yt=function(){return Yt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var a in t=arguments[e])Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},Yt.apply(this,arguments)},qt=function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(n);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(e[r[a]]=n[r[a]])}return e},Xt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},$t=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Xt(arguments[t]));return n};function Zt(n,t,e){void 0===t&&(t={}),void 0===e&&(e=[]);var r,a,o=t.manual,i=void 0!==o&&o,u=qt(t,["manual"]),d=Yt({manual:i},u),p=wn(n),f=(r=jt(c({}),2)[1],s((function(){return r({})}),[])),h=xn((function(){var n=e.map((function(n){var t;return null===(t=null==n?void 0:n.onInit)||void 0===t?void 0:t.call(n,d)})).filter(Boolean);return new Wt(p,d,f,Object.assign.apply(Object,$t([{}],n)))}),[]);return h.options=d,h.pluginImpls=e.map((function(n){return n(h,d)})),a=function(){if(!i){var n=h.state.params||t.defaultParams||[];h.run.apply(h,$t(n))}},"development"===process.env.NODE_ENV&&(pn(a)||console.error('useMount: parameter `fn` expected to be a function, but got "'+typeof a+'".')),l((function(){null==a||a()}),[]),kn((function(){h.cancel()})),{loading:h.state.loading,data:h.state.data,error:h.state.error,params:h.state.params||[],cancel:fn(h.cancel.bind(h)),refresh:fn(h.refresh.bind(h)),refreshAsync:fn(h.refreshAsync.bind(h)),run:fn(h.run.bind(h)),runAsync:fn(h.runAsync.bind(h)),mutate:fn(h.mutate.bind(h))}}var Jt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Qt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Jt(arguments[t]));return n};function ne(n,t,e){return Zt(n,t,Qt(e||[],[wt,kt,Ct,Dt,zt,vn,An,Rt]))}var te=!("undefined"==typeof window||!window.document||!window.document.createElement);function ee(n,t){if(te)return n?pn(n)?n():"current"in n?n.current:n:t}var re,ae=(re=l,function(n,t,e){var r=o(!1),a=o([]),i=o([]),l=o();re((function(){var o,s=(Array.isArray(e)?e:[e]).map((function(n){return ee(n)}));if(!r.current)return r.current=!0,a.current=s,i.current=t,void(l.current=n());s.length===a.current.length&&yn(s,a.current)&&yn(t,i.current)||(null===(o=l.current)||void 0===o||o.call(l),a.current=s,i.current=t,l.current=n())})),kn((function(){var n;null===(n=l.current)||void 0===n||n.call(l),r.current=!1}))});
|
|
501
|
+
r.version="2.29.3",a($e),r.fn=co,r.min=nr,r.max=tr,r.now=er,r.utc=h,r.unix=uo,r.months=vo,r.isDate=d,r.locale=ge,r.invalid=v,r.duration=Nr,r.isMoment=E,r.weekdays=xo,r.parseZone=po,r.localeData=ye,r.isDuration=sr,r.monthsShort=yo,r.weekdaysMin=ko,r.defineLocale=be,r.updateLocale=ve,r.locales=xe,r.weekdaysShort=wo,r.normalizeUnits=an,r.relativeTimeRounding=oi,r.relativeTimeThreshold=ii,r.calendarFormat=Vr,r.prototype=co,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(z);var j=z.exports;const B="function"==typeof btoa,U="function"==typeof Buffer,V=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),H=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),K=((n=>{let t={};H.forEach(((n,e)=>t[n]=e))})(),String.fromCharCode.bind(String)),G=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),n=>n.replace(/=/g,"").replace(/[+\/]/g,(n=>"+"==n?"-":"_"))),W=n=>{let t,e,r,a,o="";const i=n.length%3;for(let i=0;i<n.length;){if((e=n.charCodeAt(i++))>255||(r=n.charCodeAt(i++))>255||(a=n.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=e<<16|r<<8|a,o+=H[t>>18&63]+H[t>>12&63]+H[t>>6&63]+H[63&t]}return i?o.slice(0,i-3)+"===".substring(i):o},Y=B?n=>btoa(n):U?n=>Buffer.from(n,"binary").toString("base64"):W,q=U?n=>Buffer.from(n).toString("base64"):n=>{let t=[];for(let e=0,r=n.length;e<r;e+=4096)t.push(K.apply(null,n.subarray(e,e+4096)));return Y(t.join(""))},X=n=>{if(n.length<2)return(t=n.charCodeAt(0))<128?n:t<2048?K(192|t>>>6)+K(128|63&t):K(224|t>>>12&15)+K(128|t>>>6&63)+K(128|63&t);var t=65536+1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320);return K(240|t>>>18&7)+K(128|t>>>12&63)+K(128|t>>>6&63)+K(128|63&t)},$=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Z=n=>n.replace($,X),J=U?n=>Buffer.from(n,"utf8").toString("base64"):V?n=>q(V.encode(n)):n=>Y(Z(n)),Q=(n,t=!1)=>t?G(J(n)):J(n),nn=Q;var tn;!function(n){n.default="YYYY-MM-DDTHH:mm:ss",n.params="YYYY-MM-DD HH:mm:ss",n.url="YYYYMMDDTHHmmss"}(tn||(tn={}));var en=function(){var n=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()},rn=function(n){var t=n;if("https:"===document.location.protocol)if(n.startsWith("http:"))t="/visProxy/"+(e=(n=n.replace("http://","")).substring(0,n.indexOf("/")))+"/play"+(r=n.substring(n.indexOf("/")));else if(n.startsWith("ws:")){var e=(n=n.replace("http://","")).substring(0,n.indexOf("/")),r=n.substring(n.indexOf("/"));t="wss://"+window.location.host+"/visProxy/"+e+"/play"+r}return t},an=function(n){return"".concat((n/Math.pow(1024,2)).toFixed(2),"MB")},on=function(n){var t=Math.floor(n/3600),e=Math.floor(n%3600/60),r=Math.floor(n%60);return"".concat(t>0?t+"小时":"").concat(e>0?e+"分":"").concat(r>0?r+"秒":"")},ln=function(n){var t=Math.floor(n/3600),e=Math.floor(n%3600/60),r=Math.floor(n%60);return"".concat(t>=10?t:"0"+t,":").concat(e>=10?e:"0"+e,":").concat(r>=10?r:"0"+r)},sn=function(n){return j(n).format(tn.default)+"Z"},cn=function(n,t,e){var r=T(n.split("?"),2),a=r[0],o=r[1],i=new URLSearchParams(o);return i.set("beginTime",j(t).format(tn.url)),i.set("endTime",j(e).format(tn.url)),"".concat(a,"?").concat(i.toString())},un=function(){function n(n){this.player=null,this.preSpeed=1;var t=n.url,e=n.container,r=n.live,a=void 0===r||r,o=n.type,i=n.startTime,l=n.endTime,s=function(n,t,e,r){var a=n,o="flv";return n.startsWith("ws://")&&(o="hk_ws",a=t?n:n.split("?")[0]),n.startsWith("rtsp://")&&(o="flv",a="/cloud/vic/convert/flv/live.flv?url=".concat(nn(t?n:cn(n,e,r)))),n.endsWith(".m3u8")&&(a=n,o="hls"),{url:rn(a),type:o}}(t,a,i,l);this.type=o||s.type,this.url=s.url,this.startTime=i,this.endTime=l;var c=document.createElement("video");if(c.className="vtx-player-video",c.muted=!0,this.video=c,"flv"===this.type&&I.isSupported()&&c&&(e.appendChild(c),this.player=I.createPlayer({type:"flv",isLive:a,url:this.url}),this.player.attachMediaElement(this.video),this.player.load()),"hls"===this.type&&M.isSupported()&&c&&(e.appendChild(c),this.player=new M,this.player.loadSource(this.url),this.player.attachMedia(this.video)),"hk_ws"===this.type){this.player=new JSPlugin({szId:e.id,szBasePath:"./resources/",iMaxSplit:1,iCurrentSplit:1});var u=document.getElementById("".concat(e.id,"_playVideo0"));this.video=u}}return n.prototype.play=function(){return"flv"===this.type?this.player.play():"hls"===this.type?this.video.play():"hk_ws"===this.type?this.player.JS_Play(this.url,{playURL:this.url,mode:0},1):Promise.resolve()},n.prototype.playBack=function(){return"hk_ws"===this.type?this.player.JS_Play(this.url,{playURL:this.url,mode:0},1,sn(this.startTime),sn(this.endTime)):this.play()},n.prototype.destroy=function(){"flv"===this.type&&(this.player.destroy(),this.player=null,this.video.remove());"hls"===this.type&&(this.player.destroy(),this.player=null,this.video.remove());"hk_ws"===this.type&&this.player.JS_Stop(1)},n.prototype.capture=function(n,t){void 0===n&&(n="视频截图"),void 0===t&&(t=!0);var e=n;if(t&&(e+="-".concat(j().format("YYYYMMDDHHmmss"))),"hk_ws"===this.type){var r=this.player;r&&r.JS_CapturePicture(1,e,"JPEG")}else dn(this.video,e)},n.prototype.resize=function(){"hk_ws"===this.type&&this.player.JS_Resize()},n.prototype.setVolume=function(n){"flv"===this.type&&(this.player.volume=n/100);("hls"===this.type&&(this.video.volume=n/100),"hk_ws"===this.type)&&this.player.JS_SetVolume(1,n)},n.prototype.setSpeed=function(n){if("hk_ws"===this.type){var t=this.player;this.preSpeed/n==2&&t.JS_Slow(1),this.preSpeed/n==4&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})),this.preSpeed/n==8&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})),this.preSpeed/n==16&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})),n/this.preSpeed==2&&t.JS_Fast(1),n/this.preSpeed==4&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})),n/this.preSpeed==8&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})),n/this.preSpeed==16&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})),this.preSpeed=n}else this.video.playbackRate=n},n.prototype.onTimeUpdate=function(n){var t=this;this.video.addEventListener("timeupdate",(function(){var e=t.video.currentTime;"hk_ws"===t.type&&t.seekTime&&(e+=t.seekTime.diff(t.startTime,"seconds")),n(e,"hk_ws"===t.type?t.preSpeed:t.video.playbackRate)}))},n.prototype.seekTo=function(n){var t;return S(this,void 0,void 0,(function(){var e,r;return _(this,(function(a){switch(a.label){case 0:return"hk_ws"!==this.type?[3,2]:(e=this.player,r=null===(t=j(this.startTime))||void 0===t?void 0:t.add(n,"seconds"),[4,e.JS_Seek(1,sn(r),sn(this.endTime))]);case 1:return a.sent(),this.seekTime=r,[3,3];case 2:return this.video.currentTime=n,[2,Promise.resolve()];case 3:return[2]}}))}))},n.prototype.pause=function(n){"hk_ws"===this.type?this.player.JS_Pause(1).then((function(){return n&&n()})):(this.video.pause(),n&&n())},n.prototype.resume=function(n){"hk_ws"===this.type?this.player.JS_Resume(1).then((function(){return n&&n()})):(this.video.play(),n&&n())},n.prototype.startTalk=function(n){return"hk_ws"===this.type?this.player.JS_StartTalk(n):Promise.reject()},n.prototype.stopTalk=function(){return"hk_ws"===this.type?this.player.JS_StopTalk():Promise.reject()},n}(),dn=function(n,t){var e=document.createElement("canvas");e.width=n.videoWidth,e.height=n.videoHeight;var r,a=e.getContext("2d");a&&(a.drawImage(n,0,0,e.width,e.height),e.toBlob((function(n){if(n){r=URL.createObjectURL(n);var e=document.createElement("a");e.href=r,e.download="".concat(t,".png"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(r)}})))};k(".vtx-live-player {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #2b3d51;\n border: 1px solid transparent;\n}\n.vtx-live-player .controls {\n position: absolute;\n bottom: 0;\n display: flex;\n align-items: center;\n width: 100%;\n height: 30px;\n padding: 0 12px;\n background-color: #131d27;\n opacity: 0;\n transition: opacity 0.5s;\n}\n.vtx-live-player .controls .right {\n margin-left: auto;\n}\n.vtx-live-player .controls .right > div {\n height: 24px;\n}\n.vtx-live-player:hover .controls {\n opacity: 1;\n}\n.vtx-live-player video {\n width: 100%;\n height: 100%;\n object-fit: fill;\n}\n.vtx-live-player .sub-wnd {\n width: 100% !important;\n height: 100% !important;\n background-color: #2b3d51 !important;\n border: 1px solid transparent !important;\n}\n.vtx-live-player .error-container {\n position: absolute;\n top: 50%;\n left: 50%;\n display: flex;\n flex-direction: column;\n align-items: center;\n transform: translate(-50%, -50%);\n}\n.vtx-live-player .error-container .text {\n margin: 20px 0;\n font-size: 14px;\n color: rgba(255, 255, 255, 0.65);\n}\n.vtx-live-player .loading-container {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n");var pn=function(n){return"function"==typeof n};function fn(n){"development"===process.env.NODE_ENV&&(pn(n)||console.error("useMemoizedFn expected parameter is a function, got "+typeof n));var t=o(n);t.current=i((function(){return n}),[n]);var e=o();return e.current||(e.current=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.current.apply(this,n)}),e.current}var hn,mn=(hn=l,function(n,t){var e=o(!1);hn((function(){return function(){e.current=!1}}),[]),hn((function(){if(e.current)return n();e.current=!0}),t)}),gn=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},bn=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(gn(arguments[t]));return n},vn=function(n,t){var e=t.manual,r=t.ready,a=void 0===r||r,i=t.defaultParams,l=void 0===i?[]:i,s=t.refreshDeps,c=void 0===s?[]:s,u=t.refreshDepsAction,d=o(!1);return d.current=!1,mn((function(){!e&&a&&(d.current=!0,n.run.apply(n,bn(l)))}),[a]),mn((function(){d.current||e||(d.current=!0,u?u():n.refresh())}),bn(c)),{onBefore:function(){if(!a)return{stopNow:!0}}}};function yn(n,t){if(n===t)return!0;for(var e=0;e<n.length;e++)if(!Object.is(n[e],t[e]))return!1;return!0}function xn(n,t){var e=o({deps:t,obj:void 0,initialized:!1}).current;return!1!==e.initialized&&yn(e.deps,t)||(e.deps=t,e.obj=n(),e.initialized=!0),e.obj}function wn(n){var t=o(n);return t.current=n,t}vn.onInit=function(n){var t=n.ready,e=void 0===t||t;return{loading:!n.manual&&e}};var kn=function(n){"development"===process.env.NODE_ENV&&(pn(n)||console.error("useUnmount expected parameter is a function, got "+typeof n));var t=wn(n);l((function(){return function(){t.current()}}),[])},En=function(){return En=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var a in t=arguments[e])Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},En.apply(this,arguments)},Sn=new Map,_n=new Map,Cn={},Tn=function(n,t){return Cn[n]||(Cn[n]=[]),Cn[n].push(t),function(){var e=Cn[n].indexOf(t);Cn[n].splice(e,1)}},On=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Nn=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(On(arguments[t]));return n},An=function(n,t){var e=t.cacheKey,r=t.cacheTime,a=void 0===r?3e5:r,i=t.staleTime,l=void 0===i?0:i,s=t.setCache,c=t.getCache,u=o(),d=o(),p=function(n,t){s?s(t):function(n,t,e){var r=Sn.get(n);(null==r?void 0:r.timer)&&clearTimeout(r.timer);var a=void 0;t>-1&&(a=setTimeout((function(){Sn.delete(n)}),t)),Sn.set(n,En(En({},e),{timer:a}))}(n,a,t),function(n,t){Cn[n]&&Cn[n].forEach((function(n){return n(t)}))}(n,t.data)},f=function(n,t){return void 0===t&&(t=[]),c?c(t):function(n){return Sn.get(n)}(n)};return xn((function(){if(e){var t=f(e);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===l||(new Date).getTime()-t.time<=l)&&(n.state.loading=!1)),u.current=Tn(e,(function(t){n.setState({data:t})}))}}),[]),kn((function(){var n;null===(n=u.current)||void 0===n||n.call(u)})),e?{onBefore:function(n){var t=f(e,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===l||(new Date).getTime()-t.time<=l?{loading:!1,data:null==t?void 0:t.data,returnNow:!0}:{data:null==t?void 0:t.data}:{}},onRequest:function(n,t){var r=function(n){return _n.get(n)}(e);return r&&r!==d.current||(r=n.apply(void 0,Nn(t)),d.current=r,function(n,t){_n.set(n,t),t.then((function(t){return _n.delete(n),t})).catch((function(){_n.delete(n)}))}(e,r)),{servicePromise:r}},onSuccess:function(t,r){var a;e&&(null===(a=u.current)||void 0===a||a.call(u),p(e,{data:t,params:r,time:(new Date).getTime()}),u.current=Tn(e,(function(t){n.setState({data:t})})))},onMutate:function(t){var r;e&&(null===(r=u.current)||void 0===r||r.call(u),p(e,{data:t,params:n.state.params,time:(new Date).getTime()}),u.current=Tn(e,(function(t){n.setState({data:t})})))}}:{}};var Dn=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},Rn="object"==typeof N&&N&&N.Object===Object&&N,Ln=Rn,In="object"==typeof self&&self&&self.Object===Object&&self,Pn=Ln||In||Function("return this")(),Mn=Pn,Fn=function(){return Mn.Date.now()},zn=/\s/;var jn=function(n){for(var t=n.length;t--&&zn.test(n.charAt(t)););return t},Bn=jn,Un=/^\s+/;var Vn=function(n){return n?n.slice(0,Bn(n)+1).replace(Un,""):n},Hn=Pn.Symbol,Kn=Hn,Gn=Object.prototype,Wn=Gn.hasOwnProperty,Yn=Gn.toString,qn=Kn?Kn.toStringTag:void 0;var Xn=function(n){var t=Wn.call(n,qn),e=n[qn];try{n[qn]=void 0;var r=!0}catch(n){}var a=Yn.call(n);return r&&(t?n[qn]=e:delete n[qn]),a},$n=Object.prototype.toString;var Zn=Xn,Jn=function(n){return $n.call(n)},Qn=Hn?Hn.toStringTag:void 0;var nt=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Qn&&Qn in Object(n)?Zn(n):Jn(n)};var tt=function(n){return null!=n&&"object"==typeof n},et=nt,rt=tt;var at=function(n){return"symbol"==typeof n||rt(n)&&"[object Symbol]"==et(n)},ot=Vn,it=Dn,lt=at,st=/^[-+]0x[0-9a-f]+$/i,ct=/^0b[01]+$/i,ut=/^0o[0-7]+$/i,dt=parseInt;var pt=function(n){if("number"==typeof n)return n;if(lt(n))return NaN;if(it(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=it(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=ot(n);var e=ct.test(n);return e||ut.test(n)?dt(n.slice(2),e?2:8):st.test(n)?NaN:+n},ft=Dn,ht=Fn,mt=pt,gt=Math.max,bt=Math.min;var vt=function(n,t,e){var r,a,o,i,l,s,c=0,u=!1,d=!1,p=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function f(t){var e=r,o=a;return r=a=void 0,c=t,i=n.apply(o,e)}function h(n){return c=n,l=setTimeout(g,t),u?f(n):i}function m(n){var e=n-s;return void 0===s||e>=t||e<0||d&&n-c>=o}function g(){var n=ht();if(m(n))return b(n);l=setTimeout(g,function(n){var e=t-(n-s);return d?bt(e,o-(n-c)):e}(n))}function b(n){return l=void 0,p&&r?f(n):(r=a=void 0,i)}function v(){var n=ht(),e=m(n);if(r=arguments,a=this,s=n,e){if(void 0===l)return h(s);if(d)return clearTimeout(l),l=setTimeout(g,t),f(s)}return void 0===l&&(l=setTimeout(g,t)),i}return t=mt(t)||0,ft(e)&&(u=!!e.leading,o=(d="maxWait"in e)?gt(mt(e.maxWait)||0,t):o,p="trailing"in e?!!e.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=a=l=void 0},v.flush=function(){return void 0===l?i:b(ht())},v},yt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},xt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(yt(arguments[t]));return n},wt=function(n,t){var e=t.debounceWait,r=t.debounceLeading,a=t.debounceTrailing,s=t.debounceMaxWait,c=o(),u=i((function(){var n={};return void 0!==r&&(n.leading=r),void 0!==a&&(n.trailing=a),void 0!==s&&(n.maxWait=s),n}),[r,a,s]);return l((function(){if(e){var t=n.runAsync.bind(n);return c.current=vt((function(n){n()}),e,u),n.runAsync=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new Promise((function(e,r){var a;null===(a=c.current)||void 0===a||a.call(c,(function(){t.apply(void 0,xt(n)).then(e).catch(r)}))}))},function(){var e;null===(e=c.current)||void 0===e||e.cancel(),n.runAsync=t}}}),[e,u]),e?{onCancel:function(){var n;null===(n=c.current)||void 0===n||n.cancel()}}:{}},kt=function(n,t){var e=t.loadingDelay,r=o();if(!e)return{};var a=function(){r.current&&clearTimeout(r.current)};return{onBefore:function(){return a(),r.current=setTimeout((function(){n.setState({loading:!0})}),e),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}};function Et(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function St(){return!Et()||"hidden"!==document.visibilityState}var _t=[];if(Et()){window.addEventListener("visibilitychange",(function(){if(St())for(var n=0;n<_t.length;n++){(0,_t[n])()}}),!1)}var Ct=function(n,t){var e=t.pollingInterval,r=t.pollingWhenHidden,a=void 0===r||r,i=o(),l=o(),s=function(){var n;i.current&&clearTimeout(i.current),null===(n=l.current)||void 0===n||n.call(l)};return mn((function(){e||s()}),[e]),e?{onBefore:function(){s()},onFinally:function(){var t;a||St()?i.current=setTimeout((function(){n.refresh()}),e):l.current=(t=function(){n.refresh()},_t.push(t),function(){var n=_t.indexOf(t);_t.splice(n,1)})},onCancel:function(){s()}}:{}},Tt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Ot=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Tt(arguments[t]));return n};var Nt=[];if(Et()){var At=function(){if(St()&&(!Et()||void 0===navigator.onLine||navigator.onLine))for(var n=0;n<Nt.length;n++){(0,Nt[n])()}};window.addEventListener("visibilitychange",At,!1),window.addEventListener("focus",At,!1)}var Dt=function(n,t){var e=t.refreshOnWindowFocus,r=t.focusTimespan,a=void 0===r?5e3:r,i=o(),s=function(){var n;null===(n=i.current)||void 0===n||n.call(i)};return l((function(){if(e){var t=(o=n.refresh.bind(n),l=a,c=!1,function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];c||(c=!0,o.apply(void 0,Ot(n)),setTimeout((function(){c=!1}),l))});i.current=(r=function(){t()},Nt.push(r),function(){var n=Nt.indexOf(r);Nt.splice(n,1)})}var r,o,l,c;return function(){s()}}),[e,a]),kn((function(){s()})),{}},Rt=function(n,t){var e=t.retryInterval,r=t.retryCount,a=o(),i=o(0),l=o(!1);return r?{onBefore:function(){l.current||(i.current=0),l.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){i.current=0},onError:function(){if(i.current+=1,-1===r||i.current<=r){var t=null!=e?e:Math.min(1e3*Math.pow(2,i.current),3e4);a.current=setTimeout((function(){l.current=!0,n.refresh()}),t)}else i.current=0},onCancel:function(){i.current=0,a.current&&clearTimeout(a.current)}}:{}},Lt=vt,It=Dn;var Pt=function(n,t,e){var r=!0,a=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return It(e)&&(r="leading"in e?!!e.leading:r,a="trailing"in e?!!e.trailing:a),Lt(n,t,{leading:r,maxWait:t,trailing:a})},Mt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Ft=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Mt(arguments[t]));return n},zt=function(n,t){var e=t.throttleWait,r=t.throttleLeading,a=t.throttleTrailing,i=o(),s={};return void 0!==r&&(s.leading=r),void 0!==a&&(s.trailing=a),l((function(){if(e){var t=n.runAsync.bind(n);return i.current=Pt((function(n){n()}),e,s),n.runAsync=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new Promise((function(e,r){var a;null===(a=i.current)||void 0===a||a.call(i,(function(){t.apply(void 0,Ft(n)).then(e).catch(r)}))}))},function(){var e;n.runAsync=t,null===(e=i.current)||void 0===e||e.cancel()}}}),[e,r,a]),e?{onCancel:function(){var n;null===(n=i.current)||void 0===n||n.cancel()}}:{}},jt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Bt=function(){return Bt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var a in t=arguments[e])Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},Bt.apply(this,arguments)},Ut=function(n,t,e,r){return new(e||(e=Promise))((function(a,o){function i(n){try{s(r.next(n))}catch(n){o(n)}}function l(n){try{s(r.throw(n))}catch(n){o(n)}}function s(n){var t;n.done?a(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(i,l)}s((r=r.apply(n,t||[])).next())}))},Vt=function(n,t){var e,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(n,i)}catch(n){o=[6,n],r=0}finally{e=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},Ht=function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(n);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(e[r[a]]=n[r[a]])}return e},Kt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Gt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Kt(arguments[t]));return n},Wt=function(){function n(n,t,e,r){void 0===r&&(r={}),this.serviceRef=n,this.options=t,this.subscribe=e,this.initState=r,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Bt(Bt(Bt({},this.state),{loading:!t.manual}),r)}return n.prototype.setState=function(n){void 0===n&&(n={}),this.state=Bt(Bt({},this.state),n),this.subscribe()},n.prototype.runPluginHandler=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];var r=this.pluginImpls.map((function(e){var r;return null===(r=e[n])||void 0===r?void 0:r.call.apply(r,Gt([e],t))})).filter(Boolean);return Object.assign.apply(Object,Gt([{}],r))},n.prototype.runAsync=function(){for(var n,t,e,r,a,o,i,l,s,c,u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return Ut(this,void 0,void 0,(function(){var d,p,f,h,m,g,b,v,y,x,w;return Vt(this,(function(k){switch(k.label){case 0:if(this.count+=1,d=this.count,p=this.runPluginHandler("onBefore",u),f=p.stopNow,h=void 0!==f&&f,m=p.returnNow,g=void 0!==m&&m,b=Ht(p,["stopNow","returnNow"]),h)return[2,new Promise((function(){}))];if(this.setState(Bt({loading:!0,params:u},b)),g)return[2,Promise.resolve(b.data)];null===(t=(n=this.options).onBefore)||void 0===t||t.call(n,u),k.label=1;case 1:return k.trys.push([1,3,,4]),(v=this.runPluginHandler("onRequest",this.serviceRef.current,u).servicePromise)||(v=(w=this.serviceRef).current.apply(w,Gt(u))),[4,v];case 2:return y=k.sent(),d!==this.count?[2,new Promise((function(){}))]:(this.setState({data:y,error:void 0,loading:!1}),null===(r=(e=this.options).onSuccess)||void 0===r||r.call(e,y,u),this.runPluginHandler("onSuccess",y,u),null===(o=(a=this.options).onFinally)||void 0===o||o.call(a,u,y,void 0),d===this.count&&this.runPluginHandler("onFinally",u,y,void 0),[2,y]);case 3:if(x=k.sent(),d!==this.count)return[2,new Promise((function(){}))];throw this.setState({error:x,loading:!1}),null===(l=(i=this.options).onError)||void 0===l||l.call(i,x,u),this.runPluginHandler("onError",x,u),null===(c=(s=this.options).onFinally)||void 0===c||c.call(s,u,void 0,x),d===this.count&&this.runPluginHandler("onFinally",u,void 0,x),x;case 4:return[2]}}))}))},n.prototype.run=function(){for(var n=this,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.runAsync.apply(this,Gt(t)).catch((function(t){n.options.onError||console.error(t)}))},n.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},n.prototype.refresh=function(){this.run.apply(this,Gt(this.state.params||[]))},n.prototype.refreshAsync=function(){return this.runAsync.apply(this,Gt(this.state.params||[]))},n.prototype.mutate=function(n){var t;t=pn(n)?n(this.state.data):n,this.runPluginHandler("onMutate",t),this.setState({data:t})},n}(),Yt=function(){return Yt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var a in t=arguments[e])Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},Yt.apply(this,arguments)},qt=function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(n);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(e[r[a]]=n[r[a]])}return e},Xt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},$t=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Xt(arguments[t]));return n};function Zt(n,t,e){void 0===t&&(t={}),void 0===e&&(e=[]);var r,a,o=t.manual,i=void 0!==o&&o,u=qt(t,["manual"]),d=Yt({manual:i},u),p=wn(n),f=(r=jt(c({}),2)[1],s((function(){return r({})}),[])),h=xn((function(){var n=e.map((function(n){var t;return null===(t=null==n?void 0:n.onInit)||void 0===t?void 0:t.call(n,d)})).filter(Boolean);return new Wt(p,d,f,Object.assign.apply(Object,$t([{}],n)))}),[]);return h.options=d,h.pluginImpls=e.map((function(n){return n(h,d)})),a=function(){if(!i){var n=h.state.params||t.defaultParams||[];h.run.apply(h,$t(n))}},"development"===process.env.NODE_ENV&&(pn(a)||console.error('useMount: parameter `fn` expected to be a function, but got "'+typeof a+'".')),l((function(){null==a||a()}),[]),kn((function(){h.cancel()})),{loading:h.state.loading,data:h.state.data,error:h.state.error,params:h.state.params||[],cancel:fn(h.cancel.bind(h)),refresh:fn(h.refresh.bind(h)),refreshAsync:fn(h.refreshAsync.bind(h)),run:fn(h.run.bind(h)),runAsync:fn(h.runAsync.bind(h)),mutate:fn(h.mutate.bind(h))}}var Jt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,a,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(n){a={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return i},Qt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Jt(arguments[t]));return n};function ne(n,t,e){return Zt(n,t,Qt(e||[],[wt,kt,Ct,Dt,zt,vn,An,Rt]))}var te=!("undefined"==typeof window||!window.document||!window.document.createElement);function ee(n,t){if(te)return n?pn(n)?n():"current"in n?n.current:n:t}var re,ae=(re=l,function(n,t,e){var r=o(!1),a=o([]),i=o([]),l=o();re((function(){var o,s=(Array.isArray(e)?e:[e]).map((function(n){return ee(n)}));if(!r.current)return r.current=!0,a.current=s,i.current=t,void(l.current=n());s.length===a.current.length&&yn(s,a.current)&&yn(t,i.current)||(null===(o=l.current)||void 0===o||o.call(l),a.current=s,i.current=t,l.current=n())})),kn((function(){var n;null===(n=l.current)||void 0===n||n.call(l),r.current=!1}))});
|
|
502
502
|
/*!
|
|
503
503
|
* JavaScript Cookie v2.2.1
|
|
504
504
|
* https://github.com/js-cookie/js-cookie
|
package/dist/index.umd.js
CHANGED
|
@@ -498,7 +498,7 @@ n.exports=function(){function n(n){var t=typeof n;return null!==n&&("object"===t
|
|
|
498
498
|
\*********************************/
|
|
499
499
|
/*! exports provided: default */function(n,t,e){e.r(t);var a=e(/*! ../utils/logger */"./src/utils/logger.ts"),r=e(/*! ../loader/load-stats */"./src/loader/load-stats.ts"),o=/^age:\s*[\d.]+\s*$/m,i=function(){function n(n){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=n?n.xhrSetup:null,this.stats=new r.LoadStats,this.retryDelay=0}var t=n.prototype;return t.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},t.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,4!==n.readyState&&(this.stats.aborted=!0,n.abort()))},t.abort=function(){var n;this.abortInternal(),null!==(n=this.callbacks)&&void 0!==n&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},t.load=function(n,t,e){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=t,this.callbacks=e,this.retryDelay=t.retryDelay,this.loadInternal()},t.loadInternal=function(){var n=this.config,t=this.context;if(n){var e=this.loader=new self.XMLHttpRequest,a=this.stats;a.loading.first=0,a.loaded=0;var r=this.xhrSetup;try{if(r)try{r(e,t.url)}catch(n){e.open("GET",t.url,!0),r(e,t.url)}e.readyState||e.open("GET",t.url,!0);var o=this.context.headers;if(o)for(var i in o)e.setRequestHeader(i,o[i])}catch(n){return void this.callbacks.onError({code:e.status,text:n.message},t,e)}t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}},t.readystatechange=function(){var n=this.context,t=this.loader,e=this.stats;if(n&&t){var r=t.readyState,o=this.config;if(!e.aborted&&r>=2)if(self.clearTimeout(this.requestTimeout),0===e.loading.first&&(e.loading.first=Math.max(self.performance.now(),e.loading.start)),4===r){t.onreadystatechange=null,t.onprogress=null;var i=t.status;if(i>=200&&i<300){var l,s;if(e.loading.end=Math.max(self.performance.now(),e.loading.first),s="arraybuffer"===n.responseType?(l=t.response).byteLength:(l=t.responseText).length,e.loaded=e.total=s,!this.callbacks)return;var c=this.callbacks.onProgress;if(c&&c(e,n,l,t),!this.callbacks)return;var u={url:t.responseURL,data:l};this.callbacks.onSuccess(u,e,n,t)}else e.retry>=o.maxRetry||i>=400&&i<499?(a.logger.error(i+" while loading "+n.url),this.callbacks.onError({code:i,text:t.statusText},n,t)):(a.logger.warn(i+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,o.maxRetryDelay),e.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout)}},t.loadtimeout=function(){a.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},t.loadprogress=function(n){var t=this.stats;t.loaded=n.loaded,n.lengthComputable&&(t.total=n.total)},t.getCacheAge=function(){var n=null;if(this.loader&&o.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");n=t?parseFloat(t):null}return n},n}();t.default=i}}).default}));var E=b(k.exports);function S(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var C={exports:{}};!function(n,t){n.exports=function(){var t,e;function a(){return t.apply(null,arguments)}function r(n){t=n}function o(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function i(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function s(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;var t;for(t in n)if(l(n,t))return!1;return!0}function c(n){return void 0===n}function u(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function d(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function p(n,t){var e,a=[],r=n.length;for(e=0;e<r;++e)a.push(t(n[e],e));return a}function f(n,t){for(var e in t)l(t,e)&&(n[e]=t[e]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function h(n,t,e,a){return Xe(n,t,e,a,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(n){return null==n._pf&&(n._pf=m()),n._pf}function b(n){if(null==n._isValid){var t=g(n),a=e.call(t.parsedDateParts,(function(n){return null!=n})),r=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(n._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return r;n._isValid=r}return n._isValid}function v(n){var t=h(NaN);return null!=n?f(g(t),n):g(t).userInvalidated=!0,t}e=Array.prototype.some?Array.prototype.some:function(n){var t,e=Object(this),a=e.length>>>0;for(t=0;t<a;t++)if(t in e&&n.call(this,e[t],t,e))return!0;return!1};var y=a.momentProperties=[],x=!1;function w(n,t){var e,a,r,o=y.length;if(c(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),c(t._i)||(n._i=t._i),c(t._f)||(n._f=t._f),c(t._l)||(n._l=t._l),c(t._strict)||(n._strict=t._strict),c(t._tzm)||(n._tzm=t._tzm),c(t._isUTC)||(n._isUTC=t._isUTC),c(t._offset)||(n._offset=t._offset),c(t._pf)||(n._pf=g(t)),c(t._locale)||(n._locale=t._locale),o>0)for(e=0;e<o;e++)c(r=t[a=y[e]])||(n[a]=r);return n}function k(n){w(this,n),this._d=new Date(null!=n._d?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,a.updateOffset(this),x=!1)}function E(n){return n instanceof k||null!=n&&null!=n._isAMomentObject}function C(n){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function _(n,t){var e=!0;return f((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,n),e){var r,o,i,s=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"==typeof arguments[o]){for(i in r+="\n["+o+"] ",arguments[0])l(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}C(n+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),e=!1}return t.apply(this,arguments)}),t)}var T,O={};function N(n,t){null!=a.deprecationHandler&&a.deprecationHandler(n,t),O[n]||(C(t),O[n]=!0)}function A(n){return"undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function R(n){var t,e;for(e in n)l(n,e)&&(A(t=n[e])?this[e]=t:this["_"+e]=t);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(n,t){var e,a=f({},n);for(e in t)l(t,e)&&(i(n[e])&&i(t[e])?(a[e]={},f(a[e],n[e]),f(a[e],t[e])):null!=t[e]?a[e]=t[e]:delete a[e]);for(e in n)l(n,e)&&!l(t,e)&&i(n[e])&&(a[e]=f({},a[e]));return a}function L(n){null!=n&&this.set(n)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,T=Object.keys?Object.keys:function(n){var t,e=[];for(t in n)l(n,t)&&e.push(t);return e};var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(n,t,e){var a=this._calendar[n]||this._calendar.sameElse;return A(a)?a.call(t,e):a}function M(n,t,e){var a=""+Math.abs(n),r=t-a.length;return(n>=0?e?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},B={};function U(n,t,e,a){var r=a;"string"==typeof a&&(r=function(){return this[a]()}),n&&(B[n]=r),t&&(B[t[0]]=function(){return M(r.apply(this,arguments),t[1],t[2])}),e&&(B[e]=function(){return this.localeData().ordinal(r.apply(this,arguments),n)})}function V(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function H(n){var t,e,a=n.match(F);for(t=0,e=a.length;t<e;t++)B[a[t]]?a[t]=B[a[t]]:a[t]=V(a[t]);return function(t){var r,o="";for(r=0;r<e;r++)o+=A(a[r])?a[r].call(t,n):a[r];return o}}function K(n,t){return n.isValid()?(t=G(t,n.localeData()),z[t]=z[t]||H(t),z[t](n)):n.localeData().invalidDate()}function G(n,t){var e=5;function a(n){return t.longDateFormat(n)||n}for(j.lastIndex=0;e>=0&&j.test(n);)n=n.replace(j,a),j.lastIndex=0,e-=1;return n}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(n){var t=this._longDateFormat[n],e=this._longDateFormat[n.toUpperCase()];return t||!e?t:(this._longDateFormat[n]=e.match(F).map((function(n){return"MMMM"===n||"MM"===n||"DD"===n||"dddd"===n?n.slice(1):n})).join(""),this._longDateFormat[n])}var q="Invalid date";function X(){return this._invalidDate}var $="%d",Z=/\d{1,2}/;function J(n){return this._ordinal.replace("%d",n)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function nn(n,t,e,a){var r=this._relativeTime[e];return A(r)?r(n,t,e,a):r.replace(/%d/i,n)}function tn(n,t){var e=this._relativeTime[n>0?"future":"past"];return A(e)?e(t):e.replace(/%s/i,t)}var en={};function an(n,t){var e=n.toLowerCase();en[e]=en[e+"s"]=en[t]=n}function rn(n){return"string"==typeof n?en[n]||en[n.toLowerCase()]:void 0}function on(n){var t,e,a={};for(e in n)l(n,e)&&(t=rn(e))&&(a[t]=n[e]);return a}var ln={};function sn(n,t){ln[n]=t}function cn(n){var t,e=[];for(t in n)l(n,t)&&e.push({unit:t,priority:ln[t]});return e.sort((function(n,t){return n.priority-t.priority})),e}function un(n){return n%4==0&&n%100!=0||n%400==0}function dn(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function pn(n){var t=+n,e=0;return 0!==t&&isFinite(t)&&(e=dn(t)),e}function fn(n,t){return function(e){return null!=e?(mn(this,n,e),a.updateOffset(this,t),this):hn(this,n)}}function hn(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function mn(n,t,e){n.isValid()&&!isNaN(e)&&("FullYear"===t&&un(n.year())&&1===n.month()&&29===n.date()?(e=pn(e),n._d["set"+(n._isUTC?"UTC":"")+t](e,n.month(),tt(e,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+t](e))}function gn(n){return A(this[n=rn(n)])?this[n]():this}function bn(n,t){if("object"==typeof n){var e,a=cn(n=on(n)),r=a.length;for(e=0;e<r;e++)this[a[e].unit](n[a[e].unit])}else if(A(this[n=rn(n)]))return this[n](t);return this}var vn,yn=/\d/,xn=/\d\d/,wn=/\d{3}/,kn=/\d{4}/,En=/[+-]?\d{6}/,Sn=/\d\d?/,Cn=/\d\d\d\d?/,_n=/\d\d\d\d\d\d?/,Tn=/\d{1,3}/,On=/\d{1,4}/,Nn=/[+-]?\d{1,6}/,An=/\d+/,Rn=/[+-]?\d+/,Dn=/Z|[+-]\d\d:?\d\d/gi,Ln=/Z|[+-]\d\d(?::?\d\d)?/gi,In=/[+-]?\d+(\.\d{1,3})?/,Pn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Mn(n,t,e){vn[n]=A(t)?t:function(n,a){return n&&e?e:t}}function Fn(n,t){return l(vn,n)?vn[n](t._strict,t._locale):new RegExp(jn(n))}function jn(n){return zn(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(n,t,e,a,r){return t||e||a||r})))}function zn(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}vn={};var Bn={};function Un(n,t){var e,a,r=t;for("string"==typeof n&&(n=[n]),u(t)&&(r=function(n,e){e[t]=pn(n)}),a=n.length,e=0;e<a;e++)Bn[n[e]]=r}function Vn(n,t){Un(n,(function(n,e,a,r){a._w=a._w||{},t(n,a._w,a,r)}))}function Hn(n,t,e){null!=t&&l(Bn,n)&&Bn[n](t,e._a,e,n)}var Kn,Gn=0,Wn=1,Yn=2,qn=3,Xn=4,$n=5,Zn=6,Jn=7,Qn=8;function nt(n,t){return(n%t+t)%t}function tt(n,t){if(isNaN(n)||isNaN(t))return NaN;var e=nt(t,12);return n+=(t-e)/12,1===e?un(n)?29:28:31-e%7%2}Kn=Array.prototype.indexOf?Array.prototype.indexOf:function(n){var t;for(t=0;t<this.length;++t)if(this[t]===n)return t;return-1},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(n){return this.localeData().monthsShort(this,n)})),U("MMMM",0,0,(function(n){return this.localeData().months(this,n)})),an("month","M"),sn("month",8),Mn("M",Sn),Mn("MM",Sn,xn),Mn("MMM",(function(n,t){return t.monthsShortRegex(n)})),Mn("MMMM",(function(n,t){return t.monthsRegex(n)})),Un(["M","MM"],(function(n,t){t[Wn]=pn(n)-1})),Un(["MMM","MMMM"],(function(n,t,e,a){var r=e._locale.monthsParse(n,a,e._strict);null!=r?t[Wn]=r:g(e).invalidMonth=n}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),at="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Pn,it=Pn;function lt(n,t){return n?o(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][n.month()]:o(this._months)?this._months:this._months.standalone}function st(n,t){return n?o(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][n.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(n,t,e){var a,r,o,i=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)o=h([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(o,"").toLocaleLowerCase();return e?"MMM"===t?-1!==(r=Kn.call(this._shortMonthsParse,i))?r:null:-1!==(r=Kn.call(this._longMonthsParse,i))?r:null:"MMM"===t?-1!==(r=Kn.call(this._shortMonthsParse,i))||-1!==(r=Kn.call(this._longMonthsParse,i))?r:null:-1!==(r=Kn.call(this._longMonthsParse,i))||-1!==(r=Kn.call(this._shortMonthsParse,i))?r:null}function ut(n,t,e){var a,r,o;if(this._monthsParseExact)return ct.call(this,n,t,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=h([2e3,a]),e&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),e||this._monthsParse[a]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(o.replace(".",""),"i")),e&&"MMMM"===t&&this._longMonthsParse[a].test(n))return a;if(e&&"MMM"===t&&this._shortMonthsParse[a].test(n))return a;if(!e&&this._monthsParse[a].test(n))return a}}function dt(n,t){var e;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=pn(t);else if(!u(t=n.localeData().monthsParse(t)))return n;return e=Math.min(n.date(),tt(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,e),n}function pt(n){return null!=n?(dt(this,n),a.updateOffset(this,!0),this):hn(this,"Month")}function ft(){return tt(this.year(),this.month())}function ht(n){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function mt(n){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function gt(){function n(n,t){return t.length-n.length}var t,e,a=[],r=[],o=[];for(t=0;t<12;t++)e=h([2e3,t]),a.push(this.monthsShort(e,"")),r.push(this.months(e,"")),o.push(this.months(e,"")),o.push(this.monthsShort(e,""));for(a.sort(n),r.sort(n),o.sort(n),t=0;t<12;t++)a[t]=zn(a[t]),r[t]=zn(r[t]);for(t=0;t<24;t++)o[t]=zn(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function bt(n){return un(n)?366:365}U("Y",0,0,(function(){var n=this.year();return n<=9999?M(n,4):"+"+n})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),an("year","y"),sn("year",1),Mn("Y",Rn),Mn("YY",Sn,xn),Mn("YYYY",On,kn),Mn("YYYYY",Nn,En),Mn("YYYYYY",Nn,En),Un(["YYYYY","YYYYYY"],Gn),Un("YYYY",(function(n,t){t[Gn]=2===n.length?a.parseTwoDigitYear(n):pn(n)})),Un("YY",(function(n,t){t[Gn]=a.parseTwoDigitYear(n)})),Un("Y",(function(n,t){t[Gn]=parseInt(n,10)})),a.parseTwoDigitYear=function(n){return pn(n)+(pn(n)>68?1900:2e3)};var vt=fn("FullYear",!0);function yt(){return un(this.year())}function xt(n,t,e,a,r,o,i){var l;return n<100&&n>=0?(l=new Date(n+400,t,e,a,r,o,i),isFinite(l.getFullYear())&&l.setFullYear(n)):l=new Date(n,t,e,a,r,o,i),l}function wt(n){var t,e;return n<100&&n>=0?((e=Array.prototype.slice.call(arguments))[0]=n+400,t=new Date(Date.UTC.apply(null,e)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function kt(n,t,e){var a=7+t-e;return-(7+wt(n,0,a).getUTCDay()-t)%7+a-1}function Et(n,t,e,a,r){var o,i,l=1+7*(t-1)+(7+e-a)%7+kt(n,a,r);return l<=0?i=bt(o=n-1)+l:l>bt(n)?(o=n+1,i=l-bt(n)):(o=n,i=l),{year:o,dayOfYear:i}}function St(n,t,e){var a,r,o=kt(n.year(),t,e),i=Math.floor((n.dayOfYear()-o-1)/7)+1;return i<1?a=i+Ct(r=n.year()-1,t,e):i>Ct(n.year(),t,e)?(a=i-Ct(n.year(),t,e),r=n.year()+1):(r=n.year(),a=i),{week:a,year:r}}function Ct(n,t,e){var a=kt(n,t,e),r=kt(n+1,t,e);return(bt(n)-a+r)/7}function _t(n){return St(n,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),an("week","w"),an("isoWeek","W"),sn("week",5),sn("isoWeek",5),Mn("w",Sn),Mn("ww",Sn,xn),Mn("W",Sn),Mn("WW",Sn,xn),Vn(["w","ww","W","WW"],(function(n,t,e,a){t[a.substr(0,1)]=pn(n)}));var Tt={dow:0,doy:6};function Ot(){return this._week.dow}function Nt(){return this._week.doy}function At(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")}function Rt(n){var t=St(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")}function Dt(n,t){return"string"!=typeof n?n:isNaN(n)?"number"==typeof(n=t.weekdaysParse(n))?n:null:parseInt(n,10)}function Lt(n,t){return"string"==typeof n?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function It(n,t){return n.slice(t,7).concat(n.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,(function(n){return this.localeData().weekdaysMin(this,n)})),U("ddd",0,0,(function(n){return this.localeData().weekdaysShort(this,n)})),U("dddd",0,0,(function(n){return this.localeData().weekdays(this,n)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),an("day","d"),an("weekday","e"),an("isoWeekday","E"),sn("day",11),sn("weekday",11),sn("isoWeekday",11),Mn("d",Sn),Mn("e",Sn),Mn("E",Sn),Mn("dd",(function(n,t){return t.weekdaysMinRegex(n)})),Mn("ddd",(function(n,t){return t.weekdaysShortRegex(n)})),Mn("dddd",(function(n,t){return t.weekdaysRegex(n)})),Vn(["dd","ddd","dddd"],(function(n,t,e,a){var r=e._locale.weekdaysParse(n,a,e._strict);null!=r?t.d=r:g(e).invalidWeekday=n})),Vn(["d","e","E"],(function(n,t,e,a){t[a]=pn(n)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ft="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jt=Pn,zt=Pn,Bt=Pn;function Ut(n,t){var e=o(this._weekdays)?this._weekdays:this._weekdays[n&&!0!==n&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===n?It(e,this._week.dow):n?e[n.day()]:e}function Vt(n){return!0===n?It(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Ht(n){return!0===n?It(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Kt(n,t,e){var a,r,o,i=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)o=h([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(o,"").toLocaleLowerCase();return e?"dddd"===t?-1!==(r=Kn.call(this._weekdaysParse,i))?r:null:"ddd"===t?-1!==(r=Kn.call(this._shortWeekdaysParse,i))?r:null:-1!==(r=Kn.call(this._minWeekdaysParse,i))?r:null:"dddd"===t?-1!==(r=Kn.call(this._weekdaysParse,i))||-1!==(r=Kn.call(this._shortWeekdaysParse,i))||-1!==(r=Kn.call(this._minWeekdaysParse,i))?r:null:"ddd"===t?-1!==(r=Kn.call(this._shortWeekdaysParse,i))||-1!==(r=Kn.call(this._weekdaysParse,i))||-1!==(r=Kn.call(this._minWeekdaysParse,i))?r:null:-1!==(r=Kn.call(this._minWeekdaysParse,i))||-1!==(r=Kn.call(this._weekdaysParse,i))||-1!==(r=Kn.call(this._shortWeekdaysParse,i))?r:null}function Gt(n,t,e){var a,r,o;if(this._weekdaysParseExact)return Kt.call(this,n,t,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=h([2e3,1]).day(a),e&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(o.replace(".",""),"i")),e&&"dddd"===t&&this._fullWeekdaysParse[a].test(n))return a;if(e&&"ddd"===t&&this._shortWeekdaysParse[a].test(n))return a;if(e&&"dd"===t&&this._minWeekdaysParse[a].test(n))return a;if(!e&&this._weekdaysParse[a].test(n))return a}}function Wt(n){if(!this.isValid())return null!=n?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=Dt(n,this.localeData()),this.add(n-t,"d")):t}function Yt(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")}function qt(n){if(!this.isValid())return null!=n?this:NaN;if(null!=n){var t=Lt(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Xt(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=jt),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function $t(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=zt),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zt(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bt),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function n(n,t){return t.length-n.length}var t,e,a,r,o,i=[],l=[],s=[],c=[];for(t=0;t<7;t++)e=h([2e3,1]).day(t),a=zn(this.weekdaysMin(e,"")),r=zn(this.weekdaysShort(e,"")),o=zn(this.weekdays(e,"")),i.push(a),l.push(r),s.push(o),c.push(a),c.push(r),c.push(o);i.sort(n),l.sort(n),s.sort(n),c.sort(n),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Qt(){return this.hours()%12||12}function ne(){return this.hours()||24}function te(n,t){U(n,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ee(n,t){return t._meridiemParse}function ae(n){return"p"===(n+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Qt),U("k",["kk",2],0,ne),U("hmm",0,0,(function(){return""+Qt.apply(this)+M(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Qt.apply(this)+M(this.minutes(),2)+M(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+M(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+M(this.minutes(),2)+M(this.seconds(),2)})),te("a",!0),te("A",!1),an("hour","h"),sn("hour",13),Mn("a",ee),Mn("A",ee),Mn("H",Sn),Mn("h",Sn),Mn("k",Sn),Mn("HH",Sn,xn),Mn("hh",Sn,xn),Mn("kk",Sn,xn),Mn("hmm",Cn),Mn("hmmss",_n),Mn("Hmm",Cn),Mn("Hmmss",_n),Un(["H","HH"],qn),Un(["k","kk"],(function(n,t,e){var a=pn(n);t[qn]=24===a?0:a})),Un(["a","A"],(function(n,t,e){e._isPm=e._locale.isPM(n),e._meridiem=n})),Un(["h","hh"],(function(n,t,e){t[qn]=pn(n),g(e).bigHour=!0})),Un("hmm",(function(n,t,e){var a=n.length-2;t[qn]=pn(n.substr(0,a)),t[Xn]=pn(n.substr(a)),g(e).bigHour=!0})),Un("hmmss",(function(n,t,e){var a=n.length-4,r=n.length-2;t[qn]=pn(n.substr(0,a)),t[Xn]=pn(n.substr(a,2)),t[$n]=pn(n.substr(r)),g(e).bigHour=!0})),Un("Hmm",(function(n,t,e){var a=n.length-2;t[qn]=pn(n.substr(0,a)),t[Xn]=pn(n.substr(a))})),Un("Hmmss",(function(n,t,e){var a=n.length-4,r=n.length-2;t[qn]=pn(n.substr(0,a)),t[Xn]=pn(n.substr(a,2)),t[$n]=pn(n.substr(r))}));var re=/[ap]\.?m?\.?/i,oe=fn("Hours",!0);function ie(n,t,e){return n>11?e?"pm":"PM":e?"am":"AM"}var le,se={calendar:I,longDateFormat:W,invalidDate:q,ordinal:$,dayOfMonthOrdinalParse:Z,relativeTime:Q,months:et,monthsShort:at,week:Tt,weekdays:Pt,weekdaysMin:Ft,weekdaysShort:Mt,meridiemParse:re},ce={},ue={};function de(n,t){var e,a=Math.min(n.length,t.length);for(e=0;e<a;e+=1)if(n[e]!==t[e])return e;return a}function pe(n){return n?n.toLowerCase().replace("_","-"):n}function fe(n){for(var t,e,a,r,o=0;o<n.length;){for(t=(r=pe(n[o]).split("-")).length,e=(e=pe(n[o+1]))?e.split("-"):null;t>0;){if(a=me(r.slice(0,t).join("-")))return a;if(e&&e.length>=t&&de(r,e)>=t-1)break;t--}o++}return le}function he(n){return null!=n.match("^[^/\\\\]*$")}function me(t){var e=null;if(void 0===ce[t]&&n&&n.exports&&he(t))try{e=le._abbr,S("./locale/"+t),ge(e)}catch(n){ce[t]=null}return ce[t]}function ge(n,t){var e;return n&&((e=c(t)?ye(n):be(n,t))?le=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),le._abbr}function be(n,t){if(null!==t){var e,a=se;if(t.abbr=n,null!=ce[n])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=ce[n]._config;else if(null!=t.parentLocale)if(null!=ce[t.parentLocale])a=ce[t.parentLocale]._config;else{if(null==(e=me(t.parentLocale)))return ue[t.parentLocale]||(ue[t.parentLocale]=[]),ue[t.parentLocale].push({name:n,config:t}),null;a=e._config}return ce[n]=new L(D(a,t)),ue[n]&&ue[n].forEach((function(n){be(n.name,n.config)})),ge(n),ce[n]}return delete ce[n],null}function ve(n,t){if(null!=t){var e,a,r=se;null!=ce[n]&&null!=ce[n].parentLocale?ce[n].set(D(ce[n]._config,t)):(null!=(a=me(n))&&(r=a._config),t=D(r,t),null==a&&(t.abbr=n),(e=new L(t)).parentLocale=ce[n],ce[n]=e),ge(n)}else null!=ce[n]&&(null!=ce[n].parentLocale?(ce[n]=ce[n].parentLocale,n===ge()&&ge(n)):null!=ce[n]&&delete ce[n]);return ce[n]}function ye(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return le;if(!o(n)){if(t=me(n))return t;n=[n]}return fe(n)}function xe(){return T(ce)}function we(n){var t,e=n._a;return e&&-2===g(n).overflow&&(t=e[Wn]<0||e[Wn]>11?Wn:e[Yn]<1||e[Yn]>tt(e[Gn],e[Wn])?Yn:e[qn]<0||e[qn]>24||24===e[qn]&&(0!==e[Xn]||0!==e[$n]||0!==e[Zn])?qn:e[Xn]<0||e[Xn]>59?Xn:e[$n]<0||e[$n]>59?$n:e[Zn]<0||e[Zn]>999?Zn:-1,g(n)._overflowDayOfYear&&(t<Gn||t>Yn)&&(t=Yn),g(n)._overflowWeeks&&-1===t&&(t=Jn),g(n)._overflowWeekday&&-1===t&&(t=Qn),g(n).overflow=t),n}var ke=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ee=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Se=/Z|[+-]\d\d(?::?\d\d)?/,Ce=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_e=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Te=/^\/?Date\((-?\d+)/i,Oe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ne={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ae(n){var t,e,a,r,o,i,l=n._i,s=ke.exec(l)||Ee.exec(l),c=Ce.length,u=_e.length;if(s){for(g(n).iso=!0,t=0,e=c;t<e;t++)if(Ce[t][1].exec(s[1])){r=Ce[t][0],a=!1!==Ce[t][2];break}if(null==r)return void(n._isValid=!1);if(s[3]){for(t=0,e=u;t<e;t++)if(_e[t][1].exec(s[3])){o=(s[2]||" ")+_e[t][0];break}if(null==o)return void(n._isValid=!1)}if(!a&&null!=o)return void(n._isValid=!1);if(s[4]){if(!Se.exec(s[4]))return void(n._isValid=!1);i="Z"}n._f=r+(o||"")+(i||""),Ve(n)}else n._isValid=!1}function Re(n,t,e,a,r,o){var i=[De(n),at.indexOf(t),parseInt(e,10),parseInt(a,10),parseInt(r,10)];return o&&i.push(parseInt(o,10)),i}function De(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function Le(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ie(n,t,e){return!n||Mt.indexOf(n)===new Date(t[0],t[1],t[2]).getDay()||(g(e).weekdayMismatch=!0,e._isValid=!1,!1)}function Pe(n,t,e){if(n)return Ne[n];if(t)return 0;var a=parseInt(e,10),r=a%100;return(a-r)/100*60+r}function Me(n){var t,e=Oe.exec(Le(n._i));if(e){if(t=Re(e[4],e[3],e[2],e[5],e[6],e[7]),!Ie(e[1],t,n))return;n._a=t,n._tzm=Pe(e[8],e[9],e[10]),n._d=wt.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),g(n).rfc2822=!0}else n._isValid=!1}function Fe(n){var t=Te.exec(n._i);null===t?(Ae(n),!1===n._isValid&&(delete n._isValid,Me(n),!1===n._isValid&&(delete n._isValid,n._strict?n._isValid=!1:a.createFromInputFallback(n)))):n._d=new Date(+t[1])}function je(n,t,e){return null!=n?n:null!=t?t:e}function ze(n){var t=new Date(a.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Be(n){var t,e,a,r,o,i=[];if(!n._d){for(a=ze(n),n._w&&null==n._a[Yn]&&null==n._a[Wn]&&Ue(n),null!=n._dayOfYear&&(o=je(n._a[Gn],a[Gn]),(n._dayOfYear>bt(o)||0===n._dayOfYear)&&(g(n)._overflowDayOfYear=!0),e=wt(o,0,n._dayOfYear),n._a[Wn]=e.getUTCMonth(),n._a[Yn]=e.getUTCDate()),t=0;t<3&&null==n._a[t];++t)n._a[t]=i[t]=a[t];for(;t<7;t++)n._a[t]=i[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[qn]&&0===n._a[Xn]&&0===n._a[$n]&&0===n._a[Zn]&&(n._nextDay=!0,n._a[qn]=0),n._d=(n._useUTC?wt:xt).apply(null,i),r=n._useUTC?n._d.getUTCDay():n._d.getDay(),null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[qn]=24),n._w&&void 0!==n._w.d&&n._w.d!==r&&(g(n).weekdayMismatch=!0)}}function Ue(n){var t,e,a,r,o,i,l,s,c;null!=(t=n._w).GG||null!=t.W||null!=t.E?(o=1,i=4,e=je(t.GG,n._a[Gn],St($e(),1,4).year),a=je(t.W,1),((r=je(t.E,1))<1||r>7)&&(s=!0)):(o=n._locale._week.dow,i=n._locale._week.doy,c=St($e(),o,i),e=je(t.gg,n._a[Gn],c.year),a=je(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(s=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(s=!0)):r=o),a<1||a>Ct(e,o,i)?g(n)._overflowWeeks=!0:null!=s?g(n)._overflowWeekday=!0:(l=Et(e,a,r,o,i),n._a[Gn]=l.year,n._dayOfYear=l.dayOfYear)}function Ve(n){if(n._f!==a.ISO_8601)if(n._f!==a.RFC_2822){n._a=[],g(n).empty=!0;var t,e,r,o,i,l,s,c=""+n._i,u=c.length,d=0;for(s=(r=G(n._f,n._locale).match(F)||[]).length,t=0;t<s;t++)o=r[t],(e=(c.match(Fn(o,n))||[])[0])&&((i=c.substr(0,c.indexOf(e))).length>0&&g(n).unusedInput.push(i),c=c.slice(c.indexOf(e)+e.length),d+=e.length),B[o]?(e?g(n).empty=!1:g(n).unusedTokens.push(o),Hn(o,e,n)):n._strict&&!e&&g(n).unusedTokens.push(o);g(n).charsLeftOver=u-d,c.length>0&&g(n).unusedInput.push(c),n._a[qn]<=12&&!0===g(n).bigHour&&n._a[qn]>0&&(g(n).bigHour=void 0),g(n).parsedDateParts=n._a.slice(0),g(n).meridiem=n._meridiem,n._a[qn]=He(n._locale,n._a[qn],n._meridiem),null!==(l=g(n).era)&&(n._a[Gn]=n._locale.erasConvertYear(l,n._a[Gn])),Be(n),we(n)}else Me(n);else Ae(n)}function He(n,t,e){var a;return null==e?t:null!=n.meridiemHour?n.meridiemHour(t,e):null!=n.isPM?((a=n.isPM(e))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}function Ke(n){var t,e,a,r,o,i,l=!1,s=n._f.length;if(0===s)return g(n).invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<s;r++)o=0,i=!1,t=w({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],Ve(t),b(t)&&(i=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,l?o<a&&(a=o,e=t):(null==a||o<a||i)&&(a=o,e=t,i&&(l=!0));f(n,e||t)}function Ge(n){if(!n._d){var t=on(n._i),e=void 0===t.day?t.date:t.day;n._a=p([t.year,t.month,e,t.hour,t.minute,t.second,t.millisecond],(function(n){return n&&parseInt(n,10)})),Be(n)}}function We(n){var t=new k(we(Ye(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ye(n){var t=n._i,e=n._f;return n._locale=n._locale||ye(n._l),null===t||void 0===e&&""===t?v({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),E(t)?new k(we(t)):(d(t)?n._d=t:o(e)?Ke(n):e?Ve(n):qe(n),b(n)||(n._d=null),n))}function qe(n){var t=n._i;c(t)?n._d=new Date(a.now()):d(t)?n._d=new Date(t.valueOf()):"string"==typeof t?Fe(n):o(t)?(n._a=p(t.slice(0),(function(n){return parseInt(n,10)})),Be(n)):i(t)?Ge(n):u(t)?n._d=new Date(t):a.createFromInputFallback(n)}function Xe(n,t,e,a,r){var l={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==e&&!1!==e||(a=e,e=void 0),(i(n)&&s(n)||o(n)&&0===n.length)&&(n=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=e,l._i=n,l._f=t,l._strict=a,We(l)}function $e(n,t,e,a){return Xe(n,t,e,a,!1)}a.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Ze=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var n=$e.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:v()})),Je=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var n=$e.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:v()}));function Qe(n,t){var e,a;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return $e();for(e=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][n](e)||(e=t[a]);return e}function na(){return Qe("isBefore",[].slice.call(arguments,0))}function ta(){return Qe("isAfter",[].slice.call(arguments,0))}var ea=function(){return Date.now?Date.now():+new Date},aa=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ra(n){var t,e,a=!1,r=aa.length;for(t in n)if(l(n,t)&&(-1===Kn.call(aa,t)||null!=n[t]&&isNaN(n[t])))return!1;for(e=0;e<r;++e)if(n[aa[e]]){if(a)return!1;parseFloat(n[aa[e]])!==pn(n[aa[e]])&&(a=!0)}return!0}function oa(){return this._isValid}function ia(){return Na(NaN)}function la(n){var t=on(n),e=t.year||0,a=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,s=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ra(t),this._milliseconds=+u+1e3*c+6e4*s+1e3*l*60*60,this._days=+i+7*o,this._months=+r+3*a+12*e,this._data={},this._locale=ye(),this._bubble()}function sa(n){return n instanceof la}function ca(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function ua(n,t,e){var a,r=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),i=0;for(a=0;a<r;a++)(e&&n[a]!==t[a]||!e&&pn(n[a])!==pn(t[a]))&&i++;return i+o}function da(n,t){U(n,0,0,(function(){var n=this.utcOffset(),e="+";return n<0&&(n=-n,e="-"),e+M(~~(n/60),2)+t+M(~~n%60,2)}))}da("Z",":"),da("ZZ",""),Mn("Z",Ln),Mn("ZZ",Ln),Un(["Z","ZZ"],(function(n,t,e){e._useUTC=!0,e._tzm=fa(Ln,n)}));var pa=/([\+\-]|\d\d)/gi;function fa(n,t){var e,a,r=(t||"").match(n);return null===r?null:0===(a=60*(e=((r[r.length-1]||[])+"").match(pa)||["-",0,0])[1]+pn(e[2]))?0:"+"===e[0]?a:-a}function ha(n,t){var e,r;return t._isUTC?(e=t.clone(),r=(E(n)||d(n)?n.valueOf():$e(n).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+r),a.updateOffset(e,!1),e):$e(n).local()}function ma(n){return-Math.round(n._d.getTimezoneOffset())}function ga(n,t,e){var r,o=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(null===(n=fa(Ln,n)))return this}else Math.abs(n)<16&&!e&&(n*=60);return!this._isUTC&&t&&(r=ma(this)),this._offset=n,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==n&&(!t||this._changeInProgress?Ia(this,Na(n-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:ma(this)}function ba(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function va(n){return this.utcOffset(0,n)}function ya(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(ma(this),"m")),this}function xa(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=fa(Dn,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this}function wa(n){return!!this.isValid()&&(n=n?$e(n).utcOffset():0,(this.utcOffset()-n)%60==0)}function ka(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ea(){if(!c(this._isDSTShifted))return this._isDSTShifted;var n,t={};return w(t,this),(t=Ye(t))._a?(n=t._isUTC?h(t._a):$e(t._a),this._isDSTShifted=this.isValid()&&ua(t._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sa(){return!!this.isValid()&&!this._isUTC}function Ca(){return!!this.isValid()&&this._isUTC}function _a(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Ta=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Oa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Na(n,t){var e,a,r,o=n,i=null;return sa(n)?o={ms:n._milliseconds,d:n._days,M:n._months}:u(n)||!isNaN(+n)?(o={},t?o[t]=+n:o.milliseconds=+n):(i=Ta.exec(n))?(e="-"===i[1]?-1:1,o={y:0,d:pn(i[Yn])*e,h:pn(i[qn])*e,m:pn(i[Xn])*e,s:pn(i[$n])*e,ms:pn(ca(1e3*i[Zn]))*e}):(i=Oa.exec(n))?(e="-"===i[1]?-1:1,o={y:Aa(i[2],e),M:Aa(i[3],e),w:Aa(i[4],e),d:Aa(i[5],e),h:Aa(i[6],e),m:Aa(i[7],e),s:Aa(i[8],e)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Da($e(o.from),$e(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),a=new la(o),sa(n)&&l(n,"_locale")&&(a._locale=n._locale),sa(n)&&l(n,"_isValid")&&(a._isValid=n._isValid),a}function Aa(n,t){var e=n&&parseFloat(n.replace(",","."));return(isNaN(e)?0:e)*t}function Ra(n,t){var e={};return e.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(e.months,"M").isAfter(t)&&--e.months,e.milliseconds=+t-+n.clone().add(e.months,"M"),e}function Da(n,t){var e;return n.isValid()&&t.isValid()?(t=ha(t,n),n.isBefore(t)?e=Ra(n,t):((e=Ra(t,n)).milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function La(n,t){return function(e,a){var r;return null===a||isNaN(+a)||(N(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=a,a=r),Ia(this,Na(e,a),n),this}}function Ia(n,t,e,r){var o=t._milliseconds,i=ca(t._days),l=ca(t._months);n.isValid()&&(r=null==r||r,l&&dt(n,hn(n,"Month")+l*e),i&&mn(n,"Date",hn(n,"Date")+i*e),o&&n._d.setTime(n._d.valueOf()+o*e),r&&a.updateOffset(n,i||l))}Na.fn=la.prototype,Na.invalid=ia;var Pa=La(1,"add"),Ma=La(-1,"subtract");function Fa(n){return"string"==typeof n||n instanceof String}function ja(n){return E(n)||d(n)||Fa(n)||u(n)||Ba(n)||za(n)||null==n}function za(n){var t,e,a=i(n)&&!s(n),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=o.length;for(t=0;t<c;t+=1)e=o[t],r=r||l(n,e);return a&&r}function Ba(n){var t=o(n),e=!1;return t&&(e=0===n.filter((function(t){return!u(t)&&Fa(n)})).length),t&&e}function Ua(n){var t,e,a=i(n)&&!s(n),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)e=o[t],r=r||l(n,e);return a&&r}function Va(n,t){var e=n.diff(t,"days",!0);return e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"}function Ha(n,t){1===arguments.length&&(arguments[0]?ja(arguments[0])?(n=arguments[0],t=void 0):Ua(arguments[0])&&(t=arguments[0],n=void 0):(n=void 0,t=void 0));var e=n||$e(),r=ha(e,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(A(t[o])?t[o].call(this,e):t[o]);return this.format(i||this.localeData().calendar(o,this,$e(e)))}function Ka(){return new k(this)}function Ga(n,t){var e=E(n)?n:$e(n);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=rn(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())}function Wa(n,t){var e=E(n)?n:$e(n);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=rn(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())}function Ya(n,t,e,a){var r=E(n)?n:$e(n),o=E(t)?t:$e(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(a=a||"()")[0]?this.isAfter(r,e):!this.isBefore(r,e))&&(")"===a[1]?this.isBefore(o,e):!this.isAfter(o,e))}function qa(n,t){var e,a=E(n)?n:$e(n);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=rn(t)||"millisecond")?this.valueOf()===a.valueOf():(e=a.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))}function Xa(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function $a(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function Za(n,t,e){var a,r,o;if(!this.isValid())return NaN;if(!(a=ha(n,this)).isValid())return NaN;switch(r=6e4*(a.utcOffset()-this.utcOffset()),t=rn(t)){case"year":o=Ja(this,a)/12;break;case"month":o=Ja(this,a);break;case"quarter":o=Ja(this,a)/3;break;case"second":o=(this-a)/1e3;break;case"minute":o=(this-a)/6e4;break;case"hour":o=(this-a)/36e5;break;case"day":o=(this-a-r)/864e5;break;case"week":o=(this-a-r)/6048e5;break;default:o=this-a}return e?o:dn(o)}function Ja(n,t){if(n.date()<t.date())return-Ja(t,n);var e=12*(t.year()-n.year())+(t.month()-n.month()),a=n.clone().add(e,"months");return-(e+(t-a<0?(t-a)/(a-n.clone().add(e-1,"months")):(t-a)/(n.clone().add(e+1,"months")-a)))||0}function Qa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function nr(n){if(!this.isValid())return null;var t=!0!==n,e=t?this.clone().utc():this;return e.year()<0||e.year()>9999?K(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",K(e,"Z")):K(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n,t,e,a,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),n="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",e="-MM-DD[T]HH:mm:ss.SSS",a=o+'[")]',this.format(n+t+e+a)}function er(n){n||(n=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=K(this,n);return this.localeData().postformat(t)}function ar(n,t){return this.isValid()&&(E(n)&&n.isValid()||$e(n).isValid())?Na({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(n){return this.from($e(),n)}function or(n,t){return this.isValid()&&(E(n)&&n.isValid()||$e(n).isValid())?Na({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ir(n){return this.to($e(),n)}function lr(n){var t;return void 0===n?this._locale._abbr:(null!=(t=ye(n))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sr=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(n){return void 0===n?this.localeData():this.locale(n)}));function cr(){return this._locale}var ur=1e3,dr=60*ur,pr=60*dr,fr=3506328*pr;function hr(n,t){return(n%t+t)%t}function mr(n,t,e){return n<100&&n>=0?new Date(n+400,t,e)-fr:new Date(n,t,e).valueOf()}function gr(n,t,e){return n<100&&n>=0?Date.UTC(n+400,t,e)-fr:Date.UTC(n,t,e)}function br(n){var t,e;if(void 0===(n=rn(n))||"millisecond"===n||!this.isValid())return this;switch(e=this._isUTC?gr:mr,n){case"year":t=e(this.year(),0,1);break;case"quarter":t=e(this.year(),this.month()-this.month()%3,1);break;case"month":t=e(this.year(),this.month(),1);break;case"week":t=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=e(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hr(t+(this._isUTC?0:this.utcOffset()*dr),pr);break;case"minute":t=this._d.valueOf(),t-=hr(t,dr);break;case"second":t=this._d.valueOf(),t-=hr(t,ur)}return this._d.setTime(t),a.updateOffset(this,!0),this}function vr(n){var t,e;if(void 0===(n=rn(n))||"millisecond"===n||!this.isValid())return this;switch(e=this._isUTC?gr:mr,n){case"year":t=e(this.year()+1,0,1)-1;break;case"quarter":t=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=e(this.year(),this.month()+1,1)-1;break;case"week":t=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pr-hr(t+(this._isUTC?0:this.utcOffset()*dr),pr)-1;break;case"minute":t=this._d.valueOf(),t+=dr-hr(t,dr)-1;break;case"second":t=this._d.valueOf(),t+=ur-hr(t,ur)-1}return this._d.setTime(t),a.updateOffset(this,!0),this}function yr(){return this._d.valueOf()-6e4*(this._offset||0)}function xr(){return Math.floor(this.valueOf()/1e3)}function wr(){return new Date(this.valueOf())}function kr(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function Er(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sr(){return this.isValid()?this.toISOString():null}function Cr(){return b(this)}function _r(){return f({},g(this))}function Tr(){return g(this).overflow}function Or(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nr(n,t){var e,r,o,i=this._eras||ye("en")._eras;for(e=0,r=i.length;e<r;++e)switch("string"==typeof i[e].since&&(o=a(i[e].since).startOf("day"),i[e].since=o.valueOf()),typeof i[e].until){case"undefined":i[e].until=1/0;break;case"string":o=a(i[e].until).startOf("day").valueOf(),i[e].until=o.valueOf()}return i}function Ar(n,t,e){var a,r,o,i,l,s=this.eras();for(n=n.toUpperCase(),a=0,r=s.length;a<r;++a)if(o=s[a].name.toUpperCase(),i=s[a].abbr.toUpperCase(),l=s[a].narrow.toUpperCase(),e)switch(t){case"N":case"NN":case"NNN":if(i===n)return s[a];break;case"NNNN":if(o===n)return s[a];break;case"NNNNN":if(l===n)return s[a]}else if([o,i,l].indexOf(n)>=0)return s[a]}function Rr(n,t){var e=n.since<=n.until?1:-1;return void 0===t?a(n.since).year():a(n.since).year()+(t-n.offset)*e}function Dr(){var n,t,e,a=this.localeData().eras();for(n=0,t=a.length;n<t;++n){if(e=this.clone().startOf("day").valueOf(),a[n].since<=e&&e<=a[n].until)return a[n].name;if(a[n].until<=e&&e<=a[n].since)return a[n].name}return""}function Lr(){var n,t,e,a=this.localeData().eras();for(n=0,t=a.length;n<t;++n){if(e=this.clone().startOf("day").valueOf(),a[n].since<=e&&e<=a[n].until)return a[n].narrow;if(a[n].until<=e&&e<=a[n].since)return a[n].narrow}return""}function Ir(){var n,t,e,a=this.localeData().eras();for(n=0,t=a.length;n<t;++n){if(e=this.clone().startOf("day").valueOf(),a[n].since<=e&&e<=a[n].until)return a[n].abbr;if(a[n].until<=e&&e<=a[n].since)return a[n].abbr}return""}function Pr(){var n,t,e,r,o=this.localeData().eras();for(n=0,t=o.length;n<t;++n)if(e=o[n].since<=o[n].until?1:-1,r=this.clone().startOf("day").valueOf(),o[n].since<=r&&r<=o[n].until||o[n].until<=r&&r<=o[n].since)return(this.year()-a(o[n].since).year())*e+o[n].offset;return this.year()}function Mr(n){return l(this,"_erasNameRegex")||Hr.call(this),n?this._erasNameRegex:this._erasRegex}function Fr(n){return l(this,"_erasAbbrRegex")||Hr.call(this),n?this._erasAbbrRegex:this._erasRegex}function jr(n){return l(this,"_erasNarrowRegex")||Hr.call(this),n?this._erasNarrowRegex:this._erasRegex}function zr(n,t){return t.erasAbbrRegex(n)}function Br(n,t){return t.erasNameRegex(n)}function Ur(n,t){return t.erasNarrowRegex(n)}function Vr(n,t){return t._eraYearOrdinalRegex||An}function Hr(){var n,t,e=[],a=[],r=[],o=[],i=this.eras();for(n=0,t=i.length;n<t;++n)a.push(zn(i[n].name)),e.push(zn(i[n].abbr)),r.push(zn(i[n].narrow)),o.push(zn(i[n].name)),o.push(zn(i[n].abbr)),o.push(zn(i[n].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Kr(n,t){U(0,[n,n.length],0,t)}function Gr(n){return Zr.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wr(n){return Zr.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function Yr(){return Ct(this.year(),1,4)}function qr(){return Ct(this.isoWeekYear(),1,4)}function Xr(){var n=this.localeData()._week;return Ct(this.year(),n.dow,n.doy)}function $r(){var n=this.localeData()._week;return Ct(this.weekYear(),n.dow,n.doy)}function Zr(n,t,e,a,r){var o;return null==n?St(this,a,r).year:(t>(o=Ct(n,a,r))&&(t=o),Jr.call(this,n,t,e,a,r))}function Jr(n,t,e,a,r){var o=Et(n,t,e,a,r),i=wt(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Qr(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Mn("N",zr),Mn("NN",zr),Mn("NNN",zr),Mn("NNNN",Br),Mn("NNNNN",Ur),Un(["N","NN","NNN","NNNN","NNNNN"],(function(n,t,e,a){var r=e._locale.erasParse(n,a,e._strict);r?g(e).era=r:g(e).invalidEra=n})),Mn("y",An),Mn("yy",An),Mn("yyy",An),Mn("yyyy",An),Mn("yo",Vr),Un(["y","yy","yyy","yyyy"],Gn),Un(["yo"],(function(n,t,e,a){var r;e._locale._eraYearOrdinalRegex&&(r=n.match(e._locale._eraYearOrdinalRegex)),e._locale.eraYearOrdinalParse?t[Gn]=e._locale.eraYearOrdinalParse(n,r):t[Gn]=parseInt(n,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Kr("gggg","weekYear"),Kr("ggggg","weekYear"),Kr("GGGG","isoWeekYear"),Kr("GGGGG","isoWeekYear"),an("weekYear","gg"),an("isoWeekYear","GG"),sn("weekYear",1),sn("isoWeekYear",1),Mn("G",Rn),Mn("g",Rn),Mn("GG",Sn,xn),Mn("gg",Sn,xn),Mn("GGGG",On,kn),Mn("gggg",On,kn),Mn("GGGGG",Nn,En),Mn("ggggg",Nn,En),Vn(["gggg","ggggg","GGGG","GGGGG"],(function(n,t,e,a){t[a.substr(0,2)]=pn(n)})),Vn(["gg","GG"],(function(n,t,e,r){t[r]=a.parseTwoDigitYear(n)})),U("Q",0,"Qo","quarter"),an("quarter","Q"),sn("quarter",7),Mn("Q",yn),Un("Q",(function(n,t){t[Wn]=3*(pn(n)-1)})),U("D",["DD",2],"Do","date"),an("date","D"),sn("date",9),Mn("D",Sn),Mn("DD",Sn,xn),Mn("Do",(function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Un(["D","DD"],Yn),Un("Do",(function(n,t){t[Yn]=pn(n.match(Sn)[0])}));var no=fn("Date",!0);function to(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),an("dayOfYear","DDD"),sn("dayOfYear",4),Mn("DDD",Tn),Mn("DDDD",wn),Un(["DDD","DDDD"],(function(n,t,e){e._dayOfYear=pn(n)})),U("m",["mm",2],0,"minute"),an("minute","m"),sn("minute",14),Mn("m",Sn),Mn("mm",Sn,xn),Un(["m","mm"],Xn);var eo=fn("Minutes",!1);U("s",["ss",2],0,"second"),an("second","s"),sn("second",15),Mn("s",Sn),Mn("ss",Sn,xn),Un(["s","ss"],$n);var ao,ro,oo=fn("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),an("millisecond","ms"),sn("millisecond",16),Mn("S",Tn,yn),Mn("SS",Tn,xn),Mn("SSS",Tn,wn),ao="SSSS";ao.length<=9;ao+="S")Mn(ao,An);function io(n,t){t[Zn]=pn(1e3*("0."+n))}for(ao="S";ao.length<=9;ao+="S")Un(ao,io);function lo(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ro=fn("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var co=k.prototype;function uo(n){return $e(1e3*n)}function po(){return $e.apply(null,arguments).parseZone()}function fo(n){return n}co.add=Pa,co.calendar=Ha,co.clone=Ka,co.diff=Za,co.endOf=vr,co.format=er,co.from=ar,co.fromNow=rr,co.to=or,co.toNow=ir,co.get=gn,co.invalidAt=Tr,co.isAfter=Ga,co.isBefore=Wa,co.isBetween=Ya,co.isSame=qa,co.isSameOrAfter=Xa,co.isSameOrBefore=$a,co.isValid=Cr,co.lang=sr,co.locale=lr,co.localeData=cr,co.max=Je,co.min=Ze,co.parsingFlags=_r,co.set=bn,co.startOf=br,co.subtract=Ma,co.toArray=kr,co.toObject=Er,co.toDate=wr,co.toISOString=nr,co.inspect=tr,"undefined"!=typeof Symbol&&null!=Symbol.for&&(co[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),co.toJSON=Sr,co.toString=Qa,co.unix=xr,co.valueOf=yr,co.creationData=Or,co.eraName=Dr,co.eraNarrow=Lr,co.eraAbbr=Ir,co.eraYear=Pr,co.year=vt,co.isLeapYear=yt,co.weekYear=Gr,co.isoWeekYear=Wr,co.quarter=co.quarters=Qr,co.month=pt,co.daysInMonth=ft,co.week=co.weeks=At,co.isoWeek=co.isoWeeks=Rt,co.weeksInYear=Xr,co.weeksInWeekYear=$r,co.isoWeeksInYear=Yr,co.isoWeeksInISOWeekYear=qr,co.date=no,co.day=co.days=Wt,co.weekday=Yt,co.isoWeekday=qt,co.dayOfYear=to,co.hour=co.hours=oe,co.minute=co.minutes=eo,co.second=co.seconds=oo,co.millisecond=co.milliseconds=ro,co.utcOffset=ga,co.utc=va,co.local=ya,co.parseZone=xa,co.hasAlignedHourOffset=wa,co.isDST=ka,co.isLocal=Sa,co.isUtcOffset=Ca,co.isUtc=_a,co.isUTC=_a,co.zoneAbbr=lo,co.zoneName=so,co.dates=_("dates accessor is deprecated. Use date instead.",no),co.months=_("months accessor is deprecated. Use month instead",pt),co.years=_("years accessor is deprecated. Use year instead",vt),co.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ba),co.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ea);var ho=L.prototype;function mo(n,t,e,a){var r=ye(),o=h().set(a,t);return r[e](o,n)}function go(n,t,e){if(u(n)&&(t=n,n=void 0),n=n||"",null!=t)return mo(n,t,e,"month");var a,r=[];for(a=0;a<12;a++)r[a]=mo(n,a,e,"month");return r}function bo(n,t,e,a){"boolean"==typeof n?(u(t)&&(e=t,t=void 0),t=t||""):(e=t=n,n=!1,u(t)&&(e=t,t=void 0),t=t||"");var r,o=ye(),i=n?o._week.dow:0,l=[];if(null!=e)return mo(t,(e+i)%7,a,"day");for(r=0;r<7;r++)l[r]=mo(t,(r+i)%7,a,"day");return l}function vo(n,t){return go(n,t,"months")}function yo(n,t){return go(n,t,"monthsShort")}function xo(n,t,e){return bo(n,t,e,"weekdays")}function wo(n,t,e){return bo(n,t,e,"weekdaysShort")}function ko(n,t,e){return bo(n,t,e,"weekdaysMin")}ho.calendar=P,ho.longDateFormat=Y,ho.invalidDate=X,ho.ordinal=J,ho.preparse=fo,ho.postformat=fo,ho.relativeTime=nn,ho.pastFuture=tn,ho.set=R,ho.eras=Nr,ho.erasParse=Ar,ho.erasConvertYear=Rr,ho.erasAbbrRegex=Fr,ho.erasNameRegex=Mr,ho.erasNarrowRegex=jr,ho.months=lt,ho.monthsShort=st,ho.monthsParse=ut,ho.monthsRegex=mt,ho.monthsShortRegex=ht,ho.week=_t,ho.firstDayOfYear=Nt,ho.firstDayOfWeek=Ot,ho.weekdays=Ut,ho.weekdaysMin=Ht,ho.weekdaysShort=Vt,ho.weekdaysParse=Gt,ho.weekdaysRegex=Xt,ho.weekdaysShortRegex=$t,ho.weekdaysMinRegex=Zt,ho.isPM=ae,ho.meridiem=ie,ge("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===pn(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=_("moment.lang is deprecated. Use moment.locale instead.",ge),a.langData=_("moment.langData is deprecated. Use moment.localeData instead.",ye);var Eo=Math.abs;function So(){var n=this._data;return this._milliseconds=Eo(this._milliseconds),this._days=Eo(this._days),this._months=Eo(this._months),n.milliseconds=Eo(n.milliseconds),n.seconds=Eo(n.seconds),n.minutes=Eo(n.minutes),n.hours=Eo(n.hours),n.months=Eo(n.months),n.years=Eo(n.years),this}function Co(n,t,e,a){var r=Na(t,e);return n._milliseconds+=a*r._milliseconds,n._days+=a*r._days,n._months+=a*r._months,n._bubble()}function _o(n,t){return Co(this,n,t,1)}function To(n,t){return Co(this,n,t,-1)}function Oo(n){return n<0?Math.floor(n):Math.ceil(n)}function No(){var n,t,e,a,r,o=this._milliseconds,i=this._days,l=this._months,s=this._data;return o>=0&&i>=0&&l>=0||o<=0&&i<=0&&l<=0||(o+=864e5*Oo(Ro(l)+i),i=0,l=0),s.milliseconds=o%1e3,n=dn(o/1e3),s.seconds=n%60,t=dn(n/60),s.minutes=t%60,e=dn(t/60),s.hours=e%24,i+=dn(e/24),l+=r=dn(Ao(i)),i-=Oo(Ro(r)),a=dn(l/12),l%=12,s.days=i,s.months=l,s.years=a,this}function Ao(n){return 4800*n/146097}function Ro(n){return 146097*n/4800}function Do(n){if(!this.isValid())return NaN;var t,e,a=this._milliseconds;if("month"===(n=rn(n))||"quarter"===n||"year"===n)switch(t=this._days+a/864e5,e=this._months+Ao(t),n){case"month":return e;case"quarter":return e/3;case"year":return e/12}else switch(t=this._days+Math.round(Ro(this._months)),n){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+n)}}function Lo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pn(this._months/12):NaN}function Io(n){return function(){return this.as(n)}}var Po=Io("ms"),Mo=Io("s"),Fo=Io("m"),jo=Io("h"),zo=Io("d"),Bo=Io("w"),Uo=Io("M"),Vo=Io("Q"),Ho=Io("y");function Ko(){return Na(this)}function Go(n){return n=rn(n),this.isValid()?this[n+"s"]():NaN}function Wo(n){return function(){return this.isValid()?this._data[n]:NaN}}var Yo=Wo("milliseconds"),qo=Wo("seconds"),Xo=Wo("minutes"),$o=Wo("hours"),Zo=Wo("days"),Jo=Wo("months"),Qo=Wo("years");function ni(){return dn(this.days()/7)}var ti=Math.round,ei={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ai(n,t,e,a,r){return r.relativeTime(t||1,!!e,n,a)}function ri(n,t,e,a){var r=Na(n).abs(),o=ti(r.as("s")),i=ti(r.as("m")),l=ti(r.as("h")),s=ti(r.as("d")),c=ti(r.as("M")),u=ti(r.as("w")),d=ti(r.as("y")),p=o<=e.ss&&["s",o]||o<e.s&&["ss",o]||i<=1&&["m"]||i<e.m&&["mm",i]||l<=1&&["h"]||l<e.h&&["hh",l]||s<=1&&["d"]||s<e.d&&["dd",s];return null!=e.w&&(p=p||u<=1&&["w"]||u<e.w&&["ww",u]),(p=p||c<=1&&["M"]||c<e.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+n>0,p[4]=a,ai.apply(null,p)}function oi(n){return void 0===n?ti:"function"==typeof n&&(ti=n,!0)}function ii(n,t){return void 0!==ei[n]&&(void 0===t?ei[n]:(ei[n]=t,"s"===n&&(ei.ss=t-1),!0))}function li(n,t){if(!this.isValid())return this.localeData().invalidDate();var e,a,r=!1,o=ei;return"object"==typeof n&&(t=n,n=!1),"boolean"==typeof n&&(r=n),"object"==typeof t&&(o=Object.assign({},ei,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),a=ri(this,!r,o,e=this.localeData()),r&&(a=e.pastFuture(+this,a)),e.postformat(a)}var si=Math.abs;function ci(n){return(n>0)-(n<0)||+n}function ui(){if(!this.isValid())return this.localeData().invalidDate();var n,t,e,a,r,o,i,l,s=si(this._milliseconds)/1e3,c=si(this._days),u=si(this._months),d=this.asSeconds();return d?(n=dn(s/60),t=dn(n/60),s%=60,n%=60,e=dn(u/12),u%=12,a=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=ci(this._months)!==ci(d)?"-":"",i=ci(this._days)!==ci(d)?"-":"",l=ci(this._milliseconds)!==ci(d)?"-":"",r+"P"+(e?o+e+"Y":"")+(u?o+u+"M":"")+(c?i+c+"D":"")+(t||n||s?"T":"")+(t?l+t+"H":"")+(n?l+n+"M":"")+(s?l+a+"S":"")):"P0D"}var di=la.prototype;return di.isValid=oa,di.abs=So,di.add=_o,di.subtract=To,di.as=Do,di.asMilliseconds=Po,di.asSeconds=Mo,di.asMinutes=Fo,di.asHours=jo,di.asDays=zo,di.asWeeks=Bo,di.asMonths=Uo,di.asQuarters=Vo,di.asYears=Ho,di.valueOf=Lo,di._bubble=No,di.clone=Ko,di.get=Go,di.milliseconds=Yo,di.seconds=qo,di.minutes=Xo,di.hours=$o,di.days=Zo,di.weeks=ni,di.months=Jo,di.years=Qo,di.humanize=li,di.toISOString=ui,di.toString=ui,di.toJSON=ui,di.locale=lr,di.localeData=cr,di.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ui),di.lang=sr,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Mn("x",Rn),Mn("X",In),Un("X",(function(n,t,e){e._d=new Date(1e3*parseFloat(n))})),Un("x",(function(n,t,e){e._d=new Date(pn(n))})),
|
|
500
500
|
//! moment.js
|
|
501
|
-
a.version="2.29.3",r($e),a.fn=co,a.min=na,a.max=ta,a.now=ea,a.utc=h,a.unix=uo,a.months=vo,a.isDate=d,a.locale=ge,a.invalid=v,a.duration=Na,a.isMoment=E,a.weekdays=xo,a.parseZone=po,a.localeData=ye,a.isDuration=sa,a.monthsShort=yo,a.weekdaysMin=ko,a.defineLocale=be,a.updateLocale=ve,a.locales=xe,a.weekdaysShort=wo,a.normalizeUnits=rn,a.relativeTimeRounding=oi,a.relativeTimeThreshold=ii,a.calendarFormat=Va,a.prototype=co,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}(C);var _=C.exports;const T="function"==typeof btoa,O="function"==typeof Buffer,N=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),A=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),R=((n=>{let t={};A.forEach(((n,e)=>t[n]=e))})(),String.fromCharCode.bind(String)),D=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),n=>n.replace(/=/g,"").replace(/[+\/]/g,(n=>"+"==n?"-":"_"))),L=n=>{let t,e,a,r,o="";const i=n.length%3;for(let i=0;i<n.length;){if((e=n.charCodeAt(i++))>255||(a=n.charCodeAt(i++))>255||(r=n.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=e<<16|a<<8|r,o+=A[t>>18&63]+A[t>>12&63]+A[t>>6&63]+A[63&t]}return i?o.slice(0,i-3)+"===".substring(i):o},I=T?n=>btoa(n):O?n=>Buffer.from(n,"binary").toString("base64"):L,P=O?n=>Buffer.from(n).toString("base64"):n=>{let t=[];for(let e=0,a=n.length;e<a;e+=4096)t.push(R.apply(null,n.subarray(e,e+4096)));return I(t.join(""))},M=n=>{if(n.length<2)return(t=n.charCodeAt(0))<128?n:t<2048?R(192|t>>>6)+R(128|63&t):R(224|t>>>12&15)+R(128|t>>>6&63)+R(128|63&t);var t=65536+1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320);return R(240|t>>>18&7)+R(128|t>>>12&63)+R(128|t>>>6&63)+R(128|63&t)},F=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,j=n=>n.replace(F,M),z=O?n=>Buffer.from(n,"utf8").toString("base64"):N?n=>P(N.encode(n)):n=>I(j(n)),B=(n,t=!1)=>t?D(z(n)):z(n),U=B;var V;!function(n){n.default="YYYY-MM-DDTHH:mm:ss",n.params="YYYY-MM-DD HH:mm:ss",n.url="YYYYMMDDTHHmmss"}(V||(V={}));var H=function(){var n=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()},K=function(n){var t=n;if("https:"===document.location.protocol)if(n.startsWith("http:"))t="/visProxy/"+(e=(n=n.replace("http://","")).substring(0,n.indexOf("/")))+"/play"+(a=n.substring(n.indexOf("/")));else if(n.startsWith("ws:")){var e=(n=n.replace("http://","")).substring(0,n.indexOf("/")),a=n.substring(n.indexOf("/"));t="wss://"+window.location.host+"/visProxy/"+e+"/play"+a}return t},G=function(n){return"".concat((n/Math.pow(1024,2)).toFixed(2),"MB")},W=function(n){var t=Math.floor(n/3600),e=Math.floor(n%3600/60),a=Math.floor(n%60);return"".concat(t>0?t+"小时":"").concat(e>0?e+"分":"").concat(a>0?a+"秒":"")},Y=function(n){var t=Math.floor(n/3600),e=Math.floor(n%3600/60),a=Math.floor(n%60);return"".concat(t>=10?t:"0"+t,":").concat(e>=10?e:"0"+e,":").concat(a>=10?a:"0"+a)},q=function(n){return _(n).format(V.default)+"Z"},X=function(n,t,e){var a=h(n.split("?"),2),r=a[0],o=a[1],i=new URLSearchParams(o);return i.set("beginTime",_(t).format(V.url)),i.set("endTime",_(e).format(V.url)),"".concat(r,"?").concat(i.toString())},$=function(){function n(n){this.player=null,this.preSpeed=1;var t=n.url,e=n.container,a=n.live,r=void 0===a||a,o=n.type,i=n.startTime,l=n.endTime,s=function(n,t,e,a){var r=n,o="flv";return n.startsWith("ws://")&&(o="hk_ws",r=t?n:n.split("?")[0]),n.startsWith("rtsp://")&&(o="flv",r="/cloud/vic/convert/flv/live.flv?url=".concat(U(t?n:X(n,e,a)))),n.endsWith(".m3u8")&&(r=n,o="hls"),{url:K(r),type:o}}(t,r,i,l);this.type=o||s.type,this.url=s.url,this.startTime=i,this.endTime=l;var c=document.createElement("video");if(c.className="vtx-player-video",c.muted=!0,this.video=c,"flv"===this.type&&w.isSupported()&&c&&(e.appendChild(c),this.player=w.createPlayer({type:"flv",isLive:r,url:this.url}),this.player.attachMediaElement(this.video),this.player.load()),"hls"===this.type&&E.isSupported()&&c&&(e.appendChild(c),this.player=new E,this.player.loadSource(this.url),this.player.attachMedia(this.video)),"hk_ws"===this.type){this.player=new JSPlugin({szId:e.id,szBasePath:"/vis-reborn/",iMaxSplit:1,iCurrentSplit:1});var u=document.getElementById("".concat(e.id,"_playVideo0"));this.video=u}}return n.prototype.play=function(){return"flv"===this.type?this.player.play():"hls"===this.type?this.video.play():"hk_ws"===this.type?this.player.JS_Play(this.url,{playURL:this.url,mode:0},1):Promise.resolve()},n.prototype.playBack=function(){return"hk_ws"===this.type?this.player.JS_Play(this.url,{playURL:this.url,mode:0},1,q(this.startTime),q(this.endTime)):this.play()},n.prototype.destroy=function(){"flv"===this.type&&(this.player.destroy(),this.player=null,this.video.remove());"hls"===this.type&&(this.player.destroy(),this.player=null,this.video.remove());"hk_ws"===this.type&&this.player.JS_Stop(1)},n.prototype.capture=function(n,t){void 0===n&&(n="视频截图"),void 0===t&&(t=!0);var e=n;if(t&&(e+="-".concat(_().format("YYYYMMDDHHmmss"))),"hk_ws"===this.type){var a=this.player;a&&a.JS_CapturePicture(1,e,"JPEG")}else Z(this.video,e)},n.prototype.resize=function(){"hk_ws"===this.type&&this.player.JS_Resize()},n.prototype.setVolume=function(n){"flv"===this.type&&(this.player.volume=n/100);("hls"===this.type&&(this.video.volume=n/100),"hk_ws"===this.type)&&this.player.JS_SetVolume(1,n)},n.prototype.setSpeed=function(n){if("hk_ws"===this.type){var t=this.player;this.preSpeed/n==2&&t.JS_Slow(1),this.preSpeed/n==4&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})),this.preSpeed/n==8&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})),this.preSpeed/n==16&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})),n/this.preSpeed==2&&t.JS_Fast(1),n/this.preSpeed==4&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})),n/this.preSpeed==8&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})),n/this.preSpeed==16&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})),this.preSpeed=n}else this.video.playbackRate=n},n.prototype.onTimeUpdate=function(n){var t=this;this.video.addEventListener("timeupdate",(function(){var e=t.video.currentTime;"hk_ws"===t.type&&t.seekTime&&(e+=t.seekTime.diff(t.startTime,"seconds")),n(e,"hk_ws"===t.type?t.preSpeed:t.video.playbackRate)}))},n.prototype.seekTo=function(n){var t;return d(this,void 0,void 0,(function(){var e,a;return p(this,(function(r){switch(r.label){case 0:return"hk_ws"!==this.type?[3,2]:(e=this.player,a=null===(t=_(this.startTime))||void 0===t?void 0:t.add(n,"seconds"),[4,e.JS_Seek(1,q(a),q(this.endTime))]);case 1:return r.sent(),this.seekTime=a,[3,3];case 2:return this.video.currentTime=n,[2,Promise.resolve()];case 3:return[2]}}))}))},n.prototype.pause=function(n){"hk_ws"===this.type?this.player.JS_Pause(1).then((function(){return n&&n()})):(this.video.pause(),n&&n())},n.prototype.resume=function(n){"hk_ws"===this.type?this.player.JS_Resume(1).then((function(){return n&&n()})):(this.video.play(),n&&n())},n.prototype.startTalk=function(n){return"hk_ws"===this.type?this.player.JS_StartTalk(n):Promise.reject()},n.prototype.stopTalk=function(){return"hk_ws"===this.type?this.player.JS_StopTalk():Promise.reject()},n}(),Z=function(n,t){var e=document.createElement("canvas");e.width=n.videoWidth,e.height=n.videoHeight;var a,r=e.getContext("2d");r&&(r.drawImage(n,0,0,e.width,e.height),e.toBlob((function(n){if(n){a=URL.createObjectURL(n);var e=document.createElement("a");e.href=a,e.download="".concat(t,".png"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(a)}})))};c(".vtx-live-player {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #2b3d51;\n border: 1px solid transparent;\n}\n.vtx-live-player .controls {\n position: absolute;\n bottom: 0;\n display: flex;\n align-items: center;\n width: 100%;\n height: 30px;\n padding: 0 12px;\n background-color: #131d27;\n opacity: 0;\n transition: opacity 0.5s;\n}\n.vtx-live-player .controls .right {\n margin-left: auto;\n}\n.vtx-live-player .controls .right > div {\n height: 24px;\n}\n.vtx-live-player:hover .controls {\n opacity: 1;\n}\n.vtx-live-player video {\n width: 100%;\n height: 100%;\n object-fit: fill;\n}\n.vtx-live-player .sub-wnd {\n width: 100% !important;\n height: 100% !important;\n background-color: #2b3d51 !important;\n border: 1px solid transparent !important;\n}\n.vtx-live-player .error-container {\n position: absolute;\n top: 50%;\n left: 50%;\n display: flex;\n flex-direction: column;\n align-items: center;\n transform: translate(-50%, -50%);\n}\n.vtx-live-player .error-container .text {\n margin: 20px 0;\n font-size: 14px;\n color: rgba(255, 255, 255, 0.65);\n}\n.vtx-live-player .loading-container {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n");var J=function(n){return"function"==typeof n};function Q(n){"development"===process.env.NODE_ENV&&(J(n)||console.error("useMemoizedFn expected parameter is a function, got "+typeof n));var e=t.useRef(n);e.current=t.useMemo((function(){return n}),[n]);var a=t.useRef();return a.current||(a.current=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.current.apply(this,n)}),a.current}var nn,tn=(nn=t.useEffect,function(n,e){var a=t.useRef(!1);nn((function(){return function(){a.current=!1}}),[]),nn((function(){if(a.current)return n();a.current=!0}),e)}),en=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},an=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(en(arguments[t]));return n},rn=function(n,e){var a=e.manual,r=e.ready,o=void 0===r||r,i=e.defaultParams,l=void 0===i?[]:i,s=e.refreshDeps,c=void 0===s?[]:s,u=e.refreshDepsAction,d=t.useRef(!1);return d.current=!1,tn((function(){!a&&o&&(d.current=!0,n.run.apply(n,an(l)))}),[o]),tn((function(){d.current||a||(d.current=!0,u?u():n.refresh())}),an(c)),{onBefore:function(){if(!o)return{stopNow:!0}}}};function on(n,t){if(n===t)return!0;for(var e=0;e<n.length;e++)if(!Object.is(n[e],t[e]))return!1;return!0}function ln(n,e){var a=t.useRef({deps:e,obj:void 0,initialized:!1}).current;return!1!==a.initialized&&on(a.deps,e)||(a.deps=e,a.obj=n(),a.initialized=!0),a.obj}function sn(n){var e=t.useRef(n);return e.current=n,e}rn.onInit=function(n){var t=n.ready,e=void 0===t||t;return{loading:!n.manual&&e}};var cn=function(n){"development"===process.env.NODE_ENV&&(J(n)||console.error("useUnmount expected parameter is a function, got "+typeof n));var e=sn(n);t.useEffect((function(){return function(){e.current()}}),[])},un=function(){return un=Object.assign||function(n){for(var t,e=1,a=arguments.length;e<a;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},un.apply(this,arguments)},dn=new Map,pn=new Map,fn={},hn=function(n,t){return fn[n]||(fn[n]=[]),fn[n].push(t),function(){var e=fn[n].indexOf(t);fn[n].splice(e,1)}},mn=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},gn=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(mn(arguments[t]));return n},bn=function(n,e){var a=e.cacheKey,r=e.cacheTime,o=void 0===r?3e5:r,i=e.staleTime,l=void 0===i?0:i,s=e.setCache,c=e.getCache,u=t.useRef(),d=t.useRef(),p=function(n,t){s?s(t):function(n,t,e){var a=dn.get(n);(null==a?void 0:a.timer)&&clearTimeout(a.timer);var r=void 0;t>-1&&(r=setTimeout((function(){dn.delete(n)}),t)),dn.set(n,un(un({},e),{timer:r}))}(n,o,t),function(n,t){fn[n]&&fn[n].forEach((function(n){return n(t)}))}(n,t.data)},f=function(n,t){return void 0===t&&(t=[]),c?c(t):function(n){return dn.get(n)}(n)};return ln((function(){if(a){var t=f(a);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===l||(new Date).getTime()-t.time<=l)&&(n.state.loading=!1)),u.current=hn(a,(function(t){n.setState({data:t})}))}}),[]),cn((function(){var n;null===(n=u.current)||void 0===n||n.call(u)})),a?{onBefore:function(n){var t=f(a,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===l||(new Date).getTime()-t.time<=l?{loading:!1,data:null==t?void 0:t.data,returnNow:!0}:{data:null==t?void 0:t.data}:{}},onRequest:function(n,t){var e=function(n){return pn.get(n)}(a);return e&&e!==d.current||(e=n.apply(void 0,gn(t)),d.current=e,function(n,t){pn.set(n,t),t.then((function(t){return pn.delete(n),t})).catch((function(){pn.delete(n)}))}(a,e)),{servicePromise:e}},onSuccess:function(t,e){var r;a&&(null===(r=u.current)||void 0===r||r.call(u),p(a,{data:t,params:e,time:(new Date).getTime()}),u.current=hn(a,(function(t){n.setState({data:t})})))},onMutate:function(t){var e;a&&(null===(e=u.current)||void 0===e||e.call(u),p(a,{data:t,params:n.state.params,time:(new Date).getTime()}),u.current=hn(a,(function(t){n.setState({data:t})})))}}:{}};var vn=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},yn="object"==typeof g&&g&&g.Object===Object&&g,xn=yn,wn="object"==typeof self&&self&&self.Object===Object&&self,kn=xn||wn||Function("return this")(),En=kn,Sn=function(){return En.Date.now()},Cn=/\s/;var _n=function(n){for(var t=n.length;t--&&Cn.test(n.charAt(t)););return t},Tn=_n,On=/^\s+/;var Nn=function(n){return n?n.slice(0,Tn(n)+1).replace(On,""):n},An=kn.Symbol,Rn=An,Dn=Object.prototype,Ln=Dn.hasOwnProperty,In=Dn.toString,Pn=Rn?Rn.toStringTag:void 0;var Mn=function(n){var t=Ln.call(n,Pn),e=n[Pn];try{n[Pn]=void 0;var a=!0}catch(n){}var r=In.call(n);return a&&(t?n[Pn]=e:delete n[Pn]),r},Fn=Object.prototype.toString;var jn=Mn,zn=function(n){return Fn.call(n)},Bn=An?An.toStringTag:void 0;var Un=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Bn&&Bn in Object(n)?jn(n):zn(n)};var Vn=function(n){return null!=n&&"object"==typeof n},Hn=Un,Kn=Vn;var Gn=function(n){return"symbol"==typeof n||Kn(n)&&"[object Symbol]"==Hn(n)},Wn=Nn,Yn=vn,qn=Gn,Xn=/^[-+]0x[0-9a-f]+$/i,$n=/^0b[01]+$/i,Zn=/^0o[0-7]+$/i,Jn=parseInt;var Qn=function(n){if("number"==typeof n)return n;if(qn(n))return NaN;if(Yn(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=Yn(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Wn(n);var e=$n.test(n);return e||Zn.test(n)?Jn(n.slice(2),e?2:8):Xn.test(n)?NaN:+n},nt=vn,tt=Sn,et=Qn,at=Math.max,rt=Math.min;var ot=function(n,t,e){var a,r,o,i,l,s,c=0,u=!1,d=!1,p=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function f(t){var e=a,o=r;return a=r=void 0,c=t,i=n.apply(o,e)}function h(n){return c=n,l=setTimeout(g,t),u?f(n):i}function m(n){var e=n-s;return void 0===s||e>=t||e<0||d&&n-c>=o}function g(){var n=tt();if(m(n))return b(n);l=setTimeout(g,function(n){var e=t-(n-s);return d?rt(e,o-(n-c)):e}(n))}function b(n){return l=void 0,p&&a?f(n):(a=r=void 0,i)}function v(){var n=tt(),e=m(n);if(a=arguments,r=this,s=n,e){if(void 0===l)return h(s);if(d)return clearTimeout(l),l=setTimeout(g,t),f(s)}return void 0===l&&(l=setTimeout(g,t)),i}return t=et(t)||0,nt(e)&&(u=!!e.leading,o=(d="maxWait"in e)?at(et(e.maxWait)||0,t):o,p="trailing"in e?!!e.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,a=s=r=l=void 0},v.flush=function(){return void 0===l?i:b(tt())},v},it=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},lt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(it(arguments[t]));return n},st=function(n,e){var a=e.debounceWait,r=e.debounceLeading,o=e.debounceTrailing,i=e.debounceMaxWait,l=t.useRef(),s=t.useMemo((function(){var n={};return void 0!==r&&(n.leading=r),void 0!==o&&(n.trailing=o),void 0!==i&&(n.maxWait=i),n}),[r,o,i]);return t.useEffect((function(){if(a){var t=n.runAsync.bind(n);return l.current=ot((function(n){n()}),a,s),n.runAsync=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new Promise((function(e,a){var r;null===(r=l.current)||void 0===r||r.call(l,(function(){t.apply(void 0,lt(n)).then(e).catch(a)}))}))},function(){var e;null===(e=l.current)||void 0===e||e.cancel(),n.runAsync=t}}}),[a,s]),a?{onCancel:function(){var n;null===(n=l.current)||void 0===n||n.cancel()}}:{}},ct=function(n,e){var a=e.loadingDelay,r=t.useRef();if(!a)return{};var o=function(){r.current&&clearTimeout(r.current)};return{onBefore:function(){return o(),r.current=setTimeout((function(){n.setState({loading:!0})}),a),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}};function ut(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function dt(){return!ut()||"hidden"!==document.visibilityState}var pt=[];if(ut()){window.addEventListener("visibilitychange",(function(){if(dt())for(var n=0;n<pt.length;n++){(0,pt[n])()}}),!1)}var ft=function(n,e){var a=e.pollingInterval,r=e.pollingWhenHidden,o=void 0===r||r,i=t.useRef(),l=t.useRef(),s=function(){var n;i.current&&clearTimeout(i.current),null===(n=l.current)||void 0===n||n.call(l)};return tn((function(){a||s()}),[a]),a?{onBefore:function(){s()},onFinally:function(){var t;o||dt()?i.current=setTimeout((function(){n.refresh()}),a):l.current=(t=function(){n.refresh()},pt.push(t),function(){var n=pt.indexOf(t);pt.splice(n,1)})},onCancel:function(){s()}}:{}},ht=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},mt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(ht(arguments[t]));return n};var gt=[];if(ut()){var bt=function(){if(dt()&&(!ut()||void 0===navigator.onLine||navigator.onLine))for(var n=0;n<gt.length;n++){(0,gt[n])()}};window.addEventListener("visibilitychange",bt,!1),window.addEventListener("focus",bt,!1)}var vt=function(n,e){var a=e.refreshOnWindowFocus,r=e.focusTimespan,o=void 0===r?5e3:r,i=t.useRef(),l=function(){var n;null===(n=i.current)||void 0===n||n.call(i)};return t.useEffect((function(){if(a){var t=(r=n.refresh.bind(n),s=o,c=!1,function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];c||(c=!0,r.apply(void 0,mt(n)),setTimeout((function(){c=!1}),s))});i.current=(e=function(){t()},gt.push(e),function(){var n=gt.indexOf(e);gt.splice(n,1)})}var e,r,s,c;return function(){l()}}),[a,o]),cn((function(){l()})),{}},yt=function(n,e){var a=e.retryInterval,r=e.retryCount,o=t.useRef(),i=t.useRef(0),l=t.useRef(!1);return r?{onBefore:function(){l.current||(i.current=0),l.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){i.current=0},onError:function(){if(i.current+=1,-1===r||i.current<=r){var t=null!=a?a:Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout((function(){l.current=!0,n.refresh()}),t)}else i.current=0},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current)}}:{}},xt=ot,wt=vn;var kt=function(n,t,e){var a=!0,r=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return wt(e)&&(a="leading"in e?!!e.leading:a,r="trailing"in e?!!e.trailing:r),xt(n,t,{leading:a,maxWait:t,trailing:r})},Et=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},St=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Et(arguments[t]));return n},Ct=function(n,e){var a=e.throttleWait,r=e.throttleLeading,o=e.throttleTrailing,i=t.useRef(),l={};return void 0!==r&&(l.leading=r),void 0!==o&&(l.trailing=o),t.useEffect((function(){if(a){var t=n.runAsync.bind(n);return i.current=kt((function(n){n()}),a,l),n.runAsync=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new Promise((function(e,a){var r;null===(r=i.current)||void 0===r||r.call(i,(function(){t.apply(void 0,St(n)).then(e).catch(a)}))}))},function(){var e;n.runAsync=t,null===(e=i.current)||void 0===e||e.cancel()}}}),[a,r,o]),a?{onCancel:function(){var n;null===(n=i.current)||void 0===n||n.cancel()}}:{}},_t=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},Tt=function(){return Tt=Object.assign||function(n){for(var t,e=1,a=arguments.length;e<a;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Tt.apply(this,arguments)},Ot=function(n,t,e,a){return new(e||(e=Promise))((function(r,o){function i(n){try{s(a.next(n))}catch(n){o(n)}}function l(n){try{s(a.throw(n))}catch(n){o(n)}}function s(n){var t;n.done?r(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(i,l)}s((a=a.apply(n,t||[])).next())}))},Nt=function(n,t){var e,a,r,o,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,a&&(r=2&o[0]?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,a=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(6===o[0]&&i.label<r[1]){i.label=r[1],r=o;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(o);break}r[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(n,i)}catch(n){o=[6,n],a=0}finally{e=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},At=function(n,t){var e={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&t.indexOf(a)<0&&(e[a]=n[a]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(n);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(n,a[r])&&(e[a[r]]=n[a[r]])}return e},Rt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},Dt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Rt(arguments[t]));return n},Lt=function(){function n(n,t,e,a){void 0===a&&(a={}),this.serviceRef=n,this.options=t,this.subscribe=e,this.initState=a,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Tt(Tt(Tt({},this.state),{loading:!t.manual}),a)}return n.prototype.setState=function(n){void 0===n&&(n={}),this.state=Tt(Tt({},this.state),n),this.subscribe()},n.prototype.runPluginHandler=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];var a=this.pluginImpls.map((function(e){var a;return null===(a=e[n])||void 0===a?void 0:a.call.apply(a,Dt([e],t))})).filter(Boolean);return Object.assign.apply(Object,Dt([{}],a))},n.prototype.runAsync=function(){for(var n,t,e,a,r,o,i,l,s,c,u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return Ot(this,void 0,void 0,(function(){var d,p,f,h,m,g,b,v,y,x,w;return Nt(this,(function(k){switch(k.label){case 0:if(this.count+=1,d=this.count,p=this.runPluginHandler("onBefore",u),f=p.stopNow,h=void 0!==f&&f,m=p.returnNow,g=void 0!==m&&m,b=At(p,["stopNow","returnNow"]),h)return[2,new Promise((function(){}))];if(this.setState(Tt({loading:!0,params:u},b)),g)return[2,Promise.resolve(b.data)];null===(t=(n=this.options).onBefore)||void 0===t||t.call(n,u),k.label=1;case 1:return k.trys.push([1,3,,4]),(v=this.runPluginHandler("onRequest",this.serviceRef.current,u).servicePromise)||(v=(w=this.serviceRef).current.apply(w,Dt(u))),[4,v];case 2:return y=k.sent(),d!==this.count?[2,new Promise((function(){}))]:(this.setState({data:y,error:void 0,loading:!1}),null===(a=(e=this.options).onSuccess)||void 0===a||a.call(e,y,u),this.runPluginHandler("onSuccess",y,u),null===(o=(r=this.options).onFinally)||void 0===o||o.call(r,u,y,void 0),d===this.count&&this.runPluginHandler("onFinally",u,y,void 0),[2,y]);case 3:if(x=k.sent(),d!==this.count)return[2,new Promise((function(){}))];throw this.setState({error:x,loading:!1}),null===(l=(i=this.options).onError)||void 0===l||l.call(i,x,u),this.runPluginHandler("onError",x,u),null===(c=(s=this.options).onFinally)||void 0===c||c.call(s,u,void 0,x),d===this.count&&this.runPluginHandler("onFinally",u,void 0,x),x;case 4:return[2]}}))}))},n.prototype.run=function(){for(var n=this,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.runAsync.apply(this,Dt(t)).catch((function(t){n.options.onError||console.error(t)}))},n.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},n.prototype.refresh=function(){this.run.apply(this,Dt(this.state.params||[]))},n.prototype.refreshAsync=function(){return this.runAsync.apply(this,Dt(this.state.params||[]))},n.prototype.mutate=function(n){var t;t=J(n)?n(this.state.data):n,this.runPluginHandler("onMutate",t),this.setState({data:t})},n}(),It=function(){return It=Object.assign||function(n){for(var t,e=1,a=arguments.length;e<a;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},It.apply(this,arguments)},Pt=function(n,t){var e={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&t.indexOf(a)<0&&(e[a]=n[a]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(n);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(n,a[r])&&(e[a[r]]=n[a[r]])}return e},Mt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},Ft=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Mt(arguments[t]));return n};function jt(n,e,a){void 0===e&&(e={}),void 0===a&&(a=[]);var r,o,i=e.manual,l=void 0!==i&&i,s=Pt(e,["manual"]),c=It({manual:l},s),u=sn(n),d=(r=_t(t.useState({}),2)[1],t.useCallback((function(){return r({})}),[])),p=ln((function(){var n=a.map((function(n){var t;return null===(t=null==n?void 0:n.onInit)||void 0===t?void 0:t.call(n,c)})).filter(Boolean);return new Lt(u,c,d,Object.assign.apply(Object,Ft([{}],n)))}),[]);return p.options=c,p.pluginImpls=a.map((function(n){return n(p,c)})),o=function(){if(!l){var n=p.state.params||e.defaultParams||[];p.run.apply(p,Ft(n))}},"development"===process.env.NODE_ENV&&(J(o)||console.error('useMount: parameter `fn` expected to be a function, but got "'+typeof o+'".')),t.useEffect((function(){null==o||o()}),[]),cn((function(){p.cancel()})),{loading:p.state.loading,data:p.state.data,error:p.state.error,params:p.state.params||[],cancel:Q(p.cancel.bind(p)),refresh:Q(p.refresh.bind(p)),refreshAsync:Q(p.refreshAsync.bind(p)),run:Q(p.run.bind(p)),runAsync:Q(p.runAsync.bind(p)),mutate:Q(p.mutate.bind(p))}}var zt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},Bt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(zt(arguments[t]));return n};function Ut(n,t,e){return jt(n,t,Bt(e||[],[st,ct,ft,vt,Ct,rn,bn,yt]))}var Vt=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ht(n,t){if(Vt)return n?J(n)?n():"current"in n?n.current:n:t}var Kt,Gt=(Kt=t.useEffect,function(n,e,a){var r=t.useRef(!1),o=t.useRef([]),i=t.useRef([]),l=t.useRef();Kt((function(){var t,s=(Array.isArray(a)?a:[a]).map((function(n){return Ht(n)}));if(!r.current)return r.current=!0,o.current=s,i.current=e,void(l.current=n());s.length===o.current.length&&on(s,o.current)&&on(e,i.current)||(null===(t=l.current)||void 0===t||t.call(l),o.current=s,i.current=e,l.current=n())})),cn((function(){var n;null===(n=l.current)||void 0===n||n.call(l),r.current=!1}))});
|
|
501
|
+
a.version="2.29.3",r($e),a.fn=co,a.min=na,a.max=ta,a.now=ea,a.utc=h,a.unix=uo,a.months=vo,a.isDate=d,a.locale=ge,a.invalid=v,a.duration=Na,a.isMoment=E,a.weekdays=xo,a.parseZone=po,a.localeData=ye,a.isDuration=sa,a.monthsShort=yo,a.weekdaysMin=ko,a.defineLocale=be,a.updateLocale=ve,a.locales=xe,a.weekdaysShort=wo,a.normalizeUnits=rn,a.relativeTimeRounding=oi,a.relativeTimeThreshold=ii,a.calendarFormat=Va,a.prototype=co,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}(C);var _=C.exports;const T="function"==typeof btoa,O="function"==typeof Buffer,N=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),A=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),R=((n=>{let t={};A.forEach(((n,e)=>t[n]=e))})(),String.fromCharCode.bind(String)),D=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),n=>n.replace(/=/g,"").replace(/[+\/]/g,(n=>"+"==n?"-":"_"))),L=n=>{let t,e,a,r,o="";const i=n.length%3;for(let i=0;i<n.length;){if((e=n.charCodeAt(i++))>255||(a=n.charCodeAt(i++))>255||(r=n.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=e<<16|a<<8|r,o+=A[t>>18&63]+A[t>>12&63]+A[t>>6&63]+A[63&t]}return i?o.slice(0,i-3)+"===".substring(i):o},I=T?n=>btoa(n):O?n=>Buffer.from(n,"binary").toString("base64"):L,P=O?n=>Buffer.from(n).toString("base64"):n=>{let t=[];for(let e=0,a=n.length;e<a;e+=4096)t.push(R.apply(null,n.subarray(e,e+4096)));return I(t.join(""))},M=n=>{if(n.length<2)return(t=n.charCodeAt(0))<128?n:t<2048?R(192|t>>>6)+R(128|63&t):R(224|t>>>12&15)+R(128|t>>>6&63)+R(128|63&t);var t=65536+1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320);return R(240|t>>>18&7)+R(128|t>>>12&63)+R(128|t>>>6&63)+R(128|63&t)},F=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,j=n=>n.replace(F,M),z=O?n=>Buffer.from(n,"utf8").toString("base64"):N?n=>P(N.encode(n)):n=>I(j(n)),B=(n,t=!1)=>t?D(z(n)):z(n),U=B;var V;!function(n){n.default="YYYY-MM-DDTHH:mm:ss",n.params="YYYY-MM-DD HH:mm:ss",n.url="YYYYMMDDTHHmmss"}(V||(V={}));var H=function(){var n=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()},K=function(n){var t=n;if("https:"===document.location.protocol)if(n.startsWith("http:"))t="/visProxy/"+(e=(n=n.replace("http://","")).substring(0,n.indexOf("/")))+"/play"+(a=n.substring(n.indexOf("/")));else if(n.startsWith("ws:")){var e=(n=n.replace("http://","")).substring(0,n.indexOf("/")),a=n.substring(n.indexOf("/"));t="wss://"+window.location.host+"/visProxy/"+e+"/play"+a}return t},G=function(n){return"".concat((n/Math.pow(1024,2)).toFixed(2),"MB")},W=function(n){var t=Math.floor(n/3600),e=Math.floor(n%3600/60),a=Math.floor(n%60);return"".concat(t>0?t+"小时":"").concat(e>0?e+"分":"").concat(a>0?a+"秒":"")},Y=function(n){var t=Math.floor(n/3600),e=Math.floor(n%3600/60),a=Math.floor(n%60);return"".concat(t>=10?t:"0"+t,":").concat(e>=10?e:"0"+e,":").concat(a>=10?a:"0"+a)},q=function(n){return _(n).format(V.default)+"Z"},X=function(n,t,e){var a=h(n.split("?"),2),r=a[0],o=a[1],i=new URLSearchParams(o);return i.set("beginTime",_(t).format(V.url)),i.set("endTime",_(e).format(V.url)),"".concat(r,"?").concat(i.toString())},$=function(){function n(n){this.player=null,this.preSpeed=1;var t=n.url,e=n.container,a=n.live,r=void 0===a||a,o=n.type,i=n.startTime,l=n.endTime,s=function(n,t,e,a){var r=n,o="flv";return n.startsWith("ws://")&&(o="hk_ws",r=t?n:n.split("?")[0]),n.startsWith("rtsp://")&&(o="flv",r="/cloud/vic/convert/flv/live.flv?url=".concat(U(t?n:X(n,e,a)))),n.endsWith(".m3u8")&&(r=n,o="hls"),{url:K(r),type:o}}(t,r,i,l);this.type=o||s.type,this.url=s.url,this.startTime=i,this.endTime=l;var c=document.createElement("video");if(c.className="vtx-player-video",c.muted=!0,this.video=c,"flv"===this.type&&w.isSupported()&&c&&(e.appendChild(c),this.player=w.createPlayer({type:"flv",isLive:r,url:this.url}),this.player.attachMediaElement(this.video),this.player.load()),"hls"===this.type&&E.isSupported()&&c&&(e.appendChild(c),this.player=new E,this.player.loadSource(this.url),this.player.attachMedia(this.video)),"hk_ws"===this.type){this.player=new JSPlugin({szId:e.id,szBasePath:"./resources/",iMaxSplit:1,iCurrentSplit:1});var u=document.getElementById("".concat(e.id,"_playVideo0"));this.video=u}}return n.prototype.play=function(){return"flv"===this.type?this.player.play():"hls"===this.type?this.video.play():"hk_ws"===this.type?this.player.JS_Play(this.url,{playURL:this.url,mode:0},1):Promise.resolve()},n.prototype.playBack=function(){return"hk_ws"===this.type?this.player.JS_Play(this.url,{playURL:this.url,mode:0},1,q(this.startTime),q(this.endTime)):this.play()},n.prototype.destroy=function(){"flv"===this.type&&(this.player.destroy(),this.player=null,this.video.remove());"hls"===this.type&&(this.player.destroy(),this.player=null,this.video.remove());"hk_ws"===this.type&&this.player.JS_Stop(1)},n.prototype.capture=function(n,t){void 0===n&&(n="视频截图"),void 0===t&&(t=!0);var e=n;if(t&&(e+="-".concat(_().format("YYYYMMDDHHmmss"))),"hk_ws"===this.type){var a=this.player;a&&a.JS_CapturePicture(1,e,"JPEG")}else Z(this.video,e)},n.prototype.resize=function(){"hk_ws"===this.type&&this.player.JS_Resize()},n.prototype.setVolume=function(n){"flv"===this.type&&(this.player.volume=n/100);("hls"===this.type&&(this.video.volume=n/100),"hk_ws"===this.type)&&this.player.JS_SetVolume(1,n)},n.prototype.setSpeed=function(n){if("hk_ws"===this.type){var t=this.player;this.preSpeed/n==2&&t.JS_Slow(1),this.preSpeed/n==4&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})),this.preSpeed/n==8&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})),this.preSpeed/n==16&&t.JS_Slow(1).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})).then((function(){return t.JS_Slow(1)})),n/this.preSpeed==2&&t.JS_Fast(1),n/this.preSpeed==4&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})),n/this.preSpeed==8&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})),n/this.preSpeed==16&&t.JS_Fast(1).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})).then((function(){return t.JS_Fast(1)})),this.preSpeed=n}else this.video.playbackRate=n},n.prototype.onTimeUpdate=function(n){var t=this;this.video.addEventListener("timeupdate",(function(){var e=t.video.currentTime;"hk_ws"===t.type&&t.seekTime&&(e+=t.seekTime.diff(t.startTime,"seconds")),n(e,"hk_ws"===t.type?t.preSpeed:t.video.playbackRate)}))},n.prototype.seekTo=function(n){var t;return d(this,void 0,void 0,(function(){var e,a;return p(this,(function(r){switch(r.label){case 0:return"hk_ws"!==this.type?[3,2]:(e=this.player,a=null===(t=_(this.startTime))||void 0===t?void 0:t.add(n,"seconds"),[4,e.JS_Seek(1,q(a),q(this.endTime))]);case 1:return r.sent(),this.seekTime=a,[3,3];case 2:return this.video.currentTime=n,[2,Promise.resolve()];case 3:return[2]}}))}))},n.prototype.pause=function(n){"hk_ws"===this.type?this.player.JS_Pause(1).then((function(){return n&&n()})):(this.video.pause(),n&&n())},n.prototype.resume=function(n){"hk_ws"===this.type?this.player.JS_Resume(1).then((function(){return n&&n()})):(this.video.play(),n&&n())},n.prototype.startTalk=function(n){return"hk_ws"===this.type?this.player.JS_StartTalk(n):Promise.reject()},n.prototype.stopTalk=function(){return"hk_ws"===this.type?this.player.JS_StopTalk():Promise.reject()},n}(),Z=function(n,t){var e=document.createElement("canvas");e.width=n.videoWidth,e.height=n.videoHeight;var a,r=e.getContext("2d");r&&(r.drawImage(n,0,0,e.width,e.height),e.toBlob((function(n){if(n){a=URL.createObjectURL(n);var e=document.createElement("a");e.href=a,e.download="".concat(t,".png"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(a)}})))};c(".vtx-live-player {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #2b3d51;\n border: 1px solid transparent;\n}\n.vtx-live-player .controls {\n position: absolute;\n bottom: 0;\n display: flex;\n align-items: center;\n width: 100%;\n height: 30px;\n padding: 0 12px;\n background-color: #131d27;\n opacity: 0;\n transition: opacity 0.5s;\n}\n.vtx-live-player .controls .right {\n margin-left: auto;\n}\n.vtx-live-player .controls .right > div {\n height: 24px;\n}\n.vtx-live-player:hover .controls {\n opacity: 1;\n}\n.vtx-live-player video {\n width: 100%;\n height: 100%;\n object-fit: fill;\n}\n.vtx-live-player .sub-wnd {\n width: 100% !important;\n height: 100% !important;\n background-color: #2b3d51 !important;\n border: 1px solid transparent !important;\n}\n.vtx-live-player .error-container {\n position: absolute;\n top: 50%;\n left: 50%;\n display: flex;\n flex-direction: column;\n align-items: center;\n transform: translate(-50%, -50%);\n}\n.vtx-live-player .error-container .text {\n margin: 20px 0;\n font-size: 14px;\n color: rgba(255, 255, 255, 0.65);\n}\n.vtx-live-player .loading-container {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n");var J=function(n){return"function"==typeof n};function Q(n){"development"===process.env.NODE_ENV&&(J(n)||console.error("useMemoizedFn expected parameter is a function, got "+typeof n));var e=t.useRef(n);e.current=t.useMemo((function(){return n}),[n]);var a=t.useRef();return a.current||(a.current=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.current.apply(this,n)}),a.current}var nn,tn=(nn=t.useEffect,function(n,e){var a=t.useRef(!1);nn((function(){return function(){a.current=!1}}),[]),nn((function(){if(a.current)return n();a.current=!0}),e)}),en=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},an=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(en(arguments[t]));return n},rn=function(n,e){var a=e.manual,r=e.ready,o=void 0===r||r,i=e.defaultParams,l=void 0===i?[]:i,s=e.refreshDeps,c=void 0===s?[]:s,u=e.refreshDepsAction,d=t.useRef(!1);return d.current=!1,tn((function(){!a&&o&&(d.current=!0,n.run.apply(n,an(l)))}),[o]),tn((function(){d.current||a||(d.current=!0,u?u():n.refresh())}),an(c)),{onBefore:function(){if(!o)return{stopNow:!0}}}};function on(n,t){if(n===t)return!0;for(var e=0;e<n.length;e++)if(!Object.is(n[e],t[e]))return!1;return!0}function ln(n,e){var a=t.useRef({deps:e,obj:void 0,initialized:!1}).current;return!1!==a.initialized&&on(a.deps,e)||(a.deps=e,a.obj=n(),a.initialized=!0),a.obj}function sn(n){var e=t.useRef(n);return e.current=n,e}rn.onInit=function(n){var t=n.ready,e=void 0===t||t;return{loading:!n.manual&&e}};var cn=function(n){"development"===process.env.NODE_ENV&&(J(n)||console.error("useUnmount expected parameter is a function, got "+typeof n));var e=sn(n);t.useEffect((function(){return function(){e.current()}}),[])},un=function(){return un=Object.assign||function(n){for(var t,e=1,a=arguments.length;e<a;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},un.apply(this,arguments)},dn=new Map,pn=new Map,fn={},hn=function(n,t){return fn[n]||(fn[n]=[]),fn[n].push(t),function(){var e=fn[n].indexOf(t);fn[n].splice(e,1)}},mn=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},gn=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(mn(arguments[t]));return n},bn=function(n,e){var a=e.cacheKey,r=e.cacheTime,o=void 0===r?3e5:r,i=e.staleTime,l=void 0===i?0:i,s=e.setCache,c=e.getCache,u=t.useRef(),d=t.useRef(),p=function(n,t){s?s(t):function(n,t,e){var a=dn.get(n);(null==a?void 0:a.timer)&&clearTimeout(a.timer);var r=void 0;t>-1&&(r=setTimeout((function(){dn.delete(n)}),t)),dn.set(n,un(un({},e),{timer:r}))}(n,o,t),function(n,t){fn[n]&&fn[n].forEach((function(n){return n(t)}))}(n,t.data)},f=function(n,t){return void 0===t&&(t=[]),c?c(t):function(n){return dn.get(n)}(n)};return ln((function(){if(a){var t=f(a);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===l||(new Date).getTime()-t.time<=l)&&(n.state.loading=!1)),u.current=hn(a,(function(t){n.setState({data:t})}))}}),[]),cn((function(){var n;null===(n=u.current)||void 0===n||n.call(u)})),a?{onBefore:function(n){var t=f(a,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===l||(new Date).getTime()-t.time<=l?{loading:!1,data:null==t?void 0:t.data,returnNow:!0}:{data:null==t?void 0:t.data}:{}},onRequest:function(n,t){var e=function(n){return pn.get(n)}(a);return e&&e!==d.current||(e=n.apply(void 0,gn(t)),d.current=e,function(n,t){pn.set(n,t),t.then((function(t){return pn.delete(n),t})).catch((function(){pn.delete(n)}))}(a,e)),{servicePromise:e}},onSuccess:function(t,e){var r;a&&(null===(r=u.current)||void 0===r||r.call(u),p(a,{data:t,params:e,time:(new Date).getTime()}),u.current=hn(a,(function(t){n.setState({data:t})})))},onMutate:function(t){var e;a&&(null===(e=u.current)||void 0===e||e.call(u),p(a,{data:t,params:n.state.params,time:(new Date).getTime()}),u.current=hn(a,(function(t){n.setState({data:t})})))}}:{}};var vn=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},yn="object"==typeof g&&g&&g.Object===Object&&g,xn=yn,wn="object"==typeof self&&self&&self.Object===Object&&self,kn=xn||wn||Function("return this")(),En=kn,Sn=function(){return En.Date.now()},Cn=/\s/;var _n=function(n){for(var t=n.length;t--&&Cn.test(n.charAt(t)););return t},Tn=_n,On=/^\s+/;var Nn=function(n){return n?n.slice(0,Tn(n)+1).replace(On,""):n},An=kn.Symbol,Rn=An,Dn=Object.prototype,Ln=Dn.hasOwnProperty,In=Dn.toString,Pn=Rn?Rn.toStringTag:void 0;var Mn=function(n){var t=Ln.call(n,Pn),e=n[Pn];try{n[Pn]=void 0;var a=!0}catch(n){}var r=In.call(n);return a&&(t?n[Pn]=e:delete n[Pn]),r},Fn=Object.prototype.toString;var jn=Mn,zn=function(n){return Fn.call(n)},Bn=An?An.toStringTag:void 0;var Un=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Bn&&Bn in Object(n)?jn(n):zn(n)};var Vn=function(n){return null!=n&&"object"==typeof n},Hn=Un,Kn=Vn;var Gn=function(n){return"symbol"==typeof n||Kn(n)&&"[object Symbol]"==Hn(n)},Wn=Nn,Yn=vn,qn=Gn,Xn=/^[-+]0x[0-9a-f]+$/i,$n=/^0b[01]+$/i,Zn=/^0o[0-7]+$/i,Jn=parseInt;var Qn=function(n){if("number"==typeof n)return n;if(qn(n))return NaN;if(Yn(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=Yn(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Wn(n);var e=$n.test(n);return e||Zn.test(n)?Jn(n.slice(2),e?2:8):Xn.test(n)?NaN:+n},nt=vn,tt=Sn,et=Qn,at=Math.max,rt=Math.min;var ot=function(n,t,e){var a,r,o,i,l,s,c=0,u=!1,d=!1,p=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function f(t){var e=a,o=r;return a=r=void 0,c=t,i=n.apply(o,e)}function h(n){return c=n,l=setTimeout(g,t),u?f(n):i}function m(n){var e=n-s;return void 0===s||e>=t||e<0||d&&n-c>=o}function g(){var n=tt();if(m(n))return b(n);l=setTimeout(g,function(n){var e=t-(n-s);return d?rt(e,o-(n-c)):e}(n))}function b(n){return l=void 0,p&&a?f(n):(a=r=void 0,i)}function v(){var n=tt(),e=m(n);if(a=arguments,r=this,s=n,e){if(void 0===l)return h(s);if(d)return clearTimeout(l),l=setTimeout(g,t),f(s)}return void 0===l&&(l=setTimeout(g,t)),i}return t=et(t)||0,nt(e)&&(u=!!e.leading,o=(d="maxWait"in e)?at(et(e.maxWait)||0,t):o,p="trailing"in e?!!e.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,a=s=r=l=void 0},v.flush=function(){return void 0===l?i:b(tt())},v},it=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},lt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(it(arguments[t]));return n},st=function(n,e){var a=e.debounceWait,r=e.debounceLeading,o=e.debounceTrailing,i=e.debounceMaxWait,l=t.useRef(),s=t.useMemo((function(){var n={};return void 0!==r&&(n.leading=r),void 0!==o&&(n.trailing=o),void 0!==i&&(n.maxWait=i),n}),[r,o,i]);return t.useEffect((function(){if(a){var t=n.runAsync.bind(n);return l.current=ot((function(n){n()}),a,s),n.runAsync=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new Promise((function(e,a){var r;null===(r=l.current)||void 0===r||r.call(l,(function(){t.apply(void 0,lt(n)).then(e).catch(a)}))}))},function(){var e;null===(e=l.current)||void 0===e||e.cancel(),n.runAsync=t}}}),[a,s]),a?{onCancel:function(){var n;null===(n=l.current)||void 0===n||n.cancel()}}:{}},ct=function(n,e){var a=e.loadingDelay,r=t.useRef();if(!a)return{};var o=function(){r.current&&clearTimeout(r.current)};return{onBefore:function(){return o(),r.current=setTimeout((function(){n.setState({loading:!0})}),a),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}};function ut(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function dt(){return!ut()||"hidden"!==document.visibilityState}var pt=[];if(ut()){window.addEventListener("visibilitychange",(function(){if(dt())for(var n=0;n<pt.length;n++){(0,pt[n])()}}),!1)}var ft=function(n,e){var a=e.pollingInterval,r=e.pollingWhenHidden,o=void 0===r||r,i=t.useRef(),l=t.useRef(),s=function(){var n;i.current&&clearTimeout(i.current),null===(n=l.current)||void 0===n||n.call(l)};return tn((function(){a||s()}),[a]),a?{onBefore:function(){s()},onFinally:function(){var t;o||dt()?i.current=setTimeout((function(){n.refresh()}),a):l.current=(t=function(){n.refresh()},pt.push(t),function(){var n=pt.indexOf(t);pt.splice(n,1)})},onCancel:function(){s()}}:{}},ht=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},mt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(ht(arguments[t]));return n};var gt=[];if(ut()){var bt=function(){if(dt()&&(!ut()||void 0===navigator.onLine||navigator.onLine))for(var n=0;n<gt.length;n++){(0,gt[n])()}};window.addEventListener("visibilitychange",bt,!1),window.addEventListener("focus",bt,!1)}var vt=function(n,e){var a=e.refreshOnWindowFocus,r=e.focusTimespan,o=void 0===r?5e3:r,i=t.useRef(),l=function(){var n;null===(n=i.current)||void 0===n||n.call(i)};return t.useEffect((function(){if(a){var t=(r=n.refresh.bind(n),s=o,c=!1,function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];c||(c=!0,r.apply(void 0,mt(n)),setTimeout((function(){c=!1}),s))});i.current=(e=function(){t()},gt.push(e),function(){var n=gt.indexOf(e);gt.splice(n,1)})}var e,r,s,c;return function(){l()}}),[a,o]),cn((function(){l()})),{}},yt=function(n,e){var a=e.retryInterval,r=e.retryCount,o=t.useRef(),i=t.useRef(0),l=t.useRef(!1);return r?{onBefore:function(){l.current||(i.current=0),l.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){i.current=0},onError:function(){if(i.current+=1,-1===r||i.current<=r){var t=null!=a?a:Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout((function(){l.current=!0,n.refresh()}),t)}else i.current=0},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current)}}:{}},xt=ot,wt=vn;var kt=function(n,t,e){var a=!0,r=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return wt(e)&&(a="leading"in e?!!e.leading:a,r="trailing"in e?!!e.trailing:r),xt(n,t,{leading:a,maxWait:t,trailing:r})},Et=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},St=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Et(arguments[t]));return n},Ct=function(n,e){var a=e.throttleWait,r=e.throttleLeading,o=e.throttleTrailing,i=t.useRef(),l={};return void 0!==r&&(l.leading=r),void 0!==o&&(l.trailing=o),t.useEffect((function(){if(a){var t=n.runAsync.bind(n);return i.current=kt((function(n){n()}),a,l),n.runAsync=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new Promise((function(e,a){var r;null===(r=i.current)||void 0===r||r.call(i,(function(){t.apply(void 0,St(n)).then(e).catch(a)}))}))},function(){var e;n.runAsync=t,null===(e=i.current)||void 0===e||e.cancel()}}}),[a,r,o]),a?{onCancel:function(){var n;null===(n=i.current)||void 0===n||n.cancel()}}:{}},_t=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},Tt=function(){return Tt=Object.assign||function(n){for(var t,e=1,a=arguments.length;e<a;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Tt.apply(this,arguments)},Ot=function(n,t,e,a){return new(e||(e=Promise))((function(r,o){function i(n){try{s(a.next(n))}catch(n){o(n)}}function l(n){try{s(a.throw(n))}catch(n){o(n)}}function s(n){var t;n.done?r(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(i,l)}s((a=a.apply(n,t||[])).next())}))},Nt=function(n,t){var e,a,r,o,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,a&&(r=2&o[0]?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,a=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(6===o[0]&&i.label<r[1]){i.label=r[1],r=o;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(o);break}r[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(n,i)}catch(n){o=[6,n],a=0}finally{e=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},At=function(n,t){var e={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&t.indexOf(a)<0&&(e[a]=n[a]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(n);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(n,a[r])&&(e[a[r]]=n[a[r]])}return e},Rt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},Dt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Rt(arguments[t]));return n},Lt=function(){function n(n,t,e,a){void 0===a&&(a={}),this.serviceRef=n,this.options=t,this.subscribe=e,this.initState=a,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Tt(Tt(Tt({},this.state),{loading:!t.manual}),a)}return n.prototype.setState=function(n){void 0===n&&(n={}),this.state=Tt(Tt({},this.state),n),this.subscribe()},n.prototype.runPluginHandler=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];var a=this.pluginImpls.map((function(e){var a;return null===(a=e[n])||void 0===a?void 0:a.call.apply(a,Dt([e],t))})).filter(Boolean);return Object.assign.apply(Object,Dt([{}],a))},n.prototype.runAsync=function(){for(var n,t,e,a,r,o,i,l,s,c,u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return Ot(this,void 0,void 0,(function(){var d,p,f,h,m,g,b,v,y,x,w;return Nt(this,(function(k){switch(k.label){case 0:if(this.count+=1,d=this.count,p=this.runPluginHandler("onBefore",u),f=p.stopNow,h=void 0!==f&&f,m=p.returnNow,g=void 0!==m&&m,b=At(p,["stopNow","returnNow"]),h)return[2,new Promise((function(){}))];if(this.setState(Tt({loading:!0,params:u},b)),g)return[2,Promise.resolve(b.data)];null===(t=(n=this.options).onBefore)||void 0===t||t.call(n,u),k.label=1;case 1:return k.trys.push([1,3,,4]),(v=this.runPluginHandler("onRequest",this.serviceRef.current,u).servicePromise)||(v=(w=this.serviceRef).current.apply(w,Dt(u))),[4,v];case 2:return y=k.sent(),d!==this.count?[2,new Promise((function(){}))]:(this.setState({data:y,error:void 0,loading:!1}),null===(a=(e=this.options).onSuccess)||void 0===a||a.call(e,y,u),this.runPluginHandler("onSuccess",y,u),null===(o=(r=this.options).onFinally)||void 0===o||o.call(r,u,y,void 0),d===this.count&&this.runPluginHandler("onFinally",u,y,void 0),[2,y]);case 3:if(x=k.sent(),d!==this.count)return[2,new Promise((function(){}))];throw this.setState({error:x,loading:!1}),null===(l=(i=this.options).onError)||void 0===l||l.call(i,x,u),this.runPluginHandler("onError",x,u),null===(c=(s=this.options).onFinally)||void 0===c||c.call(s,u,void 0,x),d===this.count&&this.runPluginHandler("onFinally",u,void 0,x),x;case 4:return[2]}}))}))},n.prototype.run=function(){for(var n=this,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.runAsync.apply(this,Dt(t)).catch((function(t){n.options.onError||console.error(t)}))},n.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},n.prototype.refresh=function(){this.run.apply(this,Dt(this.state.params||[]))},n.prototype.refreshAsync=function(){return this.runAsync.apply(this,Dt(this.state.params||[]))},n.prototype.mutate=function(n){var t;t=J(n)?n(this.state.data):n,this.runPluginHandler("onMutate",t),this.setState({data:t})},n}(),It=function(){return It=Object.assign||function(n){for(var t,e=1,a=arguments.length;e<a;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},It.apply(this,arguments)},Pt=function(n,t){var e={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&t.indexOf(a)<0&&(e[a]=n[a]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(n);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(n,a[r])&&(e[a[r]]=n[a[r]])}return e},Mt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},Ft=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Mt(arguments[t]));return n};function jt(n,e,a){void 0===e&&(e={}),void 0===a&&(a=[]);var r,o,i=e.manual,l=void 0!==i&&i,s=Pt(e,["manual"]),c=It({manual:l},s),u=sn(n),d=(r=_t(t.useState({}),2)[1],t.useCallback((function(){return r({})}),[])),p=ln((function(){var n=a.map((function(n){var t;return null===(t=null==n?void 0:n.onInit)||void 0===t?void 0:t.call(n,c)})).filter(Boolean);return new Lt(u,c,d,Object.assign.apply(Object,Ft([{}],n)))}),[]);return p.options=c,p.pluginImpls=a.map((function(n){return n(p,c)})),o=function(){if(!l){var n=p.state.params||e.defaultParams||[];p.run.apply(p,Ft(n))}},"development"===process.env.NODE_ENV&&(J(o)||console.error('useMount: parameter `fn` expected to be a function, but got "'+typeof o+'".')),t.useEffect((function(){null==o||o()}),[]),cn((function(){p.cancel()})),{loading:p.state.loading,data:p.state.data,error:p.state.error,params:p.state.params||[],cancel:Q(p.cancel.bind(p)),refresh:Q(p.refresh.bind(p)),refreshAsync:Q(p.refreshAsync.bind(p)),run:Q(p.run.bind(p)),runAsync:Q(p.runAsync.bind(p)),mutate:Q(p.mutate.bind(p))}}var zt=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var a,r,o=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i},Bt=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(zt(arguments[t]));return n};function Ut(n,t,e){return jt(n,t,Bt(e||[],[st,ct,ft,vt,Ct,rn,bn,yt]))}var Vt=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ht(n,t){if(Vt)return n?J(n)?n():"current"in n?n.current:n:t}var Kt,Gt=(Kt=t.useEffect,function(n,e,a){var r=t.useRef(!1),o=t.useRef([]),i=t.useRef([]),l=t.useRef();Kt((function(){var t,s=(Array.isArray(a)?a:[a]).map((function(n){return Ht(n)}));if(!r.current)return r.current=!0,o.current=s,i.current=e,void(l.current=n());s.length===o.current.length&&on(s,o.current)&&on(e,i.current)||(null===(t=l.current)||void 0===t||t.call(l),o.current=s,i.current=e,l.current=n())})),cn((function(){var n;null===(n=l.current)||void 0===n||n.call(l),r.current=!1}))});
|
|
502
502
|
/*!
|
|
503
503
|
* JavaScript Cookie v2.2.1
|
|
504
504
|
* https://github.com/js-cookie/js-cookie
|