123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- webpackJsonp([0],{"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(t,e,n){var i=n("lOnJ");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"+tPU":function(t,e,n){n("xGkn");for(var i=n("7KvD"),r=n("hJx8"),s=n("/bQp"),a=n("dSzd")("toStringTag"),A="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),o=0;o<A.length;o++){var u=A[o],l=i[u],c=l&&l.prototype;c&&!c[a]&&r(c,a,u),s[u]=s.Array}},"//Fk":function(t,e,n){t.exports={default:n("U5ju"),__esModule:!0}},"/bQp":function(t,e){t.exports={}},"/ocq":function(t,e,n){"use strict";
- /*!
- * vue-router v3.5.1
- * (c) 2021 Evan You
- * @license MIT
- */function i(t,e){0}function r(t,e){for(var n in e)t[n]=e[n];return t}var s=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},A=/%2C/g,o=function(t){return encodeURIComponent(t).replace(s,a).replace(A,",")};function u(t){try{return decodeURIComponent(t)}catch(t){0}return t}var l=function(t){return null==t||"object"==typeof t?t:String(t)};function c(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),i=u(n.shift()),r=n.length>0?u(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}),e):e}function h(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return o(e);if(Array.isArray(n)){var i=[];return n.forEach(function(t){void 0!==t&&(null===t?i.push(o(e)):i.push(o(e)+"="+o(t)))}),i.join("&")}return o(e)+"="+o(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var d=/\/?$/;function f(t,e,n,i){var r=i&&i.options.stringifyQuery,s=e.query||{};try{s=p(s)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:s,params:e.params||{},fullPath:m(e,r),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(a.redirectedFrom=m(n,r)),Object.freeze(a)}function p(t){if(Array.isArray(t))return t.map(p);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=p(t[n]);return e}return t}var g=f(null,{path:"/"});function m(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;return void 0===r&&(r=""),(n||"/")+(e||h)(i)+r}function v(t,e,n){return e===g?t===e:!!e&&(t.path&&e.path?t.path.replace(d,"")===e.path.replace(d,"")&&(n||t.hash===e.hash&&y(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&y(t.query,e.query)&&y(t.params,e.params))))}function y(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),i=Object.keys(e).sort();return n.length===i.length&&n.every(function(n,r){var s=t[n];if(i[r]!==n)return!1;var a=e[n];return null==s||null==a?s===a:"object"==typeof s&&"object"==typeof a?y(s,a):String(s)===String(a)})}function B(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var i in n.instances){var r=n.instances[i],s=n.enteredCbs[i];if(r&&s){delete n.enteredCbs[i];for(var a=0;a<s.length;a++)r._isBeingDestroyed||s[a](r)}}}}var b={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,s=e.parent,a=e.data;a.routerView=!0;for(var A=s.$createElement,o=n.name,u=s.$route,l=s._routerViewCache||(s._routerViewCache={}),c=0,h=!1;s&&s._routerRoot!==s;){var d=s.$vnode?s.$vnode.data:{};d.routerView&&c++,d.keepAlive&&s._directInactive&&s._inactive&&(h=!0),s=s.$parent}if(a.routerViewDepth=c,h){var f=l[o],p=f&&f.component;return p?(f.configProps&&w(p,a,f.route,f.configProps),A(p,a,i)):A()}var g=u.matched[c],m=g&&g.components[o];if(!g||!m)return l[o]=null,A();l[o]={component:m},a.registerRouteInstance=function(t,e){var n=g.instances[o];(e&&n!==t||!e&&n===t)&&(g.instances[o]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){g.instances[o]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[o]&&(g.instances[o]=t.componentInstance),B(u)};var v=g.props&&g.props[o];return v&&(r(l[o],{route:u,configProps:v}),w(m,a,u,v)),A(m,a,i)}};function w(t,e,n,i){var s=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,i);if(s){s=e.props=r({},s);var a=e.attrs=e.attrs||{};for(var A in s)t.props&&A in t.props||(a[A]=s[A],delete s[A])}}function C(t,e,n){var i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var s=t.replace(/^\//,"").split("/"),a=0;a<s.length;a++){var A=s[a];".."===A?r.pop():"."!==A&&r.push(A)}return""!==r[0]&&r.unshift(""),r.join("/")}function _(t){return t.replace(/\/\//g,"/")}var T=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},E=M,S=x,k=function(t,e){return L(x(t,e),e)},U=L,I=R,F=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function x(t,e){for(var n,i=[],r=0,s=0,a="",A=e&&e.delimiter||"/";null!=(n=F.exec(t));){var o=n[0],u=n[1],l=n.index;if(a+=t.slice(s,l),s=l+o.length,u)a+=u[1];else{var c=t[s],h=n[2],d=n[3],f=n[4],p=n[5],g=n[6],m=n[7];a&&(i.push(a),a="");var v=null!=h&&null!=c&&c!==h,y="+"===g||"*"===g,B="?"===g||"*"===g,b=n[2]||A,w=f||p;i.push({name:d||r++,prefix:h||"",delimiter:b,optional:B,repeat:y,partial:v,asterisk:!!m,pattern:w?D(w):m?".*":"[^"+O(b)+"]+?"})}}return s<t.length&&(a+=t.substr(s)),a&&i.push(a),i}function Q(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function L(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"==typeof t[i]&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",H(e)));return function(e,i){for(var r="",s=e||{},a=(i||{}).pretty?Q:encodeURIComponent,A=0;A<t.length;A++){var o=t[A];if("string"!=typeof o){var u,l=s[o.name];if(null==l){if(o.optional){o.partial&&(r+=o.prefix);continue}throw new TypeError('Expected "'+o.name+'" to be defined')}if(T(l)){if(!o.repeat)throw new TypeError('Expected "'+o.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(o.optional)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var c=0;c<l.length;c++){if(u=a(l[c]),!n[A].test(u))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===c?o.prefix:o.delimiter)+u}}else{if(u=o.asterisk?encodeURI(l).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):a(l),!n[A].test(u))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but received "'+u+'"');r+=o.prefix+u}}else r+=o}return r}}function O(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function D(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function P(t,e){return t.keys=e,t}function H(t){return t&&t.sensitive?"":"i"}function R(t,e,n){T(e)||(n=e||n,e=[]);for(var i=(n=n||{}).strict,r=!1!==n.end,s="",a=0;a<t.length;a++){var A=t[a];if("string"==typeof A)s+=O(A);else{var o=O(A.prefix),u="(?:"+A.pattern+")";e.push(A),A.repeat&&(u+="(?:"+o+u+")*"),s+=u=A.optional?A.partial?o+"("+u+")?":"(?:"+o+"("+u+"))?":o+"("+u+")"}}var l=O(n.delimiter||"/"),c=s.slice(-l.length)===l;return i||(s=(c?s.slice(0,-l.length):s)+"(?:"+l+"(?=$))?"),s+=r?"$":i&&c?"":"(?="+l+"|$)",P(new RegExp("^"+s,H(n)),e)}function M(t,e,n){return T(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return P(t,e)}(t,e):T(t)?function(t,e,n){for(var i=[],r=0;r<t.length;r++)i.push(M(t[r],e,n).source);return P(new RegExp("(?:"+i.join("|")+")",H(n)),e)}(t,e,n):function(t,e,n){return R(x(t,n),e,n)}(t,e,n)}E.parse=S,E.compile=k,E.tokensToFunction=U,E.tokensToRegExp=I;var N=Object.create(null);function K(t,e,n){e=e||{};try{var i=N[t]||(N[t]=E.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),i(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function j(t,e,n,i){var s="string"==typeof t?{path:t}:t;if(s._normalized)return s;if(s.name){var a=(s=r({},t)).params;return a&&"object"==typeof a&&(s.params=r({},a)),s}if(!s.path&&s.params&&e){(s=r({},s))._normalized=!0;var A=r(r({},e.params),s.params);if(e.name)s.name=e.name,s.params=A;else if(e.matched.length){var o=e.matched[e.matched.length-1].path;s.path=K(o,A,e.path)}else 0;return s}var u=function(t){var e="",n="",i=t.indexOf("#");i>=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}(s.path||""),h=e&&e.path||"/",d=u.path?C(u.path,h,n||s.append):h,f=function(t,e,n){void 0===e&&(e={});var i,r=n||c;try{i=r(t||"")}catch(t){i={}}for(var s in e){var a=e[s];i[s]=Array.isArray(a)?a.map(l):l(a)}return i}(u.query,s.query,i&&i.options.parseQuery),p=s.hash||u.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:f,hash:p}}var V,G=[String,Object],$=[String,Array],W=function(){},z={name:"RouterLink",props:{to:{type:G,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:$,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,s=n.resolve(this.to,i,this.append),a=s.location,A=s.route,o=s.href,u={},l=n.options.linkActiveClass,c=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,p=null==c?"router-link-exact-active":c,g=null==this.activeClass?h:this.activeClass,m=null==this.exactActiveClass?p:this.exactActiveClass,y=A.redirectedFrom?f(null,j(A.redirectedFrom),null,n):A;u[m]=v(i,y,this.exactPath),u[g]=this.exact||this.exactPath?u[m]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,y);var B=u[m]?this.ariaCurrentValue:null,b=function(t){X(t)&&(e.replace?n.replace(a,W):n.push(a,W))},w={click:X};Array.isArray(this.event)?this.event.forEach(function(t){w[t]=b}):w[this.event]=b;var C={class:u},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:A,navigate:b,isActive:u[g],isExactActive:u[m]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?t():t("span",{},_)}if("a"===this.tag)C.on=w,C.attrs={href:o,"aria-current":B};else{var T=function t(e){if(e)for(var n,i=0;i<e.length;i++){if("a"===(n=e[i]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(T){T.isStatic=!1;var E=T.data=r({},T.data);for(var S in E.on=E.on||{},E.on){var k=E.on[S];S in w&&(E.on[S]=Array.isArray(k)?k:[k])}for(var U in w)U in E.on?E.on[U].push(w[U]):E.on[U]=b;var I=T.data.attrs=r({},T.data.attrs);I.href=o,I["aria-current"]=B}else C.on=w}return t(this.tag,C,this.$slots.default)}};function X(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function q(t){if(!q.installed||V!==t){q.installed=!0,V=t;var e=function(t){return void 0!==t},n=function(t,n){var i=t.$options._parentVnode;e(i)&&e(i=i.data)&&e(i=i.registerRouteInstance)&&i(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",b),t.component("RouterLink",z);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var Y="undefined"!=typeof window;function J(t,e,n,i,r){var s=e||[],a=n||Object.create(null),A=i||Object.create(null);t.forEach(function(t){!function t(e,n,i,r,s,a){var A=r.path;var o=r.name;0;var u=r.pathToRegexpOptions||{};var l=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return _(e.path+"/"+t)}(A,s,u.strict);"boolean"==typeof r.caseSensitive&&(u.sensitive=r.caseSensitive);var c={path:l,regex:function(t,e){var n=E(t,[],e);return n}(l,u),components:r.components||{default:r.component},alias:r.alias?"string"==typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:o,parent:s,matchAs:a,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};r.children&&r.children.forEach(function(r){var s=a?_(a+"/"+r.path):void 0;t(e,n,i,r,c,s)});n[c.path]||(e.push(c.path),n[c.path]=c);if(void 0!==r.alias)for(var h=Array.isArray(r.alias)?r.alias:[r.alias],d=0;d<h.length;++d){var f=h[d];0;var p={path:f,children:r.children};t(e,n,i,p,s,c.path||"/")}o&&(i[o]||(i[o]=c))}(s,a,A,t,r)});for(var o=0,u=s.length;o<u;o++)"*"===s[o]&&(s.push(s.splice(o,1)[0]),u--,o--);return{pathList:s,pathMap:a,nameMap:A}}function Z(t,e){var n=J(t),i=n.pathList,r=n.pathMap,s=n.nameMap;function a(t,n,a){var A=j(t,n,!1,e),u=A.name;if(u){var l=s[u];if(!l)return o(null,A);var c=l.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof A.params&&(A.params={}),n&&"object"==typeof n.params)for(var h in n.params)!(h in A.params)&&c.indexOf(h)>-1&&(A.params[h]=n.params[h]);return A.path=K(l.path,A.params),o(l,A,a)}if(A.path){A.params={};for(var d=0;d<i.length;d++){var f=i[d],p=r[f];if(tt(p.regex,A.path,A.params))return o(p,A,a)}}return o(null,A)}function A(t,n){var i=t.redirect,r="function"==typeof i?i(f(t,n,null,e)):i;if("string"==typeof r&&(r={path:r}),!r||"object"!=typeof r)return o(null,n);var A=r,u=A.name,l=A.path,c=n.query,h=n.hash,d=n.params;if(c=A.hasOwnProperty("query")?A.query:c,h=A.hasOwnProperty("hash")?A.hash:h,d=A.hasOwnProperty("params")?A.params:d,u){s[u];return a({_normalized:!0,name:u,query:c,hash:h,params:d},void 0,n)}if(l){var p=function(t,e){return C(t,e.parent?e.parent.path:"/",!0)}(l,t);return a({_normalized:!0,path:K(p,d),query:c,hash:h},void 0,n)}return o(null,n)}function o(t,n,i){return t&&t.redirect?A(t,i||n):t&&t.matchAs?function(t,e,n){var i=a({_normalized:!0,path:K(n,e.params)});if(i){var r=i.matched,s=r[r.length-1];return e.params=i.params,o(s,e)}return o(null,e)}(0,n,t.matchAs):f(t,n,i,e)}return{match:a,addRoute:function(t,e){var n="object"!=typeof t?s[t]:void 0;J([e||t],i,r,s,n),n&&J(n.alias.map(function(t){return{path:t,children:[e]}}),i,r,s,n)},getRoutes:function(){return i.map(function(t){return r[t]})},addRoutes:function(t){J(t,i,r,s)}}}function tt(t,e,n){var i=e.match(t);if(!i)return!1;if(!n)return!0;for(var r=1,s=i.length;r<s;++r){var a=t.keys[r-1];a&&(n[a.name||"pathMatch"]="string"==typeof i[r]?u(i[r]):i[r])}return!0}var et=Y&&window.performance&&window.performance.now?window.performance:Date;function nt(){return et.now().toFixed(3)}var it=nt();function rt(){return it}function st(t){return it=t}var at=Object.create(null);function At(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=r({},window.history.state);return n.key=rt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",lt),function(){window.removeEventListener("popstate",lt)}}function ot(t,e,n,i){if(t.app){var r=t.options.scrollBehavior;r&&t.app.$nextTick(function(){var s=function(){var t=rt();if(t)return at[t]}(),a=r.call(t,e,n,i?s:null);a&&("function"==typeof a.then?a.then(function(t){pt(t,s)}).catch(function(t){0}):pt(a,s))})}}function ut(){var t=rt();t&&(at[t]={x:window.pageXOffset,y:window.pageYOffset})}function lt(t){ut(),t.state&&t.state.key&&st(t.state.key)}function ct(t){return dt(t.x)||dt(t.y)}function ht(t){return{x:dt(t.x)?t.x:window.pageXOffset,y:dt(t.y)?t.y:window.pageYOffset}}function dt(t){return"number"==typeof t}var ft=/^#\d/;function pt(t,e){var n,i="object"==typeof t;if(i&&"string"==typeof t.selector){var r=ft.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(r){var s=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{x:i.left-n.left-e.x,y:i.top-n.top-e.y}}(r,s={x:dt((n=s).x)?n.x:0,y:dt(n.y)?n.y:0})}else ct(t)&&(e=ht(t))}else i&&ct(t)&&(e=ht(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var gt,mt=Y&&((-1===(gt=window.navigator.userAgent).indexOf("Android 2.")&&-1===gt.indexOf("Android 4.0")||-1===gt.indexOf("Mobile Safari")||-1!==gt.indexOf("Chrome")||-1!==gt.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function vt(t,e){ut();var n=window.history;try{if(e){var i=r({},n.state);i.key=rt(),n.replaceState(i,"",t)}else n.pushState({key:st(nt())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function yt(t){vt(t,!0)}function Bt(t,e,n){var i=function(r){r>=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}var bt={redirected:2,aborted:4,cancelled:8,duplicated:16};function wt(t,e){return _t(t,e,bt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return Tt.forEach(function(n){n in t&&(e[n]=t[n])}),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function Ct(t,e){return _t(t,e,bt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function _t(t,e,n,i){var r=new Error(i);return r._isRouter=!0,r.from=t,r.to=e,r.type=n,r}var Tt=["params","query","hash"];function Et(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function St(t,e){return Et(t)&&t._isRouter&&(null==e||t.type===e)}function kt(t){return function(e,n,i){var r=!1,s=0,a=null;Ut(t,function(t,e,n,A){if("function"==typeof t&&void 0===t.cid){r=!0,s++;var o,u=xt(function(e){var r;((r=e).__esModule||Ft&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:V.extend(e),n.components[A]=e,--s<=0&&i()}),l=xt(function(t){var e="Failed to resolve async component "+A+": "+t;a||(a=Et(t)?t:new Error(e),i(a))});try{o=t(u,l)}catch(t){l(t)}if(o)if("function"==typeof o.then)o.then(u,l);else{var c=o.component;c&&"function"==typeof c.then&&c.then(u,l)}}}),r||i()}}function Ut(t,e){return It(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function It(t){return Array.prototype.concat.apply([],t)}var Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function xt(t){var e=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var Qt=function(t,e){this.router=t,this.base=function(t){if(!t)if(Y){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Lt(t,e,n,i){var r=Ut(t,function(t,i,r,s){var a=function(t,e){"function"!=typeof t&&(t=V.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,i,r,s)}):n(a,i,r,s)});return It(i?r.reverse():r)}function Ot(t,e){if(e)return function(){return t.apply(e,arguments)}}Qt.prototype.listen=function(t){this.cb=t},Qt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Qt.prototype.onError=function(t){this.errorCbs.push(t)},Qt.prototype.transitionTo=function(t,e,n){var i,r=this;try{i=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach(function(e){e(t)}),t}var s=this.current;this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.router.afterHooks.forEach(function(t){t&&t(i,s)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(St(t,bt.redirected)&&s===g||(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)})))})},Qt.prototype.confirmTransition=function(t,e,n){var r=this,s=this.current;this.pending=t;var a,A,o=function(t){!St(t)&&Et(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):(i(),console.error(t))),n&&n(t)},u=t.matched.length-1,l=s.matched.length-1;if(v(t,s)&&u===l&&t.matched[u]===s.matched[l])return this.ensureURL(),o(((A=_t(a=s,t,bt.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",A));var c=function(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n<i&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),h=c.updated,d=c.deactivated,f=c.activated,p=function(e,n){if(r.pending!==t)return o(Ct(s,t));try{e(t,s,function(e){!1===e?(r.ensureURL(!0),o(function(t,e){return _t(t,e,bt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(s,t))):Et(e)?(r.ensureURL(!0),o(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(o(wt(s,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)})}catch(t){o(t)}};Bt([].concat(function(t){return Lt(t,"beforeRouteLeave",Ot,!0)}(d),this.router.beforeHooks,function(t){return Lt(t,"beforeRouteUpdate",Ot)}(h),f.map(function(t){return t.beforeEnter}),kt(f)),p,function(){Bt(function(t){return Lt(t,"beforeRouteEnter",function(t,e,n,i){return function(t,e,n){return function(i,r,s){return t(i,r,function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),s(t)})}}(t,n,i)})}(f).concat(r.router.resolveHooks),p,function(){if(r.pending!==t)return o(Ct(s,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick(function(){B(t)})})})},Qt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Qt.prototype.setupListeners=function(){},Qt.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=g,this.pending=null};var Dt=function(t){function e(e,n){t.call(this,e,n),this._startLocation=Pt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,i=mt&&n;i&&this.listeners.push(At());var r=function(){var n=t.current,r=Pt(t.base);t.current===g&&r===t._startLocation||t.transitionTo(r,function(t){i&&ot(e,t,n,!0)})};window.addEventListener("popstate",r),this.listeners.push(function(){window.removeEventListener("popstate",r)})}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){vt(_(i.base+t.fullPath)),ot(i.router,t,r,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){yt(_(i.base+t.fullPath)),ot(i.router,t,r,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(Pt(this.base)!==this.current.fullPath){var e=_(this.base+this.current.fullPath);t?vt(e):yt(e)}},e.prototype.getCurrentLocation=function(){return Pt(this.base)},e}(Qt);function Pt(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Ht=function(t){function e(e,n,i){t.call(this,e,n),i&&function(t){var e=Pt(t);if(!/^\/#/.test(e))return window.location.replace(_(t+"/#"+e)),!0}(this.base)||Rt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=mt&&e;n&&this.listeners.push(At());var i=function(){var e=t.current;Rt()&&t.transitionTo(Mt(),function(i){n&&ot(t.router,i,e,!0),mt||jt(i.fullPath)})},r=mt?"popstate":"hashchange";window.addEventListener(r,i),this.listeners.push(function(){window.removeEventListener(r,i)})}},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){Kt(t.fullPath),ot(i.router,t,r,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){jt(t.fullPath),ot(i.router,t,r,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Mt()!==e&&(t?Kt(e):jt(e))},e.prototype.getCurrentLocation=function(){return Mt()},e}(Qt);function Rt(){var t=Mt();return"/"===t.charAt(0)||(jt("/"+t),!1)}function Mt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Nt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Kt(t){mt?vt(Nt(t)):window.location.hash=t}function jt(t){mt?yt(Nt(t)):window.location.replace(Nt(t))}var Vt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){var t=e.current;e.index=n,e.updateRoute(i),e.router.afterHooks.forEach(function(e){e&&e(i,t)})},function(t){St(t,bt.duplicated)&&(e.index=n)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Qt),Gt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!mt&&!1!==t.fallback,this.fallback&&(e="hash"),Y||(e="abstract"),this.mode=e,e){case"history":this.history=new Dt(this,t.base);break;case"hash":this.history=new Ht(this,t.base,this.fallback);break;case"abstract":this.history=new Vt(this,t.base);break;default:0}},$t={currentRoute:{configurable:!0}};function Wt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Gt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},$t.currentRoute.get=function(){return this.history&&this.history.current},Gt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()}),!this.app){this.app=t;var n=this.history;if(n instanceof Dt||n instanceof Ht){var i=function(t){n.setupListeners(),function(t){var i=n.current,r=e.options.scrollBehavior;mt&&r&&"fullPath"in t&&ot(e,t,i,!1)}(t)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Gt.prototype.beforeEach=function(t){return Wt(this.beforeHooks,t)},Gt.prototype.beforeResolve=function(t){return Wt(this.resolveHooks,t)},Gt.prototype.afterEach=function(t){return Wt(this.afterHooks,t)},Gt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Gt.prototype.onError=function(t){this.history.onError(t)},Gt.prototype.push=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){i.history.push(t,e,n)});this.history.push(t,e,n)},Gt.prototype.replace=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){i.history.replace(t,e,n)});this.history.replace(t,e,n)},Gt.prototype.go=function(t){this.history.go(t)},Gt.prototype.back=function(){this.go(-1)},Gt.prototype.forward=function(){this.go(1)},Gt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Gt.prototype.resolve=function(t,e,n){var i=j(t,e=e||this.history.current,n,this),r=this.match(i,e),s=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(t,e,n){var i="hash"===n?"#"+e:e;return t?_(t+"/"+i):i}(this.history.base,s,this.mode),normalizedTo:i,resolved:r}},Gt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Gt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Gt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Gt.prototype,$t),Gt.install=q,Gt.version="3.5.1",Gt.isNavigationFailure=St,Gt.NavigationFailureType=bt,Gt.START_LOCATION=g,Y&&window.Vue&&window.Vue.use(Gt),e.a=Gt},"21It":function(t,e,n){"use strict";var i=n("FtD3");t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"2IcF":function(t,e){e.entityMap={lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},"2KxR":function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},"3Eo+":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"3X7g":function(t,e,n){"use strict";(function(t){e.c=o,e.b=function(t){o(function(){o(t)})},e.a=function(t){A.call(s,t)};var i=n("o69Z"),r=Date.now();var s=i.j?t:window,a=s.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-r)),i=setTimeout(t,n);return r=e+n,i},A=s.cancelAnimationFrame||s.clearTimeout;function o(t){return a.call(s,t)}}).call(e,n("DuR2"))},"3fs2":function(t,e,n){var i=n("RY/4"),r=n("dSzd")("iterator"),s=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||s[i(t)]}},"4PMK":function(t,e,n){"use strict";e.a=function(t){if(!Object(r.e)(t))return;return t=String(t),Object(s.b)(t)?t+"px":t},e.b=function(t){if("number"==typeof t)return t;if(r.d){if(-1!==t.indexOf("rem"))return function(t){return+(t=t.replace(/rem/g,""))*function(){if(!i){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;i=parseFloat(e)}return i}()}(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)};var i,r=n("o69Z"),s=n("mRXp")},"4mcu":function(t,e){t.exports=function(){}},"52gC":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"5VQ+":function(t,e,n){"use strict";var i=n("cGG2");t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},"63pp":function(t,e,n){"use strict";var i,r,s,a=n("awF4"),A=n.n(a),o=n("dwO+"),u=n.n(o),l=n("lt8z"),c=n.n(l),h=n("M1I4"),d=n.n(h),f=n("86MP"),p=n.n(f),g=n("I/+Z"),m=n.n(g),v=n("ljAp"),y=n.n(v),B=n("OWA6"),b=n.n(B),w=n("ciWi"),C=n.n(w),_=n("kx0S"),T=n.n(_),E=n("j/rp"),S=n.n(E),k=n("fx5k"),U=n.n(k),I=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=A.a.location&&A.a.location.href||"");var n="function"==typeof A.a.URL,i=/^\/\//.test(t),r=!A.a.location&&!/\/\//i.test(t);if(n?t=new A.a.URL(t,A.a.location||"http://example.com"):/\/\//i.test(t)||(t=U.a.buildAbsoluteURL(A.a.location&&A.a.location.href||"",t)),n){var s=new URL(e,t);return r?s.href.slice("http://example.com".length):i?s.href.slice(s.protocol.length):s.href}return U.a.buildAbsoluteURL(t,e)},F=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(n,1),n>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var n=e.length,i=0;i<n;++i)e[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),s=e.length,a=0;a<s;++a)e[a].apply(this,r)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",function(e){t.push(e)})},t}(),x=n("9KJy"),Q=function(t){function e(){var e;return(e=t.call(this)||this).buffer="",e}return p()(e,t),e.prototype.push=function(t){var e;for(this.buffer+=t,e=this.buffer.indexOf("\n");e>-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(F),L=String.fromCharCode(9),O=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),n={};return e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),n},D=function(t){for(var e,n=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},r=n.length;r--;)""!==n[r]&&((e=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),i[e[0]]=e[1]);return i},P=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}p()(e,t);var n=e.prototype;return n.push=function(t){var e,n,i=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce(function(e,n){var i=n(t);return i===t?e:e.concat([i])},[t]).forEach(function(t){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,t))return;if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t))i.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t))return n={type:"tag",tagType:"inf"},e[1]&&(n.duration=parseFloat(e[1])),e[2]&&(n.title=e[2]),void i.trigger("data",n);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"targetduration"},e[1]&&(n.duration=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"version"},e[1]&&(n.version=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return n={type:"tag",tagType:"media-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return n={type:"tag",tagType:"discontinuity-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t))return n={type:"tag",tagType:"playlist-type"},e[1]&&(n.playlistType=e[1]),void i.trigger("data",n);if(e=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(t))return n=c()(O(e[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t))return n={type:"tag",tagType:"allow-cache"},e[1]&&(n.allowed=!/NO/.test(e[1])),void i.trigger("data",n);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t)){if(n={type:"tag",tagType:"map"},e[1]){var s=D(e[1]);s.URI&&(n.uri=s.URI),s.BYTERANGE&&(n.byterange=O(s.BYTERANGE))}i.trigger("data",n)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t)){if(n={type:"tag",tagType:"stream-inf"},e[1]){if(n.attributes=D(e[1]),n.attributes.RESOLUTION){var a=n.attributes.RESOLUTION.split("x"),A={};a[0]&&(A.width=parseInt(a[0],10)),a[1]&&(A.height=parseInt(a[1],10)),n.attributes.RESOLUTION=A}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t))return n={type:"tag",tagType:"media"},e[1]&&(n.attributes=D(e[1])),void i.trigger("data",n);if(e=/^#EXT-X-ENDLIST/.exec(t))i.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t))i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t))return n={type:"tag",tagType:"program-date-time"},e[1]&&(n.dateTimeString=e[1],n.dateTimeObject=new Date(e[1])),void i.trigger("data",n);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t))return n={type:"tag",tagType:"key"},e[1]&&(n.attributes=D(e[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void i.trigger("data",n);if(e=/^#EXT-X-START:?(.*)$/.exec(t))return n={type:"tag",tagType:"start"},e[1]&&(n.attributes=D(e[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-out-cont"},e[1]?n.data=e[1]:n.data="",void i.trigger("data",n);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-out"},e[1]?n.data=e[1]:n.data="",void i.trigger("data",n);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-in"},e[1]?n.data=e[1]:n.data="",void i.trigger("data",n);if((e=/^#EXT-X-SKIP:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"skip"}).attributes=D(e[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(L)),void i.trigger("data",n);if((e=/^#EXT-X-PART:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"part"}).attributes=D(e[1]),["DURATION"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=parseFloat(n.attributes[t]))}),["INDEPENDENT","GAP"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=/YES/.test(n.attributes[t]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=O(n.attributes.BYTERANGE)),void i.trigger("data",n);if((e=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"server-control"}).attributes=D(e[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=parseFloat(n.attributes[t]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=/YES/.test(n.attributes[t]))}),void i.trigger("data",n);if((e=/^#EXT-X-PART-INF:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"part-inf"}).attributes=D(e[1]),["PART-TARGET"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=parseFloat(n.attributes[t]))}),void i.trigger("data",n);if((e=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"preload-hint"}).attributes=D(e[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(t){if(n.attributes.hasOwnProperty(t)){n.attributes[t]=parseInt(n.attributes[t],10);var e="BYTERANGE-LENGTH"===t?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[e]=n.attributes[t],delete n.attributes[t]}}),void i.trigger("data",n);if((e=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"rendition-report"}).attributes=D(e[1]),["LAST-MSN","LAST-PART"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=parseInt(n.attributes[t],10))}),void i.trigger("data",n);i.trigger("data",{type:"tag",data:t.slice(4)})}}}else i.trigger("data",{type:"comment",text:t.slice(1)})}):this.trigger("data",{type:"uri",uri:t}))},n.addParser=function(t){var e=this,n=t.expression,i=t.customType,r=t.dataParser,s=t.segment;"function"!=typeof r&&(r=function(t){return t}),this.customParsers.push(function(t){if(n.exec(t))return e.trigger("data",{type:"custom",data:r(t),customType:i,segment:s}),!0})},n.addTagMapper=function(t){var e=t.expression,n=t.map;this.tagMappers.push(function(t){return e.test(t)?n(t):t})},e}(F),H=function(t){var e={};return Object.keys(t).forEach(function(n){var i;e[(i=n,i.toLowerCase().replace(/-(\w)/g,function(t){return t[1].toUpperCase()}))]=t[n]}),e},R=function(t){var e=t.serverControl,n=t.targetDuration,i=t.partTargetDuration;if(e){var r="#EXT-X-SERVER-CONTROL",s="holdBack",a="partHoldBack",A=n&&3*n,o=i&&2*i;n&&!e.hasOwnProperty(s)&&(e[s]=A,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+A+")."})),A&&e[s]<A&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+e[s]+") to targetDuration * 3 ("+A+")"}),e[s]=A),i&&!e.hasOwnProperty(a)&&(e[a]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+e[a]+")."})),i&&e[a]<o&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+e[a]+") to partTargetDuration * 2 ("+o+")."}),e[a]=o)}},M=function(t){function e(){var e;(e=t.call(this)||this).lineStream=new Q,e.parseStream=new P,e.lineStream.pipe(e.parseStream);var n,i,r=d()(e),s=[],a={},A=!1,o={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},u=0;e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var l=0,h=0;return e.on("end",function(){a.uri||!a.parts&&!a.preloadHints||(!a.map&&n&&(a.map=n),!a.key&&i&&(a.key=i),a.timeline||"number"!=typeof u||(a.timeline=u),e.manifest.preloadSegment=a)}),e.parseStream.on("data",function(t){var e,d;({tag:function(){(({version:function(){t.version&&(this.manifest.version=t.version)},"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&(a.byterange=e,e.length=t.length,"offset"in t||(t.offset=l)),"offset"in t&&(a.byterange=e,e.offset=t.offset),l=e.offset+e.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),t.duration>0&&(a.duration=t.duration),0===t.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:Object(x.a)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(i.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,u=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){n={},t.uri&&(n.uri=t.uri),t.byterange&&(n.byterange=t.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||o,t.attributes?(a.attributes||(a.attributes={}),c()(a.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||o,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var n=this.manifest.mediaGroups[t.attributes.TYPE];n[t.attributes["GROUP-ID"]]=n[t.attributes["GROUP-ID"]]||{},e=n[t.attributes["GROUP-ID"]],(d={default:/yes/i.test(t.attributes.DEFAULT)}).default?d.autoselect=!0:d.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(d.language=t.attributes.LANGUAGE),t.attributes.URI&&(d.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(d.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(d.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(d.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=d}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){u+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),a.dateTimeString=t.dateTimeString,a.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,R.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=t.data},"cue-out-cont":function(){a.cueOutCont=t.data},"cue-in":function(){a.cueIn=t.data},skip:function(){this.manifest.skip=H(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;A=!0;var n=this.manifest.segments.length,i=H(t.attributes);a.parts=a.parts||[],a.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=h),h=i.byterange.offset+i.byterange.length);var r=a.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(t,n){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var e=this.manifest.serverControl=H(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),R.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,n=H(t.attributes),i=n.type&&"PART"===n.type;a.preloadHints=a.preloadHints||[],a.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?h:0,i&&(h=n.byterange.offset+n.byterange.length)));var r=a.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+e,t.attributes,["TYPE","URI"]),n.type)for(var s=0;s<a.preloadHints.length-1;s++){var A=a.preloadHints[s];A.type&&(A.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+e+" has the same TYPE "+n.type+" as preload hint #"+s}))}},"rendition-report":function(){var e=H(t.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];A&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,t.attributes,i)},"part-inf":function(){this.manifest.partInf=H(t.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",t.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),R.call(this,this.manifest)}})[t.tagType]||function(){}).call(r)},uri:function(){a.uri=t.uri,s.push(a),!this.manifest.targetDuration||"duration"in a||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),i&&(a.key=i),a.timeline=u,n&&(a.map=n),h=0,a={}},comment:function(){},custom:function(){t.segment?(a.custom=a.custom||{},a.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(r)}),e}p()(e,t);var n=e.prototype;return n.warnOnMissingAttributes_=function(t,e,n){var i=[];n.forEach(function(t){e.hasOwnProperty(t)||i.push(t)}),i.length&&this.trigger("warn",{message:t+" lacks required attribute(s): "+i.join(", ")})},n.push=function(t){this.lineStream.push(t)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(t){this.parseStream.addParser(t)},n.addTagMapper=function(t){this.parseStream.addTagMapper(t)},e}(F),N={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},K=["video","audio","text"],j=["Video","Audio","Text"],V=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,function(t,e,n){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}):t},G=function(t){void 0===t&&(t="");var e=[];return t.split(",").forEach(function(t){var n;t=t.trim(),K.forEach(function(i){var r=N[i].exec(t.toLowerCase());if(r&&!(r.length<=1)){n=i;var s=t.substring(0,r[1].length),a=t.replace(s,"");e.push({type:s,details:a,mediaType:i})}}),n||e.push({type:t,details:"",mediaType:"unknown"})}),e},$=function(t){return void 0===t&&(t=""),N.audio.test(t.trim().toLowerCase())},W=function(t){if(t&&"string"==typeof t){var e,n=t.toLowerCase().split(",").map(function(t){return V(t.trim())}),i="video";1===n.length&&$(n[0])?i="audio":1===n.length&&(void 0===(e=n[0])&&(e=""),N.text.test(e.trim().toLowerCase()))&&(i="application");var r="mp4";return n.every(function(t){return N.mp4.test(t)})?r="mp4":n.every(function(t){return N.webm.test(t)})?r="webm":n.every(function(t){return N.ogg.test(t)})&&(r="ogg"),i+"/"+r+';codecs="'+t+'"'}},z=function(t){return void 0===t&&(t=""),A.a.MediaSource&&A.a.MediaSource.isTypeSupported&&A.a.MediaSource.isTypeSupported(W(t))||!1},X=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every(function(t){t=t.trim();for(var e=0;e<j.length;e++){if(N["muxer"+j[e]].test(t))return!0}return!1})},q=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Y=/^application\/dash\+xml/i,J=function(t){return q.test(t)?"hls":Y.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null},Z=n("Mctu"),tt=function(t){return!!t&&"object"==typeof t},et=function t(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.reduce(function(e,n){return"object"!=typeof n?e:(Object.keys(n).forEach(function(i){Array.isArray(e[i])&&Array.isArray(n[i])?e[i]=e[i].concat(n[i]):tt(e[i])&&tt(n[i])?e[i]=t(e[i],n[i]):e[i]=n[i]}),e)},{})},nt=function(t){return t.reduce(function(t,e){return t.concat(e)},[])},it=function(t){if(!t.length)return[];for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e},rt="INVALID_NUMBER_OF_PERIOD",st="DASH_EMPTY_MANIFEST",at="DASH_INVALID_XML",At="NO_BASE_URL",ot="SEGMENT_TIME_UNSPECIFIED",ut="UNSUPPORTED_UTC_TIMING_SCHEME",lt=function(t){var e=t.baseUrl,n=void 0===e?"":e,i=t.source,r=void 0===i?"":i,s=t.range,a=void 0===s?"":s,A=t.indexRange,o=void 0===A?"":A,u={uri:r,resolvedUri:I(n||"",r)};if(a||o){var l=(a||o).split("-"),c=parseInt(l[0],10),h=parseInt(l[1],10);u.byterange={length:h-c+1,offset:c}}return u},ct=function(t){return t&&"number"!=typeof t&&(t=parseInt(t,10)),isNaN(t)?null:t},ht={static:function(t){var e=t.duration,n=t.timescale,i=void 0===n?1:n,r=t.sourceDuration,s=ct(t.endNumber);return{start:0,end:"number"==typeof s?s:Math.ceil(r/(e/i))}},dynamic:function(t){var e=t.NOW,n=t.clientOffset,i=t.availabilityStartTime,r=t.timescale,s=void 0===r?1:r,a=t.duration,A=t.start,o=void 0===A?0:A,u=t.minimumUpdatePeriod,l=void 0===u?0:u,c=t.timeShiftBufferDepth,h=void 0===c?1/0:c,d=ct(t.endNumber),f=(e+n)/1e3,p=i+o,g=f+l-p,m=Math.ceil(g*s/a),v=Math.floor((f-p-h)*s/a),y=Math.floor((f-p)*s/a);return{start:Math.max(0,v),end:"number"==typeof d?d:Math.min(m,y)}}},dt=function(t){var e=t.type,n=void 0===e?"static":e,i=t.duration,r=t.timescale,s=void 0===r?1:r,a=t.sourceDuration,A=ht[n](t),o=function(t,e){for(var n=[],i=t;i<e;i++)n.push(i);return n}(A.start,A.end).map(function(t){return function(e,n){var i=t.duration,r=t.timescale,s=void 0===r?1:r,a=t.periodIndex,A=t.startNumber;return{number:(void 0===A?1:A)+e,duration:i/s,timeline:a,time:n*i}}}(t));if("static"===n){var u=o.length-1;o[u].duration=a-i/s*u}return o},ft=function(t){var e=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,r=t.sourceDuration,s=t.indexRange,a=void 0===s?"":s,A=t.duration;if(!e)throw new Error(At);var o=lt({baseUrl:e,source:i.sourceURL,range:i.range}),u=lt({baseUrl:e,source:e,indexRange:a});if(u.map=o,A){var l=dt(t);l.length&&(u.duration=l[0].duration,u.timeline=l[0].timeline)}else r&&(u.duration=r,u.timeline=0);return u.number=0,[u]},pt=function(t,e,n){for(var i=t.sidx.map?t.sidx.map:null,r=t.sidx.duration,s=t.timeline||0,a=t.sidx.byterange,A=a.offset+a.length,o=e.timescale,u=e.references.filter(function(t){return 1!==t.referenceType}),l=[],c=A+e.firstOffset,h=0;h<u.length;h++){var d=e.references[h],f=d.referencedSize,p=d.subsegmentDuration,g=ft({baseUrl:n,timescale:o,timeline:s,periodIndex:s,duration:p,sourceDuration:r,indexRange:c+"-"+(c+f-1)})[0];i&&(g.map=i),l.push(g),c+=f}return t.segments=l,t},gt=function(t){return t&&t.uri+"-"+(e=t.byterange,n=e.offset+e.length-1,e.offset+"-"+n);var e,n},mt=function(t){var e;return(e=t.reduce(function(t,e){var n,i=e.attributes.id+(e.attributes.lang||"");t[i]?(e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[i].segments).push.apply(n,e.segments),e.attributes.contentProtection&&(t[i].attributes.contentProtection=e.attributes.contentProtection)):t[i]=e;return t},{}),Object.keys(e).map(function(t){return e[t]})).map(function(t){var e,n;return t.discontinuityStarts=(e=t.segments,n="discontinuity",e.reduce(function(t,e,i){return e[n]&&t.push(i),t},[])),t})},vt=function(t,e){var n=gt(t.sidx),i=n&&e[n]&&e[n].sidx;return i&&pt(t,i,t.sidx.resolvedUri),t},yt=function(t){var e,n=t.attributes,i=t.segments,r=t.sidx,s={attributes:(e={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1};return n.contentProtection&&(s.contentProtection=n.contentProtection),r&&(s.sidx=r),s},Bt=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},bt=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},wt=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},Ct=function(t,e,n){var i;if(void 0===n&&(n={}),!t.length)return{};var r=t[0].attributes,s=r.sourceDuration,a=r.type,A=void 0===a?"static":a,o=r.suggestedPresentationDelay,u=r.minimumUpdatePeriod,l=mt(t.filter(Bt)).map(yt),c=mt(t.filter(bt)),h=t.filter(wt),d=t.map(function(t){return t.attributes.captionServices}).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(i={AUDIO:{},VIDEO:{}},i["CLOSED-CAPTIONS"]={},i.SUBTITLES={},i),uri:"",duration:s,playlists:function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var n in t)t[n]=vt(t[n],e);return t}(l,n)};u>=0&&(f.minimumUpdatePeriod=1e3*u),e&&(f.locations=e),"dynamic"===A&&(f.suggestedPresentationDelay=o);var p=0===f.playlists.length;return c.length&&(f.mediaGroups.AUDIO.audio=function(t,e,n){var i;void 0===e&&(e={}),void 0===n&&(n=!1);var r=t.reduce(function(t,r){var s=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"",A=r.attributes.label||"main";if(a&&!r.attributes.label){var o=s?" ("+s+")":"";A=""+r.attributes.lang+o}t[A]||(t[A]={language:a,autoselect:!0,default:"main"===s,playlists:[],uri:""});var u=vt(function(t,e){var n,i=t.attributes,r=t.segments,s=t.sidx,a={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:r,mediaSequence:r.length?r[0].number:1};return i.contentProtection&&(a.contentProtection=i.contentProtection),s&&(a.sidx=s),e&&(a.attributes.AUDIO="audio",a.attributes.SUBTITLES="subs"),a}(r,n),e);return t[A].playlists.push(u),void 0===i&&"main"===s&&((i=r).default=!0),t},{});i||(r[Object.keys(r)[0]].default=!0);return r}(c,n,p)),h.length&&(f.mediaGroups.SUBTITLES.subs=function(t,e){return void 0===e&&(e={}),t.reduce(function(t,n){var i=n.attributes.lang||"text";return t[i]||(t[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),t[i].playlists.push(vt(function(t){var e,n=t.attributes,i=t.segments;void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var r=((e={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,e);return n.codecs&&(r.CODECS=n.codecs),{attributes:r,uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1}}(n),e)),t},{})}(h,n)),d.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=d.reduce(function(t,e){return e?(e.forEach(function(e){var n=e.channel,i=e.language;t[i]={autoselect:!1,default:!1,instreamId:n,language:i},e.hasOwnProperty("aspectRatio")&&(t[i].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[i].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[i]["3D"]=e["3D"])}),t):t},{})),f},_t=function(t,e,n){var i=t.NOW,r=t.clientOffset,s=t.availabilityStartTime,a=t.timescale,A=void 0===a?1:a,o=t.start,u=void 0===o?0:o,l=t.minimumUpdatePeriod,c=(i+r)/1e3+(void 0===l?0:l)-(s+u);return Math.ceil((c*A-e)/n)},Tt=function(t,e){for(var n=t.type,i=void 0===n?"static":n,r=t.minimumUpdatePeriod,s=void 0===r?0:r,a=t.media,A=void 0===a?"":a,o=t.sourceDuration,u=t.timescale,l=void 0===u?1:u,c=t.startNumber,h=void 0===c?1:c,d=t.periodIndex,f=[],p=-1,g=0;g<e.length;g++){var m=e[g],v=m.d,y=m.r||0,B=m.t||0;p<0&&(p=B),B&&B>p&&(p=B);var b=void 0;if(y<0){var w=g+1;b=w===e.length?"dynamic"===i&&s>0&&A.indexOf("$Number$")>0?_t(t,p,v):(o*l-p)/v:(e[w].t-p)/v}else b=y+1;for(var C=h+f.length+b,_=h+f.length;_<C;)f.push({number:_,duration:v/l,time:p,timeline:d}),p+=v,_++}return f},Et=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,St=function(t,e){return t.replace(Et,function(t){return function(e,n,i,r){if("$$"===e)return"$";if(void 0===t[n])return e;var s=""+t[n];return"RepresentationID"===n?s:(r=i?parseInt(r,10):1,s.length>=r?s:""+new Array(r-s.length+1).join("0")+s)}}(e))},kt=function(t,e){var n={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,r=void 0===i?{sourceURL:"",range:""}:i,s=lt({baseUrl:t.baseUrl,source:St(r.sourceURL,n),range:r.range});return function(t,e){return t.duration||e?t.duration?dt(t):Tt(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodIndex}]}(t,e).map(function(e){n.Number=e.number,n.Time=e.time;var i=St(t.media||"",n),r={uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:I(t.baseUrl||"",i),map:s,number:e.number};return t.presentationTimeOffset&&(r.presentationTimeOffset=t.presentationTimeOffset),r})},Ut=function(t,e){var n=t.duration,i=t.segmentUrls,r=void 0===i?[]:i;if(!n&&!e||n&&e)throw new Error(ot);var s,a=r.map(function(e){return function(t,e){var n=t.baseUrl,i=t.initialization,r=void 0===i?{}:i,s=lt({baseUrl:n,source:r.sourceURL,range:r.range}),a=lt({baseUrl:n,source:e.media,range:e.mediaRange});return a.map=s,a}(t,e)});return n&&(s=dt(t)),e&&(s=Tt(t,e)),s.map(function(t,e){if(a[e]){var n=a[e];return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n}}).filter(function(t){return t})},It=function(t){var e,n,i=t.attributes,r=t.segmentInfo;r.template?(n=kt,e=et(i,r.template),r.template.presentationTimeOffset&&(e.presentationTimeOffset=r.template.presentationTimeOffset/r.template.timescale)):r.base?(n=ft,e=et(i,r.base)):r.list&&(n=Ut,e=et(i,r.list));var s={attributes:i};if(!n)return s;var a=n(e,r.timeline);if(e.duration){var A=e,o=A.duration,u=A.timescale,l=void 0===u?1:u;e.duration=o/l}else a.length?e.duration=a.reduce(function(t,e){return Math.max(t,Math.ceil(e.duration))},0):e.duration=0;return s.attributes=e,s.segments=a,r.base&&e.indexRange&&(s.sidx=a[0],s.segments=[]),s},Ft=function(t,e){return it(t.childNodes).filter(function(t){return t.tagName===e})},xt=function(t){return t.textContent.trim()},Qt=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var n=e.slice(1),i=n[0],r=n[1],s=n[2],a=n[3],A=n[4],o=n[5];return 31536e3*parseFloat(i||0)+2592e3*parseFloat(r||0)+86400*parseFloat(s||0)+3600*parseFloat(a||0)+60*parseFloat(A||0)+parseFloat(o||0)},Lt={mediaPresentationDuration:function(t){return Qt(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return Qt(t)},suggestedPresentationDelay:function(t){return Qt(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return Qt(t)},start:function(t){return Qt(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?Qt(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},Ot=function(t){return t&&t.attributes?it(t.attributes).reduce(function(t,e){var n=Lt[e.name]||Lt.DEFAULT;return t[e.name]=n(e.value),t},{}):{}},Dt={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Pt=function(t,e){return e.length?nt(t.map(function(t){return e.map(function(e){return I(t,xt(e))})})):t},Ht=function(t){var e=Ft(t,"SegmentTemplate")[0],n=Ft(t,"SegmentList")[0],i=n&&Ft(n,"SegmentURL").map(function(t){return et({tag:"SegmentURL"},Ot(t))}),r=Ft(t,"SegmentBase")[0],s=n||e,a=s&&Ft(s,"SegmentTimeline")[0],A=n||r||e,o=A&&Ft(A,"Initialization")[0],u=e&&Ot(e);u&&o?u.initialization=o&&Ot(o):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var l={template:u,timeline:a&&Ft(a,"S").map(function(t){return Ot(t)}),list:n&&et(Ot(n),{segmentUrls:i,initialization:Ot(o)}),base:r&&et(Ot(r),{initialization:Ot(o)})};return Object.keys(l).forEach(function(t){l[t]||delete l[t]}),l},Rt=function(t,e,n){return function(i){var r,s=Ot(i),a=Pt(e,Ft(i,"BaseURL")),A=Ft(i,"Role")[0],o={role:Ot(A)},u=et(t,s,o),l=Ft(i,"Accessibility")[0],c="urn:scte:dash:cc:cea-608:2015"===(r=Ot(l)).schemeIdUri?r.value.split(";").map(function(t){var e,n;if(n=t,/^CC\d=/.test(t)){var i=t.split("=");e=i[0],n=i[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:n}}):"urn:scte:dash:cc:cea-708:2015"===r.schemeIdUri?r.value.split(";").map(function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var n=t.split("="),i=n[0],r=n[1],s=void 0===r?"":r;e.channel=i,e.language=t,s.split(",").forEach(function(t){var n=t.split(":"),i=n[0],r=n[1];"lang"===i?e.language=r:"er"===i?e.easyReader=Number(r):"war"===i?e.aspectRatio=Number(r):"3D"===i&&(e["3D"]=Number(r))})}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e}):void 0;c&&(u=et(u,{captionServices:c}));var h=Ft(i,"Label")[0];if(h&&h.childNodes.length){var d=h.childNodes[0].nodeValue.trim();u=et(u,{label:d})}var f=Ft(i,"ContentProtection").reduce(function(t,e){var n=Ot(e),i=Dt[n.schemeIdUri];if(i){t[i]={attributes:n};var r=Ft(e,"cenc:pssh")[0];if(r){var s=xt(r),a=s&&Object(x.a)(s);t[i].pssh=a}}return t},{});Object.keys(f).length&&(u=et(u,{contentProtection:f}));var p=Ht(i),g=Ft(i,"Representation"),m=et(n,p);return nt(g.map(function(t,e,n){return function(i){var r=Ft(i,"BaseURL"),s=Pt(e,r),a=et(t,Ot(i)),A=Ht(i);return s.map(function(t){return{segmentInfo:et(n,A),attributes:et(a,{baseUrl:t})}})}}(u,a,m)))}},Mt=function(t,e){void 0===e&&(e={});var n=e,i=n.manifestUri,r=void 0===i?"":i,s=n.NOW,a=void 0===s?Date.now():s,o=n.clientOffset,u=void 0===o?0:o,l=Ft(t,"Period");if(!l.length)throw new Error(rt);var c=Ft(t,"Location"),h=Ot(t),d=Pt([r],Ft(t,"BaseURL"));return h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=a,h.clientOffset=u,c.length&&(h.locations=c.map(xt)),{locations:h.locations,representationInfo:nt(l.map(function(t,e){return function(n,i){var r=Pt(e,Ft(n,"BaseURL")),s=Ot(n),a=parseInt(s.id,10),o=A.a.isNaN(a)?i:a,u=et(t,{periodIndex:o}),l=Ft(n,"AdaptationSet"),c=Ht(n);return nt(l.map(Rt(u,r,c)))}}(h,d)))}},Nt=function(t){if(""===t)throw new Error(st);var e,n,i=new Z.DOMParser;try{n=(e=i.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(t){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(at);return n},Kt=function(t,e){void 0===e&&(e={});var n=Mt(Nt(t),e),i=n.representationInfo.map(It);return Ct(i,n.locations,e.sidxMapping)},jt=function(t){return function(t){var e=Ft(t,"UTCTiming")[0];if(!e)return null;var n=Ot(e);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(ut)}return n}(Nt(t))},Vt=n("GlnR"),Gt=n.n(Vt),$t=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||(e=t,ArrayBuffer.isView(e))||t instanceof ArrayBuffer||(t="number"!=typeof t||"number"==typeof t&&t!=t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0));var e},Wt=A.a.BigInt||Number,zt=[Wt("0x1"),Wt("0x100"),Wt("0x10000"),Wt("0x1000000"),Wt("0x100000000"),Wt("0x10000000000"),Wt("0x1000000000000"),Wt("0x100000000000000"),Wt("0x10000000000000000")],Xt=(i=new Uint16Array([65484]),255===(r=new Uint8Array(i.buffer,i.byteOffset,i.byteLength))[0]||r[0],function(t,e){var n=void 0===e?{}:e,i=n.signed,r=void 0!==i&&i,s=n.le,a=void 0!==s&&s;t=$t(t);var A=a?"reduce":"reduceRight",o=(t[A]?t[A]:Array.prototype[A]).call(t,function(e,n,i){var r=a?i:Math.abs(i+1-t.length);return e+Wt(n)*zt[r]},Wt(0));if(r){var u=zt[t.length]/Wt(2)-Wt(1);(o=Wt(o))>u&&(o-=u,o-=u,o-=Wt(2))}return Number(o)}),qt=function(t,e){var n=(void 0===e?{}:e).le,i=void 0!==n&&n;("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)&&(t=0),t=Wt(t);for(var r,s=(r=t,Math.ceil(function(t){return t.toString(2).length}(r)/8)),a=new Uint8Array(new ArrayBuffer(s)),A=0;A<s;A++){var o=i?A:Math.abs(A+1-a.length);a[o]=Number(t/zt[A]&Wt(255)),t<0&&(a[o]=Math.abs(~a[o]),a[o]-=0===A?1:2)}return a},Yt=function(t){if(!t)return"";t=Array.prototype.slice.call(t);var e=String.fromCharCode.apply(null,$t(t));try{return decodeURIComponent(escape(e))}catch(t){}return e},Jt=function(t,e){if("string"!=typeof t&&t&&"function"==typeof t.toString&&(t=t.toString()),"string"!=typeof t)return new Uint8Array;e||(t=unescape(encodeURIComponent(t)));for(var n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n},Zt=function(t,e,n){var i=void 0===n?{}:n,r=i.offset,s=void 0===r?0:r,a=i.mask,A=void 0===a?[]:a;t=$t(t);var o=(e=$t(e)).every?e.every:Array.prototype.every;return e.length&&t.length-s>=e.length&&o.call(e,function(e,n){return e===(A[n]?A[n]&t[s+n]:t[s+n])})},te=$t([73,68,51]),ee=function t(e,n){return void 0===n&&(n=0),(e=$t(e)).length-n<10||!Zt(e,te,{offset:n})?n:(n+=function(t,e){void 0===e&&(e=0);var n=(t=$t(t))[e+5],i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&n)>>4?i+20:i+10}(e,n),t(e,n))},ne=(new Uint8Array([79,112,117,115,72,101,97,100]),function(t){return"string"==typeof t?Jt(t):t}),ie=function(t){t=$t(t);for(var e=[],n=0;t.length>n;){var i=t[n],r=0,a=0,A=t[++a];for(a++;128&A;)r=(127&A)<<7,A=t[a],a++;r+=127&A;for(var o=0;o<s.length;o++){var u=s[o],l=u.id,c=u.parser;if(i===l){e.push(c(t.subarray(a,a+r)));break}}n+=r+a}return e};s=[{id:3,parser:function(t){var e={tag:3,id:t[0]<<8|t[1],flags:t[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&e.flags&&(e.dependsOnEsId=t[e.size]<<8|t[e.size+1],e.size+=2),64&e.flags){var n=t[e.size];e.url=Yt(t.subarray(e.size+1,e.size+1+n)),e.size+=n}return 32&e.flags&&(e.ocrEsId=t[e.size]<<8|t[e.size+1],e.size+=2),e.descriptors=ie(t.subarray(e.size))||[],e}},{id:4,parser:function(t){return{tag:4,oti:t[0],streamType:t[1],bufferSize:t[2]<<16|t[3]<<8|t[4],maxBitrate:t[5]<<24|t[6]<<16|t[7]<<8|t[8],avgBitrate:t[9]<<24|t[10]<<16|t[11]<<8|t[12],descriptors:ie(t.subarray(13))}}},{id:5,parser:function(t){return{tag:5,bytes:t}}},{id:6,parser:function(t){return{tag:6,bytes:t}}}];var re=function t(e,n,i){void 0===i&&(i=!1),n=function(t){return Array.isArray(t)?t.map(function(t){return ne(t)}):[ne(t)]}(n),e=$t(e);var r=[];if(!n.length)return r;for(var s=0;s<e.length;){var a=(e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3])>>>0,A=e.subarray(s+4,s+8);if(0===a)break;var o=s+a;if(o>e.length){if(i)break;o=e.length}var u=e.subarray(s+8,o);Zt(A,n[0])&&(1===n.length?r.push(u):r.push.apply(r,t(u,n.slice(1),i))),s=o}return r},se={EBML:$t([26,69,223,163]),DocType:$t([66,130]),Segment:$t([24,83,128,103]),SegmentInfo:$t([21,73,169,102]),Tracks:$t([22,84,174,107]),Track:$t([174]),TrackNumber:$t([215]),DefaultDuration:$t([35,227,131]),TrackEntry:$t([174]),TrackType:$t([131]),FlagDefault:$t([136]),CodecID:$t([134]),CodecPrivate:$t([99,162]),VideoTrack:$t([224]),AudioTrack:$t([225]),Cluster:$t([31,67,182,117]),Timestamp:$t([231]),TimestampScale:$t([42,215,177]),BlockGroup:$t([160]),BlockDuration:$t([155]),Block:$t([161]),SimpleBlock:$t([163])},ae=[128,64,32,16,8,4,2,1],Ae=function(t,e,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=function(t){for(var e=1,n=0;n<ae.length&&!(t&ae[n]);n++)e++;return e}(t[e]),s=t.subarray(e,e+r);return n&&((s=Array.prototype.slice.call(t,e,e+r))[0]^=ae[r-1]),{length:r,value:Xt(s,{signed:i}),bytes:s}},oe=function t(e){return"string"==typeof e?e.match(/.{1,2}/g).map(function(e){return t(e)}):"number"==typeof e?qt(e):e},ue=function t(e,n,i){if(i>=n.length)return n.length;var r=Ae(n,i,!1);if(Zt(e.bytes,r.bytes))return i;var s=Ae(n,i+r.length);return t(e,n,i+s.length+s.value+r.length)},le=function t(e,n){n=function(t){return Array.isArray(t)?t.map(function(t){return oe(t)}):[oe(t)]}(n),e=$t(e);var i=[];if(!n.length)return i;for(var r=0;r<e.length;){var s=Ae(e,r,!1),a=Ae(e,r+s.length),A=r+s.length+a.length;127===a.value&&(a.value=ue(s,e,A),a.value!==e.length&&(a.value-=A));var o=A+a.value>e.length?e.length:A+a.value,u=e.subarray(A,o);Zt(n[0],s.bytes)&&(1===n.length?i.push(u):i=i.concat(t(u,n.slice(1)))),r+=s.length+a.length+u.length}return i},ce=$t([0,0,0,1]),he=$t([0,0,1]),de=$t([0,0,3]),fe=function(t){for(var e=[],n=1;n<t.length-2;)Zt(t.subarray(n,n+3),de)&&(e.push(n+2),n++),n++;if(0===e.length)return t;var i=t.length-e.length,r=new Uint8Array(i),s=0;for(n=0;n<i;s++,n++)s===e[0]&&(s++,e.shift()),r[n]=t[s];return r},pe=function(t,e,n,i){void 0===i&&(i=1/0),t=$t(t),n=[].concat(n);for(var r,s=0,a=0;s<t.length&&(a<i||r);){var A=void 0;if(Zt(t.subarray(s),ce)?A=4:Zt(t.subarray(s),he)&&(A=3),A){if(a++,r)return fe(t.subarray(r,s));var o=void 0;"h264"===e?o=31&t[s+A]:"h265"===e&&(o=t[s+A]>>1&63),-1!==n.indexOf(o)&&(r=s+A),s+=A+("h264"===e?1:2)}else s++}return t.subarray(0,0)},ge={webm:$t([119,101,98,109]),matroska:$t([109,97,116,114,111,115,107,97]),flac:$t([102,76,97,67]),ogg:$t([79,103,103,83]),ac3:$t([11,119]),riff:$t([82,73,70,70]),avi:$t([65,86,73]),wav:$t([87,65,86,69]),"3gp":$t([102,116,121,112,51,103]),mp4:$t([102,116,121,112]),fmp4:$t([115,116,121,112]),mov:$t([102,116,121,112,113,116]),moov:$t([109,111,111,118]),moof:$t([109,111,111,102])},me={aac:function(t){var e=ee(t);return Zt(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=ee(t);return Zt(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=le(t,[se.EBML,se.DocType])[0];return Zt(e,ge.webm)},mkv:function(t){var e=le(t,[se.EBML,se.DocType])[0];return Zt(e,ge.matroska)},mp4:function(t){return!me["3gp"](t)&&!me.mov(t)&&(!(!Zt(t,ge.mp4,{offset:4})&&!Zt(t,ge.fmp4,{offset:4}))||(!(!Zt(t,ge.moof,{offset:4})&&!Zt(t,ge.moov,{offset:4}))||void 0))},mov:function(t){return Zt(t,ge.mov,{offset:4})},"3gp":function(t){return Zt(t,ge["3gp"],{offset:4})},ac3:function(t){var e=ee(t);return Zt(t,ge.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+188<t.length&&e<188;){if(71===t[e]&&71===t[e+188])return!0;e+=1}return!1},flac:function(t){var e=ee(t);return Zt(t,ge.flac,{offset:e})},ogg:function(t){return Zt(t,ge.ogg)},avi:function(t){return Zt(t,ge.riff)&&Zt(t,ge.avi,{offset:8})},wav:function(t){return Zt(t,ge.riff)&&Zt(t,ge.wav,{offset:8})},h264:function(t){return function(t,e,n){return pe(t,"h264",e,n)}(t,7,3).length},h265:function(t){return function(t,e,n){return pe(t,"h265",e,n)}(t,[32,33],3).length}},ve=Object.keys(me).filter(function(t){return"ts"!==t&&"h264"!==t&&"h265"!==t}).concat(["ts","h264","h265"]);ve.forEach(function(t){var e=me[t];me[t]=function(t){return e($t(t))}});for(var ye,Be=me,be=function(t){t=$t(t);for(var e=0;e<ve.length;e++){var n=ve[e];if(Be[n](t))return n}return""},we=n("lamJ"),Ce="7.14.3",_e={prefixed:!0},Te=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Ee=Te[0],Se=0;Se<Te.length;Se++)if(Te[Se][1]in u.a){ye=Te[Se];break}if(ye){for(var ke=0;ke<ye.length;ke++)_e[Ee[ke]]=ye[ke];_e.prefixed=ye[0]!==Ee[0]}var Ue=[],Ie=function(t,e){return function(n,i,r){var s=e.levels[i],a=new RegExp("^("+s+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(t+":"),Ue){Ue.push([].concat(r));var o=Ue.length-1e3;Ue.splice(0,o>0?o:0)}if(A.a.console){var u=A.a.console[n];u||"debug"!==n||(u=A.a.console.info||A.a.console.log),u&&s&&a.test(n)&&u[Array.isArray(r)?"apply":"call"](A.a.console,r)}}};var Fe=function t(e){var n,i="info",r=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("log",i,e)};return n=Ie(e,r),r.createLogger=function(n){return t(e+": "+n)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},r.level=function(t){if("string"==typeof t){if(!r.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');i=t}return i},(r.history=function(){return Ue?[].concat(Ue):[]}).filter=function(t){return(Ue||[]).filter(function(e){return new RegExp(".*"+t+".*").test(e[0])})},r.history.clear=function(){Ue&&(Ue.length=0)},r.history.disable=function(){null!==Ue&&(Ue.length=0,Ue=null)},r.history.enable=function(){null===Ue&&(Ue=[])},r.error=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n("error",i,e)},r.warn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n("warn",i,e)},r.debug=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n("debug",i,e)},r}("VIDEOJS"),xe=Fe.createLogger,Qe=Object.prototype.toString,Le=function(t){return Pe(t)?Object.keys(t):[]};function Oe(t,e){Le(t).forEach(function(n){return e(t[n],n)})}function De(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return Object.assign?c.a.apply(void 0,[t].concat(n)):(n.forEach(function(e){e&&Oe(e,function(e,n){t[n]=e})}),t)}function Pe(t){return!!t&&"object"==typeof t}function He(t){return Pe(t)&&"[object Object]"===Qe.call(t)&&t.constructor===Object}function Re(t,e){if(!t||!e)return"";if("function"==typeof A.a.getComputedStyle){var n;try{n=A.a.getComputedStyle(t)}catch(t){return""}return n?n.getPropertyValue(e)||n[e]:""}return""}var Me,Ne,Ke,je=A.a.navigator&&A.a.navigator.userAgent||"",Ve=/AppleWebKit\/([\d.]+)/i.exec(je),Ge=Ve?parseFloat(Ve.pop()):null,$e=/iPod/i.test(je),We=(Me=je.match(/OS (\d+)_/i))&&Me[1]?Me[1]:null,ze=/Android/i.test(je),Xe=function(){var t=je.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),qe=ze&&Xe<5&&Ge<537,Ye=/Firefox/i.test(je),Je=/Edg/i.test(je),Ze=!Je&&(/Chrome/i.test(je)||/CriOS/i.test(je)),tn=function(){var t=je.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),en=(Ne=/MSIE\s(\d+)\.\d/.exec(je),!(Ke=Ne&&parseFloat(Ne[1]))&&/Trident\/7.0/i.test(je)&&/rv:11.0/.test(je)&&(Ke=11),Ke),nn=/Safari/i.test(je)&&!Ze&&!ze&&!Je,rn=/Windows/i.test(je),sn=Boolean(dn()&&("ontouchstart"in A.a||A.a.navigator.maxTouchPoints||A.a.DocumentTouch&&A.a.document instanceof A.a.DocumentTouch)),an=/iPad/i.test(je)||nn&&sn&&!/iPhone/i.test(je),An=/iPhone/i.test(je)&&!an,on=An||an||$e,un=(nn||on)&&!Ze,ln=Object.freeze({__proto__:null,IS_IPOD:$e,IOS_VERSION:We,IS_ANDROID:ze,ANDROID_VERSION:Xe,IS_NATIVE_ANDROID:qe,IS_FIREFOX:Ye,IS_EDGE:Je,IS_CHROME:Ze,CHROME_VERSION:tn,IE_VERSION:en,IS_SAFARI:nn,IS_WINDOWS:rn,TOUCH_ENABLED:sn,IS_IPAD:an,IS_IPHONE:An,IS_IOS:on,IS_ANY_SAFARI:un});function cn(t){return"string"==typeof t&&Boolean(t.trim())}function hn(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function dn(){return u.a===A.a.document}function fn(t){return Pe(t)&&1===t.nodeType}function pn(){try{return A.a.parent!==A.a.self}catch(t){return!0}}function gn(t){return function(e,n){if(!cn(e))return u.a[t](null);cn(n)&&(n=u.a.querySelector(n));var i=fn(n)?n:u.a;return i[t]&&i[t](e)}}function mn(t,e,n,i){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===n&&(n={});var r=u.a.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(Fe.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+t+" to "+n+"."),r.setAttribute(t,n)):"textContent"===t?vn(r,n):r[t]===n&&"tabIndex"!==t||(r[t]=n)}),Object.getOwnPropertyNames(n).forEach(function(t){r.setAttribute(t,n[t])}),i&&Pn(r,i),r}function vn(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function yn(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function Bn(t,e){return hn(e),t.classList?t.classList.contains(e):(n=e,new RegExp("(^|\\s)"+n+"($|\\s)")).test(t.className);var n}function bn(t,e){return t.classList?t.classList.add(e):Bn(t,e)||(t.className=(t.className+" "+e).trim()),t}function wn(t,e){return t?(t.classList?t.classList.remove(e):(hn(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t):(Fe.warn("removeClass was called with an element that doesn't exist"),null)}function Cn(t,e,n){var i=Bn(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!i),n!==i)return n?bn(t,e):wn(t,e),t}function _n(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var i=e[n];null===i||void 0===i||!1===i?t.removeAttribute(n):t.setAttribute(n,!0===i?"":i)})}function Tn(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var i=t.attributes,r=i.length-1;r>=0;r--){var s=i[r].name,a=i[r].value;"boolean"!=typeof t[s]&&-1===n.indexOf(","+s+",")||(a=null!==a),e[s]=a}return e}function En(t,e){return t.getAttribute(e)}function Sn(t,e,n){t.setAttribute(e,n)}function kn(t,e){t.removeAttribute(e)}function Un(){u.a.body.focus(),u.a.onselectstart=function(){return!1}}function In(){u.a.onselectstart=function(){return!0}}function Fn(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n.height||(n.height=parseFloat(Re(t,"height"))),n.width||(n.width=parseFloat(Re(t,"width"))),n}}function xn(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};for(var e=t.offsetWidth,n=t.offsetHeight,i=0,r=0;t.offsetParent&&t!==u.a[_e.fullscreenElement];)i+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{left:i,top:r,width:e,height:n}}function Qn(t,e){var n={x:0,y:0};if(on)for(var i=t;i&&"html"!==i.nodeName.toLowerCase();){var r=Re(i,"transform");if(/^matrix/.test(r)){var s=r.slice(7,-1).split(/,\s/).map(Number);n.x+=s[4],n.y+=s[5]}else if(/^matrix3d/.test(r)){var a=r.slice(9,-1).split(/,\s/).map(Number);n.x+=a[12],n.y+=a[13]}i=i.parentNode}var A={},o=xn(e.target),u=xn(t),l=u.width,c=u.height,h=e.offsetY-(u.top-o.top),d=e.offsetX-(u.left-o.left);return e.changedTouches&&(d=e.changedTouches[0].pageX-u.left,h=e.changedTouches[0].pageY+u.top,on&&(d-=n.x,h-=n.y)),A.y=1-Math.max(0,Math.min(1,h/c)),A.x=Math.max(0,Math.min(1,d/l)),A}function Ln(t){return Pe(t)&&3===t.nodeType}function On(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Dn(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),fn(t)||Ln(t)?t:"string"==typeof t&&/\S/.test(t)?u.a.createTextNode(t):void 0}).filter(function(t){return t})}function Pn(t,e){return Dn(e).forEach(function(e){return t.appendChild(e)}),t}function Hn(t,e){return Pn(On(t),e)}function Rn(t){return void 0===t.button&&void 0===t.buttons||(0===t.button&&void 0===t.buttons||("mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons))}var Mn,Nn=gn("querySelector"),Kn=gn("querySelectorAll"),jn=Object.freeze({__proto__:null,isReal:dn,isEl:fn,isInFrame:pn,createEl:mn,textContent:vn,prependTo:yn,hasClass:Bn,addClass:bn,removeClass:wn,toggleClass:Cn,setAttributes:_n,getAttributes:Tn,getAttribute:En,setAttribute:Sn,removeAttribute:kn,blockTextSelection:Un,unblockTextSelection:In,getBoundingClientRect:Fn,findPosition:xn,getPointerPosition:Qn,isTextNode:Ln,emptyEl:On,normalizeContent:Dn,appendContent:Pn,insertContent:Hn,isSingleLeftClick:Rn,$:Nn,$$:Kn}),Vn=!1,Gn=function(){if(!1!==Mn.options.autoSetup){var t=Array.prototype.slice.call(u.a.getElementsByTagName("video")),e=Array.prototype.slice.call(u.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(u.a.getElementsByTagName("video-js")),i=t.concat(e,n);if(i&&i.length>0)for(var r=0,s=i.length;r<s;r++){var a=i[r];if(!a||!a.getAttribute){$n(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&Mn(a)}else Vn||$n(1)}};function $n(t,e){dn()&&(e&&(Mn=e),A.a.setTimeout(Gn,t))}function Wn(){Vn=!0,A.a.removeEventListener("load",Wn)}dn()&&("complete"===u.a.readyState?Wn():A.a.addEventListener("load",Wn));var zn,Xn=function(t){var e=u.a.createElement("style");return e.className=t,e},qn=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},Yn=3;function Jn(){return Yn++}A.a.WeakMap||(zn=function(){function t(){this.vdata="vdata"+Math.floor(A.a.performance&&A.a.performance.now()||Date.now()),this.data={}}var e=t.prototype;return e.set=function(t,e){var n=t[this.vdata]||Jn();return t[this.vdata]||(t[this.vdata]=n),this.data[n]=e,this},e.get=function(t){var e=t[this.vdata];if(e)return this.data[e];Fe("We have no data for this element",t)},e.has=function(t){return t[this.vdata]in this.data},e.delete=function(t){var e=t[this.vdata];e&&(delete this.data[e],delete t[this.vdata])},t}());var Zn,ti=A.a.WeakMap?new WeakMap:new zn;function ei(t,e){if(ti.has(t)){var n=ti.get(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&ti.delete(t)}}function ni(t,e,n,i){n.forEach(function(n){t(e,n,i)})}function ii(t){if(t.fixed_)return t;function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var i=t||A.a.event;for(var r in t={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&i.preventDefault||(t[r]=i[r]));if(t.target||(t.target=t.srcElement||u.a),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=!1,i.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=!0,i.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var s=u.a.documentElement,a=u.a.body;t.pageX=t.clientX+(s&&s.scrollLeft||a&&a.scrollLeft||0)-(s&&s.clientLeft||a&&a.clientLeft||0),t.pageY=t.clientY+(s&&s.scrollTop||a&&a.scrollTop||0)-(s&&s.clientTop||a&&a.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t.fixed_=!0,t}var ri=function(){if("boolean"!=typeof Zn){Zn=!1;try{var t=Object.defineProperty({},"passive",{get:function(){Zn=!0}});A.a.addEventListener("test",null,t),A.a.removeEventListener("test",null,t)}catch(t){}}return Zn},si=["touchstart","touchmove"];function ai(t,e,n){if(Array.isArray(e))return ni(ai,t,e,n);ti.has(t)||ti.set(t,{});var i=ti.get(t);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),n.guid||(n.guid=Jn()),i.handlers[e].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(e,n){if(!i.disabled){e=ii(e);var r=i.handlers[e.type];if(r)for(var s=r.slice(0),a=0,A=s.length;a<A&&!e.isImmediatePropagationStopped();a++)try{s[a].call(t,e,n)}catch(t){Fe.error(t)}}}),1===i.handlers[e].length)if(t.addEventListener){var r=!1;ri()&&si.indexOf(e)>-1&&(r={passive:!0}),t.addEventListener(e,i.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function Ai(t,e,n){if(ti.has(t)){var i=ti.get(t);if(i.handlers){if(Array.isArray(e))return ni(Ai,t,e,n);var r=function(t,e){i.handlers[e]=[],ei(t,e)};if(void 0!==e){var s=i.handlers[e];if(s)if(n){if(n.guid)for(var a=0;a<s.length;a++)s[a].guid===n.guid&&s.splice(a--,1);ei(t,e)}else r(t,e)}else for(var A in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},A)&&r(t,A)}}}function oi(t,e,n){var i=ti.has(t)?ti.get(t):{},r=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=ii(e),i.dispatcher&&i.dispatcher.call(t,e,n),r&&!e.isPropagationStopped()&&!0===e.bubbles)oi.call(null,r,e,n);else if(!r&&!e.defaultPrevented&&e.target&&e.target[e.type]){ti.has(e.target)||ti.set(e.target,{});var s=ti.get(e.target);e.target[e.type]&&(s.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),s.disabled=!1)}return!e.defaultPrevented}function ui(t,e,n){if(Array.isArray(e))return ni(ui,t,e,n);var i=function i(){Ai(t,e,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Jn(),ai(t,e,i)}function li(t,e,n){var i=function i(){Ai(t,e,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Jn(),ai(t,e,i)}var ci,hi=Object.freeze({__proto__:null,fixEvent:ii,on:ai,off:Ai,trigger:oi,one:ui,any:li}),di=30,fi=function(t,e,n){e.guid||(e.guid=Jn());var i=e.bind(t);return i.guid=n?n+"_"+e.guid:e.guid,i},pi=function(t,e){var n=A.a.performance.now();return function(){var i=A.a.performance.now();i-n>=e&&(t.apply(void 0,arguments),n=i)}},gi=function(t,e,n,i){var r;void 0===i&&(i=A.a);var s=function(){var s=this,a=arguments,A=function(){r=null,A=null,n||t.apply(s,a)};!r&&n&&t.apply(s,a),i.clearTimeout(r),r=i.setTimeout(A,e)};return s.cancel=function(){i.clearTimeout(r),r=null},s},mi=function(){};mi.prototype.allowedEvents_={},mi.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},ai(this,t,e),this.addEventListener=n},mi.prototype.addEventListener=mi.prototype.on,mi.prototype.off=function(t,e){Ai(this,t,e)},mi.prototype.removeEventListener=mi.prototype.off,mi.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},ui(this,t,e),this.addEventListener=n},mi.prototype.any=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},li(this,t,e),this.addEventListener=n},mi.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=ii(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),oi(this,t)},mi.prototype.dispatchEvent=mi.prototype.trigger,mi.prototype.queueTrigger=function(t){var e=this;ci||(ci=new Map);var n=t.type||t,i=ci.get(this);i||(i=new Map,ci.set(this,i));var r=i.get(n);i.delete(n),A.a.clearTimeout(r);var s=A.a.setTimeout(function(){0===i.size&&(i=null,ci.delete(e)),e.trigger(t)},0);i.set(n,s)};var vi=function(t){return"function"==typeof t.name?t.name():"string"==typeof t.name?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t},yi=function(t){return t instanceof mi||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},Bi=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},bi=function(t,e,n){if(!t||!t.nodeName&&!yi(t))throw new Error("Invalid target for "+vi(e)+"#"+n+"; must be a DOM node or evented object.")},wi=function(t,e,n){if(!Bi(t))throw new Error("Invalid event type for "+vi(e)+"#"+n+"; must be a non-empty string or array.")},Ci=function(t,e,n){if("function"!=typeof t)throw new Error("Invalid listener for "+vi(e)+"#"+n+"; must be a function.")},_i=function(t,e,n){var i,r,s,a=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return a?(i=t.eventBusEl_,e.length>=3&&e.shift(),r=e[0],s=e[1]):(i=e[0],r=e[1],s=e[2]),bi(i,t,n),wi(r,t,n),Ci(s,t,n),{isTargetingSelf:a,target:i,type:r,listener:s=fi(t,s)}},Ti=function(t,e,n,i){bi(t,t,e),t.nodeName?hi[e](t,n,i):t[e](n,i)},Ei={on:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=_i(this,n,"on"),s=r.isTargetingSelf,a=r.target,A=r.type,o=r.listener;if(Ti(a,"on",A,o),!s){var u=function(){return t.off(a,A,o)};u.guid=o.guid;var l=function(){return t.off("dispose",u)};l.guid=o.guid,Ti(this,"on","dispose",u),Ti(a,"on","dispose",l)}},one:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=_i(this,n,"one"),s=r.isTargetingSelf,a=r.target,A=r.type,o=r.listener;if(s)Ti(a,"one",A,o);else{var u=function e(){t.off(a,A,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];o.apply(null,i)};u.guid=o.guid,Ti(a,"one",A,u)}},any:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=_i(this,n,"any"),s=r.isTargetingSelf,a=r.target,A=r.type,o=r.listener;if(s)Ti(a,"any",A,o);else{var u=function e(){t.off(a,A,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];o.apply(null,i)};u.guid=o.guid,Ti(a,"any",A,u)}},off:function(t,e,n){if(!t||Bi(t))Ai(this.eventBusEl_,t,e);else{var i=t,r=e;bi(i,this,"off"),wi(r,this,"off"),Ci(n,this,"off"),n=fi(this,n),this.off("dispose",n),i.nodeName?(Ai(i,r,n),Ai(i,"dispose",n)):yi(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(t,e){bi(this.eventBusEl_,this,"trigger");var n=t&&"string"!=typeof t?t.type:t;if(!Bi(n)){var i="Invalid event type for "+vi(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!t)throw new Error(i);(this.log||Fe).error(i)}return oi(this.eventBusEl_,t,e)}};function Si(t,e){void 0===e&&(e={});var n=e.eventBusKey;if(n){if(!t[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');t.eventBusEl_=t[n]}else t.eventBusEl_=mn("span",{className:"vjs-event-bus"});return De(t,Ei),t.eventedCallbacks&&t.eventedCallbacks.forEach(function(t){t()}),t.on("dispose",function(){t.off(),A.a.setTimeout(function(){t.eventBusEl_=null},0)}),t}var ki={state:{},setState:function(t){var e,n=this;return"function"==typeof t&&(t=t()),Oe(t,function(t,i){n.state[i]!==t&&((e=e||{})[i]={from:n.state[i],to:t}),n.state[i]=t}),e&&yi(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function Ui(t,e){return De(t,ki),t.state=De({},t.state,e),"function"==typeof t.handleStateChanged&&yi(t)&&t.on("statechanged",t.handleStateChanged),t}var Ii=function(t){return"string"!=typeof t?t:t.replace(/./,function(t){return t.toLowerCase()})},Fi=function(t){return"string"!=typeof t?t:t.replace(/./,function(t){return t.toUpperCase()})};function xi(){for(var t={},e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.forEach(function(e){e&&Oe(e,function(e,n){He(e)?(He(t[n])||(t[n]={}),t[n]=xi(t[n],e)):t[n]=e})}),t}var Qi=function(){function t(){this.map_={}}var e=t.prototype;return e.has=function(t){return t in this.map_},e.delete=function(t){var e=this.has(t);return delete this.map_[t],e},e.set=function(t,e){return this.map_[t]=e,this},e.forEach=function(t,e){for(var n in this.map_)t.call(e,this.map_[n],n,this)},t}(),Li=A.a.Map?A.a.Map:Qi,Oi=function(){function t(){this.set_={}}var e=t.prototype;return e.has=function(t){return t in this.set_},e.delete=function(t){var e=this.has(t);return delete this.set_[t],e},e.add=function(t){return this.set_[t]=1,this},e.forEach=function(t,e){for(var n in this.set_)t.call(e,n,n,this)},t}(),Di=A.a.Set?A.a.Set:Oi,Pi=function(){function t(t,e,n){if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=xi({},this.options_),e=this.options_=xi(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var i=t&&t.id&&t.id()||"no_player";this.id_=i+"_component_"+Jn()}this.name_=e.name||null,e.el?this.el_=e.el:!1!==e.createEl&&(this.el_=this.createEl()),!1!==e.evented&&(Si(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Ui(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Di,this.setIntervalIds_=new Di,this.rafIds_=new Di,this.namedRafs_=new Li,this.clearingTimersOnDispose_=!1,!1!==e.initChildren&&this.initChildren(),this.ready(n),!1!==e.reportTouchActivity&&this.enableTouchActivity()}var e=t.prototype;return e.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),ti.has(this.el_)&&ti.delete(this.el_),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(t){return t?(this.options_=xi(this.options_,t),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(t,e,n){return mn(t,e,n)},e.localize=function(t,e,n){void 0===n&&(n=t);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[i],a=i&&i.split("-")[0],A=r&&r[a],o=n;return s&&s[t]?o=s[t]:A&&A[t]&&(o=A[t]),e&&(o=o.replace(/\{(\d+)\}/g,function(t,n){var i=e[n-1],r=i;return void 0===i&&(r=t),r})),o},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(t){return this.childIndex_[t]},e.getChild=function(t){if(t)return this.childNameIndex_[t]},e.getDescendant=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e=e.reduce(function(t,e){return t.concat(e)},[]);for(var i=this,r=0;r<e.length;r++)if(!(i=i.getChild(e[r]))||!i.getChild)return;return i},e.addChild=function(e,n,i){var r,s;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"==typeof e){s=Fi(e);var a=n.componentClass||s;n.name=s;var A=t.getComponent(a);if(!A)throw new Error("Component "+a+" does not exist");if("function"!=typeof A)return null;r=new A(this.player_||this,n)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(s=s||r.name&&Fi(r.name()))&&(this.childNameIndex_[s]=r,this.childNameIndex_[Ii(s)]=r),"function"==typeof r.el&&r.el()){var o=null;this.children_[i+1]&&(this.children_[i+1].el_?o=this.children_[i+1].el_:fn(this.children_[i+1])&&(o=this.children_[i+1])),this.contentEl().insertBefore(r.el(),o)}return r},e.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[Fi(t.name())]=null,this.childNameIndex_[Ii(t.name())]=null;var i=t.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.initChildren=function(){var e=this,n=this.options_.children;if(n){var i,r=this.options_,s=t.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(t){return!i.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var i,r;return"string"==typeof t?r=n[i=t]||e.options_[i]||{}:(i=t.name,r=t),{name:i,opts:r}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||Fi(e.name));return n&&!s.isTech(n)}).forEach(function(t){var n=t.name,i=t.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=e.options_.playerOptions;var s=e.addChild(n,i);s&&(e[n]=s)}})}},e.buildCSSClass=function(){return""},e.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},e.$=function(t,e){return Nn(t,e||this.contentEl())},e.$$=function(t,e){return Kn(t,e||this.contentEl())},e.hasClass=function(t){return Bn(this.el_,t)},e.addClass=function(t){bn(this.el_,t)},e.removeClass=function(t){wn(this.el_,t)},e.toggleClass=function(t,e){Cn(this.el_,t,e)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(t){return En(this.el_,t)},e.setAttribute=function(t,e){Sn(this.el_,t,e)},e.removeAttribute=function(t){kn(this.el_,t)},e.width=function(t,e){return this.dimension("width",t,e)},e.height=function(t,e){return this.dimension("height",t,e)},e.dimensions=function(t,e){this.width(t,!0),this.height(e)},e.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[t],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+Fi(t)],10)},e.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if(e=Re(this.el_,t),0===(e=parseFloat(e))||isNaN(e)){var n="offset"+Fi(t);e=this.el_[n]}return e},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(t){this.player_&&(t.stopPropagation(),this.player_.handleKeyDown(t))},e.handleKeyPress=function(t){this.handleKeyDown(t)},e.emitTapEvents=function(){var t,e=0,n=null;this.on("touchstart",function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=A.a.performance.now(),t=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)t=!1;else if(n){var i=e.touches[0].pageX-n.pageX,r=e.touches[0].pageY-n.pageY;Math.sqrt(i*i+r*r)>10&&(t=!1)}});var i=function(){t=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(i){(n=null,!0===t)&&(A.a.performance.now()-e<200&&(i.preventDefault(),this.trigger("tap")))})},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=fi(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.setTimeout=function(t,e){var n,i=this;return t=fi(this,t),this.clearTimersOnDispose_(),n=A.a.setTimeout(function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),t()},e),this.setTimeoutIds_.add(n),n},e.clearTimeout=function(t){return this.setTimeoutIds_.has(t)&&(this.setTimeoutIds_.delete(t),A.a.clearTimeout(t)),t},e.setInterval=function(t,e){t=fi(this,t),this.clearTimersOnDispose_();var n=A.a.setInterval(t,e);return this.setIntervalIds_.add(n),n},e.clearInterval=function(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),A.a.clearInterval(t)),t},e.requestAnimationFrame=function(t){var e,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),t=fi(this,t),e=A.a.requestAnimationFrame(function(){n.rafIds_.has(e)&&n.rafIds_.delete(e),t()}),this.rafIds_.add(e),e):this.setTimeout(t,1e3/60)},e.requestNamedAnimationFrame=function(t,e){var n=this;if(!this.namedRafs_.has(t)){this.clearTimersOnDispose_(),e=fi(this,e);var i=this.requestAnimationFrame(function(){e(),n.namedRafs_.has(t)&&n.namedRafs_.delete(t)});return this.namedRafs_.set(t,i),t}},e.cancelNamedAnimationFrame=function(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))},e.cancelAnimationFrame=function(t){return this.supportsRaf_?(this.rafIds_.has(t)&&(this.rafIds_.delete(t),A.a.cancelAnimationFrame(t)),t):this.clearTimeout(t)},e.clearTimersOnDispose_=function(){var t=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(e){var n=e[0],i=e[1];t[n].forEach(function(e,n){return t[i](n)})}),t.clearingTimersOnDispose_=!1}))},t.registerComponent=function(e,n){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var i,r=t.getComponent("Tech"),s=r&&r.isTech(n),a=t===n||t.prototype.isPrototypeOf(n.prototype);if(s||!a)throw i=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+i+".");e=Fi(e),t.components_||(t.components_={});var A=t.getComponent("Player");if("Player"===e&&A&&A.players){var o=A.players,u=Object.keys(o);if(o&&u.length>0&&u.map(function(t){return o[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=n,t.components_[Ii(e)]=n,n},t.getComponent=function(e){if(e&&t.components_)return t.components_[e]},t}();function Hi(t,e,n,i){return function(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,i,n.length-1),n[i][e]}function Ri(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:Hi.bind(null,"start",0,t),end:Hi.bind(null,"end",1,t)}}function Mi(t,e){return Array.isArray(t)?Ri(t):void 0===t||void 0===e?Ri():Ri([[t,e]])}function Ni(t,e){var n,i,r=0;if(!e)return 0;t&&t.length||(t=Mi(0,0));for(var s=0;s<t.length;s++)n=t.start(s),(i=t.end(s))>e&&(i=e),r+=i-n;return r/e}function Ki(t){if(t instanceof Ki)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:Pe(t)&&("number"==typeof t.code&&(this.code=t.code),De(this,t)),this.message||(this.message=Ki.defaultMessages[this.code]||"")}Pi.prototype.supportsRaf_="function"==typeof A.a.requestAnimationFrame&&"function"==typeof A.a.cancelAnimationFrame,Pi.registerComponent("Component",Pi),Ki.prototype.code=0,Ki.prototype.message="",Ki.prototype.status=null,Ki.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ki.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var ji=0;ji<Ki.errorTypes.length;ji++)Ki[Ki.errorTypes[ji]]=ji,Ki.prototype[Ki.errorTypes[ji]]=ji;function Vi(t){return void 0!==t&&null!==t&&"function"==typeof t.then}function Gi(t){Vi(t)&&t.then(null,function(t){})}var $i=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,n,i){return t[n]&&(e[n]=t[n]),e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},Wi=function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=$i(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===n.indexOf(t)}).map($i))},zi=function(t,e){return t.forEach(function(t){var n=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return n.addCue(t)})}),e.textTracks()},Xi="vjs-modal-dialog",qi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleKeyDown_=function(t){return i.handleKeyDown(t)},i.close_=function(t){return i.close(t)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=mn("div",{className:Xi+"-content"},{role:"document"}),i.descEl_=mn("p",{className:Xi+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),vn(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return Xi+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},n.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close_)}!e&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,i=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),Hn(e,t),this.trigger("modalfill"),i?n.insertBefore(e,i):n.appendChild(e);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),On(this.contentEl()),this.trigger("modalempty")},n.content=function(t){return void 0!==t&&(this.content_=t),this.content_},n.conditionalFocus_=function(){var t=u.a.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&&(this.previouslyActiveEl_=t,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(t){if(t.stopPropagation(),y.a.isEventKey(t,"Escape")&&this.closeable())return t.preventDefault(),void this.close();if(y.a.isEventKey(t,"Tab")){for(var e,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){e=r;break}u.a.activeElement===this.el_&&(e=0),t.shiftKey&&0===e?(n[n.length-1].focus(),t.preventDefault()):t.shiftKey||e!==n.length-1||(n[0].focus(),t.preventDefault())}},n.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(t){return(t instanceof A.a.HTMLAnchorElement||t instanceof A.a.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof A.a.HTMLInputElement||t instanceof A.a.HTMLSelectElement||t instanceof A.a.HTMLTextAreaElement||t instanceof A.a.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof A.a.HTMLIFrameElement||t instanceof A.a.HTMLObjectElement||t instanceof A.a.HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")})},e}(Pi);qi.prototype.options_={pauseOnOpen:!0,temporary:!0},Pi.registerComponent("ModalDialog",qi);var Yi=function(t){function e(e){var n;void 0===e&&(e=[]),(n=t.call(this)||this).tracks_=[],Object.defineProperty(d()(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<e.length;i++)n.addTrack(e[i]);return n}p()(e,t);var n=e.prototype;return n.addTrack=function(t){var e=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack",target:this})),t.labelchange_=function(){e.trigger({track:t,type:"labelchange",target:e})},yi(t)&&t.addEventListener("labelchange",t.labelchange_)},n.removeTrack=function(t){for(var e,n=0,i=this.length;n<i;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack",target:this})},n.getTrackById=function(t){for(var e=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===t){e=r;break}}return e},e}(mi);for(var Ji in Yi.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Yi.prototype.allowedEvents_)Yi.prototype["on"+Ji]=null;var Zi=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].enabled=!1)},tr=function(t){function e(e){var n;void 0===e&&(e=[]);for(var i=e.length-1;i>=0;i--)if(e[i].enabled){Zi(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,n}p()(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.enabled&&Zi(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){n.changing_||(n.changing_=!0,Zi(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Yi),er=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].selected=!1)},nr=function(t){function e(e){var n;void 0===e&&(e=[]);for(var i=e.length-1;i>=0;i--)if(e[i].selected){er(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,Object.defineProperty(d()(n),"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n}p()(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.selected&&er(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){n.changing_||(n.changing_=!0,er(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(Yi),ir=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;t.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(Yi),rr=function(){function t(t){void 0===t&&(t=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var e=0,n=t.length;e<n;e++)this.addTrackElement_(t[e])}var e=t.prototype;return e.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},e.getTrackElementByTrack_=function(t){for(var e,n=0,i=this.trackElements_.length;n<i;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},e.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_[e].track&&"function"==typeof this.trackElements_[e].track.off&&this.trackElements_[e].track.off(),"function"==typeof this.trackElements_[e].off&&this.trackElements_[e].off(),this.trackElements_.splice(e,1);break}},t}(),sr=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(t){var e=this.length||0,n=0,i=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<i)for(n=e;n<i;n++)r.call(this,n)},e.getCueById=function(t){for(var e=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===t){e=r;break}}return e},t}(),ar={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Ar={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},or={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},ur={disabled:"disabled",hidden:"hidden",showing:"showing"},lr=function(t){function e(e){var n;void 0===e&&(e={}),n=t.call(this)||this;var i={id:e.id||"vjs_track_"+Jn(),kind:e.kind||"",language:e.language||""},r=e.label||"",s=function(t){Object.defineProperty(d()(n),t,{get:function(){return i[t]},set:function(){}})};for(var a in i)s(a);return Object.defineProperty(d()(n),"label",{get:function(){return r},set:function(t){t!==r&&(r=t,this.trigger("labelchange"))}}),n}return p()(e,t),e}(mi),cr=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=u.a.createElement("a");n.href=t;for(var i={},r=0;r<e.length;r++)i[e[r]]=n[e[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=A.a.location.protocol),i.host||(i.host=A.a.location.host),i},hr=function(t){if(!t.match(/^https?:\/\//)){var e=u.a.createElement("a");e.href=t,t=e.href}return t},dr=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(e)return e.pop().toLowerCase()}return""},fr=function(t,e){void 0===e&&(e=A.a.location);var n=cr(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host},pr=Object.freeze({__proto__:null,parseUrl:cr,getAbsoluteURL:hr,getFileExtension:dr,isCrossOrigin:fr}),gr=function(t,e){var n=new A.a.WebVTT.Parser(A.a,A.a.vttjs,A.a.WebVTT.StringDecoder()),i=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){i.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),i.length>0&&(A.a.console&&A.a.console.groupCollapsed&&A.a.console.groupCollapsed("Text Track parsing errors for "+e.src),i.forEach(function(t){return Fe.error(t)}),A.a.console&&A.a.console.groupEnd&&A.a.console.groupEnd()),n.flush()},mr=function(t,e){var n={uri:t},i=fr(t);i&&(n.cors=i);var r="use-credentials"===e.tech_.crossOrigin();r&&(n.withCredentials=r),b()(n,fi(this,function(t,n,i){if(t)return Fe.error(t,n);e.loaded_=!0,"function"!=typeof A.a.WebVTT?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],function(t){if("vttjserror"!==t.type)return gr(i,e);Fe.error("vttjs failed to load, stopping trying to process "+e.src)}):gr(i,e)}))},vr=function(t){function e(e){var n;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var i=xi(e,{kind:or[e.kind]||"subtitles",language:e.language||e.srclang||""}),r=ur[i.mode]||"disabled",s=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=t.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new sr(n.cues_),A=new sr(n.activeCues_),o=!1,u=fi(d()(n),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1))});return n.tech_.one("dispose",function(){n.tech_.off("timeupdate",u)}),"disabled"!==r&&n.tech_.on("timeupdate",u),Object.defineProperties(d()(n),{default:{get:function(){return s},set:function(){}},mode:{get:function(){return r},set:function(t){ur[t]&&r!==t&&(r=t,this.preload_||"disabled"===r||0!==this.cues.length||mr(this.src,this),this.tech_.off("timeupdate",u),"disabled"!==r&&this.tech_.on("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return A;for(var t=this.tech_.currentTime(),e=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];r.startTime<=t&&r.endTime>=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(o=!1,e.length!==this.activeCues_.length)o=!0;else for(var s=0;s<e.length;s++)-1===this.activeCues_.indexOf(e[s])&&(o=!0);return this.activeCues_=e,A.setCues_(this.activeCues_),A},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&mr(n.src,d()(n))):n.loaded_=!0,n}p()(e,t);var n=e.prototype;return n.addCue=function(t){var e=t;if(A.a.vttjs&&!(t instanceof A.a.vttjs.VTTCue)){for(var n in e=new A.a.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)n in e||(e[n]=t[n]);e.id=t.id,e.originalCue_=t}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},n.removeCue=function(t){for(var e=this.cues_.length;e--;){var n=this.cues_[e];if(n===t||n.originalCue_&&n.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}(lr);vr.prototype.allowedEvents_={cuechange:"cuechange"};var yr=function(t){function e(e){var n;void 0===e&&(e={});var i=xi(e,{kind:Ar[e.kind]||""});n=t.call(this,i)||this;var r=!1;return Object.defineProperty(d()(n),"enabled",{get:function(){return r},set:function(t){"boolean"==typeof t&&t!==r&&(r=t,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return p()(e,t),e}(lr),Br=function(t){function e(e){var n;void 0===e&&(e={});var i=xi(e,{kind:ar[e.kind]||""});n=t.call(this,i)||this;var r=!1;return Object.defineProperty(d()(n),"selected",{get:function(){return r},set:function(t){"boolean"==typeof t&&t!==r&&(r=t,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return p()(e,t),e}(lr),br=0,wr=2,Cr=function(t){function e(e){var n,i;void 0===e&&(e={}),n=t.call(this)||this;var r=new vr(e);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n.default=r.default,Object.defineProperties(d()(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=br,r.addEventListener("loadeddata",function(){i=wr,n.trigger({type:"load",target:d()(n)})}),n}return p()(e,t),e}(mi);Cr.prototype.allowedEvents_={load:"load"},Cr.NONE=br,Cr.LOADING=1,Cr.LOADED=wr,Cr.ERROR=3;var _r={audio:{ListClass:tr,TrackClass:yr,capitalName:"Audio"},video:{ListClass:nr,TrackClass:Br,capitalName:"Video"},text:{ListClass:ir,TrackClass:vr,capitalName:"Text"}};Object.keys(_r).forEach(function(t){_r[t].getterName=t+"Tracks",_r[t].privateName=t+"Tracks_"});var Tr={remoteText:{ListClass:ir,TrackClass:vr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:rr,TrackClass:Cr,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Er=c()({},_r,Tr);Tr.names=Object.keys(Tr),_r.names=Object.keys(_r),Er.names=[].concat(Tr.names).concat(_r.names);var Sr=function(t){function e(e,n){var i;return void 0===e&&(e={}),void 0===n&&(n=function(){}),e.reportTouchActivity=!1,(i=t.call(this,null,e,n)||this).onDurationChange_=function(t){return i.onDurationChange(t)},i.trackProgress_=function(t){return i.trackProgress(t)},i.trackCurrentTime_=function(t){return i.trackCurrentTime(t)},i.stopTrackingCurrentTime_=function(t){return i.stopTrackingCurrentTime(t)},i.disposeSourceHandler_=function(t){return i.disposeSourceHandler(t)},i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),Er.names.forEach(function(t){var n=Er[t];e&&e[n.getterName]&&(i[n.privateName]=e[n.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===e["native"+t+"Tracks"]&&(i["featuresNative"+t+"Tracks"]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==e.preloadTextTracks,i.autoRemoteTextTracks_=new Er.text.ListClass,i.initTrackListeners(),e.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}p()(e,t);var n=e.prototype;return n.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",function(){return e.setTimeout(function(){return e.triggerSourceset(t)},1)}),this.trigger({src:t,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(fi(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(t){this.duration_=this.duration()},n.buffered=function(){return Mi(0,0)},n.bufferedPercent=function(){return Ni(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(_r.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},n.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var n=e[t+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===t&&e.removeRemoteTextTrack(r),n.removeTrack(r)}})},n.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(t){return void 0!==t&&(this.error_=new Ki(t),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Mi(0,0):Mi()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var t=this;_r.names.forEach(function(e){var n=_r[e],i=function(){t.trigger(e+"trackchange")},r=t[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),t.on("dispose",function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})},n.addWebVttScript_=function(){var t=this;if(!A.a.WebVTT)if(u.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&He(C.a)&&Object.keys(C.a).length>0)return void this.trigger("vttjsloaded");var e=u.a.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),A.a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var t=this,e=this.textTracks(),n=this.remoteTextTracks(),i=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var s=function(){return t.trigger("texttrackchange")},a=function(){s();for(var t=0;t<e.length;t++){var n=e[t];n.removeEventListener("cuechange",s),"showing"===n.mode&&n.addEventListener("cuechange",s)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(var t=0;t<e.length;t++){e[t].removeEventListener("cuechange",s)}})},n.addTextTrack=function(t,e,n){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,n,i,r){void 0===r&&(r={});var s=t.textTracks();r.kind=e,n&&(r.label=n),i&&(r.language=i),r.tech=t;var a=new Er.text.TrackClass(r);return s.addTrack(a),a}(this,t,e,n)},n.createRemoteTextTrack=function(t){var e=xi(t,{tech:this});return new Tr.remoteTextEl.TrackClass(e)},n.addRemoteTextTrack=function(t,e){var n=this;void 0===t&&(t={});var i=this.createRemoteTextTrack(t);return!0!==e&&!1!==e&&(Fe.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),e=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==e&&this.ready(function(){return n.autoRemoteTextTracks_.addTrack(i.track)}),i},n.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var t=this.options_.Promise||A.a.Promise;if(t)return t.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,n){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=Fi(t),e.techs_[t]=n,e.techs_[Ii(t)]=n,"Tech"!==t&&e.defaultTechOrder_.push(t),n},e.getTech=function(t){if(t)return e.techs_&&e.techs_[t]?e.techs_[t]:(t=Fi(t),A.a&&A.a.videojs&&A.a.videojs[t]?(Fe.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),A.a.videojs[t]):void 0)},e}(Pi);Er.names.forEach(function(t){var e=Er[t];Sr.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),Sr.prototype.featuresVolumeControl=!0,Sr.prototype.featuresMuteControl=!0,Sr.prototype.featuresFullscreenResize=!1,Sr.prototype.featuresPlaybackRate=!1,Sr.prototype.featuresProgressEvents=!1,Sr.prototype.featuresSourceset=!1,Sr.prototype.featuresTimeupdateEvents=!1,Sr.prototype.featuresNativeTextTracks=!1,Sr.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var i=t.sourceHandlers;i||(i=t.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,e)},t.canPlayType=function(e){for(var n,i=t.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(e))return n;return""},t.selectSourceHandler=function(e,n){for(var i=t.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(e,n))return i[r];return null},t.canPlaySource=function(e,n){var i=t.selectSourceHandler(e,n);return i?i.canHandleSource(e,n):""};["seekable","seeking","duration"].forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e,this.options_);n||(t.nativeSourceHandler?n=t.nativeSourceHandler:Fe.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=n.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Pi.registerComponent("Tech",Sr),Sr.registerTech("Tech",Sr),Sr.defaultTechOrder_=[];var kr={},Ur={},Ir={};function Fr(t,e,n){t.setTimeout(function(){return function t(e,n,i,r,s,a){void 0===e&&(e={});void 0===n&&(n=[]);void 0===s&&(s=[]);void 0===a&&(a=!1);var A=n,o=A[0],u=A.slice(1);if("string"==typeof o)t(e,kr[o],i,r,s,a);else if(o){var l=function(t,e){var n=Ur[t.id()],i=null;if(void 0===n||null===n)return i=e(t),Ur[t.id()]=[[e,i]],i;for(var r=0;r<n.length;r++){var s=n[r],a=s[0],A=s[1];a===e&&(i=A)}null===i&&(i=e(t),n.push([e,i]));return i}(r,o);if(!l.setSource)return s.push(l),t(e,u,i,r,s,a);l.setSource(De({},e),function(n,A){if(n)return t(e,u,i,r,s,a);s.push(l),t(A,e.type===A.type?u:kr[A.type],i,r,s,a)})}else u.length?t(e,u,i,r,s,a):a?i(e,s):t(e,kr["*"],i,r,s,!0)}(e,kr[e.type],n,t)},1)}function xr(t,e,n,i){void 0===i&&(i=null);var r="call"+Fi(n),s=t.reduce(Dr(r),i),a=s===Ir,A=a?null:e[n](s);return function(t,e,n,i){for(var r=t.length-1;r>=0;r--){var s=t[r];s[e]&&s[e](i,n)}}(t,n,A,a),A}var Qr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Lr={setCurrentTime:1,setMuted:1,setVolume:1},Or={play:1,pause:1};function Dr(t){return function(e,n){return e===Ir?Ir:n[t]?n[t](e):e}}var Pr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Hr=function(t){void 0===t&&(t="");var e=dr(t);return Pr[e.toLowerCase()]||""};function Rr(t){if(!t.type){var e=Hr(t.src);e&&(t.type=e)}return t}var Mr=function(t){function e(e,n,i){var r,s=xi({createEl:!1},n);if(r=t.call(this,e,s,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)e.src(n.playerOptions.sources);else for(var a=0,A=n.playerOptions.techOrder;a<A.length;a++){var o=Fi(A[a]),u=Sr.getTech(o);if(o||(u=Pi.getComponent(o)),u&&u.isSupported()){e.loadTech_(o);break}}return r}return p()(e,t),e}(Pi);Pi.registerComponent("MediaLoader",Mr);var Nr=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleMouseOver_=function(t){return i.handleMouseOver(t)},i.handleMouseOut_=function(t){return i.handleMouseOut(t)},i.handleClick_=function(t){return i.handleClick(t)},i.handleKeyDown_=function(t){return i.handleKeyDown(t)},i.emitTapEvents(),i.enable(),i}p()(e,t);var n=e.prototype;return n.createEl=function(e,n,i){void 0===e&&(e="div"),void 0===n&&(n={}),void 0===i&&(i={}),n=De({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&Fe.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=De({role:"button"},i),this.tabIndex_=n.tabIndex;var r=t.prototype.createEl.call(this,e,n,i);return this.createControlTextEl(r),r},n.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},n.createControlTextEl=function(t){return this.controlTextEl_=mn("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},n.controlText=function(t,e){if(void 0===e&&(e=this.el()),void 0===t)return this.controlText_||"Need Text";var n=this.localize(t);this.controlText_=t,vn(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||e.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(e){y.a.isEventKey(e,"Space")||y.a.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(Pi);Pi.registerComponent("ClickableComponent",Nr);var Kr=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update(),i.update_=function(t){return i.update(t)},e.on("posterchange",i.update_),i}p()(e,t);var n=e.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),t.prototype.dispose.call(this)},n.createEl=function(){return mn("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},n.setSrc=function(t){var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e},n.handleClick=function(t){if(this.player_.controls()){var e=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(en||Je)&&e||this.player_.tech(!0).focus(),this.player_.paused()?Gi(this.player_.play()):this.player_.pause()}},e}(Nr);Pi.registerComponent("PosterImage",Kr);var jr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Vr(t,e){var n;if(4===t.length)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function Gr(t,e,n){try{t.style[e]=n}catch(t){return}}var $r=function(t){function e(e,n,i){var r;r=t.call(this,e,n,i)||this;var s=function(t){return r.updateDisplay(t)};return e.on("loadstart",function(t){return r.toggleDisplay(t)}),e.on("texttrackchange",s),e.on("loadedmetadata",function(t){return r.preselectTrack(t)}),e.ready(fi(d()(r),function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)this.hide();else{e.on("fullscreenchange",s),e.on("playerresize",s),A.a.addEventListener("orientationchange",s),e.on("dispose",function(){return A.a.removeEventListener("orientationchange",s)});for(var t=this.options_.playerOptions.tracks||[],n=0;n<t.length;n++)this.player_.addRemoteTextTrack(t[n],!0);this.preselectTrack()}})),r}p()(e,t);var n=e.prototype;return n.preselectTrack=function(){for(var t,e,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,a=0;a<r.length;a++){var A=r[a];s&&s.enabled&&s.language&&s.language===A.language&&A.kind in i?A.kind===s.kind?n=A:n||(n=A):s&&!s.enabled?(n=null,t=null,e=null):A.default&&("descriptions"!==A.kind||t?A.kind in i&&!e&&(e=A):t=A)}n?n.mode="showing":e?e.mode="showing":t&&(t.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof A.a.WebVTT&&A.a.WebVTT.processCues(A.a,[],this.el_)},n.updateDisplay=function(){var t=this.player_.textTracks(),e=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),e){for(var n=[],i=0;i<t.length;++i){var r=t[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{for(var s=null,a=null,A=t.length;A--;){var o=t[A];"showing"===o.mode&&("descriptions"===o.kind?s=o:a=o)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):s&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(s))}},n.updateDisplayState=function(t){for(var e=this.player_.textTrackSettings.getValues(),n=t.activeCues,i=n.length;i--;){var r=n[i];if(r){var s=r.displayState;if(e.color&&(s.firstChild.style.color=e.color),e.textOpacity&&Gr(s.firstChild,"color",Vr(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(s.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&Gr(s.firstChild,"backgroundColor",Vr(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?Gr(s,"backgroundColor",Vr(e.windowColor,e.windowOpacity)):s.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===e.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===e.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===e.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),e.fontPercent&&1!==e.fontPercent){var a=A.a.parseFloat(s.style.fontSize);s.style.fontSize=a*e.fontPercent+"px",s.style.height="auto",s.style.top="auto"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=jr[e.fontFamily])}}},n.updateForTrack=function(t){if(Array.isArray(t)||(t=[t]),"function"==typeof A.a.WebVTT&&!t.every(function(t){return!t.activeCues})){for(var e=[],n=0;n<t.length;++n)for(var i=t[n],r=0;r<i.activeCues.length;++r)e.push(i.activeCues[r]);A.a.WebVTT.processCues(A.a,e,this.el_);for(var s=0;s<t.length;++s){for(var a=t[s],o=0;o<a.activeCues.length;++o){var u=a.activeCues[o].displayState;bn(u,"vjs-text-track-cue"),bn(u,"vjs-text-track-cue-"+(a.language?a.language:s))}this.player_.textTrackSettings&&this.updateDisplayState(a)}}},e}(Pi);Pi.registerComponent("TextTrackDisplay",$r);var Wr=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"Video Player"),i=mn("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),r=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},e}(Pi);Pi.registerComponent("LoadingSpinner",Wr);var zr=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.createEl=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={}),e=De({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},e),n=De({type:"button"},n);var i=Pi.prototype.createEl.call(this,"button",e,n);return this.createControlTextEl(i),i},n.addChild=function(t,e){void 0===e&&(e={});var n=this.constructor.name;return Fe.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Pi.prototype.addChild.call(this,t,e)},n.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(e){y.a.isEventKey(e,"Space")||y.a.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(Nr);Pi.registerComponent("Button",zr);var Xr=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).mouseused_=!1,i.on("mousedown",function(t){return i.handleMouseDown(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Gi(e),void(!this.player_.tech(!0)||(en||Je)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var s=function(){return r.focus()};Vi(e)?e.then(s,function(){}):this.setTimeout(s,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(e){this.mouseused_=!1,t.prototype.handleKeyDown.call(this,e)},n.handleMouseDown=function(t){this.mouseused_=!0},e}(zr);Xr.prototype.controlText_="Play Video",Pi.registerComponent("BigPlayButton",Xr);var qr=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(e){y.a.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(zr);Pi.registerComponent("CloseButton",qr);var Yr=function(t){function e(e,n){var i;return void 0===n&&(n={}),i=t.call(this,e,n)||this,n.replay=void 0===n.replay||n.replay,i.on(e,"play",function(t){return i.handlePlay(t)}),i.on(e,"pause",function(t){return i.handlePause(t)}),n.replay&&i.on(e,"ended",function(t){return i.handleEnded(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.player_.paused()?Gi(this.player_.play()):this.player_.pause()},n.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},n.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(t){var e=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(t){return e.handleSeeked(t)})},e}(zr);Yr.prototype.controlText_="Play",Pi.registerComponent("PlayToggle",Yr);var Jr=function(t,e){t=t<0?0:t;var n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600),s=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=i=n="-"),(r=r>0||a>0?r+":":"")+(i=((r||s>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)},Zr=Jr;function ts(t,e){return void 0===e&&(e=t),Zr(t,e)}var es=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,["timeupdate","ended"],function(t){return i.updateContent(t)}),i.updateTextNode_(),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=mn("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},n.updateTextNode_=function(t){var e=this;void 0===t&&(t=0),t=ts(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(e.contentEl_){var t=e.textNode_;t&&e.contentEl_.firstChild!==t&&(t=null,Fe.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),e.textNode_=u.a.createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}}))},n.updateContent=function(t){},e}(Pi);es.prototype.labelText_="Time",es.prototype.controlText_="Time",Pi.registerComponent("TimeDisplay",es);var ns=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(t){var e;e=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(e)},e}(es);ns.prototype.labelText_="Current Time",ns.prototype.controlText_="Current Time",Pi.registerComponent("CurrentTimeDisplay",ns);var is=function(t){function e(e,n){var i,r=function(t){return i.updateContent(t)};return(i=t.call(this,e,n)||this).on(e,"durationchange",r),i.on(e,"loadstart",r),i.on(e,"loadedmetadata",r),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(t){var e=this.player_.duration();this.updateTextNode_(e)},e}(es);is.prototype.labelText_="Duration",is.prototype.controlText_="Duration",Pi.registerComponent("DurationDisplay",is);var rs=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},e}(Pi);Pi.registerComponent("TimeDivider",rs);var ss=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"durationchange",function(t){return i.updateContent(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var e=t.prototype.createEl.call(this);return e.insertBefore(mn("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},n.updateContent=function(t){var e;"number"==typeof this.player_.duration()&&(e=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(e))},e}(es);ss.prototype.labelText_="Remaining Time",ss.prototype.controlText_="Remaining Time",Pi.registerComponent("RemainingTimeDisplay",ss);var as=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).updateShowing(),i.on(i.player(),"durationchange",function(t){return i.updateShowing(t)}),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=mn("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},n.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},n.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(Pi);Pi.registerComponent("LiveDisplay",as);var As=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(t){return i.updateLiveEdgeStatus(t)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=mn("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,t.prototype.dispose.call(this)},e}(zr);As.prototype.controlText_="Seek to live, currently playing live",Pi.registerComponent("SeekToLive",As);var os=function(t,e,n){return t=Number(t),Math.min(n,Math.max(e,isNaN(t)?e:t))},us=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleMouseDown_=function(t){return i.handleMouseDown(t)},i.handleMouseUp_=function(t){return i.handleMouseUp(t)},i.handleKeyDown_=function(t){return i.handleKeyDown(t)},i.handleClick_=function(t){return i.handleClick(t)},i.handleMouseMove_=function(t){return i.handleMouseMove(t)},i.update_=function(t){return i.update(t)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}p()(e,t);var n=e.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(e,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=De({tabIndex:0},n),i=De({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),t.prototype.createEl.call(this,e,n,i)},n.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||Ze||t.preventDefault(),Un(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove_),this.on(e,"mouseup",this.handleMouseUp_),this.on(e,"touchmove",this.handleMouseMove_),this.on(e,"touchend",this.handleMouseUp_),this.handleMouseMove(t)},n.handleMouseMove=function(t){},n.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;In(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var t=this;if(this.el_&&this.bar){var e=this.getProgress();return e===this.progress_?e:(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",function(){var n=t.vertical()?"height":"width";t.bar.el().style[n]=(100*e).toFixed(2)+"%"}),e)}},n.getProgress=function(){return Number(os(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(t){var e=Qn(this.el_,t);return this.vertical()?e.y:e.x},n.handleKeyDown=function(e){y.a.isEventKey(e,"Left")||y.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):y.a.isEventKey(e,"Right")||y.a.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){t.stopPropagation(),t.preventDefault()},n.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(Pi);Pi.registerComponent("Slider",us);var ls=function(t,e){return os(t/e*100,0,100).toFixed(2)+"%"},cs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).partEls_=[],i.on(e,"progress",function(t){return i.update(t)}),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=mn("span",{className:"vjs-control-text"}),i=mn("span",{textContent:this.localize("Loaded")}),r=u.a.createTextNode(": ");return this.percentageEl_=mn("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),e},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,t.prototype.dispose.call(this)},n.update=function(t){var e=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var t=e.player_.liveTracker,n=e.player_.buffered(),i=t&&t.isLive()?t.seekableEnd():e.player_.duration(),r=e.player_.bufferedEnd(),s=e.partEls_,a=ls(r,i);e.percent_!==a&&(e.el_.style.width=a,vn(e.percentageEl_,a),e.percent_=a);for(var A=0;A<n.length;A++){var o=n.start(A),u=n.end(A),l=s[A];l||(l=e.el_.appendChild(mn()),s[A]=l),l.dataset.start===o&&l.dataset.end===u||(l.dataset.start=o,l.dataset.end=u,l.style.left=ls(o,r),l.style.width=ls(u-o,r))}for(var c=s.length;c>n.length;c--)e.el_.removeChild(s[c-1]);s.length=n.length})},e}(Pi);Pi.registerComponent("LoadProgressBar",cs);var hs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n){var i=xn(this.el_),r=Fn(this.player_.el()),s=t.width*e;if(r&&i){var a=t.left-r.left+s,A=t.width-s+(r.right-t.right),o=i.width/2;a<o?o+=o-a:A<o&&(o=A),o<0?o=0:o>i.width&&(o=i.width),o=Math.round(o),this.el_.style.right="-"+o+"px",this.write(n)}},n.write=function(t){vn(this.el_,t)},n.updateTime=function(t,e,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var s,a=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var A=r.player_.liveTracker.liveWindow(),o=A-e*A;s=(o<1?"":"-")+ts(o,A)}else s=ts(n,a);r.update(t,e,s),i&&i()})},e}(Pi);Pi.registerComponent("TimeTooltip",hs);var ds=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(t,e){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(t,e,i)}},e}(Pi);ds.prototype.options_={children:[]},on||ze||ds.prototype.options_.children.push("timeTooltip"),Pi.registerComponent("PlayProgressBar",ds);var fs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e){var n=this,i=e*this.player_.duration();this.getChild("timeTooltip").updateTime(t,e,i,function(){n.el_.style.left=t.width*e+"px"})},e}(Pi);fs.prototype.options_={children:["timeTooltip"]},Pi.registerComponent("MouseTimeDisplay",fs);var ps=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).setEventHandlers_(),i}p()(e,t);var n=e.prototype;return n.setEventHandlers_=function(){var t=this;this.update_=fi(this,this.update),this.update=pi(this.update_,di),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(e){return t.enableInterval_(e)},this.disableIntervalHandler_=function(e){return t.disableInterval_(e)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in u.a&&"visibilityState"in u.a&&this.on(u.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(t){"hidden"===u.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(t)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,di))},n.disableInterval_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&"ended"!==t.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(e){var n=this;if("hidden"!==u.a.visibilityState){var i=t.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var t=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),e=n.player_.liveTracker,r=n.player_.duration();e&&e.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===t&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[ts(t,r),ts(r,r)],"{1} of {2}")),n.currentTime_=t,n.duration_=r),n.bar&&n.bar.update(Fn(n.el()),n.getProgress())}),i}},n.userSeek_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var t,e=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t},n.handleMouseDown=function(e){Rn(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},n.handleMouseMove=function(t){if(Rn(t)){var e,n=this.calculateDistance(t),i=this.player_.liveTracker;if(i&&i.isLive()){if(n>=.99)return void i.seekToLiveEdge();var r=i.seekableStart(),s=i.liveCurrentTime();if((e=r+n*i.liveWindow())>=s&&(e=s),e<=r&&(e=r+.1),e===1/0)return}else(e=n*this.player_.duration())===this.player_.duration()&&(e-=.1);this.userSeek_(e)}},n.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},n.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},n.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Gi(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(e){var n=this.player_.liveTracker;if(y.a.isEventKey(e,"Space")||y.a.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(y.a.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(y.a.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(y()(e))){e.preventDefault(),e.stopPropagation();var i=10*(y.a.codes[y()(e)]-y.a.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else y.a.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):y.a.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):t.prototype.handleKeyDown.call(this,e)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in u.a&&"visibilityState"in u.a&&this.off(u.a,"visibilitychange",this.toggleVisibility_),t.prototype.dispose.call(this)},e}(us);ps.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},on||ze||ps.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Pi.registerComponent("SeekBar",ps);var gs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleMouseMove=pi(fi(d()(i),i.handleMouseMove),di),i.throttledHandleMouseSeek=pi(fi(d()(i),i.handleMouseSeek),di),i.handleMouseUpHandler_=function(t){return i.handleMouseUp(t)},i.handleMouseDownHandler_=function(t){return i.handleMouseDown(t)},i.enable(),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("playProgressBar"),i=e.getChild("mouseTimeDisplay");if(n||i){var r=e.el(),s=xn(r),a=Qn(r,t).x;a=os(a,0,1),i&&i.update(s,a),n&&n.update(s,e.getProgress())}}},n.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach(function(t){return t.disable&&t.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var t=this.getChild("seekBar");this.player_.scrubbing(!1),t.videoWasPlaying&&Gi(this.player_.play())}},n.enable=function(){this.children().forEach(function(t){return t.enable&&t.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.getChild("seekBar");e&&e.handleMouseUp(t),this.removeListenersAddedOnMousedownAndTouchstart()},e}(Pi);gs.prototype.options_={children:["seekBar"]},Pi.registerComponent("ProgressControl",gs);var ms=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,["enterpictureinpicture","leavepictureinpicture"],function(t){return i.handlePictureInPictureChange(t)}),i.on(e,["disablepictureinpicturechanged","loadedmetadata"],function(t){return i.handlePictureInPictureEnabledChange(t)}),i.disable(),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+t.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){u.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(zr);ms.prototype.controlText_="Picture-in-Picture",Pi.registerComponent("PictureInPictureToggle",ms);var vs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"fullscreenchange",function(t){return i.handleFullscreenChange(t)}),!1===u.a[e.fsApi_.fullscreenEnabled]&&i.disable(),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(zr);vs.prototype.controlText_="Fullscreen",Pi.registerComponent("FullscreenToggle",vs);var ys=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},Bs=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(Pi);Pi.registerComponent("VolumeLevel",Bs);var bs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n,i){if(!n){var r=Fn(this.el_),s=Fn(this.player_.el()),a=t.width*e;if(!s||!r)return;var A=t.left-s.left+a,o=t.width-a+(s.right-t.right),u=r.width/2;A<u?u+=u-A:o<u&&(u=o),u<0?u=0:u>r.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(i+"%")},n.write=function(t){vn(this.el_,t)},n.updateVolume=function(t,e,n,i,r){var s=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){s.update(t,e,n,i.toFixed(0)),r&&r()})},e}(Pi);Pi.registerComponent("VolumeLevelTooltip",bs);var ws=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e,n){var i=this,r=100*e;this.getChild("volumeLevelTooltip").updateVolume(t,e,n,r,function(){n?i.el_.style.bottom=t.height*e+"px":i.el_.style.left=t.width*e+"px"})},e}(Pi);ws.prototype.options_={children:["volumeLevelTooltip"]},Pi.registerComponent("MouseVolumeLevelDisplay",ws);var Cs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on("slideractive",function(t){return i.updateLastVolume_(t)}),i.on(e,"volumechange",function(t){return i.updateARIAAttributes(t)}),e.ready(function(){return i.updateARIAAttributes()}),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(e){Rn(e)&&t.prototype.handleMouseDown.call(this,e)},n.handleMouseMove=function(t){var e=this.getChild("mouseVolumeLevelDisplay");if(e){var n=this.el(),i=Fn(n),r=this.vertical(),s=Qn(n,t);s=r?s.y:s.x,s=os(s,0,1),e.update(i,s,r)}Rn(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&&t.player_.lastVolume_(e)})},e}(us);Cs.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},on||ze||Cs.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Cs.prototype.playerEvent="volumechange",Pi.registerComponent("VolumeBar",Cs);var _s=function(t){function e(e,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||He(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=t.call(this,e,n)||this,ys(d()(i),e),i.throttledHandleMouseMove=pi(fi(d()(i),i.handleMouseMove),di),i.handleMouseUpHandler_=function(t){return i.handleMouseUp(t)},i.on("mousedown",function(t){return i.handleMouseDown(t)}),i.on("touchstart",function(t){return i.handleMouseDown(t)}),i.on("mousemove",function(t){return i.handleMouseMove(t)}),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},n.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(Pi);_s.prototype.options_={children:["volumeBar"]},Pi.registerComponent("VolumeControl",_s);var Ts=function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},Es=function(t){function e(e,n){var i;return i=t.call(this,e,n)||this,Ts(d()(i),e),i.on(e,["loadstart","volumechange"],function(t){return i.update(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(t){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var t=this.player_.volume(),e=3;on&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var n=0;n<4;n++)wn(this.el_,"vjs-vol-"+n);bn(this.el_,"vjs-vol-"+e)},n.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},e}(zr);Es.prototype.controlText_="Mute",Pi.registerComponent("MuteToggle",Es);var Ss=function(t){function e(e,n){var i;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||He(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=t.call(this,e,n)||this).handleKeyPressHandler_=function(t){return i.handleKeyPress(t)},i.on(e,["loadstart"],function(t){return i.volumePanelState_(t)}),i.on(i.muteToggle,"keyup",function(t){return i.handleKeyPress(t)}),i.on(i.volumeControl,"keyup",function(t){return i.handleVolumeControlKeyUp(t)}),i.on("keydown",function(t){return i.handleKeyPress(t)}),i.on("mouseover",function(t){return i.handleMouseOver(t)}),i.on("mouseout",function(t){return i.handleMouseOut(t)}),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}p()(e,t);var n=e.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},n.dispose=function(){this.handleMouseOut(),t.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(t){y.a.isEventKey(t,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(t){this.addClass("vjs-hover"),ai(u.a,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(t){this.removeClass("vjs-hover"),Ai(u.a,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(t){y.a.isEventKey(t,"Esc")&&this.handleMouseOut()},e}(Pi);Ss.prototype.options_={children:["muteToggle","volumeControl"]},Pi.registerComponent("VolumePanel",Ss);var ks=function(t){function e(e,n){var i;return i=t.call(this,e,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",function(t){return i.handleKeyDown(t)}),i.boundHandleBlur_=function(t){return i.handleBlur(t)},i.boundHandleTapClick_=function(t){return i.handleTapClick(t)},i}p()(e,t);var n=e.prototype;return n.addEventListenerForItem=function(t){t instanceof Pi&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(t){t instanceof Pi&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),t.prototype.removeChild.call(this,e)},n.addItem=function(t){var e=this.addChild(t);e&&this.addEventListenerForItem(e)},n.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=mn(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ai(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,t.prototype.dispose.call(this)},n.handleBlur=function(t){var e=t.relatedTarget||u.a.activeElement;if(!this.children().some(function(t){return t.el()===e})){var n=this.menuButton_;n&&n.buttonPressed_&&e!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var n=e.filter(function(e){return e.el()===t.target})[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(t){y.a.isEventKey(t,"Left")||y.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(y.a.isEventKey(t,"Right")||y.a.isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())},n.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},n.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},n.focus=function(t){void 0===t&&(t=0);var e=this.children().slice();e.length&&e[0].hasClass("vjs-menu-title")&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(Pi);Pi.registerComponent("Menu",ks);var Us=function(t){function e(e,n){var i;void 0===n&&(n={}),(i=t.call(this,e,n)||this).menuButton_=new zr(e,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=zr.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var s=function(t){return i.handleClick(t)};return i.handleMenuKeyUp_=function(t){return i.handleMenuKeyUp(t)},i.on(i.menuButton_,"tap",s),i.on(i.menuButton_,"click",s),i.on(i.menuButton_,"keydown",function(t){return i.handleKeyDown(t)}),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),ai(u.a,"keyup",i.handleMenuKeyUp_)}),i.on("mouseleave",function(t){return i.handleMouseLeave(t)}),i.on("keydown",function(t){return i.handleSubmenuKeyDown(t)}),i}p()(e,t);var n=e.prototype;return n.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var t=new ks(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=mn("li",{className:"vjs-menu-title",innerHTML:Fi(this.options_.title),tabIndex:-1}),n=new Pi(this.player_,{el:e});t.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)t.addItem(this.items[i]);return t},n.createItems=function(){},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+zr.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},n.controlText=function(t,e){return void 0===e&&(e=this.menuButton_.el()),this.menuButton_.controlText(t,e)},n.dispose=function(){this.handleMouseLeave(),t.prototype.dispose.call(this)},n.handleClick=function(t){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(t){this.removeClass("vjs-hover"),Ai(u.a,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(t){y.a.isEventKey(t,"Esc")||y.a.isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),y.a.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(y.a.isEventKey(t,"Up")||y.a.isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(t){(y.a.isEventKey(t,"Esc")||y.a.isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(t){this.handleSubmenuKeyDown(t)},n.handleSubmenuKeyDown=function(t){(y.a.isEventKey(t,"Esc")||y.a.isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),y.a.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),on&&pn())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(Pi);Pi.registerComponent("MenuButton",Us);var Is=function(t){function e(e,n){var i,r=n.tracks;if((i=t.call(this,e,n)||this).items.length<=1&&i.hide(),!r)return d()(i);var s=fi(d()(i),i.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),r.addEventListener("labelchange",s),i.player_.on("ready",s),i.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s),r.removeEventListener("labelchange",s)}),i}return p()(e,t),e}(Us);Pi.registerComponent("TrackButton",Is);var Fs=["Tab","Esc","Up","Down","Right","Left"],xs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}p()(e,t);var n=e.prototype;return n.createEl=function(e,n,i){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",De({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),i)},n.handleKeyDown=function(e){Fs.some(function(t){return y.a.isEventKey(e,t)})||t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){this.selected(!0)},n.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(Nr);Pi.registerComponent("MenuItem",xs);var Qs=function(t){function e(e,n){var i,r=n.track,s=e.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode,(i=t.call(this,e,n)||this).track=r,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var a,o=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleTracksChange.apply(d()(i),e)},l=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleSelectedLanguageChange.apply(d()(i),e)};(e.on(["loadstart","texttrackchange"],o),s.addEventListener("change",o),s.addEventListener("selectedlanguagechange",l),i.on("dispose",function(){e.off(["loadstart","texttrackchange"],o),s.removeEventListener("change",o),s.removeEventListener("selectedlanguagechange",l)}),void 0===s.onchange)&&i.on(["tap","click"],function(){if("object"!=typeof A.a.Event)try{a=new A.a.Event("change")}catch(t){}a||(a=u.a.createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(a)});return i.handleTracksChange(),i}p()(e,t);var n=e.prototype;return n.handleClick=function(e){var n=this.track,i=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),i)for(var r=0;r<i.length;r++){var s=i[r];-1!==this.kinds.indexOf(s.kind)&&(s===n?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled"))}},n.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},n.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(xs);Pi.registerComponent("TextTrackMenuItem",Qs);var Ls=function(t){function e(e,n){return n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,t.call(this,e,n)||this}p()(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,i=0,r=e.length;i<r;i++){var s=e[i];if(this.options_.kinds.indexOf(s.kind)>-1&&"showing"===s.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),n=!0,i=0,r=e.length;i<r;i++){var s=e[i];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&"showing"===s.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(Qs);Pi.registerComponent("OffTextTrackMenuItem",Ls);var Os=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.textTracks(),t.call(this,e,n)||this}return p()(e,t),e.prototype.createItems=function(t,e){var n;void 0===t&&(t=[]),void 0===e&&(e=Qs),this.label_&&(n=this.label_+" off"),t.push(new Ls(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var s=i[r];if(this.kinds_.indexOf(s.kind)>-1){var a=new e(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+s.kind+"-menu-item"),t.push(a)}}return t},e}(Is);Pi.registerComponent("TextTrackButton",Os);var Ds=function(t){function e(e,n){var i,r=n.track,s=n.cue,a=e.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=s.text,n.selected=s.startTime<=a&&a<s.endTime,(i=t.call(this,e,n)||this).track=r,i.cue=s,r.addEventListener("cuechange",fi(d()(i),i.update)),i}p()(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(t){var e=this.cue,n=this.player_.currentTime();this.selected(e.startTime<=n&&n<e.endTime)},e}(xs);Pi.registerComponent("ChaptersTrackMenuItem",Ds);var Ps=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},n.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},n.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e>=0;e--){var n=t[e];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Fi(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},n.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,i=e.length;n<i;n++){var r=e[n],s=new Ds(this.player_,{track:this.track_,cue:r});t.push(s)}return t},e}(Os);Ps.prototype.kind_="chapters",Ps.prototype.controlText_="Chapters",Pi.registerComponent("ChaptersButton",Ps);var Hs=function(t){function e(e,n,i){var r;r=t.call(this,e,n,i)||this;var s=e.textTracks(),a=fi(d()(r),r.handleTracksChange);return s.addEventListener("change",a),r.on("dispose",function(){s.removeEventListener("change",a)}),r}p()(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!1,i=0,r=e.length;i<r;i++){var s=e[i];if(s.kind!==this.kind_&&"showing"===s.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Os);Hs.prototype.kind_="descriptions",Hs.prototype.controlText_="Descriptions",Pi.registerComponent("DescriptionsButton",Hs);var Rs=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Os);Rs.prototype.kind_="subtitles",Rs.prototype.controlText_="Subtitles",Pi.registerComponent("SubtitlesButton",Rs);var Ms=function(t){function e(e,n){var i;return n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(i=t.call(this,e,n)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return p()(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(Qs);Pi.registerComponent("CaptionSettingsMenuItem",Ms);var Ns=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Ms(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(Os);Ns.prototype.kind_="captions",Ns.prototype.controlText_="Captions",Pi.registerComponent("CaptionsButton",Ns);var Ks=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(e,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),r+="</span>",t.prototype.createEl.call(this,e,De({innerHTML:r},n),i)},e}(Qs);Pi.registerComponent("SubsCapsMenuItem",Ks);var js=function(t){function e(e,n){var i;return void 0===n&&(n={}),(i=t.call(this,e,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(Fi(i.label_)),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Ms(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,Ks)},e}(Os);js.prototype.kinds_=["captions","subtitles"],js.prototype.controlText_="Subtitles",Pi.registerComponent("SubsCapsButton",js);var Vs=function(t){function e(e,n){var i,r=n.track,s=e.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=t.call(this,e,n)||this).track=r,i.addClass("vjs-"+r.kind+"-menu-item");var a=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleTracksChange.apply(d()(i),e)};return s.addEventListener("change",a),i.on("dispose",function(){s.removeEventListener("change",a)}),i}p()(e,t);var n=e.prototype;return n.createEl=function(e,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),r+="</span>",t.prototype.createEl.call(this,e,De({innerHTML:r},n),i)},n.handleClick=function(e){t.prototype.handleClick.call(this,e),this.track.enabled=!0},n.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(xs);Pi.registerComponent("AudioTrackMenuItem",Vs);var Gs=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.audioTracks(),t.call(this,e,n)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(t){void 0===t&&(t=[]),this.hideThreshold_=1;for(var e=this.player_.audioTracks(),n=0;n<e.length;n++){var i=e[n];t.push(new Vs(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return t},e}(Is);Gs.prototype.controlText_="Audio Track",Pi.registerComponent("AudioTrackButton",Gs);var $s=function(t){function e(e,n){var i,r=n.rate,s=parseFloat(r,10);return n.label=r,n.selected=s===e.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(i=t.call(this,e,n)||this).label=r,i.rate=s,i.on(e,"ratechange",function(t){return i.update(t)}),i}p()(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(xs);$s.prototype.contentElType="button",Pi.registerComponent("PlaybackRateMenuItem",$s);var Ws=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(e,"loadstart",function(t){return i.updateVisibility(t)}),i.on(e,"ratechange",function(t){return i.updateLabel(t)}),i.on(e,"playbackrateschange",function(t){return i.handlePlaybackRateschange(t)}),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=mn("div",{className:"vjs-playback-rate-value",id:this.labelElId_,innerHTML:"1x"}),e.appendChild(this.labelEl_),e},n.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var t=this.playbackRates(),e=[],n=t.length-1;n>=0;n--)e.push(new $s(this.player(),{rate:t[n]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(t){for(var e=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>e){i=n[r];break}this.player().playbackRate(i)},n.handlePlaybackRateschange=function(t){this.update()},n.playbackRates=function(){var t=this.player();return t.playbackRates&&t.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(Us);Ws.prototype.controlText_="Playback Rate",Pi.registerComponent("PlaybackRateMenuButton",Ws);var zs=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(Pi);Pi.registerComponent("Spacer",zs);var Xs=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(zs);Pi.registerComponent("CustomControlSpacer",Xs);var qs=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(Pi);qs.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in u.a&&qs.prototype.options_.children.splice(qs.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Pi.registerComponent("ControlBar",qs);var Ys=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"error",function(t){return i.open(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},n.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(qi);Ys.prototype.options_=c()({},qi.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Pi.registerComponent("ErrorDisplay",Ys);var Js=["#000","Black"],Zs=["#00F","Blue"],ta=["#0FF","Cyan"],ea=["#0F0","Green"],na=["#F0F","Magenta"],ia=["#F00","Red"],ra=["#FFF","White"],sa=["#FF0","Yellow"],aa=["1","Opaque"],Aa=["0.5","Semi-Transparent"],oa=["0","Transparent"],ua={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Js,ra,ia,ea,Zs,sa,na,ta]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[aa,Aa,oa]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[ra,Js,ia,ea,Zs,sa,na,ta]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[aa,Aa]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[oa,Aa,aa]}};function la(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}ua.windowColor.options=ua.backgroundColor.options;var ca=function(t){function e(e,n){var i;return n.temporary=!1,(i=t.call(this,e,n)||this).updateDisplay=i.updateDisplay.bind(d()(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=mn("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),Oe(ua,function(t){i.on(i.$(t.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}p()(e,t);var n=e.prototype;return n.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},n.createElSelect_=function(t,e,n){var i=this;void 0===e&&(e=""),void 0===n&&(n="label");var r=ua[t],s=r.id.replace("%s",this.id_),a=[e,s].join(" ").trim();return["<"+n+' id="'+s+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(r.options.map(function(t){var e=s+"-"+t[1].replace(/\W+/g,"");return['<option id="'+e+'" value="'+t[0]+'" ','aria-labelledby="'+a+" "+e+'">',i.localize(t[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return mn("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return mn("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var t=this.localize("restore all settings to the default values");return mn("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var t,e,n,i=this;return t=ua,e=function(t,e,n){var r,s,a=(r=i.$(e.selector),s=e.parser,la(r.options[r.options.selectedIndex].value,s));return void 0!==a&&(t[n]=a),t},void 0===(n={})&&(n=0),Le(t).reduce(function(n,i){return e(n,t[i],i)},n)},n.setValues=function(t){var e=this;Oe(ua,function(n,i){!function(t,e,n){if(e)for(var i=0;i<t.options.length;i++)if(la(t.options[i].value,n)===e){t.selectedIndex=i;break}}(e.$(n.selector),t[i],n.parser)})},n.setDefaults=function(){var t=this;Oe(ua,function(e){var n=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=n})},n.restoreSettings=function(){var t;try{t=JSON.parse(A.a.localStorage.getItem("vjs-text-track-settings"))}catch(t){Fe.warn(t)}t&&this.setValues(t)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?A.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):A.a.localStorage.removeItem("vjs-text-track-settings")}catch(t){Fe.warn(t)}}},n.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var t=this.player_.controlBar,e=t&&t.subsCapsButton,n=t&&t.captionsButton;e?e.focus():n&&n.focus()},e}(qi);Pi.registerComponent("TextTrackSettings",ca);var ha=function(t){function e(e,n){var i,r=n.ResizeObserver||A.a.ResizeObserver;null===n.ResizeObserver&&(r=!1);var s=xi({createEl:!r,reportTouchActivity:!1},n);return(i=t.call(this,e,s)||this).ResizeObserver=n.ResizeObserver||A.a.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=gi(function(){i.resizeHandler()},100,!1,d()(i)),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(e.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var t=i.debouncedHandler_,e=i.unloadListener_=function(){Ai(this,"resize",t),Ai(this,"unload",e),e=null};ai(i.el_.contentWindow,"unload",e),ai(i.el_.contentWindow,"resize",t)}},i.one("load",i.loadListener_)),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,t.prototype.dispose.call(this)},e}(Pi);Pi.registerComponent("ResizeManager",ha);var da={trackingThreshold:30,liveTolerance:15},fa=function(t){function e(e,n){var i,r=xi(da,n,{createEl:!1});return(i=t.call(this,e,r)||this).handleVisibilityChange_=function(t){return i.handleVisibilityChange(t)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(t){return i.handlePlay(t)},i.handleFirstTimeupdate_=function(t){return i.handleFirstTimeupdate(t)},i.handleSeeked_=function(t){return i.handleSeeked(t)},i.seekToLiveEdge_=function(t){return i.seekToLiveEdge(t)},i.reset_(),i.on(i.player_,"durationchange",function(t){return i.handleDurationchange(t)}),i.one(i.player_,"canplay",function(){return i.toggleTracking()}),en&&"hidden"in u.a&&"visibilityState"in u.a&&i.on(u.a,"visibilitychange",i.handleVisibilityChange_),i}p()(e,t);var n=e.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(u.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var t=this.player_.seekable();if(t&&t.length){var e=Number(A.a.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(e-this.lastTime_)/1e3;this.lastTime_=e,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),r=this.player_.currentTime(),s=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(s=!1),s!==this.behindLiveEdge_&&(this.behindLiveEdge_=s,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,di),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.end(n));return e.length?e.sort()[e.length-1]:1/0},n.seekableStart=function(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.start(n));return e.length?e.sort()[0]:0},n.liveWindow=function(){var t=this.liveCurrentTime();return t===1/0?0:t-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var t=this.seekableEnd();return-1!==this.lastSeekEnd_&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(u.a,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),t.prototype.dispose.call(this)},e}(Pi);Pi.registerComponent("LiveTracker",fa);var pa,ga=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var n=t.$$("source"),i=[],r="";if(!n.length)return!1;for(var s=0;s<n.length;s++){var a=n[s].src;a&&-1===i.indexOf(a)&&i.push(a)}return!!i.length&&(1===i.length&&(r=i[0]),t.triggerSourceset(r),!0)},ma=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=u.a.createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var n=u.a.createDocumentFragment();e.childNodes.length;)n.appendChild(e.childNodes[0]);return this.innerText="",A.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),va=function(t,e){for(var n={},i=0;i<t.length&&!((n=Object.getOwnPropertyDescriptor(t[i],e))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},ya=function(t){var e=t.el();if(!e.resetSourceWatch_){var n={},i=function(t){return va([t.el(),A.a.HTMLMediaElement.prototype,A.a.Element.prototype,ma],"innerHTML")}(t),r=function(n){return function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];var a=n.apply(e,r);return ga(t),a}};["append","appendChild","insertAdjacentHTML"].forEach(function(t){e[t]&&(n[t]=e[t],e[t]=r(n[t]))}),Object.defineProperty(e,"innerHTML",xi(i,{set:r(i.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(n).forEach(function(t){e[t]=n[t]}),Object.defineProperty(e,"innerHTML",i)},t.one("sourceset",e.resetSourceWatch_)}},Ba=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?hr(A.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return A.a.Element.prototype.setAttribute.call(this,"src",t),t}}),ba=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var n=function(t){return va([t.el(),A.a.HTMLMediaElement.prototype,Ba],"src")}(t),i=e.setAttribute,r=e.load;Object.defineProperty(e,"src",xi(n,{set:function(i){var r=n.set.call(e,i);return t.triggerSourceset(e.src),r}})),e.setAttribute=function(n,r){var s=i.call(e,n,r);return/src/i.test(n)&&t.triggerSourceset(e.src),s},e.load=function(){var n=r.call(e);return ga(t)||(t.triggerSourceset(""),ya(t)),n},e.currentSrc?t.triggerSourceset(e.currentSrc):ga(t)||ya(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=r,e.setAttribute=i,Object.defineProperty(e,"src",n),e.resetSourceWatch_&&e.resetSourceWatch_()}}}},wa=function(t,e,n,i){void 0===i&&(i=!0);var r=function(n){return Object.defineProperty(t,e,{value:n,enumerable:!0,writable:!0})},s={configurable:!0,enumerable:!0,get:function(){var t=n();return r(t),t}};return i&&(s.set=r),Object.defineProperty(t,e,s)},Ca=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var r=e.source,s=!1;if(r&&(i.el_.currentSrc!==r.src||e.tag&&3===e.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),e.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var a=i.el_.childNodes,A=a.length,o=[];A--;){var u=a[A];"track"===u.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(u),i.remoteTextTracks().addTrack(u.track),i.textTracks().addTrack(u.track),s||i.el_.hasAttribute("crossorigin")||!fr(u.src)||(s=!0)):o.push(u))}for(var l=0;l<o.length;l++)i.el_.removeChild(o[l])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&s&&Fe.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(sn||An||qe)&&!0===e.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}p()(e,t);var n=e.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){ba(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var t,e=this.textTracks(),n=function(){t=[];for(var n=0;n<e.length;n++){var i=e[n];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}};n(),e.addEventListener("change",n),this.on("dispose",function(){return e.removeEventListener("change",n)});var i=function n(){for(var i=0;i<t.length;i++){var r=t[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",n),e.removeEventListener("change",i),e.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",i)})},n.overrideNative_=function(t,e){var n=this;if(e===this["featuresNative"+t+"Tracks"]){var i=t.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(function(t){n.el()[i+"Tracks"].removeEventListener(t,n[i+"TracksListeners_"][t])}),this["featuresNative"+t+"Tracks"]=!e,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(t){this.overrideNative_("Audio",t)},n.overrideNativeVideoTracks=function(t){this.overrideNative_("Video",t)},n.proxyNativeTracksForType_=function(t){var e=this,n=_r[t],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var s={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===t&&e[Tr.remoteText.getterName]().trigger(i)},addtrack:function(t){r.addTrack(t.track)},removetrack:function(t){r.removeTrack(t.track)}},a=function(){for(var t=[],e=0;e<r.length;e++){for(var n=!1,s=0;s<i.length;s++)if(i[s]===r[e]){n=!0;break}n||t.push(r[e])}for(;t.length;)r.removeTrack(t.shift())};this[n.getterName+"Listeners_"]=s,Object.keys(s).forEach(function(t){var n=s[t];i.addEventListener(t,n),e.on("dispose",function(e){return i.removeEventListener(t,n)})}),this.on("loadstart",a),this.on("dispose",function(t){return e.off("loadstart",a)})}},n.proxyNativeTracks_=function(){var t=this;_r.names.forEach(function(e){t.proxyNativeTracksForType_(e)})},n.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=u.a.createElement("video");var i=xi({},this.options_.tag&&Tn(this.options_.tag));sn&&!0===this.options_.nativeControlsForTouch||delete i.controls,_n(t,De(i,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&Sn(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],s=0;s<r.length;s++){var a=r[s],A=this.options_[a];void 0!==A&&(A?Sn(t,a,a):kn(t,a),t[a]=A)}return t},n.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,n=function(){e=!0};this.on("loadstart",n);var i=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",i),e||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),t.readyState>=2&&r.push("loadeddata"),t.readyState>=3&&r.push("canplay"),t.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(t){this.trigger(t)},this)})}},n.setScrubbing=function(t){this.isScrubbing_=t},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(t){try{this.isScrubbing_&&this.el_.fastSeek&&un?this.el_.fastSeek(t):this.el_.currentTime=t}catch(t){Fe(t,"Video is not ready. (Video.js)")}},n.duration=function(){var t=this;if(this.el_.duration===1/0&&ze&&Ze&&0===this.el_.currentTime){return this.on("timeupdate",function e(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))}),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)})}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=A.a.navigator&&A.a.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},n.enterFullScreen=function(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA)Gi(this.el_.play()),this.setTimeout(function(){t.pause();try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},0);else try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},n.reset=function(){e.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(t){this.el_.controls=!!t},n.addTextTrack=function(e,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,i):t.prototype.addTextTrack.call(this,e,n,i)},n.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var n=u.a.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n},n.addRemoteTextTrack=function(e,n){var i=t.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)e!==n[i]&&e!==n[i].track||this.el().removeChild(n[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),A.a.performance&&"function"==typeof A.a.performance.now?t.creationTime=A.a.performance.now():A.a.performance&&A.a.performance.timing&&"number"==typeof A.a.performance.timing.navigationStart&&(t.creationTime=A.a.Date.now()-A.a.performance.timing.navigationStart),t},e}(Sr);wa(Ca,"TEST_VID",function(){if(dn()){var t=u.a.createElement("video"),e=u.a.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",t.appendChild(e),t}}),Ca.isSupported=function(){try{Ca.TEST_VID.volume=.5}catch(t){return!1}return!(!Ca.TEST_VID||!Ca.TEST_VID.canPlayType)},Ca.canPlayType=function(t){return Ca.TEST_VID.canPlayType(t)},Ca.canPlaySource=function(t,e){return Ca.canPlayType(t.type)},Ca.canControlVolume=function(){try{var t=Ca.TEST_VID.volume;return Ca.TEST_VID.volume=t/2+.1,t!==Ca.TEST_VID.volume}catch(t){return!1}},Ca.canMuteVolume=function(){try{var t=Ca.TEST_VID.muted;return Ca.TEST_VID.muted=!t,Ca.TEST_VID.muted?Sn(Ca.TEST_VID,"muted","muted"):kn(Ca.TEST_VID,"muted"),t!==Ca.TEST_VID.muted}catch(t){return!1}},Ca.canControlPlaybackRate=function(){if(ze&&Ze&&tn<58)return!1;try{var t=Ca.TEST_VID.playbackRate;return Ca.TEST_VID.playbackRate=t/2+.1,t!==Ca.TEST_VID.playbackRate}catch(t){return!1}},Ca.canOverrideAttributes=function(){try{var t=function(){};Object.defineProperty(u.a.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(u.a.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(u.a.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(u.a.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},Ca.supportsNativeTextTracks=function(){return un||on&&Ze},Ca.supportsNativeVideoTracks=function(){return!(!Ca.TEST_VID||!Ca.TEST_VID.videoTracks)},Ca.supportsNativeAudioTracks=function(){return!(!Ca.TEST_VID||!Ca.TEST_VID.audioTracks)},Ca.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(t){var e=t[0],n=t[1];wa(Ca.prototype,e,function(){return Ca[n]()},!0)}),Ca.prototype.movingMediaElementInDOM=!on,Ca.prototype.featuresFullscreenResize=!0,Ca.prototype.featuresProgressEvents=!0,Ca.prototype.featuresTimeupdateEvents=!0,Ca.patchCanPlayType=function(){Xe>=4&&!Ye&&!Ze&&(pa=Ca.TEST_VID&&Ca.TEST_VID.constructor.prototype.canPlayType,Ca.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(t)?"maybe":pa.call(this,t)})},Ca.unpatchCanPlayType=function(){var t=Ca.TEST_VID.constructor.prototype.canPlayType;return pa&&(Ca.TEST_VID.constructor.prototype.canPlayType=pa),t},Ca.patchCanPlayType(),Ca.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},Ca.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){Ca.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){Ca.prototype["set"+Fi(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(t){Ca.prototype[t]=function(){return this.el_[t]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){Ca.prototype["set"+Fi(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(t){Ca.prototype[t]=function(){return this.el_[t]()}}),Sr.withSourceHandlers(Ca),Ca.nativeSourceHandler={},Ca.nativeSourceHandler.canPlayType=function(t){try{return Ca.TEST_VID.canPlayType(t)}catch(t){return""}},Ca.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return Ca.nativeSourceHandler.canPlayType(t.type);if(t.src){var n=dr(t.src);return Ca.nativeSourceHandler.canPlayType("video/"+n)}return""},Ca.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},Ca.nativeSourceHandler.dispose=function(){},Ca.registerSourceHandler(Ca.nativeSourceHandler),Sr.registerTech("Html5",Ca);var _a=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ta={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Ea=["tiny","xsmall","small","medium","large","xlarge","huge"],Sa={};Ea.forEach(function(t){var e="x"===t.charAt(0)?"x-"+t.substring(1):t;Sa[t]="vjs-layout-"+e});var ka={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Ua=function(t){function e(n,i,r){var s;if(n.id=n.id||i.id||"vjs_video_"+Jn(),(i=De(e.getTagSettings(n),i)).initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof n.closest){var a=n.closest("[lang]");a&&a.getAttribute&&(i.language=a.getAttribute("lang"))}else for(var A=n;A&&1===A.nodeType;){if(Tn(A).hasOwnProperty("lang")){i.language=A.getAttribute("lang");break}A=A.parentNode}if((s=t.call(this,null,i,r)||this).boundDocumentFullscreenChange_=function(t){return s.documentFullscreenChange_(t)},s.boundFullWindowOnEscKey_=function(t){return s.fullWindowOnEscKey(t)},s.boundUpdateStyleEl_=function(t){return s.updateStyleEl_(t)},s.boundApplyInitTime_=function(t){return s.applyInitTime_(t)},s.boundUpdateCurrentBreakpoint_=function(t){return s.updateCurrentBreakpoint_(t)},s.boundHandleTechClick_=function(t){return s.handleTechClick_(t)},s.boundHandleTechDoubleClick_=function(t){return s.handleTechDoubleClick_(t)},s.boundHandleTechTouchStart_=function(t){return s.handleTechTouchStart_(t)},s.boundHandleTechTouchMove_=function(t){return s.handleTechTouchMove_(t)},s.boundHandleTechTouchEnd_=function(t){return s.handleTechTouchEnd_(t)},s.boundHandleTechTap_=function(t){return s.handleTechTap_(t)},s.isFullscreen_=!1,s.log=xe(s.id_),s.fsApi_=_e,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=n,s.tagAttributes=n&&Tn(n),s.language(s.options_.language),i.languages){var o={};Object.getOwnPropertyNames(i.languages).forEach(function(t){o[t.toLowerCase()]=i.languages[t]}),s.languages_=o}else s.languages_=e.prototype.options_.languages;s.resetCache_(),s.poster_=i.poster||"",s.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],n.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach(function(t){if("function"!=typeof s[t])throw new Error('plugin "'+t+'" does not exist')}),s.scrubbing_=!1,s.el_=s.createEl(),Si(d()(s),{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(ai(u.a,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var l=xi(s.options_);i.plugins&&Object.keys(i.plugins).forEach(function(t){s[t](i.plugins[t])}),i.debug&&s.debug(!0),s.options_.playerOptions=l,s.middleware_=[],s.playbackRates(i.playbackRates),s.initChildren(),s.isAudio("audio"===n.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),sn&&s.addClass("vjs-touch-enabled"),on||s.addClass("vjs-workinghover"),e.players[s.id_]=d()(s);var c=Ce.split(".")[0];return s.addClass("vjs-v"+c),s.userActive(!0),s.reportUserActivity(),s.one("play",function(t){return s.listenForUserActivity_(t)}),s.on("stageclick",function(t){return s.handleStageClick_(t)}),s.on("keydown",function(t){return s.handleKeyDown(t)}),s.on("languagechange",function(t){return s.handleLanguagechange(t)}),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s}p()(e,t);var n=e.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Ai(u.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ai(u.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Ur[this.id()]=null,Er.names.forEach(function(t){var e=Er[t],i=n[e.getterName]();i&&i.off&&i.off()}),t.prototype.dispose.call(this)},n.createEl=function(){var e,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();i?e=this.el_=n.parentNode:r||(e=this.el_=t.prototype.createEl.call(this,"div"));var s=Tn(n);if(r){for(e=this.el_=n,n=this.tag=u.a.createElement("video");e.children.length;)n.appendChild(e.firstChild);Bn(e,"video-js")||bn(e,"video-js"),e.appendChild(n),i=this.playerElIngest_=e,Object.keys(e).forEach(function(t){try{n[t]=e[t]}catch(t){}})}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",(en||Ze&&rn)&&(n.setAttribute("role","application"),s.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(t){r&&"class"===t||e.setAttribute(t,s[t]),r&&n.setAttribute(t,s[t])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==A.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Xn("vjs-styles-dimensions");var a=Nn(".vjs-styles-defaults"),o=Nn("head");o.insertBefore(this.styleEl_,a?a.nextSibling:o.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=n.getElementsByTagName("a"),c=0;c<l.length;c++){var h=l.item(c);bn(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(e,n),yn(n,e),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=e,e},n.crossOrigin=function(t){if(!t)return this.techGet_("crossOrigin");"anonymous"===t||"use-credentials"===t?this.techCall_("setCrossOrigin",t):Fe.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+t+'"')},n.width=function(t){return this.dimension("width",t)},n.height=function(t){return this.dimension("height",t)},n.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e||"auto"===e)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(e);isNaN(i)?Fe.error('Improper value "'+e+'" supplied for for '+t):(this[n]=i,this.updateStyleEl_())},n.fluid=function(t){var e,n,i=this;if(void 0===t)return!!this.fluid_;this.fluid_=!!t,yi(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){i.on(["playerreset","resize"],i.boundUpdateStyleEl_)},yi(e=this)?n():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(t){if(void 0===t)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==A.a.VIDEOJS_NO_DYNAMIC_STYLE){var t,e,n,i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=i[1]/i[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*r,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),qn(this.styleEl_,"\n ."+n+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*r+"%;\n }\n ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,a="number"==typeof this.height_?this.height_:this.options_.height,o=this.tech_&&this.tech_.el();o&&(s>=0&&(o.width=s),a>=0&&(o.height=a))}},n.loadTech_=function(t,e){var n=this;this.tech_&&this.unloadTech_();var i=Fi(t),r=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==i&&this.tag&&(Sr.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var s=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(s=!1);var a={source:e,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Er.names.forEach(function(t){var e=Er[t];a[e.getterName]=n[e.privateName]}),De(a,this.options_[i]),De(a,this.options_[r]),De(a,this.options_[t.toLowerCase()]),this.tag&&(a.tag=this.tag),e&&e.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);var A=Sr.getTech(t);if(!A)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new A(a),this.tech_.ready(fi(this,this.handleTechReady_),!0),zi(this.textTracksJson_||[],this.tech_),_a.forEach(function(t){n.on(n.tech_,t,function(e){return n["handleTech"+Fi(t)+"_"](e)})}),Object.keys(Ta).forEach(function(t){n.on(n.tech_,t,function(e){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Ta[t]+"_"].bind(n),event:e}):n["handleTech"+Ta[t]+"_"](e)})}),this.on(this.tech_,"loadstart",function(t){return n.handleTechLoadStart_(t)}),this.on(this.tech_,"sourceset",function(t){return n.handleTechSourceset_(t)}),this.on(this.tech_,"waiting",function(t){return n.handleTechWaiting_(t)}),this.on(this.tech_,"ended",function(t){return n.handleTechEnded_(t)}),this.on(this.tech_,"seeking",function(t){return n.handleTechSeeking_(t)}),this.on(this.tech_,"play",function(t){return n.handleTechPlay_(t)}),this.on(this.tech_,"firstplay",function(t){return n.handleTechFirstPlay_(t)}),this.on(this.tech_,"pause",function(t){return n.handleTechPause_(t)}),this.on(this.tech_,"durationchange",function(t){return n.handleTechDurationChange_(t)}),this.on(this.tech_,"fullscreenchange",function(t,e){return n.handleTechFullscreenChange_(t,e)}),this.on(this.tech_,"fullscreenerror",function(t,e){return n.handleTechFullscreenError_(t,e)}),this.on(this.tech_,"enterpictureinpicture",function(t){return n.handleTechEnterPictureInPicture_(t)}),this.on(this.tech_,"leavepictureinpicture",function(t){return n.handleTechLeavePictureInPicture_(t)}),this.on(this.tech_,"error",function(t){return n.handleTechError_(t)}),this.on(this.tech_,"posterchange",function(t){return n.handleTechPosterChange_(t)}),this.on(this.tech_,"textdata",function(t){return n.handleTechTextData_(t)}),this.on(this.tech_,"ratechange",function(t){return n.handleTechRateChange_(t)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||yn(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var t=this;Er.names.forEach(function(e){var n=Er[e];t[n.privateName]=t[n.getterName]()}),this.textTracksJson_=Wi(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(t){return void 0===t&&Fe.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"mouseup",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(t){var e=this;if(this.tech_&&"string"==typeof t){var n,i=function(){var t=e.muted();e.muted(!0);var n=function(){e.muted(t)};e.playTerminatedQueue_.push(n);var i=e.play();if(Vi(i))return i.catch(function(t){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(t||""))})};if("any"!==t||this.muted()?n="muted"!==t||this.muted()?this.play():i():Vi(n=this.play())&&(n=n.catch(i)),Vi(n))return n.then(function(){e.trigger({type:"autoplay-success",autoplay:t})}).catch(function(){e.trigger({type:"autoplay-failure",autoplay:t})})}},n.updateSourceCaches_=function(t){void 0===t&&(t="");var e=t,n="";"string"!=typeof e&&(e=t.src,n=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&&!n&&(n=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var n=t.cache_.sources.filter(function(t){return t.src===e});if(n.length)return n[0].type;for(var i=t.$$("source"),r=0;r<i.length;r++){var s=i[r];if(s.type&&s.src&&s.src===e)return s.type}return Hr(e)}(this,e)),this.cache_.source=xi({},t,{src:e,type:n});for(var i=this.cache_.sources.filter(function(t){return t.src&&t.src===e}),r=[],s=this.$$("source"),a=[],A=0;A<s.length;A++){var o=Tn(s[A]);r.push(o),o.src&&o.src===e&&a.push(o.src)}a.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e},n.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_){var n=function(t){return e.updateSourceCaches_(t)},i=this.currentSource().src,r=t.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),t.src||this.tech_.any(["sourceset","loadstart"],function(t){if("sourceset"!==t.type){var n=e.techGet("currentSrc");e.lastSource_.tech=n,e.updateSourceCaches_(n)}})}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},n.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(t){return t.callback(t.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var e=this.currentTime();this.on("timeupdate",function n(){e!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",n))})},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(Fe.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(t){Rn(t)&&this.controls_&&(this.paused()?Gi(this.play()):this.pause())},n.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(t){t.cancelable&&t.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(t){var e=t.target.player;if(!e||e===this){var n=this.el(),i=u.a[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},n.handleTechFullscreenChange_=function(t,e){e&&(e.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(e.isFullscreen))},n.handleTechFullscreenError_=function(t,e){this.trigger("fullscreenerror",e)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(t){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(t){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var t=this.tech_.error();this.error(t)},n.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(t,e){this.ready(function(){if(t in Lr)return function(t,e,n,i){return e[n](t.reduce(Dr(n),i))}(this.middleware_,this.tech_,t,e);if(t in Or)return xr(this.middleware_,this.tech_,t,e);try{this.tech_&&this.tech_[t](e)}catch(t){throw Fe(t),t}},!0)},n.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in Qr)return function(t,e,n){return t.reduceRight(Dr(n),e[n]())}(this.middleware_,this.tech_,t);if(t in Or)return xr(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw Fe("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw Fe("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw Fe(e),e}}},n.play=function(){var t=this,e=this.options_.Promise||A.a.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},n.play_=function(t){var e=this;void 0===t&&(t=Gi),this.playCallbacks_.push(t);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!un&&!on||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},n.runPlayTerminatedQueue_=function(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach(function(t){t()})},n.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach(function(e){e(t)})},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Mi(0,0)},n.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,this.techCall_("setScrubbing",this.scrubbing_),t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(t){return void 0!==t?(t<0&&(t=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",t),void(this.cache_.initTime=0)):(this.cache_.initTime=t,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=Mi(0,0)),t},n.bufferedPercent=function(){return Ni(this.buffered(),this.duration())},n.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},n.volume=function(t){var e;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e>0&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},n.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},n.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(t){if(void 0!==t){var e=this.isFullscreen_;return this.isFullscreen_=Boolean(t),this.isFullscreen_!==e&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(t){var e=this.options_.Promise||A.a.Promise;if(e){var n=this;return new e(function(e,i){function r(){n.off("fullscreenerror",a),n.off("fullscreenchange",s)}function s(){r(),e()}function a(t,e){r(),i(e)}n.one("fullscreenchange",s),n.one("fullscreenerror",a);var A=n.requestFullscreenHelper_(t);A&&(A.then(r,r),A.then(e,i))})}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(t){var e,n=this;if(this.fsApi_.prefixed||(e=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==t&&(e=t)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](e);return i&&i.then(function(){return n.isFullscreen(!0)},function(){return n.isFullscreen(!1)}),i}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var t=this.options_.Promise||A.a.Promise;if(t){var e=this;return new t(function(t,n){function i(){e.off("fullscreenerror",s),e.off("fullscreenchange",r)}function r(){i(),t()}function s(t,e){i(),n(e)}e.one("fullscreenchange",r),e.one("fullscreenerror",s);var a=e.exitFullscreenHelper_();a&&(a.then(i,i),a.then(t,n))})}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var t=this;if(this.fsApi_.requestFullscreen){var e=u.a[this.fsApi_.exitFullscreen]();return e&&Gi(e.then(function(){return t.isFullscreen(!1)})),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=u.a.documentElement.style.overflow,ai(u.a,"keydown",this.boundFullWindowOnEscKey_),u.a.documentElement.style.overflow="hidden",bn(u.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(t){y.a.isEventKey(t,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ai(u.a,"keydown",this.boundFullWindowOnEscKey_),u.a.documentElement.style.overflow=this.docOrigOverflow,wn(u.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(t){if(void 0===t)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",t),this.options_.disablePictureInPicture=t,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(t){return void 0!==t?(this.isInPictureInPicture_=!!t,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in u.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in u.a)return u.a.exitPictureInPicture()},n.handleKeyDown=function(t){var e=this.options_.userActions;if(e&&e.hotkeys){(function(t){var e=t.tagName.toLowerCase();if(t.isContentEditable)return!0;if("input"===e)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type);return-1!==["textarea"].indexOf(e)})(this.el_.ownerDocument.activeElement)||("function"==typeof e.hotkeys?e.hotkeys.call(this,t):this.handleHotkeys(t))}},n.handleHotkeys=function(t){var e=this.options_.userActions?this.options_.userActions.hotkeys:{},n=e.fullscreenKey,i=void 0===n?function(t){return y.a.isEventKey(t,"f")}:n,r=e.muteKey,s=void 0===r?function(t){return y.a.isEventKey(t,"m")}:r,a=e.playPauseKey,A=void 0===a?function(t){return y.a.isEventKey(t,"k")||y.a.isEventKey(t,"Space")}:a;if(i.call(this,t)){t.preventDefault(),t.stopPropagation();var o=Pi.getComponent("FullscreenToggle");!1!==u.a[this.fsApi_.fullscreenEnabled]&&o.prototype.handleClick.call(this,t)}else if(s.call(this,t)){t.preventDefault(),t.stopPropagation(),Pi.getComponent("MuteToggle").prototype.handleClick.call(this,t)}else if(A.call(this,t)){t.preventDefault(),t.stopPropagation(),Pi.getComponent("PlayToggle").prototype.handleClick.call(this,t)}},n.canPlayType=function(t){for(var e,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],s=Sr.getTech(r);if(s||(s=Pi.getComponent(r)),s){if(s.isSupported()&&(e=s.canPlayType(t)))return e}else Fe.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(t){var e,n=this,i=this.options_.techOrder.map(function(t){return[t,Sr.getTech(t)]}).filter(function(t){var e=t[0],n=t[1];return n?n.isSupported():(Fe.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),r=function(t,e,n){var i;return t.some(function(t){return e.some(function(e){if(i=n(t,e))return!0})}),i},s=function(t,e){var i=t[0];if(t[1].canPlaySource(e,n.options_[i.toLowerCase()]))return{source:e,tech:i}};return(this.options_.sourceOrder?r(t,i,(e=s,function(t,n){return e(n,t)})):r(i,t,s))||!1},n.handleSrc_=function(t,e){var n=this;if(void 0===t)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=function t(e){if(Array.isArray(e)){var n=[];e.forEach(function(e){e=t(e),Array.isArray(e)?n=n.concat(e):Pe(e)&&n.push(e)}),e=n}else e="string"==typeof e&&e.trim()?[Rr({src:e})]:Pe(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[Rr(e)]:[];return e}(t);if(i.length){if(this.changingSrc_=!0,e||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Fr(this,i[0],function(t,r){var s,a;if(n.middleware_=r,e||(n.cache_.sources=i),n.updateSourceCaches_(t),n.src_(t))return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void n.triggerReady());s=r,a=n.tech_,s.forEach(function(t){return t.setTech&&t.setTech(a)})}),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},s=function(){n.off("error",r)};this.one("error",r),this.one("playing",s),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",s)}}}else this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},n.src=function(t){return this.handleSrc_(t,!1)},n.src_=function(t){var e,n,i=this,r=this.selectSource([t]);return!r||(e=r.tech,n=this.techName_,Fi(e)!==Fi(n)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){i.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1},!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var t=this,e=this.options_.Promise||A.a.Promise;this.paused()||!e?this.doReset_():Gi(this.play().then(function(){return t.doReset_()}))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),yi(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var t=this.controlBar,e=t.durationDisplay,n=t.remainingTimeDisplay;e&&e.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},n.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e;"string"==typeof t&&/(any|play|muted)/.test(t)||!0===t&&this.options_.normalizeAutoplay?(this.options_.autoplay=t,this.manualAutoplay_("string"==typeof t?t:"play"),e=!1):this.options_.autoplay=!!t,e=void 0===e?this.options_.autoplay:e,this.tech_&&this.techCall_("setAutoplay",e)},n.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},n.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},n.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(t){if(void 0===t)return this.error_||null;if(this.options_.suppressNotSupportedError&&t&&4===t.code){var e=function(){this.error(t)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],e),void this.one("loadstart",function(){this.off(["click","touchstart"],e)})}if(null===t)return this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Ki(t),this.addClass("vjs-error"),Fe.error("(CODE:"+this.error_.code+" "+Ki.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},n.reportUserActivity=function(t){this.userActivity_=!0},n.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var t,e,n,i=fi(this,this.reportUserActivity),r=function(e){i(),this.clearInterval(t)};this.on("mousedown",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)}),this.on("mousemove",function(t){t.screenX===e&&t.screenY===n||(e=t.screenX,n=t.screenY,i())}),this.on("mouseup",r),this.on("mouseleave",r);var s,a=this.getChild("controlBar");!a||on||ze||(a.on("mouseenter",function(t){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0}),a.on("mouseleave",function(t){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",i),this.on("keyup",i),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(s);var t=this.options_.inactivityTimeout;t<=0||(s=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},n.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},n.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},n.addTextTrack=function(t,e,n){if(this.tech_)return this.tech_.addTextTrack(t,e,n)},n.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},n.removeRemoteTextTrack=function(t){void 0===t&&(t={});var e=t.track;if(e||(e=t),this.tech_)return this.tech_.removeRemoteTextTrack(e)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(t){if(void 0===t)return this.language_;this.language_!==String(t).toLowerCase()&&(this.language_=String(t).toLowerCase(),yi(this)&&this.trigger("languagechange"))},n.languages=function(){return xi(e.prototype.options_.languages,this.languages_)},n.toJSON=function(){var t=xi(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var i=e[n];(i=xi(i)).player=void 0,t.tracks[n]=i}return t},n.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var i=new qi(this,e);return this.addChild(i),i.on("dispose",function(){n.removeChild(i)}),i.open(),i},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),e=this.currentWidth(),n=0;n<Ea.length;n++){var i=Ea[n];if(e<=this.breakpoints_[i]){if(t===i)return;t&&this.removeClass(Sa[t]),this.addClass(Sa[i]),this.breakpoint_=i;break}}},n.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},n.breakpoints=function(t){return void 0===t?De(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=De({},ka,t),this.updateCurrentBreakpoint_(),De(this.breakpoints_))},n.responsive=function(t){return void 0===t?this.responsive_:(t=Boolean(t))!==this.responsive_?(this.responsive_=t,t?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Sa[this.breakpoint_]||""},n.loadMedia=function(t,e){var n=this;if(t&&"object"==typeof t){this.reset(),this.cache_.media=xi(t);var i=this.cache_.media,r=i.artwork,s=i.poster,a=i.src,A=i.textTracks;!r&&s&&(this.cache_.media.artwork=[{src:s,type:Hr(s)}]),a&&this.src(a),s&&this.poster(s),Array.isArray(A)&&A.forEach(function(t){return n.addRemoteTextTrack(t,!1)}),this.ready(e)}},n.getMedia=function(){if(!this.cache_.media){var t=this.poster(),e={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(t){return{kind:t.kind,label:t.label,language:t.language,src:t.src}})};return t&&(e.poster=t,e.artwork=[{src:e.poster,type:Hr(e.poster)}]),e}return xi(this.cache_.media)},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=Tn(t),i=n["data-setup"];if(Bn(t,"vjs-fill")&&(n.fill=!0),Bn(t,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=m()(i||"{}"),s=r[0],a=r[1];s&&Fe.error(s),De(n,a)}if(De(e,n),t.hasChildNodes())for(var A=t.childNodes,o=0,u=A.length;o<u;o++){var l=A[o],c=l.nodeName.toLowerCase();"source"===c?e.sources.push(Tn(l)):"track"===c&&e.tracks.push(Tn(l))}return e},n.flexNotSupported_=function(){var t=u.a.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},n.debug=function(t){if(void 0===t)return this.debugEnabled_;t?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(t){if(void 0===t)return this.cache_.playbackRates;Array.isArray(t)&&t.every(function(t){return"number"==typeof t})&&(this.cache_.playbackRates=t,this.trigger("playbackrateschange"))},e}(Pi);Er.names.forEach(function(t){var e=Er[t];Ua.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),Ua.prototype.crossorigin=Ua.prototype.crossOrigin,Ua.players={};var Ia=A.a.navigator;Ua.prototype.options_={techOrder:Sr.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Ia&&(Ia.languages&&Ia.languages[0]||Ia.userLanguage||Ia.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(t){Ua.prototype[t]=function(){return this.techGet_(t)}}),_a.forEach(function(t){Ua.prototype["handleTech"+Fi(t)+"_"]=function(){return this.trigger(t)}}),Pi.registerComponent("Player",Ua);var Fa={},xa=function(t){return Fa.hasOwnProperty(t)},Qa=function(t){return xa(t)?Fa[t]:void 0},La=function(t,e){t.activePlugins_=t.activePlugins_||{},t.activePlugins_[e]=!0},Oa=function(t,e,n){var i=(n?"before":"")+"pluginsetup";t.trigger(i,e),t.trigger(i+":"+e.name,e)},Da=function(t,e){return e.prototype.name=t,function(){Oa(this,{name:t,plugin:e,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var s=T()(e,[this].concat(i));return this[t]=function(){return s},Oa(this,s.getEventHash()),s}},Pa=function(){function t(e){if(this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),Si(this),delete this.trigger,Ui(this,this.constructor.defaultState),La(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}var e=t.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(t){return void 0===t&&(t={}),t.name=this.name,t.plugin=this.constructor,t.instance=this,t},e.trigger=function(t,e){return void 0===e&&(e={}),oi(this.eventBusEl_,t,this.getEventHash(e))},e.handleStateChanged=function(t){},e.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e.activePlugins_[t]=!1,this.player=this.state=null,e[t]=Da(t,Fa[t])},t.isBasic=function(e){var n="string"==typeof e?Qa(e):e;return"function"==typeof n&&!t.prototype.isPrototypeOf(n.prototype)},t.registerPlugin=function(e,n){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(xa(e))Fe.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(Ua.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof n+".");return Fa[e]=n,"plugin"!==e&&(t.isBasic(n)?Ua.prototype[e]=function(t,e){var n=function(){Oa(this,{name:t,plugin:e,instance:null},!0);var n=e.apply(this,arguments);return La(this,t),Oa(this,{name:t,plugin:e,instance:n}),n};return Object.keys(e).forEach(function(t){n[t]=e[t]}),n}(e,n):Ua.prototype[e]=Da(e,n)),n},t.deregisterPlugin=function(t){if("plugin"===t)throw new Error("Cannot de-register base plugin.");xa(t)&&(delete Fa[t],delete Ua.prototype[t])},t.getPlugins=function(t){var e;return void 0===t&&(t=Object.keys(Fa)),t.forEach(function(t){var n=Qa(t);n&&((e=e||{})[t]=n)}),e},t.getPluginVersion=function(t){var e=Qa(t);return e&&e.VERSION||""},t}();Pa.getPlugin=Qa,Pa.BASE_PLUGIN_NAME="plugin",Pa.registerPlugin("plugin",Pa),Ua.prototype.usingPlugin=function(t){return!!this.activePlugins_&&!0===this.activePlugins_[t]},Ua.prototype.hasPlugin=function(t){return!!xa(t)};var Ha=function(t){return 0===t.indexOf("#")?t.slice(1):t};function Ra(t,e,n){var i=Ra.getPlayer(t);if(i)return e&&Fe.warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"==typeof t?Nn("#"+Ha(t)):t;if(!fn(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||Fe.warn("The element supplied is not included in the DOM"),e=e||{},Ra.hooks("beforesetup").forEach(function(t){var n=t(r,xi(e));Pe(n)&&!Array.isArray(n)?e=xi(e,n):Fe.error("please return an object in beforesetup hooks")});var s=Pi.getComponent("Player");return i=new s(r,e,n),Ra.hooks("setup").forEach(function(t){return t(i)}),i}if(Ra.hooks_={},Ra.hooks=function(t,e){return Ra.hooks_[t]=Ra.hooks_[t]||[],e&&(Ra.hooks_[t]=Ra.hooks_[t].concat(e)),Ra.hooks_[t]},Ra.hook=function(t,e){Ra.hooks(t,e)},Ra.hookOnce=function(t,e){Ra.hooks(t,[].concat(e).map(function(e){return function n(){return Ra.removeHook(t,n),e.apply(void 0,arguments)}}))},Ra.removeHook=function(t,e){var n=Ra.hooks(t).indexOf(e);return!(n<=-1)&&(Ra.hooks_[t]=Ra.hooks_[t].slice(),Ra.hooks_[t].splice(n,1),!0)},!0!==A.a.VIDEOJS_NO_DYNAMIC_STYLE&&dn()){var Ma=Nn(".vjs-styles-defaults");if(!Ma){Ma=Xn("vjs-styles-defaults");var Na=Nn("head");Na&&Na.insertBefore(Ma,Na.firstChild),qn(Ma,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}$n(1,Ra),Ra.VERSION=Ce,Ra.options=Ua.prototype.options_,Ra.getPlayers=function(){return Ua.players},Ra.getPlayer=function(t){var e,n=Ua.players;if("string"==typeof t){var i=Ha(t),r=n[i];if(r)return r;e=Nn("#"+i)}else e=t;if(fn(e)){var s=e,a=s.player,A=s.playerId;if(a||n[A])return a||n[A]}},Ra.getAllPlayers=function(){return Object.keys(Ua.players).map(function(t){return Ua.players[t]}).filter(Boolean)},Ra.players=Ua.players,Ra.getComponent=Pi.getComponent,Ra.registerComponent=function(t,e){Sr.isTech(e)&&Fe.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Pi.registerComponent.call(Pi,t,e)},Ra.getTech=Sr.getTech,Ra.registerTech=Sr.registerTech,Ra.use=function(t,e){kr[t]=kr[t]||[],kr[t].push(e)},Object.defineProperty(Ra,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Ra.middleware,"TERMINATOR",{value:Ir,writeable:!1,enumerable:!0}),Ra.browser=ln,Ra.TOUCH_ENABLED=sn,Ra.extend=function(t,e){void 0===e&&(e={});var n=function(){t.apply(this,arguments)},i={};for(var r in"object"==typeof e?(e.constructor!==Object.prototype.constructor&&(n=e.constructor),i=e):"function"==typeof e&&(n=e),S()(n,t),t&&(n.super_=t),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},Ra.mergeOptions=xi,Ra.bind=fi,Ra.registerPlugin=Pa.registerPlugin,Ra.deregisterPlugin=Pa.deregisterPlugin,Ra.plugin=function(t,e){return Fe.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Pa.registerPlugin(t,e)},Ra.getPlugins=Pa.getPlugins,Ra.getPlugin=Pa.getPlugin,Ra.getPluginVersion=Pa.getPluginVersion,Ra.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),Ra.options.languages=xi(Ra.options.languages,((n={})[t]=e,n)),Ra.options.languages[t]},Ra.log=Fe,Ra.createLogger=xe,Ra.createTimeRange=Ra.createTimeRanges=Mi,Ra.formatTime=ts,Ra.setFormatTime=function(t){Zr=t},Ra.resetFormatTime=function(){Zr=Jr},Ra.parseUrl=cr,Ra.isCrossOrigin=fr,Ra.EventTarget=mi,Ra.on=ai,Ra.one=ui,Ra.off=Ai,Ra.trigger=oi,Ra.xhr=b.a,Ra.TextTrack=vr,Ra.AudioTrack=yr,Ra.VideoTrack=Br,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(t){Ra[t]=function(){return Fe.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),jn[t].apply(null,arguments)}}),Ra.computedStyle=Re,Ra.dom=jn,Ra.url=pr,Ra.defineLazyProperty=wa,Ra.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});
- /*! @name @videojs/http-streaming @version 2.9.2 @license Apache-2.0 */
- var Ka=I,ja=function(t,e,n){return t&&n&&n.responseURL&&e!==n.responseURL?n.responseURL:e},Va=function(t){return Ra.log.debug?Ra.log.debug.bind(Ra,"VHS:",t+" >"):function(){}},Ga=function(t,e){var n,i=[];if(t&&t.length)for(n=0;n<t.length;n++)e(t.start(n),t.end(n))&&i.push([t.start(n),t.end(n)]);return Ra.createTimeRanges(i)},$a=function(t,e){return Ga(t,function(t,n){return t-.1<=e&&n+.1>=e})},Wa=function(t,e){return Ga(t,function(t){return t-1/30>=e})},za=function(t){var e=[];if(!t||!t.length)return"";for(var n=0;n<t.length;n++)e.push(t.start(n)+" => "+t.end(n));return e.join(", ")},Xa=function(t){for(var e=[],n=0;n<t.length;n++)e.push({start:t.start(n),end:t.end(n)});return e},qa=function(t){if(t&&t.length&&t.end)return t.end(t.length-1)},Ya=Ra.createTimeRange,Ja=function(t){return(t.segments||[]).reduce(function(t,e,n){return e.parts?e.parts.forEach(function(i,r){t.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:e})}):t.push({duration:e.duration,segmentIndex:n,partIndex:null,segment:e,part:null}),t},[])},Za=function(t){var e=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return e&&e.parts||[]},tA=function(t){var e=t.preloadSegment;if(e){var n=e.parts,i=(e.preloadHints||[]).reduce(function(t,e){return t+("PART"===e.type?1:0)},0);return i+=n&&n.length?n.length:0}},eA=function(t,e){if(e.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;var n=Za(e).length>0;return n&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:n&&e.partTargetDuration?3*e.partTargetDuration:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?3*e.targetDuration:0},nA=function(t,e,n){if(void 0===e&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence)return 0;var i=function(t,e){var n=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=t.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=r.duration,void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(t,e);if(i.precise)return i.result;var r=function(t,e){for(var n,i=0,r=e-t.mediaSequence;r<t.segments.length;r++){if(void 0!==(n=t.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=n.duration,void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(t,e);return r.precise?r.result:i.result+n},iA=function(t,e,n){if(!t)return 0;if("number"!=typeof n&&(n=0),void 0===e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return A.a.Infinity}return nA(t,e,n)},rA=function(t){var e=t.defaultDuration,n=t.durationList,i=t.startIndex,r=t.endIndex,s=0;if(i>r){var a=[r,i];i=a[0],r=a[1]}if(i<0){for(var A=i;A<Math.min(0,r);A++)s+=e;i=0}for(var o=i;o<r;o++)s+=n[o].duration;return s},sA=function(t,e,n,i){if(!t||!t.segments)return null;if(t.endList)return iA(t);if(null===e)return null;e=e||0;var r=nA(t,t.mediaSequence+t.segments.length,e);return n&&(r-=i="number"==typeof i?i:eA(null,t)),Math.max(0,r)},aA=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},AA=function(t){return t.excludeUntil&&t.excludeUntil===1/0},oA=function(t){var e=aA(t);return!t.disabled&&!e},uA=function(t,e){return e.attributes&&e.attributes[t]},lA=function(t,e){if(1===t.playlists.length)return!0;var n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter(function(t){return!!oA(t)&&(t.attributes.BANDWIDTH||0)<n}).length},cA=function(t,e){return!(!t&&!e||!t&&e||t&&!e)&&(t===e||(!(!t.id||!e.id||t.id!==e.id)||(!(!t.resolvedUri||!e.resolvedUri||t.resolvedUri!==e.resolvedUri)||!(!t.uri||!e.uri||t.uri!==e.uri))))},hA=function(t,e){var n=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var s in n[r])if(i=e(n[r][s]))break;if(i)break}return!!i},dA=function(t){if(!t||!t.playlists||!t.playlists.length)return hA(t,function(t){return t.playlists&&t.playlists.length||t.uri});for(var e=function(e){var n=t.playlists[e],i=n.attributes&&n.attributes.CODECS;return i&&i.split(",").every(function(t){return $(t)})?"continue":hA(t,function(t){return cA(n,t)})?"continue":{v:!1}},n=0;n<t.playlists.length;n++){var i=e(n);if("continue"!==i&&"object"==typeof i)return i.v}return!0},fA={liveEdgeDelay:eA,duration:iA,seekable:function(t,e,n){var i=e||0,r=sA(t,e,!0,n);return null===r?Ya():Ya(i,r)},getMediaInfoForTime:function(t){for(var e=t.playlist,n=t.currentTime,i=t.startingSegmentIndex,r=t.startingPartIndex,s=t.startTime,a=n-s,A=Ja(e),o=0,u=0;u<A.length;u++){var l=A[u];if(i===l.segmentIndex&&("number"!=typeof r||"number"!=typeof l.partIndex||r===l.partIndex)){o=u;break}}if(a<0){if(o>0)for(var c=o-1;c>=0;c--){var h=A[c];if((a+=h.duration)+1/30>0)return{partIndex:h.partIndex,segmentIndex:h.segmentIndex,startTime:s-rA({defaultDuration:e.targetDuration,durationList:A,startIndex:o,endIndex:c})}}return{partIndex:A[0]&&A[0].partIndex||null,segmentIndex:A[0]&&A[0].segmentIndex||0,startTime:n}}if(o<0){for(var d=o;d<0;d++)if((a-=e.targetDuration)<0)return{partIndex:A[0]&&A[0].partIndex||null,segmentIndex:A[0]&&A[0].segmentIndex||0,startTime:n};o=0}for(var f=o;f<A.length;f++){var p=A[f];if((a-=p.duration)-1/30<0)return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:s+rA({defaultDuration:e.targetDuration,durationList:A,startIndex:o,endIndex:f})}}return{segmentIndex:A[A.length-1].segmentIndex,partIndex:A[A.length-1].partIndex,startTime:n}},isEnabled:oA,isDisabled:function(t){return t.disabled},isBlacklisted:aA,isIncompatible:AA,playlistEnd:sA,isAes:function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},hasAttribute:uA,estimateSegmentRequestTime:function(t,e,n,i){return void 0===i&&(i=0),uA("BANDWIDTH",n)?(t*n.attributes.BANDWIDTH-8*i)/e:NaN},isLowestEnabledRendition:lA,isAudioOnly:dA,playlistMatch:cA},pA=Ra.log,gA=function(t,e){return t+"-"+e},mA=function(t,e){t.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(n){if(t.mediaGroups[n])for(var i in t.mediaGroups[n])for(var r in t.mediaGroups[n][i]){var s=t.mediaGroups[n][i][r];e(s,n,i,r)}})},vA=function(t){var e=t.playlist,n=t.uri,i=t.id;e.id=i,e.playlistErrors_=0,n&&(e.uri=n),e.attributes=e.attributes||{}},yA=function(t,e){t.uri=e;for(var n=0;n<t.playlists.length;n++)if(!t.playlists[n].uri){var i="placeholder-uri-"+n;t.playlists[n].uri=i}mA(t,function(e,n,i,r){var s="placeholder-uri-"+n+"-"+i+"-"+r;e.playlists&&e.playlists.length||(e.playlists=[c()({},e)]),e.playlists.forEach(function(e,n){var i=gA(n,s);e.uri?e.resolvedUri=e.resolvedUri||Ka(t.uri,e.uri):(e.uri=0===n?s:i,e.resolvedUri=e.uri),e.id=e.id||i,e.attributes=e.attributes||{},t.playlists[e.id]=e,t.playlists[e.uri]=e})}),function(t){for(var e=t.playlists.length;e--;){var n=t.playlists[e];vA({playlist:n,id:gA(e,n.uri)}),n.resolvedUri=Ka(t.uri,n.uri),t.playlists[n.id]=n,t.playlists[n.uri]=n,n.attributes.BANDWIDTH||pA.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(t),function(t){mA(t,function(e){e.uri&&(e.resolvedUri=Ka(t.uri,e.uri))})}(t)},BA=Ra.mergeOptions,bA=function(t,e){if(!t)return e;var n=BA(t,e);if(t.preloadHints&&!e.preloadHints&&delete n.preloadHints,t.parts&&!e.parts)delete n.parts;else if(t.parts&&e.parts)for(var i=0;i<e.parts.length;i++)t.parts&&t.parts[i]&&(n.parts[i]=BA(t.parts[i],e.parts[i]));return!t.skipped&&e.skipped&&(n.skipped=!1),t.preload&&!e.preload&&(n.preload=!1),n},wA=function(t,e){!t.resolvedUri&&t.uri&&(t.resolvedUri=Ka(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=Ka(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=Ka(e,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=Ka(e,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach(function(t){t.resolvedUri||(t.resolvedUri=Ka(e,t.uri))}),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach(function(t){t.resolvedUri||(t.resolvedUri=Ka(e,t.uri))})},CA=function(t){var e=t.segments||[],n=t.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return e;n.duration=t.targetDuration,n.preload=!0,e.push(n)}return e},_A=function(t,e){return t===e||t.segments&&e.segments&&t.segments.length===e.segments.length&&t.endList===e.endList&&t.mediaSequence===e.mediaSequence},TA=function(t,e,n){void 0===n&&(n=_A);var i=BA(t,{}),r=i.playlists[e.id];if(!r)return null;if(n(r,e))return null;e.segments=CA(e);var s=BA(r,e);if(s.preloadSegment&&!e.preloadSegment&&delete s.preloadSegment,r.segments){if(e.skip){e.segments=e.segments||[];for(var a=0;a<e.skip.skippedSegments;a++)e.segments.unshift({skipped:!0})}s.segments=function(t,e,n){var i=t.slice(),r=e.slice();n=n||0;for(var s,a=[],A=0;A<r.length;A++){var o=i[A+n],u=r[A];o?(s=o.map||s,a.push(bA(o,u))):(s&&!u.map&&(u.map=s),a.push(u))}return a}(r.segments,e.segments,e.mediaSequence-r.mediaSequence)}s.segments.forEach(function(t){wA(t,s.resolvedUri)});for(var A=0;A<i.playlists.length;A++)i.playlists[A].id===e.id&&(i.playlists[A]=s);return i.playlists[e.id]=s,i.playlists[e.uri]=s,mA(t,function(t,n,i,r){if(t.playlists)for(var s=0;s<t.playlists.length;s++)e.id===t.playlists[s].id&&(t.playlists[s]=e)}),i},EA=function(t,e){var n=t.segments[t.segments.length-1],i=n&&n.parts&&n.parts[n.parts.length-1],r=i&&i.duration||n&&n.duration;return e&&r?1e3*r:500*(t.partTargetDuration||t.targetDuration||10)},SA=function(t){function e(e,n,i){var r;if(void 0===i&&(i={}),r=t.call(this)||this,!e)throw new Error("A non-empty playlist URL or object is required");r.logger_=Va("PlaylistLoader");var s=i,a=s.withCredentials,A=void 0!==a&&a,o=s.handleManifestRedirects,u=void 0!==o&&o;r.src=e,r.vhs_=n,r.withCredentials=A,r.handleManifestRedirects=u;var l=n.options_;return r.customTagParsers=l&&l.customTagParsers||[],r.customTagMappers=l&&l.customTagMappers||[],r.experimentalLLHLS=l&&l.experimentalLLHLS||!1,r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(d()(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}p()(e,t);var n=e.prototype;return n.handleMediaupdatetimeout_=function(){var t=this;if("HAVE_METADATA"===this.state){var e=this.media(),n=Ka(this.master.uri,e.uri);this.experimentalLLHLS&&(n=function(t,e){if(e.endList)return t;var n=[];if(e.serverControl&&e.serverControl.canBlockReload){var i=e.preloadSegment,r=e.mediaSequence+e.segments.length;if(i){var s=i.parts||[],a=tA(e)-1;a>-1&&a!==s.length-1&&n.push("_HLS_part="+a),(a>-1||s.length)&&r--}n.unshift("_HLS_msn="+r)}return e.serverControl&&e.serverControl.canSkipUntil&&n.unshift("_HLS_skip="+(e.serverControl.canSkipDateranges?"v2":"YES")),n.forEach(function(e,n){t+=(0===n?"?":"&")+e}),t}(n,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},function(e,n){if(t.request)return e?t.playlistRequestError(t.request,t.media(),"HAVE_METADATA"):void t.haveMetadata({playlistString:t.request.responseText,url:t.media().uri,id:t.media().id})})}},n.playlistRequestError=function(t,e,n){var i=e.uri,r=e.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:t.status,message:"HLS playlist request error at URL: "+i+".",responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(t){var e=this,n=t.url;return function(t){var e=t.onwarn,n=t.oninfo,i=t.manifestString,r=t.customTagParsers,s=void 0===r?[]:r,a=t.customTagMappers,A=void 0===a?[]:a,o=t.experimentalLLHLS,u=new M;e&&u.on("warn",e),n&&u.on("info",n),s.forEach(function(t){return u.addParser(t)}),A.forEach(function(t){return u.addTagMapper(t)}),u.push(i),u.end();var l=u.manifest;if(o||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(t){l.hasOwnProperty(t)&&delete l[t]}),l.segments&&l.segments.forEach(function(t){["parts","preloadHints"].forEach(function(e){t.hasOwnProperty(e)&&delete t[e]})})),!l.targetDuration){var c=10;l.segments&&l.segments.length&&(c=l.segments.reduce(function(t,e){return Math.max(t,e.duration)},0)),e&&e("manifest has no targetDuration defaulting to "+c),l.targetDuration=c}var h=Za(l);if(h.length&&!l.partTargetDuration){var d=h.reduce(function(t,e){return Math.max(t,e.duration)},0);e&&(e("manifest has no partTargetDuration defaulting to "+d),pA.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),l.partTargetDuration=d}return l}({onwarn:function(t){var i=t.message;return e.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(t){var i=t.message;return e.logger_("m3u8-parser info for "+n+": "+i)},manifestString:t.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(t){var e=this,n=t.playlistString,i=t.playlistObject,r=t.url,s=t.id;this.request=null,this.state="HAVE_METADATA";var a=i||this.parseManifest_({url:r,manifestString:n});a.lastRequest=Date.now(),vA({playlist:a,uri:r,id:s});var o=TA(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,o?(this.master=o,this.media_=this.master.playlists[s]):this.trigger("playlistunchanged"),this.media().endList||(A.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=A.a.setTimeout(function(){e.trigger("mediaupdatetimeout")},EA(this.media(),!!o))),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),A.a.clearTimeout(this.mediaUpdateTimeout),A.a.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},n.media=function(t,e){var n=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}if(A.a.clearTimeout(this.finalRenditionTimeout),e){var i=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=A.a.setTimeout(this.media.bind(this,t,!1),i)}else{var r=this.state,s=!this.media_||t.id!==this.media_.id,a=this.master.playlists[t.id];if(a&&a.endList||t.endList&&t.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(s&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(s){if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},function(e,i){if(n.request){if(t.lastRequest=Date.now(),t.resolvedUri=ja(n.handleManifestRedirects,t.resolvedUri,i),e)return n.playlistRequestError(n.request,t,r);n.haveMetadata({playlistString:i.responseText,url:t.uri,id:t.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}},n.pause=function(){this.stopRequest(),A.a.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(t){var e=this;A.a.clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(t){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=A.a.setTimeout(function(){return e.load()},i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.start=function(){var t=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=A.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){t.setupInitialPlaylist(t.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"HLS playlist request error at URL: "+t.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");t.src=ja(t.handleManifestRedirects,t.src,n);var i=t.parseManifest_({manifestString:n.responseText,url:t.src});t.setupInitialPlaylist(i)}})},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(t){if(this.state="HAVE_MASTER",t.playlists)return this.master=t,yA(this.master,this.srcUri()),t.playlists.forEach(function(t){t.segments=CA(t),t.segments.forEach(function(e){wA(e,t.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var e=this.srcUri()||A.a.location.href;this.master=function(t,e){var n=gA(0,e),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:A.a.location.href,resolvedUri:A.a.location.href,playlists:[{uri:e,id:n,resolvedUri:e,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[e]=i.playlists[0],i}(0,e),this.haveMetadata({playlistObject:t,url:e,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},e}(Ra.EventTarget),kA=Ra.xhr,UA=Ra.mergeOptions,IA=function(t,e,n,i){var r="arraybuffer"===t.responseType?t.response:t.responseText;!e&&r&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=r.byteLength||r.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),n.headers&&(t.responseHeaders=n.headers),e&&"ETIMEDOUT"===e.code&&(t.timedout=!0),e||t.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(e=new Error("XHR Failed with a response of: "+(t&&(r||t.responseText)))),i(e,t)},FA=function(){var t=function t(e,n){e=UA({timeout:45e3},e);var i=t.beforeRequest||Ra.Vhs.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(e);r&&(e=r)}var s=(!0===Ra.Vhs.xhr.original?kA:Ra.Vhs.xhr)(e,function(t,e){return IA(s,t,e,n)}),a=s.abort;return s.abort=function(){return s.aborted=!0,a.apply(s,arguments)},s.uri=e.uri,s.requestTime=Date.now(),s};return t.original=!0,t},xA=function(t){var e,n,i={};return t.byterange&&(i.Range=(e=t.byterange,n=e.offset+e.length-1,"bytes="+e.offset+"-"+n)),i},QA=function(t,e){return t.start(e)+"-"+t.end(e)},LA=function(t,e){var n=t.toString(16);return"00".substring(0,2-n.length)+n+(e%2?" ":"")},OA=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},DA=function(t){var e={};return Object.keys(t).forEach(function(n){var i=t[n];ArrayBuffer.isView(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i}),e},PA=function(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},HA=function(t){return t.resolvedUri},RA=function(t){for(var e=Array.prototype.slice.call(t),n="",i=0;i<e.length/16;i++)n+=e.slice(16*i,16*i+16).map(LA).join("")+" "+e.slice(16*i,16*i+16).map(OA).join("")+"\n";return n},MA=Object.freeze({__proto__:null,createTransferableMessage:DA,initSegmentId:PA,segmentKeyId:HA,hexDump:RA,tagDump:function(t){var e=t.bytes;return RA(e)},textRanges:function(t){var e,n="";for(e=0;e<t.length;e++)n+=QA(t,e)+" ";return n}}),NA=function(t){var e=t.playlist,n=t.time,i=void 0===n?void 0:n,r=t.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var s=function(t,e){if(!e||!e.segments||0===e.segments.length)return null;for(var n,i=0,r=0;r<e.segments.length&&!(t<=(i=(n=e.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var s=e.segments[e.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>i){if(t>i+.25*s.duration)return null;n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(i,e);if(!s)return r({message:"valid programTime was not found"});if("estimate"===s.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});var a={mediaSeconds:i},A=function(t,e){if(!e.dateTimeObject)return null;var n=e.videoTimingInfo.transmuxerPrependedSeconds,i=t-(e.videoTimingInfo.transmuxedPresentationStart+n);return new Date(e.dateTimeObject.getTime()+1e3*i)}(i,s.segment);return A&&(a.programDateTime=A.toISOString()),r(null,a)},KA=function t(e){var n=e.programTime,i=e.playlist,r=e.retryCount,s=void 0===r?2:r,a=e.seekTo,A=e.pauseAfterSeek,o=void 0===A||A,u=e.tech,l=e.callback;if(!l)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!i||!a)return l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!u.hasStarted_)return l({message:"player must be playing a live stream to start buffering"});if(!function(t){if(!t.segments||0===t.segments.length)return!1;for(var e=0;e<t.segments.length;e++)if(!t.segments[e].dateTimeObject)return!1;return!0}(i))return l({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var c=function(t,e){var n;try{n=new Date(t)}catch(t){return null}if(!e||!e.segments||0===e.segments.length)return null;var i=e.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<e.segments.length-1&&(i=e.segments[r],!(n<e.segments[r+1].dateTimeObject));r++);var s,a=e.segments[e.segments.length-1],A=a.dateTimeObject,o=a.videoTimingInfo?(s=a.videoTimingInfo).transmuxedPresentationEnd-s.transmuxedPresentationStart-s.transmuxerPrependedSeconds:a.duration+.25*a.duration;return n>new Date(A.getTime()+1e3*o)?null:(n>A&&(i=a),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:fA.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})}(n,i);if(!c)return l({message:n+" was not found in the stream"});var h=c.segment,d=function(t,e){var n,i;try{n=new Date(t),i=new Date(e)}catch(t){}var r=n.getTime();return(i.getTime()-r)/1e3}(h.dateTimeObject,n);if("estimate"===c.type)return 0===s?l({message:n+" is not buffered yet. Try again"}):(a(c.estimatedStart+d),void u.one("seeked",function(){t({programTime:n,playlist:i,retryCount:s-1,seekTo:a,pauseAfterSeek:o,tech:u,callback:l})}));var f=h.start+d;u.one("seeked",function(){return l(null,u.currentTime())}),o&&u.pause(),a(f)},jA=function(t,e){if(4===t.readyState)return e()},VA=function(t,e,n){var i,r=[],s=!1,a=function(t,e,i,r){return e.abort(),s=!0,n(t,e,i,r)},A=function(t,e){if(!s){if(t)return a(t,e,"",r);var n=e.responseText.substring(r&&r.byteLength||0,e.responseText.length);if(r=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if((e=e.filter(function(t){return t&&(t.byteLength||t.length)&&"string"!=typeof t})).length<=1)return $t(e[0]);var i=e.reduce(function(t,e,n){return t+(e.byteLength||e.length)},0),r=new Uint8Array(i),s=0;return e.forEach(function(t){t=$t(t),r.set(t,s),s+=t.byteLength}),r}(r,Jt(n,!0)),i=i||ee(r),r.length<10||i&&r.length<i+2)return jA(e,function(){return a(t,e,"",r)});var A=be(r);return"ts"===A&&r.length<188?jA(e,function(){return a(t,e,"",r)}):!A&&r.length<376?jA(e,function(){return a(t,e,"",r)}):a(null,e,A,r)}},o=e({uri:t,beforeSend:function(t){t.overrideMimeType("text/plain; charset=x-user-defined"),t.addEventListener("progress",function(e){return e.total,e.loaded,IA(t,null,{statusCode:t.status},A)})}},function(t,e){return IA(o,t,e,A)});return o},GA=Ra.EventTarget,$A=Ra.mergeOptions,WA=function(t,e){if(!_A(t,e))return!1;if(t.sidx&&e.sidx&&(t.sidx.offset!==e.sidx.offset||t.sidx.length!==e.sidx.length))return!1;if(!t.sidx&&e.sidx||t.sidx&&!e.sidx)return!1;if(t.segments&&!e.segments||!t.segments&&e.segments)return!1;if(!t.segments&&!e.segments)return!0;for(var n=0;n<t.segments.length;n++){var i=t.segments[n],r=e.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var s=i.byterange,a=r.byterange;if(s&&!a||!s&&a)return!1;if(s.offset!==a.offset||s.length!==a.length)return!1}}return!0},zA=function(t,e){var n,i,r={};for(var s in t){var a=t[s].sidx;if(a){var A=gt(a);if(!e[A])break;var o=e[A].sidxInfo;n=o,i=a,(Boolean(!n.map&&!i.map)||Boolean(n.map&&i.map&&n.map.byterange.offset===i.map.byterange.offset&&n.map.byterange.length===i.map.byterange.length))&&n.uri===i.uri&&n.byterange.offset===i.byterange.offset&&n.byterange.length===i.byterange.length&&(r[A]=e[A])}}return r},XA=function(t){function e(e,n,i,r){var s;void 0===i&&(i={}),(s=t.call(this)||this).masterPlaylistLoader_=r||d()(s),r||(s.isMaster_=!0);var a=i,A=a.withCredentials,o=void 0!==A&&A,u=a.handleManifestRedirects,l=void 0!==u&&u;if(s.vhs_=n,s.withCredentials=o,s.handleManifestRedirects=l,!e)throw new Error("A non-empty playlist URL or object is required");return s.on("minimumUpdatePeriod",function(){s.refreshXml_()}),s.on("mediaupdatetimeout",function(){s.refreshMedia_(s.media().id)}),s.state="HAVE_NOTHING",s.loadedPlaylists_={},s.logger_=Va("DashPlaylistLoader"),s.isMaster_?(s.masterPlaylistLoader_.srcUrl=e,s.masterPlaylistLoader_.sidxMapping_={}):s.childPlaylist_=e,s}p()(e,t);var n=e.prototype;return n.requestErrored_=function(t,e,n){return!this.request||(this.request=null,t?(this.error="object"!=typeof t||t instanceof Error?{status:e.status,message:"DASH request error at URL: "+e.uri,response:e.response,code:2}:t,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(t,e,n){var i=this,r=t.sidx&>(t.sidx);if(t.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var s=ja(this.handleManifestRedirects,t.sidx.resolvedUri),a=function(s,a){if(!i.requestErrored_(s,a,e)){var A,o=i.masterPlaylistLoader_.sidxMapping_;try{A=Gt()($t(a.response).subarray(8))}catch(t){return void i.requestErrored_(t,a,e)}return o[r]={sidxInfo:t.sidx,sidx:A},pt(t,A,t.sidx.resolvedUri),n(!0)}};this.request=VA(s,this.vhs_.xhr,function(e,n,r,A){if(e)return a(e,n);if(!r||"mp4"!==r)return a({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:t,internal:!0,blacklistDuration:1/0,code:2},n);var o=t.sidx.byterange,u=o.offset,l=o.length;if(A.length>=l+u)return a(e,{response:A.subarray(u,u+l),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:xA({byterange:t.sidx.byterange})},a)})}else this.mediaRequest_=A.a.setTimeout(function(){return n(!1)},0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},A.a.clearTimeout(this.minimumUpdatePeriodTimeout_),A.a.clearTimeout(this.mediaRequest_),A.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},n.media=function(t){var e=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof t){if(!this.masterPlaylistLoader_.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.masterPlaylistLoader_.master.playlists[t]}var i=!this.media_||t.id!==this.media_.id;if(i&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList)return this.state="HAVE_METADATA",this.media_=t,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,n,function(i){e.haveMetadata({startingState:n,playlist:t})}))},n.haveMetadata=function(t){var e=t.startingState,n=t.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),A.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(A.a.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(t){var e=this;A.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(t){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=A.a.setTimeout(function(){return e.load()},i)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var t=this;this.started=!0,this.isMaster_?this.requestMaster_(function(e,n){t.haveMaster_(),t.hasPendingRequest()||t.media_||t.media(t.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=A.a.setTimeout(function(){return t.haveMaster_()},0)},n.requestMaster_=function(t){var e=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(n,i){if(!e.requestErrored_(n,i)){var r=i.responseText!==e.masterPlaylistLoader_.masterXml_;return e.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?e.masterLoaded_=Date.parse(i.responseHeaders.date):e.masterLoaded_=Date.now(),e.masterPlaylistLoader_.srcUrl=ja(e.handleManifestRedirects,e.masterPlaylistLoader_.srcUrl,i),r?(e.handleMaster_(),void e.syncClientServerClock_(function(){return t(i,r)})):t(i,r)}"HAVE_NOTHING"===e.state&&(e.started=!1)})},n.syncClientServerClock_=function(t){var e=this,n=jt(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),t()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),t()):void(this.request=this.vhs_.xhr({uri:Ka(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(i,r){if(e.request){if(i)return e.masterPlaylistLoader_.clientOffset_=e.masterLoaded_-Date.now(),t();var s;s="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):e.masterLoaded_:Date.parse(r.responseText),e.masterPlaylistLoader_.clientOffset_=s-Date.now(),t()}}))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var t,e,n,i,r,s,a=(t={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_},e=t.masterXml,n=t.srcUrl,i=t.clientOffset,r=t.sidxMapping,s=Kt(e,{manifestUri:n,clientOffset:i,sidxMapping:r}),yA(s,n),s),A=this.masterPlaylistLoader_.master;A&&(a=function(t,e,n){for(var i=!0,r=$A(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod}),s=0;s<e.playlists.length;s++){var a=e.playlists[s];if(a.sidx){var A=gt(a.sidx);n&&n[A]&&n[A].sidx&&pt(a,n[A].sidx,a.sidx.resolvedUri)}var o=TA(r,a,WA);o&&(r=o,i=!1)}return mA(e,function(t,e,n,s){if(t.playlists&&t.playlists.length){var a=t.playlists[0].id,A=TA(r,t.playlists[0],WA);A&&((r=A).mediaGroups[e][n][s].playlists[0]=r.playlists[a],i=!1)}}),e.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(i=!1),i?null:r}(A,a,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=a||A;var o=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return o&&o!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=o),(!A||a&&a.minimumUpdatePeriod!==A.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(a)},n.updateMinimumUpdatePeriodTimeout_=function(){var t=this.masterPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(A.a.clearTimeout(t.minimumUpdatePeriodTimeout_),t.minimumUpdatePeriodTimeout_=null);var e=t.master&&t.master.minimumUpdatePeriod;0===e&&(t.media()?e=1e3*t.media().targetDuration:(t.createMupOnMedia_=t.updateMinimumUpdatePeriodTimeout_,t.one("loadedmetadata",t.createMupOnMedia_))),"number"!=typeof e||e<=0?e<0&&this.logger_("found invalid minimumUpdatePeriod of "+e+", not setting a timeout"):this.createMUPTimeout_(e)},n.createMUPTimeout_=function(t){var e=this.masterPlaylistLoader_;e.minimumUpdatePeriodTimeout_=A.a.setTimeout(function(){e.minimumUpdatePeriodTimeout_=null,e.trigger("minimumUpdatePeriod"),e.createMUPTimeout_(t)},t)},n.refreshXml_=function(){var t=this;this.requestMaster_(function(e,n){var i,r,s;n&&(t.media_&&(t.media_=t.masterPlaylistLoader_.master.playlists[t.media_.id]),t.masterPlaylistLoader_.sidxMapping_=(i=t.masterPlaylistLoader_.master,r=t.masterPlaylistLoader_.sidxMapping_,s=zA(i.playlists,r),mA(i,function(t,e,n,i){if(t.playlists&&t.playlists.length){var a=t.playlists;s=$A(s,zA(a,r))}}),s),t.addSidxSegments_(t.media(),t.state,function(e){t.refreshMedia_(t.media().id)}))})},n.refreshMedia_=function(t){var e=this;if(!t)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[t];if(i?this.media_=n[t]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function t(){e.media().endList||(e.mediaUpdateTimeout=A.a.setTimeout(function(){e.trigger("mediaupdatetimeout"),t()},EA(e.media(),Boolean(i))))}()}this.trigger("loadedplaylist")},e}(GA),qA={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},YA=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},JA=function(t){return function(){var e=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(n){var e=new BlobBuilder;return e.append(t),URL.createObjectURL(e.getBlob())}}(t),n=YA(new Worker(e));n.objURL=e;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},n}},ZA=function(t){return"var browserWorkerPolyFill = "+YA.toString()+";\nbrowserWorkerPolyFill(self);\n"+t},to=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},eo=JA(ZA(to(function(){var t=function(){this.init=function(){var t={};this.on=function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},this.off=function(e,n){var i;return!!t[e]&&(i=t[e].indexOf(n),t[e]=t[e].slice(),t[e].splice(i,1),i>-1)},this.trigger=function(e){var n,i,r,s;if(n=t[e])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(s=[],i=arguments.length,i=1;i<arguments.length;++i)s.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,s)}},this.dispose=function(){t={}}}};t.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),this.on("partialdone",function(e){t.partialFlush(e)}),this.on("endedtimeline",function(e){t.endTimeline(e)}),this.on("reset",function(e){t.reset(e)}),t},t.prototype.push=function(t){this.trigger("data",t)},t.prototype.flush=function(t){this.trigger("done",t)},t.prototype.partialFlush=function(t){this.trigger("partialdone",t)},t.prototype.endTimeline=function(t){this.trigger("endedtimeline",t)},t.prototype.reset=function(t){this.trigger("reset",t)};var e,n,i,r,s,a,A,o,u,l,c,h,d,f,p,g,m,v,y,B,b,w,C,_,T,E,S,k,U,I,F,x,Q,L,O,D,P,H,R,M,N=t,K=Math.pow(2,32)-1;!function(){var t;if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in w)w.hasOwnProperty(t)&&(w[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),T=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),_=new Uint8Array([0,0,0,1]),E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),S=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),k={video:E,audio:S},F=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0]),x=new Uint8Array([0,0,0,0,0,0,0,0]),Q=x,L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),O=x,U=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),e=function(t){var e,n,i=[],r=0;for(e=1;e<arguments.length;e++)i.push(arguments[e]);for(e=i.length;e--;)r+=i[e].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(t,4),e=0,r=8;e<i.length;e++)n.set(i[e],r),r+=i[e].byteLength;return n},n=function(){return e(w.dinf,e(w.dref,F))},i=function(t){return e(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},p=function(t){return e(w.hdlr,k[t])},f=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(n[12]=t.samplerate>>>24&255,n[13]=t.samplerate>>>16&255,n[14]=t.samplerate>>>8&255,n[15]=255&t.samplerate),e(w.mdhd,n)},d=function(t){return e(w.mdia,f(t),p(t.type),a(t))},s=function(t){return e(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},a=function(t){return e(w.minf,"video"===t.type?e(w.vmhd,U):e(w.smhd,I),n(),m(t))},A=function(t,n){for(var i=[],r=n.length;r--;)i[r]=y(n[r]);return e.apply(null,[w.moof,s(t)].concat(i))},o=function(t){for(var n=t.length,i=[];n--;)i[n]=c(t[n]);return e.apply(null,[w.moov,l(4294967295)].concat(i).concat(u(t)))},u=function(t){for(var n=t.length,i=[];n--;)i[n]=B(t[n]);return e.apply(null,[w.mvex].concat(i))},l=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e(w.mvhd,n)},g=function(t){var n,i,r=t.samples||[],s=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,s[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return e(w.sdtp,s)},m=function(t){return e(w.stbl,v(t),e(w.stts,O),e(w.stsc,Q),e(w.stsz,L),e(w.stco,x))},v=function(t){return e(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===t.type?D(t):P(t))},D=function(t){var n,i,r=t.sps||[],s=t.pps||[],a=[],A=[];for(n=0;n<r.length;n++)a.push((65280&r[n].byteLength)>>>8),a.push(255&r[n].byteLength),a=a.concat(Array.prototype.slice.call(r[n]));for(n=0;n<s.length;n++)A.push((65280&s[n].byteLength)>>>8),A.push(255&s[n].byteLength),A=A.concat(Array.prototype.slice.call(s[n]));if(i=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(w.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([r.length],a,[s.length],A))),e(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],t.sarRatio){var o=t.sarRatio[0],u=t.sarRatio[1];i.push(e(w.pasp,new Uint8Array([(4278190080&o)>>24,(16711680&o)>>16,(65280&o)>>8,255&o,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return e.apply(null,i)},P=function(t){return e(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),i(t))},h=function(t){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return e(w.tkhd,n)},y=function(t){var n,i,r,s,a,A;return n=e(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(t.baseMediaDecodeTime/(K+1)),A=Math.floor(t.baseMediaDecodeTime%(K+1)),i=e(w.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,A>>>24&255,A>>>16&255,A>>>8&255,255&A])),92,"audio"===t.type?(r=b(t,92),e(w.traf,n,i,r)):(s=g(t),r=b(t,s.length+92),e(w.traf,n,i,r,s))},c=function(t){return t.duration=t.duration||4294967295,e(w.trak,h(t),d(t))},B=function(t){var n=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(n[n.length-1]=0),e(w.trex,n)},M=function(t,e){var n=0,i=0,r=0,s=0;return t.length&&(void 0!==t[0].duration&&(n=1),void 0!==t[0].size&&(i=2),void 0!==t[0].flags&&(r=4),void 0!==t[0].compositionTimeOffset&&(s=8)),[0,0,n|i|r|s,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},R=function(t,n){var i,r,s,a,A,o;for(n+=20+16*(a=t.samples||[]).length,s=M(a,n),(r=new Uint8Array(s.length+16*a.length)).set(s),i=s.length,o=0;o<a.length;o++)A=a[o],r[i++]=(4278190080&A.duration)>>>24,r[i++]=(16711680&A.duration)>>>16,r[i++]=(65280&A.duration)>>>8,r[i++]=255&A.duration,r[i++]=(4278190080&A.size)>>>24,r[i++]=(16711680&A.size)>>>16,r[i++]=(65280&A.size)>>>8,r[i++]=255&A.size,r[i++]=A.flags.isLeading<<2|A.flags.dependsOn,r[i++]=A.flags.isDependedOn<<6|A.flags.hasRedundancy<<4|A.flags.paddingValue<<1|A.flags.isNonSyncSample,r[i++]=61440&A.flags.degradationPriority,r[i++]=15&A.flags.degradationPriority,r[i++]=(4278190080&A.compositionTimeOffset)>>>24,r[i++]=(16711680&A.compositionTimeOffset)>>>16,r[i++]=(65280&A.compositionTimeOffset)>>>8,r[i++]=255&A.compositionTimeOffset;return e(w.trun,r)},H=function(t,n){var i,r,s,a,A,o;for(n+=20+8*(a=t.samples||[]).length,s=M(a,n),(i=new Uint8Array(s.length+8*a.length)).set(s),r=s.length,o=0;o<a.length;o++)A=a[o],i[r++]=(4278190080&A.duration)>>>24,i[r++]=(16711680&A.duration)>>>16,i[r++]=(65280&A.duration)>>>8,i[r++]=255&A.duration,i[r++]=(4278190080&A.size)>>>24,i[r++]=(16711680&A.size)>>>16,i[r++]=(65280&A.size)>>>8,i[r++]=255&A.size;return e(w.trun,i)},b=function(t,e){return"audio"===t.type?H(t,e):R(t,e)};r=function(){return e(w.ftyp,C,_,C,T)};var j,V,G,$,W,z=function(t){return e(w.mdat,t)},X=A,q=function(t){var e,n=r(),i=o(t);return(e=new Uint8Array(n.byteLength+i.byteLength)).set(n),e.set(i,n.byteLength),e},Y=function(t,e){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=e,n.compositionTimeOffset=t.pts-t.dts,n.duration=t.duration,n.size=4*t.length,n.size+=t.byteLength,t.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},J=function(t){var e,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,e=0;e<t.length;e++)"access_unit_delimiter_rbsp"===(n=t[e]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},Z=function(t){var e,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=t[0].pts,i.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e<t.length;e++)(n=t[e]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},tt=function(t){var e;return!t[0][0].keyFrame&&t.length>1&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},et=function(t,e){var n,i,r,s,a,A=e||0,o=[];for(n=0;n<t.length;n++)for(s=t[n],i=0;i<s.length;i++)a=s[i],A+=(r=Y(a,A)).size,o.push(r);return o},nt=function(t){var e,n,i,r,s,a,A=0,o=t.byteLength,u=t.nalCount,l=new Uint8Array(o+4*u),c=new DataView(l.buffer);for(e=0;e<t.length;e++)for(r=t[e],n=0;n<r.length;n++)for(s=r[n],i=0;i<s.length;i++)a=s[i],c.setUint32(A,a.data.byteLength),A+=4,l.set(a.data,A),A+=a.data.byteLength;return l},it=[33,16,5,32,164,27],rt=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],st=function(t){for(var e=[];t--;)e.push(0);return e},at=function(){if(!j){var t={96000:[it,[227,64],st(154),[56]],88200:[it,[231],st(170),[56]],64000:[it,[248,192],st(240),[56]],48000:[it,[255,192],st(268),[55,148,128],st(54),[112]],44100:[it,[255,192],st(268),[55,163,128],st(84),[112]],32000:[it,[255,192],st(268),[55,234],st(226),[112]],24000:[it,[255,192],st(268),[55,255,128],st(268),[111,112],st(126),[224]],16000:[it,[255,192],st(268),[55,255,128],st(268),[111,255],st(269),[223,108],st(195),[1,192]],12000:[rt,st(268),[3,127,248],st(268),[6,255,240],st(268),[13,255,224],st(268),[27,253,128],st(259),[56]],11025:[rt,st(268),[3,127,248],st(268),[6,255,240],st(268),[13,255,224],st(268),[27,255,192],st(268),[55,175,128],st(108),[112]],8000:[rt,st(268),[3,121,16],st(47),[7]]};e=t,j=Object.keys(e).reduce(function(t,n){return t[n]=new Uint8Array(e[n].reduce(function(t,e){return t.concat(e)},[])),t},{})}var e;return j},At=9e4,ot=V=function(t){return 9e4*t},ut=(G=function(t,e){return t*e},$=function(t){return t/9e4}),lt=(W=function(t,e){return t/e},function(t,e){return V(W(t,e))}),ct=function(t,e){return G($(t),e)},ht=function(t,e,n){return $(n?t:t-e)},dt=function(t,e,n,i){var r,s,a,A,o,u=0,l=0,c=0;if(e.length&&(r=lt(t.baseMediaDecodeTime,t.samplerate),s=Math.ceil(At/(t.samplerate/1024)),n&&i&&(u=r-Math.max(n,i),c=(l=Math.floor(u/s))*s),!(l<1||c>At/2))){for((a=at()[t.samplerate])||(a=e[0].data),A=0;A<l;A++)o=e[0],e.splice(0,0,{data:a,dts:o.dts-s,pts:o.pts-s});return t.baseMediaDecodeTime-=Math.floor(ct(c,t.samplerate)),c}},ft=function(t,e,n){return e.minSegmentDts>=n?t:(e.minSegmentDts=1/0,t.filter(function(t){return t.dts>=n&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)}))},pt=function(t){var e,n,i=[];for(e=0;e<t.length;e++)n=t[e],i.push({size:n.data.byteLength,duration:1024});return i},gt=function(t){var e,n,i=0,r=new Uint8Array(function(t){var e,n=0;for(e=0;e<t.length;e++)n+=t[e].data.byteLength;return n}(t));for(e=0;e<t.length;e++)n=t[e],r.set(n.data,i),i+=n.data.byteLength;return r},mt=At,vt=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},yt=function(t,e){var n,i=t.minSegmentDts;return e||(i-=t.timelineStartInfo.dts),n=t.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===t.type&&(n*=t.samplerate/mt,n=Math.floor(n)),n},Bt=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},bt=function(t){for(var e=0,n={payloadType:-1,payloadSize:0},i=0,r=0;e<t.byteLength&&128!==t[e];){for(;255===t[e];)i+=255,e++;for(i+=t[e++];255===t[e];)r+=255,e++;if(r+=t[e++],!n.payload&&4===i){if("GA94"===String.fromCharCode(t[e+3],t[e+4],t[e+5],t[e+6])){n.payloadType=i,n.payloadSize=r,n.payload=t.subarray(e,e+r);break}n.payload=void 0}e+=r,i=0,r=0}return n},wt=function(t){return 181!==t.payload[0]?null:49!=(t.payload[1]<<8|t.payload[2])?null:"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])?null:3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)},Ct=function(t,e){var n,i,r,s,a=[];if(!(64&e[0]))return a;for(i=31&e[0],n=0;n<i;n++)s={type:3&e[2+(r=3*n)],pts:t},4&e[r+2]&&(s.ccData=e[r+3]<<8|e[r+4],a.push(s));return a},_t=function(t){for(var e,n,i=t.byteLength,r=[],s=1;s<i-2;)0===t[s]&&0===t[s+1]&&3===t[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var a=0;for(s=0;s<e;a++,s++)a===r[0]&&(a++,r.shift()),n[s]=t[a];return n},Tt=4,Et=function t(e){e=e||{},t.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Dt(0,0),new Dt(0,1),new Dt(1,0),new Dt(1,1)],this.parse708captions_&&(this.cc708Stream_=new Ft),this.reset(),this.ccStreams_.forEach(function(t){t.on("data",this.trigger.bind(this,"data")),t.on("partialdone",this.trigger.bind(this,"partialdone")),t.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};(Et.prototype=new N).push=function(t){var e,n,i;if("sei_rbsp"===t.nalUnitType&&(e=bt(t.escapedRBSP)).payload&&e.payloadType===Tt&&(n=wt(e)))if(t.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Ct(t.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},Et.prototype.flushCCStreams=function(t){this.ccStreams_.forEach(function(e){return"flush"===t?e.flush():e.partialFlush()},this)},Et.prototype.flushStream=function(t){this.captionPackets_.length?(this.captionPackets_.forEach(function(t,e){t.presortIndex=e}),this.captionPackets_.sort(function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts}),this.captionPackets_.forEach(function(t){t.type<2?this.dispatchCea608Packet(t):this.dispatchCea708Packet(t)},this),this.captionPackets_.length=0,this.flushCCStreams(t)):this.flushCCStreams(t)},Et.prototype.flush=function(){return this.flushStream("flush")},Et.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Et.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(t){t.reset()})},Et.prototype.dispatchCea608Packet=function(t){this.setsTextOrXDSActive(t)?this.activeCea608Channel_[t.type]=null:this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},Et.prototype.setsChannel1Active=function(t){return 4096==(30720&t.ccData)},Et.prototype.setsChannel2Active=function(t){return 6144==(30720&t.ccData)},Et.prototype.setsTextOrXDSActive=function(t){return 256==(28928&t.ccData)||4138==(30974&t.ccData)||6186==(30974&t.ccData)},Et.prototype.dispatchCea708Packet=function(t){this.parse708captions_&&this.cc708Stream_.push(t)};var St={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},kt=function(t){return 32<=t&&t<=127||160<=t&&t<=255},Ut=function(t){this.windowNum=t,this.reset()};Ut.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Ut.prototype.getText=function(){return this.rows.join("\n")},Ut.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Ut.prototype.newLine=function(t){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(t),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Ut.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Ut.prototype.addText=function(t){this.rows[this.rowIdx]+=t},Ut.prototype.backspace=function(){if(!this.isEmpty()){var t=this.rows[this.rowIdx];this.rows[this.rowIdx]=t.substr(0,t.length-1)}};var It=function(t){this.serviceNum=t,this.text="",this.currentWindow=new Ut(-1),this.windows=[]};It.prototype.init=function(t,e){this.startPts=t;for(var n=0;n<8;n++)this.windows[n]=new Ut(n),"function"==typeof e&&(this.windows[n].beforeRowOverflow=e)},It.prototype.setCurrentWindow=function(t){this.currentWindow=this.windows[t]};var Ft=function t(){t.prototype.init.call(this);var e=this;this.current708Packet=null,this.services={},this.push=function(t){3===t.type?(e.new708Packet(),e.add708Bytes(t)):(null===e.current708Packet&&e.new708Packet(),e.add708Bytes(t))}};Ft.prototype=new N,Ft.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Ft.prototype.add708Bytes=function(t){var e=t.ccData,n=e>>>8,i=255&e;this.current708Packet.ptsVals.push(t.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},Ft.prototype.push708Packet=function(){var t=this.current708Packet,e=t.data,n=null,i=null,r=0,s=e[r++];for(t.seq=s>>6,t.sizeCode=63&s;r<e.length;r++)i=31&(s=e[r++]),7===(n=s>>5)&&i>0&&(n=s=e[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},Ft.prototype.pushServiceBlock=function(t,e,n){var i,r=e,s=this.current708Packet.data,a=this.services[t];for(a||(a=this.initService(t,r));r<e+n&&r<s.length;r++)i=s[r],kt(i)?r=this.handleText(r,a):16===i?r=this.extendedCommands(r,a):128<=i&&i<=135?r=this.setCurrentWindow(r,a):152<=i&&i<=159?r=this.defineWindow(r,a):136===i?r=this.clearWindows(r,a):140===i?r=this.deleteWindows(r,a):137===i?r=this.displayWindows(r,a):138===i?r=this.hideWindows(r,a):139===i?r=this.toggleWindows(r,a):151===i?r=this.setWindowAttributes(r,a):144===i?r=this.setPenAttributes(r,a):145===i?r=this.setPenColor(r,a):146===i?r=this.setPenLocation(r,a):143===i?a=this.reset(r,a):8===i?a.currentWindow.backspace():12===i?a.currentWindow.clearText():13===i?a.currentWindow.pendingNewLine=!0:14===i?a.currentWindow.clearText():141===i&&r++},Ft.prototype.extendedCommands=function(t,e){var n=this.current708Packet.data[++t];return kt(n)&&(t=this.handleText(t,e,!0)),t},Ft.prototype.getPts=function(t){return this.current708Packet.ptsVals[Math.floor(t/2)]},Ft.prototype.initService=function(t,e){var n=this;return this.services[t]=new It(t),this.services[t].init(this.getPts(e),function(e){n.flushDisplayed(e,n.services[t])}),this.services[t]},Ft.prototype.handleText=function(t,e,n){var i,r,s=this.current708Packet.data[t],a=(r=St[i=(n?4096:0)|s]||i,4096&i&&i===r?"":String.fromCharCode(r)),A=e.currentWindow;return A.pendingNewLine&&!A.isEmpty()&&A.newLine(this.getPts(t)),A.pendingNewLine=!1,A.addText(a),t},Ft.prototype.setCurrentWindow=function(t,e){var n=7&this.current708Packet.data[t];return e.setCurrentWindow(n),t},Ft.prototype.defineWindow=function(t,e){var n=this.current708Packet.data,i=n[t],r=7&i;e.setCurrentWindow(r);var s=e.currentWindow;return i=n[++t],s.visible=(32&i)>>5,s.rowLock=(16&i)>>4,s.columnLock=(8&i)>>3,s.priority=7&i,i=n[++t],s.relativePositioning=(128&i)>>7,s.anchorVertical=127&i,i=n[++t],s.anchorHorizontal=i,i=n[++t],s.anchorPoint=(240&i)>>4,s.rowCount=15&i,i=n[++t],s.columnCount=63&i,i=n[++t],s.windowStyle=(56&i)>>3,s.penStyle=7&i,s.virtualRowCount=s.rowCount+1,t},Ft.prototype.setWindowAttributes=function(t,e){var n=this.current708Packet.data,i=n[t],r=e.currentWindow.winAttr;return i=n[++t],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++t],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++t],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++t],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,t},Ft.prototype.flushDisplayed=function(t,e){for(var n=[],i=0;i<8;i++)e.windows[i].visible&&!e.windows[i].isEmpty()&&n.push(e.windows[i].getText());e.endPts=t,e.text=n.join("\n\n"),this.pushCaption(e),e.startPts=t},Ft.prototype.pushCaption=function(t){""!==t.text&&(this.trigger("data",{startPts:t.startPts,endPts:t.endPts,text:t.text,stream:"cc708_"+t.serviceNum}),t.text="",t.startPts=t.endPts)},Ft.prototype.displayWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&(e.windows[r].visible=1);return t},Ft.prototype.hideWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&(e.windows[r].visible=0);return t},Ft.prototype.toggleWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&(e.windows[r].visible^=1);return t},Ft.prototype.clearWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&e.windows[r].clearText();return t},Ft.prototype.deleteWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&e.windows[r].reset();return t},Ft.prototype.setPenAttributes=function(t,e){var n=this.current708Packet.data,i=n[t],r=e.currentWindow.penAttr;return i=n[++t],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++t],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,t},Ft.prototype.setPenColor=function(t,e){var n=this.current708Packet.data,i=n[t],r=e.currentWindow.penColor;return i=n[++t],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++t],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++t],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,t},Ft.prototype.setPenLocation=function(t,e){var n=this.current708Packet.data,i=n[t],r=e.currentWindow.penLoc;return e.currentWindow.pendingNewLine=!0,i=n[++t],r.row=15&i,i=n[++t],r.column=63&i,t},Ft.prototype.reset=function(t,e){var n=this.getPts(t);return this.flushDisplayed(n,e),this.initService(e.serviceNum,t)};var xt={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Qt=function(t){return null===t?"":(t=xt[t]||t,String.fromCharCode(t))},Lt=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ot=function(){for(var t=[],e=15;e--;)t.push("");return t},Dt=function t(e,n){t.prototype.init.call(this),this.field_=e||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,n,i,r,s;if((e=32639&t.ccData)!==this.lastControlCode_){if(4096==(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),i=e>>>8,r=255&e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=Ot();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ot();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=Ot()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(i,r))s=Qt((i=(3&i)<<8)|r),this[this.mode_](t.pts,s),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),s=Qt((i=(3&i)<<8)|r),this[this.mode_](t.pts,s),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&r)&&this.addFormatting(t.pts,["i"]),1==(1&r)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var a=Lt.indexOf(7968&e);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(t.pts,a)),a!==this.row_&&(this.clearFormatting(t.pts),this.row_=a),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16==(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),s=Qt(i),s+=Qt(r),this[this.mode_](t.pts,s),this.column_+=s.length)}else this.lastControlCode_=null}};Dt.prototype=new N,Dt.prototype.flushDisplayed=function(t){var e=this.displayed_.map(function(t,e){try{return t.trim()}catch(t){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},Dt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ot(),this.nonDisplayed_=Ot(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Dt.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Dt.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&e>=48&&e<=63},Dt.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&e>=32&&e<=63},Dt.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&e>=32&&e<=47},Dt.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&e>=33&&e<=35},Dt.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&e>=64&&e<=127},Dt.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},Dt.prototype.isNormalChar=function(t){return t>=32&&t<=127},Dt.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=Ot(),this.displayed_=Ot()),void 0!==e&&e!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[e-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===e&&(e=this.row_),this.topRow_=e-this.rollUpRows_+1},Dt.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var n=e.reduce(function(t,e){return t+"<"+e+">"},"");this[this.mode_](t,n)},Dt.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce(function(t,e){return t+"</"+e+">"},"");this.formatting_=[],this[this.mode_](t,e)}},Dt.prototype.popOn=function(t,e){var n=this.nonDisplayed_[this.row_];n+=e,this.nonDisplayed_[this.row_]=n},Dt.prototype.rollUp=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n},Dt.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t<15;t++)this.displayed_[t]="";for(t=this.topRow_;t<this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},Dt.prototype.paintOn=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n};var Pt={CaptionStream:Et,Cea608Stream:Dt,Cea708Stream:Ft},Ht={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Rt=function(t,e){var n=1;for(t>e&&(n=-1);Math.abs(e-t)>4294967296;)t+=8589934592*n;return t},Mt=function t(e){var n,i;t.prototype.init.call(this),this.type_=e||"shared",this.push=function(t){"shared"!==this.type_&&t.type!==this.type_||(void 0===i&&(i=t.dts),t.dts=Rt(t.dts,i),t.pts=Rt(t.pts,i),n=t.dts,this.trigger("data",t))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Mt.prototype=new N;var Nt,Kt=Mt,jt=Rt,Vt=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},Gt=function(t,e,n){return decodeURIComponent(Vt(t,e,n))},$t=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},Wt={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=Gt(t.data,1,e),t.value=Gt(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=Gt(t.data,1,e),t.url=Gt(t.data,e+1,t.data.length);break}},PRIV:function(t){var e,n;for(e=0;e<t.data.length;e++)if(0===t.data[e]){t.owner=(n=t.data,unescape(Vt(n,0,e)));break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};(Nt=function(t){var e,n={descriptor:t&&t.descriptor},i=0,r=[],s=0;if(Nt.prototype.init.call(this),this.dispatchType=Ht.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(e=0;e<n.descriptor.length;e++)this.dispatchType+=("00"+n.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,n,a,A,o;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(s=0,r.length=0),0===r.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(t),s+=t.data.byteLength,1===r.length&&(i=$t(t.data.subarray(6,10)),i+=10),!(s<i)){for(e={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},o=0;o<i;)e.data.set(r[0].data.subarray(0,i-o),o),o+=r[0].data.byteLength,s-=r[0].data.byteLength,r.shift();n=10,64&e.data[5]&&(n+=4,n+=$t(e.data.subarray(10,14)),i-=$t(e.data.subarray(16,20)));do{if((a=$t(e.data.subarray(n+4,n+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((A={id:String.fromCharCode(e.data[n],e.data[n+1],e.data[n+2],e.data[n+3]),data:e.data.subarray(n+10,n+a+10)}).key=A.id,Wt[A.id]&&(Wt[A.id](A),"com.apple.streaming.transportStreamTimestamp"===A.owner)){var u=A.data,l=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;l*=4,l+=3&u[7],A.timeStamp=l,void 0===e.pts&&void 0===e.dts&&(e.pts=A.timeStamp,e.dts=A.timeStamp),this.trigger("timestamp",A)}e.frames.push(A),n+=10,n+=a}while(n<i);this.trigger("data",e)}}}).prototype=new N;var zt,Xt,qt,Yt=Nt,Jt=Kt;(zt=function(){var t=new Uint8Array(188),e=0;zt.prototype.init.call(this),this.push=function(n){var i,r=0,s=188;for(e?((i=new Uint8Array(n.byteLength+e)).set(t.subarray(0,e)),i.set(n,e),e=0):i=n;s<i.byteLength;)71!==i[r]||71!==i[s]?(r++,s++):(this.trigger("data",i.subarray(r,s)),r+=188,s+=188);r<i.byteLength&&(t.set(i.subarray(r),0),e=i.byteLength-r)},this.flush=function(){188===e&&71===t[0]&&(this.trigger("data",t),e=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){e=0,this.trigger("reset")}}).prototype=new N,(Xt=function(){var t,e,n,i;Xt.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,i){var r=0;i.payloadUnitStartIndicator&&(r+=t[r]+1),"pat"===i.type?e(t.subarray(r),i):n(t.subarray(r),i)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],i.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=i.pmtPid},n=function(t,e){var n,r;if(1&t[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&t[1])<<8|t[2])-4,r=12+((15&t[10])<<8|t[11]);r<n;){var s=t[r],a=(31&t[r+1])<<8|t[r+2];s===Ht.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=a:s===Ht.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=a:s===Ht.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][a]=s),r+=5+((15&t[r+3])<<8|t[r+4])}e.programMapTable=i.programMapTable}},this.push=function(e){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&e[1]),n.pid=31&e[1],n.pid<<=8,n.pid|=e[2],(48&e[3])>>>4>1&&(i+=e[i]+1),0===n.pid)n.type="pat",t(e.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",t(e.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,n]):this.processPes_(e,i,n)},this.processPes_=function(t,e,n){n.pid===this.programMapTable.video?n.streamType=Ht.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Ht.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(e),this.trigger("data",n)}}).prototype=new N,Xt.STREAM_TYPES={h264:27,adts:15},(qt=function(){var t,e=this,n=!1,i={data:[],size:0},r={data:[],size:0},s={data:[],size:0},a=function(t,n,i){var r,s,a=new Uint8Array(t.size),A={type:n},o=0,u=0;if(t.data.length&&!(t.size<9)){for(A.trackId=t.data[0].pid,o=0;o<t.data.length;o++)s=t.data[o],a.set(s.data,u),u+=s.data.byteLength;var l,c,h,d;c=A,d=(l=a)[0]<<16|l[1]<<8|l[2],c.data=new Uint8Array,1===d&&(c.packetLength=6+(l[4]<<8|l[5]),c.dataAlignmentIndicator=0!=(4&l[6]),192&(h=l[7])&&(c.pts=(14&l[9])<<27|(255&l[10])<<20|(254&l[11])<<12|(255&l[12])<<5|(254&l[13])>>>3,c.pts*=4,c.pts+=(6&l[13])>>>1,c.dts=c.pts,64&h&&(c.dts=(14&l[14])<<27|(255&l[15])<<20|(254&l[16])<<12|(255&l[17])<<5|(254&l[18])>>>3,c.dts*=4,c.dts+=(6&l[18])>>>1)),c.data=l.subarray(9+l[8])),r="video"===n||A.packetLength<=t.size,(i||r)&&(t.size=0,t.data.length=0),r&&e.trigger("data",A)}};qt.prototype.init.call(this),this.push=function(A){({pat:function(){},pes:function(){var t,e;switch(A.streamType){case Ht.H264_STREAM_TYPE:t=i,e="video";break;case Ht.ADTS_STREAM_TYPE:t=r,e="audio";break;case Ht.METADATA_STREAM_TYPE:t=s,e="timed-metadata";break;default:return}A.payloadUnitStartIndicator&&a(t,e,!0),t.data.push(A),t.size+=A.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(t=A.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),n=!0,e.trigger("data",i)}})[A.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){a(i,"video"),a(r,"audio"),a(s,"timed-metadata")},this.flush=function(){if(!n&&t){var i={type:"metadata",tracks:[]};null!==t.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),e.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new N;var Zt={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:zt,TransportParseStream:Xt,ElementaryStream:qt,TimestampRolloverStream:Jt,CaptionStream:Pt.CaptionStream,Cea608Stream:Pt.Cea608Stream,Cea708Stream:Pt.Cea708Stream,MetadataStream:Yt};for(var te in Ht)Ht.hasOwnProperty(te)&&(Zt[te]=Ht[te]);var ee,ne=Zt,ie=At,re=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(ee=function(t){var e,n=0;ee.prototype.init.call(this),this.skipWarn_=function(t,e){this.trigger("log",{level:"warn",message:"adts skiping bytes "+t+" to "+e+" in frame "+n+" outside syncword"})},this.push=function(i){var r,s,a,A,o,u=0;if(t||(n=0),"audio"===i.type){var l;for(e&&e.length?(a=e,(e=new Uint8Array(a.byteLength+i.data.byteLength)).set(a),e.set(i.data,a.byteLength)):e=i.data;u+7<e.length;)if(255===e[u]&&240==(246&e[u+1])){if("number"==typeof l&&(this.skipWarn_(l,u),l=null),s=2*(1&~e[u+1]),r=(3&e[u+3])<<11|e[u+4]<<3|(224&e[u+5])>>5,o=(A=1024*(1+(3&e[u+6])))*ie/re[(60&e[u+2])>>>2],e.byteLength-u<r)break;this.trigger("data",{pts:i.pts+n*o,dts:i.dts+n*o,sampleCount:A,audioobjecttype:1+(e[u+2]>>>6&3),channelcount:(1&e[u+2])<<2|(192&e[u+3])>>>6,samplerate:re[(60&e[u+2])>>>2],samplingfrequencyindex:(60&e[u+2])>>>2,samplesize:16,data:e.subarray(u+7+s,u+r)}),n++,u+=r}else"number"!=typeof l&&(l=u),u++;"number"==typeof l&&(this.skipWarn_(l,u),l=null),e=e.subarray(u)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){e=void 0,this.trigger("reset")},this.endTimeline=function(){e=void 0,this.trigger("endedtimeline")}}).prototype=new N;var se,ae,Ae,oe=ee,ue=function(t){var e=t.byteLength,n=0,i=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+i},this.loadWord=function(){var r=t.byteLength-e,s=new Uint8Array(4),a=Math.min(4,e);if(0===a)throw new Error("no bytes available");s.set(t.subarray(r,r+a)),n=new DataView(s.buffer).getUint32(0),i=8*a,e-=a},this.skipBits=function(t){var r;i>t?(n<<=t,i-=t):(t-=i,t-=8*(r=Math.floor(t/8)),e-=r,this.loadWord(),n<<=t,i-=t)},this.readBits=function(t){var r=Math.min(i,t),s=n>>>32-r;return(i-=r)>0?n<<=r:e>0&&this.loadWord(),(r=t-r)>0?s<<r|this.readBits(r):s},this.skipLeadingZeros=function(){var t;for(t=0;t<i;++t)if(0!=(n&2147483648>>>t))return n<<=t,i-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(ae=function(){var t,e,n=0;ae.prototype.init.call(this),this.push=function(i){var r;e?((r=new Uint8Array(e.byteLength+i.data.byteLength)).set(e),r.set(i.data,e.byteLength),e=r):e=i.data;for(var s=e.byteLength;n<s-3;n++)if(1===e[n+2]){t=n+5;break}for(;t<s;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}n+3!==t-2&&this.trigger("data",e.subarray(n+3,t-2));do{t++}while(1!==e[t]&&t<s);n=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(n+3,t-2)),n=t-2,t+=3;break;default:t+=3}e=e.subarray(n),t-=n,n=0},this.reset=function(){e=null,n=0,this.trigger("reset")},this.flush=function(){e&&e.byteLength>3&&this.trigger("data",e.subarray(n+3)),e=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new N,Ae={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(se=function(){var t,e,n,i,r,s,a,A=new ae;se.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&&(e=t.trackId,n=t.pts,i=t.dts,A.push(t))},A.on("data",function(a){var A={trackId:e,pts:n,dts:i,data:a,nalUnitTypeCode:31&a[0]};switch(A.nalUnitTypeCode){case 5:A.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:A.nalUnitType="sei_rbsp",A.escapedRBSP=r(a.subarray(1));break;case 7:A.nalUnitType="seq_parameter_set_rbsp",A.escapedRBSP=r(a.subarray(1)),A.config=s(A.escapedRBSP);break;case 8:A.nalUnitType="pic_parameter_set_rbsp";break;case 9:A.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",A)}),A.on("done",function(){t.trigger("done")}),A.on("partialdone",function(){t.trigger("partialdone")}),A.on("reset",function(){t.trigger("reset")}),A.on("endedtimeline",function(){t.trigger("endedtimeline")}),this.flush=function(){A.flush()},this.partialFlush=function(){A.partialFlush()},this.reset=function(){A.reset()},this.endTimeline=function(){A.endTimeline()},a=function(t,e){var n,i=8,r=8;for(n=0;n<t;n++)0!==r&&(r=(i+e.readExpGolomb()+256)%256),i=0===r?i:r},r=function(t){for(var e,n,i=t.byteLength,r=[],s=1;s<i-2;)0===t[s]&&0===t[s+1]&&3===t[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var a=0;for(s=0;s<e;a++,s++)a===r[0]&&(a++,r.shift()),n[s]=t[a];return n},s=function(t){var e,n,i,r,s,A,o,u,l,c,h,d,f=0,p=0,g=0,m=0,v=[1,1];if(n=(e=new ue(t)).readUnsignedByte(),r=e.readUnsignedByte(),i=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),Ae[n]&&(3===(s=e.readUnsignedExpGolomb())&&e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(h=3!==s?8:12,d=0;d<h;d++)e.readBoolean()&&a(d<6?16:64,e);if(e.skipUnsignedExpGolomb(),0===(A=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===A)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),o=e.readUnsignedExpGolomb(),d=0;d<o;d++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),u=e.readUnsignedExpGolomb(),l=e.readUnsignedExpGolomb(),0===(c=e.readBits(1))&&e.skipBits(1),e.skipBits(1),e.readBoolean()&&(f=e.readUnsignedExpGolomb(),p=e.readUnsignedExpGolomb(),g=e.readUnsignedExpGolomb(),m=e.readUnsignedExpGolomb()),e.readBoolean()&&e.readBoolean()){switch(e.readUnsignedByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[e.readUnsignedByte()<<8|e.readUnsignedByte(),e.readUnsignedByte()<<8|e.readUnsignedByte()]}v&&(v[0],v[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(u+1)-2*f-2*p,height:(2-c)*(l+1)*16-2*g-2*m,sarRatio:v}}}).prototype=new N;var le,ce={H264Stream:se,NalByteStream:ae},he=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],de=function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9],i=t[e+5];return n=n>=0?n:0,(16&i)>>4?n+20:n+10},fe=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},pe={isLikelyAacData:function(t){var e=function t(e,n){return e.length-n<10||e[n]!=="I".charCodeAt(0)||e[n+1]!=="D".charCodeAt(0)||e[n+2]!=="3".charCodeAt(0)?n:t(e,n+=de(e,n))}(t,0);return t.length>=e+2&&255==(255&t[e])&&240==(240&t[e+1])&&16==(22&t[e+1])},parseId3TagSize:de,parseAdtsSize:function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3;return 6144&t[e+3]|i|n},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240==(240&t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5<t.length;){if(255===t[e]&&240==(246&t[e+1]))return he[(60&t[e+2])>>>2];e++}return null},parseAacTimestamp:function(t){var e,n,i;e=10,64&t[5]&&(e+=4,e+=fe(t.subarray(10,14)));do{if((n=fe(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){i=t.subarray(e+10,e+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r}(i,0,r))){var s=i.subarray(r+1),a=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return a*=4,a+=3&s[7]}break}}e+=10,e+=n}while(e<t.byteLength);return null}};(le=function(){var t=new Uint8Array,e=0;le.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.push=function(n){var i,r,s,a,A=0,o=0;for(t.length?(a=t.length,(t=new Uint8Array(n.byteLength+a)).set(t.subarray(0,a)),t.set(n,a)):t=n;t.length-o>=3;)if(t[o]!=="I".charCodeAt(0)||t[o+1]!=="D".charCodeAt(0)||t[o+2]!=="3".charCodeAt(0))if(255!=(255&t[o])||240!=(240&t[o+1]))o++;else{if(t.length-o<7)break;if(o+(A=pe.parseAdtsSize(t,o))>t.length)break;s={type:"audio",data:t.subarray(o,o+A),pts:e,dts:e},this.trigger("data",s),o+=A}else{if(t.length-o<10)break;if(o+(A=pe.parseId3TagSize(t,o))>t.length)break;r={type:"timed-metadata",data:t.subarray(o,o+A)},this.trigger("data",r),o+=A}i=t.length-o,t=i>0?t.subarray(o):new Uint8Array},this.reset=function(){t=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){t=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new N;var ge,me,ve,ye,Be=le,be=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],we=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ce=ce.H264Stream,_e=pe.isLikelyAacData,Te=At,Ee=function(t,e){var n;if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},Se=function(t,e,n,i,r,s){return{start:{dts:t,pts:t+(n-e)},end:{dts:t+(i-e),pts:t+(r-n)},prependedContentDuration:s,baseMediaDecodeTime:t}};(me=function(t,e){var n=[],i=0,r=0,s=0,a=1/0;e=e||{},me.prototype.init.call(this),this.push=function(e){Bt(t,e),t&&be.forEach(function(n){t[n]=e[n]}),n.push(e)},this.setEarliestDts=function(t){r=t},this.setVideoBaseMediaDecodeTime=function(t){a=t},this.setAudioAppendStart=function(t){s=t},this.flush=function(){var A,o,u,l,c,h,d;0!==n.length?(A=ft(n,t,r),t.baseMediaDecodeTime=yt(t,e.keepOriginalTimestamps),d=dt(t,A,s,a),t.samples=pt(A),u=z(gt(A)),n=[],o=X(i,[t]),l=new Uint8Array(o.byteLength+u.byteLength),i++,l.set(o),l.set(u,o.byteLength),vt(t),c=Math.ceil(1024*Te/t.samplerate),A.length&&(h=A.length*c,this.trigger("segmentTimingInfo",Se(lt(t.baseMediaDecodeTime,t.samplerate),A[0].dts,A[0].pts,A[0].dts+h,A[0].pts+h,d||0)),this.trigger("timingInfo",{start:A[0].pts,end:A[0].pts+h})),this.trigger("data",{track:t,boxes:l}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){vt(t),n=[],this.trigger("reset")}}).prototype=new N,(ge=function(t,e){var n,i,r=0,s=[],a=[];e=e||{},ge.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){Bt(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.config,t.sps=[e.data],we.forEach(function(e){t[e]=n[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,t.pps=[e.data]),s.push(e)},this.flush=function(){for(var n,i,A,o,u,l,c,h,d=0;s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=J(s),(A=Z(n))[0][0].keyFrame||((i=this.getGopForFusion_(s[0],t))?(d=i.duration,A.unshift(i),A.byteLength+=i.byteLength,A.nalCount+=i.nalCount,A.pts=i.pts,A.dts=i.dts,A.duration+=i.duration):A=tt(A)),a.length){var f;if(!(f=e.alignGopsAtEnd?this.alignGopsAtEnd_(A):this.alignGopsAtStart_(A)))return this.gopCache_.unshift({gop:A.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");vt(t),A=f}Bt(t,A),t.samples=et(A),u=z(nt(A)),t.baseMediaDecodeTime=yt(t,e.keepOriginalTimestamps),this.trigger("processedGopsInfo",A.map(function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}})),c=A[0],h=A[A.length-1],this.trigger("segmentTimingInfo",Se(t.baseMediaDecodeTime,c.dts,c.pts,h.dts+h.duration,h.pts+h.duration,d)),this.trigger("timingInfo",{start:A[0].pts,end:A[A.length-1].pts+A[A.length-1].duration}),this.gopCache_.unshift({gop:A.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),o=X(r,[t]),l=new Uint8Array(o.byteLength+u.byteLength),r++,l.set(o),l.set(u,o.byteLength),this.trigger("data",{track:t,boxes:l}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),s=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){vt(t),n=void 0,i=void 0},this.getGopForFusion_=function(e){var n,i,r,s,a,A=1/0;for(a=0;a<this.gopCache_.length;a++)r=(s=this.gopCache_[a]).gop,t.pps&&Ee(t.pps[0],s.pps[0])&&t.sps&&Ee(t.sps[0],s.sps[0])&&(r.dts<t.timelineStartInfo.dts||(n=e.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!i||A>n)&&(i=s,A=n));return i?i.gop:null},this.alignGopsAtStart_=function(t){var e,n,i,r,s,A,o,u;for(s=t.byteLength,A=t.nalCount,o=t.duration,e=n=0;e<a.length&&n<t.length&&(i=a[e],r=t[n],i.pts!==r.pts);)r.pts>i.pts?e++:(n++,s-=r.byteLength,A-=r.nalCount,o-=r.duration);return 0===n?t:n===t.length?null:((u=t.slice(n)).byteLength=s,u.duration=o,u.nalCount=A,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(t){var e,n,i,r,s,A,o;for(e=a.length-1,n=t.length-1,s=null,A=!1;e>=0&&n>=0;){if(i=a[e],r=t[n],i.pts===r.pts){A=!0;break}i.pts>r.pts?e--:(e===a.length-1&&(s=n),n--)}if(!A&&null===s)return null;if(0===(o=A?n:s))return t;var u=t.slice(o),l=u.reduce(function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t},{byteLength:0,duration:0,nalCount:0});return u.byteLength=l.byteLength,u.duration=l.duration,u.nalCount=l.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(t){a=t}}).prototype=new N,(ye=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==(t=t||{}).remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,"boolean"==typeof t.keepOriginalTimestamps?this.keepOriginalTimestamps=t.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,ye.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track,this.pendingBoxes.push(t.boxes)),void("audio"===t.track.type&&(this.audioTrack=t.track,this.pendingBoxes.unshift(t.boxes))))}}).prototype=new N,ye.prototype.flush=function(t){var e,n,i,r,s=0,a={captions:[],captionStreams:{},metadata:[],info:{}},A=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(A=this.videoTrack.timelineStartInfo.pts,we.forEach(function(t){a.info[t]=this.videoTrack[t]},this)):this.audioTrack&&(A=this.audioTrack.timelineStartInfo.pts,be.forEach(function(t){a.info[t]=this.audioTrack[t]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,i=q(this.pendingTracks),a.initSegment=new Uint8Array(i.byteLength),a.initSegment.set(i),a.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)a.data.set(this.pendingBoxes[r],s),s+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(e=this.pendingCaptions[r]).startTime=ht(e.startPts,A,this.keepOriginalTimestamps),e.endTime=ht(e.endPts,A,this.keepOriginalTimestamps),a.captionStreams[e.stream]=!0,a.captions.push(e);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=ht(n.pts,A,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),r=0;r<a.captions.length;r++)e=a.captions[r],this.trigger("caption",e);for(r=0;r<a.metadata.length;r++)n=a.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ye.prototype.setRemux=function(t){this.remuxTracks=t},(ve=function(t){var e,n,i=this,r=!0;ve.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new ne.MetadataStream,r.aacStream=new Be,r.audioTimestampRolloverStream=new ne.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ne.TimestampRolloverStream("timed-metadata"),r.adtsStream=new oe,r.coalesceStream=new ye(t,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",function(t){r.aacStream.setTimestamp(t.timeStamp)}),r.aacStream.on("data",function(s){"timed-metadata"!==s.type&&"audio"!==s.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new me(n,t),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new ne.MetadataStream,r.packetStream=new ne.TransportPacketStream,r.parseStream=new ne.TransportParseStream,r.elementaryStream=new ne.ElementaryStream,r.timestampRolloverStream=new ne.TimestampRolloverStream,r.adtsStream=new oe,r.h264Stream=new Ce,r.captionStream=new ne.CaptionStream(t),r.coalesceStream=new ye(t,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(s){var a;if("metadata"===s.type){for(a=s.tracks.length;a--;)e||"video"!==s.tracks[a].type?n||"audio"!==s.tracks[a].type||((n=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(e=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;e&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new ge(e,t),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(e){n&&!t.keepOriginalTimestamps&&(n.timelineStartInfo=e,r.audioSegmentStream.setEarliestDts(e.dts-i.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(t){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new me(n,t),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(t){t.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",t)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;t.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,vt(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),e&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,vt(e),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.setRemux=function(e){var n=this.transmuxPipeline_;t.remux=e,n&&n.coalesceStream&&n.coalesceStream.setRemux(e)},this.alignGopsWith=function(t){e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.getLogTrigger_=function(t){var e=this;return function(n){n.stream=t,e.trigger("log",n)}},this.push=function(t){if(r){var e=_e(t);if(e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),this.transmuxPipeline_)for(var n=Object.keys(this.transmuxPipeline_),i=0;i<n.length;i++){var s=n[i];"headOfPipeline"!==s&&this.transmuxPipeline_[s].on&&this.transmuxPipeline_[s].on("log",this.getLogTrigger_(s))}r=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new N;var ke,Ue={Transmuxer:ve,VideoSegmentStream:ge,AudioSegmentStream:me,AUDIO_PROPERTIES:be,VIDEO_PROPERTIES:we,generateSegmentTimingInfo:Se},Ie=function(t){return t>>>0},Fe=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),e+=String.fromCharCode(t[2]),e+=String.fromCharCode(t[3])},xe=Ie,Qe=function t(e,n){var i,r,s,a,A,o=[];if(!n.length)return null;for(i=0;i<e.byteLength;)r=xe(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]),s=Fe(e.subarray(i+4,i+8)),a=r>1?i+r:e.byteLength,s===n[0]&&(1===n.length?o.push(e.subarray(i+8,a)):(A=t(e.subarray(i+8,a),n.slice(1))).length&&(o=o.concat(A))),i=a;return o},Le=Ie,Oe=function(t){var e={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:Le(t[4]<<24|t[5]<<16|t[6]<<8|t[7])};return 1===e.version&&(e.baseMediaDecodeTime*=Math.pow(2,32),e.baseMediaDecodeTime+=Le(t[8]<<24|t[9]<<16|t[10]<<8|t[11])),e},De=function(t){return{isLeading:(12&t[0])>>>2,dependsOn:3&t[0],isDependedOn:(192&t[1])>>>6,hasRedundancy:(48&t[1])>>>4,paddingValue:(14&t[1])>>>1,isNonSyncSample:1&t[1],degradationPriority:t[2]<<8|t[3]}},Pe=function(t){var e,n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},i=new DataView(t.buffer,t.byteOffset,t.byteLength),r=1&n.flags[2],s=4&n.flags[2],a=1&n.flags[1],A=2&n.flags[1],o=4&n.flags[1],u=8&n.flags[1],l=i.getUint32(4),c=8;for(r&&(n.dataOffset=i.getInt32(c),c+=4),s&&l&&(e={flags:De(t.subarray(c,c+4))},c+=4,a&&(e.duration=i.getUint32(c),c+=4),A&&(e.size=i.getUint32(c),c+=4),u&&(1===n.version?e.compositionTimeOffset=i.getInt32(c):e.compositionTimeOffset=i.getUint32(c),c+=4),n.samples.push(e),l--);l--;)e={},a&&(e.duration=i.getUint32(c),c+=4),A&&(e.size=i.getUint32(c),c+=4),o&&(e.flags=De(t.subarray(c,c+4)),c+=4),u&&(1===n.version?e.compositionTimeOffset=i.getInt32(c):e.compositionTimeOffset=i.getUint32(c),c+=4),n.samples.push(e);return n},He=function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],s=2&i.flags[2],a=8&i.flags[2],A=16&i.flags[2],o=32&i.flags[2],u=65536&i.flags[0],l=131072&i.flags[0];return e=8,r&&(e+=4,i.baseDataOffset=n.getUint32(12),e+=4),s&&(i.sampleDescriptionIndex=n.getUint32(e),e+=4),a&&(i.defaultSampleDuration=n.getUint32(e),e+=4),A&&(i.defaultSampleSize=n.getUint32(e),e+=4),o&&(i.defaultSampleFlags=n.getUint32(e)),u&&(i.durationIsEmpty=!0),!r&&l&&(i.baseDataOffsetIsMoof=!0),i},Re=_t,Me=Pt.CaptionStream,Ne=function(t,e){for(var n=t,i=0;i<e.length;i++){var r=e[i];if(n<r.size)return r;n-=r.size}return null},Ke=function(t,e){var n=Qe(t,["moof","traf"]),i={},r=[];return Qe(t,["mdat"]).forEach(function(t,e){var i=n[e];r.push({mdat:t,traf:i})}),r.forEach(function(t){var n,r=t.mdat,s=t.traf,a=Qe(s,["tfhd"]),A=He(a[0]),o=A.trackId,u=Qe(s,["tfdt"]),l=u.length>0?Oe(u[0]).baseMediaDecodeTime:0,c=Qe(s,["trun"]);e===o&&c.length>0&&(n=function(t,e,n){var i,r,s,a,A=new DataView(t.buffer,t.byteOffset,t.byteLength),o={logs:[],seiNals:[]};for(r=0;r+4<t.length;r+=s)if(s=A.getUint32(r),r+=4,!(s<=0))switch(31&t[r]){case 6:var u=t.subarray(r+1,r+1+s),l=Ne(r,e);if(i={nalUnitType:"sei_rbsp",size:s,data:u,escapedRBSP:Re(u),trackId:n},l)i.pts=l.pts,i.dts=l.dts,a=l;else{if(!a){o.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=a.pts,i.dts=a.dts}o.seiNals.push(i)}return o}(r,function(t,e,n){var i=e,r=n.defaultSampleDuration||0,s=n.defaultSampleSize||0,a=n.trackId,A=[];return t.forEach(function(t){var e=Pe(t).samples;e.forEach(function(t){void 0===t.duration&&(t.duration=r),void 0===t.size&&(t.size=s),t.trackId=a,t.dts=i,void 0===t.compositionTimeOffset&&(t.compositionTimeOffset=0),t.pts=i+t.compositionTimeOffset,i+=t.duration}),A=A.concat(e)}),A}(c,l,A),o),i[o]||(i[o]={seiNals:[],logs:[]}),i[o].seiNals=i[o].seiNals.concat(n.seiNals),i[o].logs=i[o].logs.concat(n.logs))}),i},je=function(){var t,e,n,i,r,s,a=!1;this.isInitialized=function(){return a},this.init=function(e){t=new Me,a=!0,s=!!e&&e.isPartial,t.on("data",function(t){t.startTime=t.startPts/i,t.endTime=t.endPts/i,r.captions.push(t),r.captionStreams[t.stream]=!0}),t.on("log",function(t){r.logs.push(t)})},this.isNewInit=function(t,e){return!(t&&0===t.length||e&&"object"==typeof e&&0===Object.keys(e).length||n===t[0]&&i===e[n])},this.parse=function(t,s,a){var A;if(!this.isInitialized())return null;if(!s||!a)return null;if(this.isNewInit(s,a))n=s[0],i=a[n];else if(null===n||!i)return e.push(t),null;for(;e.length>0;){var o=e.shift();this.parse(o,s,a)}return(A=function(t,e,n){if(null===e)return null;var i=Ke(t,e)[e]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}}(t,n,i))&&A.logs&&(r.logs=r.logs.concat(A.logs)),null!==A&&A.seiNals?(this.pushNals(A.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;s?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){e=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Ve=Ie,Ge=function(t){return("00"+t.toString(16)).slice(-2)},$e=function(t,e){var n,i,r;return n=Qe(e,["moof","traf"]),i=[].concat.apply([],n.map(function(e){return Qe(e,["tfhd"]).map(function(n){var i,r,s;return i=Ve(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),r=t[i]||9e4,(s="number"!=typeof(s=Qe(e,["tfdt"]).map(function(t){var e,n;return e=t[0],n=Ve(t[4]<<24|t[5]<<16|t[6]<<8|t[7]),1===e&&(n*=Math.pow(2,32),n+=Ve(t[8]<<24|t[9]<<16|t[10]<<8|t[11])),n})[0])||isNaN(s)?1/0:s)/r})})),r=Math.min.apply(null,i),isFinite(r)?r:0},We=function(t){var e=[];return Qe(t,["moov","trak"]).forEach(function(t){var n,i,r={},s=Qe(t,["tkhd"])[0];s&&(i=(n=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0),r.id=0===i?n.getUint32(12):n.getUint32(20));var a=Qe(t,["mdia","hdlr"])[0];if(a){var A=Fe(a.subarray(8,12));r.type="vide"===A?"video":"soun"===A?"audio":A}var o=Qe(t,["mdia","minf","stbl","stsd"])[0];if(o){var u=o.subarray(8);r.codec=Fe(u.subarray(4,8));var l,c=Qe(u,[r.codec])[0];c&&(/^[a-z]vc[1-9]$/i.test(r.codec)?(l=c.subarray(78),"avcC"===Fe(l.subarray(4,8))&&l.length>11?(r.codec+=".",r.codec+=Ge(l[9]),r.codec+=Ge(l[10]),r.codec+=Ge(l[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(l=c.subarray(28),"esds"===Fe(l.subarray(4,8))&&l.length>20&&0!==l[19]?(r.codec+="."+Ge(l[19]),r.codec+="."+Ge(l[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=Qe(t,["mdia","mdhd"])[0];h&&(r.timescale=ke(h)),e.push(r)}),e},ze=(ke=function(t){var e=0===t[0]?12:20;return Ve(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])},function(t){var e=31&t[1];return e<<=8,e|=t[2]}),Xe=function(t){return!!(64&t[1])},qe=function(t){var e=0;return(48&t[3])>>>4>1&&(e+=t[4]+1),e},Ye=function(t){switch(t){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Je={parseType:function(t,e){var n=ze(t);return 0===n?"pat":n===e?"pmt":e?"pes":null},parsePat:function(t){var e=Xe(t),n=4+qe(t);return e&&(n+=t[n]+1),(31&t[n+10])<<8|t[n+11]},parsePmt:function(t){var e={},n=Xe(t),i=4+qe(t);if(n&&(i+=t[i]+1),1&t[i+5]){var r;r=3+((15&t[i+1])<<8|t[i+2])-4;for(var s=12+((15&t[i+10])<<8|t[i+11]);s<r;){var a=i+s;e[(31&t[a+1])<<8|t[a+2]]=t[a],s+=5+((15&t[a+3])<<8|t[a+4])}return e}},parsePayloadUnitStartIndicator:Xe,parsePesType:function(t,e){switch(e[ze(t)]){case Ht.H264_STREAM_TYPE:return"video";case Ht.ADTS_STREAM_TYPE:return"audio";case Ht.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!Xe(t))return null;var e=4+qe(t);if(e>=t.byteLength)return null;var n,i=null;return 192&(n=t[e+7])&&((i={}).pts=(14&t[e+9])<<27|(255&t[e+10])<<20|(254&t[e+11])<<12|(255&t[e+12])<<5|(254&t[e+13])>>>3,i.pts*=4,i.pts+=(6&t[e+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&t[e+14])<<27|(255&t[e+15])<<20|(254&t[e+16])<<12|(255&t[e+17])<<5|(254&t[e+18])>>>3,i.dts*=4,i.dts+=(6&t[e+18])>>>1)),i},videoPacketContainsKeyFrame:function(t){for(var e=4+qe(t),n=t.subarray(e),i=0,r=0,s=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===Ye(31&n[r+3])&&(s=!0);do{i++}while(1!==n[i]&&i<n.length);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Ye(31&n[r+3])&&(s=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Ye(31&n[r+3])&&(s=!0),s}},Ze=jt,tn={};tn.ts=Je,tn.aac=pe;var en=At,nn=function(t,e,n){for(var i,r,s,a,A=0,o=188,u=!1;o<=t.byteLength;)if(71!==t[A]||71!==t[o]&&o!==t.byteLength)A++,o++;else{switch(i=t.subarray(A,o),tn.ts.parseType(i,e.pid)){case"pes":r=tn.ts.parsePesType(i,e.table),s=tn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(a=tn.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),u=!0)}if(u)break;A+=188,o+=188}for(A=(o=t.byteLength)-188,u=!1;A>=0;)if(71!==t[A]||71!==t[o]&&o!==t.byteLength)A--,o--;else{switch(i=t.subarray(A,o),tn.ts.parseType(i,e.pid)){case"pes":r=tn.ts.parsePesType(i,e.table),s=tn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(a=tn.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),u=!0)}if(u)break;A-=188,o-=188}},rn=function(t,e,n){for(var i,r,s,a,A,o,u,l=0,c=188,h=!1,d={data:[],size:0};c<t.byteLength;)if(71!==t[l]||71!==t[c])l++,c++;else{switch(i=t.subarray(l,c),tn.ts.parseType(i,e.pid)){case"pes":if(r=tn.ts.parsePesType(i,e.table),s=tn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(s&&!h&&(a=tn.ts.parsePesTime(i))&&(a.type="video",n.video.push(a),h=!0),!n.firstKeyFrame)){if(s&&0!==d.size){for(A=new Uint8Array(d.size),o=0;d.data.length;)u=d.data.shift(),A.set(u,o),o+=u.byteLength;if(tn.ts.videoPacketContainsKeyFrame(A)){var f=tn.ts.parsePesTime(A);f?(n.firstKeyFrame=f,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}d.size=0}d.data.push(i),d.size+=i.byteLength}}if(h&&n.firstKeyFrame)break;l+=188,c+=188}for(l=(c=t.byteLength)-188,h=!1;l>=0;)if(71!==t[l]||71!==t[c])l--,c--;else{switch(i=t.subarray(l,c),tn.ts.parseType(i,e.pid)){case"pes":r=tn.ts.parsePesType(i,e.table),s=tn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&s&&(a=tn.ts.parsePesTime(i))&&(a.type="video",n.video.push(a),h=!0)}if(h)break;l-=188,c-=188}},sn=function(t){var e={pid:null,table:null},n={};for(var i in function(t,e){for(var n,i=0,r=188;r<t.byteLength;)if(71!==t[i]||71!==t[r])i++,r++;else{switch(n=t.subarray(i,r),tn.ts.parseType(n,e.pid)){case"pat":e.pid=tn.ts.parsePat(n);break;case"pmt":var s=tn.ts.parsePmt(n);e.table=e.table||{},Object.keys(s).forEach(function(t){e.table[t]=s[t]})}i+=188,r+=188}}(t,e),e.table){if(e.table.hasOwnProperty(i))switch(e.table[i]){case Ht.H264_STREAM_TYPE:n.video=[],rn(t,e,n),0===n.video.length&&delete n.video;break;case Ht.ADTS_STREAM_TYPE:n.audio=[],nn(t,e,n),0===n.audio.length&&delete n.audio}}return n},an=function(t,e){var n;return(n=tn.aac.isLikelyAacData(t)?function(t){for(var e,n=!1,i=0,r=null,s=null,a=0,A=0;t.length-A>=3;){switch(tn.aac.parseType(t,A)){case"timed-metadata":if(t.length-A<10){n=!0;break}if((a=tn.aac.parseId3TagSize(t,A))>t.length){n=!0;break}null===s&&(e=t.subarray(A,A+a),s=tn.aac.parseAacTimestamp(e)),A+=a;break;case"audio":if(t.length-A<7){n=!0;break}if((a=tn.aac.parseAdtsSize(t,A))>t.length){n=!0;break}null===r&&(e=t.subarray(A,A+a),r=tn.aac.parseSampleRate(e)),i++,A+=a;break;default:A++}if(n)return null}if(null===r||null===s)return null;var o=en/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*i*o,pts:s+1024*i*o}]}}(t):sn(t))&&(n.audio||n.video)?(function(t,e){if(t.audio&&t.audio.length){var n=e;(void 0===n||isNaN(n))&&(n=t.audio[0].dts),t.audio.forEach(function(t){t.dts=Ze(t.dts,n),t.pts=Ze(t.pts,n),t.dtsTime=t.dts/en,t.ptsTime=t.pts/en})}if(t.video&&t.video.length){var i=e;if((void 0===i||isNaN(i))&&(i=t.video[0].dts),t.video.forEach(function(t){t.dts=Ze(t.dts,i),t.pts=Ze(t.pts,i),t.dtsTime=t.dts/en,t.ptsTime=t.pts/en}),t.firstKeyFrame){var r=t.firstKeyFrame;r.dts=Ze(r.dts,i),r.pts=Ze(r.pts,i),r.dtsTime=r.dts/en,r.ptsTime=r.pts/en}}}(n,e),n):null},An=function(){function t(t,e){this.options=e||{},this.self=t,this.init()}var e=t.prototype;return e.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Ue.Transmuxer(this.options),function(t,e){e.on("data",function(e){var n=e.initSegment;e.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=e.data;e.data=i.buffer,t.postMessage({action:"data",segment:e,byteOffset:i.byteOffset,byteLength:i.byteLength},[e.data])}),e.on("done",function(e){t.postMessage({action:"done"})}),e.on("gopInfo",function(e){t.postMessage({action:"gopInfo",gopInfo:e})}),e.on("videoSegmentTimingInfo",function(e){var n={start:{decode:ut(e.start.dts),presentation:ut(e.start.pts)},end:{decode:ut(e.end.dts),presentation:ut(e.end.pts)},baseMediaDecodeTime:ut(e.baseMediaDecodeTime)};e.prependedContentDuration&&(n.prependedContentDuration=ut(e.prependedContentDuration)),t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})}),e.on("audioSegmentTimingInfo",function(e){var n={start:{decode:ut(e.start.dts),presentation:ut(e.start.pts)},end:{decode:ut(e.end.dts),presentation:ut(e.end.pts)},baseMediaDecodeTime:ut(e.baseMediaDecodeTime)};e.prependedContentDuration&&(n.prependedContentDuration=ut(e.prependedContentDuration)),t.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})}),e.on("id3Frame",function(e){t.postMessage({action:"id3Frame",id3Frame:e})}),e.on("caption",function(e){t.postMessage({action:"caption",caption:e})}),e.on("trackinfo",function(e){t.postMessage({action:"trackinfo",trackInfo:e})}),e.on("audioTimingInfo",function(e){t.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ut(e.start),end:ut(e.end)}})}),e.on("videoTimingInfo",function(e){t.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ut(e.start),end:ut(e.end)}})}),e.on("log",function(e){t.postMessage({action:"log",log:e})})}(this.self,this.transmuxer)},e.pushMp4Captions=function(t){this.captionParser||(this.captionParser=new je,this.captionParser.init());var e=new Uint8Array(t.data,t.byteOffset,t.byteLength),n=this.captionParser.parse(e,t.trackIds,t.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:e.buffer},[e.buffer])},e.probeMp4StartTime=function(t){var e=t.timescales,n=t.data,i=$e(e,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},e.probeMp4Tracks=function(t){var e=t.data,n=We(e);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:e},[e.buffer])},e.probeTs=function(t){var e=t.data,n=t.baseStartTime,i="number"!=typeof n||isNaN(n)?void 0:n*At,r=an(e,i),s=null;r&&((s={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(s.videoStart=r.video[0].ptsTime),s.hasAudio&&(s.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:s,data:e},[e.buffer])},e.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},e.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},e.push=function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)},e.reset=function(){this.transmuxer.reset()},e.setTimestampOffset=function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ot(e)))},e.setAudioAppendStart=function(t){this.transmuxer.setAudioAppendStart(Math.ceil(ot(t.appendStart)))},e.setRemux=function(t){this.transmuxer.setRemux(t.remux)},e.flush=function(t){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},e.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},e.alignGopsWith=function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())},t}();self.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new An(self,t.data.options):(this.messageHandlers||(this.messageHandlers=new An(self)),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}}))),no=function(t){var e=t.transmuxer,n=t.bytes,i=t.audioAppendStart,r=t.gopsToAlignWith,s=t.remux,a=t.onData,A=t.onTrackInfo,o=t.onAudioTimingInfo,u=t.onVideoTimingInfo,l=t.onVideoSegmentTimingInfo,c=t.onAudioSegmentTimingInfo,h=t.onId3,d=t.onCaptions,f=t.onDone,p=t.onEndedTimeline,g=t.onTransmuxerLog,m=t.isEndOfTimeline,v={buffer:[]},y=m;if(e.onmessage=function(n){e.currentTransmux===t&&("data"===n.data.action&&function(t,e,n){var i=t.data.segment,r=i.type,s=i.initSegment,a=i.captions,A=i.captionStreams,o=i.metadata,u=i.videoFrameDtsTime,l=i.videoFramePtsTime;e.buffer.push({captions:a,captionStreams:A,metadata:o});var c=t.data.segment.boxes||{data:t.data.segment.data},h={type:r,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};void 0!==u&&(h.videoFrameDtsTime=u),void 0!==l&&(h.videoFramePtsTime=l),n(h)}(n,v,a),"trackinfo"===n.data.action&&A(n.data.trackInfo),"gopInfo"===n.data.action&&function(t,e){e.gopInfo=t.data.gopInfo}(n,v),"audioTimingInfo"===n.data.action&&o(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&u(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&l(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&c(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&d(n.data.caption),"endedtimeline"===n.data.action&&(y=!1,p()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(y||(e.onmessage=null,function(t){var e=t.transmuxedData,n=t.callback;e.buffer=[],n(e)}({transmuxedData:v,callback:f}),io(e))))},i&&e.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==s&&e.postMessage({action:"setRemux",remux:s}),n.byteLength){var B=n instanceof ArrayBuffer?n:n.buffer,b=n instanceof ArrayBuffer?0:n.byteOffset;e.postMessage({action:"push",data:B,byteOffset:b,byteLength:n.byteLength},[B])}m&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},io=function(t){t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),"function"==typeof t.currentTransmux?t.currentTransmux():no(t.currentTransmux))},ro=function(t,e){t.postMessage({action:e}),io(t)},so=function(t,e){if(!e.currentTransmux)return e.currentTransmux=t,void ro(e,t);e.transmuxQueue.push(ro.bind(null,e,t))},ao=function(t){if(!t.transmuxer.currentTransmux)return t.transmuxer.currentTransmux=t,void no(t);t.transmuxer.transmuxQueue.push(t)},Ao=function(t){so("reset",t)},oo=function(t){var e=new eo;e.currentTransmux=null,e.transmuxQueue=[];var n=e.terminate;return e.terminate=function(){return e.currentTransmux=null,e.transmuxQueue.length=0,n.call(e)},e.postMessage({action:"init",options:t}),e},uo=function(t){var e=t.transmuxer,n=t.endAction||t.action,i=t.callback,r=c()({},t,{endAction:null,transmuxer:null,callback:null});if(e.addEventListener("message",function r(s){s.data.action===n&&(e.removeEventListener("message",r),s.data.data&&(s.data.data=new Uint8Array(s.data.data,t.byteOffset||0,t.byteLength||s.data.data.byteLength),t.data&&(t.data=s.data.data)),i(s.data))}),t.data){var s=t.data instanceof ArrayBuffer;r.byteOffset=s?0:t.data.byteOffset,r.byteLength=t.data.byteLength;var a=[s?t.data:t.data.buffer];e.postMessage(r,a)}else e.postMessage(r)},lo=2,co=-101,ho=-102,fo=function(t){t.forEach(function(t){t.abort()})},po=function(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:co,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:ho,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:lo,xhr:e}:"arraybuffer"===e.responseType&&0===e.response.byteLength?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:lo,xhr:e}:null},go=function(t,e,n){return function(i,r){var s=r.response,a=po(i,r);if(a)return n(a,t);if(16!==s.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:lo,xhr:r},t);for(var A=new DataView(s),o=new Uint32Array([A.getUint32(0),A.getUint32(4),A.getUint32(8),A.getUint32(12)]),u=0;u<e.length;u++)e[u].bytes=o;return n(null,t)}},mo=function(t,e){var n=be(t.map.bytes);if("mp4"!==n){var i=t.map.resolvedUri||t.map.uri;return e({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+i,code:lo})}uo({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:function(n){var i=n.tracks,r=n.data;return t.map.bytes=r,i.forEach(function(e){t.map.tracks=t.map.tracks||{},t.map.tracks[e.type]||(t.map.tracks[e.type]=e,"number"==typeof e.id&&e.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[e.id]=e.timescale))}),e(null)}})},vo=function(t){var e=t.segment,n=t.finishProcessingFn,i=t.responseType;return function(t,r){var s=po(t,r);if(s)return n(s,e);var a="arraybuffer"!==i&&r.responseText?function(t){for(var e=new Uint8Array(new ArrayBuffer(t.length)),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e.buffer}(r.responseText.substring(e.lastReachedChar||0)):r.response;return e.stats=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}}(r),e.key?e.encryptedBytes=new Uint8Array(a):e.bytes=new Uint8Array(a),n(null,e)}},yo=function(t){var e=t.segment,n=t.bytes,i=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,A=t.id3Fn,o=t.captionsFn,u=t.isEndOfTimeline,l=t.endedTimelineFn,c=t.dataFn,h=t.doneFn,d=t.onTransmuxerLog,f=e.map&&e.map.tracks||{},p=Boolean(f.audio&&f.video),g=r.bind(null,e,"audio","start"),m=r.bind(null,e,"audio","end"),v=r.bind(null,e,"video","start"),y=r.bind(null,e,"video","end");uo({action:"probeTs",transmuxer:e.transmuxer,data:n,baseStartTime:e.baseStartTime,callback:function(t){e.bytes=n=t.data;var r=t.result;r&&(i(e,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:p}),i=null,r.hasAudio&&!p&&g(r.audioStart),r.hasVideo&&v(r.videoStart),g=null,v=null),ao({bytes:n,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:p,onData:function(t){t.type="combined"===t.type?"video":t.type,c(e,t)},onTrackInfo:function(t){i&&(p&&(t.isMuxed=!0),i(e,t))},onAudioTimingInfo:function(t){g&&void 0!==t.start&&(g(t.start),g=null),m&&void 0!==t.end&&m(t.end)},onVideoTimingInfo:function(t){v&&void 0!==t.start&&(v(t.start),v=null),y&&void 0!==t.end&&y(t.end)},onVideoSegmentTimingInfo:function(t){s(t)},onAudioSegmentTimingInfo:function(t){a(t)},onId3:function(t,n){A(e,t,n)},onCaptions:function(t){o(e,[t])},isEndOfTimeline:u,onEndedTimeline:function(){l()},onTransmuxerLog:d,onDone:function(t){h&&(t.type="combined"===t.type?"video":t.type,h(null,e,t))}})}})},Bo=function(t){var e=t.segment,n=t.bytes,i=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,A=t.id3Fn,o=t.captionsFn,u=t.isEndOfTimeline,l=t.endedTimelineFn,c=t.dataFn,h=t.doneFn,d=t.onTransmuxerLog,f=new Uint8Array(n);if(function(t){return re(t,["moof"]).length>0}(f)){e.isFmp4=!0;var p=e.map.tracks,g={isFmp4:!0,hasVideo:!!p.video,hasAudio:!!p.audio};p.audio&&p.audio.codec&&"enca"!==p.audio.codec&&(g.audioCodec=p.audio.codec),p.video&&p.video.codec&&"encv"!==p.video.codec&&(g.videoCodec=p.video.codec),p.video&&p.audio&&(g.isMuxed=!0),i(e,g);var m=function(t){c(e,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),t&&t.length&&o(e,t),h(null,e,{})};uo({action:"probeMp4StartTime",timescales:e.map.timescales,data:f,transmuxer:e.transmuxer,callback:function(t){var i=t.data,s=t.startTime;n=i.buffer,e.bytes=f=i,g.hasAudio&&!g.isMuxed&&r(e,"audio","start",s),g.hasVideo&&r(e,"video","start",s),p.video&&i.byteLength&&e.transmuxer?uo({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:f,timescales:e.map.timescales,trackIds:[p.video.id],callback:function(t){n=t.data.buffer,e.bytes=f=t.data,t.logs.forEach(function(t){d(Ra.mergeOptions(t,{stream:"mp4CaptionParser"}))}),m(t.captions)}}):m()}})}else if(e.transmuxer){if(void 0===e.container&&(e.container=be(f)),"ts"!==e.container&&"aac"!==e.container)return i(e,{hasAudio:!1,hasVideo:!1}),void h(null,e,{});yo({segment:e,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:A,captionsFn:o,isEndOfTimeline:u,endedTimelineFn:l,dataFn:c,doneFn:h,onTransmuxerLog:d})}else h(null,e,{})},bo=function(t,e){var n,i=t.id,r=t.key,s=t.encryptedBytes,a=t.decryptionWorker;a.addEventListener("message",function t(n){if(n.data.source===i){a.removeEventListener("message",t);var r=n.data.decrypted;e(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}}),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),a.postMessage(DA({source:i,encrypted:s,key:n,iv:r.iv}),[s.buffer,n.buffer])},wo=function(t){var e=t.activeXhrs,n=t.decryptionWorker,i=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,A=t.id3Fn,o=t.captionsFn,u=t.isEndOfTimeline,l=t.endedTimelineFn,c=t.dataFn,h=t.doneFn,d=t.onTransmuxerLog,f=0,p=!1;return function(t,g){if(!p){if(t)return p=!0,fo(e),h(t,g);if((f+=1)===e.length){var m=function(){if(g.encryptedBytes)return function(t){var e=t.decryptionWorker,n=t.segment,i=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,A=t.id3Fn,o=t.captionsFn,u=t.isEndOfTimeline,l=t.endedTimelineFn,c=t.dataFn,h=t.doneFn,d=t.onTransmuxerLog;bo({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:e},function(t){n.bytes=t,Bo({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:A,captionsFn:o,isEndOfTimeline:u,endedTimelineFn:l,dataFn:c,doneFn:h,onTransmuxerLog:d})})}({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:A,captionsFn:o,isEndOfTimeline:u,endedTimelineFn:l,dataFn:c,doneFn:h,onTransmuxerLog:d});Bo({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:A,captionsFn:o,isEndOfTimeline:u,endedTimelineFn:l,dataFn:c,doneFn:h,onTransmuxerLog:d})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return bo({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},function(t){g.map.bytes=t,mo(g,function(t){if(t)return fo(e),h(t,g);m()})});m()}}}},Co=function(t){var e=t.segment,n=t.progressFn;return t.trackInfoFn,t.timingInfoFn,t.videoSegmentTimingInfoFn,t.audioSegmentTimingInfoFn,t.id3Fn,t.captionsFn,t.isEndOfTimeline,t.endedTimelineFn,t.dataFn,function(t){if(!t.target.aborted)return e.stats=Ra.mergeOptions(e.stats,function(t){var e=t.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return n.bytesReceived=t.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n}(t)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),n(t,e)}},_o=function(t){var e=t.xhr,n=t.xhrOptions,i=t.decryptionWorker,r=t.segment,s=t.abortFn,a=t.progressFn,A=t.trackInfoFn,o=t.timingInfoFn,u=t.videoSegmentTimingInfoFn,l=t.audioSegmentTimingInfoFn,c=t.id3Fn,h=t.captionsFn,d=t.isEndOfTimeline,f=t.endedTimelineFn,p=t.dataFn,g=t.doneFn,m=t.onTransmuxerLog,v=[],y=wo({activeXhrs:v,decryptionWorker:i,trackInfoFn:A,timingInfoFn:o,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:l,id3Fn:c,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:f,dataFn:p,doneFn:g,onTransmuxerLog:m});if(r.key&&!r.key.bytes){var B=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&B.push(r.map.key);var b=e(Ra.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),go(r,B,y));v.push(b)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var w=e(Ra.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),go(r,[r.map.key],y));v.push(w)}var C=e(Ra.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:xA(r.map)}),function(t){var e=t.segment,n=t.finishProcessingFn;return function(t,i){var r=po(t,i);if(r)return n(r,e);var s=new Uint8Array(i.response);if(e.map.key)return e.map.encryptedBytes=s,n(null,e);e.map.bytes=s,mo(e,function(t){if(t)return t.xhr=i,t.status=i.status,n(t,e);n(null,e)})}}({segment:r,finishProcessingFn:y}));v.push(C)}var _=Ra.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:xA(r)}),T=e(_,vo({segment:r,finishProcessingFn:y,responseType:_.responseType}));T.addEventListener("progress",Co({segment:r,progressFn:a,trackInfoFn:A,timingInfoFn:o,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:l,id3Fn:c,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:f,dataFn:p})),v.push(T);var E={};return v.forEach(function(t){t.addEventListener("loadend",function(t){var e=t.loadendState,n=t.abortFn;return function(t){t.target.aborted&&n&&!e.calledAbortFn&&(n(),e.calledAbortFn=!0)}}({loadendState:E,abortFn:s}))}),function(){return fo(v)}},To=Va("CodecUtils"),Eo=function(t,e){var n=e.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&n.AUDIO&&t.mediaGroups.AUDIO[n.AUDIO]},So=function(t){var e={};return t.forEach(function(t){var n=t.mediaType,i=t.type,r=t.details;e[n]=e[n]||[],e[n].push(V(""+i+r))}),Object.keys(e).forEach(function(t){if(e[t].length>1)return To("multiple "+t+" codecs found as attributes: "+e[t].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(e[t]=null);e[t]=e[t][0]}),e},ko=function(t){var e=0;return t.audio&&e++,t.video&&e++,e},Uo=function(t,e){var n=e.attributes||{},i=So(function(t){var e=t.attributes||{};if(e.CODECS)return G(e.CODECS)}(e)||[]);if(Eo(t,e)&&!i.audio&&!function(t,e){if(!Eo(t,e))return!0;var n=e.attributes||{},i=t.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1}(t,e)){var r=So(function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var n=t.mediaGroups.AUDIO[e];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return G(r.playlists[0].attributes.CODECS)}return null}(t,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Io=Va("PlaylistSelector"),Fo=function(t){if(t&&t.playlist){var e=t.playlist;return JSON.stringify({id:e.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:e.attributes&&e.attributes.CODECS||""})}},xo=function(t,e){if(!t)return"";var n=A.a.getComputedStyle(t);return n?n[e]:""},Qo=function(t,e){var n=t.slice();t.sort(function(t,i){var r=e(t,i);return 0===r?n.indexOf(t)-n.indexOf(i):r})},Lo=function(t,e){var n,i;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||A.a.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),n-(i=i||A.a.Number.MAX_VALUE)},Oo=function(t,e,n,i,r,s){if(t){var a={bandwidth:e,width:n,height:i,limitRenditionByPlayerDimensions:r},o=t.playlists;fA.isAudioOnly(t)&&(o=s.getAudioTrackPlaylists_(),a.audioOnly=!0);var u=o.map(function(t){var e=t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width,n=t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height;return{bandwidth:t.attributes&&t.attributes.BANDWIDTH||A.a.Number.MAX_VALUE,width:e,height:n,playlist:t}});Qo(u,function(t,e){return t.bandwidth-e.bandwidth});var l=(u=u.filter(function(t){return!fA.isIncompatible(t.playlist)})).filter(function(t){return fA.isEnabled(t.playlist)});l.length||(l=u.filter(function(t){return!fA.isDisabled(t.playlist)}));var c=l.filter(function(t){return t.bandwidth*qA.BANDWIDTH_VARIANCE<e}),h=c[c.length-1],d=c.filter(function(t){return t.bandwidth===h.bandwidth})[0];if(!1===r){var f=d||l[0]||u[0];if(f&&f.playlist){var p="sortedPlaylistReps";return d&&(p="bandwidthBestRep"),l[0]&&(p="enabledPlaylistReps"),Io("choosing "+Fo(f)+" using "+p+" with options",a),f.playlist}return Io("could not choose a playlist with options",a),null}var g=c.filter(function(t){return t.width&&t.height});Qo(g,function(t,e){return t.width-e.width});var m=g.filter(function(t){return t.width===n&&t.height===i});h=m[m.length-1];var v,y,B,b=m.filter(function(t){return t.bandwidth===h.bandwidth})[0];b||(y=(v=g.filter(function(t){return t.width>n||t.height>i})).filter(function(t){return t.width===v[0].width&&t.height===v[0].height}),h=y[y.length-1],B=y.filter(function(t){return t.bandwidth===h.bandwidth})[0]);var w=B||b||d||l[0]||u[0];if(w&&w.playlist){var C="sortedPlaylistReps";return B?C="resolutionPlusOneRep":b?C="resolutionBestRep":d?C="bandwidthBestRep":l[0]&&(C="enabledPlaylistReps"),Io("choosing "+Fo(w)+" using "+C+" with options",a),w.playlist}return Io("could not choose a playlist with options",a),null}},Do=function(){var t=this.useDevicePixelRatio&&A.a.devicePixelRatio||1;return Oo(this.playlists.master,this.systemBandwidth,parseInt(xo(this.tech_.el(),"width"),10)*t,parseInt(xo(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},Po=function(t){var e=t.inbandTextTracks,n=t.metadataArray,i=t.timestampOffset,r=t.videoDuration;if(n){var s=A.a.WebKitDataCue||A.a.VTTCue,a=e.metadataTrack_;if(a&&(n.forEach(function(t){var e=t.cueTime+i;!("number"!=typeof e||A.a.isNaN(e)||e<0)&&e<1/0&&t.frames.forEach(function(t){var n=new s(e,e,t.value||t.url||t.data||"");n.frame=t,n.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return Ra.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return Ra.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return Ra.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(n),a.addCue(n)})}),a.cues&&a.cues.length)){for(var o=a.cues,u=[],l=0;l<o.length;l++)o[l]&&u.push(o[l]);var c=u.reduce(function(t,e){var n=t[e.startTime]||[];return n.push(e),t[e.startTime]=n,t},{}),h=Object.keys(c).sort(function(t,e){return Number(t)-Number(e)});h.forEach(function(t,e){var n=c[t],i=Number(h[e+1])||r;n.forEach(function(t){t.endTime=i})})}}},Ho=function(t,e,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=t&&r.endTime<=e&&n.removeCue(r)},Ro=function(t){return"number"==typeof t&&isFinite(t)},Mo=function(t){var e=t.startOfSegment,n=t.duration,i=t.segment,r=t.part,s=t.playlist,a=s.mediaSequence,A=s.id,o=s.segments,u=void 0===o?[]:o,l=t.mediaIndex,c=t.partIndex,h=t.timeline,d=u.length-1,f="mediaIndex/partIndex increment";t.getMediaInfoForTime?f="getMediaInfoForTime ("+t.getMediaInfoForTime+")":t.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)");var p="number"==typeof c,g=t.segment.uri?"segment":"pre-segment",m=p?tA({preloadSegment:i})-1:0;return g+" ["+(a+l)+"/"+(a+d)+"]"+(p?" part ["+c+"/"+m+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(p?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+e+"] duration ["+n+"] timeline ["+h+"] selected by ["+f+"] playlist ["+A+"]"},No=function(t){return t+"TimingInfo"},Ko=function(t){var e=t.timelineChangeController,n=t.currentTimeline,i=t.segmentTimeline,r=t.loaderType,s=t.audioDisabled;if(n===i)return!1;if("audio"===r){var a=e.lastTimelineChange({type:"main"});return!a||a.to!==i}if("main"===r&&s){var A=e.pendingTimelineChange({type:"audio"});return!A||A.to!==i}return!1},jo=function(t){var e=t.segmentDuration,n=t.maxDuration;return!!e&&Math.round(e)>n+1/30},Vo=function(t,e){if("hls"!==e)return null;var n,i,r,s,a=(n=t.audioTimingInfo,i=t.videoTimingInfo,r=n&&"number"==typeof n.start&&"number"==typeof n.end?n.end-n.start:0,s=i&&"number"==typeof i.start&&"number"==typeof i.end?i.end-i.start:0,Math.max(r,s));if(!a)return null;var A=t.playlist.targetDuration,o=jo({segmentDuration:a,maxDuration:2*A}),u=jo({segmentDuration:a,maxDuration:A}),l="Segment with index "+t.mediaIndex+" from playlist "+t.playlist.id+" has a duration of "+a+" when the reported duration is "+t.duration+" and the target duration is "+A+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return o||u?{severity:o?"warn":"info",message:l}:null},Go=function(t){function e(e,n){var i;if(i=t.call(this)||this,!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=e.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=e.hasPlayed,i.currentTime_=e.currentTime,i.seekable_=e.seekable,i.seeking_=e.seeking,i.duration_=e.duration,i.mediaSource_=e.mediaSource,i.vhs_=e.vhs,i.loaderType_=e.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=e.segmentMetadataTrack,i.goalBufferLength_=e.goalBufferLength,i.sourceType_=e.sourceType,i.sourceUpdater_=e.sourceUpdater,i.inbandTextTracks_=e.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=e.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=e.parse708captions,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=Ra.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=e.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=e.decrypter,i.syncController_=e.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",function(){i.isEndOfStream_()||(i.ended_=!1)}),i.fetchAtBuffer_=!1,i.logger_=Va("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(d()(i),"state",{get:function(){return this.state_},set:function(t){t!==this.state_&&(this.logger_(this.state_+" -> "+t),this.state_=t,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i}p()(e,t);var n=e.prototype;return n.createTransmuxer_=function(){return oo({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&A.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(t){this.audioDisabled_=!t,t?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,A.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(t){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==t:(this.state="READY",!0)},n.error=function(t){return void 0!==t&&(this.logger_("error occurred:",t),this.error_=t),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Ao(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var t=this.getMediaInfo_();if(!this.sourceUpdater_||!t)return Ra.createTimeRanges();if("main"===this.loaderType_){var e=t.hasAudio,n=t.hasVideo,i=t.isMuxed;if(n&&e&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(t,e){if(void 0===e&&(e=!1),!t)return null;var n=PA(t),i=this.initSegments_[n];return e&&!i&&t.bytes&&(this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}),i||t},n.segmentKey=function(t,e){if(void 0===e&&(e=!1),!t)return null;var n=HA(t),i=this.keyCache_[n];this.cacheEncryptionKeys_&&e&&!i&&t.bytes&&(this.keyCache_[n]=i={resolvedUri:t.resolvedUri,bytes:t.bytes});var r={resolvedUri:(i||t).resolvedUri};return i&&(r.bytes=i.bytes),r},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(t,e){if(void 0===e&&(e={}),t){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=e,"INIT"===this.state&&(t.syncInfo={mediaSequence:t.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(t));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(t.id||t.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==t.uri)return null!==this.mediaIndex&&this.resyncLoader(),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var s=t.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+s+"]"),null!==this.mediaIndex)if(this.mediaIndex-=s,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var a=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!a.parts||!a.parts.length||!a.parts[this.partIndex])){var A=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=A}}i&&(i.mediaIndex-=s,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=t.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,t)}},n.pause=function(){this.checkBufferTimeout_&&(A.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(t){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,t),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"})},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&Ao(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(t,e,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),e===1/0&&(e=this.duration_()),e<=t)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,s=function(){0===--r&&n()};for(var a in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(t,e,s)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=function(t,e,n,i){for(var r=Math.ceil((e-i)*we.ONE_SECOND_IN_TS),s=Math.ceil((n-i)*we.ONE_SECOND_IN_TS),a=t.slice(),A=t.length;A--&&!(t[A].pts<=s););if(-1===A)return a;for(var o=A+1;o--&&!(t[o].pts<=r););return o=Math.max(o,0),a.splice(o,A-o+1),a}(this.gopBuffer_,t,e,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(t,e,s)),this.inbandTextTracks_)Ho(t,e,this.inbandTextTracks_[a]);Ho(t,e,this.segmentMetadataTrack_),s()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&A.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=A.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&A.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=A.a.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var t=this.chooseNextRequest_();t&&("number"==typeof t.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline})),this.loadSegment_(t))}},n.isEndOfStream_=function(t,e,n){if(void 0===t&&(t=this.mediaIndex),void 0===e&&(e=this.playlist_),void 0===n&&(n=this.partIndex),!e||!this.mediaSource_)return!1;var i="number"==typeof t&&e.segments[t],r=t+1===e.segments.length,s=!i||!i.parts||n+1===i.parts.length;return e.endList&&"open"===this.mediaSource_.readyState&&r&&s},n.chooseNextRequest_=function(){var t=qa(this.buffered_())||0,e=Math.max(0,t-this.currentTime_()),n=!this.hasPlayed_()&&e>=1,i=e>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||n||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=function(t,e,n){e=e||[];for(var i=[],r=0,s=0;s<e.length;s++){var a=e[s];if(t===a.timeline&&(i.push(s),(r+=a.duration)>n))return s}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,r,t);else if(null!==this.mediaIndex){var a=r[this.mediaIndex],A="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=a.end?a.end:t,a.parts&&a.parts[A+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=A+1):s.mediaIndex=this.mediaIndex+1}else{var o=fA.getMediaInfoForTime({playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),u=o.segmentIndex,l=o.startTime,c=o.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd":"currentTime",s.mediaIndex=u,s.startOfSegment=l,s.partIndex=c}var h=r[s.mediaIndex],d=h&&"number"==typeof s.partIndex&&h.parts&&h.parts[s.partIndex];if(!h||"number"==typeof s.partIndex&&!d)return null;"number"!=typeof s.partIndex&&h.parts&&(s.partIndex=0);var f=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=r.length-1&&f&&!this.seeking_()?null:this.generateSegmentInfo_(s)},n.generateSegmentInfo_=function(t){var e=t.playlist,n=t.mediaIndex,i=t.startOfSegment,r=t.isSyncRequest,s=t.partIndex,a=t.forceTimestampOffset,A=t.getMediaInfoForTime,o=e.segments[n],u="number"==typeof s&&o.parts[s],l={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||o.resolvedUri,mediaIndex:n,partIndex:u?s:null,isSyncRequest:r,startOfSegment:i,playlist:e,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:o.timeline,duration:u&&u.duration||o.duration,segment:o,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:A},c=void 0!==a?a:this.isPendingTimestampOffset_;l.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:o.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:c});var h=qa(this.sourceUpdater_.audioBuffered());return"number"==typeof h&&(l.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(l.gopsToAlignWith=function(t,e,n){if(void 0===e||null===e||!t.length)return[];var i,r=Math.ceil((e-n+3)*we.ONE_SECOND_IN_TS);for(i=0;i<t.length&&!(t[i].pts>r);i++);return t.slice(i)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),l},n.timestampOffsetForSegment_=function(t){return n=(e=t).segmentTimeline,i=e.currentTimeline,r=e.startOfSegment,s=e.buffered,e.overrideCheck||n!==i?n<i?r:s.length?s.end(s.length-1):r:null;var e,n,i,r,s},n.earlyAbortWhenNeeded_=function(t){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)){var e=this.currentTime_(),n=t.bandwidth,i=this.pendingSegment_.duration,r=fA.estimateSegmentRequestTime(i,n,this.playlist_,t.bytesReceived),s=function(t,e,n){return void 0===n&&(n=1),((t.length?t.end(t.length-1):0)-e)/n}(this.buffered_(),e,this.vhs_.tech_.playbackRate())-1;if(!(r<=s)){var a=function(t){var e=t.master,n=t.currentTime,i=t.bandwidth,r=t.duration,s=t.segmentDuration,a=t.timeUntilRebuffer,A=t.currentTimeline,o=t.syncController,u=e.playlists.filter(function(t){return!fA.isIncompatible(t)}),l=u.filter(fA.isEnabled);l.length||(l=u.filter(function(t){return!fA.isDisabled(t)}));var c=l.filter(fA.hasAttribute.bind(null,"BANDWIDTH")).map(function(t){var e=o.getSyncPoint(t,r,A,n)?1:2;return{playlist:t,rebufferingImpact:fA.estimateSegmentRequestTime(s,i,t)*e-a}}),h=c.filter(function(t){return t.rebufferingImpact<=0});return Qo(h,function(t,e){return Lo(e.playlist,t.playlist)}),h.length?h[0]:(Qo(c,function(t,e){return t.rebufferingImpact-e.rebufferingImpact}),c[0]||null)}({master:this.vhs_.playlists.master,currentTime:e,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(a){var A=r-s-a.rebufferingImpact,o=.5;s<=1/30&&(o=1),!a.playlist||a.playlist.uri===this.playlist_.uri||A<o||(this.bandwidth=a.playlist.attributes.BANDWIDTH*qA.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(t){this.logger_("Aborting "+Mo(t)),this.mediaRequestsAborted+=1},n.handleProgress_=function(t,e){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(t,e){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.checkForIllegalMediaSwitch(e)||(e=e||{},function(t,e){if(!t&&!e||!t&&e||t&&!e)return!1;if(t===e)return!0;var n=Object.keys(t).sort(),i=Object.keys(e).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var s=n[r];if(s!==i[r])return!1;if(t[s]!==e[s])return!1}return!0}(this.currentMediaInfo_,e)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=e,this.currentMediaInfo_=e,this.logger_("trackinfo update",e),this.trigger("trackinfo")),this.checkForAbort_(t.requestId)||(this.pendingSegment_.trackInfo=e,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(t,e,n,i){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)){var r=this.pendingSegment_,s=No(e);r[s]=r[s]||{},r[s][n]=i,this.logger_("timinginfo: "+e+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(t,e){var n=this;if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(0!==e.length)if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};e.forEach(function(t){r[t.stream]=r[t.stream]||{startTime:1/0,captions:[],endTime:0};var e=r[t.stream];e.startTime=Math.min(e.startTime,t.startTime+i),e.endTime=Math.max(e.endTime,t.endTime+i),e.captions.push(t)}),Object.keys(r).forEach(function(t){var e=r[t],s=e.startTime,a=e.endTime,o=e.captions,u=n.inbandTextTracks_;n.logger_("adding cues from "+s+" -> "+a+" for "+t),function(t,e,n){if(!t[n]){e.trigger({type:"usage",name:"vhs-608"}),e.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=e.textTracks().getTrackById(i);if(r)t[n]=r;else{var s=n,a=n,A=!1,o=(e.options_.vhs&&e.options_.vhs.captionServices||{})[i];o&&(s=o.label,a=o.language,A=o.default),t[n]=e.addRemoteTextTrack({kind:"captions",id:i,default:A,label:s,language:a},!1).track}}}(u,n.vhs_.tech_,t),Ho(s,a,u[t]),function(t){var e=t.inbandTextTracks,n=t.captionArray,i=t.timestampOffset;if(n){var r=A.a.WebKitDataCue||A.a.VTTCue;n.forEach(function(t){var n=t.stream;e[n].addCue(new r(t.startTime+i,t.endTime+i,t.text))})}}({captionArray:o,inbandTextTracks:u,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,e));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(t,e,n){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(t,e,n){t.metadataTrack_||(t.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=e)}(this.inbandTextTracks_,n,this.vhs_.tech_),Po({inbandTextTracks:this.inbandTextTracks_,metadataArray:e,timestampOffset:i,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,e,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(t){return t()}),this.metadataQueue_.caption.forEach(function(t){return t()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var t=this.callQueue_;this.callQueue_=[],t.forEach(function(t){return t()})},n.processLoadQueue_=function(){var t=this.loadQueue_;this.loadQueue_=[],t.forEach(function(t){return t()})},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var t=this.pendingSegment_;return!!t&&(!this.getCurrentMediaInfo_()||!Ko({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(t){return void 0===t&&(t=this.pendingSegment_),t&&t.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(t){return void 0===t&&(t=this.pendingSegment_),this.getCurrentMediaInfo_(t)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var t=this.pendingSegment_,e=this.getCurrentMediaInfo_();if(!t||!e)return!1;var n=e.hasAudio,i=e.hasVideo,r=e.isMuxed;return!(i&&!t.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!r&&!t.audioTimingInfo)&&!Ko({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(t,e){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.segment),"closed"!==this.mediaSource_.readyState){if(t.map&&(t.map=this.initSegmentForMap(t.map,!0),n.segment.map=t.map),t.key&&this.segmentKey(t.key,!0),n.isFmp4=t.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[No(e.type)].start;else{var i,r=this.getCurrentMediaInfo_(),s="main"===this.loaderType_&&r&&r.hasVideo;s&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:s,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,e.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var a=this.chooseNextRequest_();if(a.mediaIndex!==n.mediaIndex||a.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,e)}}else this.callQueue_.push(this.handleData_.bind(this,t,e))},n.updateAppendInitSegmentStatus=function(t,e){"main"!==this.loaderType_||"number"!=typeof t.timestampOffset||t.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[e]!==t.playlist&&(this.appendInitSegment_[e]=!0)},n.getInitSegmentAndUpdateState_=function(t){var e=t.type,n=t.initSegment,i=t.map,r=t.playlist;if(i){var s=PA(i);if(this.activeInitSegmentId_===s)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=s}return n&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(t,e){var n=this,i=t.segmentInfo,r=t.type,s=t.bytes,a=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Xa(a).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Xa(o).join(", "));var u=a.length?a.start(0):0,l=a.length?a.end(a.length-1):0,c=o.length?o.start(0):0,h=o.length?o.end(o.length-1):0;if(l-u<=1&&h-c<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+s.byteLength+", audio buffer: "+Xa(a).join(", ")+", video buffer: "+Xa(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:s}));var d=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+d),this.remove(0,d,function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=A.a.setTimeout(function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()},1e3)},!0)},n.handleAppendError_=function(t,e){var n=t.segmentInfo,i=t.type,r=t.bytes;e&&(22!==e.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",e),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=function(t){var e,n,i,r=t.segmentInfo,s=t.type,a=t.initSegment,A=t.data,o=t.bytes;if(!o){var u=[A],l=A.byteLength;a&&(u.unshift(a),l+=a.byteLength),i=0,(e={bytes:l,segments:u}).bytes&&(n=new Uint8Array(e.bytes),e.segments.forEach(function(t){n.set(t,i),i+=t.byteLength})),o=n}this.sourceUpdater_.appendBuffer({segmentInfo:r,type:s,bytes:o},this.handleAppendError_.bind(this,{segmentInfo:r,type:s,bytes:o}))},n.handleSegmentTimingInfo_=function(t,e,n){if(this.pendingSegment_&&e===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=t+"TimingInfo";i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(t,e){var n=e.type,i=e.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:e.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:n,initSegment:r,data:i})}},n.loadSegment_=function(t){var e=this;this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),"number"==typeof t.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(t):this.loadQueue_.push(function(){var n=c()({},t,{forceTimestampOffset:!0});c()(t,e.generateSegmentInfo_(n)),e.isPendingTimestampOffset_=!1,e.updateTransmuxerAndRequestSegment_(t)})},n.updateTransmuxerAndRequestSegment_=function(t){var e=this;this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)&&(this.gopBuffer_.length=0,t.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset}));var n=this.createSimplifiedSegmentObj_(t),i=this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex),r=null!==this.mediaIndex,s=t.timeline!==this.currentTimeline_&&t.timeline>0,a=i||r&&s;this.logger_("Requesting "+Mo(t)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=_o({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,t),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:function(){e.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,s=n.stream;e.logger_(Mo(t)+" logged from transmuxer stream "+s+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(t){var e=function(t,e,n){var i=e-qA.BACK_BUFFER_LENGTH;t.length&&(i=Math.max(i,t.start(0)));var r=e-n;return Math.min(r,i)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);e>0&&this.remove(0,e)},n.createSimplifiedSegmentObj_=function(t){var e=t.segment,n=t.part,i={resolvedUri:n?n.resolvedUri:e.resolvedUri,byterange:n?n.byterange:e.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,part:t.part},r=t.playlist.segments[t.mediaIndex-1];if(r&&r.timeline===e.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),e.key){var s=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);i.key=this.segmentKey(e.key),i.key.iv=s}return e.map&&(i.map=this.initSegmentForMap(e.map)),i},n.saveTransferStats_=function(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)},n.saveBandwidthRelatedStats_=function(t,e){this.pendingSegment_.byteLength=e.bytesReceived,t<1/60?this.logger_("Ignoring segment's bandwidth because its duration of "+t+" is less than the min to record "+1/60):(this.bandwidth=e.bandwidth,this.roundTrip=e.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(t,e,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,e,n));else if(this.saveTransferStats_(e.stats),this.pendingSegment_&&e.requestId===this.pendingSegment_.requestId){if(t){if(this.pendingSegment_=null,this.state="READY",t.code===ho)return;return this.pause(),t.code===co?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error"))}var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,e.stats),i.endOfAllRequests=e.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(t,e,n){if(!e.length)return t;if(n)return e.slice();for(var i=e[0].pts,r=0;r<t.length&&!(t[r].pts>=i);r++);return t.slice(0,r).concat(e)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(t){var e=this.syncController_.mappingForTimeline(t);null!==e&&(this.timeMapping_=e)},n.updateMediaSecondsLoaded_=function(t){"number"==typeof t.start&&"number"==typeof t.end?this.mediaSecondsLoaded+=t.end-t.start:this.mediaSecondsLoaded+=t.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(t){return null!==t&&("main"===this.loaderType_&&t!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(t){var e=t.currentStart,n=t.playlist,i=t.mediaIndex,r=t.firstVideoFrameTimeForData,s=t.currentVideoTimestampOffset,a=t.useVideoTimingInfo,A=t.videoTimingInfo,o=t.audioTimingInfo;if(void 0!==e)return e;if(!a)return o.start;var u=n.segments[i-1];return 0!==i&&u&&void 0!==u.start&&u.end===r+s?A.start:r},n.waitForAppendsToComplete_=function(t){var e=this.getCurrentMediaInfo_(t);if(!e)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=e.hasAudio,i=e.hasVideo,r=e.isMuxed,s="main"===this.loaderType_&&i,a=!this.audioDisabled_&&n&&!r;if(t.waitingOnAppends=0,!t.hasAppendedData_)return t.timingInfo||"number"!=typeof t.timestampOffset||(this.isPendingTimestampOffset_=!0),t.timingInfo={start:0},t.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(t),this.processMetadataQueue_()),void this.checkAppendsDone_(t);s&&t.waitingOnAppends++,a&&t.waitingOnAppends++,s&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))},n.checkAppendsDone_=function(t){this.checkForAbort_(t.requestId)||(t.waitingOnAppends--,0===t.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(t){var e=function(t,e,n){return"main"===t&&e&&n?n.hasAudio||n.hasVideo?e.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),t);return!!e&&(this.error({message:e,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(t){if(null!==t.timestampOffset&&"number"==typeof t.timingInfo.start&&!t.changedTimestampOffset&&"main"===this.loaderType_){var e=!1;t.timestampOffset-=t.timingInfo.start,t.changedTimestampOffset=!0,t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(t.timestampOffset),e=!0),t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(t.timestampOffset),e=!0),e&&this.trigger("timestampoffset")}},n.updateTimingInfoEnd_=function(t){t.timingInfo=t.timingInfo||{};var e=this.getMediaInfo_(),n="main"===this.loaderType_&&e&&e.hasVideo&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;n&&(t.timingInfo.end="number"==typeof n.end?n.end:n.start+t.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_;this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:"main"===this.loaderType_});var e=Vo(t,this.sourceType_);if(e&&("warn"===e.severity?Ra.log.warn(e.message):this.logger_(e.message)),this.recordThroughput_(t),this.pendingSegment_=null,this.state="READY",!t.isSyncRequest||(this.trigger("syncinfoupdate"),t.hasAppendedData_)){this.logger_("Appended "+Mo(t)),this.addSegmentMetadataCue_(t),this.fetchAtBuffer_=!0,this.currentTimeline_!==t.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})),this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate");var n=t.segment;if(n.end&&this.currentTime_()-n.end>3*t.playlist.targetDuration)this.resetEverything();else null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=t.mediaIndex,this.partIndex=t.partIndex,this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)&&this.endOfStream(),this.trigger("appended"),t.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Mo(t))},n.recordThroughput_=function(t){if(t.duration<1/60)this.logger_("Ignoring segment's throughput because its duration of "+t.duration+" is less than the min to record "+1/60);else{var e=this.throughput.rate,n=Date.now()-t.endOfAllRequests+1,i=Math.floor(t.byteLength/n*8*1e3);this.throughput.rate+=(i-e)/++this.throughput.count}},n.addSegmentMetadataCue_=function(t){if(this.segmentMetadataTrack_){var e=t.segment,n=e.start,i=e.end;if(Ro(n)&&Ro(i)){Ho(n,i,this.segmentMetadataTrack_);var r=A.a.WebKitDataCue||A.a.VTTCue,s={custom:e.custom,dateTimeObject:e.dateTimeObject,dateTimeString:e.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:n,end:i},a=new r(n,i,JSON.stringify(s));a.value=s,this.segmentMetadataTrack_.addCue(a)}}},e}(Ra.EventTarget);function $o(){}var Wo,zo=function(t){return"string"!=typeof t?t:t.replace(/./,function(t){return t.toUpperCase()})},Xo=["video","audio"],qo=function(t,e){var n=e[t+"Buffer"];return n&&n.updating||e.queuePending[t]},Yo=function t(e,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==e&&n.ready()&&"closed"!==n.mediaSource.readyState&&!qo(e,n)){if(r.type!==e){if(null===(i=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];if("mediaSource"===i.type)return null;if(i.type===t)return n}return null}(e,n.queue)))return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[e]=r,r.action(e,n),r.doneFn?void 0:(n.queuePending[e]=null,void t(e,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),t("audio",n),t("video",n))}},Jo=function(t,e){var n=e[t+"Buffer"],i=zo(t);n&&(n.removeEventListener("updateend",e["on"+i+"UpdateEnd_"]),n.removeEventListener("error",e["on"+i+"Error_"]),e.codecs[t]=null,e[t+"Buffer"]=null)},Zo=function(t,e){return t&&e&&-1!==Array.prototype.indexOf.call(t.sourceBuffers,e)},tu=function(t,e,n){return function(i,r){var s=r[i+"Buffer"];if(Zo(r.mediaSource,s)){r.logger_("Appending segment "+e.mediaIndex+"'s "+t.length+" bytes to "+i+"Buffer");try{s.appendBuffer(t)}catch(t){r.logger_("Error with code "+t.code+" "+(22===t.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+e.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(t)}}}},eu=function(t,e){return function(n,i){var r=i[n+"Buffer"];if(Zo(i.mediaSource,r)){i.logger_("Removing "+t+" to "+e+" from "+n+"Buffer");try{r.remove(t,e)}catch(r){i.logger_("Remove "+t+" to "+e+" from "+n+"Buffer failed")}}}},nu=function(t){return function(e,n){var i=n[e+"Buffer"];Zo(n.mediaSource,i)&&(n.logger_("Setting "+e+"timestampOffset to "+t),i.timestampOffset=t)}},iu=function(t){return function(e,n){t()}},ru=function(t){return function(e){if("open"===e.mediaSource.readyState){e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(t){Ra.log.warn("Failed to call media source endOfStream",t)}}}},su=function(t){return function(e){e.logger_("Setting mediaSource duration to "+t);try{e.mediaSource.duration=t}catch(t){Ra.log.warn("Failed to set media source duration",t)}}},au=function(){return function(t,e){if("open"===e.mediaSource.readyState){var n=e[t+"Buffer"];if(Zo(e.mediaSource,n)){e.logger_("calling abort on "+t+"Buffer");try{n.abort()}catch(e){Ra.log.warn("Failed to abort on "+t+"Buffer",e)}}}}},Au=function(t,e){return function(n){var i=zo(t),r=W(e);n.logger_("Adding "+t+"Buffer with codec "+e+" to mediaSource");var s=n.mediaSource.addSourceBuffer(r);s.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),s.addEventListener("error",n["on"+i+"Error_"]),n.codecs[t]=e,n[t+"Buffer"]=s}},ou=function(t){return function(e){var n=e[t+"Buffer"];if(Jo(t,e),Zo(e.mediaSource,n)){e.logger_("Removing "+t+"Buffer with codec "+e.codecs[t]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(n)}catch(e){Ra.log.warn("Failed to removeSourceBuffer "+t+"Buffer",e)}}}},uu=function(t){return function(e,n){var i=n[e+"Buffer"],r=W(t);Zo(n.mediaSource,i)&&n.codecs[e]!==t&&(n.logger_("changing "+e+"Buffer codec from "+n.codecs[e]+" to "+t),i.changeType(r),n.codecs[e]=t)}},lu=function(t){var e=t.type,n=t.sourceUpdater,i=t.action,r=t.doneFn,s=t.name;n.queue.push({type:e,action:i,doneFn:r,name:s}),Yo(e,n)},cu=function(t,e){return function(n){if(e.queuePending[t]){var i=e.queuePending[t].doneFn;e.queuePending[t]=null,i&&i(e[t+"Error_"])}Yo(t,e)}},hu=function(t){function e(e){var n;return(n=t.call(this)||this).mediaSource=e,n.sourceopenListener_=function(){return Yo("mediaSource",d()(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Va("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=cu("video",d()(n)),n.onAudioUpdateEnd_=cu("audio",d()(n)),n.onVideoError_=function(t){n.videoError_=t},n.onAudioError_=function(t){n.audioError_=t},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}p()(e,t);var n=e.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(t){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(t),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(t,e){lu({type:"mediaSource",sourceUpdater:this,action:Au(t,e),name:"addSourceBuffer"})},n.abort=function(t){lu({type:t,sourceUpdater:this,action:au(t),name:"abort"})},n.removeSourceBuffer=function(t){this.canRemoveSourceBuffer()?lu({type:"mediaSource",sourceUpdater:this,action:ou(t),name:"removeSourceBuffer"}):Ra.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!Ra.browser.IE_VERSION&&!Ra.browser.IS_FIREFOX&&A.a.MediaSource&&A.a.MediaSource.prototype&&"function"==typeof A.a.MediaSource.prototype.removeSourceBuffer},e.canChangeType=function(){return A.a.SourceBuffer&&A.a.SourceBuffer.prototype&&"function"==typeof A.a.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(t,e){this.canChangeType()?lu({type:t,sourceUpdater:this,action:uu(e),name:"changeType"}):Ra.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(t){var e=this;if(!t||"object"!=typeof t||0===Object.keys(t).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(t).forEach(function(n){var i=t[n];if(!e.hasCreatedSourceBuffers())return e.addSourceBuffer(n,i);e.canChangeType()&&e.changeType(n,i)})},n.appendBuffer=function(t,e){var n=this,i=t.segmentInfo,r=t.type,s=t.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([t,e]),void this.logger_("delayed audio append of "+s.length+" until video append");if(lu({type:r,sourceUpdater:this,action:tu(s,i||{mediaIndex:-1},e),doneFn:e,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var a=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+a.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,a.forEach(function(t){n.appendBuffer.apply(n,t)})}},n.audioBuffered=function(){return Zo(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Ra.createTimeRange()},n.videoBuffered=function(){return Zo(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Ra.createTimeRange()},n.buffered=function(){var t=Zo(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,e=Zo(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return e&&!t?this.audioBuffered():t&&!e?this.videoBuffered():function(t,e){var n=null,i=null,r=0,s=[],a=[];if(!(t&&t.length&&e&&e.length))return Ra.createTimeRange();for(var A=t.length;A--;)s.push({time:t.start(A),type:"start"}),s.push({time:t.end(A),type:"end"});for(A=e.length;A--;)s.push({time:e.start(A),type:"start"}),s.push({time:e.end(A),type:"end"});for(s.sort(function(t,e){return t.time-e.time}),A=0;A<s.length;A++)"start"===s[A].type?2==++r&&(n=s[A].time):"end"===s[A].type&&1==--r&&(i=s[A].time),null!==n&&null!==i&&(a.push([n,i]),n=null,i=null);return Ra.createTimeRanges(a)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(t,e){void 0===e&&(e=$o),lu({type:"mediaSource",sourceUpdater:this,action:su(t),name:"duration",doneFn:e})},n.endOfStream=function(t,e){void 0===t&&(t=null),void 0===e&&(e=$o),"string"!=typeof t&&(t=void 0),lu({type:"mediaSource",sourceUpdater:this,action:ru(t),name:"endOfStream",doneFn:e})},n.removeAudio=function(t,e,n){void 0===n&&(n=$o),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?lu({type:"audio",sourceUpdater:this,action:eu(t,e),doneFn:n,name:"remove"}):n()},n.removeVideo=function(t,e,n){void 0===n&&(n=$o),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?lu({type:"video",sourceUpdater:this,action:eu(t,e),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!qo("audio",this)&&!qo("video",this))},n.audioTimestampOffset=function(t){return void 0!==t&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(lu({type:"audio",sourceUpdater:this,action:nu(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_},n.videoTimestampOffset=function(t){return void 0!==t&&this.videoBuffer&&this.videoTimestampOffset!==t&&(lu({type:"video",sourceUpdater:this,action:nu(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_},n.audioQueueCallback=function(t){this.audioBuffer&&lu({type:"audio",sourceUpdater:this,action:iu(t),name:"callback"})},n.videoQueueCallback=function(t){this.videoBuffer&&lu({type:"video",sourceUpdater:this,action:iu(t),name:"callback"})},n.dispose=function(){var t=this;this.trigger("dispose"),Xo.forEach(function(e){t.abort(e),t.canRemoveSourceBuffer()?t.removeSourceBuffer(e):t[e+"QueueCallback"](function(){return Jo(e,t)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},e}(Ra.EventTarget),du=function(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))},fu=new Uint8Array("\n\n".split("").map(function(t){return t.charCodeAt(0)})),pu=function(t){function e(e,n){var i;return void 0===n&&(n={}),(i=t.call(this,e,n)||this).mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=e.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}p()(e,t);var n=e.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Ra.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,n=t[t.length-1].startTime;return Ra.createTimeRanges([[e,n]])},n.initSegmentForMap=function(t,e){if(void 0===e&&(e=!1),!t)return null;var n=PA(t),i=this.initSegments_[n];if(e&&!i&&t.bytes){var r=fu.byteLength+t.bytes.byteLength,s=new Uint8Array(r);s.set(t.bytes),s.set(fu,t.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:s}}return i||t},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(t){return void 0===t?this.subtitlesTrack_:(this.subtitlesTrack_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)},n.remove=function(t,e){Ho(t,e,this.subtitlesTrack_)},n.fillBuffer_=function(){var t=this,e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){return this.syncController_.one("timestampoffset",function(){t.state="READY",t.paused()||t.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(t.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(t){for(;t&&t.segment.empty;){if(t.mediaIndex+1>=t.playlist.segments.length){t=null;break}t=this.generateSegmentInfo_({playlist:t.playlist,mediaIndex:t.mediaIndex+1,startOfSegment:t.startOfSegment+t.duration,isSyncRequest:t.isSyncRequest})}return t},n.stopForError=function(t){this.error(t),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(t,e,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(e.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(t)return t.code===co&&this.handleTimeout_(),t.code===ho?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(t);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,e.stats),this.state="APPENDING",this.trigger("appending");var s=r.segment;if(s.map&&(s.map.bytes=e.map.bytes),r.bytes=e.bytes,"function"!=typeof A.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var a,o=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",a),i.stopForError({message:"Error loading vtt.js"})};return a=function(){i.subtitlesTrack_.tech_.off("vttjserror",o),i.segmentRequestFinished_(t,e,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",a),void this.subtitlesTrack_.tech_.one("vttjserror",o)}s.requested=!0;try{this.parseVTTCues_(r)}catch(t){return void this.stopForError({message:t.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,r.cues.forEach(function(t){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new A.a.VTTCue(t.startTime,t.endTime,t.text):t)}),function(t){var e=t.cues;if(e)for(var n=0;n<e.length;n++){for(var i=[],r=0,s=0;s<e.length;s++)e[n].startTime===e[s].startTime&&e[n].endTime===e[s].endTime&&e[n].text===e[s].text&&++r>1&&i.push(e[s]);i.length&&i.forEach(function(e){return t.removeCue(e)})}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(t){var e,n=!1;"function"==typeof A.a.TextDecoder?e=new A.a.TextDecoder("utf8"):(e=A.a.WebVTT.StringDecoder(),n=!0);var i=new A.a.WebVTT.Parser(A.a,A.a.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=t.cues.push.bind(t.cues),i.ontimestampmap=function(e){t.timestampmap=e},i.onparsingerror=function(t){Ra.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var r=t.segment.map.bytes;n&&(r=du(r)),i.parse(r)}var s=t.bytes;n&&(s=du(s)),i.parse(s),i.flush()},n.updateTimeMapping_=function(t,e,n){var i=t.segment;if(e)if(t.cues.length){var r=t.timestampmap,s=r.MPEGTS/we.ONE_SECOND_IN_TS-r.LOCAL+e.mapping;if(t.cues.forEach(function(t){t.startTime+=s,t.endTime+=s}),!n.syncInfo){var a=t.cues[0].startTime,A=t.cues[t.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:Math.min(a,A-i.duration)}}}else i.empty=!0},e}(Go),gu=function(t,e){for(var n=t.cues,i=0;i<n.length;i++){var r=n[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},mu=[{name:"VOD",run:function(t,e,n,i,r){if(n!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(t,e,n,i,r){if(!Object.keys(t.timelineToDatetimeMappings).length)return null;var s=null,a=null,A=Ja(e);r=r||0;for(var o=0;o<A.length;o++){var u=A[e.endList||0===r?o:A.length-(o+1)],l=u.segment,c=t.timelineToDatetimeMappings[l.timeline];if(c&&l.dateTimeObject){var h=l.dateTimeObject.getTime()/1e3+c;if(l.parts&&"number"==typeof u.partIndex)for(var d=0;d<u.partIndex;d++)h+=l.parts[d].duration;var f=Math.abs(r-h);if(null!==a&&(0===f||a<f))break;a=f,s={time:h,segmentIndex:u.segmentIndex,partIndex:u.partIndex}}}return s}},{name:"Segment",run:function(t,e,n,i,r){var s=null,a=null;r=r||0;for(var A=Ja(e),o=0;o<A.length;o++){var u=A[e.endList||0===r?o:A.length-(o+1)],l=u.segment,c=u.part&&u.part.start||l&&l.start;if(l.timeline===i&&void 0!==c){var h=Math.abs(r-c);if(null!==a&&a<h)break;(!s||null===a||a>=h)&&(a=h,s={time:c,segmentIndex:u.segmentIndex,partIndex:u.partIndex})}}return s}},{name:"Discontinuity",run:function(t,e,n,i,r){var s=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length)for(var a=null,A=0;A<e.discontinuityStarts.length;A++){var o=e.discontinuityStarts[A],u=e.discontinuitySequence+A+1,l=t.discontinuities[u];if(l){var c=Math.abs(r-l.time);if(null!==a&&a<c)break;(!s||null===a||a>=c)&&(a=c,s={time:l.time,segmentIndex:o,partIndex:null})}}return s}},{name:"Playlist",run:function(t,e,n,i,r){return e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}}],vu=function(t){function e(e){var n;return(n=t.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=Va("SyncController"),n}p()(e,t);var n=e.prototype;return n.getSyncPoint=function(t,e,n,i){var r=this.runStrategies_(t,e,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(t,e){if(!t||!t.segments)return null;var n=this.runStrategies_(t,e,t.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+rA({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(t,e,n,i){for(var r=[],s=0;s<mu.length;s++){var a=mu[s],A=a.run(this,t,e,n,i);A&&(A.strategy=a.name,r.push({strategy:a.name,syncPoint:A}))}return r},n.selectSyncPoint_=function(t,e){for(var n=t[0].syncPoint,i=Math.abs(t[0].syncPoint[e.key]-e.value),r=t[0].strategy,s=1;s<t.length;s++){var a=Math.abs(t[s].syncPoint[e.key]-e.value);a<i&&(i=a,n=t[s].syncPoint,r=t[s].strategy)}return this.logger_("syncPoint for ["+e.key+": "+e.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(t,e){for(var n=e.mediaSequence-t.mediaSequence-1;n>=0;n--){var i=t.segments[n];if(i&&void 0!==i.start){e.syncInfo={mediaSequence:t.mediaSequence+n,time:i.start},this.logger_("playlist refresh sync: [time:"+e.syncInfo.time+", mediaSequence: "+e.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(t){if(this.timelineToDatetimeMappings={},t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var e=t.segments[0],n=e.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[e.timeline]=-n}},n.saveSegmentTimingInfo=function(t){var e=t.segmentInfo,n=t.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(e,e.timingInfo,n),r=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:r.start}));var s=r.dateTimeObject;r.discontinuity&&n&&s&&(this.timelineToDatetimeMappings[r.timeline]=-s.getTime()/1e3)},n.timestampOffsetForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].time},n.mappingForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].mapping},n.calculateSegmentTimeMapping_=function(t,e,n){var i,r,s=t.segment,a=t.part,A=this.timelines[t.timeline];if("number"==typeof t.timestampOffset)A={time:t.startOfSegment,mapping:t.startOfSegment-e.start},n&&(this.timelines[t.timeline]=A,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": [time: "+A.time+"] [mapping: "+A.mapping+"]")),i=t.startOfSegment,r=e.end+A.mapping;else{if(!A)return!1;i=e.start+A.mapping,r=e.end+A.mapping}return a&&(a.start=i,a.end=r),(!s.start||i<s.start)&&(s.start=i),s.end=r,!0},n.saveDiscontinuitySyncInfo_=function(t){var e=t.playlist,n=t.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(e.discontinuityStarts&&e.discontinuityStarts.length)for(var i=0;i<e.discontinuityStarts.length;i++){var r=e.discontinuityStarts[i],s=e.discontinuitySequence+i+1,a=r-t.mediaIndex,A=Math.abs(a);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>A){var o=void 0;o=a<0?n.start-rA({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.mediaIndex,endIndex:r}):n.end+rA({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.mediaIndex+1,endIndex:r}),this.discontinuities[s]={time:o,accuracy:A}}}},n.dispose=function(){this.trigger("dispose"),this.off()},e}(Ra.EventTarget),yu=function(t){function e(){var e;return(e=t.call(this)||this).pendingTimelineChanges_={},e.lastTimelineChanges_={},e}p()(e,t);var n=e.prototype;return n.clearPendingTimelineChange=function(t){this.pendingTimelineChanges_[t]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(t){var e=t.type,n=t.from,i=t.to;return"number"==typeof n&&"number"==typeof i&&(this.pendingTimelineChanges_[e]={type:e,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]},n.lastTimelineChange=function(t){var e=t.type,n=t.from,i=t.to;return"number"==typeof n&&"number"==typeof i&&(this.lastTimelineChanges_[e]={type:e,from:n,to:i},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},e}(Ra.EventTarget),Bu=JA(ZA(to(function(){function t(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===e||null===e)&&n.path)}},n.exports),n.exports}var e=t(function(t){function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}t.exports=function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t},t.exports.default=t.exports,t.exports.__esModule=!0}),n=t(function(t){function e(n,i){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,e(n,i)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),i=t(function(t){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,n(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0}),r=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(n,1),n>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var n=e.length,i=0;i<n;++i)e[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),s=e.length,a=0;a<s;++a)e[a].apply(this,r)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",function(e){t.push(e)})},t}();
- /*! @name aes-decrypter @version 3.1.2 @license Apache-2.0 */
- var s=function(){var t,e,n,i,r,s,a,A,o=[[[],[],[],[],[]],[[],[],[],[],[]]],u=o[0],l=o[1],c=u[4],h=l[4],d=[],f=[];for(t=0;t<256;t++)f[(d[t]=t<<1^283*(t>>7))^t]=t;for(e=n=0;!c[e];e^=i||1,n=f[n]||1)for(s=(s=n^n<<1^n<<2^n<<3^n<<4)>>8^255&s^99,c[e]=s,h[s]=e,A=16843009*d[r=d[i=d[e]]]^65537*r^257*i^16843008*e,a=257*d[s]^16843008*s,t=0;t<4;t++)u[t][e]=a=a<<24^a>>>8,l[t][s]=A=A<<24^A>>>8;for(t=0;t<5;t++)u[t]=u[t].slice(0),l[t]=l[t].slice(0);return o},a=null,A=function(){function t(t){var e,n,i;a||(a=s()),this._tables=[[a[0][0].slice(),a[0][1].slice(),a[0][2].slice(),a[0][3].slice(),a[0][4].slice()],[a[1][0].slice(),a[1][1].slice(),a[1][2].slice(),a[1][3].slice(),a[1][4].slice()]];var r=this._tables[0][4],A=this._tables[1],o=t.length,u=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var l=t.slice(0),c=[];for(this._key=[l,c],e=o;e<4*o+28;e++)i=l[e-1],(e%o==0||8===o&&e%o==4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],e%o==0&&(i=i<<8^i>>>24^u<<24,u=u<<1^283*(u>>7))),l[e]=l[e-o]^i;for(n=0;e;n++,e--)i=l[3&n?e:e-4],c[n]=e<=4||n<4?i:A[0][r[i>>>24]]^A[1][r[i>>16&255]]^A[2][r[i>>8&255]]^A[3][r[255&i]]}return t.prototype.decrypt=function(t,e,n,i,r,s){var a,A,o,u,l=this._key[1],c=t^l[0],h=i^l[1],d=n^l[2],f=e^l[3],p=l.length/4-2,g=4,m=this._tables[1],v=m[0],y=m[1],B=m[2],b=m[3],w=m[4];for(u=0;u<p;u++)a=v[c>>>24]^y[h>>16&255]^B[d>>8&255]^b[255&f]^l[g],A=v[h>>>24]^y[d>>16&255]^B[f>>8&255]^b[255&c]^l[g+1],o=v[d>>>24]^y[f>>16&255]^B[c>>8&255]^b[255&h]^l[g+2],f=v[f>>>24]^y[c>>16&255]^B[h>>8&255]^b[255&d]^l[g+3],g+=4,c=a,h=A,d=o;for(u=0;u<4;u++)r[(3&-u)+s]=w[c>>>24]<<24^w[h>>16&255]<<16^w[d>>8&255]<<8^w[255&f]^l[g++],a=c,c=h,h=d,d=f,f=a},t}(),o=function(t){function e(){var e;return(e=t.call(this,r)||this).jobs=[],e.delay=1,e.timeout_=null,e}i(e,t);var n=e.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},e}(r),u=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},l=function(){function t(e,n,i,r){var s=t.STEP,a=new Int32Array(e.buffer),A=new Uint8Array(e.byteLength),l=0;for(this.asyncStream_=new o,this.asyncStream_.push(this.decryptChunk_(a.subarray(l,l+s),n,i,A)),l=s;l<a.length;l+=s)i=new Uint32Array([u(a[l-4]),u(a[l-3]),u(a[l-2]),u(a[l-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(l,l+s),n,i,A));this.asyncStream_.push(function(){
- /*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
- var t;r(null,(t=A).subarray(0,t.byteLength-t[t.byteLength-1]))})}return t.prototype.decryptChunk_=function(t,e,n,i){return function(){var r=function(t,e,n){var i,r,s,a,o,l,c,h,d,f=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),p=new A(Array.prototype.slice.call(e)),g=new Uint8Array(t.byteLength),m=new Int32Array(g.buffer);for(i=n[0],r=n[1],s=n[2],a=n[3],d=0;d<f.length;d+=4)o=u(f[d]),l=u(f[d+1]),c=u(f[d+2]),h=u(f[d+3]),p.decrypt(o,l,c,h,m,d),m[d]=u(m[d]^i),m[d+1]=u(m[d+1]^r),m[d+2]=u(m[d+2]^s),m[d+3]=u(m[d+3]^a),i=o,r=l,s=c,a=h;return g}(t,e,n);i.set(r,t.byteOffset)}},e(t,null,[{key:"STEP",get:function(){return 32e3}}]),t}();self.onmessage=function(t){var e=t.data,n=new Uint8Array(e.encrypted.bytes,e.encrypted.byteOffset,e.encrypted.byteLength),i=new Uint32Array(e.key.bytes,e.key.byteOffset,e.key.byteLength/4),r=new Uint32Array(e.iv.bytes,e.iv.byteOffset,e.iv.byteLength/4);new l(n,i,r,function(t,n){var i,r;self.postMessage((i={source:e.source,decrypted:n},r={},Object.keys(i).forEach(function(t){var e=i[t];ArrayBuffer.isView(e)?r[t]={bytes:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength}:r[t]=e}),r),[n.buffer])})}}))),bu=function(t){var e=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},wu=function(t,e){t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},Cu=function(t,e){e.activePlaylistLoader=t,t.load()},_u={AUDIO:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t],r=e.blacklistCurrentPlaylist;wu(n,i);var s=i.activeTrack(),a=i.activeGroup(),A=(a.filter(function(t){return t.default})[0]||a[0]).id,o=i.tracks[A];if(s!==o){for(var u in Ra.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[u].enabled=i.tracks[u]===o;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t];Ra.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),wu(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},Tu={AUDIO:function(t,e,n){if(e){var i=n.tech,r=n.requestOptions,s=n.segmentLoaders[t];e.on("loadedmetadata",function(){var t=e.media();s.playlist(t,r),(!i.paused()||t.endList&&"none"!==i.preload())&&s.load()}),e.on("loadedplaylist",function(){s.playlist(e.media(),r),i.paused()||s.load()}),e.on("error",_u[t](t,n))}},SUBTITLES:function(t,e,n){var i=n.tech,r=n.requestOptions,s=n.segmentLoaders[t],a=n.mediaTypes[t];e.on("loadedmetadata",function(){var t=e.media();s.playlist(t,r),s.track(a.activeTrack()),(!i.paused()||t.endList&&"none"!==i.preload())&&s.load()}),e.on("loadedplaylist",function(){s.playlist(e.media(),r),i.paused()||s.load()}),e.on("error",_u[t](t,n))}},Eu={AUDIO:function(t,e){var n=e.vhs,i=e.sourceType,r=e.segmentLoaders[t],s=e.requestOptions,a=e.master.mediaGroups,A=e.mediaTypes[t],o=A.groups,u=A.tracks,l=A.logger_,c=e.masterPlaylistLoader,h=dA(c.master);for(var d in a[t]&&0!==Object.keys(a[t]).length||(a[t]={main:{default:{default:!0}}},h&&(a[t].main.default.playlists=c.master.playlists)),a[t])for(var f in o[d]||(o[d]=[]),a[t][d]){var p=a[t][d][f],g=void 0;if(h?(l("AUDIO group '"+d+"' label '"+f+"' is a master playlist"),p.isMasterPlaylist=!0,g=null):g="vhs-json"===i&&p.playlists?new SA(p.playlists[0],n,s):p.resolvedUri?new SA(p.resolvedUri,n,s):p.playlists&&"dash"===i?new XA(p.playlists[0],n,s,c):null,p=Ra.mergeOptions({id:f,playlistLoader:g},p),Tu[t](t,p.playlistLoader,e),o[d].push(p),void 0===u[f]){var m=new Ra.AudioTrack({id:f,kind:bu(p),enabled:!1,language:p.language,default:p.default,label:f});u[f]=m}}r.on("error",_u[t](t,e))},SUBTITLES:function(t,e){var n=e.tech,i=e.vhs,r=e.sourceType,s=e.segmentLoaders[t],a=e.requestOptions,A=e.master.mediaGroups,o=e.mediaTypes[t],u=o.groups,l=o.tracks,c=e.masterPlaylistLoader;for(var h in A[t])for(var d in u[h]||(u[h]=[]),A[t][h])if(!A[t][h][d].forced){var f=A[t][h][d],p=void 0;if("hls"===r)p=new SA(f.resolvedUri,i,a);else if("dash"===r){if(!f.playlists.filter(function(t){return t.excludeUntil!==1/0}).length)return;p=new XA(f.playlists[0],i,a,c)}else"vhs-json"===r&&(p=new SA(f.playlists?f.playlists[0]:f.resolvedUri,i,a));if(f=Ra.mergeOptions({id:d,playlistLoader:p},f),Tu[t](t,f.playlistLoader,e),u[h].push(f),void 0===l[d]){var g=n.addRemoteTextTrack({id:d,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:d},!1).track;l[d]=g}}s.on("error",_u[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var n=e.tech,i=e.master.mediaGroups,r=e.mediaTypes[t],s=r.groups,a=r.tracks;for(var A in i[t])for(var o in s[A]||(s[A]=[]),i[t][A]){var u=i[t][A][o];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var l=n.options_.vhs&&n.options_.vhs.captionServices||{},c={label:o,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(l[c.instreamId]&&(c=Ra.mergeOptions(c,l[c.instreamId])),void 0===c.default&&delete c.default,s[A].push(Ra.mergeOptions({id:o},u)),void 0===a[o]){var h=n.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;a[o]=h}}}}},Su=function t(e,n){for(var i=0;i<e.length;i++){if(cA(n,e[i]))return!0;if(e[i].playlists&&t(e[i].playlists,n))return!0}return!1},ku={AUDIO:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},Uu=function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){Eu[e](e,t)});var e=t.mediaTypes,n=t.masterPlaylistLoader,i=t.tech,r=t.vhs,s=t.segmentLoaders,a=s.AUDIO,A=s.main;["AUDIO","SUBTITLES"].forEach(function(n){e[n].activeGroup=function(t,e){return function(n){var i=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,s=i.media();if(!s)return null;var a=null;s.attributes[t]&&(a=r[s.attributes[t]]);var A=Object.keys(r);if(!a)if("AUDIO"===t&&A.length>1&&dA(e.master))for(var o=0;o<A.length;o++){var u=r[A[o]];if(Su(u,s)){a=u;break}}else r.main?a=r.main:1===A.length&&(a=r[A[0]]);return void 0===n?a:null!==n&&a&&a.filter(function(t){return t.id===n.id})[0]||null}}(n,t),e[n].activeTrack=ku[n](n,t),e[n].onGroupChanged=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,s=e.mediaTypes[t],a=s.activeTrack(),A=s.getActiveGroup(),o=s.activePlaylistLoader,u=s.lastGroup_;A&&u&&A.id===u.id||(s.lastGroup_=A,s.lastTrack_=a,wu(i,s),A&&!A.isMasterPlaylist&&(A.playlistLoader?(i.resyncLoader(),Cu(A.playlistLoader,s)):o&&r.resetEverything()))}}(n,t),e[n].onGroupChanging=function(t,e){return function(){var n=e.segmentLoaders[t];e.mediaTypes[t].lastGroup_=null,n.abort(),n.pause()}}(n,t),e[n].onTrackChanged=function(t,e){return function(){var n=e.masterPlaylistLoader,i=e.segmentLoaders,r=i[t],s=i.main,a=e.mediaTypes[t],A=a.activeTrack(),o=a.getActiveGroup(),u=a.activePlaylistLoader,l=a.lastTrack_;if((!l||!A||l.id!==A.id)&&(a.lastGroup_=o,a.lastTrack_=A,wu(r,a),o)){if(o.isMasterPlaylist){if(!A||!l||A.id===l.id)return;var c=e.vhs.masterPlaylistController_,h=c.selectPlaylist();if(c.media()===h)return;return a.logger_("track change. Switching master audio from "+l.id+" to "+A.id),n.pause(),s.resetEverything(),void c.fastQualityChange_(h)}if("AUDIO"===t){if(!o.playlistLoader)return s.setAudio(!0),void s.resetEverything();r.setAudio(!0),s.setAudio(!1)}u!==o.playlistLoader?(r.track&&r.track(A),r.resetEverything(),Cu(o.playlistLoader,a)):Cu(o.playlistLoader,a)}}}(n,t),e[n].getActiveGroup=function(t,e){var n=e.mediaTypes;return function(){var e=n[t].activeTrack();return e?n[t].activeGroup(e):null}}(n,t)});var o=e.AUDIO.activeGroup();if(o){var u=(o.filter(function(t){return t.default})[0]||o[0]).id;e.AUDIO.tracks[u].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(A.setAudio(!1),a.setAudio(!0)):A.setAudio(!0)}n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(t){return e[t].onGroupChanged()})}),n.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(t){return e[t].onGroupChanging()})});var l=function(){e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var c in i.audioTracks().addEventListener("change",l),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",function(){i.audioTracks().removeEventListener("change",l),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),i.clearTracks("audio"),e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[c])},Iu=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:$o,activeTrack:$o,getActiveGroup:$o,onGroupChanged:$o,onTrackChanged:$o,lastTrack_:null,logger_:Va("MediaGroups["+e+"]")}}),t},Fu=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],xu=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},Qu=function(t){function e(e){var n;n=t.call(this)||this;var i=e.src,r=e.handleManifestRedirects,s=e.withCredentials,a=e.tech,o=e.bandwidth,u=e.externVhs,l=e.useCueTags,c=e.blacklistDuration,h=e.enableLowInitialPlaylist,f=e.sourceType,p=e.cacheEncryptionKeys,g=e.experimentalBufferBasedABR;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var m=e.maxPlaylistRetries;null!==m&&void 0!==m||(m=1/0),Wo=u,n.experimentalBufferBasedABR=Boolean(g),n.withCredentials=s,n.tech_=a,n.vhs_=a.vhs,n.sourceType_=f,n.useCueTags_=l,n.blacklistDuration=c,n.maxPlaylistRetries=m,n.enableLowInitialPlaylist=h,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:s,handleManifestRedirects:r,maxPlaylistRetries:m,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=Iu(),n.mediaSource=new A.a.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(d()(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(d()(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(d()(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=Ra.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new vu(e),n.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new Bu,n.sourceUpdater_=new hu(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new yu;var v={vhs:n.vhs_,parse708captions:e.parse708captions,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:o,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:p,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_};n.masterPlaylistLoader_="dash"===n.sourceType_?new XA(i,n.vhs_,n.requestOptions_):new SA(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Go(Ra.mergeOptions(v,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),e),n.audioSegmentLoader_=new Go(Ra.mergeOptions(v,{loaderType:"audio"}),e),n.subtitleSegmentLoader_=new pu(Ra.mergeOptions(v,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),e),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",function(){return n.startABRTimer_()}),n.tech_.on("pause",function(){return n.stopABRTimer_()}),n.tech_.on("play",function(){return n.startABRTimer_()})),Fu.forEach(function(t){n[t+"_"]=xu.bind(d()(n),t)}),n.logger_=Va("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var y="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(y,function(){var t=Date.now();n.tech_.one("loadeddata",function(){n.timeToLoadedData__=Date.now()-t,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends})}),n}p()(e,t);var n=e.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var t=this.mainAppendsToLoadedData_(),e=this.audioAppendsToLoadedData_();return-1===t||-1===e?-1:t+e},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var t=this.selectPlaylist();this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,"abr")},n.switchMedia_=function(t,e,n){var i=this.media(),r=i&&(i.id||i.uri),s=t.id||t.uri;r&&r!==s&&(this.logger_("switch media "+r+" -> "+s+" from "+e),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+e})),this.masterPlaylistLoader_.media(t,n)},n.startABRTimer_=function(){var t=this;this.stopABRTimer_(),this.abrTimer_=A.a.setInterval(function(){return t.checkABR_()},250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(A.a.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var t=this.master();if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return t&&t.playlists||[];var e,n=t.mediaGroups.AUDIO,i=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)e=this.mediaTypes_.AUDIO.activeTrack();else{var r=n.main||i.length&&n[i[0]];for(var s in r)if(r[s].default){e={label:s};break}}if(!e)return[];var a=[];for(var A in n)if(n[A][e.label]){var o=n[A][e.label];o.playlists?a.push.apply(a,o.playlists):a.push(o)}return a},n.setupMasterPlaylistLoaderListeners_=function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;lA(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,e.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),Uu({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e),t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){t.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){t.loadOnPlay_&&t.tech_.off("play",t.loadOnPlay_);var e=t.masterPlaylistLoader_.media();if(!e){var n;if(t.excludeUnsupportedVariants_(),t.enableLowInitialPlaylist&&(n=t.selectInitialPlaylist()),n||(n=t.selectPlaylist()),!n||!t.shouldSwitchToMedia_(n))return;if(t.initialMedia_=n,t.switchMedia_(t.initialMedia_,"initial"),!("vhs-json"===t.sourceType_&&t.initialMedia_.segments))return;e=t.initialMedia_}t.handleUpdatedMediaPlaylist(e)}),this.masterPlaylistLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;lA(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=t.masterPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&(t.stuckAtPlaylistEnd_(e)&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),t.tech_.trigger("playliststuck")))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},n.handleUpdatedMediaPlaylist=function(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.updateDuration(!t.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(t,e){var n=t.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var s in n.AUDIO)for(var a in n.AUDIO[s]){n.AUDIO[s][a].uri||(i=!1)}i&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),Wo.Playlist.isAes(e)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(t){var e=this.masterPlaylistLoader_.media(),n=this.tech_.buffered();return function(t){var e=t.currentPlaylist,n=t.nextPlaylist,i=t.forwardBuffer,r=t.bufferLowWaterLine,s=t.bufferHighWaterLine,a=t.duration,A=t.experimentalBufferBasedABR,o=t.log;if(!n)return Ra.log.warn("We received no playlist to switch to. Please check your stream."),!1;var u="allowing switch "+(e&&e.id||"null")+" -> "+n.id;if(!e||!e.endList)return o(u+" as current playlist "+(e?"is live":"is not set")),!0;if(n.id===e.id)return!1;var l=A?qA.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:qA.MAX_BUFFER_LOW_WATER_LINE;if(a<l)return o(u+" as duration < max low water line ("+a+" < "+l+")"),!0;var c=n.attributes.BANDWIDTH,h=e.attributes.BANDWIDTH;if(c<h&&(!A||i<s)){var d=u+" as next bandwidth < current bandwidth ("+c+" < "+h+")";return A&&(d+=" and forwardBuffer < bufferHighWaterLine ("+i+" < "+s+")"),o(d),!0}if((!A||c>h)&&i>=r){var f=u+" as forwardBuffer >= bufferLowWaterLine ("+i+" >= "+r+")";return A&&(f+=" and next bandwidth > current bandwidth ("+c+" > "+h+")"),o(f),!0}return o("not "+u+" as no switching criteria met"),!1}({currentPlaylist:e,nextPlaylist:t,forwardBuffer:n.length?n.end(n.length-1)-this.tech_.currentTime():0,bufferLowWaterLine:this.bufferLowWaterLine(),bufferHighWaterLine:this.bufferHighWaterLine(),duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var t=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist();t.shouldSwitchToMedia_(e)&&t.switchMedia_(e,"bandwidthupdate"),t.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){t.logger_("main segment loader ended"),t.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(e){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});var e=function(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var e=t.getCodecsOrExclude_();e&&t.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){t.logger_("audioSegmentLoader ended"),t.onEndOfStream()})},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(t){void 0===t&&(t=this.selectPlaylist()),this.fastQualityChange_(t)},n.fastQualityChange_=function(t){var e=this;void 0===t&&(t=this.selectPlaylist()),t!==this.masterPlaylistLoader_.media()?(this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){Ra.browser.IE_VERSION||Ra.browser.IS_EDGE?e.tech_.setCurrentTime(e.tech_.currentTime()+.04):e.tech_.setCurrentTime(e.tech_.currentTime())})):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.tech_.setCurrentTime(t.end(t.length-1)):void 0}},n.setupFirstPlay=function(){var t=this,e=this.masterPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList){var n=this.seekable();if(!n.length)return!1;if(Ra.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){t.trigger("firstplay"),t.tech_.setCurrentTime(n.end(0)),t.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var t=this.tech_.play();void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var t=this.inbandTextTracks_.metadataTrack_.cues;if(t&&t.length){var e=this.duration();t[t.length-1].endTime=isNaN(e)||Math.abs(e)===1/0?Number.MAX_VALUE:e}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var e=this.mainSegmentLoader_.getCurrentMediaInfo_();t=!e||e.hasVideo?t&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}t&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(t){if(!this.seekable().length)return!1;var e=this.syncController_.getExpiredTime(t,this.duration());if(null===e)return!1;var n=Wo.Playlist.playlistEnd(t,e),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=.1;var s=r.end(r.length-1);return s-i<=.1&&n-s<=.1},n.blacklistCurrentPlaylist=function(t,e){void 0===t&&(t={});var n=t.playlist||this.masterPlaylistLoader_.media();if(e=e||t.blacklistDuration||this.blacklistDuration,!n)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,s=r.filter(oA),a=1===s.length&&s[0]===n;if(1===r.length&&e!==1/0)return Ra.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(a);if(a){var A=!1;r.forEach(function(t){if(t!==n){var e=t.excludeUntil;void 0!==e&&e!==1/0&&(A=!0,delete t.excludeUntil)}}),A&&(Ra.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*e,n.excludeUntil=i,t.reason&&(n.lastExcludeReason_=t.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var o=this.selectPlaylist();if(!o)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var u=t.internal?this.logger_:Ra.log.warn,l=t.message?" "+t.message:"";u((t.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+l+" Switching to playlist "+o.id+"."),o.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),o.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var c=o.targetDuration/2*1e3||5e3,h="number"==typeof o.lastRequest&&Date.now()-o.lastRequest<=c;return this.switchMedia_(o,"exclude",a||h)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(t,e){var n=this,i=[],r="all"===t;(r||"main"===t)&&i.push(this.masterPlaylistLoader_);var s=[];(r||"audio"===t)&&s.push("AUDIO"),(r||"subtitle"===t)&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach(function(t){var e=n.mediaTypes_[t]&&n.mediaTypes_[t].activePlaylistLoader;e&&i.push(e)}),["main","audio","subtitle"].forEach(function(e){var r=n[e+"SegmentLoader_"];!r||t!==e&&"all"!==t||i.push(r)}),i.forEach(function(t){return e.forEach(function(e){"function"==typeof t[e]&&t[e]()})})},n.setCurrentTime=function(t){var e=$a(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?e&&e.length?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var t=this.masterPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:Wo.Playlist.duration(t):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var t;if(this.masterPlaylistLoader_){var e=this.masterPlaylistLoader_.media();if(e){var n=this.syncController_.getExpiredTime(e,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=Wo.Playlist.seekable(e,n,Wo.Playlist.liveEdgeDelay(i,e));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(e=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(e,this.duration())))return;if(0===(t=Wo.Playlist.seekable(e,n,Wo.Playlist.liveEdgeDelay(i,e))).length)return}var s,a;this.seekable_&&this.seekable_.length&&(s=this.seekable_.end(0),a=this.seekable_.start(0)),t?t.start(0)>r.end(0)||r.start(0)>t.end(0)?this.seekable_=r:this.seekable_=Ra.createTimeRanges([[t.start(0)>r.start(0)?t.start(0):r.start(0),t.end(0)<r.end(0)?t.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===s&&this.seekable_.start(0)===a||(this.logger_("seekable updated ["+za(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(t){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,t),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(t){var e=this.seekable();if(!e.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1))}else{var n=this.tech_.buffered(),i=Wo.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var t=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(e){var n=t.mediaTypes_[e].groups;for(var i in n)n[i].forEach(function(t){t.playlistLoader&&t.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var t=!!this.mediaTypes_.AUDIO.activePlaylistLoader,e=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!t||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!e||!n)},n.getCodecsOrExclude_=function(){var t=this,e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};e.video=e.main;var n=Uo(this.master(),this.media()),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(i.video=n.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(i.video+=","+(n.audio||e.main.audioCodec||"mp4a.40.2")),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(i.audio=n.audio||e.main.audioCodec||e.audio.audioCodec||"mp4a.40.2",e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),i.audio||i.video){var s,a={};if(["video","audio"].forEach(function(t){if(i.hasOwnProperty(t)&&(r=e[t].isFmp4,A=i[t],!(r?z(A):X(A)))){var n=e[t].isFmp4?"browser":"muxer";a[n]=a[n]||[],a[n].push(i[t]),"audio"===t&&(s=n)}var r,A}),r&&s&&this.media().attributes.AUDIO){var A=this.media().attributes.AUDIO;this.master().playlists.forEach(function(e){(e.attributes&&e.attributes.AUDIO)===A&&e!==t.media()&&(e.excludeUntil=1/0)}),this.logger_("excluding audio group "+A+" as "+s+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(a).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var o=[];if(["video","audio"].forEach(function(e){var n=(G(t.sourceUpdater_.codecs[e]||"")[0]||{}).type,r=(G(i[e]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&o.push('"'+t.sourceUpdater_.codecs[e]+'" -> "'+i[e]+'"')}),o.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+o.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var u=Object.keys(a).reduce(function(t,e){return t&&(t+=", "),t+=e+' does not support codec(s): "'+a[e].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:u,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var t=this.getCodecsOrExclude_();if(t){this.sourceUpdater_.createSourceBuffers(t);var e=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(e)}}},n.excludeUnsupportedVariants_=function(){var t=this,e=this.master().playlists,n=[];Object.keys(e).forEach(function(i){var r=e[i];if(-1===n.indexOf(r.id)){n.push(r.id);var s=Uo(t.master,r),a=[];!s.audio||X(s.audio)||z(s.audio)||a.push("audio codec "+s.audio),!s.video||X(s.video)||z(s.video)||a.push("video codec "+s.video),s.text&&"stpp.ttml.im1t"===s.text&&a.push("text codec "+s.text),a.length&&(r.excludeUntil=1/0,t.logger_("excluding "+r.id+" for unsupported: "+a.join(", ")))}})},n.excludeIncompatibleVariants_=function(t){var e=this,n=[],i=this.master().playlists,r=So(G(t)),s=ko(r),a=r.video&&G(r.video)[0]||null,A=r.audio&&G(r.audio)[0]||null;Object.keys(i).forEach(function(t){var r=i[t];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var o=[],u=Uo(e.masterPlaylistLoader_.master,r),l=ko(u);if(u.audio||u.video){if(l!==s&&o.push('codec count "'+l+'" !== "'+s+'"'),!e.sourceUpdater_.canChangeType()){var c=u.video&&G(u.video)[0]||null,h=u.audio&&G(u.audio)[0]||null;c&&a&&c.type.toLowerCase()!==a.type.toLowerCase()&&o.push('video codec "'+c.type+'" !== "'+a.type+'"'),h&&A&&h.type.toLowerCase()!==A.type.toLowerCase()&&o.push('audio codec "'+h.type+'" !== "'+A.type+'"')}o.length&&(r.excludeUntil=1/0,e.logger_("blacklisting "+r.id+": "+o.join(" && ")))}}})},n.updateAdCues_=function(t){var e=0,n=this.seekable();n.length&&(e=n.start(0)),function(t,e,n){if(void 0===n&&(n=0),t.segments)for(var i,r=n,s=0;s<t.segments.length;s++){var a=t.segments[s];if(i||(i=gu(e,r+a.duration/2)),i){if("cueIn"in a){i.endTime=r,i.adEndTime=r,r+=a.duration,i=null;continue}if(r<i.endTime){r+=a.duration;continue}i.endTime+=a.duration}else if("cueOut"in a&&((i=new A.a.VTTCue(r,r+a.duration,a.cueOut)).adStartTime=r,i.adEndTime=r+parseFloat(a.cueOut),e.addCue(i)),"cueOutCont"in a){var o=a.cueOutCont.split("/").map(parseFloat),u=o[0],l=o[1];(i=new A.a.VTTCue(r,r+a.duration,"")).adStartTime=r-u,i.adEndTime=i.adStartTime+l,e.addCue(i)}r+=a.duration}}(t,this.cueTagsTrack_,e)},n.goalBufferLength=function(){var t=this.tech_.currentTime(),e=qA.GOAL_BUFFER_LENGTH,n=qA.GOAL_BUFFER_LENGTH_RATE,i=Math.max(e,qA.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*n,i)},n.bufferLowWaterLine=function(){var t=this.tech_.currentTime(),e=qA.BUFFER_LOW_WATER_LINE,n=qA.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(e,qA.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(e,qA.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return qA.BUFFER_HIGH_WATER_LINE},e}(Ra.EventTarget),Lu=function(t,e,n){var i,r,s,a=t.masterPlaylistController_,A=a[(t.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(a);if(e.attributes){var o=e.attributes.RESOLUTION;this.width=o&&o.width,this.height=o&&o.height,this.bandwidth=e.attributes.BANDWIDTH}this.codecs=Uo(a.master(),e),this.playlist=e,this.id=n,this.enabled=(i=t.playlists,r=e.id,s=A,function(t){var e=i.master.playlists[r],n=AA(e),a=oA(e);return void 0===t?a:(t?delete e.disabled:e.disabled=!0,t===a||n||(s(),t?i.trigger("renditionenabled"):i.trigger("renditiondisabled")),t)})},Ou=["seeking","seeked","pause","playing","error"],Du=function(){function t(t){var e=this;this.masterPlaylistController_=t.masterPlaylistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Va("PlaybackWatcher"),this.logger_("initialize");var n=function(){return e.monitorCurrentTime_()},i=function(){return e.monitorCurrentTime_()},r=function(){return e.techWaiting_()},s=function(){return e.cancelTimer_()},a=function(){return e.fixesBadSeeks_()},o=this.masterPlaylistController_,u=["main","subtitle","audio"],l={};u.forEach(function(t){l[t]={reset:function(){return e.resetSegmentDownloads_(t)},updateend:function(){return e.checkSegmentDownloads_(t)}},o[t+"SegmentLoader_"].on("appendsdone",l[t].updateend),o[t+"SegmentLoader_"].on("playlistupdate",l[t].reset),e.tech_.on(["seeked","seeking"],l[t].reset)}),this.tech_.on("seekablechanged",a),this.tech_.on("waiting",r),this.tech_.on(Ou,s),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){e.logger_("dispose"),e.tech_.off("seekablechanged",a),e.tech_.off("waiting",r),e.tech_.off(Ou,s),e.tech_.off("canplay",i),e.tech_.off("play",n),u.forEach(function(t){o[t+"SegmentLoader_"].off("appendsdone",l[t].updateend),o[t+"SegmentLoader_"].off("playlistupdate",l[t].reset),e.tech_.off(["seeked","seeking"],l[t].reset)}),e.checkCurrentTimeTimeout_&&A.a.clearTimeout(e.checkCurrentTimeTimeout_),e.cancelTimer_()}}var e=t.prototype;return e.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&A.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=A.a.setTimeout(this.monitorCurrentTime_.bind(this),250)},e.resetSegmentDownloads_=function(t){var e=this.masterPlaylistController_[t+"SegmentLoader_"];this[t+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+t+" loader"),this[t+"StalledDownloads_"]=0,this[t+"Buffered_"]=e.buffered_()},e.checkSegmentDownloads_=function(t){var e=this.masterPlaylistController_,n=e[t+"SegmentLoader_"],i=n.buffered_(),r=function(t,e){if(t===e)return!1;if(!t&&e||!e&&t)return!0;if(t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t.start(n)!==e.start(n)||t.end(n)!==e.end(n))return!0;return!1}(this[t+"Buffered_"],i);this[t+"Buffered_"]=i,r?this.resetSegmentDownloads_(t):(this[t+"StalledDownloads_"]++,this.logger_("found #"+this[t+"StalledDownloads_"]+" "+t+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Xa(i)}),this[t+"StalledDownloads_"]<10||(this.logger_(t+" loader stalled download exclusion"),this.resetSegmentDownloads_(t),this.tech_.trigger({type:"usage",name:"vhs-"+t+"-download-exclusion"}),"subtitle"!==t&&e.blacklistCurrentPlaylist({message:"Excessive "+t+" segment downloading detected."},1/0)))},e.checkCurrentTime_=function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&&(!e.length||t+.1>=e.end(e.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}},e.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},e.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var t,e=this.seekable(),n=this.tech_.currentTime();this.afterSeekableWindow_(e,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(t=e.end(e.length-1));if(this.beforeSeekableWindow_(e,n)){var i=e.start(0);t=i+(i===e.end(0)?0:.1)}if(void 0!==t)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+za(e)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;var r=this.tech_.buffered();return!!function(t){var e=t.buffered,n=t.targetDuration,i=t.currentTime;return!(!e.length||e.end(0)-e.start(0)<2*n||i>e.start(0)||!(e.start(0)-i<n))}({buffered:r,targetDuration:this.media().targetDuration,currentTime:n})&&(t=r.start(0)+.1,this.logger_("Buffered region starts ("+r.start(0)+") just beyond seek point ("+n+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},e.waiting_=function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=this.tech_.buffered(),n=$a(e,t);return n.length&&t+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},e.techWaiting_=function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var n=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:e}))return this.cancelTimer_(),this.tech_.setCurrentTime(e),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var s=Wa(r,e);if(s.length>0){var a=s.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+a+", seeking to "+s.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,e),!0}return!1},e.afterSeekableWindow_=function(t,e,n,i){if(void 0===i&&(i=!1),!t.length)return!1;var r=t.end(t.length-1)+.1;return!n.endList&&i&&(r=t.end(t.length-1)+3*n.targetDuration),e>r},e.beforeSeekableWindow_=function(t,e){return!!(t.length&&t.start(0)>0&&e<t.start(0)-this.liveRangeSafeTimeDelta)},e.videoUnderflow_=function(t){var e=t.videoBuffered,n=t.audioBuffered,i=t.currentTime;if(e){var r;if(e.length&&n.length){var s=$a(e,i-3),a=$a(e,i),A=$a(n,i);A.length&&!a.length&&s.length&&(r={start:s.end(0),end:A.end(0)})}else{Wa(e,i).length||(r=this.gapFromVideoUnderflow_(e,i))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},e.skipTheGap_=function(t){var e=this.tech_.buffered(),n=this.tech_.currentTime(),i=Wa(e,n);this.cancelTimer_(),0!==i.length&&n===t&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+1/30),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},e.gapFromVideoUnderflow_=function(t,e){for(var n=function(t){if(t.length<2)return Ra.createTimeRanges();for(var e=[],n=1;n<t.length;n++){var i=t.end(n-1),r=t.start(n);e.push([i,r])}return Ra.createTimeRanges(e)}(t),i=0;i<n.length;i++){var r=n.start(i),s=n.end(i);if(e-r<4&&e-r>2)return{start:r,end:s}}return null},t}(),Pu={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Hu=function(t){!function t(e,n){var i=0,r=0,s=Ra.mergeOptions(Pu,n);e.ready(function(){e.trigger({type:"usage",name:"vhs-error-reload-initialized"}),e.trigger({type:"usage",name:"hls-error-reload-initialized"})});var a=function(){r&&e.currentTime(r)},A=function(t){null!==t&&void 0!==t&&(r=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",a),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},o=function(){return Date.now()-i<1e3*s.errorInterval?(e.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void e.trigger({type:"usage",name:"hls-error-reload-canceled"})):s.getSource&&"function"==typeof s.getSource?(i=Date.now(),s.getSource.call(e,A)):void Ra.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function t(){e.off("loadedmetadata",a),e.off("error",o),e.off("dispose",t)};e.on("error",o),e.on("dispose",u),e.reloadSourceOnError=function(n){u(),t(e,n)}}(this,t)},Ru={PlaylistLoader:SA,Playlist:fA,utils:MA,STANDARD_PLAYLIST_SELECTOR:Do,INITIAL_PLAYLIST_SELECTOR:function(){var t=this,e=this.playlists.master.playlists.filter(fA.isEnabled);return Qo(e,function(t,e){return Lo(t,e)}),e.filter(function(e){return!!Uo(t.playlists.master,e).video})[0]||null},lastBandwidthSelector:Do,movingAverageBandwidthSelector:function(t){var e=-1,n=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&A.a.devicePixelRatio||1;return e<0&&(e=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(e=t*this.systemBandwidth+(1-t)*e,n=this.systemBandwidth),Oo(this.playlists.master,e,parseInt(xo(this.tech_.el(),"width"),10)*i,parseInt(xo(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Lo,comparePlaylistResolution:function(t,e){var n,i;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||A.a.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),n===(i=i||A.a.Number.MAX_VALUE)&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:n-i},xhr:FA()};Object.keys(qA).forEach(function(t){Object.defineProperty(Ru,t,{get:function(){return Ra.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),qA[t]},set:function(e){Ra.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e<0?Ra.log.warn("value of Vhs."+t+" must be greater than or equal to 0"):qA[t]=e}})});var Mu=function(t,e){for(var n=e.media(),i=-1,r=0;r<t.length;r++)if(t[r].id===n.id){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})};Ru.canPlaySource=function(){return Ra.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Nu=function(t){var e=t.player,n=t.sourceKeySystems,i=t.audioMedia,r=t.mainPlaylists;if(!e.eme.initializeMediaKeys)return Promise.resolve();var s=[],a=[];return function(t,e){return t.reduce(function(t,n){if(!n.contentProtection)return t;var i=e.reduce(function(t,e){var i=n.contentProtection[e];return i&&i.pssh&&(t[e]={pssh:i.pssh}),t},{});return Object.keys(i).length&&t.push(i),t},[])}(i?r.concat([i]):r,Object.keys(n)).forEach(function(t){a.push(new Promise(function(t,n){e.tech_.one("keysessioncreated",t)})),s.push(new Promise(function(n,i){e.eme.initializeMediaKeys({keySystems:t},function(t){t?i(t):n()})}))}),Promise.race([Promise.all(s),Promise.race(a)])},Ku=function(t){var e=t.player,n=function(t,e,n){if(!t)return t;var i={};e&&e.attributes&&e.attributes.CODECS&&(i=So(G(e.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=W(i.video),s=W(i.audio),a={};for(var A in t)a[A]={},s&&(a[A].audioContentType=s),r&&(a[A].videoContentType=r),e.contentProtection&&e.contentProtection[A]&&e.contentProtection[A].pssh&&(a[A].pssh=e.contentProtection[A].pssh),"string"==typeof t[A]&&(a[A].url=t[A]);return Ra.mergeOptions(t,a)}(t.sourceKeySystems,t.media,t.audioMedia);return!!n&&(e.currentSource().keySystems=n,!(n&&!e.eme)||(Ra.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},ju=function(){if(!A.a.localStorage)return null;var t=A.a.localStorage.getItem("videojs-vhs");if(!t)return null;try{return JSON.parse(t)}catch(t){return null}};Ru.supportsNativeHls=function(){if(!u.a||!u.a.createElement)return!1;var t=u.a.createElement("video");if(!Ra.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(t.canPlayType(e))})}(),Ru.supportsNativeDash=!!(u.a&&u.a.createElement&&Ra.getTech("Html5").isSupported())&&/maybe|probably/i.test(u.a.createElement("video").canPlayType("application/dash+xml")),Ru.supportsTypeNatively=function(t){return"hls"===t?Ru.supportsNativeHls:"dash"===t&&Ru.supportsNativeDash},Ru.isSupported=function(){return Ra.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Vu=function(t){function e(e,n,i){var r;if(r=t.call(this,n,Ra.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&Ra.log.warn("Using hls options is deprecated. Use vhs instead."),"number"==typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=Va("VhsHandler"),n.options_&&n.options_.playerId){var s=Ra(n.options_.playerId);s.hasOwnProperty("hls")||Object.defineProperty(s,"hls",{get:function(){return Ra.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),d()(r)},configurable:!0}),s.hasOwnProperty("vhs")||Object.defineProperty(s,"vhs",{get:function(){return Ra.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),d()(r)},configurable:!0}),s.hasOwnProperty("dash")||Object.defineProperty(s,"dash",{get:function(){return Ra.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),d()(r)},configurable:!0}),r.player_=s}if(r.tech_=n,r.source_=e,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(u.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){var e=u.a.fullscreenElement||u.a.webkitFullscreenElement||u.a.mozFullScreenElement||u.a.msFullscreenElement;e&&e.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()}),r.on(r.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),r.on(r.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),r.on(r.tech_,"play",r.play),r}p()(e,t);var n=e.prototype;return n.setOptions_=function(){var t=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var e=ju();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=qA.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===qA.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS"].forEach(function(e){void 0!==t.source_[e]&&(t.options_[e]=t.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(t,e){var n=this;if(t){var i;this.setOptions_(),this.options_.src=0===(i=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(i.substring(i.indexOf(",")+1)):i,this.options_.tech=this.tech_,this.options_.externVhs=Ru,this.options_.sourceType=J(e),this.options_.seekTo=function(t){n.tech_.setCurrentTime(t)},this.options_.smoothQualityChange&&Ra.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Qu(this.options_);var r=Ra.mergeOptions({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new Du(r),this.masterPlaylistController_.on("error",function(){var t=Ra.players[n.tech_.options_.playerId],e=n.masterPlaylistController_.error;"object"!=typeof e||e.code?"string"==typeof e&&(e={message:e,code:3}):e.code=3,t.error(e)});var s=this.options_.experimentalBufferBasedABR?Ru.movingAverageBandwidthSelector(.55):Ru.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Ru.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t,e=1/(this.bandwidth||1);return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){Ra.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Xa(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Xa(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&function(t){if(!A.a.localStorage)return!1;var e=ju();e=e?Ra.mergeOptions(e,t):t;try{A.a.localStorage.setItem("videojs-vhs",JSON.stringify(e))}catch(t){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t;(t=n).representations=function(){var e=t.masterPlaylistController_.master(),n=dA(e)?t.masterPlaylistController_.getAudioTrackPlaylists_():e.playlists;return n?n.filter(function(t){return!AA(t)}).map(function(e,n){return new Lu(t,e,e.id)}):[]}}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=A.a.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.setupEme_=function(){var t=this,e=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=Ku({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});11!==Ra.browser.IE_VERSION&&n?(this.logger_("waiting for EME key session creation"),Nu({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){t.logger_("created EME key session"),t.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(e){t.logger_("error while creating EME key session",e),t.player_.error({message:"Failed to initialize media keys for EME",code:3})})):this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var t=this,e=Ra.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e,n;e=t.qualityLevels_,(n=t).representations().forEach(function(t){e.addQualityLevel(t)}),Mu(e,n.playlists)}),this.playlists.on("mediachange",function(){Mu(t.qualityLevels_,t.playlists)}))},e.version=function(){return{"@videojs/http-streaming":"2.9.2","mux.js":"5.12.2","mpd-parser":"0.17.0","m3u8-parser":"4.7.0","aes-decrypter":"3.1.2"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return hu.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(t){this.masterPlaylistController_.setCurrentTime(t)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&A.a.URL.revokeObjectURL&&(A.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),t.prototype.dispose.call(this)},n.convertToProgramTime=function(t,e){return NA({playlist:this.masterPlaylistController_.media(),time:t,callback:e})},n.seekToProgramTime=function(t,e,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),KA({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:e})},e}(Ra.getComponent("Component")),Gu={name:"videojs-http-streaming",VERSION:"2.9.2",canHandleSource:function(t,e){void 0===e&&(e={});var n=Ra.mergeOptions(Ra.options,e);return Gu.canPlayType(t.type,n)},handleSource:function(t,e,n){void 0===n&&(n={});var i=Ra.mergeOptions(Ra.options,n);return e.vhs=new Vu(t,e,i),Ra.hasOwnProperty("hls")||Object.defineProperty(e,"hls",{get:function(){return Ra.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),e.vhs},configurable:!0}),e.vhs.xhr=FA(),e.vhs.src(t.src,t.type),e.vhs},canPlayType:function(t,e){void 0===e&&(e={});var n=Ra.mergeOptions(Ra.options,e).vhs.overrideNative,i=void 0===n?!Ra.browser.IS_ANY_SAFARI:n,r=J(t);return r&&(!Ru.supportsTypeNatively(r)||i)?"maybe":""}};z("avc1.4d400d,mp4a.40.2")&&Ra.getTech("Html5").registerSourceHandler(Gu,0),Ra.VhsHandler=Vu,Object.defineProperty(Ra,"HlsHandler",{get:function(){return Ra.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Vu},configurable:!0}),Ra.VhsSourceHandler=Gu,Object.defineProperty(Ra,"HlsSourceHandler",{get:function(){return Ra.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Gu},configurable:!0}),Ra.Vhs=Ru,Object.defineProperty(Ra,"Hls",{get:function(){return Ra.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Ru},configurable:!0}),Ra.use||(Ra.registerComponent("Hls",Ru),Ra.registerComponent("Vhs",Ru)),Ra.options.vhs=Ra.options.vhs||{},Ra.options.hls=Ra.options.hls||{},Ra.registerPlugin?Ra.registerPlugin("reloadSourceOnError",Hu):Ra.plugin("reloadSourceOnError",Hu);e.a=Ra},"7+uW":function(t,e,n){"use strict";(function(t){
- /*!
- * Vue.js v2.6.12
- * (c) 2014-2020 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function i(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function s(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function A(t){return null!==t&&"object"==typeof t}var o=Object.prototype.toString;function u(t){return"[object Object]"===o.call(t)}function l(t){return"[object RegExp]"===o.call(t)}function c(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return r(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===o?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function p(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var g=p("slot,component",!0),m=p("key,ref,slot,slot-scope,is");function v(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function B(t,e){return y.call(t,e)}function b(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var w=/-(\w)/g,C=b(function(t){return t.replace(w,function(t,e){return e?e.toUpperCase():""})}),_=b(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),T=/\B([A-Z])/g,E=b(function(t){return t.replace(T,"-$1").toLowerCase()});var S=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function k(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function U(t,e){for(var n in e)t[n]=e[n];return t}function I(t){for(var e={},n=0;n<t.length;n++)t[n]&&U(e,t[n]);return e}function F(t,e,n){}var x=function(t,e,n){return!1},Q=function(t){return t};function L(t,e){if(t===e)return!0;var n=A(t),i=A(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),s=Array.isArray(e);if(r&&s)return t.length===e.length&&t.every(function(t,n){return L(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||s)return!1;var a=Object.keys(t),o=Object.keys(e);return a.length===o.length&&a.every(function(n){return L(t[n],e[n])})}catch(t){return!1}}function O(t,e){for(var n=0;n<t.length;n++)if(L(t[n],e))return n;return-1}function D(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var P="data-server-rendered",H=["component","directive","filter"],R=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],M={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:x,isReservedAttr:x,isUnknownElement:x,getTagNamespace:F,parsePlatformTagName:Q,mustUseProp:x,async:!0,_lifecycleHooks:R},N=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function j(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var V=new RegExp("[^"+N.source+".$_\\d]");var G,$="__proto__"in{},W="undefined"!=typeof window,z="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,X=z&&WXEnvironment.platform.toLowerCase(),q=W&&window.navigator.userAgent.toLowerCase(),Y=q&&/msie|trident/.test(q),J=q&&q.indexOf("msie 9.0")>0,Z=q&&q.indexOf("edge/")>0,tt=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===X),et=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),nt={}.watch,it=!1;if(W)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){it=!0}}),window.addEventListener("test-passive",null,rt)}catch(t){}var st=function(){return void 0===G&&(G=!W&&!z&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),G},at=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function At(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,ut="undefined"!=typeof Symbol&&At(Symbol)&&"undefined"!=typeof Reflect&&At(Reflect.ownKeys);ot="undefined"!=typeof Set&&At(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var lt=F,ct=0,ht=function(){this.id=ct++,this.subs=[]};ht.prototype.addSub=function(t){this.subs.push(t)},ht.prototype.removeSub=function(t){v(this.subs,t)},ht.prototype.depend=function(){ht.target&&ht.target.addDep(this)},ht.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},ht.target=null;var dt=[];function ft(t){dt.push(t),ht.target=t}function pt(){dt.pop(),ht.target=dt[dt.length-1]}var gt=function(t,e,n,i,r,s,a,A){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=A,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},mt={child:{configurable:!0}};mt.child.get=function(){return this.componentInstance},Object.defineProperties(gt.prototype,mt);var vt=function(t){void 0===t&&(t="");var e=new gt;return e.text=t,e.isComment=!0,e};function yt(t){return new gt(void 0,void 0,void 0,String(t))}function Bt(t){var e=new gt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var bt=Array.prototype,wt=Object.create(bt);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=bt[t];j(wt,t,function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var r,s=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&a.observeArray(r),a.dep.notify(),s})});var Ct=Object.getOwnPropertyNames(wt),_t=!0;function Tt(t){_t=t}var Et=function(t){var e;this.value=t,this.dep=new ht,this.vmCount=0,j(t,"__ob__",this),Array.isArray(t)?($?(e=wt,t.__proto__=e):function(t,e,n){for(var i=0,r=n.length;i<r;i++){var s=n[i];j(t,s,e[s])}}(t,wt,Ct),this.observeArray(t)):this.walk(t)};function St(t,e){var n;if(A(t)&&!(t instanceof gt))return B(t,"__ob__")&&t.__ob__ instanceof Et?n=t.__ob__:_t&&!st()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Et(t)),e&&n&&n.vmCount++,n}function kt(t,e,n,i,r){var s=new ht,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var A=a&&a.get,o=a&&a.set;A&&!o||2!==arguments.length||(n=t[e]);var u=!r&&St(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=A?A.call(t):n;return ht.target&&(s.depend(),u&&(u.dep.depend(),Array.isArray(e)&&function t(e){for(var n=void 0,i=0,r=e.length;i<r;i++)(n=e[i])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e))),e},set:function(e){var i=A?A.call(t):n;e===i||e!=e&&i!=i||A&&!o||(o?o.call(t,e):n=e,u=!r&&St(e),s.notify())}})}}function Ut(t,e,n){if(Array.isArray(t)&&c(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?n:i?(kt(i.value,e,n),i.dep.notify(),n):(t[e]=n,n)}function It(t,e){if(Array.isArray(t)&&c(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||B(t,e)&&(delete t[e],n&&n.dep.notify())}}Et.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)kt(t,e[n])},Et.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)St(t[e])};var Ft=M.optionMergeStrategies;function xt(t,e){if(!e)return t;for(var n,i,r,s=ut?Reflect.ownKeys(e):Object.keys(e),a=0;a<s.length;a++)"__ob__"!==(n=s[a])&&(i=t[n],r=e[n],B(t,n)?i!==r&&u(i)&&u(r)&&xt(i,r):Ut(t,n,r));return t}function Qt(t,e,n){return n?function(){var i="function"==typeof e?e.call(n,n):e,r="function"==typeof t?t.call(n,n):t;return i?xt(i,r):r}:e?t?function(){return xt("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function Lt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Ot(t,e,n,i){var r=Object.create(t||null);return e?U(r,e):r}Ft.data=function(t,e,n){return n?Qt(t,e,n):e&&"function"!=typeof e?t:Qt(t,e)},R.forEach(function(t){Ft[t]=Lt}),H.forEach(function(t){Ft[t+"s"]=Ot}),Ft.watch=function(t,e,n,i){if(t===nt&&(t=void 0),e===nt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var r={};for(var s in U(r,t),e){var a=r[s],A=e[s];a&&!Array.isArray(a)&&(a=[a]),r[s]=a?a.concat(A):Array.isArray(A)?A:[A]}return r},Ft.props=Ft.methods=Ft.inject=Ft.computed=function(t,e,n,i){if(!t)return e;var r=Object.create(null);return U(r,t),e&&U(r,e),r},Ft.provide=Qt;var Dt=function(t,e){return void 0===e?t:e};function Pt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var i,r,s={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(s[C(r)]={type:null});else if(u(n))for(var a in n)r=n[a],s[C(a)]=u(r)?r:{type:r};t.props=s}}(e),function(t,e){var n=t.inject;if(n){var i=t.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(u(n))for(var s in n){var a=n[s];i[s]=u(a)?U({from:s},a):{from:a}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"==typeof i&&(e[n]={bind:i,update:i})}}(e),!e._base&&(e.extends&&(t=Pt(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=Pt(t,e.mixins[i],n);var s,a={};for(s in t)A(s);for(s in e)B(t,s)||A(s);function A(i){var r=Ft[i]||Dt;a[i]=r(t[i],e[i],n,i)}return a}function Ht(t,e,n,i){if("string"==typeof n){var r=t[e];if(B(r,n))return r[n];var s=C(n);if(B(r,s))return r[s];var a=_(s);return B(r,a)?r[a]:r[n]||r[s]||r[a]}}function Rt(t,e,n,i){var r=e[t],s=!B(n,t),a=n[t],A=Kt(Boolean,r.type);if(A>-1)if(s&&!B(r,"default"))a=!1;else if(""===a||a===E(t)){var o=Kt(String,r.type);(o<0||A<o)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!B(e,"default"))return;var i=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof i&&"Function"!==Mt(e.type)?i.call(t):i}(i,r,t);var u=_t;Tt(!0),St(a),Tt(u)}return a}function Mt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Nt(t,e){return Mt(t)===Mt(e)}function Kt(t,e){if(!Array.isArray(e))return Nt(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(Nt(e[n],t))return n;return-1}function jt(t,e,n){ft();try{if(e)for(var i=e;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var s=0;s<r.length;s++)try{if(!1===r[s].call(i,t,e,n))return}catch(t){Gt(t,i,"errorCaptured hook")}}Gt(t,e,n)}finally{pt()}}function Vt(t,e,n,i,r){var s;try{(s=n?t.apply(e,n):t.call(e))&&!s._isVue&&h(s)&&!s._handled&&(s.catch(function(t){return jt(t,i,r+" (Promise/async)")}),s._handled=!0)}catch(t){jt(t,i,r)}return s}function Gt(t,e,n){if(M.errorHandler)try{return M.errorHandler.call(null,t,e,n)}catch(e){e!==t&&$t(e,null,"config.errorHandler")}$t(t,e,n)}function $t(t,e,n){if(!W&&!z||"undefined"==typeof console)throw t;console.error(t)}var Wt,zt=!1,Xt=[],qt=!1;function Yt(){qt=!1;var t=Xt.slice(0);Xt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&At(Promise)){var Jt=Promise.resolve();Wt=function(){Jt.then(Yt),tt&&setTimeout(F)},zt=!0}else if(Y||"undefined"==typeof MutationObserver||!At(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Wt="undefined"!=typeof setImmediate&&At(setImmediate)?function(){setImmediate(Yt)}:function(){setTimeout(Yt,0)};else{var Zt=1,te=new MutationObserver(Yt),ee=document.createTextNode(String(Zt));te.observe(ee,{characterData:!0}),Wt=function(){Zt=(Zt+1)%2,ee.data=String(Zt)},zt=!0}function ne(t,e){var n;if(Xt.push(function(){if(t)try{t.call(e)}catch(t){jt(t,e,"nextTick")}else n&&n(e)}),qt||(qt=!0,Wt()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}var ie=new ot;function re(t){!function t(e,n){var i,r;var s=Array.isArray(e);if(!s&&!A(e)||Object.isFrozen(e)||e instanceof gt)return;if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(s)for(i=e.length;i--;)t(e[i],n);else for(r=Object.keys(e),i=r.length;i--;)t(e[r[i]],n)}(t,ie),ie.clear()}var se=b(function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),i="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=i?t.slice(1):t,once:n,capture:i,passive:e}});function ae(t,e){function n(){var t=arguments,i=n.fns;if(!Array.isArray(i))return Vt(i,null,arguments,e,"v-on handler");for(var r=i.slice(),s=0;s<r.length;s++)Vt(r[s],null,t,e,"v-on handler")}return n.fns=t,n}function Ae(t,e,n,r,a,A){var o,u,l,c;for(o in t)u=t[o],l=e[o],c=se(o),i(u)||(i(l)?(i(u.fns)&&(u=t[o]=ae(u,A)),s(c.once)&&(u=t[o]=a(c.name,u,c.capture)),n(c.name,u,c.capture,c.passive,c.params)):u!==l&&(l.fns=u,t[o]=l));for(o in e)i(t[o])&&r((c=se(o)).name,e[o],c.capture)}function oe(t,e,n){var a;t instanceof gt&&(t=t.data.hook||(t.data.hook={}));var A=t[e];function o(){n.apply(this,arguments),v(a.fns,o)}i(A)?a=ae([o]):r(A.fns)&&s(A.merged)?(a=A).fns.push(o):a=ae([A,o]),a.merged=!0,t[e]=a}function ue(t,e,n,i,s){if(r(e)){if(B(e,n))return t[n]=e[n],s||delete e[n],!0;if(B(e,i))return t[n]=e[i],s||delete e[i],!0}return!1}function le(t){return a(t)?[yt(t)]:Array.isArray(t)?function t(e,n){var A=[];var o,u,l,c;for(o=0;o<e.length;o++)i(u=e[o])||"boolean"==typeof u||(l=A.length-1,c=A[l],Array.isArray(u)?u.length>0&&(ce((u=t(u,(n||"")+"_"+o))[0])&&ce(c)&&(A[l]=yt(c.text+u[0].text),u.shift()),A.push.apply(A,u)):a(u)?ce(c)?A[l]=yt(c.text+u):""!==u&&A.push(yt(u)):ce(u)&&ce(c)?A[l]=yt(c.text+u.text):(s(e._isVList)&&r(u.tag)&&i(u.key)&&r(n)&&(u.key="__vlist"+n+"_"+o+"__"),A.push(u)));return A}(t):void 0}function ce(t){return r(t)&&r(t.text)&&!1===t.isComment}function he(t,e){if(t){for(var n=Object.create(null),i=ut?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){var s=i[r];if("__ob__"!==s){for(var a=t[s].from,A=e;A;){if(A._provided&&B(A._provided,a)){n[s]=A._provided[a];break}A=A.$parent}if(!A)if("default"in t[s]){var o=t[s].default;n[s]="function"==typeof o?o.call(e):o}else 0}}return n}}function de(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var s=t[i],a=s.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,s.context!==e&&s.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(s);else{var A=a.slot,o=n[A]||(n[A]=[]);"template"===s.tag?o.push.apply(o,s.children||[]):o.push(s)}}for(var u in n)n[u].every(fe)&&delete n[u];return n}function fe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function pe(t,e,i){var r,s=Object.keys(e).length>0,a=t?!!t.$stable:!s,A=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&i&&i!==n&&A===i.$key&&!s&&!i.$hasNormal)return i;for(var o in r={},t)t[o]&&"$"!==o[0]&&(r[o]=ge(e,o,t[o]))}else r={};for(var u in e)u in r||(r[u]=me(e,u));return t&&Object.isExtensible(t)&&(t._normalized=r),j(r,"$stable",a),j(r,"$key",A),j(r,"$hasNormal",s),r}function ge(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:le(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function me(t,e){return function(){return t[e]}}function ve(t,e){var n,i,s,a,o;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,s=t.length;i<s;i++)n[i]=e(t[i],i);else if("number"==typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(A(t))if(ut&&t[Symbol.iterator]){n=[];for(var u=t[Symbol.iterator](),l=u.next();!l.done;)n.push(e(l.value,n.length)),l=u.next()}else for(a=Object.keys(t),n=new Array(a.length),i=0,s=a.length;i<s;i++)o=a[i],n[i]=e(t[o],o,i);return r(n)||(n=[]),n._isVList=!0,n}function ye(t,e,n,i){var r,s=this.$scopedSlots[t];s?(n=n||{},i&&(n=U(U({},i),n)),r=s(n)||e):r=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},r):r}function Be(t){return Ht(this.$options,"filters",t)||Q}function be(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function we(t,e,n,i,r){var s=M.keyCodes[e]||n;return r&&i&&!M.keyCodes[e]?be(r,i):s?be(s,t):i?E(i)!==e:void 0}function Ce(t,e,n,i,r){if(n)if(A(n)){var s;Array.isArray(n)&&(n=I(n));var a=function(a){if("class"===a||"style"===a||m(a))s=t;else{var A=t.attrs&&t.attrs.type;s=i||M.mustUseProp(e,A,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var o=C(a),u=E(a);o in s||u in s||(s[a]=n[a],r&&((t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}))};for(var o in n)a(o)}else;return t}function _e(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e?i:(Ee(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),i)}function Te(t,e,n){return Ee(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ee(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&Se(t[i],e+"_"+i,n);else Se(t,e,n)}function Se(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function ke(t,e){if(e)if(u(e)){var n=t.on=t.on?U({},t.on):{};for(var i in e){var r=n[i],s=e[i];n[i]=r?[].concat(r,s):s}}else;return t}function Ue(t,e,n,i){e=e||{$stable:!n};for(var r=0;r<t.length;r++){var s=t[r];Array.isArray(s)?Ue(s,e,n):s&&(s.proxy&&(s.fn.proxy=!0),e[s.key]=s.fn)}return i&&(e.$key=i),e}function Ie(t,e){for(var n=0;n<e.length;n+=2){var i=e[n];"string"==typeof i&&i&&(t[e[n]]=e[n+1])}return t}function Fe(t,e){return"string"==typeof t?e+t:t}function xe(t){t._o=Te,t._n=f,t._s=d,t._l=ve,t._t=ye,t._q=L,t._i=O,t._m=_e,t._f=Be,t._k=we,t._b=Ce,t._v=yt,t._e=vt,t._u=Ue,t._g=ke,t._d=Ie,t._p=Fe}function Qe(t,e,i,r,a){var A,o=this,u=a.options;B(r,"_uid")?(A=Object.create(r))._original=r:(A=r,r=r._original);var l=s(u._compiled),c=!l;this.data=t,this.props=e,this.children=i,this.parent=r,this.listeners=t.on||n,this.injections=he(u.inject,r),this.slots=function(){return o.$slots||pe(t.scopedSlots,o.$slots=de(i,r)),o.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pe(t.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=pe(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,n,i){var s=Ke(A,t,e,n,i,c);return s&&!Array.isArray(s)&&(s.fnScopeId=u._scopeId,s.fnContext=r),s}:this._c=function(t,e,n,i){return Ke(A,t,e,n,i,c)}}function Le(t,e,n,i,r){var s=Bt(t);return s.fnContext=n,s.fnOptions=i,e.slot&&((s.data||(s.data={})).slot=e.slot),s}function Oe(t,e){for(var n in e)t[C(n)]=e[n]}xe(Qe.prototype);var De={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;De.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Je)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var i=e.componentOptions;!function(t,e,i,r,s){0;var a=r.data.scopedSlots,A=t.$scopedSlots,o=!!(a&&!a.$stable||A!==n&&!A.$stable||a&&t.$scopedSlots.$key!==a.$key),u=!!(s||t.$options._renderChildren||o);t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r);if(t.$options._renderChildren=s,t.$attrs=r.data.attrs||n,t.$listeners=i||n,e&&t.$options.props){Tt(!1);for(var l=t._props,c=t.$options._propKeys||[],h=0;h<c.length;h++){var d=c[h],f=t.$options.props;l[d]=Rt(d,f,e,t)}Tt(!0),t.$options.propsData=e}i=i||n;var p=t.$options._parentListeners;t.$options._parentListeners=i,Ye(t,i,p),u&&(t.$slots=de(s,r.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,i.propsData,i.listeners,e,i.children)},insert:function(t){var e,n=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,nn(i,"mounted")),t.data.keepAlive&&(n._isMounted?((e=i)._inactive=!1,sn.push(e)):en(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(n&&(e._directInactive=!0,tn(e)))return;if(!e._inactive){e._inactive=!0;for(var i=0;i<e.$children.length;i++)t(e.$children[i]);nn(e,"deactivated")}}(e,!0):e.$destroy())}},Pe=Object.keys(De);function He(t,e,a,o,u){if(!i(t)){var l=a.$options._base;if(A(t)&&(t=l.extend(t)),"function"==typeof t){var c;if(i(t.cid)&&void 0===(t=function(t,e){if(s(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;var n=Ve;n&&r(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(s(t.loading)&&r(t.loadingComp))return t.loadingComp;if(n&&!r(t.owners)){var a=t.owners=[n],o=!0,u=null,l=null;n.$on("hook:destroyed",function(){return v(a,n)});var c=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},d=D(function(n){t.resolved=Ge(n,e),o?a.length=0:c(!0)}),f=D(function(e){r(t.errorComp)&&(t.error=!0,c(!0))}),p=t(d,f);return A(p)&&(h(p)?i(t.resolved)&&p.then(d,f):h(p.component)&&(p.component.then(d,f),r(p.error)&&(t.errorComp=Ge(p.error,e)),r(p.loading)&&(t.loadingComp=Ge(p.loading,e),0===p.delay?t.loading=!0:u=setTimeout(function(){u=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,c(!1))},p.delay||200)),r(p.timeout)&&(l=setTimeout(function(){l=null,i(t.resolved)&&f(null)},p.timeout)))),o=!1,t.loading?t.loadingComp:t.resolved}}(c=t,l)))return function(t,e,n,i,r){var s=vt();return s.asyncFactory=t,s.asyncMeta={data:e,context:n,children:i,tag:r},s}(c,e,a,o,u);e=e||{},Tn(t),r(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var s=e.on||(e.on={}),a=s[i],A=e.model.callback;r(a)?(Array.isArray(a)?-1===a.indexOf(A):a!==A)&&(s[i]=[A].concat(a)):s[i]=A}(t.options,e);var d=function(t,e,n){var s=e.options.props;if(!i(s)){var a={},A=t.attrs,o=t.props;if(r(A)||r(o))for(var u in s){var l=E(u);ue(a,o,u,l,!0)||ue(a,A,u,l,!1)}return a}}(e,t);if(s(t.options.functional))return function(t,e,i,s,a){var A=t.options,o={},u=A.props;if(r(u))for(var l in u)o[l]=Rt(l,u,e||n);else r(i.attrs)&&Oe(o,i.attrs),r(i.props)&&Oe(o,i.props);var c=new Qe(i,o,a,s,t),h=A.render.call(null,c._c,c);if(h instanceof gt)return Le(h,i,c.parent,A);if(Array.isArray(h)){for(var d=le(h)||[],f=new Array(d.length),p=0;p<d.length;p++)f[p]=Le(d[p],i,c.parent,A);return f}}(t,d,e,a,o);var f=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var p=e.slot;e={},p&&(e.slot=p)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<Pe.length;n++){var i=Pe[n],r=e[i],s=De[i];r===s||r&&r._merged||(e[i]=r?Re(s,r):s)}}(e);var g=t.options.name||u;return new gt("vue-component-"+t.cid+(g?"-"+g:""),e,void 0,void 0,void 0,a,{Ctor:t,propsData:d,listeners:f,tag:u,children:o},c)}}}function Re(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}var Me=1,Ne=2;function Ke(t,e,n,o,u,l){return(Array.isArray(n)||a(n))&&(u=o,o=n,n=void 0),s(l)&&(u=Ne),function(t,e,n,a,o){if(r(n)&&r(n.__ob__))return vt();r(n)&&r(n.is)&&(e=n.is);if(!e)return vt();0;Array.isArray(a)&&"function"==typeof a[0]&&((n=n||{}).scopedSlots={default:a[0]},a.length=0);o===Ne?a=le(a):o===Me&&(a=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(a));var u,l;if("string"==typeof e){var c;l=t.$vnode&&t.$vnode.ns||M.getTagNamespace(e),u=M.isReservedTag(e)?new gt(M.parsePlatformTagName(e),n,a,void 0,void 0,t):n&&n.pre||!r(c=Ht(t.$options,"components",e))?new gt(e,n,a,void 0,void 0,t):He(c,n,t,a,e)}else u=He(e,n,t,a);return Array.isArray(u)?u:r(u)?(r(l)&&function t(e,n,a){e.ns=n;"foreignObject"===e.tag&&(n=void 0,a=!0);if(r(e.children))for(var A=0,o=e.children.length;A<o;A++){var u=e.children[A];r(u.tag)&&(i(u.ns)||s(a)&&"svg"!==u.tag)&&t(u,n,a)}}(u,l),r(n)&&function(t){A(t.style)&&re(t.style);A(t.class)&&re(t.class)}(n),u):vt()}(t,e,n,o,u)}var je,Ve=null;function Ge(t,e){return(t.__esModule||ut&&"Module"===t[Symbol.toStringTag])&&(t=t.default),A(t)?e.extend(t):t}function $e(t){return t.isComment&&t.asyncFactory}function We(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(r(n)&&(r(n.componentOptions)||$e(n)))return n}}function ze(t,e){je.$on(t,e)}function Xe(t,e){je.$off(t,e)}function qe(t,e){var n=je;return function i(){null!==e.apply(null,arguments)&&n.$off(t,i)}}function Ye(t,e,n){je=t,Ae(e,n||{},ze,Xe,qe,t),je=void 0}var Je=null;function Ze(t){var e=Je;return Je=t,function(){Je=e}}function tn(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function en(t,e){if(e){if(t._directInactive=!1,tn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)en(t.$children[n]);nn(t,"activated")}}function nn(t,e){ft();var n=t.$options[e],i=e+" hook";if(n)for(var r=0,s=n.length;r<s;r++)Vt(n[r],t,null,t,i);t._hasHookEvent&&t.$emit("hook:"+e),pt()}var rn=[],sn=[],an={},An=!1,on=!1,un=0;var ln=0,cn=Date.now;if(W&&!Y){var hn=window.performance;hn&&"function"==typeof hn.now&&cn()>document.createEvent("Event").timeStamp&&(cn=function(){return hn.now()})}function dn(){var t,e;for(ln=cn(),on=!0,rn.sort(function(t,e){return t.id-e.id}),un=0;un<rn.length;un++)(t=rn[un]).before&&t.before(),e=t.id,an[e]=null,t.run();var n=sn.slice(),i=rn.slice();un=rn.length=sn.length=0,an={},An=on=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,en(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&nn(i,"updated")}}(i),at&&M.devtools&&at.emit("flush")}var fn=0,pn=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++fn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ot,this.newDepIds=new ot,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!V.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=F)),this.value=this.lazy?void 0:this.get()};pn.prototype.get=function(){var t;ft(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;jt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&re(t),pt(),this.cleanupDeps()}return t},pn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},pn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==an[e]){if(an[e]=!0,on){for(var n=rn.length-1;n>un&&rn[n].id>t.id;)n--;rn.splice(n+1,0,t)}else rn.push(t);An||(An=!0,ne(dn))}}(this)},pn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||A(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){jt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var gn={enumerable:!0,configurable:!0,get:F,set:F};function mn(t,e,n){gn.get=function(){return this[e][n]},gn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,gn)}function vn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],s=!t.$parent;s||Tt(!1);var a=function(s){r.push(s);var a=Rt(s,e,n,t);kt(i,s,a),s in t||mn(t,"_props",s)};for(var A in e)a(A);Tt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?F:S(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return jt(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);for(;r--;){var s=n[r];0,i&&B(i,s)||K(s)||mn(t,"_data",s)}St(e,!0)}(t):St(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),i=st();for(var r in e){var s=e[r],a="function"==typeof s?s:s.get;0,i||(n[r]=new pn(t,a||F,F,yn)),r in t||Bn(t,r,s)}}(t,e.computed),e.watch&&e.watch!==nt&&function(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)Cn(t,n,i[r]);else Cn(t,n,i)}}(t,e.watch)}var yn={lazy:!0};function Bn(t,e,n){var i=!st();"function"==typeof n?(gn.get=i?bn(e):wn(n),gn.set=F):(gn.get=n.get?i&&!1!==n.cache?bn(e):wn(n.get):F,gn.set=n.set||F),Object.defineProperty(t,e,gn)}function bn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ht.target&&e.depend(),e.value}}function wn(t){return function(){return t.call(this,this)}}function Cn(t,e,n,i){return u(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,i)}var _n=0;function Tn(t){var e=t.options;if(t.super){var n=Tn(t.super);if(n!==t.superOptions){t.superOptions=n;var i=function(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}(t);i&&U(t.extendOptions,i),(e=t.options=Pt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function En(t){this._init(t)}function Sn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var s=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Pt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)mn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)Bn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,H.forEach(function(t){a[t]=n[t]}),s&&(a.options.components[s]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=U({},a.options),r[i]=a,a}}function kn(t){return t&&(t.Ctor.options.name||t.tag)}function Un(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function In(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var s in n){var a=n[s];if(a){var A=kn(a.componentOptions);A&&!e(A)&&Fn(n,s,i,r)}}}function Fn(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,v(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=_n++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Pt(Tn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ye(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,r=i&&i.context;t.$slots=de(e._renderChildren,r),t.$scopedSlots=n,t._c=function(e,n,i,r){return Ke(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return Ke(t,e,n,i,r,!0)};var s=i&&i.data;kt(t,"$attrs",s&&s.attrs||n,null,!0),kt(t,"$listeners",e._parentListeners||n,null,!0)}(e),nn(e,"beforeCreate"),function(t){var e=he(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach(function(n){kt(t,n,e[n])}),Tt(!0))}(e),vn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),nn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(En),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Ut,t.prototype.$delete=It,t.prototype.$watch=function(t,e,n){if(u(e))return Cn(this,t,e,n);(n=n||{}).user=!0;var i=new pn(this,t,e,n);if(n.immediate)try{e.call(this,i.value)}catch(t){jt(t,this,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(En),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var r=0,s=t.length;r<s;r++)i.$on(t[r],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)n.$off(t[i],e);return n}var s,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var A=a.length;A--;)if((s=a[A])===e||s.fn===e){a.splice(A,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?k(n):n;for(var i=k(arguments,1),r='event handler for "'+t+'"',s=0,a=n.length;s<a;s++)Vt(n[s],e,i,e,r)}return e}}(En),function(t){t.prototype._update=function(t,e){var n=this,i=n.$el,r=n._vnode,s=Ze(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),s(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){nn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||v(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),nn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(En),function(t){xe(t.prototype),t.prototype.$nextTick=function(t){return ne(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,r=n._parentVnode;r&&(e.$scopedSlots=pe(r.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=r;try{Ve=e,t=i.call(e._renderProxy,e.$createElement)}catch(n){jt(n,e,"render"),t=e._vnode}finally{Ve=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof gt||(t=vt()),t.parent=r,t}}(En);var xn=[String,RegExp,Array],Qn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:xn,exclude:xn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Fn(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){In(t,function(t){return Un(e,t)})}),this.$watch("exclude",function(e){In(t,function(t){return!Un(e,t)})})},render:function(){var t=this.$slots.default,e=We(t),n=e&&e.componentOptions;if(n){var i=kn(n),r=this.include,s=this.exclude;if(r&&(!i||!Un(r,i))||s&&i&&Un(s,i))return e;var a=this.cache,A=this.keys,o=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[o]?(e.componentInstance=a[o].componentInstance,v(A,o),A.push(o)):(a[o]=e,A.push(o),this.max&&A.length>parseInt(this.max)&&Fn(a,A[0],A,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return M}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:U,mergeOptions:Pt,defineReactive:kt},t.set=Ut,t.delete=It,t.nextTick=ne,t.observable=function(t){return St(t),t},t.options=Object.create(null),H.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,U(t.options.components,Qn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Pt(this.options,t),this}}(t),Sn(t),function(t){H.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(En),Object.defineProperty(En.prototype,"$isServer",{get:st}),Object.defineProperty(En.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(En,"FunctionalRenderContext",{value:Qe}),En.version="2.6.12";var Ln=p("style,class"),On=p("input,textarea,option,select,progress"),Dn=function(t,e,n){return"value"===n&&On(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Pn=p("contenteditable,draggable,spellcheck"),Hn=p("events,caret,typing,plaintext-only"),Rn=function(t,e){return Vn(e)||"false"===e?"false":"contenteditable"===t&&Hn(e)?e:"true"},Mn=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Nn="http://www.w3.org/1999/xlink",Kn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},jn=function(t){return Kn(t)?t.slice(6,t.length):""},Vn=function(t){return null==t||!1===t};function Gn(t){for(var e=t.data,n=t,i=t;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=$n(i.data,e));for(;r(n=n.parent);)n&&n.data&&(e=$n(e,n.data));return function(t,e){if(r(t)||r(e))return Wn(t,zn(e));return""}(e.staticClass,e.class)}function $n(t,e){return{staticClass:Wn(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Wn(t,e){return t?e?t+" "+e:t:e||""}function zn(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,s=t.length;i<s;i++)r(e=zn(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):A(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var Xn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},qn=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Yn=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Jn=function(t){return qn(t)||Yn(t)};function Zn(t){return Yn(t)?"svg":"math"===t?"math":void 0}var ti=Object.create(null);var ei=p("text,number,password,search,email,tel,url");function ni(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}var ii=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(t,e){return document.createElementNS(Xn[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),ri={create:function(t,e){si(e)},update:function(t,e){t.data.ref!==e.data.ref&&(si(t,!0),si(e))},destroy:function(t){si(t,!0)}};function si(t,e){var n=t.data.ref;if(r(n)){var i=t.context,s=t.componentInstance||t.elm,a=i.$refs;e?Array.isArray(a[n])?v(a[n],s):a[n]===s&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(s)<0&&a[n].push(s):a[n]=[s]:a[n]=s}}var ai=new gt("",{},[]),Ai=["create","activate","update","remove","destroy"];function oi(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,i=r(n=t.data)&&r(n=n.attrs)&&n.type,s=r(n=e.data)&&r(n=n.attrs)&&n.type;return i===s||ei(i)&&ei(s)}(t,e)||s(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function ui(t,e,n){var i,s,a={};for(i=e;i<=n;++i)r(s=t[i].key)&&(a[s]=i);return a}var li={create:ci,update:ci,destroy:function(t){ci(t,ai)}};function ci(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,i,r,s=t===ai,a=e===ai,A=di(t.data.directives,t.context),o=di(e.data.directives,e.context),u=[],l=[];for(n in o)i=A[n],r=o[n],i?(r.oldValue=i.value,r.oldArg=i.arg,pi(r,"update",e,t),r.def&&r.def.componentUpdated&&l.push(r)):(pi(r,"bind",e,t),r.def&&r.def.inserted&&u.push(r));if(u.length){var c=function(){for(var n=0;n<u.length;n++)pi(u[n],"inserted",e,t)};s?oe(e,"insert",c):c()}l.length&&oe(e,"postpatch",function(){for(var n=0;n<l.length;n++)pi(l[n],"componentUpdated",e,t)});if(!s)for(n in A)o[n]||pi(A[n],"unbind",t,t,a)}(t,e)}var hi=Object.create(null);function di(t,e){var n,i,r=Object.create(null);if(!t)return r;for(n=0;n<t.length;n++)(i=t[n]).modifiers||(i.modifiers=hi),r[fi(i)]=i,i.def=Ht(e.$options,"directives",i.name);return r}function fi(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function pi(t,e,n,i,r){var s=t.def&&t.def[e];if(s)try{s(n.elm,t,n,i,r)}catch(i){jt(i,n.context,"directive "+t.name+" "+e+" hook")}}var gi=[ri,li];function mi(t,e){var n=e.componentOptions;if(!(r(n)&&!1===n.Ctor.options.inheritAttrs||i(t.data.attrs)&&i(e.data.attrs))){var s,a,A=e.elm,o=t.data.attrs||{},u=e.data.attrs||{};for(s in r(u.__ob__)&&(u=e.data.attrs=U({},u)),u)a=u[s],o[s]!==a&&vi(A,s,a);for(s in(Y||Z)&&u.value!==o.value&&vi(A,"value",u.value),o)i(u[s])&&(Kn(s)?A.removeAttributeNS(Nn,jn(s)):Pn(s)||A.removeAttribute(s))}}function vi(t,e,n){t.tagName.indexOf("-")>-1?yi(t,e,n):Mn(e)?Vn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Pn(e)?t.setAttribute(e,Rn(e,n)):Kn(e)?Vn(n)?t.removeAttributeNS(Nn,jn(e)):t.setAttributeNS(Nn,e,n):yi(t,e,n)}function yi(t,e,n){if(Vn(n))t.removeAttribute(e);else{if(Y&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Bi={create:mi,update:mi};function bi(t,e){var n=e.elm,s=e.data,a=t.data;if(!(i(s.staticClass)&&i(s.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var A=Gn(e),o=n._transitionClasses;r(o)&&(A=Wn(A,zn(o))),A!==n._prevClass&&(n.setAttribute("class",A),n._prevClass=A)}}var wi,Ci,_i,Ti,Ei,Si,ki={create:bi,update:bi},Ui=/[\w).+\-_$\]]/;function Ii(t){var e,n,i,r,s,a=!1,A=!1,o=!1,u=!1,l=0,c=0,h=0,d=0;for(i=0;i<t.length;i++)if(n=e,e=t.charCodeAt(i),a)39===e&&92!==n&&(a=!1);else if(A)34===e&&92!==n&&(A=!1);else if(o)96===e&&92!==n&&(o=!1);else if(u)47===e&&92!==n&&(u=!1);else if(124!==e||124===t.charCodeAt(i+1)||124===t.charCodeAt(i-1)||l||c||h){switch(e){case 34:A=!0;break;case 39:a=!0;break;case 96:o=!0;break;case 40:h++;break;case 41:h--;break;case 91:c++;break;case 93:c--;break;case 123:l++;break;case 125:l--}if(47===e){for(var f=i-1,p=void 0;f>=0&&" "===(p=t.charAt(f));f--);p&&Ui.test(p)||(u=!0)}}else void 0===r?(d=i+1,r=t.slice(0,i).trim()):g();function g(){(s||(s=[])).push(t.slice(d,i).trim()),d=i+1}if(void 0===r?r=t.slice(0,i).trim():0!==d&&g(),s)for(i=0;i<s.length;i++)r=Fi(r,s[i]);return r}function Fi(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var i=e.slice(0,n),r=e.slice(n+1);return'_f("'+i+'")('+t+(")"!==r?","+r:r)}function xi(t,e){console.error("[Vue compiler]: "+t)}function Qi(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function Li(t,e,n,i,r){(t.props||(t.props=[])).push(Vi({name:e,value:n,dynamic:r},i)),t.plain=!1}function Oi(t,e,n,i,r){(r?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(Vi({name:e,value:n,dynamic:r},i)),t.plain=!1}function Di(t,e,n,i){t.attrsMap[e]=n,t.attrsList.push(Vi({name:e,value:n},i))}function Pi(t,e,n,i,r,s,a,A){(t.directives||(t.directives=[])).push(Vi({name:e,rawName:n,value:i,arg:r,isDynamicArg:s,modifiers:a},A)),t.plain=!1}function Hi(t,e,n){return n?"_p("+e+',"'+t+'")':t+e}function Ri(t,e,i,r,s,a,A,o){var u;(r=r||n).right?o?e="("+e+")==='click'?'contextmenu':("+e+")":"click"===e&&(e="contextmenu",delete r.right):r.middle&&(o?e="("+e+")==='click'?'mouseup':("+e+")":"click"===e&&(e="mouseup")),r.capture&&(delete r.capture,e=Hi("!",e,o)),r.once&&(delete r.once,e=Hi("~",e,o)),r.passive&&(delete r.passive,e=Hi("&",e,o)),r.native?(delete r.native,u=t.nativeEvents||(t.nativeEvents={})):u=t.events||(t.events={});var l=Vi({value:i.trim(),dynamic:o},A);r!==n&&(l.modifiers=r);var c=u[e];Array.isArray(c)?s?c.unshift(l):c.push(l):u[e]=c?s?[l,c]:[c,l]:l,t.plain=!1}function Mi(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}function Ni(t,e,n){var i=Ki(t,":"+e)||Ki(t,"v-bind:"+e);if(null!=i)return Ii(i);if(!1!==n){var r=Ki(t,e);if(null!=r)return JSON.stringify(r)}}function Ki(t,e,n){var i;if(null!=(i=t.attrsMap[e]))for(var r=t.attrsList,s=0,a=r.length;s<a;s++)if(r[s].name===e){r.splice(s,1);break}return n&&delete t.attrsMap[e],i}function ji(t,e){for(var n=t.attrsList,i=0,r=n.length;i<r;i++){var s=n[i];if(e.test(s.name))return n.splice(i,1),s}}function Vi(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function Gi(t,e,n){var i=n||{},r=i.number,s="$$v";i.trim&&(s="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(s="_n("+s+")");var a=$i(e,s);t.model={value:"("+e+")",expression:JSON.stringify(e),callback:"function ($$v) {"+a+"}"}}function $i(t,e){var n=function(t){if(t=t.trim(),wi=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<wi-1)return(Ti=t.lastIndexOf("."))>-1?{exp:t.slice(0,Ti),key:'"'+t.slice(Ti+1)+'"'}:{exp:t,key:null};Ci=t,Ti=Ei=Si=0;for(;!zi();)Xi(_i=Wi())?Yi(_i):91===_i&&qi(_i);return{exp:t.slice(0,Ei),key:t.slice(Ei+1,Si)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Wi(){return Ci.charCodeAt(++Ti)}function zi(){return Ti>=wi}function Xi(t){return 34===t||39===t}function qi(t){var e=1;for(Ei=Ti;!zi();)if(Xi(t=Wi()))Yi(t);else if(91===t&&e++,93===t&&e--,0===e){Si=Ti;break}}function Yi(t){for(var e=t;!zi()&&(t=Wi())!==e;);}var Ji,Zi="__r",tr="__c";function er(t,e,n){var i=Ji;return function r(){null!==e.apply(null,arguments)&&rr(t,r,n,i)}}var nr=zt&&!(et&&Number(et[1])<=53);function ir(t,e,n,i){if(nr){var r=ln,s=e;e=s._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return s.apply(this,arguments)}}Ji.addEventListener(t,e,it?{capture:n,passive:i}:n)}function rr(t,e,n,i){(i||Ji).removeEventListener(t,e._wrapper||e,n)}function sr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},s=t.data.on||{};Ji=e.elm,function(t){if(r(t[Zi])){var e=Y?"change":"input";t[e]=[].concat(t[Zi],t[e]||[]),delete t[Zi]}r(t[tr])&&(t.change=[].concat(t[tr],t.change||[]),delete t[tr])}(n),Ae(n,s,ir,rr,er,e.context),Ji=void 0}}var ar,Ar={create:sr,update:sr};function or(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,s,a=e.elm,A=t.data.domProps||{},o=e.data.domProps||{};for(n in r(o.__ob__)&&(o=e.data.domProps=U({},o)),A)n in o||(a[n]="");for(n in o){if(s=o[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),s===A[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=s;var u=i(s)?"":String(s);ur(a,u)&&(a.value=u)}else if("innerHTML"===n&&Yn(a.tagName)&&i(a.innerHTML)){(ar=ar||document.createElement("div")).innerHTML="<svg>"+s+"</svg>";for(var l=ar.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(s!==A[n])try{a[n]=s}catch(t){}}}}function ur(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(r(i)){if(i.number)return f(n)!==f(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var lr={create:or,update:or},cr=b(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e});function hr(t){var e=dr(t.style);return t.staticStyle?U(t.staticStyle,e):e}function dr(t){return Array.isArray(t)?I(t):"string"==typeof t?cr(t):t}var fr,pr=/^--/,gr=/\s*!important$/,mr=function(t,e,n){if(pr.test(e))t.style.setProperty(e,n);else if(gr.test(n))t.style.setProperty(E(e),n.replace(gr,""),"important");else{var i=yr(e);if(Array.isArray(n))for(var r=0,s=n.length;r<s;r++)t.style[i]=n[r];else t.style[i]=n}},vr=["Webkit","Moz","ms"],yr=b(function(t){if(fr=fr||document.createElement("div").style,"filter"!==(t=C(t))&&t in fr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<vr.length;n++){var i=vr[n]+e;if(i in fr)return i}});function Br(t,e){var n=e.data,s=t.data;if(!(i(n.staticStyle)&&i(n.style)&&i(s.staticStyle)&&i(s.style))){var a,A,o=e.elm,u=s.staticStyle,l=s.normalizedStyle||s.style||{},c=u||l,h=dr(e.data.style)||{};e.data.normalizedStyle=r(h.__ob__)?U({},h):h;var d=function(t,e){var n,i={};if(e)for(var r=t;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=hr(r.data))&&U(i,n);(n=hr(t.data))&&U(i,n);for(var s=t;s=s.parent;)s.data&&(n=hr(s.data))&&U(i,n);return i}(e,!0);for(A in c)i(d[A])&&mr(o,A,"");for(A in d)(a=d[A])!==c[A]&&mr(o,A,null==a?"":a)}}var br={create:Br,update:Br},wr=/\s+/;function Cr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wr).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function _r(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wr).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Tr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&U(e,Er(t.name||"v")),U(e,t),e}return"string"==typeof t?Er(t):void 0}}var Er=b(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Sr=W&&!J,kr="transition",Ur="animation",Ir="transition",Fr="transitionend",xr="animation",Qr="animationend";Sr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ir="WebkitTransition",Fr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(xr="WebkitAnimation",Qr="webkitAnimationEnd"));var Lr=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Or(t){Lr(function(){Lr(t)})}function Dr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Cr(t,e))}function Pr(t,e){t._transitionClasses&&v(t._transitionClasses,e),_r(t,e)}function Hr(t,e,n){var i=Mr(t,e),r=i.type,s=i.timeout,a=i.propCount;if(!r)return n();var A=r===kr?Fr:Qr,o=0,u=function(){t.removeEventListener(A,l),n()},l=function(e){e.target===t&&++o>=a&&u()};setTimeout(function(){o<a&&u()},s+1),t.addEventListener(A,l)}var Rr=/\b(transform|all)(,|$)/;function Mr(t,e){var n,i=window.getComputedStyle(t),r=(i[Ir+"Delay"]||"").split(", "),s=(i[Ir+"Duration"]||"").split(", "),a=Nr(r,s),A=(i[xr+"Delay"]||"").split(", "),o=(i[xr+"Duration"]||"").split(", "),u=Nr(A,o),l=0,c=0;return e===kr?a>0&&(n=kr,l=a,c=s.length):e===Ur?u>0&&(n=Ur,l=u,c=o.length):c=(n=(l=Math.max(a,u))>0?a>u?kr:Ur:null)?n===kr?s.length:o.length:0,{type:n,timeout:l,propCount:c,hasTransform:n===kr&&Rr.test(i[Ir+"Property"])}}function Nr(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return Kr(e)+Kr(t[n])}))}function Kr(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function jr(t,e){var n=t.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var s=Tr(t.data.transition);if(!i(s)&&!r(n._enterCb)&&1===n.nodeType){for(var a=s.css,o=s.type,u=s.enterClass,l=s.enterToClass,c=s.enterActiveClass,h=s.appearClass,d=s.appearToClass,p=s.appearActiveClass,g=s.beforeEnter,m=s.enter,v=s.afterEnter,y=s.enterCancelled,B=s.beforeAppear,b=s.appear,w=s.afterAppear,C=s.appearCancelled,_=s.duration,T=Je,E=Je.$vnode;E&&E.parent;)T=E.context,E=E.parent;var S=!T._isMounted||!t.isRootInsert;if(!S||b||""===b){var k=S&&h?h:u,U=S&&p?p:c,I=S&&d?d:l,F=S&&B||g,x=S&&"function"==typeof b?b:m,Q=S&&w||v,L=S&&C||y,O=f(A(_)?_.enter:_);0;var P=!1!==a&&!J,H=$r(x),R=n._enterCb=D(function(){P&&(Pr(n,I),Pr(n,U)),R.cancelled?(P&&Pr(n,k),L&&L(n)):Q&&Q(n),n._enterCb=null});t.data.show||oe(t,"insert",function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),x&&x(n,R)}),F&&F(n),P&&(Dr(n,k),Dr(n,U),Or(function(){Pr(n,k),R.cancelled||(Dr(n,I),H||(Gr(O)?setTimeout(R,O):Hr(n,o,R)))})),t.data.show&&(e&&e(),x&&x(n,R)),P||H||R()}}}function Vr(t,e){var n=t.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var s=Tr(t.data.transition);if(i(s)||1!==n.nodeType)return e();if(!r(n._leaveCb)){var a=s.css,o=s.type,u=s.leaveClass,l=s.leaveToClass,c=s.leaveActiveClass,h=s.beforeLeave,d=s.leave,p=s.afterLeave,g=s.leaveCancelled,m=s.delayLeave,v=s.duration,y=!1!==a&&!J,B=$r(d),b=f(A(v)?v.leave:v);0;var w=n._leaveCb=D(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(Pr(n,l),Pr(n,c)),w.cancelled?(y&&Pr(n,u),g&&g(n)):(e(),p&&p(n)),n._leaveCb=null});m?m(C):C()}function C(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),h&&h(n),y&&(Dr(n,u),Dr(n,c),Or(function(){Pr(n,u),w.cancelled||(Dr(n,l),B||(Gr(b)?setTimeout(w,b):Hr(n,o,w)))})),d&&d(n,w),y||B||w())}}function Gr(t){return"number"==typeof t&&!isNaN(t)}function $r(t){if(i(t))return!1;var e=t.fns;return r(e)?$r(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Wr(t,e){!0!==e.data.show&&jr(e)}var zr=function(t){var e,n,A={},o=t.modules,u=t.nodeOps;for(e=0;e<Ai.length;++e)for(A[Ai[e]]=[],n=0;n<o.length;++n)r(o[n][Ai[e]])&&A[Ai[e]].push(o[n][Ai[e]]);function l(t){var e=u.parentNode(t);r(e)&&u.removeChild(e,t)}function c(t,e,n,i,a,o,l){if(r(t.elm)&&r(o)&&(t=o[l]=Bt(t)),t.isRootInsert=!a,!function(t,e,n,i){var a=t.data;if(r(a)){var o=r(t.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(t,!1),r(t.componentInstance))return h(t,e),d(n,t.elm,i),s(o)&&function(t,e,n,i){for(var s,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,r(s=a.data)&&r(s=s.transition)){for(s=0;s<A.activate.length;++s)A.activate[s](ai,a);e.push(a);break}d(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var c=t.data,p=t.children,g=t.tag;r(g)?(t.elm=t.ns?u.createElementNS(t.ns,g):u.createElement(g,t),v(t),f(t,p,e),r(c)&&m(t,e),d(n,t.elm,i)):s(t.isComment)?(t.elm=u.createComment(t.text),d(n,t.elm,i)):(t.elm=u.createTextNode(t.text),d(n,t.elm,i))}}function h(t,e){r(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(m(t,e),v(t)):(si(t),e.push(t))}function d(t,e,n){r(t)&&(r(n)?u.parentNode(n)===t&&u.insertBefore(t,e,n):u.appendChild(t,e))}function f(t,e,n){if(Array.isArray(e))for(var i=0;i<e.length;++i)c(e[i],n,t.elm,null,!0,e,i);else a(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function g(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return r(t.tag)}function m(t,n){for(var i=0;i<A.create.length;++i)A.create[i](ai,t);r(e=t.data.hook)&&(r(e.create)&&e.create(ai,t),r(e.insert)&&n.push(t))}function v(t){var e;if(r(e=t.fnScopeId))u.setStyleScope(t.elm,e);else for(var n=t;n;)r(e=n.context)&&r(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),n=n.parent;r(e=Je)&&e!==t.context&&e!==t.fnContext&&r(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e)}function y(t,e,n,i,r,s){for(;i<=r;++i)c(n[i],s,t,e,!1,n,i)}function B(t){var e,n,i=t.data;if(r(i))for(r(e=i.hook)&&r(e=e.destroy)&&e(t),e=0;e<A.destroy.length;++e)A.destroy[e](t);if(r(e=t.children))for(n=0;n<t.children.length;++n)B(t.children[n])}function b(t,e,n){for(;e<=n;++e){var i=t[e];r(i)&&(r(i.tag)?(w(i),B(i)):l(i.elm))}}function w(t,e){if(r(e)||r(t.data)){var n,i=A.remove.length+1;for(r(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&l(t)}return n.listeners=e,n}(t.elm,i),r(n=t.componentInstance)&&r(n=n._vnode)&&r(n.data)&&w(n,e),n=0;n<A.remove.length;++n)A.remove[n](t,e);r(n=t.data.hook)&&r(n=n.remove)?n(t,e):e()}else l(t.elm)}function C(t,e,n,i){for(var s=n;s<i;s++){var a=e[s];if(r(a)&&oi(t,a))return s}}function _(t,e,n,a,o,l){if(t!==e){r(e.elm)&&r(a)&&(e=a[o]=Bt(e));var h=e.elm=t.elm;if(s(t.isAsyncPlaceholder))r(e.asyncFactory.resolved)?S(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,f=e.data;r(f)&&r(d=f.hook)&&r(d=d.prepatch)&&d(t,e);var p=t.children,m=e.children;if(r(f)&&g(e)){for(d=0;d<A.update.length;++d)A.update[d](t,e);r(d=f.hook)&&r(d=d.update)&&d(t,e)}i(e.text)?r(p)&&r(m)?p!==m&&function(t,e,n,s,a){for(var A,o,l,h=0,d=0,f=e.length-1,p=e[0],g=e[f],m=n.length-1,v=n[0],B=n[m],w=!a;h<=f&&d<=m;)i(p)?p=e[++h]:i(g)?g=e[--f]:oi(p,v)?(_(p,v,s,n,d),p=e[++h],v=n[++d]):oi(g,B)?(_(g,B,s,n,m),g=e[--f],B=n[--m]):oi(p,B)?(_(p,B,s,n,m),w&&u.insertBefore(t,p.elm,u.nextSibling(g.elm)),p=e[++h],B=n[--m]):oi(g,v)?(_(g,v,s,n,d),w&&u.insertBefore(t,g.elm,p.elm),g=e[--f],v=n[++d]):(i(A)&&(A=ui(e,h,f)),i(o=r(v.key)?A[v.key]:C(v,e,h,f))?c(v,s,t,p.elm,!1,n,d):oi(l=e[o],v)?(_(l,v,s,n,d),e[o]=void 0,w&&u.insertBefore(t,l.elm,p.elm)):c(v,s,t,p.elm,!1,n,d),v=n[++d]);h>f?y(t,i(n[m+1])?null:n[m+1].elm,n,d,m,s):d>m&&b(e,h,f)}(h,p,m,n,l):r(m)?(r(t.text)&&u.setTextContent(h,""),y(h,null,m,0,m.length-1,n)):r(p)?b(p,0,p.length-1):r(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),r(f)&&r(d=f.hook)&&r(d=d.postpatch)&&d(t,e)}}}function T(t,e,n){if(s(n)&&r(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var E=p("attrs,class,staticClass,staticStyle,key");function S(t,e,n,i){var a,A=e.tag,o=e.data,u=e.children;if(i=i||o&&o.pre,e.elm=t,s(e.isComment)&&r(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(r(o)&&(r(a=o.hook)&&r(a=a.init)&&a(e,!0),r(a=e.componentInstance)))return h(e,n),!0;if(r(A)){if(r(u))if(t.hasChildNodes())if(r(a=o)&&r(a=a.domProps)&&r(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var l=!0,c=t.firstChild,d=0;d<u.length;d++){if(!c||!S(c,u[d],n,i)){l=!1;break}c=c.nextSibling}if(!l||c)return!1}else f(e,u,n);if(r(o)){var p=!1;for(var g in o)if(!E(g)){p=!0,m(e,n);break}!p&&o.class&&re(o.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!i(e)){var o,l=!1,h=[];if(i(t))l=!0,c(e,h);else{var d=r(t.nodeType);if(!d&&oi(t,e))_(t,e,h,null,null,a);else{if(d){if(1===t.nodeType&&t.hasAttribute(P)&&(t.removeAttribute(P),n=!0),s(n)&&S(t,e,h))return T(e,h,!0),t;o=t,t=new gt(u.tagName(o).toLowerCase(),{},[],void 0,o)}var f=t.elm,p=u.parentNode(f);if(c(e,h,f._leaveCb?null:p,u.nextSibling(f)),r(e.parent))for(var m=e.parent,v=g(e);m;){for(var y=0;y<A.destroy.length;++y)A.destroy[y](m);if(m.elm=e.elm,v){for(var w=0;w<A.create.length;++w)A.create[w](ai,m);var C=m.data.hook.insert;if(C.merged)for(var E=1;E<C.fns.length;E++)C.fns[E]()}else si(m);m=m.parent}r(p)?b([t],0,0):r(t.tag)&&B(t)}}return T(e,h,l),e.elm}r(t)&&B(t)}}({nodeOps:ii,modules:[Bi,ki,Ar,lr,br,W?{create:Wr,activate:Wr,remove:function(t,e){!0!==t.data.show?Vr(t,e):e()}}:{}].concat(gi)});J&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&ns(t,"input")});var Xr={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?oe(n,"postpatch",function(){Xr.componentUpdated(t,e,n)}):qr(t,e,n.context),t._vOptions=[].map.call(t.options,Zr)):("textarea"===n.tag||ei(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ts),t.addEventListener("compositionend",es),t.addEventListener("change",es),J&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){qr(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,Zr);if(r.some(function(t,e){return!L(t,i[e])}))(t.multiple?e.value.some(function(t){return Jr(t,r)}):e.value!==e.oldValue&&Jr(e.value,r))&&ns(t,"change")}}};function qr(t,e,n){Yr(t,e,n),(Y||Z)&&setTimeout(function(){Yr(t,e,n)},0)}function Yr(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var s,a,A=0,o=t.options.length;A<o;A++)if(a=t.options[A],r)s=O(i,Zr(a))>-1,a.selected!==s&&(a.selected=s);else if(L(Zr(a),i))return void(t.selectedIndex!==A&&(t.selectedIndex=A));r||(t.selectedIndex=-1)}}function Jr(t,e){return e.every(function(e){return!L(e,t)})}function Zr(t){return"_value"in t?t._value:t.value}function ts(t){t.target.composing=!0}function es(t){t.target.composing&&(t.target.composing=!1,ns(t.target,"input"))}function ns(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function is(t){return!t.componentInstance||t.data&&t.data.transition?t:is(t.componentInstance._vnode)}var rs={model:Xr,show:{bind:function(t,e,n){var i=e.value,r=(n=is(n)).data&&n.data.transition,s=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,jr(n,function(){t.style.display=s})):t.style.display=i?s:"none"},update:function(t,e,n){var i=e.value;!i!=!e.oldValue&&((n=is(n)).data&&n.data.transition?(n.data.show=!0,i?jr(n,function(){t.style.display=t.__vOriginalDisplay}):Vr(n,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}}},ss={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function as(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?as(We(e.children)):t}function As(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var s in r)e[C(s)]=r[s];return e}function os(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var us=function(t){return t.tag||$e(t)},ls=function(t){return"show"===t.name},cs={name:"transition",props:ss,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(us)).length){0;var i=this.mode;0;var r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var s=as(r);if(!s)return r;if(this._leaving)return os(t,r);var A="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?A+"comment":A+s.tag:a(s.key)?0===String(s.key).indexOf(A)?s.key:A+s.key:s.key;var o=(s.data||(s.data={})).transition=As(this),u=this._vnode,l=as(u);if(s.data.directives&&s.data.directives.some(ls)&&(s.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(s,l)&&!$e(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var c=l.data.transition=U({},o);if("out-in"===i)return this._leaving=!0,oe(c,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),os(t,r);if("in-out"===i){if($e(s))return u;var h,d=function(){h()};oe(o,"afterEnter",d),oe(o,"enterCancelled",d),oe(c,"delayLeave",function(t){h=t})}}return r}}},hs=U({tag:String,moveClass:String},ss);function ds(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function fs(t){t.data.newPos=t.elm.getBoundingClientRect()}function ps(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var s=t.elm.style;s.transform=s.WebkitTransform="translate("+i+"px,"+r+"px)",s.transitionDuration="0s"}}delete hs.mode;var gs={Transition:cs,TransitionGroup:{props:hs,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],s=this.children=[],a=As(this),A=0;A<r.length;A++){var o=r[A];if(o.tag)if(null!=o.key&&0!==String(o.key).indexOf("__vlist"))s.push(o),n[o.key]=o,(o.data||(o.data={})).transition=a;else;}if(i){for(var u=[],l=[],c=0;c<i.length;c++){var h=i[c];h.data.transition=a,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?u.push(h):l.push(h)}this.kept=t(e,null,u),this.removed=l}return t(e,null,s)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ds),t.forEach(fs),t.forEach(ps),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,i=n.style;Dr(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Fr,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Fr,t),n._moveCb=null,Pr(n,e))})}}))},methods:{hasMove:function(t,e){if(!Sr)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){_r(n,t)}),Cr(n,e),n.style.display="none",this.$el.appendChild(n);var i=Mr(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};En.config.mustUseProp=Dn,En.config.isReservedTag=Jn,En.config.isReservedAttr=Ln,En.config.getTagNamespace=Zn,En.config.isUnknownElement=function(t){if(!W)return!0;if(Jn(t))return!1;if(t=t.toLowerCase(),null!=ti[t])return ti[t];var e=document.createElement(t);return t.indexOf("-")>-1?ti[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ti[t]=/HTMLUnknownElement/.test(e.toString())},U(En.options.directives,rs),U(En.options.components,gs),En.prototype.__patch__=W?zr:F,En.prototype.$mount=function(t,e){return function(t,e,n){return t.$el=e,t.$options.render||(t.$options.render=vt),nn(t,"beforeMount"),new pn(t,function(){t._update(t._render(),n)},F,{before:function(){t._isMounted&&!t._isDestroyed&&nn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,nn(t,"mounted")),t}(this,t=t&&W?ni(t):void 0,e)},W&&setTimeout(function(){M.devtools&&at&&at.emit("init",En)},0);var ms=/\{\{((?:.|\r?\n)+?)\}\}/g,vs=/[-.*+?^${}()|[\]\/\\]/g,ys=b(function(t){var e=t[0].replace(vs,"\\$&"),n=t[1].replace(vs,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")});function Bs(t,e){var n=e?ys(e):ms;if(n.test(t)){for(var i,r,s,a=[],A=[],o=n.lastIndex=0;i=n.exec(t);){(r=i.index)>o&&(A.push(s=t.slice(o,r)),a.push(JSON.stringify(s)));var u=Ii(i[1].trim());a.push("_s("+u+")"),A.push({"@binding":u}),o=r+i[0].length}return o<t.length&&(A.push(s=t.slice(o)),a.push(JSON.stringify(s))),{expression:a.join("+"),tokens:A}}}var bs={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Ki(t,"class");n&&(t.staticClass=JSON.stringify(n));var i=Ni(t,"class",!1);i&&(t.classBinding=i)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}};var ws,Cs={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Ki(t,"style");n&&(t.staticStyle=JSON.stringify(cr(n)));var i=Ni(t,"style",!1);i&&(t.styleBinding=i)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},_s=function(t){return(ws=ws||document.createElement("div")).innerHTML=t,ws.textContent},Ts=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Es=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ss=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ks=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Us=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Is="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+N.source+"]*",Fs="((?:"+Is+"\\:)?"+Is+")",xs=new RegExp("^<"+Fs),Qs=/^\s*(\/?)>/,Ls=new RegExp("^<\\/"+Fs+"[^>]*>"),Os=/^<!DOCTYPE [^>]+>/i,Ds=/^<!\--/,Ps=/^<!\[/,Hs=p("script,style,textarea",!0),Rs={},Ms={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Ns=/&(?:lt|gt|quot|amp|#39);/g,Ks=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,js=p("pre,textarea",!0),Vs=function(t,e){return t&&js(t)&&"\n"===e[0]};function Gs(t,e){var n=e?Ks:Ns;return t.replace(n,function(t){return Ms[t]})}var $s,Ws,zs,Xs,qs,Ys,Js,Zs,ta=/^@|^v-on:/,ea=/^v-|^@|^:|^#/,na=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ia=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ra=/^\(|\)$/g,sa=/^\[.*\]$/,aa=/:(.*)$/,Aa=/^:|^\.|^v-bind:/,oa=/\.[^.\]]+(?=[^\]]*$)/g,ua=/^v-slot(:|$)|^#/,la=/[\r\n]/,ca=/\s+/g,ha=b(_s),da="_empty_";function fa(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},n=0,i=t.length;n<i;n++)e[t[n].name]=t[n].value;return e}(e),rawAttrsMap:{},parent:n,children:[]}}function pa(t,e){$s=e.warn||xi,Ys=e.isPreTag||x,Js=e.mustUseProp||x,Zs=e.getTagNamespace||x;var n=e.isReservedTag||x;(function(t){return!!t.component||!n(t.tag)}),zs=Qi(e.modules,"transformNode"),Xs=Qi(e.modules,"preTransformNode"),qs=Qi(e.modules,"postTransformNode"),Ws=e.delimiters;var i,r,s=[],a=!1!==e.preserveWhitespace,A=e.whitespace,o=!1,u=!1;function l(t){if(c(t),o||t.processed||(t=ga(t,e)),s.length||t===i||i.if&&(t.elseif||t.else)&&va(i,{exp:t.elseif,block:t}),r&&!t.forbidden)if(t.elseif||t.else)a=t,(A=function(t){var e=t.length;for(;e--;){if(1===t[e].type)return t[e];t.pop()}}(r.children))&&A.if&&va(A,{exp:a.elseif,block:a});else{if(t.slotScope){var n=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=t}r.children.push(t),t.parent=r}var a,A;t.children=t.children.filter(function(t){return!t.slotScope}),c(t),t.pre&&(o=!1),Ys(t.tag)&&(u=!1);for(var l=0;l<qs.length;l++)qs[l](t,e)}function c(t){if(!u)for(var e;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return function(t,e){for(var n,i,r=[],s=e.expectHTML,a=e.isUnaryTag||x,A=e.canBeLeftOpenTag||x,o=0;t;){if(n=t,i&&Hs(i)){var u=0,l=i.toLowerCase(),c=Rs[l]||(Rs[l]=new RegExp("([\\s\\S]*?)(</"+l+"[^>]*>)","i")),h=t.replace(c,function(t,n,i){return u=i.length,Hs(l)||"noscript"===l||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Vs(l,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});o+=t.length-h.length,t=h,E(l,o-u,o)}else{var d=t.indexOf("<");if(0===d){if(Ds.test(t)){var f=t.indexOf("--\x3e");if(f>=0){e.shouldKeepComment&&e.comment(t.substring(4,f),o,o+f+3),C(f+3);continue}}if(Ps.test(t)){var p=t.indexOf("]>");if(p>=0){C(p+2);continue}}var g=t.match(Os);if(g){C(g[0].length);continue}var m=t.match(Ls);if(m){var v=o;C(m[0].length),E(m[1],v,o);continue}var y=_();if(y){T(y),Vs(y.tagName,t)&&C(1);continue}}var B=void 0,b=void 0,w=void 0;if(d>=0){for(b=t.slice(d);!(Ls.test(b)||xs.test(b)||Ds.test(b)||Ps.test(b)||(w=b.indexOf("<",1))<0);)d+=w,b=t.slice(d);B=t.substring(0,d)}d<0&&(B=t),B&&C(B.length),e.chars&&B&&e.chars(B,o-B.length,o)}if(t===n){e.chars&&e.chars(t);break}}function C(e){o+=e,t=t.substring(e)}function _(){var e=t.match(xs);if(e){var n,i,r={tagName:e[1],attrs:[],start:o};for(C(e[0].length);!(n=t.match(Qs))&&(i=t.match(Us)||t.match(ks));)i.start=o,C(i[0].length),i.end=o,r.attrs.push(i);if(n)return r.unarySlash=n[1],C(n[0].length),r.end=o,r}}function T(t){var n=t.tagName,o=t.unarySlash;s&&("p"===i&&Ss(n)&&E(i),A(n)&&i===n&&E(n));for(var u=a(n)||!!o,l=t.attrs.length,c=new Array(l),h=0;h<l;h++){var d=t.attrs[h],f=d[3]||d[4]||d[5]||"",p="a"===n&&"href"===d[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;c[h]={name:d[1],value:Gs(f,p)}}u||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:c,start:t.start,end:t.end}),i=n),e.start&&e.start(n,c,u,t.start,t.end)}function E(t,n,s){var a,A;if(null==n&&(n=o),null==s&&(s=o),t)for(A=t.toLowerCase(),a=r.length-1;a>=0&&r[a].lowerCasedTag!==A;a--);else a=0;if(a>=0){for(var u=r.length-1;u>=a;u--)e.end&&e.end(r[u].tag,n,s);r.length=a,i=a&&r[a-1].tag}else"br"===A?e.start&&e.start(t,[],!0,n,s):"p"===A&&(e.start&&e.start(t,[],!1,n,s),e.end&&e.end(t,n,s))}E()}(t,{warn:$s,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,n,a,A,c){var h=r&&r.ns||Zs(t);Y&&"svg"===h&&(n=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];ba.test(i.name)||(i.name=i.name.replace(wa,""),e.push(i))}return e}(n));var d,f=fa(t,n,r);h&&(f.ns=h),"style"!==(d=f).tag&&("script"!==d.tag||d.attrsMap.type&&"text/javascript"!==d.attrsMap.type)||st()||(f.forbidden=!0);for(var p=0;p<Xs.length;p++)f=Xs[p](f,e)||f;o||(!function(t){null!=Ki(t,"v-pre")&&(t.pre=!0)}(f),f.pre&&(o=!0)),Ys(f.tag)&&(u=!0),o?function(t){var e=t.attrsList,n=e.length;if(n)for(var i=t.attrs=new Array(n),r=0;r<n;r++)i[r]={name:e[r].name,value:JSON.stringify(e[r].value)},null!=e[r].start&&(i[r].start=e[r].start,i[r].end=e[r].end);else t.pre||(t.plain=!0)}(f):f.processed||(ma(f),function(t){var e=Ki(t,"v-if");if(e)t.if=e,va(t,{exp:e,block:t});else{null!=Ki(t,"v-else")&&(t.else=!0);var n=Ki(t,"v-else-if");n&&(t.elseif=n)}}(f),function(t){null!=Ki(t,"v-once")&&(t.once=!0)}(f)),i||(i=f),a?l(f):(r=f,s.push(f))},end:function(t,e,n){var i=s[s.length-1];s.length-=1,r=s[s.length-1],l(i)},chars:function(t,e,n){if(r&&(!Y||"textarea"!==r.tag||r.attrsMap.placeholder!==t)){var i,s,l,c=r.children;if(t=u||t.trim()?"script"===(i=r).tag||"style"===i.tag?t:ha(t):c.length?A?"condense"===A&&la.test(t)?"":" ":a?" ":"":"")u||"condense"!==A||(t=t.replace(ca," ")),!o&&" "!==t&&(s=Bs(t,Ws))?l={type:2,expression:s.expression,tokens:s.tokens,text:t}:" "===t&&c.length&&" "===c[c.length-1].text||(l={type:3,text:t}),l&&c.push(l)}},comment:function(t,e,n){if(r){var i={type:3,text:t,isComment:!0};0,r.children.push(i)}}}),i}function ga(t,e){var n,i;!function(t){var e=Ni(t,"key");if(e){t.key=e}}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,(i=Ni(n=t,"ref"))&&(n.ref=i,n.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(n)),function(t){var e;"template"===t.tag?(e=Ki(t,"scope"),t.slotScope=e||Ki(t,"slot-scope")):(e=Ki(t,"slot-scope"))&&(t.slotScope=e);var n=Ni(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Oi(t,"slot",n,Mi(t,"slot")));if("template"===t.tag){var i=ji(t,ua);if(i){0;var r=ya(i),s=r.name,a=r.dynamic;t.slotTarget=s,t.slotTargetDynamic=a,t.slotScope=i.value||da}}else{var A=ji(t,ua);if(A){0;var o=t.scopedSlots||(t.scopedSlots={}),u=ya(A),l=u.name,c=u.dynamic,h=o[l]=fa("template",[],t);h.slotTarget=l,h.slotTargetDynamic=c,h.children=t.children.filter(function(t){if(!t.slotScope)return t.parent=h,!0}),h.slotScope=A.value||da,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Ni(t,"name"))}(t),function(t){var e;(e=Ni(t,"is"))&&(t.component=e);null!=Ki(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var r=0;r<zs.length;r++)t=zs[r](t,e)||t;return function(t){var e,n,i,r,s,a,A,o,u=t.attrsList;for(e=0,n=u.length;e<n;e++){if(i=r=u[e].name,s=u[e].value,ea.test(i))if(t.hasBindings=!0,(a=Ba(i.replace(ea,"")))&&(i=i.replace(oa,"")),Aa.test(i))i=i.replace(Aa,""),s=Ii(s),(o=sa.test(i))&&(i=i.slice(1,-1)),a&&(a.prop&&!o&&"innerHtml"===(i=C(i))&&(i="innerHTML"),a.camel&&!o&&(i=C(i)),a.sync&&(A=$i(s,"$event"),o?Ri(t,'"update:"+('+i+")",A,null,!1,0,u[e],!0):(Ri(t,"update:"+C(i),A,null,!1,0,u[e]),E(i)!==C(i)&&Ri(t,"update:"+E(i),A,null,!1,0,u[e])))),a&&a.prop||!t.component&&Js(t.tag,t.attrsMap.type,i)?Li(t,i,s,u[e],o):Oi(t,i,s,u[e],o);else if(ta.test(i))i=i.replace(ta,""),(o=sa.test(i))&&(i=i.slice(1,-1)),Ri(t,i,s,a,!1,0,u[e],o);else{var l=(i=i.replace(ea,"")).match(aa),c=l&&l[1];o=!1,c&&(i=i.slice(0,-(c.length+1)),sa.test(c)&&(c=c.slice(1,-1),o=!0)),Pi(t,i,r,s,c,o,a,u[e])}else Oi(t,i,JSON.stringify(s),u[e]),!t.component&&"muted"===i&&Js(t.tag,t.attrsMap.type,i)&&Li(t,i,"true",u[e])}}(t),t}function ma(t){var e;if(e=Ki(t,"v-for")){var n=function(t){var e=t.match(na);if(!e)return;var n={};n.for=e[2].trim();var i=e[1].trim().replace(ra,""),r=i.match(ia);r?(n.alias=i.replace(ia,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i;return n}(e);n&&U(t,n)}}function va(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function ya(t){var e=t.name.replace(ua,"");return e||"#"!==t.name[0]&&(e="default"),sa.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'+e+'"',dynamic:!1}}function Ba(t){var e=t.match(oa);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}var ba=/^xmlns:NS\d+/,wa=/^NS\d+:/;function Ca(t){return fa(t.tag,t.attrsList.slice(),t.parent)}var _a=[bs,Cs,{preTransformNode:function(t,e){if("input"===t.tag){var n,i=t.attrsMap;if(!i["v-model"])return;if((i[":type"]||i["v-bind:type"])&&(n=Ni(t,"type")),i.type||n||!i["v-bind"]||(n="("+i["v-bind"]+").type"),n){var r=Ki(t,"v-if",!0),s=r?"&&("+r+")":"",a=null!=Ki(t,"v-else",!0),A=Ki(t,"v-else-if",!0),o=Ca(t);ma(o),Di(o,"type","checkbox"),ga(o,e),o.processed=!0,o.if="("+n+")==='checkbox'"+s,va(o,{exp:o.if,block:o});var u=Ca(t);Ki(u,"v-for",!0),Di(u,"type","radio"),ga(u,e),va(o,{exp:"("+n+")==='radio'"+s,block:u});var l=Ca(t);return Ki(l,"v-for",!0),Di(l,":type",n),ga(l,e),va(o,{exp:r,block:l}),a?o.else=!0:A&&(o.elseif=A),o}}}}];var Ta,Ea,Sa={expectHTML:!0,modules:_a,directives:{model:function(t,e,n){n;var i=e.value,r=e.modifiers,s=t.tag,a=t.attrsMap.type;if(t.component)return Gi(t,i,r),!1;if("select"===s)!function(t,e,n){var i='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";i=i+" "+$i(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ri(t,"change",i,null,!0)}(t,i,r);else if("input"===s&&"checkbox"===a)!function(t,e,n){var i=n&&n.number,r=Ni(t,"value")||"null",s=Ni(t,"true-value")||"true",a=Ni(t,"false-value")||"false";Li(t,"checked","Array.isArray("+e+")?_i("+e+","+r+")>-1"+("true"===s?":("+e+")":":_q("+e+","+s+")")),Ri(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+s+"):("+a+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+$i(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+$i(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+$i(e,"$$c")+"}",null,!0)}(t,i,r);else if("input"===s&&"radio"===a)!function(t,e,n){var i=n&&n.number,r=Ni(t,"value")||"null";Li(t,"checked","_q("+e+","+(r=i?"_n("+r+")":r)+")"),Ri(t,"change",$i(e,r),null,!0)}(t,i,r);else if("input"===s||"textarea"===s)!function(t,e,n){var i=t.attrsMap.type,r=n||{},s=r.lazy,a=r.number,A=r.trim,o=!s&&"range"!==i,u=s?"change":"range"===i?Zi:"input",l="$event.target.value";A&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var c=$i(e,l);o&&(c="if($event.target.composing)return;"+c),Li(t,"value","("+e+")"),Ri(t,u,c,null,!0),(A||a)&&Ri(t,"blur","$forceUpdate()")}(t,i,r);else if(!M.isReservedTag(s))return Gi(t,i,r),!1;return!0},text:function(t,e){e.value&&Li(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Li(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:Ts,mustUseProp:Dn,canBeLeftOpenTag:Es,isReservedTag:Jn,getTagNamespace:Zn,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(_a)},ka=b(function(t){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))});function Ua(t,e){t&&(Ta=ka(e.staticKeys||""),Ea=e.isReservedTag||x,function t(e){e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||g(t.tag)||!Ea(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Ta)))}(e);if(1===e.type){if(!Ea(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,i=e.children.length;n<i;n++){var r=e.children[n];t(r),r.static||(e.static=!1)}if(e.ifConditions)for(var s=1,a=e.ifConditions.length;s<a;s++){var A=e.ifConditions[s].block;t(A),A.static||(e.static=!1)}}}(t),function t(e,n){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=n),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var i=0,r=e.children.length;i<r;i++)t(e.children[i],n||!!e.for);if(e.ifConditions)for(var s=1,a=e.ifConditions.length;s<a;s++)t(e.ifConditions[s].block,n)}}(t,!1))}var Ia=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Fa=/\([^)]*?\);*$/,xa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Qa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},La={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Oa=function(t){return"if("+t+")return null;"},Da={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Oa("$event.target !== $event.currentTarget"),ctrl:Oa("!$event.ctrlKey"),shift:Oa("!$event.shiftKey"),alt:Oa("!$event.altKey"),meta:Oa("!$event.metaKey"),left:Oa("'button' in $event && $event.button !== 0"),middle:Oa("'button' in $event && $event.button !== 1"),right:Oa("'button' in $event && $event.button !== 2")};function Pa(t,e){var n=e?"nativeOn:":"on:",i="",r="";for(var s in t){var a=Ha(t[s]);t[s]&&t[s].dynamic?r+=s+","+a+",":i+='"'+s+'":'+a+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function Ha(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return Ha(t)}).join(",")+"]";var e=xa.test(t.value),n=Ia.test(t.value),i=xa.test(t.value.replace(Fa,""));if(t.modifiers){var r="",s="",a=[];for(var A in t.modifiers)if(Da[A])s+=Da[A],Qa[A]&&a.push(A);else if("exact"===A){var o=t.modifiers;s+=Oa(["ctrl","shift","alt","meta"].filter(function(t){return!o[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else a.push(A);return a.length&&(r+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Ra).join("&&")+")return null;"}(a)),s&&(r+=s),"function($event){"+r+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":i?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(i?"return "+t.value:t.value)+"}"}function Ra(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=Qa[t],i=La[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}var Ma={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:F},Na=function(t){this.options=t,this.warn=t.warn||xi,this.transforms=Qi(t.modules,"transformCode"),this.dataGenFns=Qi(t.modules,"genData"),this.directives=U(U({},Ma),t.directives);var e=t.isReservedTag||x;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ka(t,e){var n=new Na(e);return{render:"with(this){return "+(t?ja(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function ja(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Va(t,e);if(t.once&&!t.onceProcessed)return Ga(t,e);if(t.for&&!t.forProcessed)return Wa(t,e);if(t.if&&!t.ifProcessed)return $a(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',i=Ya(t,e),r="_t("+n+(i?","+i:""),s=t.attrs||t.dynamicAttrs?tA((t.attrs||[]).concat(t.dynamicAttrs||[]).map(function(t){return{name:C(t.name),value:t.value,dynamic:t.dynamic}})):null,a=t.attrsMap["v-bind"];!s&&!a||i||(r+=",null");s&&(r+=","+s);a&&(r+=(s?"":",null")+","+a);return r+")"}(t,e);var n;if(t.component)n=function(t,e,n){var i=e.inlineTemplate?null:Ya(e,n,!0);return"_c("+t+","+za(e,n)+(i?","+i:"")+")"}(t.component,t,e);else{var i;(!t.plain||t.pre&&e.maybeComponent(t))&&(i=za(t,e));var r=t.inlineTemplate?null:Ya(t,e,!0);n="_c('"+t.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var s=0;s<e.transforms.length;s++)n=e.transforms[s](t,n);return n}return Ya(t,e)||"void 0"}function Va(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return "+ja(t,e)+"}"),e.pre=n,"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function Ga(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return $a(t,e);if(t.staticInFor){for(var n="",i=t.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o("+ja(t,e)+","+e.onceId+++","+n+")":ja(t,e)}return Va(t,e)}function $a(t,e,n,i){return t.ifProcessed=!0,function t(e,n,i,r){if(!e.length)return r||"_e()";var s=e.shift();return s.exp?"("+s.exp+")?"+a(s.block)+":"+t(e,n,i,r):""+a(s.block);function a(t){return i?i(t,n):t.once?Ga(t,n):ja(t,n)}}(t.ifConditions.slice(),e,n,i)}function Wa(t,e,n,i){var r=t.for,s=t.alias,a=t.iterator1?","+t.iterator1:"",A=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(i||"_l")+"(("+r+"),function("+s+a+A+"){return "+(n||ja)(t,e)+"})"}function za(t,e){var n="{",i=function(t,e){var n=t.directives;if(!n)return;var i,r,s,a,A="directives:[",o=!1;for(i=0,r=n.length;i<r;i++){s=n[i],a=!0;var u=e.directives[s.name];u&&(a=!!u(t,s,e.warn)),a&&(o=!0,A+='{name:"'+s.name+'",rawName:"'+s.rawName+'"'+(s.value?",value:("+s.value+"),expression:"+JSON.stringify(s.value):"")+(s.arg?",arg:"+(s.isDynamicArg?s.arg:'"'+s.arg+'"'):"")+(s.modifiers?",modifiers:"+JSON.stringify(s.modifiers):"")+"},")}if(o)return A.slice(0,-1)+"]"}(t,e);i&&(n+=i+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var r=0;r<e.dataGenFns.length;r++)n+=e.dataGenFns[r](t);if(t.attrs&&(n+="attrs:"+tA(t.attrs)+","),t.props&&(n+="domProps:"+tA(t.props)+","),t.events&&(n+=Pa(t.events,!1)+","),t.nativeEvents&&(n+=Pa(t.nativeEvents,!0)+","),t.slotTarget&&!t.slotScope&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=function(t,e,n){var i=t.for||Object.keys(e).some(function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||Xa(n)}),r=!!t.if;if(!i)for(var s=t.parent;s;){if(s.slotScope&&s.slotScope!==da||s.for){i=!0;break}s.if&&(r=!0),s=s.parent}var a=Object.keys(e).map(function(t){return qa(e[t],n)}).join(",");return"scopedSlots:_u(["+a+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+function(t){var e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var s=function(t,e){var n=t.children[0];0;if(n&&1===n.type){var i=Ka(n,e.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}(t,e);s&&(n+=s+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+tA(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Xa(t){return 1===t.type&&("slot"===t.tag||t.children.some(Xa))}function qa(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return $a(t,e,qa,"null");if(t.for&&!t.forProcessed)return Wa(t,e,qa);var i=t.slotScope===da?"":String(t.slotScope),r="function("+i+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Ya(t,e)||"undefined")+":undefined":Ya(t,e)||"undefined":ja(t,e))+"}",s=i?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+r+s+"}"}function Ya(t,e,n,i,r){var s=t.children;if(s.length){var a=s[0];if(1===s.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var A=n?e.maybeComponent(a)?",1":",0":"";return""+(i||ja)(a,e)+A}var o=n?function(t,e){for(var n=0,i=0;i<t.length;i++){var r=t[i];if(1===r.type){if(Ja(r)||r.ifConditions&&r.ifConditions.some(function(t){return Ja(t.block)})){n=2;break}(e(r)||r.ifConditions&&r.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}(s,e.maybeComponent):0,u=r||Za;return"["+s.map(function(t){return u(t,e)}).join(",")+"]"+(o?","+o:"")}}function Ja(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Za(t,e){return 1===t.type?ja(t,e):3===t.type&&t.isComment?(i=t,"_e("+JSON.stringify(i.text)+")"):"_v("+(2===(n=t).type?n.expression:eA(JSON.stringify(n.text)))+")";var n,i}function tA(t){for(var e="",n="",i=0;i<t.length;i++){var r=t[i],s=eA(r.value);r.dynamic?n+=r.name+","+s+",":e+='"'+r.name+'":'+s+","}return e="{"+e.slice(0,-1)+"}",n?"_d("+e+",["+n.slice(0,-1)+"])":e}function eA(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function nA(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),F}}function iA(t){var e=Object.create(null);return function(n,i,r){(i=U({},i)).warn;delete i.warn;var s=i.delimiters?String(i.delimiters)+n:n;if(e[s])return e[s];var a=t(n,i);var A={},o=[];return A.render=nA(a.render,o),A.staticRenderFns=a.staticRenderFns.map(function(t){return nA(t,o)}),e[s]=A}}var rA,sA,aA=(rA=function(t,e){var n=pa(t.trim(),e);!1!==e.optimize&&Ua(n,e);var i=Ka(n,e);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}},function(t){function e(e,n){var i=Object.create(t),r=[],s=[],a=function(t,e,n){(n?s:r).push(t)};if(n)for(var A in n.modules&&(i.modules=(t.modules||[]).concat(n.modules)),n.directives&&(i.directives=U(Object.create(t.directives||null),n.directives)),n)"modules"!==A&&"directives"!==A&&(i[A]=n[A]);i.warn=a;var o=rA(e.trim(),i);return o.errors=r,o.tips=s,o}return{compile:e,compileToFunctions:iA(e)}})(Sa),AA=(aA.compile,aA.compileToFunctions);function oA(t){return(sA=sA||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',sA.innerHTML.indexOf(" ")>0}var uA=!!W&&oA(!1),lA=!!W&&oA(!0),cA=b(function(t){var e=ni(t);return e&&e.innerHTML}),hA=En.prototype.$mount;En.prototype.$mount=function(t,e){if((t=t&&ni(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=cA(i));else{if(!i.nodeType)return this;i=i.innerHTML}else t&&(i=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(i){0;var r=AA(i,{outputSourceRange:!1,shouldDecodeNewlines:uA,shouldDecodeNewlinesForHref:lA,delimiters:n.delimiters,comments:n.comments},this),s=r.render,a=r.staticRenderFns;n.render=s,n.staticRenderFns=a}}return hA.call(this,t,e)},En.compile=AA,e.a=En}).call(e,n("DuR2"))},"77Pl":function(t,e,n){var i=n("EqjI");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},"7GwW":function(t,e,n){"use strict";var i=n("cGG2"),r=n("21It"),s=n("p1b6"),a=n("DQCr"),A=n("Oi+a"),o=n("oJlt"),u=n("GHBc"),l=n("FtD3");t.exports=function(t){return new Promise(function(e,n){var c=t.data,h=t.headers;i.isFormData(c)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(f+":"+p)}var g=A(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in d?o(d.getAllResponseHeaders()):null,s={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:i,config:t,request:d};r(e,n,s),d=null}},d.onabort=function(){d&&(n(l("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(l("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,"ECONNABORTED",d)),d=null},i.isStandardBrowserEnv()){var m=(t.withCredentials||u(g))&&t.xsrfCookieName?s.read(t.xsrfCookieName):void 0;m&&(h[t.xsrfHeaderName]=m)}if("setRequestHeader"in d&&i.forEach(h,function(t,e){void 0===c&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}),i.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),n(t),d=null)}),c||(c=null),d.send(c)})}},"7KvD":function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"82Mu":function(t,e,n){var i=n("7KvD"),r=n("L42u").set,s=i.MutationObserver||i.WebKitMutationObserver,a=i.process,A=i.Promise,o="process"==n("R9M2")(a);t.exports=function(){var t,e,n,u=function(){var i,r;for(o&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(o)n=function(){a.nextTick(u)};else if(!s||i.navigator&&i.navigator.standalone)if(A&&A.resolve){var l=A.resolve(void 0);n=function(){l.then(u)}}else n=function(){r.call(i,u)};else{var c=!0,h=document.createTextNode("");new s(u).observe(h,{characterData:!0}),n=function(){h.data=c=!c}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},"86MP":function(t,e,n){var i=n("dkdY");t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},"880/":function(t,e,n){t.exports=n("hJx8")},"94VQ":function(t,e,n){"use strict";var i=n("Yobk"),r=n("X8DO"),s=n("e6n0"),a={};n("hJx8")(a,n("dSzd")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),s(t,e+" Iterator")}},"9KJy":function(t,e,n){"use strict";(function(t){e.a=function(t){for(var e=s(t),n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n};var i=n("awF4"),r=n.n(i),s=function(e){return r.a.atob?r.a.atob(e):t.from(e,"base64").toString("binary")}}).call(e,n("EuP9").Buffer)},AA6R:function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],s=["class","style","directives"],a=["on","nativeOn"],A=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce(function(t,e){for(var n in e)if(t[n])if(-1!==r.indexOf(n))t[n]=i({},t[n],e[n]);else if(-1!==s.indexOf(n)){var o=t[n]instanceof Array?t[n]:[t[n]],u=e[n]instanceof Array?e[n]:[e[n]];t[n]=o.concat(u)}else if(-1!==a.indexOf(n))for(var l in e[n])if(t[n][l]){var c=t[n][l]instanceof Array?t[n][l]:[t[n][l]],h=e[n][l]instanceof Array?e[n][l]:[e[n][l]];t[n][l]=c.concat(h)}else t[n][l]=e[n][l];else if("hook"==n)for(var d in e[n])t[n][d]=t[n][d]?A(t[n][d],e[n][d]):e[n][d];else t[n]=e[n];else t[n]=e[n];return t},{})}},ARpH:function(t,e){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}},t.exports.default=t.exports,t.exports.__esModule=!0},CXw9:function(t,e,n){"use strict";var i,r,s,a,A=n("O4g8"),o=n("7KvD"),u=n("+ZMJ"),l=n("RY/4"),c=n("kM2E"),h=n("EqjI"),d=n("lOnJ"),f=n("2KxR"),p=n("NWt+"),g=n("t8x9"),m=n("L42u").set,v=n("82Mu")(),y=n("qARP"),B=n("dNDb"),b=n("iUbK"),w=n("fJUb"),C=o.TypeError,_=o.process,T=_&&_.versions,E=T&&T.v8||"",S=o.Promise,k="process"==l(_),U=function(){},I=r=y.f,F=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(U,U)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(U)instanceof e&&0!==E.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),x=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},Q=function(t,e){if(!t._n){t._n=!0;var n=t._c;v(function(){for(var i=t._v,r=1==t._s,s=0,a=function(e){var n,s,a,A=r?e.ok:e.fail,o=e.resolve,u=e.reject,l=e.domain;try{A?(r||(2==t._h&&D(t),t._h=1),!0===A?n=i:(l&&l.enter(),n=A(i),l&&(l.exit(),a=!0)),n===e.promise?u(C("Promise-chain cycle")):(s=x(n))?s.call(n,o,u):o(n)):u(i)}catch(t){l&&!a&&l.exit(),u(t)}};n.length>s;)a(n[s++]);t._c=[],t._n=!1,e&&!t._h&&L(t)})}},L=function(t){m.call(o,function(){var e,n,i,r=t._v,s=O(t);if(s&&(e=B(function(){k?_.emit("unhandledRejection",r,t):(n=o.onunhandledrejection)?n({promise:t,reason:r}):(i=o.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=k||O(t)?2:1),t._a=void 0,s&&e.e)throw e.v})},O=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){m.call(o,function(){var e;k?_.emit("rejectionHandled",t):(e=o.onrejectionhandled)&&e({promise:t,reason:t._v})})},P=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),Q(e,!0))},H=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw C("Promise can't be resolved itself");(e=x(t))?v(function(){var i={_w:n,_d:!1};try{e.call(t,u(H,i,1),u(P,i,1))}catch(t){P.call(i,t)}}):(n._v=t,n._s=1,Q(n,!1))}catch(t){P.call({_w:n,_d:!1},t)}}};F||(S=function(t){f(this,S,"Promise","_h"),d(t),i.call(this);try{t(u(H,this,1),u(P,this,1))}catch(t){P.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("xH/j")(S.prototype,{then:function(t,e){var n=I(g(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Q(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new i;this.promise=t,this.resolve=u(H,t,1),this.reject=u(P,t,1)},y.f=I=function(t){return t===S||t===a?new s(t):r(t)}),c(c.G+c.W+c.F*!F,{Promise:S}),n("e6n0")(S,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,c(c.S+c.F*!F,"Promise",{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(A||!F),"Promise",{resolve:function(t){return w(A&&this===a?S:this,t)}}),c(c.S+c.F*!(F&&n("dY0y")(function(t){S.all(t).catch(U)})),"Promise",{all:function(t){var e=this,n=I(e),i=n.resolve,r=n.reject,s=B(function(){var n=[],s=0,a=1;p(t,!1,function(t){var A=s++,o=!1;n.push(void 0),a++,e.resolve(t).then(function(t){o||(o=!0,n[A]=t,--a||i(n))},r)}),--a||i(n)});return s.e&&r(s.v),n.promise},race:function(t){var e=this,n=I(e),i=n.reject,r=B(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},D2L2:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},DQCr:function(t,e,n){"use strict";var i=n("cGG2");function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var s;if(n)s=n(e);else if(i.isURLSearchParams(e))s=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&void 0!==t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))}))}),s=a.join("&")}if(s){var A=t.indexOf("#");-1!==A&&(t=t.slice(0,A)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}},DUeU:function(t,e,n){"use strict";var i=n("cGG2");t.exports=function(t,e){e=e||{};var n={},r=["url","method","data"],s=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],A=["validateStatus"];function o(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function u(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=o(void 0,t[r])):n[r]=o(t[r],e[r])}i.forEach(r,function(t){i.isUndefined(e[t])||(n[t]=o(void 0,e[t]))}),i.forEach(s,u),i.forEach(a,function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=o(void 0,t[r])):n[r]=o(void 0,e[r])}),i.forEach(A,function(i){i in e?n[i]=o(t[i],e[i]):i in t&&(n[i]=o(void 0,t[i]))});var l=r.concat(s).concat(a).concat(A),c=Object.keys(t).concat(Object.keys(e)).filter(function(t){return-1===l.indexOf(t)});return i.forEach(c,u),n}},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},DvOw:function(t,e){var n={"":!0,up:!0};function i(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,e=3,r=0,s=100,a=0,A=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!i(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!i(t))throw new Error("RegionAnchorX must be between 0 and 100.");s=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!i(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return A},set:function(t){if(!i(t))throw new Error("ViewportAnchorY must be between 0 and 100.");A=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!i(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return o},set:function(t){var e=function(t){return"string"==typeof t&&!!n[t.toLowerCase()]&&t.toLowerCase()}(t);!1===e?console.warn("Scroll: an invalid or illegal string was specified."):o=e}}})}},EGZi:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},EKta:function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=u(t),a=i[0],A=i[1],o=new s(function(t,e,n){return 3*(e+n)/4-n}(0,a,A)),l=0,c=A>0?a-4:a;for(n=0;n<c;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],o[l++]=e>>16&255,o[l++]=e>>8&255,o[l++]=255&e;2===A&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,o[l++]=255&e);1===A&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,o[l++]=e>>8&255,o[l++]=255&e);return o},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,s=[],a=0,A=n-r;a<A;a+=16383)s.push(l(t,a,a+16383>A?A:a+16383));1===r?(e=t[n-1],s.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],s.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return s.join("")};for(var i=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=0,o=a.length;A<o;++A)i[A]=a[A],r[a.charCodeAt(A)]=A;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var r,s,a=[],A=e;A<n;A+=3)r=(t[A]<<16&16711680)+(t[A+1]<<8&65280)+(255&t[A+2]),a.push(i[(s=r)>>18&63]+i[s>>12&63]+i[s>>6&63]+i[63&s]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},EqBC:function(t,e,n){"use strict";var i=n("kM2E"),r=n("FeBl"),s=n("7KvD"),a=n("t8x9"),A=n("fJUb");i(i.P+i.R,"Promise",{finally:function(t){var e=a(this,r.Promise||s.Promise),n="function"==typeof t;return this.then(n?function(n){return A(e,t()).then(function(){return n})}:t,n?function(n){return A(e,t()).then(function(){throw n})}:t)}})},EqjI:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},EuP9:function(t,e,n){"use strict";(function(t){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var i=n("EKta"),r=n("ujcs"),s=n("sOR5");function a(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=o.prototype:(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return u(this,t,e,n)}function u(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i);o.TYPED_ARRAY_SUPPORT?(t=e).__proto__=o.prototype:t=h(t,e);return t}(t,e,n,i):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(e,n),r=(t=A(t,i)).write(e,n);r!==i&&(t=t.slice(0,r));return t}(t,e,n):function(t,e){if(o.isBuffer(e)){var n=0|d(e.length);return 0===(t=A(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?A(t,0):h(t,e);if("Buffer"===e.type&&s(e.data))return h(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e){if(l(e),t=A(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|d(e.length);t=A(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function f(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return M(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return N(t).length;default:if(i)return M(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function g(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:m(t,e,n,i,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,i,r){var s,a=1,A=t.length,o=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,A/=2,o/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var l=-1;for(s=n;s<A;s++)if(u(t,s)===u(e,-1===l?0:s-l)){if(-1===l&&(l=s),s-l+1===o)return l*a}else-1!==l&&(s-=s-l),l=-1}else for(n+o>A&&(n=A-o),s=n;s>=0;s--){for(var c=!0,h=0;h<o;h++)if(u(t,s+h)!==u(e,h)){c=!1;break}if(c)return s}return-1}function v(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var a=0;a<i;++a){var A=parseInt(e.substr(2*a,2),16);if(isNaN(A))return a;t[n+a]=A}return a}function y(t,e,n,i){return K(M(e,t.length-n),t,n,i)}function B(t,e,n,i){return K(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function b(t,e,n,i){return B(t,e,n,i)}function w(t,e,n,i){return K(N(e),t,n,i)}function C(t,e,n,i){return K(function(t,e){for(var n,i,r,s=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,r=n%256,s.push(r),s.push(i);return s}(e,t.length-n),t,n,i)}function _(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var s,a,A,o,u=t[r],l=null,c=u>239?4:u>223?3:u>191?2:1;if(r+c<=n)switch(c){case 1:u<128&&(l=u);break;case 2:128==(192&(s=t[r+1]))&&(o=(31&u)<<6|63&s)>127&&(l=o);break;case 3:s=t[r+1],a=t[r+2],128==(192&s)&&128==(192&a)&&(o=(15&u)<<12|(63&s)<<6|63&a)>2047&&(o<55296||o>57343)&&(l=o);break;case 4:s=t[r+1],a=t[r+2],A=t[r+3],128==(192&s)&&128==(192&a)&&128==(192&A)&&(o=(15&u)<<18|(63&s)<<12|(63&a)<<6|63&A)>65535&&o<1114112&&(l=o)}null===l?(l=65533,c=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=c}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=E));return n}(i)}e.Buffer=o,e.SlowBuffer=function(t){+t!=t&&(t=0);return o.alloc(+t)},e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return u(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return function(t,e,n,i){return l(e),e<=0?A(t,e):void 0!==n?"string"==typeof i?A(t,e).fill(n,i):A(t,e).fill(n):A(t,e)}(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,s=Math.min(n,i);r<s;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=o.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)p(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):function(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return U(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return S(this,e,n);case"latin1":case"binary":return k(this,e,n);case"base64":return _(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,i,r){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var s=r-i,a=n-e,A=Math.min(s,a),u=this.slice(i,r),l=t.slice(e,n),c=0;c<A;++c)if(u[c]!==l[c]){s=u[c],a=l[c];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},o.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return y(this,t,e,n);case"ascii":return B(this,t,e,n);case"latin1":case"binary":return b(this,t,e,n);case"base64":return w(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function S(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function k(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function U(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",s=e;s<n;++s)r+=R(t[s]);return r}function I(t,e,n){for(var i=t.slice(e,n),r="",s=0;s<i.length;s+=2)r+=String.fromCharCode(i[s]+256*i[s+1]);return r}function F(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function x(t,e,n,i,r,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<s)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function Q(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,s=Math.min(t.length-n,2);r<s;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function L(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,s=Math.min(t.length-n,4);r<s;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function O(t,e,n,i,r,s){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,i,s){return s||O(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function P(t,e,n,i,s){return s||O(t,0,n,8),r.write(t,e,n,i,52,8),n+8}o.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),o.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=o.prototype;else{var r=e-t;n=new o(r,void 0);for(var s=0;s<r;++s)n[s]=this[s+t]}return n},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var i=this[t],r=1,s=0;++s<e&&(r*=256);)i+=this[t+s]*r;return i},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},o.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var i=this[t],r=1,s=0;++s<e&&(r*=256);)i+=this[t+s]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var i=e,r=1,s=this[t+--i];i>0&&(r*=256);)s+=this[t+--i]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*e)),s},o.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||x(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,s=0;for(this[e]=255&t;++s<n&&(r*=256);)this[e+s]=t/r&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||x(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,s=1;for(this[e+r]=255&t;--r>=0&&(s*=256);)this[e+r]=t/s&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Q(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Q(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);x(this,t,e,n,r-1,-r)}var s=0,a=1,A=0;for(this[e]=255&t;++s<n&&(a*=256);)t<0&&0===A&&0!==this[e+s-1]&&(A=1),this[e+s]=(t/a>>0)-A&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);x(this,t,e,n,r-1,-r)}var s=n-1,a=1,A=0;for(this[e+s]=255&t;--s>=0&&(a*=256);)t<0&&0===A&&0!==this[e+s+1]&&(A=1),this[e+s]=(t/a>>0)-A&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Q(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Q(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return P(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return P(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,s=i-n;if(this===t&&n<e&&e<i)for(r=s-1;r>=0;--r)t[r+e]=this[r+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},o.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var s;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var a=o.isBuffer(t)?t:M(new o(t,i).toString()),A=a.length;for(s=0;s<n-e;++s)this[s+e]=a[s%A]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function R(t){return t<16?"0"+t.toString(16):t.toString(16)}function M(t,e){var n;e=e||1/0;for(var i=t.length,r=null,s=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function N(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(H,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(e,n("DuR2"))},"Fd2+":function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var r=n("AA6R"),s=n.n(r),a=n("7+uW"),A=n("o69Z"),o=["ref","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],u={nativeOn:"on"};function l(t,e){var n=o.reduce(function(e,n){return t.data[n]&&(e[u[n]||n]=t.data[n]),e},{});return e&&(n.on=n.on||{},i(n.on,t.data.on)),n}function c(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var s=t.listeners[e];s&&(Array.isArray(s)?s.forEach(function(t){t.apply(void 0,i)}):s.apply(void 0,i))}function h(t,e){var n=new a.a({el:document.createElement("div"),props:t.props,render:function(n){return n(t,i({props:this.$props},e))}});return document.body.appendChild(n.$el),n}var d={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter(function(e){return e.vm===t})[0]}},f=!1;if(!A.j)try{var p={};Object.defineProperty(p,"passive",{get:function(){f=!0}}),window.addEventListener("test-passive",null,p)}catch(t){}function g(t,e,n,i){void 0===i&&(i=!1),A.j||t.addEventListener(e,n,!!f&&{capture:!1,passive:i})}function m(t,e,n){A.j||t.removeEventListener(e,n)}function v(t){t.stopPropagation()}function y(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&v(t)}var B=Object(A.b)("overlay"),b=B[0],w=B[1];function C(t){y(t,!0)}function _(t,e,n,r){var a=i({zIndex:e.zIndex},e.customStyle);return Object(A.e)(e.duration)&&(a.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",s()([{directives:[{name:"show",value:e.show}],style:a,class:[w(),e.className],on:{touchmove:e.lockScroll?C:A.k}},l(r,!0)]),[null==n.default?void 0:n.default()])])}_.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};var T=b(_);function E(t){var e=t.parentNode;e&&e.removeChild(t)}var S={className:"",customStyle:{}};function k(t){var e=d.find(t);if(e){var n=t.$el,r=e.config,s=e.overlay;n&&n.parentNode&&n.parentNode.insertBefore(s.$el,n),i(s,S,r,{show:!0})}}function U(t,e){var n=d.find(t);if(n)n.config=e;else{var i=function(t){return h(T,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}(t);d.stack.push({vm:t,config:e,overlay:i})}k(t)}function I(t){var e=d.find(t);e&&(e.overlay.show=!1)}function F(t){return t===window}var x=/scroll|auto/i;function Q(t,e){void 0===e&&(e=window);for(var n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var i=window.getComputedStyle(n).overflowY;if(x.test(i))return n;n=n.parentNode}return e}function L(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function O(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function D(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function P(t){O(window,t),O(document.body,t)}function H(t,e){if(F(t))return 0;var n=e?L(e):D();return t.getBoundingClientRect().top+n}var R=10;var M={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e,n,i=t.touches[0];this.deltaX=i.clientX<0?0:i.clientX-this.startX,this.deltaY=i.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,n=this.offsetY,e>n&&e>R?"horizontal":n>e&&n>R?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,n=this.onTouchMove,i=this.onTouchEnd;g(t,"touchstart",e),g(t,"touchmove",n),i&&(g(t,"touchend",i),g(t,"touchcancel",i))}}};function N(t){var e=void 0===t?{}:t,n=e.ref,i=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,r=this.getContainer,s=n?this.$refs[n]:this.$el;r?t="string"==typeof(e=r)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==s.parentNode&&t.appendChild(s),i&&i.call(this)}}}}var K=0;function j(t){var e="binded_"+K++;function n(){this[e]||(t.call(this,g,!0),this[e]=!0)}function i(){this[e]&&(t.call(this,m,!1),this[e]=!1)}return{mounted:n,activated:n,deactivated:i,beforeDestroy:i}}var V={mixins:[j(function(t,e){this.handlePopstate(e&&this.closeOnPopstate)})],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?g:m)(window,"popstate",this.onPopstate))}}},G={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function $(t){return void 0===t&&(t={}),{mixins:[M,V,N({afterPortal:function(){this.overlay&&k()}})],props:G,data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var n=e?"open":"close";this.inited=this.inited||this.value,this[n](),t.skipToggleEvent||this.$emit(n)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=d.find(t))&&E(e.overlay.$el),this.opened&&this.removeLock(),this.getContainer&&E(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(d.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock())},addLock:function(){this.lockScroll&&(g(document,"touchstart",this.touchStart),g(document,"touchmove",this.onTouchMove),d.lockCount||document.body.classList.add("van-overflow-hidden"),d.lockCount++)},removeLock:function(){this.lockScroll&&d.lockCount&&(d.lockCount--,m(document,"touchstart",this.touchStart),m(document,"touchmove",this.onTouchMove),d.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(I(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=Q(t.target,this.$el),i=n.scrollHeight,r=n.offsetHeight,s=n.scrollTop,a="11";0===s?a=r>=i?"00":"01":s+r>=i&&(a="10"),"11"===a||"vertical"!==this.direction||parseInt(a,2)&parseInt(e,2)||y(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick(function(){t.updateZIndex(t.overlay?1:0),t.overlay?U(t,{zIndex:d.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):I(t)})},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++d.zIndex+t}}}}var W=Object(A.b)("info"),z=W[0],X=W[1];function q(t,e,n,i){var r=e.dot,a=e.info,o=Object(A.e)(a)&&""!==a;if(r||o)return t("div",s()([{class:X({dot:r})},l(i,!0)]),[r?"":e.info])}q.props={dot:Boolean,info:[Number,String]};var Y=z(q),J=Object(A.b)("icon"),Z=J[0],tt=J[1];var et={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function nt(t,e,n,i){var r,a=function(t){return t&&et[t]||t}(e.name),o=function(t){return!!t&&-1!==t.indexOf("/")}(a);return t(e.tag,s()([{class:[e.classPrefix,o?"":e.classPrefix+"-"+a],style:{color:e.color,fontSize:Object(A.a)(e.size)}},l(i,!0)]),[n.default&&n.default(),o&&t("img",{class:tt("image"),attrs:{src:a}}),t(Y,{attrs:{dot:e.dot,info:null!=(r=e.badge)?r:e.info}})])}nt.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:tt()}};var it=Z(nt),rt=Object(A.b)("popup"),st=rt[0],at=rt[1],At=st({mixins:[$()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(n){return t.$emit(e,n)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var n=this.round,i=this.position,r=this.duration,s="center"===i,a=this.transition||(s?"van-fade":"van-popup-slide-"+i),o={};if(Object(A.e)(r))o[s?"animationDuration":"transitionDuration"]=r+"s";return e("transition",{attrs:{appear:this.transitionAppear,name:a},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:o,class:at((t={round:n},t[i]=i,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(it,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:at("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}}),ot=Object(A.b)("loading"),ut=ot[0],lt=ot[1];function ct(t,e,n,i){var r=e.color,a=e.size,o=e.type,u={color:r};if(a){var c=Object(A.a)(a);u.width=c,u.height=c}return t("div",s()([{class:lt([o,{vertical:e.vertical}])},l(i,!0)]),[t("span",{class:lt("spinner",o),style:u},[function(t,e){if("spinner"===e.type){for(var n=[],i=0;i<12;i++)n.push(t("i"));return n}return t("svg",{class:lt("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}(t,e)]),function(t,e,n){if(n.default){var i,r={fontSize:Object(A.a)(e.textSize),color:null!=(i=e.textColor)?i:e.color};return t("span",{class:lt("text"),style:r},[n.default()])}}(t,e,n)])}ct.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};var ht=ut(ct),dt=Object(A.b)("action-sheet"),ft=dt[0],pt=dt[1];function gt(t,e,n,i){var r=e.title,A=e.cancelText,o=e.closeable;function u(){c(i,"input",!1),c(i,"cancel")}return t(At,s()([{class:pt(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},l(i,!0)]),[function(){if(r)return t("div",{class:pt("header")},[r,o&&t(it,{attrs:{name:e.closeIcon},class:pt("close"),on:{click:u}})])}(),function(){var i=(null==n.description?void 0:n.description())||e.description;if(i)return t("div",{class:pt("description")},[i])}(),t("div",{class:pt("content")},[e.actions&&e.actions.map(function(n,r){var s=n.disabled,A=n.loading,o=n.callback;return t("button",{attrs:{type:"button"},class:[pt("item",{disabled:s,loading:A}),n.className],style:{color:n.color},on:{click:function(t){t.stopPropagation(),s||A||(o&&o(n),e.closeOnClickAction&&c(i,"input",!1),a.a.nextTick(function(){c(i,"select",n,r)}))}}},[A?t(ht,{class:pt("loading-icon")}):[t("span",{class:pt("name")},[n.name]),n.subname&&t("div",{class:pt("subname")},[n.subname])]])}),null==n.default?void 0:n.default()]),function(){if(A)return[t("div",{class:pt("gap")}),t("button",{attrs:{type:"button"},class:pt("cancel"),on:{click:u}},[A])]}()])}gt.props=i({},G,{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});var mt=ft(gt);function vt(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}var yt={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},Bt="#ee0a24",bt="van-hairline",wt=bt+"--top",Ct=bt+"--left",_t=bt+"--bottom",Tt=bt+"--surround",Et=bt+"--top-bottom",St=n("4PMK");function kt(t){if(!Object(A.e)(t))return t;if(Array.isArray(t))return t.map(function(t){return kt(t)});if("object"==typeof t){var e={};return Object.keys(t).forEach(function(n){e[n]=kt(t[n])}),e}return t}function Ut(t,e,n){return Math.min(Math.max(t,e),n)}function It(t,e,n){var i=t.indexOf(e),r="";return-1===i?t:"-"===e&&0!==i?t.slice(0,i):("."===e&&t.match(/^(\.|-\.)/)&&(r=i?"-0":"0"),r+t.slice(0,i+1)+t.slice(i).replace(n,""))}function Ft(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),t=e?It(t,".",/\./g):t.split(".")[0],t=n?It(t,"-",/-/g):t.replace(/-/,"");var i=e?/[^-0-9.]/g:/[^-0-9]/g;return t.replace(i,"")}var xt=Object(A.b)("picker-column"),Qt=xt[0],Lt=xt[1];function Ot(t){return Object(A.h)(t)&&t.disabled}var Dt=Qt({mixins:[M],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:kt(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=kt(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=function(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,i=n.slice(7,n.length-1).split(", ")[5];return Number(i)}(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,y(t,!0)),this.offset=Ut(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>300&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,n=Date.now()-this.touchStartTime;if(n<300&&Math.abs(e)>15)this.momentum(e,n);else{var i=this.getIndexByOffset(this.offset);this.duration=200,this.setIndex(i,!0),setTimeout(function(){t.moving=!1},0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=200,this.setIndex(t,!0))},adjustIndex:function(t){for(var e=t=Ut(t,0,this.count);e<this.count;e++)if(!Ot(this.options[e]))return e;for(var n=t-1;n>=0;n--)if(!Ot(this.options[n]))return n},getOptionText:function(t){return Object(A.h)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var n=this,i=-(t=this.adjustIndex(t)||0)*this.itemHeight,r=function(){t!==n.currentIndex&&(n.currentIndex=t,e&&n.$emit("change",t))};this.moving&&i!==this.offset?this.transitionEndTrigger=r:r(),this.offset=i},setValue:function(t){for(var e=this.options,n=0;n<e.length;n++)if(this.getOptionText(e[n])===t)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return Ut(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var n=Math.abs(t/e);t=this.offset+n/.003*(t<0?-1:1);var i=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(i,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,n={height:this.itemHeight+"px"};return this.options.map(function(i,r){var a,A=t.getOptionText(i),o=Ot(i),u={style:n,attrs:{role:"button",tabindex:o?-1:0},class:[Lt("item",{disabled:o,selected:r===t.currentIndex})],on:{click:function(){t.onClickItem(r)}}},l={class:"van-ellipsis",domProps:(a={},a[t.allowHtml?"innerHTML":"textContent"]=A,a)};return e("li",s()([{},u]),[t.slots("option",i)||e("div",s()([{},l]))])})}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[Lt(),this.className]},[t("ul",{ref:"wrapper",style:e,class:Lt("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),Pt=Object(A.b)("picker"),Ht=Pt[0],Rt=Pt[1],Mt=Pt[2],Nt=Ht({props:i({},yt,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(St.b)(this.itemHeight):44},dataType:function(){var t=this.columns[0]||{};return t.children?"cascade":t.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){for(var t=[],e={children:this.columns};e&&e.children;){for(var n,i=e.children,r=null!=(n=e.defaultIndex)?n:+this.defaultIndex;i[r]&&i[r].disabled;){if(!(r<i.length-1)){r=0;break}r++}t.push({values:e.children,className:e.className,defaultIndex:r}),e=i[r]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map(function(t){return t[e.valueKey]})),this.$emit(t,n,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},n=this.getIndexes(),i=0;i<=t;i++)e=e.children[n[i]];for(;e&&e.children;)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map(function(t){return t[e.valueKey]})),this.$emit("change",this,n,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var n=this.getColumn(t);n&&(n.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var n=this.getColumn(t);n&&(n.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var n=this.children[t];n&&n.setOptions(e)},getValues:function(){return this.children.map(function(t){return t.getValue()})},setValues:function(t){var e=this;t.forEach(function(t,n){e.setColumnValue(n,t)})},getIndexes:function(){return this.children.map(function(t){return t.currentIndex})},setIndexes:function(t){var e=this;t.forEach(function(t,n){e.setColumnIndex(n,t)})},confirm:function(){this.children.forEach(function(t){return t.stopMomentum()}),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",Rt("title")]},[this.title]):void 0)},genCancel:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Rt("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||Mt("cancel")])},genConfirm:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Rt("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||Mt("confirm")])},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:Rt("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,n=e*this.visibleItemCount,i={height:e+"px"},r={height:n+"px"},s={backgroundSize:"100% "+(n-e)/2+"px"};return t("div",{class:Rt("columns"),style:r,on:{touchmove:y}},[this.genColumnItems(),t("div",{class:Rt("mask"),style:s}),t("div",{class:["van-hairline-unset--top-bottom",Rt("frame")],style:i})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map(function(n,i){var r;return e(Dt,{attrs:{readonly:t.readonly,valueKey:t.valueKey,allowHtml:t.allowHtml,className:n.className,itemHeight:t.itemPxHeight,defaultIndex:null!=(r=n.defaultIndex)?r:+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:n.values},scopedSlots:{option:t.$scopedSlots.option},on:{change:function(){t.onChange(i)}}})})}},render:function(t){return t("div",{class:Rt()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(ht,{class:Rt("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}}),Kt=Object(A.b)("area"),jt=Kt[0],Vt=Kt[1];var Gt=jt({props:i({},yt,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:function(t){return"9"===t[0]}},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(t){this.code=t,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var t=this;this.$nextTick(function(){t.setValues()})}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var n=[];if("province"!==t&&!e)return n;var i=this[t];if(n=Object.keys(i).map(function(t){return{code:t,name:i[t]}}),e&&(this.isOverseaCode(e)&&"city"===t&&(e="9"),n=n.filter(function(t){return 0===t.code.indexOf(e)})),this.placeholderMap[t]&&n.length){var r="";"city"===t?r="000000".slice(2,4):"county"===t&&(r="000000".slice(4,6)),n.unshift({code:""+e+r,name:this.placeholderMap[t]})}return n},getIndex:function(t,e){var n="province"===t?2:"city"===t?4:6,i=this.getList(t,e.slice(0,n-2));this.isOverseaCode(e)&&"province"===t&&(n=1),e=e.slice(0,n);for(var r=0;r<i.length;r++)if(i[r].code.slice(0,n)===e)return r;return 0},parseOutputValues:function(t){var e=this;return t.map(function(t,n){return t?((t=JSON.parse(JSON.stringify(t))).code&&t.name!==e.columnsPlaceholder[n]||(t.code="",t.name=""),t):t})},onChange:function(t,e,n){this.code=e[n].code,this.setValues();var i=this.parseOutputValues(t.getValues());this.$emit("change",t,i,n)},onConfirm:function(t,e){t=this.parseOutputValues(t),this.setValues(),this.$emit("confirm",t,e)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return"000000";var t=Object.keys(this.county);if(t[0])return t[0];var e=Object.keys(this.city);return e[0]?e[0]:""},setValues:function(){var t=this.code;t||(t=this.getDefaultCode());var e=this.$refs.picker,n=this.getList("province"),i=this.getList("city",t.slice(0,2));e&&(e.setColumnValues(0,n),e.setColumnValues(1,i),i.length&&"00"===t.slice(2,4)&&!this.isOverseaCode(t)&&(t=i[0].code),e.setColumnValues(2,this.getList("county",t.slice(0,4))),e.setIndexes([this.getIndex("province",t),this.getIndex("city",t),this.getIndex("county",t)]))},getValues:function(){var t=this.$refs.picker,e=t?t.getValues().filter(function(t){return!!t}):[];return e=this.parseOutputValues(e),e},getArea:function(){var t=this.getValues(),e={code:"",country:"",province:"",city:"",county:""};if(!t.length)return e;var n=t.map(function(t){return t.name}),i=t.filter(function(t){return!!t.code});return e.code=i.length?i[i.length-1].code:"",this.isOverseaCode(e.code)?(e.country=n[1]||"",e.province=n[2]||""):(e.province=n[0]||"",e.city=n[1]||"",e.county=n[2]||""),e},reset:function(t){this.code=t||"",this.setValues()}},render:function(){var t,e,n,r,s,a=arguments[0],A=i({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return a(Nt,{ref:"picker",class:Vt(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:(t=this,e=["title","columns-top","columns-bottom"],n=t.$slots,r=t.$scopedSlots,s={},e.forEach(function(t){r[t]?s[t]=r[t]:n[t]&&(s[t]=function(){return n[t]})}),s),on:i({},A)})}});function $t(t,e){var n=e.to,i=e.url,r=e.replace;if(n&&t){var s=t[r?"replace":"push"](n);s&&s.catch&&s.catch(function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t})}else i&&(r?location.replace(i):location.href=i)}function Wt(t){$t(t.parent&&t.parent.$router,t.props)}var zt={url:String,replace:Boolean,to:[String,Object]},Xt={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},qt=Object(A.b)("cell"),Yt=qt[0],Jt=qt[1];function Zt(t,e,n,i){var r,a=e.icon,o=e.size,u=e.title,h=e.label,d=e.value,f=e.isLink,p=n.title||Object(A.e)(u);var g=null!=(r=e.clickable)?r:f,m={clickable:g,center:e.center,required:e.required,borderless:!e.border};return o&&(m[o]=o),t("div",s()([{class:Jt(m),attrs:{role:g?"button":null,tabindex:g?0:null},on:{click:function(t){c(i,"click",t),Wt(i)}}},l(i)]),[n.icon?n.icon():a?t(it,{class:Jt("left-icon"),attrs:{name:a,classPrefix:e.iconPrefix}}):void 0,function(){if(p)return t("div",{class:[Jt("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[u]),function(){if(n.label||Object(A.e)(h))return t("div",{class:[Jt("label"),e.labelClass]},[n.label?n.label():h])}()])}(),function(){if(n.default||Object(A.e)(d))return t("div",{class:[Jt("value",{alone:!p}),e.valueClass]},[n.default?n.default():t("span",[d])])}(),function(){var i=n["right-icon"];if(i)return i();if(f){var r=e.arrowDirection;return t(it,{class:Jt("right-icon"),attrs:{name:r?"arrow-"+r:"arrow"}})}}(),null==n.extra?void 0:n.extra()])}Zt.props=i({},Xt,zt);var te=Yt(Zt);var ee=!A.j&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function ne(){ee&&P(D())}var ie=Object(A.b)("field"),re=ie[0],se=ie[1],ae=re({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:i({},Xt,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(A.e)(this.value)&&""!==this.value,n="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&n}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return i({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(A.a)(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise(function(n){var i=e.validator(t,e);if(Object(A.i)(i))return i.then(n);n(i)})},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var n=e.message;return Object(A.g)(n)?n(t,e):n},runRules:function(t){var e=this;return t.reduce(function(t,n){return t.then(function(){if(!e.validateFailed){var t=e.formValue;return n.formatter&&(t=n.formatter(t,n)),e.runSyncRule(t,n)?n.validator?e.runValidator(t,n).then(function(i){!1===i&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,n))}):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,n)))}})},Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise(function(n){t||n(),e.resetValidation(),e.runRules(t).then(function(){e.validateFailed?n({name:e.name,message:e.validateMessage}):n()})})},validateWithTrigger:function(t){if(this.vanForm&&this.rules){var e=this.vanForm.validateTrigger===t,n=this.rules.filter(function(n){return n.trigger?n.trigger===t:e});n.length&&this.validate(n)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(A.e)(t)?String(t):"";var n=this.maxlength;if(Object(A.e)(n)&&t.length>n&&(t=this.value&&this.value.length===+n?this.value:t.slice(0,n)),"number"===this.type||"digit"===this.type){var i="number"===this.type;t=Ft(t,i,i)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var r=this.$refs.input;r&&t!==r.value&&(r.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),ne()},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){y(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){13===t.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||y(t),"search"===this.type&&this.blur());this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){t.style.height="auto";var e=t.scrollHeight;if(Object(A.h)(this.autosize)){var n=this.autosize,i=n.maxHeight,r=n.minHeight;i&&(e=Math.min(e,i)),r&&(e=Math.max(e,r))}e&&(t.style.height=e+"px")}},genInput:function(){var t=this.$createElement,e=this.type,n=this.getProp("disabled"),r=this.getProp("readonly"),a=this.slots("input"),A=this.getProp("inputAlign");if(a)return t("div",{class:se("control",[A,"custom"]),on:{click:this.onClickInput}},[a]);var o={ref:"input",class:se("control",A),domProps:{value:this.value},attrs:i({},this.$attrs,{name:this.name,disabled:n,readonly:r,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",s()([{},o]));var u,l=e;return"number"===e&&(l="text",u="decimal"),"digit"===e&&(l="tel",u="numeric"),t("input",s()([{attrs:{type:l,inputmode:u}},o]))},genLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:se("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(it,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||this.rightIcon)return t("div",{class:se("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(it,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:se("word-limit")},[t("span",{class:se("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var n=this.getProp("errorMessageAlign");return t("div",{class:se("error-message",n)},[e])}}},getProp:function(t){return Object(A.e)(this[t])?this[t]:this.vanForm&&Object(A.e)(this.vanForm[t])?this.vanForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],n=this.slots,i=this.getProp("disabled"),r=this.getProp("labelAlign"),s={icon:this.genLeftIcon},a=this.genLabel();a&&(s.title=function(){return a});var A=this.slots("extra");return A&&(s.extra=function(){return A}),e(te,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:se("value"),titleClass:[se("label",r),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:s,class:se((t={error:this.showError,disabled:i},t["label-"+r]=r,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:se("body")},[this.genInput(),this.showClear&&e(it,{attrs:{name:"clear"},class:se("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),n("button")&&e("div",{class:se("button")},[n("button")])]),this.genWordLimit(),this.genMessage()])}}),Ae=0;var oe=Object(A.b)("toast"),ue=oe[0],le=oe[1],ce=ue({mixins:[$()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var t=this.value&&this.forbidClick;this.clickable!==t&&(this.clickable=t,t?(Ae||document.body.classList.add("van-toast--unclickable"),Ae++):--Ae||document.body.classList.remove("van-toast--unclickable"))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var t=this.$createElement,e=this.icon,n=this.type,i=this.iconPrefix,r=this.loadingType;return e||"success"===n||"fail"===n?t(it,{class:le("icon"),attrs:{classPrefix:i,name:e||n}}):"loading"===n?t(ht,{class:le("loading"),attrs:{type:r}}):void 0},genMessage:function(){var t=this.$createElement,e=this.type,n=this.message;if(Object(A.e)(n)&&""!==n)return"html"===e?t("div",{class:le("text"),domProps:{innerHTML:n}}):t("div",{class:le("text")},[n])}},render:function(){var t,e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[le([this.position,(t={},t[this.type]=!this.icon,t)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}}),he={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},de={},fe=[],pe=!1,ge=i({},he);function me(t){return Object(A.h)(t)?t:{message:t}}function ve(){if(A.j)return{};if(!(fe=fe.filter(function(t){return!t.$el.parentNode||(e=t.$el,document.body.contains(e));var e})).length||pe){var t=new(a.a.extend(ce))({el:document.createElement("div")});t.$on("input",function(e){t.value=e}),fe.push(t)}return fe[fe.length-1]}function ye(t){void 0===t&&(t={});var e=ve();return e.value&&e.updateZIndex(),t=me(t),(t=i({},ge,de[t.type||ge.type],t)).clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),pe&&!A.j&&e.$on("closed",function(){clearTimeout(e.timer),fe=fe.filter(function(t){return t!==e}),E(e.$el),e.$destroy()})},i(e,function(t){return i({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}["loading","success","fail"].forEach(function(t){var e;ye[t]=(e=t,function(t){return ye(i({type:e},me(t)))})}),ye.clear=function(t){fe.length&&(t?(fe.forEach(function(t){t.clear()}),fe=[]):pe?fe.shift().clear():fe[0].clear())},ye.setDefaultOptions=function(t,e){"string"==typeof t?de[t]=e:i(ge,t)},ye.resetDefaultOptions=function(t){"string"==typeof t?de[t]=null:(ge=i({},he),de={})},ye.allowMultiple=function(t){void 0===t&&(t=!0),pe=t},ye.install=function(){a.a.use(ce)},a.a.prototype.$toast=ye;var Be=ye,be=Object(A.b)("button"),we=be[0],Ce=be[1];function _e(t,e,n,i){var r,a=e.tag,A=e.icon,o=e.type,u=e.color,h=e.plain,d=e.disabled,f=e.loading,p=e.hairline,g=e.loadingText,m=e.iconPosition,v={};u&&(v.color=h?u:"white",h||(v.background=u),-1!==u.indexOf("gradient")?v.border=0:v.borderColor=u);var y,B,b=[Ce([o,e.size,{plain:h,loading:f,disabled:d,hairline:p,block:e.block,round:e.round,square:e.square}]),(r={},r[Tt]=p,r)];function w(){return f?n.loading?n.loading():t(ht,{class:Ce("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}}):A?t(it,{attrs:{name:A,classPrefix:e.iconPrefix},class:Ce("icon")}):void 0}return t(a,s()([{style:v,class:b,attrs:{type:e.nativeType,disabled:d},on:{click:function(t){f||d||(c(i,"click",t),Wt(i))},touchstart:function(t){c(i,"touchstart",t)}}},l(i)]),[t("div",{class:Ce("content")},[(B=[],"left"===m&&B.push(w()),(y=f?g:n.default?n.default():e.text)&&B.push(t("span",{class:Ce("text")},[y])),"right"===m&&B.push(w()),B)])])}_e.props=i({},zt,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});var Te=we(_e);function Ee(t,e){var n=e.$vnode.componentOptions;if(n&&n.children){var i=function(t){var e=[];return function t(n){n.forEach(function(n){e.push(n),n.componentInstance&&t(n.componentInstance.$children.map(function(t){return t.$vnode})),n.children&&t(n.children)})}(t),e}(n.children);t.sort(function(t,e){return i.indexOf(t.$vnode)-i.indexOf(e.$vnode)})}}function Se(t,e){var n,i;void 0===e&&(e={});var r=e.indexKey||"index";return{inject:(n={},n[t]={default:null},n),computed:(i={parent:function(){return this.disableBindRelation?null:this[t]}},i[r]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},i),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter(function(e){return e!==t}))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);Ee(t,this.parent),this.parent.children=t}}}}}function ke(t){return{provide:function(){var e;return(e={})[t]=this,e},data:function(){return{children:[]}}}}var Ue,Ie=Object(A.b)("goods-action"),Fe=Ie[0],xe=Ie[1],Qe=Fe({mixins:[ke("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){return(0,arguments[0])("div",{class:xe({unfit:!this.safeAreaInsetBottom})},[this.slots()])}}),Le=Object(A.b)("goods-action-button"),Oe=Le[0],De=Le[1],Pe=Oe({mixins:[Se("vanGoodsAction")],props:i({},zt,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),$t(this.$router,this)}},render:function(){return(0,arguments[0])(Te,{class:De([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}}),He=Object(A.b)("dialog"),Re=He[0],Me=He[1],Ne=He[2],Ke=Re({mixins:[$()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,function(n){!1!==n&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1})):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var t=this,e=this.$createElement;return e(Qe,{class:Me("footer")},[this.showCancelButton&&e(Pe,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||Ne("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:Me("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&e(Pe,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||Ne("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:Me("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,e=this,n=this.$createElement,i=this.showCancelButton&&this.showConfirmButton;return n("div",{class:[wt,Me("footer")]},[this.showCancelButton&&n(Te,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||Ne("cancel")},class:Me("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(Te,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||Ne("confirm")},class:[Me("confirm"),(t={},t[Ct]=i,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var n=this.$createElement;if(e)return n("div",{class:Me("content")},[e]);var i=this.message,r=this.messageAlign;if(i){var a,A,o={class:Me("message",(a={"has-title":t},a[r]=r,a)),domProps:(A={},A[this.allowHtml?"innerHTML":"textContent"]=i,A)};return n("div",{class:Me("content",{isolated:!t})},[n("div",s()([{},o]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,n=this.slots(),i=this.slots("title")||this.title,r=i&&t("div",{class:Me("header",{isolated:!e&&!n})},[i]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[Me([this.theme]),this.className],style:{width:Object(A.a)(this.width)}},[r,this.genContent(i,n),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}});function je(t){return A.j?Promise.resolve():new Promise(function(e,n){var r;Ue&&(r=Ue.$el,document.body.contains(r))||(Ue&&Ue.$destroy(),(Ue=new(a.a.extend(Ke))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",function(t){Ue.value=t})),i(Ue,je.currentOptions,t,{resolve:e,reject:n})})}je.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){Ue["confirm"===t?"resolve":"reject"](t)}},je.alert=je,je.confirm=function(t){return je(i({showCancelButton:!0},t))},je.close=function(){Ue&&(Ue.value=!1)},je.setDefaultOptions=function(t){i(je.currentOptions,t)},je.resetDefaultOptions=function(){je.currentOptions=i({},je.defaultOptions)},je.resetDefaultOptions(),je.install=function(){a.a.use(Ke)},je.Component=Ke,a.a.prototype.$dialog=je;var Ve=je,Ge=Object(A.b)("address-edit-detail"),$e=Ge[0],We=Ge[1],ze=Ge[2],Xe=!A.j&&/android/.test(navigator.userAgent.toLowerCase()),qe=$e({props:{value:String,errorMessage:String,focused:Boolean,detailRows:[Number,String],searchResult:Array,detailMaxlength:[Number,String],showSearchResult:Boolean},computed:{shouldShowSearchResult:function(){return this.focused&&this.searchResult&&this.showSearchResult}},methods:{onSelect:function(t){this.$emit("select-search",t),this.$emit("input",((t.address||"")+" "+(t.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},genFinish:function(){var t=this.$createElement;if(this.value&&this.focused&&Xe)return t("div",{class:We("finish"),on:{click:this.onFinish}},[ze("complete")])},genSearchResult:function(){var t=this,e=this.$createElement,n=this.value,i=this.shouldShowSearchResult,r=this.searchResult;if(i)return r.map(function(i){return e(te,{key:i.name+i.address,attrs:{clickable:!0,border:!1,icon:"location-o",label:i.address},class:We("search-item"),on:{click:function(){t.onSelect(i)}},scopedSlots:{title:function(){if(i.name){var t=i.name.replace(n,"<span class="+We("keyword")+">"+n+"</span>");return e("div",{domProps:{innerHTML:t}})}}}})})}},render:function(){var t=arguments[0];return t(te,{class:We()},[t(ae,{attrs:{autosize:!0,rows:this.detailRows,clearable:!Xe,type:"textarea",value:this.value,errorMessage:this.errorMessage,border:!this.shouldShowSearchResult,label:ze("label"),maxlength:this.detailMaxlength,placeholder:ze("placeholder")},ref:"field",scopedSlots:{icon:this.genFinish},on:i({},this.$listeners)}),this.genSearchResult()])}}),Ye={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},Je={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}},Ze=Object(A.b)("switch"),tn=Ze[0],en=Ze[1],nn=tn({mixins:[Je],props:Ye,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(A.a)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(ht,{class:en("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,n=this.loading,i=this.disabled;return t("div",{class:en({on:e,loading:n,disabled:i}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:en("node")},[this.genLoading()])])}}),rn=Object(A.b)("address-edit"),sn=rn[0],an=rn[1],An=rn[2],on={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1};var un=sn({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,telMaxlength:[Number,String],showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},disableArea:Boolean,detailRows:{type:[Number,String],default:1},detailMaxlength:{type:[Number,String],default:200},addressInfo:{type:Object,default:function(){return i({},on)}},telValidator:{type:Function,default:vt},postalValidator:{type:Function,default:function(t){return/^\d{6}$/.test(t)}},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:"",name:"",areaCode:"",postalCode:"",addressDetail:""}}},computed:{areaListLoaded:function(){return Object(A.h)(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var t=this.data,e=t.country,n=t.province,i=t.city,r=t.county;if(t.areaCode){var s=[e,n,i,r];return n&&n===i&&s.splice(1,1),s.filter(function(t){return t}).join("/")}return""},hideBottomFields:function(){var t=this.searchResult;return t&&t.length&&this.detailFocused}},watch:{addressInfo:{handler:function(t){this.data=i({},on,t),this.setAreaCode(t.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(t){this.errorInfo[t]="",this.detailFocused="addressDetail"===t,this.$emit("focus",t)},onChangeDetail:function(t){this.data.addressDetail=t,this.$emit("change-detail",t)},onAreaConfirm:function(t){(t=t.filter(function(t){return!!t})).some(function(t){return!t.code})?Be(An("areaEmpty")):(this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",t))},assignAreaValues:function(){var t=this.$refs.area;if(t){var e=t.getArea();e.areaCode=e.code,delete e.code,i(this.data,e)}},onSave:function(){var t=this,e=["name","tel"];this.showArea&&e.push("areaCode"),this.showDetail&&e.push("addressDetail"),this.showPostal&&e.push("postalCode"),e.every(function(e){var n=t.getErrorMessage(e);return n&&(t.errorInfo[e]=n),!n})&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(t){var e=String(this.data[t]||"").trim();if(this.validator){var n=this.validator(t,e);if(n)return n}switch(t){case"name":return e?"":An("nameEmpty");case"tel":return this.telValidator(e)?"":An("telInvalid");case"areaCode":return e?"":An("areaEmpty");case"addressDetail":return e?"":An("addressEmpty");case"postalCode":return e&&!this.postalValidator(e)?An("postalEmpty"):""}},onDelete:function(){var t=this;Ve.confirm({title:An("confirmDelete")}).then(function(){t.$emit("delete",t.data)}).catch(function(){t.$emit("cancel-delete",t.data)})},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(t){this.data.areaCode=t||"",t&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(t){this.data.addressDetail=t},onDetailBlur:function(){var t=this;setTimeout(function(){t.detailFocused=!1})},genSetDefaultCell:function(t){var e=this;if(this.showSetDefault){var n={"right-icon":function(){return t(nn,{attrs:{size:"24"},on:{change:function(t){e.$emit("change-default",t)}},model:{value:e.data.isDefault,callback:function(t){e.$set(e.data,"isDefault",t)}}})}};return t(te,{directives:[{name:"show",value:!this.hideBottomFields}],attrs:{center:!0,title:An("defaultAddress")},class:an("default"),scopedSlots:n})}return t()}},render:function(t){var e=this,n=this.data,i=this.errorInfo,r=this.disableArea,s=this.hideBottomFields,a=function(t){return function(){return e.onFocus(t)}};return t("div",{class:an()},[t("div",{class:an("fields")},[t(ae,{attrs:{clearable:!0,label:An("name"),placeholder:An("namePlaceholder"),errorMessage:i.name},on:{focus:a("name")},model:{value:n.name,callback:function(t){e.$set(n,"name",t)}}}),t(ae,{attrs:{clearable:!0,type:"tel",label:An("tel"),maxlength:this.telMaxlength,placeholder:An("telPlaceholder"),errorMessage:i.tel},on:{focus:a("tel")},model:{value:n.tel,callback:function(t){e.$set(n,"tel",t)}}}),t(ae,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,clickable:!r,label:An("area"),placeholder:this.areaPlaceholder||An("areaPlaceholder"),errorMessage:i.areaCode,rightIcon:r?null:"arrow",value:this.areaText},on:{focus:a("areaCode"),click:function(){e.$emit("click-area"),e.showAreaPopup=!r}}}),t(qe,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:n.addressDetail,errorMessage:i.addressDetail,detailRows:this.detailRows,detailMaxlength:this.detailMaxlength,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:a("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(t){e.$emit("select-search",t)}}}),this.showPostal&&t(ae,{directives:[{name:"show",value:!s}],attrs:{type:"tel",maxlength:"6",label:An("postal"),placeholder:An("postal"),errorMessage:i.postalCode},on:{focus:a("postalCode")},model:{value:n.postalCode,callback:function(t){e.$set(n,"postalCode",t)}}}),this.slots()]),this.genSetDefaultCell(t),t("div",{directives:[{name:"show",value:!s}],class:an("buttons")},[t(Te,{attrs:{block:!0,round:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||An("save")},on:{click:this.onSave}}),this.showDelete&&t(Te,{attrs:{block:!0,round:!0,loading:this.isDeleting,text:this.deleteButtonText||An("delete")},on:{click:this.onDelete}})]),t(At,{attrs:{round:!0,position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:e.showAreaPopup,callback:function(t){e.showAreaPopup=t}}},[t(Gt,{ref:"area",attrs:{value:n.areaCode,loading:!this.areaListLoaded,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){e.showAreaPopup=!1}}})])])}}),ln=Object(A.b)("radio-group"),cn=ln[0],hn=ln[1],dn=cn({mixins:[ke("vanRadio"),Je],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){return(0,arguments[0])("div",{class:hn([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}}),fn=Object(A.b)("tag"),pn=fn[0],gn=fn[1];function mn(t,e,n,i){var r,a=e.type,A=e.mark,o=e.plain,u=e.color,h=e.round,d=e.size,f=e.textColor,p=((r={})[o?"color":"backgroundColor"]=u,r);o?(p.color=f||u,p.borderColor=u):(p.color=f,p.background=u);var g={mark:A,plain:o,round:h};d&&(g[d]=d);var m=e.closeable&&t(it,{attrs:{name:"cross"},class:gn("close"),on:{click:function(t){t.stopPropagation(),c(i,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",s()([{key:"content",style:p,class:gn([g,a])},l(i,!0)]),[null==n.default?void 0:n.default(),m])])}mn.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var vn=pn(mn),yn=function(t){var e=t.parent,n=t.bem,i=t.role;return{mixins:[Se(e),Je],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===i&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,n=t.target,i=this.$refs.icon,r=i===n||i.contains(n);this.isDisabled||!r&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout(function(){e.$emit("click",t)}))},genIcon:function(){var t=this.$createElement,e=this.checked,i=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:n("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(A.a)(i)}},[this.slots("icon",{checked:e})||t(it,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:n("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:i,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:n([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}},Bn=Object(A.b)("radio"),bn=(0,Bn[0])({mixins:[yn({bem:Bn[1],role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}}),wn=Object(A.b)("address-item"),Cn=wn[0],_n=wn[1];function Tn(t,e,n,r){var a=e.disabled,A=e.switchable;return t("div",{class:_n({disabled:a}),on:{click:function(){A&&c(r,"select"),c(r,"click")}}},[t(te,s()([{attrs:{border:!1,valueClass:_n("value")},scopedSlots:{default:function(){var r=e.data,s=[t("div",{class:_n("name")},[r.name+" "+r.tel,n.tag?n.tag(i({},e.data)):e.data.isDefault&&e.defaultTagText?t(vn,{attrs:{type:"danger",round:!0},class:_n("tag")},[e.defaultTagText]):void 0]),t("div",{class:_n("address")},[r.address])];return A&&!a?t(bn,{attrs:{name:r.id,iconSize:18}},[s]):s},"right-icon":function(){return t(it,{attrs:{name:"edit"},class:_n("edit"),on:{click:function(t){t.stopPropagation(),c(r,"edit"),c(r,"click")}}})}}},l(r)])),null==n.bottom?void 0:n.bottom(i({},e.data,{disabled:a}))])}Tn.props={data:Object,disabled:Boolean,switchable:Boolean,defaultTagText:String};var En=Cn(Tn),Sn=Object(A.b)("address-list"),kn=Sn[0],Un=Sn[1],In=Sn[2];function Fn(t,e,n,i){function r(r,s){if(r)return r.map(function(r,a){return t(En,{attrs:{data:r,disabled:s,switchable:e.switchable,defaultTagText:e.defaultTagText},key:r.id,scopedSlots:{bottom:n["item-bottom"],tag:n.tag},on:{select:function(){c(i,s?"select-disabled":"select",r,a),s||c(i,"input",r.id)},edit:function(){c(i,s?"edit-disabled":"edit",r,a)},click:function(){c(i,"click-item",r,a)}}})})}var a=r(e.list),A=r(e.disabledList,!0);return t("div",s()([{class:Un()},l(i)]),[null==n.top?void 0:n.top(),t(dn,{attrs:{value:e.value}},[a]),e.disabledText&&t("div",{class:Un("disabled-text")},[e.disabledText]),A,null==n.default?void 0:n.default(),t("div",{class:Un("bottom")},[t(Te,{attrs:{round:!0,block:!0,type:"danger",text:e.addButtonText||In("add")},class:Un("add"),on:{click:function(){c(i,"add")}}})])])}Fn.props={list:Array,value:[Number,String],disabledList:Array,disabledText:String,addButtonText:String,defaultTagText:String,switchable:{type:Boolean,default:!0}};var xn=kn(Fn),Qn=n("mRXp"),Ln=Object(A.b)("badge"),On=Ln[0],Dn=Ln[1],Pn=On({props:{dot:Boolean,max:[Number,String],color:String,content:[Number,String],tag:{type:String,default:"div"}},methods:{hasContent:function(){return!!(this.$scopedSlots.content||Object(A.e)(this.content)&&""!==this.content)},renderContent:function(){var t=this.dot,e=this.max,n=this.content;if(!t&&this.hasContent())return this.$scopedSlots.content?this.$scopedSlots.content():Object(A.e)(e)&&Object(Qn.b)(n)&&+n>e?e+"+":n},renderBadge:function(){var t=this.$createElement;if(this.hasContent()||this.dot)return t("div",{class:Dn({dot:this.dot,fixed:!!this.$scopedSlots.default}),style:{background:this.color}},[this.renderContent()])}},render:function(){var t=arguments[0];return this.$scopedSlots.default?t(this.tag,{class:Dn("wrapper")},[this.$scopedSlots.default(),this.renderBadge()]):this.renderBadge()}}),Hn=n("3X7g");function Rn(t){return"[object Date]"===Object.prototype.toString.call(t)&&!Object(Qn.a)(t.getTime())}var Mn=Object(A.b)("calendar"),Nn=Mn[0],Kn=Mn[1],jn=Mn[2];function Vn(t,e){var n=t.getFullYear(),i=e.getFullYear(),r=t.getMonth(),s=e.getMonth();return n===i?r===s?0:r>s?1:-1:n>i?1:-1}function Gn(t,e){var n=Vn(t,e);if(0===n){var i=t.getDate(),r=e.getDate();return i===r?0:i>r?1:-1}return n}function $n(t,e){return(t=new Date(t)).setDate(t.getDate()+e),t}function Wn(t){return $n(t,1)}function zn(t){return new Date(t)}function Xn(t){return Array.isArray(t)?t.map(function(t){return null===t?t:zn(t)}):zn(t)}function qn(t,e){return 32-new Date(t,e-1,32).getDate()}var Yn=(0,Object(A.b)("calendar-month")[0])({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return t=this.date,jn("monthTitle",t.getFullYear(),t.getMonth()+1);var t},rowHeightWithUnit:function(){return Object(A.a)(this.rowHeight)},offset:function(){var t=this.firstDayOfWeek,e=this.date.getDay();return t?(e+7-this.firstDayOfWeek)%7:e},totalDay:function(){return qn(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var t=[],e=Math.ceil((this.totalDay+this.offset)/7),n=1;n<=e;n++)t.push({type:"placeholder"});return t},days:function(){for(var t=[],e=this.date.getFullYear(),n=this.date.getMonth(),i=1;i<=this.totalDay;i++){var r=new Date(e,n,i),s=this.getDayType(r),a={date:r,type:s,text:i,bottomInfo:this.getBottomInfo(s)};this.formatter&&(a=this.formatter(a)),t.push(a)}return t}},methods:{getHeight:function(){return this.height||(this.height=this.$el.getBoundingClientRect().height),this.height},scrollIntoView:function(t){var e=this.$refs,n=e.days,i=e.month;O(t,(this.showSubtitle?n:i).getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop)},getMultipleDayType:function(t){var e=this,n=function(t){return e.currentDate.some(function(e){return 0===Gn(e,t)})};if(n(t)){var i=$n(t,-1),r=Wn(t),s=n(i),a=n(r);return s&&a?"multiple-middle":s?"end":a?"start":"multiple-selected"}return""},getRangeDayType:function(t){var e=this.currentDate,n=e[0],i=e[1];if(!n)return"";var r=Gn(t,n);if(!i)return 0===r?"start":"";var s=Gn(t,i);return 0===r&&0===s&&this.allowSameDay?"start-end":0===r?"start":0===s?"end":r>0&&s<0?"middle":void 0},getDayType:function(t){var e=this.type,n=this.minDate,i=this.maxDate,r=this.currentDate;return Gn(t,n)<0||Gn(t,i)>0?"disabled":null!==r?"single"===e?0===Gn(t,r)?"selected":"":"multiple"===e?this.getMultipleDayType(t):"range"===e?this.getRangeDayType(t):void 0:void 0},getBottomInfo:function(t){if("range"===this.type){if("start"===t||"end"===t)return jn(t);if("start-end"===t)return jn("startEnd")}},getDayStyle:function(t,e){var n={height:this.rowHeightWithUnit};return"placeholder"===t?(n.width="100%",n):(0===e&&(n.marginLeft=100*this.offset/7+"%"),this.color&&("start"===t||"end"===t||"start-end"===t||"multiple-selected"===t||"multiple-middle"===t?n.background=this.color:"middle"===t&&(n.color=this.color)),n)},genTitle:function(){var t=this.$createElement;if(this.showMonthTitle)return t("div",{class:Kn("month-title")},[this.title])},genMark:function(){var t=this.$createElement;if(this.showMark&&this.shouldRender)return t("div",{class:Kn("month-mark")},[this.date.getMonth()+1])},genDays:function(){var t=this.$createElement,e=this.shouldRender?this.days:this.placeholders;return t("div",{ref:"days",attrs:{role:"grid"},class:Kn("days")},[this.genMark(),e.map(this.genDay)])},genDay:function(t,e){var n=this,i=this.$createElement,r=t.type,s=t.topInfo,a=t.bottomInfo,A=this.getDayStyle(r,e),o="disabled"===r,u=function(){o||n.$emit("click",t)},l=s&&i("div",{class:Kn("top-info")},[s]),c=a&&i("div",{class:Kn("bottom-info")},[a]);return"selected"===r?i("div",{attrs:{role:"gridcell",tabindex:-1},style:A,class:[Kn("day"),t.className],on:{click:u}},[i("div",{class:Kn("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[l,t.text,c])]):i("div",{attrs:{role:"gridcell",tabindex:o?null:-1},style:A,class:[Kn("day",r),t.className],on:{click:u}},[l,t.text,c])}},render:function(){return(0,arguments[0])("div",{class:Kn("month"),ref:"month"},[this.genTitle(),this.genDays()])}}),Jn=(0,Object(A.b)("calendar-header")[0])({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var t=this.$createElement;if(this.showTitle){var e=this.slots("title")||this.title||jn("title");return t("div",{class:Kn("header-title")},[e])}},genSubtitle:function(){var t=this.$createElement;if(this.showSubtitle)return t("div",{class:Kn("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=jn("weekdays"),n=this.firstDayOfWeek,i=[].concat(e.slice(n,7),e.slice(0,n));return t("div",{class:Kn("weekdays")},[i.map(function(e){return t("span",{class:Kn("weekday")},[e])})])}},render:function(){return(0,arguments[0])("div",{class:Kn("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),Zn=Nn({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:Rn,default:function(){return new Date}},maxDate:{type:Date,validator:Rn,default:function(){var t=new Date;return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(t){return t>=0&&t<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var t=[],e=new Date(this.minDate);e.setDate(1);do{t.push(new Date(e)),e.setMonth(e.getMonth()+1)}while(1!==Vn(e,this.maxDate));return t},buttonDisabled:function(){var t=this.type,e=this.currentDate;if(e){if("range"===t)return!e[0]||!e[1];if("multiple"===t)return!e.length}return!e},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(t){this.currentDate=t,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(t){void 0===t&&(t=this.getInitialDate()),this.currentDate=t,this.scrollIntoView()},init:function(){var t=this;this.poppable&&!this.value||this.$nextTick(function(){t.bodyHeight=Math.floor(t.$refs.body.getBoundingClientRect().height),t.onScroll(),t.scrollIntoView()})},scrollToDate:function(t){var e=this;Object(Hn.c)(function(){var n=e.value||!e.poppable;t&&n&&(e.months.some(function(n,i){if(0===Vn(n,t)){var r=e.$refs,s=r.body;return r.months[i].scrollIntoView(s),!0}return!1}),e.onScroll())})},scrollIntoView:function(){var t=this.currentDate;if(t){var e="single"===this.type?t:t[0];this.scrollToDate(e)}},getInitialDate:function(){var t=this.type,e=this.minDate,n=this.maxDate,i=this.defaultDate;if(null===i)return i;var r=new Date;if(-1===Gn(r,e)?r=e:1===Gn(r,n)&&(r=n),"range"===t){var s=i||[],a=s[0],A=s[1];return[a||r,A||Wn(r)]}return"multiple"===t?i||[r]:i||r},onScroll:function(){var t=this.$refs,e=t.body,n=t.months,i=L(e),r=i+this.bodyHeight,s=n.map(function(t){return t.getHeight()});if(!(r>s.reduce(function(t,e){return t+e},0)&&i>0)){for(var a,A=0,o=[-1,-1],u=0;u<n.length;u++){A<=r&&A+s[u]>=i&&(o[1]=u,a||(a=n[u],o[0]=u),n[u].showed||(n[u].showed=!0,this.$emit("month-show",{date:n[u].date,title:n[u].title}))),A+=s[u]}n.forEach(function(t,e){t.visible=e>=o[0]-1&&e<=o[1]+1}),a&&(this.subtitle=a.title)}},onClickDay:function(t){if(!this.readonly){var e=t.date,n=this.type,i=this.currentDate;if("range"===n){if(!i)return void this.select([e,null]);var r=i[0],s=i[1];if(r&&!s){var a=Gn(e,r);1===a?this.select([r,e],!0):-1===a?this.select([e,null]):this.allowSameDay&&this.select([e,e],!0)}else this.select([e,null])}else if("multiple"===n){if(!i)return void this.select([e]);var A;if(this.currentDate.some(function(t,n){var i=0===Gn(t,e);return i&&(A=n),i})){var o=i.splice(A,1)[0];this.$emit("unselect",zn(o))}else this.maxRange&&i.length>=this.maxRange?Be(this.rangePrompt||jn("rangePrompt",this.maxRange)):this.select([].concat(i,[e]))}else this.select(e,!0)}},togglePopup:function(t){this.$emit("input",t)},select:function(t,e){var n=this,i=function(t){n.currentDate=t,n.$emit("select",Xn(n.currentDate))};if(e&&"range"===this.type&&!this.checkRange(t))return void(this.showConfirm?i([t[0],$n(t[0],this.maxRange-1)]):i(t));i(t),e&&!this.showConfirm&&this.onConfirm()},checkRange:function(t){var e=this.maxRange,n=this.rangePrompt;return!(e&&function(t){var e=t[0].getTime();return(t[1].getTime()-e)/864e5+1}(t)>e)||(Be(n||jn("rangePrompt",e)),!1)},onConfirm:function(){this.$emit("confirm",Xn(this.currentDate))},genMonth:function(t,e){var n=this.$createElement,i=0!==e||!this.showSubtitle;return n(Yn,{ref:"months",refInFor:!0,attrs:{date:t,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:i,firstDayOfWeek:this.dayOffset},on:{click:this.onClickDay}})},genFooterContent:function(){var t=this.$createElement,e=this.slots("footer");if(e)return e;if(this.showConfirm){var n=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return t(Te,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:Kn("confirm"),on:{click:this.onConfirm}},[n||jn("confirm")])}},genFooter:function(){return(0,this.$createElement)("div",{class:Kn("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var t=this,e=this.$createElement;return e("div",{class:Kn()},[e(Jn,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return t.slots("title")}}}),e("div",{ref:"body",class:Kn("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var t=this,e=arguments[0];if(this.poppable){var n,i=function(e){return function(){return t.$emit(e)}};return e(At,{attrs:(n={round:!0,value:this.value},n.round=this.round,n.position=this.position,n.closeable=this.showTitle||this.showSubtitle,n.getContainer=this.getContainer,n.closeOnPopstate=this.closeOnPopstate,n.closeOnClickOverlay=this.closeOnClickOverlay,n),class:Kn("popup"),on:{input:this.togglePopup,open:i("open"),opened:i("opened"),close:i("close"),closed:i("closed")}},[this.genCalendar()])}return this.genCalendar()}}),ti=Object(A.b)("image"),ei=ti[0],ni=ti[1],ii=ei({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(A.e)(this.width)&&(t.width=Object(A.a)(this.width)),Object(A.e)(this.height)&&(t.height=Object(A.a)(this.height)),Object(A.e)(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(A.a)(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&A.d&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){t.el===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){t.el!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:ni("loading")},[this.slots("loading")||t(it,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:ni("loading-icon")})]):this.error&&this.showError?t("div",{class:ni("error")},[this.slots("error")||t(it,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:ni("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:ni("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",s()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",s()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){return(0,arguments[0])("div",{class:ni({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),ri=Object(A.b)("card"),si=ri[0],ai=ri[1];function Ai(t,e,n,i){var r,a=e.thumb,o=n.num||Object(A.e)(e.num),u=n.price||Object(A.e)(e.price),h=n["origin-price"]||Object(A.e)(e.originPrice),d=o||u||h||n.bottom;function f(t){c(i,"click-thumb",t)}return t("div",s()([{class:ai()},l(i,!0)]),[t("div",{class:ai("header")},[function(){if(n.thumb||a)return t("a",{attrs:{href:e.thumbLink},class:ai("thumb"),on:{click:f}},[n.thumb?n.thumb():t(ii,{attrs:{src:a,width:"100%",height:"100%",fit:"cover","lazy-load":e.lazyLoad}}),function(){if(n.tag||e.tag)return t("div",{class:ai("tag")},[n.tag?n.tag():t(vn,{attrs:{mark:!0,type:"danger"}},[e.tag])])}()])}(),t("div",{class:ai("content",{centered:e.centered})},[t("div",[n.title?n.title():e.title?t("div",{class:[ai("title"),"van-multi-ellipsis--l2"]},[e.title]):void 0,n.desc?n.desc():e.desc?t("div",{class:[ai("desc"),"van-ellipsis"]},[e.desc]):void 0,null==n.tags?void 0:n.tags()]),d&&t("div",{class:"van-card__bottom"},[null==(r=n["price-top"])?void 0:r.call(n),function(){if(u)return t("div",{class:ai("price")},[n.price?n.price():(i=e.price.toString().split("."),t("div",[t("span",{class:ai("price-currency")},[e.currency]),t("span",{class:ai("price-integer")},[i[0]]),".",t("span",{class:ai("price-decimal")},[i[1]])]))]);var i}(),function(){if(h){var i=n["origin-price"];return t("div",{class:ai("origin-price")},[i?i():e.currency+" "+e.originPrice])}}(),function(){if(o)return t("div",{class:ai("num")},[n.num?n.num():"x"+e.num])}(),null==n.bottom?void 0:n.bottom()])])]),function(){if(n.footer)return t("div",{class:ai("footer")},[n.footer()])}()])}Ai.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};var oi,ui=si(Ai),li=Object(A.b)("tab"),ci=li[0],hi=li[1],di=ci({mixins:[Se("vanTabs")],props:i({},zt,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick(function(){e.parent.$emit("rendered",e.computedName,e.title)})}},render:function(t){var e=this.slots,n=this.parent,i=this.isActive,r=e();if(r||n.animated){var s=n.scrollspy||i,a=this.inited||n.scrollspy||!n.lazyRender?r:t();return n.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!i},class:hi("pane-wrapper",{inactive:!i})},[t("div",{class:hi("pane")},[a])]):t("div",{directives:[{name:"show",value:s}],attrs:{role:"tabpanel"},class:hi("pane")},[a])}}});function fi(t){var e=window.getComputedStyle(t),n="none"===e.display,i=null===t.offsetParent&&"fixed"!==e.position;return n||i}function pi(t){var e=t.interceptor,n=t.args,i=t.done;if(e){var r=e.apply(void 0,n);Object(A.i)(r)?r.then(function(t){t&&i()}).catch(A.k):r&&i()}else i()}var gi=Object(A.b)("tab"),mi=gi[0],vi=gi[1],yi=mi({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,n=this.isActive,i="card"===this.type;e&&i&&(t.borderColor=e,this.disabled||(n?t.backgroundColor=e:t.color=e));var r=n?this.activeColor:this.inactiveColor;return r&&(t.color=r),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:vi("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(A.e)(this.info)&&""!==this.info?t("span",{class:vi("text-wrapper")},[e,t(Y,{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){return(0,arguments[0])("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[vi({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),Bi=Object(A.b)("sticky"),bi=Bi[0],wi=Bi[1],Ci=bi({mixins:[j(function(t,e){if(this.scroller||(this.scroller=Q(this.$el)),this.observer){var n=e?"observe":"unobserve";this.observer[n](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()})],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(St.b)(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(A.e)(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},watch:{fixed:function(t){this.$emit("change",t)}},created:function(){var t=this;!A.j&&window.IntersectionObserver&&(this.observer=new IntersectionObserver(function(e){e[0].intersectionRatio>0&&t.onScroll()},{root:document.body}))},methods:{onScroll:function(){var t=this;if(!fi(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,n=this.offsetTopPx,i=L(window),r=H(this.$el),s=function(){t.$emit("scroll",{scrollTop:i,isFixed:t.fixed})};if(e){var a=r+e.offsetHeight;if(i+n+this.height>a){var A=this.height+i-a;return A<this.height?(this.fixed=!0,this.transform=-(A+n)):this.fixed=!1,void s()}}i+n>r?(this.fixed=!0,this.transform=0):this.fixed=!1,s()}}},render:function(){var t=arguments[0],e=this.fixed;return t("div",{style:{height:e?this.height+"px":null}},[t("div",{class:wi({fixed:e}),style:this.style},[this.slots()])])}}),_i=Object(A.b)("tabs"),Ti=_i[0],Ei=_i[1],Si=Ti({mixins:[M],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.currentIndex;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==n?this.$emit("change",n-1):e<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:Ei("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){return(0,arguments[0])("div",{class:Ei("content",{animated:this.animated}),on:i({},this.listeners)},[this.genChildren()])}}),ki=Object(A.b)("tabs"),Ui=ki[0],Ii=ki[1],Fi=Ui({mixins:[ke("vanTabs"),j(function(t){this.scroller||(this.scroller=Q(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)})],model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(St.b)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick(function(){t.scrollIntoView(!0)})},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&P(Math.ceil(H(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?g(this.scroller,"scroll",this.onScroll,!0):m(this.scroller,"scroll",this.onScroll)}},mounted:function(){this.init()},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick(function(){var e;t.inited=!0,t.tabHeight=F(e=t.$refs.wrap)?e.innerHeight:e.getBoundingClientRect().height,t.scrollIntoView(!0)})},setLine:function(){var t=this,e=this.inited;this.$nextTick(function(){var n=t.$refs.titles;if(n&&n[t.currentIndex]&&"line"===t.type&&!fi(t.$el)){var i=n[t.currentIndex].$el,r=t.lineWidth,s=t.lineHeight,a=i.offsetLeft+i.offsetWidth/2,o={width:Object(A.a)(r),backgroundColor:t.color,transform:"translateX("+a+"px) translateX(-50%)"};if(e&&(o.transitionDuration=t.duration+"s"),Object(A.e)(s)){var u=Object(A.a)(s);o.height=u,o.borderRadius=u}t.lineStyle=o}})},setCurrentIndexByName:function(t){var e=this.children.filter(function(e){return e.computedName===t}),n=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:n)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(A.e)(e)){var n=this.children[e],i=n.computedName,r=null!==this.currentIndex;this.currentIndex=e,i!==this.active&&(this.$emit("input",i),r&&this.$emit("change",i,n.title))}},findAvailableTab:function(t){for(var e=t<this.currentIndex?-1:1;t>=0&&t<this.children.length;){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var n=this,i=this.children[e],r=i.title,s=i.disabled,a=i.computedName;s?this.$emit("disabled",a,r):(pi({interceptor:this.beforeChange,args:[a],done:function(){n.setCurrentIndex(e),n.scrollToCurrentContent()}}),this.$emit("click",a,r),$t(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var n=this.$refs.nav,i=e[this.currentIndex].$el;!function(t,e,n){Object(Hn.a)(oi);var i=0,r=t.scrollLeft,s=0===n?1:Math.round(1e3*n/16);!function n(){t.scrollLeft+=(e-r)/s,++i<s&&(oi=Object(Hn.c)(n))}()}(n,i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick(function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)})},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var n=this.children[this.currentIndex],i=null==n?void 0:n.$el;if(i){var r=H(i,this.scroller)-this.scrollOffset;this.lockScroll=!0,function(t,e,n,i){var r=L(t),s=r<e,a=0===n?1:Math.round(1e3*n/16),A=(e-r)/a;!function n(){r+=A,(s&&r>e||!s&&r<e)&&(r=e),O(t,r),s&&r<e||!s&&r>e?Object(Hn.c)(n):i&&Object(Hn.c)(i)}()}(this.scroller,r,t?0:+this.duration,function(){e.lockScroll=!1})}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t,e=this.children,n=0;n<e.length;n++){if((F(t=e[n].$el)?0:t.getBoundingClientRect().top)>this.scrollOffset)return 0===n?0:n-1}return e.length-1}},render:function(){var t,e=this,n=arguments[0],i=this.type,r=this.animated,s=this.scrollable,a=this.children.map(function(t,r){var a;return n(yi,{ref:"titles",refInFor:!0,attrs:{type:i,dot:t.dot,info:null!=(a=t.badge)?a:t.info,title:t.title,color:e.color,isActive:r===e.currentIndex,disabled:t.disabled,scrollable:s,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,r)}}})}),A=n("div",{ref:"wrap",class:[Ii("wrap",{scrollable:s}),(t={},t[Et]="line"===i&&this.border,t)]},[n("div",{ref:"nav",attrs:{role:"tablist"},class:Ii("nav",[i,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),a,"line"===i&&n("div",{class:Ii("line"),style:this.lineStyle}),this.slots("nav-right")])]);return n("div",{class:Ii([i])},[this.sticky?n(Ci,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[A]):A,n(Si,{attrs:{count:this.children.length,animated:r,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}}),xi=Object(A.b)("cascader"),Qi=xi[0],Li=xi[1],Oi=xi[2],Di=Qi({props:{title:String,value:[Number,String],fieldNames:Object,placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},computed:{textKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.text)||"text"},valueKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.value)||"value"},childrenKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.children)||"children"}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(t){var e=this;if((t||0===t)&&-1!==this.tabs.map(function(t){var n;return null==(n=t.selectedOption)?void 0:n[e.valueKey]}).indexOf(t))return;this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i[this.valueKey]===e)return[i];if(i[this.childrenKey]){var r=this.getSelectedOptionsByValue(i[this.childrenKey],e);if(r)return[i].concat(r)}}},updateTabs:function(){var t=this;if(this.value||0===this.value){var e=this.getSelectedOptionsByValue(this.options,this.value);if(e){var n=this.options;return this.tabs=e.map(function(e){var i={options:n,selectedOption:e},r=n.filter(function(n){return n[t.valueKey]===e[t.valueKey]});return r.length&&(n=r[0][t.childrenKey]),i}),n&&this.tabs.push({options:n,selectedOption:null}),void this.$nextTick(function(){t.activeTab=t.tabs.length-1})}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(t,e){var n=this;if(this.tabs[e].selectedOption=t,this.tabs.length>e+1&&(this.tabs=this.tabs.slice(0,e+1)),t[this.childrenKey]){var i={options:t[this.childrenKey],selectedOption:null};this.tabs[e+1]?this.$set(this.tabs,e+1,i):this.tabs.push(i),this.$nextTick(function(){n.activeTab++})}var r=this.tabs.map(function(t){return t.selectedOption}).filter(function(t){return!!t}),s={value:t[this.valueKey],tabIndex:e,selectedOptions:r};this.$emit("input",t[this.valueKey]),this.$emit("change",s),t[this.childrenKey]||this.$emit("finish",s)},onClose:function(){this.$emit("close")},renderHeader:function(){var t=this.$createElement;return t("div",{class:Li("header")},[t("h2",{class:Li("title")},[this.slots("title")||this.title]),this.closeable?t(it,{attrs:{name:"cross"},class:Li("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(t,e,n){var i=this,r=this.$createElement;return r("ul",{class:Li("options")},[t.map(function(t){var s=e&&t[i.valueKey]===e[i.valueKey];return r("li",{class:Li("option",{selected:s}),style:{color:s?i.activeColor:null},on:{click:function(){i.onSelect(t,n)}}},[r("span",[t[i.textKey]]),s?r(it,{attrs:{name:"success"},class:Li("selected-icon")}):null])})])},renderTab:function(t,e){var n=this.$createElement,i=t.options,r=t.selectedOption,s=r?r[this.textKey]:this.placeholder||Oi("select");return n(di,{attrs:{title:s,titleClass:Li("tab",{unselected:!r})}},[this.renderOptions(i,r,e)])},renderTabs:function(){var t=this;return(0,this.$createElement)(Fi,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:Li("tabs"),model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[this.tabs.map(this.renderTab)])}},render:function(){return(0,arguments[0])("div",{class:Li()},[this.renderHeader(),this.renderTabs()])}}),Pi=Object(A.b)("cell-group"),Hi=Pi[0],Ri=Pi[1];function Mi(t,e,n,i){var r,a=t("div",s()([{class:[Ri(),(r={},r[Et]=e.border,r)]},l(i,!0)]),[null==n.default?void 0:n.default()]);return e.title||n.title?t("div",[t("div",{class:Ri("title")},[n.title?n.title():e.title]),a]):a}Mi.props={title:String,border:{type:Boolean,default:!0}};var Ni=Hi(Mi),Ki=Object(A.b)("checkbox"),ji=(0,Ki[0])({mixins:[yn({bem:Ki[1],role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout(function(){e.checked=t})},setParentValue:function(t){var e=this.parent,n=e.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var i=n.indexOf(this.name);-1!==i&&(n.splice(i,1),e.$emit("input",n))}}}}),Vi=Object(A.b)("checkbox-group"),Gi=Vi[0],$i=Vi[1],Wi=Gi({mixins:[ke("vanCheckbox"),Je],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"==typeof t&&(t={checked:t});var e=t,n=e.checked,i=e.skipDisabled,r=this.children.filter(function(t){return t.disabled&&i?t.checked:null!=n?n:!t.checked}).map(function(t){return t.name});this.$emit("input",r)}},render:function(){return(0,arguments[0])("div",{class:$i([this.direction])},[this.slots()])}}),zi=Object(A.b)("circle"),Xi=zi[0],qi=zi[1],Yi=0;function Ji(t){return Math.min(Math.max(t,0),100)}var Zi=Xi({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+Yi++},computed:{style:function(){var t=Object(A.a)(this.size);return{width:t,height:t}},path:function(){return t=this.clockwise,"M "+(e=this.viewBoxSize)/2+" "+e/2+" m 0, -500 a 500, 500 0 1, "+(n=t?1:0)+" 0, 1000 a 500, 500 0 1, "+n+" 0, -1000";var t,e,n},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var t=3140*this.value/100;return{stroke:""+(this.gradient?"url(#"+this.uid+")":this.color),strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:t+"px 3140px"}},gradient:function(){return Object(A.h)(this.color)},LinearGradient:function(){var t=this,e=this.$createElement;if(this.gradient){var n=Object.keys(this.color).sort(function(t,e){return parseFloat(t)-parseFloat(e)}).map(function(n,i){return e("stop",{key:i,attrs:{offset:n,"stop-color":t.color[n]}})});return e("defs",[e("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[n])])}}},watch:{rate:{handler:function(t){this.startTime=Date.now(),this.startRate=this.value,this.endRate=Ji(t),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(Hn.a)(this.rafId),this.rafId=Object(Hn.c)(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1)*(this.endRate-this.startRate)+this.startRate;this.$emit("input",Ji(parseFloat(e.toFixed(1)))),(this.increase?e<this.endRate:e>this.endRate)&&(this.rafId=Object(Hn.c)(this.animate))}},render:function(){var t=arguments[0];return t("div",{class:qi(),style:this.style},[t("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,t("path",{class:qi("layer"),style:this.layerStyle,attrs:{d:this.path}}),t("path",{attrs:{d:this.path},class:qi("hover"),style:this.hoverStyle})]),this.slots()||this.text&&t("div",{class:qi("text")},[this.text])])}}),tr=Object(A.b)("col"),er=tr[0],nr=tr[1],ir=er({mixins:[Se("vanRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var t=this.index,e=(this.parent||{}).spaces;if(e&&e[t]){var n=e[t],i=n.left,r=n.right;return{paddingLeft:i?i+"px":null,paddingRight:r?r+"px":null}}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.span,i=this.offset;return e(this.tag,{style:this.style,class:nr((t={},t[n]=n,t["offset-"+i]=i,t)),on:{click:this.onClick}},[this.slots()])}}),rr=Object(A.b)("collapse"),sr=rr[0],ar=rr[1],Ar=sr({mixins:[ke("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(t,e){this.accordion||(t=e?this.value.concat(t):this.value.filter(function(e){return e!==t})),this.$emit("change",t),this.$emit("input",t)}},render:function(){var t;return(0,arguments[0])("div",{class:[ar(),(t={},t[Et]=this.border,t)]},[this.slots()])}}),or=Object(A.b)("collapse-item"),ur=or[0],lr=or[1],cr=["title","icon","right-icon"],hr=ur({mixins:[Se("vanCollapse")],props:i({},Xt,{name:[Number,String],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var t;return null!=(t=this.name)?t:this.index},expanded:function(){var t=this;if(!this.parent)return null;var e=this.parent,n=e.value;return e.accordion?n===this.currentName:n.some(function(e){return e===t.currentName})}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(t,e){var n=this;null!==e&&(t&&(this.show=!0,this.inited=!0),(t?this.$nextTick:Hn.c)(function(){var e=n.$refs,i=e.content,r=e.wrapper;if(i&&r){var s=i.offsetHeight;if(s){var a=s+"px";r.style.height=t?0:a,Object(Hn.b)(function(){r.style.height=t?a:0})}else n.onTransitionEnd()}}))}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(t){void 0===t&&(t=!this.expanded);var e=this.parent,n=this.currentName,i=e.accordion&&n===e.value?"":n;this.parent.switch(i,t)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var t=this,e=this.$createElement,n=this.border,r=this.disabled,s=this.expanded,a=cr.reduce(function(e,n){return t.slots(n)&&(e[n]=function(){return t.slots(n)}),e},{});return this.slots("value")&&(a.default=function(){return t.slots("value")}),e(te,{attrs:{role:"button",tabindex:r?-1:0,"aria-expanded":String(s)},class:lr("title",{disabled:r,expanded:s,borderless:!n}),on:{click:this.onClick},scopedSlots:a,props:i({},this.$props)})},genContent:function(){var t=this.$createElement;if(this.inited)return t("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:lr("wrapper"),on:{transitionend:this.onTransitionEnd}},[t("div",{ref:"content",class:lr("content")},[this.slots()])])}},render:function(){return(0,arguments[0])("div",{class:[lr({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}}),dr=Object(A.b)("contact-card"),fr=dr[0],pr=dr[1],gr=dr[2];function mr(t,e,n,i){var r=e.type,a=e.editable;return t(te,s()([{attrs:{center:!0,border:!1,isLink:a,valueClass:pr("value"),icon:"edit"===r?"contact":"add-square"},class:pr([r]),on:{click:function(t){a&&c(i,"click",t)}}},l(i)]),["add"===r?e.addText||gr("addText"):[t("div",[gr("name")+":"+e.name]),t("div",[gr("tel")+":"+e.tel])]])}mr.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};var vr=fr(mr),yr=Object(A.b)("contact-edit"),Br=yr[0],br=yr[1],wr=yr[2],Cr={tel:"",name:""},_r=Br({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return i({},Cr)}},telValidator:{type:Function,default:vt}},data:function(){return{data:i({},Cr,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(t){this.data=i({},Cr,t)}},methods:{onFocus:function(t){this.errorInfo[t]=""},getErrorMessageByKey:function(t){var e=this.data[t].trim();switch(t){case"name":return e?"":wr("nameInvalid");case"tel":return this.telValidator(e)?"":wr("telInvalid")}},onSave:function(){var t=this;["name","tel"].every(function(e){var n=t.getErrorMessageByKey(e);return n&&(t.errorInfo[e]=n),!n})&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var t=this;Ve.confirm({title:wr("confirmDelete")}).then(function(){t.$emit("delete",t.data)})}},render:function(){var t=this,e=arguments[0],n=this.data,i=this.errorInfo,r=function(e){return function(){return t.onFocus(e)}};return e("div",{class:br()},[e("div",{class:br("fields")},[e(ae,{attrs:{clearable:!0,maxlength:"30",label:wr("name"),placeholder:wr("nameEmpty"),errorMessage:i.name},on:{focus:r("name")},model:{value:n.name,callback:function(e){t.$set(n,"name",e)}}}),e(ae,{attrs:{clearable:!0,type:"tel",label:wr("tel"),placeholder:wr("telEmpty"),errorMessage:i.tel},on:{focus:r("tel")},model:{value:n.tel,callback:function(e){t.$set(n,"tel",e)}}})]),this.showSetDefault&&e(te,{attrs:{title:this.setDefaultLabel,border:!1},class:br("switch-cell")},[e(nn,{attrs:{size:24},slot:"right-icon",on:{change:function(e){t.$emit("change-default",e)}},model:{value:n.isDefault,callback:function(e){t.$set(n,"isDefault",e)}}})]),e("div",{class:br("buttons")},[e(Te,{attrs:{block:!0,round:!0,type:"danger",text:wr("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&e(Te,{attrs:{block:!0,round:!0,text:wr("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}}),Tr=Object(A.b)("contact-list"),Er=Tr[0],Sr=Tr[1],kr=Tr[2];function Ur(t,e,n,i){var r=e.list&&e.list.map(function(n,r){function s(){c(i,"input",n.id),c(i,"select",n,r)}return t(te,{key:n.id,attrs:{isLink:!0,center:!0,valueClass:Sr("item-value")},class:Sr("item"),scopedSlots:{icon:function(){return t(it,{attrs:{name:"edit"},class:Sr("edit"),on:{click:function(t){t.stopPropagation(),c(i,"edit",n,r)}}})},default:function(){var i=[n.name+","+n.tel];return n.isDefault&&e.defaultTagText&&i.push(t(vn,{attrs:{type:"danger",round:!0},class:Sr("item-tag")},[e.defaultTagText])),i},"right-icon":function(){return t(bn,{attrs:{name:n.id,iconSize:16,checkedColor:Bt},on:{click:s}})}},on:{click:s}})});return t("div",s()([{class:Sr()},l(i)]),[t(dn,{attrs:{value:e.value},class:Sr("group")},[r]),t("div",{class:Sr("bottom")},[t(Te,{attrs:{round:!0,block:!0,type:"danger",text:e.addText||kr("addText")},class:Sr("add"),on:{click:function(){c(i,"add")}}})])])}Ur.props={value:null,list:Array,addText:String,defaultTagText:String};var Ir=Er(Ur),Fr=n("YNA3"),xr=1e3,Qr=60*xr,Lr=60*Qr,Or=24*Lr;var Dr=Object(A.b)("count-down"),Pr=Dr[0],Hr=Dr[1],Rr=Pr({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return t=this.remain,{days:Math.floor(t/Or),hours:Math.floor(t%Or/Lr),minutes:Math.floor(t%Lr/Qr),seconds:Math.floor(t%Qr/xr),milliseconds:Math.floor(t%xr)};var t},formattedTime:function(){return function(t,e){var n=e.days,i=e.hours,r=e.minutes,s=e.seconds,a=e.milliseconds;if(-1===t.indexOf("DD")?i+=24*n:t=t.replace("DD",Object(Fr.b)(n)),-1===t.indexOf("HH")?r+=60*i:t=t.replace("HH",Object(Fr.b)(i)),-1===t.indexOf("mm")?s+=60*r:t=t.replace("mm",Object(Fr.b)(r)),-1===t.indexOf("ss")?a+=1e3*s:t=t.replace("ss",Object(Fr.b)(s)),-1!==t.indexOf("S")){var A=Object(Fr.b)(a,3);t=-1!==t.indexOf("SSS")?t.replace("SSS",A):-1!==t.indexOf("SS")?t.replace("SS",A.slice(0,2)):t.replace("S",A.charAt(0))}return t}(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,Object(Hn.a)(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){A.d&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var t=this;this.rafId=Object(Hn.c)(function(){t.counting&&(t.setRemain(t.getRemain()),t.remain>0&&t.microTick())})},macroTick:function(){var t=this;this.rafId=Object(Hn.c)(function(){if(t.counting){var e,n,i=t.getRemain();e=i,n=t.remain,(Math.floor(e/1e3)!==Math.floor(n/1e3)||0===i)&&t.setRemain(i),t.remain>0&&t.macroTick()}})},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(t){this.remain=t,this.$emit("change",this.timeData),0===t&&(this.pause(),this.$emit("finish"))}},render:function(){return(0,arguments[0])("div",{class:Hr()},[this.slots("default",this.timeData)||this.formattedTime])}}),Mr=Object(A.b)("coupon"),Nr=Mr[0],Kr=Mr[1],jr=Mr[2];function Vr(t){var e=new Date(function(t){return t<Math.pow(10,12)?1e3*t:+t}(t));return e.getFullYear()+"."+Object(Fr.b)(e.getMonth()+1)+"."+Object(Fr.b)(e.getDate())}function Gr(t){return(t/100).toFixed(t%100==0?0:t%10==0?1:2)}var $r=Nr({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"¥"}},computed:{validPeriod:function(){var t=this.coupon,e=t.startAt,n=t.endAt;return t.customValidPeriod||Vr(e)+" - "+Vr(n)},faceAmount:function(){var t,e=this.coupon;if(e.valueDesc)return e.valueDesc+"<span>"+(e.unitDesc||"")+"</span>";if(e.denominations){var n=Gr(e.denominations);return"<span>"+this.currency+"</span> "+n}return e.discount?jr("discount",((t=e.discount)/10).toFixed(t%10==0?0:1)):""},conditionMessage:function(){var t=Gr(this.coupon.originCondition);return"0"===t?jr("unlimited"):jr("condition",t)}},render:function(){var t=arguments[0],e=this.coupon,n=this.disabled,i=n&&e.reason||e.description;return t("div",{class:Kr({disabled:n})},[t("div",{class:Kr("content")},[t("div",{class:Kr("head")},[t("h2",{class:Kr("amount"),domProps:{innerHTML:this.faceAmount}}),t("p",{class:Kr("condition")},[this.coupon.condition||this.conditionMessage])]),t("div",{class:Kr("body")},[t("p",{class:Kr("name")},[e.name]),t("p",{class:Kr("valid")},[this.validPeriod]),!this.disabled&&t(ji,{attrs:{size:18,value:this.chosen,checkedColor:Bt},class:Kr("corner")})])]),i&&t("p",{class:Kr("description")},[i])])}}),Wr=Object(A.b)("coupon-cell"),zr=Wr[0],Xr=Wr[1],qr=Wr[2];function Yr(t,e,n,i){var r=e.coupons[+e.chosenCoupon],a=function(t){var e=t.coupons,n=t.chosenCoupon,i=t.currency,r=e[+n];if(r){var s=0;return Object(A.e)(r.value)?s=r.value:Object(A.e)(r.denominations)&&(s=r.denominations),"-"+i+" "+(s/100).toFixed(2)}return 0===e.length?qr("tips"):qr("count",e.length)}(e);return t(te,s()([{class:Xr(),attrs:{value:a,title:e.title||qr("title"),border:e.border,isLink:e.editable,valueClass:Xr("value",{selected:r})}},l(i,!0)]))}Yr.model={prop:"chosenCoupon"},Yr.props={title:String,coupons:{type:Array,default:function(){return[]}},currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:[Number,String],default:-1}};var Jr=zr(Yr),Zr=Object(A.b)("coupon-list"),ts=Zr[0],es=Zr[1],ns=Zr[2],is=ts({model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,enabledTitle:String,disabledTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},showCount:{type:Boolean,default:!0},currency:{type:String,default:"¥"},emptyImage:{type:String,default:"https://img01.yzcdn.cn/vant/coupon-empty.png"}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length<this.exchangeMinLength)},listStyle:function(){return{height:this.winHeight-(this.showExchangeBar?140:94)+"px"}}},watch:{code:function(t){this.currentCode=t},currentCode:function(t){this.$emit("input",t)},displayedCouponIndex:"scrollToShowCoupon"},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(t){var e=this;-1!==t&&this.$nextTick(function(){var n=e.$refs,i=n.card,r=n.list;r&&i&&i[t]&&(r.scrollTop=i[t].$el.offsetTop-100)})},genEmpty:function(){var t=this.$createElement;return t("div",{class:es("empty")},[t("img",{attrs:{src:this.emptyImage}}),t("p",[ns("empty")])])},genExchangeButton:function(){return(0,this.$createElement)(Te,{attrs:{plain:!0,type:"danger",text:this.exchangeButtonText||ns("exchange"),loading:this.exchangeButtonLoading,disabled:this.buttonDisabled},class:es("exchange"),on:{click:this.onClickExchangeButton}})}},render:function(){var t=this,e=arguments[0],n=this.coupons,i=this.disabledCoupons,r=this.showCount?" ("+n.length+")":"",s=(this.enabledTitle||ns("enable"))+r,a=this.showCount?" ("+i.length+")":"",A=(this.disabledTitle||ns("disabled"))+a,o=this.showExchangeBar&&e("div",{class:es("exchange-bar")},[e(ae,{attrs:{clearable:!0,border:!1,placeholder:this.inputPlaceholder||ns("placeholder"),maxlength:"20"},class:es("field"),model:{value:t.currentCode,callback:function(e){t.currentCode=e}}}),this.genExchangeButton()]),u=function(e){return function(){return t.$emit("change",e)}},l=e(di,{attrs:{title:s}},[e("div",{class:es("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[n.map(function(n,i){return e($r,{ref:"card",key:n.id,attrs:{coupon:n,currency:t.currency,chosen:i===t.chosenCoupon},nativeOn:{click:u(i)}})}),!n.length&&this.genEmpty()])]),c=e(di,{attrs:{title:A}},[e("div",{class:es("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[i.map(function(n){return e($r,{attrs:{disabled:!0,coupon:n,currency:t.currency},key:n.id})}),!i.length&&this.genEmpty()])]);return e("div",{class:es()},[o,e(Fi,{class:es("tab"),attrs:{border:!1},model:{value:t.tab,callback:function(e){t.tab=e}}},[l,c]),e("div",{class:es("bottom")},[e(Te,{directives:[{name:"show",value:this.showCloseButton}],attrs:{round:!0,type:"danger",block:!0,text:this.closeButtonText||ns("close")},class:es("close"),on:{click:u(-1)}})])])}}),rs=i({},yt,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(t,e){return e}}}),ss={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var t=this;return this.ranges.map(function(e){var n=e.type,i=e.range,r=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(i[1]-i[0]+1,function(t){return Object(Fr.b)(i[0]+t)});return t.filter&&(r=t.filter(n,r)),{type:n,values:r}})},columns:function(){var t=this;return this.originColumns.map(function(e){return{values:e.values.map(function(n){return t.formatter(e.type,n)})}})}},watch:{columns:"updateColumnValue",innerValue:function(t,e){e?this.$emit("input",t):this.$emit("input",null)}},mounted:function(){var t=this;this.updateColumnValue(),this.$nextTick(function(){t.updateInnerValue()})},methods:{getPicker:function(){return this.$refs.picker},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var t=this,e=arguments[0],n={};return Object.keys(yt).forEach(function(e){n[e]=t[e]}),e(Nt,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:i({},n)})}},as=(0,Object(A.b)("time-picker")[0])({mixins:[ss],props:i({},rs,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var t=this;this.$nextTick(function(){t.updateInnerValue()})},maxHour:"updateInnerValue",minMinute:"updateInnerValue",maxMinute:"updateInnerValue",value:function(t){(t=this.formatValue(t))!==this.innerValue&&(this.innerValue=t,this.updateColumnValue())}},methods:{formatValue:function(t){t||(t=Object(Fr.b)(this.minHour)+":"+Object(Fr.b)(this.minMinute));var e=t.split(":"),n=e[0],i=e[1];return(n=Object(Fr.b)(Ut(n,this.minHour,this.maxHour)))+":"+(i=Object(Fr.b)(Ut(i,this.minMinute,this.maxMinute)))},updateInnerValue:function(){var t=this.getPicker().getIndexes(),e=t[0],n=t[1],i=this.originColumns,r=i[0],s=i[1],a=r.values[e]||r.values[0],A=s.values[n]||s.values[0];this.innerValue=this.formatValue(a+":"+A),this.updateColumnValue()},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick(function(){e.$nextTick(function(){e.$emit("change",t)})})},updateColumnValue:function(){var t=this,e=this.formatter,n=this.innerValue.split(":"),i=[e("hour",n[0]),e("minute",n[1])];this.$nextTick(function(){t.getPicker().setValues(i)})}}}),As=(new Date).getFullYear(),os=(0,Object(A.b)("date-picker")[0])({mixins:[ss],props:i({},rs,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(As-10,0,1)},validator:Rn},maxDate:{type:Date,default:function(){return new Date(As+10,11,31)},validator:Rn}}),watch:{filter:"updateInnerValue",minDate:function(){var t=this;this.$nextTick(function(){t.updateInnerValue()})},maxDate:"updateInnerValue",value:function(t){(t=this.formatValue(t))&&t.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=t)}},computed:{ranges:function(){var t=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),e=t.maxYear,n=t.maxDate,i=t.maxMonth,r=t.maxHour,s=t.maxMinute,a=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),A=a.minYear,o=a.minDate,u=[{type:"year",range:[A,e]},{type:"month",range:[a.minMonth,i]},{type:"day",range:[o,n]},{type:"hour",range:[a.minHour,r]},{type:"minute",range:[a.minMinute,s]}];switch(this.type){case"date":u=u.slice(0,3);break;case"year-month":u=u.slice(0,2);break;case"month-day":u=u.slice(1,3);break;case"datehour":u=u.slice(0,4)}if(this.columnsOrder){var l=this.columnsOrder.concat(u.map(function(t){return t.type}));u.sort(function(t,e){return l.indexOf(t.type)-l.indexOf(e.type)})}return u}},methods:{formatValue:function(t){return Rn(t)?(t=Math.max(t,this.minDate.getTime()),t=Math.min(t,this.maxDate.getTime()),new Date(t)):null},getBoundary:function(t,e){var n,i=this[t+"Date"],r=i.getFullYear(),s=1,a=1,A=0,o=0;return"max"===t&&(s=12,a=qn(e.getFullYear(),e.getMonth()+1),A=23,o=59),e.getFullYear()===r&&(s=i.getMonth()+1,e.getMonth()+1===s&&(a=i.getDate(),e.getDate()===a&&(A=i.getHours(),e.getHours()===A&&(o=i.getMinutes())))),(n={})[t+"Year"]=r,n[t+"Month"]=s,n[t+"Date"]=a,n[t+"Hour"]=A,n[t+"Minute"]=o,n},updateInnerValue:function(){var t,e,n,i=this,r=this.type,s=this.getPicker().getIndexes(),a=function(t){var e=0;return i.originColumns.forEach(function(n,i){t===n.type&&(e=i)}),function(t){if(!t)return 0;for(;Object(Qn.a)(parseInt(t,10));){if(!(t.length>1))return 0;t=t.slice(1)}return parseInt(t,10)}(i.originColumns[e].values[s[e]])};"month-day"===r?(t=(this.innerValue?this.innerValue:this.minDate).getFullYear(),e=a("month"),n=a("day")):(t=a("year"),e=a("month"),n="year-month"===r?1:a("day"));var A=qn(t,e);n=n>A?A:n;var o=0,u=0;"datehour"===r&&(o=a("hour")),"datetime"===r&&(o=a("hour"),u=a("minute"));var l=new Date(t,e-1,n,o,u);this.innerValue=this.formatValue(l)},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick(function(){e.$nextTick(function(){e.$emit("change",t)})})},updateColumnValue:function(){var t=this,e=this.innerValue?this.innerValue:this.minDate,n=this.formatter,i=this.originColumns.map(function(t){switch(t.type){case"year":return n("year",""+e.getFullYear());case"month":return n("month",Object(Fr.b)(e.getMonth()+1));case"day":return n("day",Object(Fr.b)(e.getDate()));case"hour":return n("hour",Object(Fr.b)(e.getHours()));case"minute":return n("minute",Object(Fr.b)(e.getMinutes()));default:return null}});this.$nextTick(function(){t.getPicker().setValues(i)})}}}),us=Object(A.b)("datetime-picker"),ls=us[0],cs=us[1],hs=ls({props:i({},as.props,os.props),methods:{getPicker:function(){return this.$refs.root.getPicker()}},render:function(){return(0,arguments[0])("time"===this.type?as:os,{ref:"root",class:cs(),scopedSlots:this.$scopedSlots,props:i({},this.$props),on:i({},this.$listeners)})}}),ds=Object(A.b)("divider"),fs=ds[0],ps=ds[1];function gs(t,e,n,i){var r;return t("div",s()([{attrs:{role:"separator"},style:{borderColor:e.borderColor},class:ps((r={dashed:e.dashed,hairline:e.hairline},r["content-"+e.contentPosition]=n.default,r))},l(i,!0)]),[n.default&&n.default()])}gs.props={dashed:Boolean,hairline:{type:Boolean,default:!0},contentPosition:{type:String,default:"center"}};var ms=fs(gs),vs=Object(A.b)("dropdown-item"),ys=vs[0],Bs=vs[1],bs=ys({mixins:[N({ref:"wrapper"}),Se("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var t=this;if(this.title)return this.title;var e=this.options.filter(function(e){return e.value===t.value});return e.length?e[0].text:""}},watch:{showPopup:function(t){this.bindScroll(t)}},beforeCreate:function(){var t=this,e=function(e){return function(){return t.$emit(e)}};this.onOpen=e("open"),this.onClose=e("close"),this.onOpened=e("opened")},methods:{toggle:function(t,e){void 0===t&&(t=!this.showPopup),void 0===e&&(e={}),t!==this.showPopup&&(this.transition=!e.immediate,this.showPopup=t,t&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(t){var e=this.parent.scroller;(t?g:m)(e,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(t){this.getContainer&&t.stopPropagation()}},render:function(){var t=this,e=arguments[0],n=this.parent,i=n.zIndex,r=n.offset,s=n.overlay,a=n.duration,A=n.direction,o=n.activeColor,u=n.closeOnClickOverlay,l=this.options.map(function(n){var i=n.value===t.value;return e(te,{attrs:{clickable:!0,icon:n.icon,title:n.text},key:n.value,class:Bs("option",{active:i}),style:{color:i?o:""},on:{click:function(){t.showPopup=!1,n.value!==t.value&&(t.$emit("input",n.value),t.$emit("change",n.value))}}},[i&&e(it,{class:Bs("icon"),attrs:{color:o,name:"success"}})])}),c={zIndex:i};return"down"===A?c.top=r+"px":c.bottom=r+"px",e("div",[e("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:c,class:Bs([A]),on:{click:this.onClickWrapper}},[e(At,{attrs:{overlay:s,position:"down"===A?"top":"bottom",duration:this.transition?a:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:u},class:Bs("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){t.showWrapper=!1,t.$emit("closed")}},model:{value:t.showPopup,callback:function(e){t.showPopup=e}}},[l,this.slots("default")])])])}}),ws=function(t){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var e=this;return{clickOutsideHandler:function(n){e.closeOnClickOutside&&!e.$el.contains(n.target)&&e[t.method]()}}},mounted:function(){g(document,t.event,this.clickOutsideHandler)},beforeDestroy:function(){m(document,t.event,this.clickOutsideHandler)}}},Cs=Object(A.b)("dropdown-menu"),_s=Cs[0],Ts=Cs[1],Es=_s({mixins:[ke("vanDropdownMenu"),ws({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return Q(this.$el)},opened:function(){return this.children.some(function(t){return t.showWrapper})},barStyle:function(){if(this.opened&&Object(A.e)(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var t=this.$refs.bar.getBoundingClientRect();"down"===this.direction?this.offset=t.bottom:this.offset=window.innerHeight-t.top}},toggleItem:function(t){this.children.forEach(function(e,n){n===t?e.toggle():e.showPopup&&e.toggle(!1,{immediate:!0})})},onClickOutside:function(){this.children.forEach(function(t){t.toggle(!1)})}},render:function(){var t=this,e=arguments[0],n=this.children.map(function(n,i){return e("div",{attrs:{role:"button",tabindex:n.disabled?-1:0},class:Ts("item",{disabled:n.disabled}),on:{click:function(){n.disabled||t.toggleItem(i)}}},[e("span",{class:[Ts("title",{active:n.showPopup,down:n.showPopup===("down"===t.direction)}),n.titleClass],style:{color:n.showPopup?t.activeColor:""}},[e("div",{class:"van-ellipsis"},[n.slots("title")||n.displayTitle])])])});return e("div",{class:Ts()},[e("div",{ref:"bar",style:this.barStyle,class:Ts("bar",{opened:this.opened})},[n]),this.slots("default")])}}),Ss="van-empty-network-",ks={render:function(){var t=arguments[0],e=function(e,n,i){return t("stop",{attrs:{"stop-color":e,offset:n+"%","stop-opacity":i}})};return t("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{id:Ss+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[e("#FFF",0,.5),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:Ss+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[e("#EBEDF0",0),e("#DCDEE0",100,0)]),t("linearGradient",{attrs:{id:Ss+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:Ss+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:Ss+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:Ss+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("radialGradient",{attrs:{id:Ss+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[e("#EBEDF0",0),e("#FFF",100,0)])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{opacity:".8"}},[t("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+Ss+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),t("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+Ss+"1)",transform:"translate(2 7)"}})]),t("path",{attrs:{fill:"url(#"+Ss+"7)",d:"M0 139h160v21H0z"}}),t("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+Ss+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),t("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[t("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+Ss+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+Ss+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+Ss+"4)",transform:"rotate(-180 76.483 42.257)"}}),t("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+Ss+"4)",transform:"rotate(-180 89.791 42.146)"}})]),t("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[t("rect",{attrs:{fill:"url(#"+Ss+"5)",width:"98",height:"34",rx:"2"}}),t("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),t("rect",{attrs:{fill:"url(#"+Ss+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}},Us=Object(A.b)("empty"),Is=Us[0],Fs=Us[1],xs=["error","search","default"],Qs=Is({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var t=this.$createElement,e=this.slots("image");if(e)return e;if("network"===this.image)return t(ks);var n=this.image;return-1!==xs.indexOf(n)&&(n="https://img01.yzcdn.cn/vant/empty-image-"+n+".png"),t("img",{attrs:{src:n}})},genImage:function(){var t=this.$createElement,e={width:Object(A.a)(this.imageSize),height:Object(A.a)(this.imageSize)};return t("div",{class:Fs("image"),style:e},[this.genImageContent()])},genDescription:function(){var t=this.$createElement,e=this.slots("description")||this.description;if(e)return t("p",{class:Fs("description")},[e])},genBottom:function(){var t=this.$createElement,e=this.slots();if(e)return t("div",{class:Fs("bottom")},[e])}},render:function(){return(0,arguments[0])("div",{class:Fs()},[this.genImage(),this.genDescription(),this.genBottom()])}}),Ls=Object(A.b)("form"),Os=Ls[0],Ds=Ls[1],Ps=Os({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter(function(e){return-1!==t.indexOf(e.name)}):this.fields},validateSeq:function(t){var e=this;return new Promise(function(n,i){var r=[];e.getFieldsByNames(t).reduce(function(t,e){return t.then(function(){if(!r.length)return e.validate().then(function(t){t&&r.push(t)})})},Promise.resolve()).then(function(){r.length?i(r):n()})})},validateFields:function(t){var e=this;return new Promise(function(n,i){var r=e.getFieldsByNames(t);Promise.all(r.map(function(t){return t.validate()})).then(function(t){(t=t.filter(function(t){return t})).length?i(t):n()})})},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter(function(e){return e.name===t});return e.length?new Promise(function(t,n){e[0].validate().then(function(e){e?n(e):t()})}):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]),this.getFieldsByNames(t).forEach(function(t){t.resetValidation()})},scrollToField:function(t,e){this.fields.some(function(n){return n.name===t&&(n.$el.scrollIntoView(e),!0)})},addField:function(t){this.fields.push(t),Ee(this.fields,this)},removeField:function(t){this.fields=this.fields.filter(function(e){return e!==t})},getValues:function(){return this.fields.reduce(function(t,e){return t[e.name]=e.formValue,t},{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then(function(){t.$emit("submit",e)}).catch(function(n){t.$emit("failed",{values:e,errors:n}),t.scrollToError&&t.scrollToField(n[0].name)})}},render:function(){return(0,arguments[0])("form",{class:Ds(),on:{submit:this.onSubmit}},[this.slots()])}}),Hs=Object(A.b)("goods-action-icon"),Rs=Hs[0],Ms=Hs[1],Ns=Rs({mixins:[Se("vanGoodsAction")],props:i({},zt,{dot:Boolean,text:String,icon:String,color:String,info:[Number,String],badge:[Number,String],iconClass:null}),methods:{onClick:function(t){this.$emit("click",t),$t(this.$router,this)},genIcon:function(){var t,e=this.$createElement,n=this.slots("icon"),i=null!=(t=this.badge)?t:this.info;return n?e("div",{class:Ms("icon")},[n,e(Y,{attrs:{dot:this.dot,info:i}})]):e(it,{class:[Ms("icon"),this.iconClass],attrs:{tag:"div",dot:this.dot,name:this.icon,badge:i,color:this.color}})}},render:function(){return(0,arguments[0])("div",{attrs:{role:"button",tabindex:"0"},class:Ms(),on:{click:this.onClick}},[this.genIcon(),this.slots()||this.text])}}),Ks=Object(A.b)("grid"),js=Ks[0],Vs=Ks[1],Gs=js({mixins:[ke("vanGrid")],props:{square:Boolean,gutter:[Number,String],iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4},center:{type:Boolean,default:!0},border:{type:Boolean,default:!0}},computed:{style:function(){var t=this.gutter;if(t)return{paddingLeft:Object(A.a)(t)}}},render:function(){var t;return(0,arguments[0])("div",{style:this.style,class:[Vs(),(t={},t[wt]=this.border&&!this.gutter,t)]},[this.slots()])}}),$s=Object(A.b)("grid-item"),Ws=$s[0],zs=$s[1],Xs=Ws({mixins:[Se("vanGrid")],props:i({},zt,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var t=this.parent,e=t.square,n=t.gutter,i=t.columnNum,r=100/i+"%",s={flexBasis:r};if(e)s.paddingTop=r;else if(n){var a=Object(A.a)(n);s.paddingRight=a,this.index>=i&&(s.marginTop=a)}return s},contentStyle:function(){var t=this.parent,e=t.square,n=t.gutter;if(e&&n){var i=Object(A.a)(n);return{right:i,bottom:i,height:"auto"}}}},methods:{onClick:function(t){this.$emit("click",t),$t(this.$router,this)},genIcon:function(){var t,e=this.$createElement,n=this.slots("icon"),i=null!=(t=this.badge)?t:this.info;return n?e("div",{class:zs("icon-wrapper")},[n,e(Y,{attrs:{dot:this.dot,info:i}})]):this.icon?e(it,{attrs:{name:this.icon,dot:this.dot,badge:i,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:zs("icon")}):void 0},getText:function(){var t=this.$createElement,e=this.slots("text");return e||(this.text?t("span",{class:zs("text")},[this.text]):void 0)},genContent:function(){var t=this.slots();return t||[this.genIcon(),this.getText()]}},render:function(){var t,e=arguments[0],n=this.parent,i=n.center,r=n.border,s=n.square,a=n.gutter,A=n.direction,o=n.clickable;return e("div",{class:[zs({square:s})],style:this.style},[e("div",{style:this.contentStyle,attrs:{role:o?"button":null,tabindex:o?0:null},class:[zs("content",[A,{center:i,square:s,clickable:o,surround:r&&a}]),(t={},t[bt]=r,t)],on:{click:this.onClick}},[this.genContent()])])}}),qs=Object(A.b)("image-preview"),Ys=qs[0],Js=qs[1],Zs=Object(A.b)("swipe"),ta=Zs[0],ea=Zs[1],na=ta({mixins:[M,ke("vanSwipe"),j(function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()})],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",n=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[n]=this[n]?this[n]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!fi(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach(function(t){t.offset=0}),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(y(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,n=e/(Date.now()-this.touchStartTime);if((Math.abs(n)>.25||Math.abs(e)>t/2)&&this.isCorrectDirection){var i=this.vertical?this.offsetY:this.offsetX,r=0;r=this.loop?i>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:r,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,n=this.count,i=this.maxCount;return t?this.loop?Ut(e+t,-1,n):Ut(e+t,0,i):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var n=t*this.size;this.loop||(n=Math.min(n,-this.minOffset));var i=e-n;return this.loop||(i=Ut(i,this.minOffset,0)),i},move:function(t){var e=t.pace,n=void 0===e?0:e,i=t.offset,r=void 0===i?0:i,s=t.emitChange,a=this.loop,A=this.count,o=this.active,u=this.children,l=this.trackSize,c=this.minOffset;if(!(A<=1)){var h=this.getTargetActive(n),d=this.getTargetOffset(h,r);if(a){if(u[0]&&d!==c){var f=d<c;u[0].offset=f?l:0}if(u[A-1]&&0!==d){var p=d>0;u[A-1].offset=p?-l:0}}this.active=h,this.offset=d,s&&h!==o&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Hn.b)(function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})})},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Hn.b)(function(){t.swiping=!1,t.move({pace:1,emitChange:!0})})},swipeTo:function(t,e){var n=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(Hn.b)(function(){var i;i=n.loop&&t===n.count?0===n.active?0:t:t%n.count,e.immediate?Object(Hn.b)(function(){n.swiping=!1}):n.swiping=!1,n.move({pace:i-n.active,emitChange:!0})})},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout(function(){t.next(),t.autoPlay()},e))},genIndicator:function(){var t=this,e=this.$createElement,n=this.count,i=this.activeIndicator,r=this.slots("indicator");return r||(this.showIndicators&&n>1?e("div",{class:ea("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(n)).map(function(n,r){return e("i",{class:ea("indicator",{active:r===i}),style:r===i?t.indicatorStyle:null})})]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:ea()},[t("div",{ref:"track",style:this.trackStyle,class:ea("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),ia=Object(A.b)("swipe-item"),ra=ia[0],sa=ia[1],aa=ra({mixins:[Se("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick(function(){t.mounted=!0})},computed:{style:function(){var t={},e=this.parent,n=e.size,i=e.vertical;return n&&(t[i?"height":"width"]=n+"px"),this.offset&&(t.transform="translate"+(i?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,n=this.parent,i=this.mounted;if(!n.lazyRender||e)return!0;if(!i)return!1;var r=n.activeIndicator,s=n.count-1,a=0===r&&n.loop?s:r-1,A=r===s&&n.loop?0:r+1,o=t===r||t===a||t===A;return o&&(this.inited=!0),o}},render:function(){return(0,arguments[0])("div",{class:sa(),style:this.style,on:i({},this.$listeners)},[this.shouldRender&&this.slots()])}});function Aa(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var oa,ua={mixins:[M],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight/t;return this.imageRatio>e},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var n=this.moveX/t,i=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+n+"px, "+i+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){(t=Ut(t,+this.minZoom,+this.maxZoom))!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,n=this.offsetX,i=void 0===n?0:n;this.touchStart(t),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===e.length&&1!==this.scale,this.zooming=2===e.length&&!i,this.zooming&&(this.startScale=this.scale,this.startDistance=Aa(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&y(t,!0),this.moving){var n=this.deltaX+this.startMoveX,i=this.deltaY+this.startMoveY;this.moveX=Ut(n,-this.maxMoveX,this.maxMoveX),this.moveY=Ut(i,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var r=Aa(e),s=this.startScale*r/this.startDistance;this.setScale(s)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=Ut(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Ut(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),y(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this,e=this.offsetX,n=void 0===e?0:e,i=this.offsetY,r=void 0===i?0:i,s=new Date-this.touchStartTime;n<10&&r<10&&s<250&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout(function(){t.$emit("close"),t.doubleTapTimer=null},250))},onLoad:function(t){var e=t.target,n=e.naturalWidth,i=e.naturalHeight;this.imageRatio=i/n}},render:function(){var t=arguments[0],e={loading:function(){return t(ht,{attrs:{type:"spinner"}})}};return t(aa,{class:Js("swipe-item")},[t(ii,{attrs:{src:this.src,fit:"contain"},class:Js("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},la=Ys({mixins:[M,$({skipToggleEvent:!0}),j(function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)})],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:Js("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick(function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})})):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:Js("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:Js("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(na,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:Js("swipe"),on:{change:this.setActive}},[this.images.map(function(n){return e(ua,{attrs:{src:n,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})})])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(it,{attrs:{role:"button",name:this.closeIcon},class:Js("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[Js(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}}),ca={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},ha=function(t,e){if(void 0===e&&(e=0),!A.j){oa||(oa=new(a.a.extend(la))({el:document.createElement("div")}),document.body.appendChild(oa.$el),oa.$on("change",function(t){oa.onChange&&oa.onChange(t)}),oa.$on("scale",function(t){oa.onScale&&oa.onScale(t)}));var n=Array.isArray(t)?{images:t,startPosition:e}:t;return i(oa,ca,n),oa.$once("input",function(t){oa.value=t}),oa.$once("closed",function(){oa.images=[]}),n.onClose&&(oa.$off("close"),oa.$once("close",n.onClose)),oa}};ha.Component=la,ha.install=function(){a.a.use(la)};var da=ha,fa=Object(A.b)("index-anchor"),pa=fa[0],ga=fa[1],ma=pa({mixins:[Se("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var t=this.$el.getBoundingClientRect();this.rect.height=t.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(t,e){var n=this.$el.getBoundingClientRect();return this.rect.height=n.height,t===window||t===document.body?this.rect.top=n.top+D():this.rect.top=n.top+L(t)-e.top,this.rect}},render:function(){var t,e=arguments[0],n=this.sticky;return e("div",{style:{height:n?this.rect.height+"px":null}},[e("div",{style:this.anchorStyle,class:[ga({sticky:n}),(t={},t[_t]=n,t)]},[this.slots("default")||this.index])])}});var va=Object(A.b)("index-bar"),ya=va[0],Ba=va[1],ba=ya({mixins:[M,ke("vanIndexBar"),j(function(t){this.scroller||(this.scroller=Q(this.$el)),t(this.scroller,"scroll",this.onScroll)})],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:function(){for(var t=[],e="A".charCodeAt(0),n=0;n<26;n++)t.push(String.fromCharCode(e+n));return t}}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Object(A.e)(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var t=this.highlightColor;if(t)return{color:t}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(t){t&&this.$emit("change",t)}},methods:{onScroll:function(){var t=this;if(!fi(this.$el)){var e=L(this.scroller),n=this.getScrollerRect(),i=this.children.map(function(e){return e.getRect(t.scroller,n)}),r=this.getActiveAnchorIndex(e,i);this.activeAnchorIndex=this.indexList[r],this.sticky&&this.children.forEach(function(s,a){if(a===r||a===r-1){var A=s.$el.getBoundingClientRect();s.left=A.left,s.width=A.width}else s.left=null,s.width=null;if(a===r)s.active=!0,s.top=Math.max(t.stickyOffsetTop,i[a].top-e)+n.top;else if(a===r-1){var o=i[r].top-e;s.active=o>0,s.top=o+n.top-i[a].height}else s.active=!1})}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(t,e){for(var n=this.children.length-1;n>=0;n--){var i=n>0?e[n-1].height:0;if(t+(this.sticky?i+this.stickyOffsetTop:0)>=e[n].top)return n}return-1},onClick:function(t){this.scrollToElement(t.target)},onTouchMove:function(t){if(this.touchMove(t),"vertical"===this.direction){y(t);var e=t.touches[0],n=e.clientX,i=e.clientY,r=document.elementFromPoint(n,i);if(r){var s=r.dataset.index;this.touchActiveIndex!==s&&(this.touchActiveIndex=s,this.scrollToElement(r))}}},scrollTo:function(t){var e=this.children.filter(function(e){return String(e.index)===t});e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&P(D()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(t){var e=t.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var t=this,e=arguments[0],n=this.indexList.map(function(n){var i=n===t.activeAnchorIndex;return e("span",{class:Ba("index",{active:i}),style:i?t.highlightStyle:null,attrs:{"data-index":n}},[n])});return e("div",{class:Ba()},[e("div",{class:Ba("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[n]),this.slots("default")])}}),wa=n("cTzj"),Ca=n.n(wa).a,_a=Object(A.b)("list"),Ta=_a[0],Ea=_a[1],Sa=_a[2],ka=Ta({mixins:[j(function(t){this.scroller||(this.scroller=Q(this.$el)),t(this.scroller,"scroll",this.check)})],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick(function(){if(!(t.innerLoading||t.finished||t.error)){var e,n=t.$el,i=t.scroller,r=t.offset,s=t.direction;if(!((e=i.getBoundingClientRect?i.getBoundingClientRect():{top:0,bottom:i.innerHeight}).bottom-e.top)||fi(n))return!1;var a=t.$refs.placeholder.getBoundingClientRect();("up"===s?e.top-a.top<=r:a.bottom-e.bottom<=r)&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}})},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:Ea("loading")},[this.slots("loading")||t(ht,{attrs:{size:"16"}},[this.loadingText||Sa("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:Ea("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:Ea("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:Ea("placeholder")});return t("div",{class:Ea(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}}),Ua=n("S06l"),Ia=Object(A.b)("nav-bar"),Fa=Ia[0],xa=Ia[1],Qa=Fa({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(it,{class:xa("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&t("span",{class:xa("text")},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:xa("text")},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[xa({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t[_t]=this.border,t)]},[e("div",{class:xa("content")},[this.hasLeft()&&e("div",{class:xa("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[xa("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:xa("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:xa("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}}),La=Object(A.b)("notice-bar"),Oa=La[0],Da=La[1],Pa=Oa({mixins:[j(function(t){t(window,"pageshow",this.start)})],props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:50}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"start",text:{handler:"start",immediate:!0}},activated:function(){this.start()},methods:{onClickIcon:function(t){"closeable"===this.mode&&(this.show=!1,this.$emit("close",t))},onTransitionEnd:function(){var t=this;this.offset=this.wrapWidth,this.duration=0,Object(Hn.c)(function(){Object(Hn.b)(function(){t.offset=-t.contentWidth,t.duration=(t.contentWidth+t.wrapWidth)/t.speed,t.$emit("replay")})})},reset:function(){this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0},start:function(){var t=this,e=Object(A.e)(this.delay)?1e3*this.delay:0;this.reset(),clearTimeout(this.startTimer),this.startTimer=setTimeout(function(){var e=t.$refs,n=e.wrap,i=e.content;if(n&&i&&!1!==t.scrollable){var r=n.getBoundingClientRect().width,s=i.getBoundingClientRect().width;(t.scrollable||s>r)&&Object(Hn.b)(function(){t.offset=-s,t.duration=s/t.speed,t.wrapWidth=r,t.contentWidth=s})}},e)}},render:function(){var t,e=this,n=arguments[0],i=this.slots,r=this.mode,s=this.leftIcon,a=this.onClickIcon,A={color:this.color,background:this.background},o={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};return n("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:Da({wrapable:this.wrapable}),style:A,on:{click:function(t){e.$emit("click",t)}}},[(t=i("left-icon"),t||(s?n(it,{class:Da("left-icon"),attrs:{name:s}}):void 0)),n("div",{ref:"wrap",class:Da("wrap"),attrs:{role:"marquee"}},[n("div",{ref:"content",class:[Da("content"),{"van-ellipsis":!1===this.scrollable&&!this.wrapable}],style:o,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),function(){var t,e=i("right-icon");return e||("closeable"===r?t="cross":"link"===r&&(t="arrow"),t?n(it,{class:Da("right-icon"),attrs:{name:t},on:{click:a}}):void 0)}()])}}),Ha=Object(A.b)("notify"),Ra=Ha[0],Ma=Ha[1];function Na(t,e,n,i){var r={color:e.color,background:e.background};return t(At,s()([{attrs:{value:e.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:r,class:[Ma([e.type]),e.className]},l(i,!0)]),[(null==n.default?void 0:n.default())||e.message])}Na.props=i({},G,{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});var Ka,ja,Va=Ra(Na);function Ga(t){var e;if(!A.j)return ja||(ja=h(Va,{on:{click:function(t){ja.onClick&&ja.onClick(t)},close:function(){ja.onClose&&ja.onClose()},opened:function(){ja.onOpened&&ja.onOpened()}}})),t=i({},Ga.currentOptions,(e=t,Object(A.h)(e)?e:{message:e})),i(ja,t),clearTimeout(Ka),t.duration&&t.duration>0&&(Ka=setTimeout(Ga.clear,t.duration)),ja}Ga.clear=function(){ja&&(ja.value=!1)},Ga.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null},Ga.setDefaultOptions=function(t){i(Ga.currentOptions,t)},Ga.resetDefaultOptions=function(){Ga.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}},Ga.install=function(){a.a.use(Va)},Ga.Component=Va,a.a.prototype.$notify=Ga;var $a=Ga,Wa={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},za={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}},Xa=Object(A.b)("key"),qa=Xa[0],Ya=Xa[1],Ja=qa({mixins:[M],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(t){t.stopPropagation(),this.touchStart(t),this.active=!0},onTouchMove:function(t){this.touchMove(t),this.direction&&(this.active=!1)},onTouchEnd:function(t){this.active&&(this.slots("default")||t.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var t=this.$createElement,e="extra"===this.type,n="delete"===this.type,i=this.slots("default")||this.text;return this.loading?t(ht,{class:Ya("loading-icon")}):n?i||t(Wa,{class:Ya("delete-icon")}):e?i||t(za,{class:Ya("collapse-icon")}):i}},render:function(){var t=arguments[0];return t("div",{class:Ya("wrapper",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:Ya([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}}),Za=Object(A.b)("number-keyboard"),tA=Za[0],eA=Za[1],nA=tA({mixins:[N(),j(function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)})],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(t){this.transition||this.$emit(t?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});return this.randomKeyOrder&&t.sort(function(){return Math.random()>.5?1:-1}),t},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var t=this.genBasicKeys(),e=this.extraKey,n=Array.isArray(e)?e:[e];return 1===n.length?t.push({text:0,wider:!0},{text:n[0],type:"extra"}):2===n.length&&t.push({text:n[0],type:"extra"},{text:0},{text:n[1],type:"extra"}),t},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t,e){if(""!==t){var n=this.value;"delete"===e?(this.$emit("delete"),this.$emit("update:value",n.slice(0,n.length-1))):"close"===e?this.onClose():n.length<this.maxlength&&(this.$emit("input",t),this.$emit("update:value",n+t))}else"extra"===e&&this.onBlur()},genTitle:function(){var t=this.$createElement,e=this.title,n=this.theme,i=this.closeButtonText,r=this.slots("title-left"),s=i&&"default"===n;if(e||s||r)return t("div",{class:eA("header")},[r&&t("span",{class:eA("title-left")},[r]),e&&t("h2",{class:eA("title")},[e]),s&&t("button",{attrs:{type:"button"},class:eA("close"),on:{click:this.onClose}},[i])])},genKeys:function(){var t=this,e=this.$createElement;return this.keys.map(function(n){return e(Ja,{key:n.text,attrs:{text:n.text,type:n.type,wider:n.wider,color:n.color},on:{press:t.onPress}},["delete"===n.type&&t.slots("delete"),"extra"===n.type&&t.slots("extra-key")])})},genSidebar:function(){var t=this.$createElement;if("custom"===this.theme)return t("div",{class:eA("sidebar")},[this.showDeleteKey&&t(Ja,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),t(Ja,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var t=arguments[0],e=this.genTitle();return t("transition",{attrs:{name:this.transition?"van-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:eA({unfit:!this.safeAreaInsetBottom,"with-title":e}),on:{touchstart:v,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[e,t("div",{class:eA("body")},[t("div",{class:eA("keys")},[this.genKeys()]),this.genSidebar()])])])}}),iA=Object(A.b)("pagination"),rA=iA[0],sA=iA[1],aA=iA[2];function AA(t,e,n){return{number:t,text:e,active:n}}var oA=rA({props:{prevText:String,nextText:String,forceEllipses:Boolean,mode:{type:String,default:"multi"},value:{type:Number,default:0},pageCount:{type:[Number,String],default:0},totalItems:{type:[Number,String],default:0},itemsPerPage:{type:[Number,String],default:10},showPageSize:{type:[Number,String],default:5}},computed:{count:function(){var t=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,t)},pages:function(){var t=[],e=this.count,n=+this.showPageSize;if("multi"!==this.mode)return t;var i=1,r=e,s=n<e;s&&(r=(i=Math.max(this.value-Math.floor(n/2),1))+n-1)>e&&(i=(r=e)-n+1);for(var a=i;a<=r;a++){var A=AA(a,a,a===this.value);t.push(A)}if(s&&n>0&&this.forceEllipses){if(i>1){var o=AA(i-1,"...",!1);t.unshift(o)}if(r<e){var u=AA(r+1,"...",!1);t.push(u)}}return t}},watch:{value:{handler:function(t){this.select(t||this.value)},immediate:!0}},methods:{select:function(t,e){t=Math.min(this.count,Math.max(1,t)),this.value!==t&&(this.$emit("input",t),e&&this.$emit("change",t))}},render:function(){var t,e,n=this,i=arguments[0],r=this.value,s="multi"!==this.mode,a=function(t){return function(){n.select(t,!0)}};return i("ul",{class:sA({simple:s})},[i("li",{class:[sA("item",{disabled:1===r}),sA("prev"),bt],on:{click:a(r-1)}},[(null!=(t=this.slots("prev-text"))?t:this.prevText)||aA("prev")]),this.pages.map(function(t){var e;return i("li",{class:[sA("item",{active:t.active}),sA("page"),bt],on:{click:a(t.number)}},[null!=(e=n.slots("page",t))?e:t.text])}),s&&i("li",{class:sA("page-desc")},[this.slots("pageDesc")||r+"/"+this.count]),i("li",{class:[sA("item",{disabled:r===this.count}),sA("next"),bt],on:{click:a(r+1)}},[(null!=(e=this.slots("next-text"))?e:this.nextText)||aA("next")])])}}),uA=Object(A.b)("panel"),lA=uA[0],cA=uA[1];function hA(t,e,n,i){return t(Ni,s()([{class:cA(),scopedSlots:{default:function(){return[n.header?n.header():t(te,{attrs:{icon:e.icon,label:e.desc,title:e.title,value:e.status,valueClass:cA("header-value")},class:cA("header")}),t("div",{class:cA("content")},[n.default&&n.default()]),n.footer&&t("div",{class:[cA("footer"),wt]},[n.footer()])]}}},l(i,!0)]))}hA.props={icon:String,desc:String,title:String,status:String};var dA=lA(hA),fA=Object(A.b)("password-input"),pA=fA[0],gA=fA[1];function mA(t,e,n,i){for(var r,a=e.mask,o=e.value,u=e.length,h=e.gutter,d=e.focused,f=e.errorInfo,p=f||e.info,g=[],m=0;m<u;m++){var v,y=o[m],B=0!==m&&!h,b=d&&m===o.length,w=void 0;0!==m&&h&&(w={marginLeft:Object(A.a)(h)}),g.push(t("li",{class:[(v={},v[Ct]=B,v),gA("item",{focus:b})],style:w},[a?t("i",{style:{visibility:y?"visible":"hidden"}}):y,b&&t("div",{class:gA("cursor")})]))}return t("div",{class:gA()},[t("ul",s()([{class:[gA("security"),(r={},r[Tt]=!h,r)],on:{touchstart:function(t){t.stopPropagation(),c(i,"focus",t)}}},l(i,!0)]),[g]),p&&t("div",{class:gA(f?"error-info":"info")},[p])])}mA.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};var vA=pA(mA);function yA(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function BA(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function bA(t){var e=BA(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wA(t){return t instanceof BA(t).Element||t instanceof Element}function CA(t){return t instanceof BA(t).HTMLElement||t instanceof HTMLElement}function _A(t){return t?(t.nodeName||"").toLowerCase():null}function TA(t){return((wA(t)?t.ownerDocument:t.document)||window.document).documentElement}function EA(t){return BA(t).getComputedStyle(t)}function SA(t){var e=EA(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function kA(t,e,n){void 0===n&&(n=!1);var i,r,s=TA(e),a=yA(t),A=CA(e),o={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(A||!A&&!n)&&(("body"!==_A(e)||SA(s))&&(o=(i=e)!==BA(i)&&CA(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:bA(i)),CA(e)?((u=yA(e)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=function(t){return yA(TA(t)).left+bA(t).scrollLeft}(s))),{x:a.left+o.scrollLeft-u.x,y:a.top+o.scrollTop-u.y,width:a.width,height:a.height}}function UA(t){return"html"===_A(t)?t:t.assignedSlot||t.parentNode||(e=t,"undefined"!=typeof ShadowRoot&&(e instanceof BA(e).ShadowRoot||e instanceof ShadowRoot)?t.host:null)||TA(t);var e}function IA(t,e){var n;void 0===e&&(e=[]);var i=function t(e){return["html","body","#document"].indexOf(_A(e))>=0?e.ownerDocument.body:CA(e)&&SA(e)?e:t(UA(e))}(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),s=BA(i),a=r?[s].concat(s.visualViewport||[],SA(i)?i:[]):i,A=e.concat(a);return r?A:A.concat(IA(UA(a)))}function FA(t){return["table","td","th"].indexOf(_A(t))>=0}function xA(t){return CA(t)&&"fixed"!==EA(t).position?t.offsetParent:null}function QA(t){for(var e=BA(t),n=xA(t);n&&FA(n)&&"static"===EA(n).position;)n=xA(n);return n&&("html"===_A(n)||"body"===_A(n)&&"static"===EA(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&CA(t)&&"fixed"===EA(t).position)return null;for(var n=UA(t);CA(n)&&["html","body"].indexOf(_A(n))<0;){var i=EA(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var LA="top",OA="bottom",DA="right",PA="left",HA="auto",RA="start",MA="end",NA=[].concat([LA,OA,DA,PA],[HA]).reduce(function(t,e){return t.concat([e,e+"-"+RA,e+"-"+MA])},[]),KA=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function jA(t){var e=new Map,n=new Set,i=[];return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||function t(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(i){if(!n.has(i)){var r=e.get(i);r&&t(r)}}),i.push(r)}(t)}),i}function VA(t){return t.split("-")[0]}var GA=Math.round;var $A={placement:"bottom",modifiers:[],strategy:"absolute"};function WA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}var zA={passive:!0};var XA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qA(t){var e,n=t.popper,i=t.popperRect,r=t.placement,s=t.offsets,a=t.position,A=t.gpuAcceleration,o=t.adaptive,u=t.roundOffsets,l=!0===u?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:GA(GA(e*i)/i)||0,y:GA(GA(n*i)/i)||0}}(s):"function"==typeof u?u(s):s,c=l.x,h=void 0===c?0:c,d=l.y,f=void 0===d?0:d,p=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),m=PA,v=LA,y=window;if(o){var B=QA(n),b="clientHeight",w="clientWidth";B===BA(n)&&"static"!==EA(B=TA(n)).position&&(b="scrollHeight",w="scrollWidth"),B=B,r===LA&&(v=OA,f-=B[b]-i.height,f*=A?1:-1),r===PA&&(m=DA,h-=B[w]-i.width,h*=A?1:-1)}var C,_=Object.assign({position:a},o&&XA);return A?Object.assign({},_,((C={})[v]=g?"0":"",C[m]=p?"0":"",C.transform=(y.devicePixelRatio||1)<2?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",C)):Object.assign({},_,((e={})[v]=g?f+"px":"",e[m]=p?h+"px":"",e.transform="",e))}var YA=function(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,r=e.defaultOptions,s=void 0===r?$A:r;return function(t,e,n){void 0===n&&(n=s);var r,a,A={placement:"bottom",orderedModifiers:[],options:Object.assign({},$A,s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},o=[],u=!1,l={state:A,setOptions:function(n){c(),A.options=Object.assign({},s,A.options,n),A.scrollParents={reference:wA(t)?IA(t):t.contextElement?IA(t.contextElement):[],popper:IA(e)};var r=function(t){var e=jA(t);return KA.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}(function(t){var e=t.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{});return Object.keys(e).map(function(t){return e[t]})}([].concat(i,A.options.modifiers)));return A.orderedModifiers=r.filter(function(t){return t.enabled}),A.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var s=r({state:A,name:e,instance:l,options:i});o.push(s||function(){})}}),l.update()},forceUpdate:function(){if(!u){var t=A.elements,e=t.reference,n=t.popper;if(WA(e,n)){var i,r,s,a;A.rects={reference:kA(e,QA(n),"fixed"===A.options.strategy),popper:(i=n,r=yA(i),s=i.offsetWidth,a=i.offsetHeight,Math.abs(r.width-s)<=1&&(s=r.width),Math.abs(r.height-a)<=1&&(a=r.height),{x:i.offsetLeft,y:i.offsetTop,width:s,height:a})},A.reset=!1,A.placement=A.options.placement,A.orderedModifiers.forEach(function(t){return A.modifiersData[t.name]=Object.assign({},t.data)});for(var o=0;o<A.orderedModifiers.length;o++)if(!0!==A.reset){var c=A.orderedModifiers[o],h=c.fn,d=c.options,f=void 0===d?{}:d,p=c.name;"function"==typeof h&&(A=h({state:A,options:f,name:p,instance:l})||A)}else A.reset=!1,o=-1}}},update:(r=function(){return new Promise(function(t){l.forceUpdate(),t(A)})},function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(r())})})),a}),destroy:function(){c(),u=!0}};if(!WA(t,e))return l;function c(){o.forEach(function(t){return t()}),o=[]}return l.setOptions(n).then(function(t){!u&&n.onFirstUpdate&&n.onFirstUpdate(t)}),l}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,s=void 0===r||r,a=i.resize,A=void 0===a||a,o=BA(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(t){t.addEventListener("scroll",n.update,zA)}),A&&o.addEventListener("resize",n.update,zA),function(){s&&u.forEach(function(t){t.removeEventListener("scroll",n.update,zA)}),A&&o.removeEventListener("resize",n.update,zA)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=function(t){var e,n=t.reference,i=t.element,r=t.placement,s=r?VA(r):null,a=r?function(t){return t.split("-")[1]}(r):null,A=n.x+n.width/2-i.width/2,o=n.y+n.height/2-i.height/2;switch(s){case LA:e={x:A,y:n.y-i.height};break;case OA:e={x:A,y:n.y+n.height};break;case DA:e={x:n.x+n.width,y:o};break;case PA:e={x:n.x-i.width,y:o};break;default:e={x:n.x,y:n.y}}var u=s?function(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}(s):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case RA:e[u]=e[u]-(n[l]/2-i[l]/2);break;case MA:e[u]=e[u]+(n[l]/2-i[l]/2)}}return e}({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,s=n.adaptive,a=void 0===s||s,A=n.roundOffsets,o=void 0===A||A,u={placement:VA(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,qA(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:o})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,qA(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];CA(r)&&_A(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],r=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});CA(i)&&_A(i)&&(Object.assign(i.style,s),Object.keys(r).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]}]});var JA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,s=void 0===r?[0,0]:r,a=NA.reduce(function(t,n){return t[n]=function(t,e,n){var i=VA(t),r=[PA,LA].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=s[0],A=s[1];return a=a||0,A=(A||0)*r,[PA,DA].indexOf(i)>=0?{x:A,y:a}:{x:a,y:A}}(n,e.rects,s),t},{}),A=a[e.placement],o=A.x,u=A.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=a}},ZA=Object(A.b)("popover"),to=ZA[0],eo=ZA[1],no=to({mixins:[ws({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){return YA(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},i({},JA,{options:{offset:this.offset}})]})},updateLocation:function(){var t=this;this.$nextTick(function(){t.value&&(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())})},renderAction:function(t,e){var n=this,i=this.$createElement,r=t.icon,s=t.text,a=t.disabled,A=t.className;return i("div",{attrs:{role:"menuitem"},class:[eo("action",{disabled:a,"with-icon":r}),A],on:{click:function(){return n.onClickAction(t,e)}}},[r&&i(it,{attrs:{name:r},class:eo("action-icon")}),i("div",{class:[eo("action-text"),_t]},[s])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){"click"===this.trigger&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,e){t.disabled||(this.$emit("select",t,e),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:eo("wrapper"),on:{click:this.onClickWrapper}},[t(At,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:eo([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:eo("arrow")}),t("div",{class:eo("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),io=Object(A.b)("progress"),ro=io[0],so=io[1],ao=ro({props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick(function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0})}},render:function(){var t=arguments[0],e=this.pivotText,n=this.percentage,i=null!=e?e:n+"%",r=this.showPivot&&i,s=this.inactive?"#cacaca":this.color,a={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*n/100+"px",background:this.pivotColor||s},o={background:s,width:this.progressWidth*n/100+"px"},u={background:this.trackColor,height:Object(A.a)(this.strokeWidth)};return t("div",{class:so(),style:u},[t("span",{class:so("portion"),style:o},[r&&t("span",{ref:"pivot",style:a,class:so("pivot")},[i])])])}}),Ao=Object(A.b)("pull-refresh"),oo=Ao[0],uo=Ao[1],lo=Ao[2],co=["pulling","loosing","success"],ho=oo({mixins:[M],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:50}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(50!==this.headHeight)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=Q(this.$el)},methods:{checkPullStart:function(t){this.ceiling=0===L(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){this.touchable&&(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(y(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){t.$emit("refresh")})):this.setStatus(0))},ease:function(t){var e=+(this.pullDistance||this.headHeight);return t>e&&(t=t<2*e?e+(t-e)/2:1.5*e+(t-2*e)/4),Math.round(t)},setStatus:function(t,e){var n;n=e?"loading":0===t?"normal":t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,n!==this.status&&(this.status=n)},genStatus:function(){var t=this.$createElement,e=this.status,n=this.distance,i=this.slots(e,{distance:n});if(i)return i;var r=[],s=this[e+"Text"]||lo(e);return-1!==co.indexOf(e)&&r.push(t("div",{class:uo("text")},[s])),"loading"===e&&r.push(t(ht,{attrs:{size:"16"}},[s])),r},showSuccessTip:function(){var t=this;this.status="success",setTimeout(function(){t.setStatus(0)},this.successDuration)}},render:function(){var t=arguments[0],e={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:uo()},[t("div",{ref:"track",class:uo("track"),style:e},[t("div",{class:uo("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),fo=Object(A.b)("rate"),po=fo[0],go=fo[1];var mo=po({mixins:[M,Je],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t,e,n,i=[],r=1;r<=this.count;r++)i.push((t=this.value,e=r,n=this.allowHalf,t>=e?"full":t+.5>=e&&n?"half":"void"));return i},sizeWithUnit:function(){return Object(A.a)(this.size)},gutterWithUnit:function(){return Object(A.a)(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){this.disabled||this.readonly||t===this.value||(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var e=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(t);var n=[];this.$refs.items.map(function(t){return t.getBoundingClientRect()}).forEach(function(t,i){e.allowHalf?n.push({score:i+.5,left:t.left},{score:i+1,left:t.left+t.width/2}):n.push({score:i+1,left:t.left})}),this.ranges=n}},onTouchMove:function(t){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(t),"horizontal"===this.direction)){y(t);var e=t.touches[0].clientX;this.select(this.getScoreByPosition(e))}},getScoreByPosition:function(t){for(var e=this.ranges.length-1;e>0;e--)if(t>this.ranges[e].left)return this.ranges[e].score;return this.allowHalf?.5:1},genStar:function(t,e){var n,i=this,r=this.$createElement,s=this.icon,a=this.color,A=this.count,o=this.voidIcon,u=this.disabled,l=this.voidColor,c=this.disabledColor,h=e+1,d="full"===t,f="void"===t;return this.gutterWithUnit&&h!==+A&&(n={paddingRight:this.gutterWithUnit}),r("div",{ref:"items",refInFor:!0,key:e,attrs:{role:"radio",tabindex:"0","aria-setsize":A,"aria-posinset":h,"aria-checked":String(!f)},style:n,class:go("item")},[r(it,{attrs:{size:this.sizeWithUnit,name:d?s:o,color:u?c:d?a:l,classPrefix:this.iconPrefix,"data-score":h},class:go("icon",{disabled:u,full:d}),on:{click:function(){i.select(h)}}}),this.allowHalf&&r(it,{attrs:{size:this.sizeWithUnit,name:f?o:s,color:u?c:f?l:a,classPrefix:this.iconPrefix,"data-score":h-.5},class:go("icon",["half",{disabled:u,full:!f}]),on:{click:function(){i.select(h-.5)}}})])}},render:function(){var t=this;return(0,arguments[0])("div",{class:go({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(e,n){return t.genStar(e,n)})])}}),vo=Object(A.b)("row"),yo=vo[0],Bo=vo[1],bo=yo({mixins:[ke("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(t){var e=[],n=[[]],i=0;return this.children.forEach(function(t,e){(i+=Number(t.span))>24?(n.push([e]),i-=24):n[n.length-1].push(e)}),n.forEach(function(n){var i=t*(n.length-1)/n.length;n.forEach(function(n,r){if(0===r)e.push({right:i});else{var s=t-e[n-1].right,a=i-s;e.push({left:s,right:a})}})}),e}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.align,i=this.justify,r="flex"===this.type;return e(this.tag,{class:Bo((t={flex:r},t["align-"+n]=r&&n,t["justify-"+i]=r&&i,t)),on:{click:this.onClick}},[this.slots()])}}),wo=Object(A.b)("search"),Co=wo[0],_o=wo[1],To=wo[2];function Eo(t,e,n,r){var a={attrs:r.data.attrs,on:i({},r.listeners,{keypress:function(t){13===t.keyCode&&(y(t),c(r,"search",e.value)),c(r,"keypress",t)}})},A=l(r);return A.attrs=void 0,t("div",s()([{class:_o({"show-action":e.showAction}),style:{background:e.background}},A]),[null==n.left?void 0:n.left(),t("div",{class:_o("content",e.shape)},[function(){if(n.label||e.label)return t("div",{class:_o("label")},[n.label?n.label():e.label])}(),t(ae,s()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":n["left-icon"],"right-icon":n["right-icon"]}},a]))]),function(){if(e.showAction)return t("div",{class:_o("action"),attrs:{role:"button",tabindex:"0"},on:{click:function(){n.action||(c(r,"input",""),c(r,"cancel"))}}},[n.action?n.action():e.actionText||To("cancel")])}()])}Eo.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var So=Co(Eo),ko=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],Uo=Object(A.b)("share-sheet"),Io=Uo[0],Fo=Uo[1],xo=Uo[2],Qo=Io({props:i({},G,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,e){this.$emit("select",t,e)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return-1!==ko.indexOf(t)?"https://img01.yzcdn.cn/vant/share-sheet-"+t+".png":t},genHeader:function(){var t=this.$createElement,e=this.slots("title")||this.title,n=this.slots("description")||this.description;if(e||n)return t("div",{class:Fo("header")},[e&&t("h2",{class:Fo("title")},[e]),n&&t("span",{class:Fo("description")},[n])])},genOptions:function(t,e){var n=this,i=this.$createElement;return i("div",{class:Fo("options",{border:e})},[t.map(function(t,e){return i("div",{attrs:{role:"button",tabindex:"0"},class:[Fo("option"),t.className],on:{click:function(){n.onSelect(t,e)}}},[i("img",{attrs:{src:n.getIconURL(t.icon)},class:Fo("icon")}),t.name&&i("span",{class:Fo("name")},[t.name]),t.description&&i("span",{class:Fo("option-description")},[t.description])])})])},genRows:function(){var t=this,e=this.options;return Array.isArray(e[0])?e.map(function(e,n){return t.genOptions(e,0!==n)}):this.genOptions(e)},genCancelText:function(){var t,e=this.$createElement,n=null!=(t=this.cancelText)?t:xo("cancel");if(n)return e("button",{attrs:{type:"button"},class:Fo("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){return(0,arguments[0])(At,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:Fo(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),Lo=Object(A.b)("sidebar"),Oo=Lo[0],Do=Lo[1],Po=Oo({mixins:[ke("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){return(0,arguments[0])("div",{class:Do()},[this.slots()])}}),Ho=Object(A.b)("sidebar-item"),Ro=Ho[0],Mo=Ho[1],No=Ro({mixins:[Se("vanSidebar")],props:i({},zt,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),$t(this.$router,this))}},render:function(){var t,e,n=arguments[0];return n("a",{class:Mo({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:Mo("text")},[null!=(t=this.slots("title"))?t:this.title,n(Y,{attrs:{dot:this.dot,info:null!=(e=this.badge)?e:this.info},class:Mo("info")})])])}}),Ko=Object(A.b)("skeleton"),jo=Ko[0],Vo=Ko[1],Go="100%",$o="60%";function Wo(t,e,n,i){if(!e.loading)return n.default&&n.default();return t("div",s()([{class:Vo({animate:e.animate,round:e.round})},l(i)]),[function(){if(e.avatar){var n=Object(A.a)(e.avatarSize);return t("div",{class:Vo("avatar",e.avatarShape),style:{width:n,height:n}})}}(),t("div",{class:Vo("content")},[function(){if(e.title)return t("h3",{class:Vo("title"),style:{width:Object(A.a)(e.titleWidth)}})}(),function(){for(var n,i=[],r=e.rowWidth,s=0;s<e.row;s++)i.push(t("div",{class:Vo("row"),style:{width:Object(A.a)((n=s,r===Go&&n===+e.row-1?$o:Array.isArray(r)?r[n]:r))}}));return i}()])])}Wo.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:Go}};var zo=jo(Wo),Xo={QUOTA_LIMIT:0,STOCK_LIMIT:1},qo={LIMIT_TYPE:Xo,UNSELECTED_SKU_VALUE_ID:""},Yo=function(t){var e={};return t.forEach(function(t){e[t.k_s]=t.v}),e},Jo=function(t,e){var n=Object.keys(e).filter(function(t){return""!==e[t]});return t.length===n.length},Zo=function(t,e){return t.filter(function(t){return Object.keys(e).every(function(n){return String(t[n])===String(e[n])})})[0]},tu=function(t,e){var n=Yo(t);return Object.keys(e).reduce(function(t,i){var r=n[i],s=e[i];if(""!==s){var a=r.filter(function(t){return t.id===s})[0];a&&t.push(a)}return t},[])},eu=function(t,e,n){var r,s=n.key,a=n.valueId,A=i({},e,((r={})[s]=a,r)),o=Object.keys(A).filter(function(t){return""!==A[t]});return t.filter(function(t){return o.every(function(e){return String(A[e])===String(t[e])})}).reduce(function(t,e){return t+=e.stock_num},0)>0},nu=function(t,e){var n=function(t){var e={};return t.forEach(function(t){var n={};t.v.forEach(function(t){n[t.id]=t}),e[t.k_id]=n}),e}(t);return Object.keys(e).reduce(function(t,r){return e[r].forEach(function(e){t.push(i({},n[r][e]))}),t},[])},iu=function(t,e){var n=[];return(t||[]).forEach(function(t){if(e[t.k_id]&&e[t.k_id].length>0){var r=[];t.v.forEach(function(n){e[t.k_id].indexOf(n.id)>-1&&r.push(i({},n))}),n.push(i({},t,{v:r}))}}),n},ru={normalizeSkuTree:Yo,getSkuComb:Zo,getSelectedSkuValues:tu,isAllSelected:Jo,isSkuChoosable:eu,getSelectedPropValues:nu,getSelectedProperties:iu},su=Object(A.b)("sku-header"),au=su[0],Au=su[1];function ou(t,e,n,r){var a,A=e.sku,o=e.goods,u=e.skuEventBus,c=e.selectedSku,h=e.showHeaderImage,d=void 0===h||h,f=function(t,e){var n;return t.tree.some(function(t){var r=e[t.k_s];if(r&&t.v){var s=t.v.filter(function(t){return t.id===r})[0]||{},a=s.previewImgUrl||s.imgUrl||s.img_url;if(a)return n=i({},s,{ks:t.k_s,imgUrl:a}),!0}return!1}),n}(A,c),p=f?f.imgUrl:o.picture;return t("div",s()([{class:[Au(),_t]},l(r)]),[d&&t(ii,{attrs:{fit:"cover",src:p},class:Au("img-wrap"),on:{click:function(){u.$emit("sku:previewImage",f)}}},[null==(a=n["sku-header-image-extra"])?void 0:a.call(n)]),t("div",{class:Au("goods-info")},[null==n.default?void 0:n.default()])])}ou.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var uu=au(ou),lu=Object(A.b)("sku-header-item"),cu=lu[0],hu=lu[1];var du=cu(function(t,e,n,i){return t("div",s()([{class:hu()},l(i)]),[n.default&&n.default()])}),fu=Object(A.b)("sku-row"),pu=fu[0],gu=fu[1],mu=fu[2],vu=pu({mixins:[ke("vanSkuRows"),j(function(t){this.scrollable&&this.$refs.scroller&&t(this.$refs.scroller,"scroll",this.onScroll)})],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,e=t.scroller,n=t.row.offsetWidth-e.offsetWidth;this.progress=e.scrollLeft/n},genTitle:function(){var t=this.$createElement;return t("div",{class:gu("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:gu("title-multiple")},["(",mu("multiple"),")"])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var e={transform:"translate3d("+20*this.progress+"px, 0, 0)"};return t("div",{class:gu("indicator-wrapper")},[t("div",{class:gu("indicator")},[t("div",{class:gu("indicator-slider"),style:e})])])}},genContent:function(){var t=this.$createElement,e=this.slots();if(this.skuRow.largeImageMode){var n=[],i=[];return e.forEach(function(t,e){(Math.floor(e/3)%2==0?n:i).push(t)}),t("div",{class:gu("scroller"),ref:"scroller"},[t("div",{class:gu("row"),ref:"row"},[n]),i.length?t("div",{class:gu("row")},[i]):null])}return e},centerItem:function(t){if(this.skuRow.largeImageMode&&t){var e=this.children,n=void 0===e?[]:e,i=this.$refs,r=i.scroller,s=i.row,a=n.find(function(e){return+e.skuValue.id==+t});if(r&&s&&a&&a.$el){var A=a.$el,o=A.offsetLeft-(r.offsetWidth-A.offsetWidth)/2;r.scrollLeft=o}}}},render:function(){return(0,arguments[0])("div",{class:[gu(),_t]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),yu=(0,Object(A.b)("sku-row-item")[0])({mixins:[Se("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return!this.disableSoldoutSku||eu(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",i({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var e=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",i({},e,{ks:n,imgUrl:e.imgUrl||e.img_url}))},genImage:function(t){var e=this.$createElement;if(this.imgUrl)return e(ii,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],e=this.skuValue.id===this.selectedSku[this.skuKeyStr],n=this.largeImageMode?gu("image-item"):gu("item");return t("span",{class:[n,e?n+"--active":"",this.choosable?"":n+"--disabled"],on:{click:this.onSelect}},[this.genImage(n),t("div",{class:n+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t(it,{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}}),Bu=(0,Object(A.b)("sku-row-prop-item")[0])({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean},computed:{choosed:function(){var t=this.selectedProp,e=this.skuKeyStr,n=this.skuValue;return!(!t||!t[e])&&t[e].indexOf(n.id)>-1}},methods:{onSelect:function(){this.skuEventBus.$emit("sku:propSelect",i({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),bu=Object(A.b)("stepper"),wu=bu[0],Cu=bu[1];function _u(t,e){return String(t)===String(e)}var Tu=wu({mixins:[Je],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,e=null!=(t=this.value)?t:this.defaultValue,n=this.format(e);return _u(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=Object(A.a)(this.inputWidth)),this.buttonSize&&(t.height=Object(A.a)(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=Object(A.a)(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){_u(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);_u(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return Ft(String(t),!this.integer)},format:function(t){return this.allowEmpty&&""===t?t:(t=""===(t=this.formatNumber(t))?0:+t,t=Object(Qn.a)(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),Object(A.e)(this.decimalLength)&&(t=t.toFixed(this.decimalLength)),t)},onInput:function(t){var e=t.target.value,n=this.formatNumber(e);if(Object(A.e)(this.decimalLength)&&-1!==n.indexOf(".")){var i=n.split(".");n=i[0]+"."+i[1].slice(0,this.decimalLength)}_u(e,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e,n,i,r="minus"===t?-this.step:+this.step,s=this.format((e=+this.currentValue,n=r,i=Math.pow(10,10),Math.round((e+n)*i)/i));this.emitChange(s),this.$emit(t)}},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var e=this.format(t.target.value);t.target.value=e,this.currentValue=e,this.$emit("blur",t),ne()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout(function(){t.onChange(),t.longPressStep(t.type)},200)},onTouchStart:function(){var t=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){t.isLongPress=!0,t.onChange(),t.longPressStep()},600))},onTouchEnd:function(t){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&y(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,e=arguments[0],n=function(e){return{on:{click:function(n){n.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return e("div",{class:Cu([this.theme])},[e("button",s()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:Cu("minus",{disabled:this.minusDisabled})},n("minus")])),e("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:Cu("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),e("button",s()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:Cu("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),Eu=Object(A.b)("sku-stepper"),Su=Eu[0],ku=Eu[2],Uu=Xo.QUOTA_LIMIT,Iu=Xo.STOCK_LIMIT,Fu=Su({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:Iu}},watch:{currentNum:function(t){var e=parseInt(t,10);e>=this.stepperMinLimit&&e<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",e)},stepperLimit:function(t){t<this.currentNum&&this.stepperMinLimit<=t&&(this.currentNum=t),this.checkState(this.stepperMinLimit,t)},stepperMinLimit:function(t){(t>this.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t,e=this.quota-this.quotaUsed;return this.quota>0&&e<=this.stock?(t=e<0?0:e,this.limitType=Uu):(t=this.stock,this.limitType=Iu),t},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,e=t.quotaText;if(t.hideQuotaText)return"";var n="";if(e)n=e;else{var i=[];this.startSaleNum>1&&i.push(ku("quotaStart",this.startSaleNum)),this.quota>0&&i.push(ku("quotaLimit",this.quota)),n=i.join(ku("comma"))}return n}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var e=parseInt(t,10),n=this.customStepperConfig.handleStepperChange;n&&n(e),this.$emit("change",e)},checkState:function(t,e){this.currentNum<t||t>e?this.currentNum=t:this.currentNum>e&&(this.currentNum=e),this.skuEventBus.$emit("sku:stepperState",{valid:t<=e,min:t,max:e,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,e=arguments[0];return e("div",{class:"van-sku-stepper-stock"},[e("div",{class:"van-sku__stepper-title"},[this.stepperTitle||ku("num")]),e(Tu,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(e){t.currentNum=e}}}),!this.hideQuotaText&&this.quotaText&&e("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function xu(t){return/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)}function Qu(t){return Array.isArray(t)?t:[t]}function Lu(t,e){return new Promise(function(n){if("file"!==e){var i=new FileReader;i.onload=function(t){n(t.target.result)},"dataUrl"===e?i.readAsDataURL(t):"text"===e&&i.readAsText(t)}else n(null)})}var Ou=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Du(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?(e=t.url,Ou.test(e)):!!t.content&&0===t.content.indexOf("data:image"));var e}var Pu=Object(A.b)("uploader"),Hu=Pu[0],Ru=Pu[1],Mu=Hu({inheritAttrs:!1,mixins:[Je],model:{prop:"fileList"},props:{disabled:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(A.a)(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,n=t.target.files;if(!this.disabled&&n.length){if(n=1===n.length?n[0]:[].slice.call(n),this.beforeRead){var i=this.beforeRead(n,this.getDetail());if(!i)return void this.resetInput();if(Object(A.i)(i))return void i.then(function(t){t?e.readFile(t):e.readFile(n)}).catch(this.resetInput)}this.readFile(n)}},readFile:function(t){var e=this,n=function(t,e){return Qu(t).some(function(t){return t.size>e})}(t,this.maxSize);if(Array.isArray(t)){var i=this.maxCount-this.fileList.length;t.length>i&&(t=t.slice(0,i)),Promise.all(t.map(function(t){return Lu(t,e.resultType)})).then(function(i){var r=t.map(function(t,e){var n={file:t,status:"",message:""};return i[e]&&(n.content=i[e]),n});e.onAfterRead(r,n)})}else Lu(t,this.resultType).then(function(i){var r={file:t,status:"",message:""};i&&(r.content=i),e.onAfterRead(r,n)})},onAfterRead:function(t,e){var n=this;this.resetInput();var i=t;if(e){var r=t;Array.isArray(t)?(r=[],i=[],t.forEach(function(t){t.file&&(t.file.size>n.maxSize?r.push(t):i.push(t))})):i=null,this.$emit("oversize",r,this.getDetail())}(Array.isArray(i)?Boolean(i.length):Boolean(i))&&(this.$emit("input",[].concat(this.fileList,Qu(i))),this.afterRead&&this.afterRead(i,this.getDetail()))},onDelete:function(t,e){var n,i=this,r=null!=(n=t.beforeDelete)?n:this.beforeDelete;if(r){var s=r(t,this.getDetail(e));if(!s)return;if(Object(A.i)(s))return void s.then(function(){i.deleteFile(t,e)}).catch(A.k)}this.deleteFile(t,e)},deleteFile:function(t,e){var n=this.fileList.slice(0);n.splice(e,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var n=this.fileList.filter(function(t){return Du(t)}),r=n.map(function(t){return t.content||t.url});this.imagePreview=da(i({images:r,startPosition:n.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,n=t.status,i=t.message;if("uploading"===n||"failed"===n){var r="failed"===n?e(it,{attrs:{name:"close"},class:Ru("mask-icon")}):e(ht,{class:Ru("loading")}),s=Object(A.e)(i)&&""!==i;return e("div",{class:Ru("mask")},[r,s&&e("div",{class:Ru("mask-message")},[i])])}},genPreviewItem:function(t,e){var n,r,s,a=this,A=this.$createElement,o=null!=(n=t.deletable)?n:this.deletable,u="uploading"!==t.status&&o&&A("div",{class:Ru("preview-delete"),on:{click:function(n){n.stopPropagation(),a.onDelete(t,e)}}},[A(it,{attrs:{name:"cross"},class:Ru("preview-delete-icon")})]),l=this.slots("preview-cover",i({index:e},t)),c=l&&A("div",{class:Ru("preview-cover")},[l]),h=null!=(r=t.previewSize)?r:this.previewSize,d=null!=(s=t.imageFit)?s:this.imageFit,f=Du(t)?A(ii,{attrs:{fit:d,src:t.content||t.url,width:h,height:h,lazyLoad:this.lazyLoad},class:Ru("preview-image"),on:{click:function(){a.onPreviewImage(t)}}},[c]):A("div",{class:Ru("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[A(it,{class:Ru("file-icon"),attrs:{name:"description"}}),A("div",{class:[Ru("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),c]);return A("div",{class:Ru("preview"),on:{click:function(){a.$emit("click-preview",t,a.getDetail(e))}}},[f,this.genPreviewMask(t),u])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,n=this.slots(),r=t("input",{attrs:i({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:Ru("input"),on:{change:this.onChange}});if(n)return t("div",{class:Ru("input-wrapper"),key:"input-wrapper"},[n,r]);if(this.previewSize){var s=this.previewSizeWithUnit;e={width:s,height:s}}return t("div",{class:Ru("upload"),style:e},[t(it,{attrs:{name:this.uploadIcon},class:Ru("upload-icon")}),this.uploadText&&t("span",{class:Ru("upload-text")},[this.uploadText]),r])}}},render:function(){var t=arguments[0];return t("div",{class:Ru()},[t("div",{class:Ru("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),Nu=Object(A.b)("sku-img-uploader"),Ku=Nu[0],ju=Nu[2],Vu=Ku({props:{value:String,uploadImg:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){this.fileList=t?[{url:t,isImage:!0}]:[]}},methods:{afterReadFile:function(t){var e=this;t.status="uploading",t.message=ju("uploading"),this.uploadImg(t.file,t.content).then(function(n){t.status="done",e.$emit("input",n)}).catch(function(){t.status="failed",t.message=ju("fail")})},onOversize:function(){this.$toast(ju("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")}},render:function(){var t=this;return(0,arguments[0])(Mu,{attrs:{maxCount:1,afterRead:this.afterReadFile,maxSize:1024*this.maxSize*1024},on:{oversize:this.onOversize,delete:this.onDelete},model:{value:t.fileList,callback:function(e){t.fileList=e}}})}});var Gu=Object(A.b)("sku-datetime-field"),$u=Gu[0],Wu=Gu[2],zu=$u({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:"time"===this.type?"":new Date,minDate:new Date((new Date).getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=((e=t)?new Date(e.replace(/-/g,"/")):null)||new Date}var e}},computed:{title:function(){return Wu("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var e=t;"time"!==this.type&&(e=function(t,e){if(void 0===e&&(e="date"),!t)return"";var n=t.getFullYear(),i=t.getMonth()+1,r=t.getDate(),s=n+"-"+Object(Fr.b)(i)+"-"+Object(Fr.b)(r);if("datetime"===e){var a=t.getHours(),A=t.getMinutes();s+=" "+Object(Fr.b)(a)+":"+Object(Fr.b)(A)}return s}(t,this.type)),this.$emit("input",e),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,e){return""+e+Wu("format."+t)}},render:function(){var t=this,e=arguments[0];return e(ae,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[e(At,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(e){t.showDatePicker=e}}},[e(hs,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),Xu=Object(A.b)("sku-messages"),qu=Xu[0],Yu=Xu[1],Ju=Xu[2],Zu=qu({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var e=this.messageConfig.initialMessages,n=void 0===e?{}:e;return(t||[]).map(function(t){return{value:n[t.name]||""}})},getType:function(t){return 1==+t.multiple?"textarea":"id_no"===t.type?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach(function(e,n){t["message_"+n]=e.value}),t},getCartMessages:function(){var t=this,e={};return this.messageValues.forEach(function(n,i){var r=t.messages[i];e[r.name]=n.value}),e},getPlaceholder:function(t){var e=1==+t.multiple?"textarea":t.type,n=this.messageConfig.placeholderMap||{};return t.placeholder||n[e]||Ju("placeholder."+e)},validateMessages:function(){for(var t=this.messageValues,e=0;e<t.length;e++){var n=t[e].value,i=this.messages[e];if(""===n){if("1"===String(i.required))return Ju("image"===i.type?"upload":"fill")+i.name}else{if("tel"===i.type&&!Object(Qn.b)(n))return Ju("invalid.tel");if("mobile"===i.type&&!/^\d{6,20}$/.test(n))return Ju("invalid.mobile");if("email"===i.type&&!xu(n))return Ju("invalid.email");if("id_no"===i.type&&(n.length<15||n.length>18))return Ju("invalid.id_no")}}},getFormatter:function(t){return function(e){return"mobile"===t.type||"tel"===t.type?e.replace(/[^\d.]/g,""):e}},genMessage:function(t,e){var n=this,i=this.$createElement;return"image"===t.type?i(te,{key:this.goodsId+"-"+e,attrs:{title:t.name,required:"1"===String(t.required),valueClass:Yu("image-cell-value")},class:Yu("image-cell")},[i(Vu,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg},model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}}),i("div",{class:Yu("image-cell-label")},[Ju("imageLabel")])]):["date","time"].indexOf(t.type)>-1?i(zu,{attrs:{label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+e,model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}}):i(ae,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t)},key:this.goodsId+"-"+e,model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}})}},render:function(){return(0,arguments[0])("div",{class:Yu()},[this.messages.map(this.genMessage)])}}),tl=Object(A.b)("sku-actions"),el=tl[0],nl=tl[1],il=tl[2];function rl(t,e,n,i){var r=function(t){return function(){e.skuEventBus.$emit(t)}};return t("div",s()([{class:nl()},l(i)]),[e.showAddCartBtn&&t(Te,{attrs:{size:"large",type:"warning",text:e.addCartText||il("addCart")},on:{click:r("sku:addCart")}}),t(Te,{attrs:{size:"large",type:"danger",text:e.buyText||il("buy")},on:{click:r("sku:buy")}})])}rl.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var sl=el(rl),al=Object(A.b)("sku"),Al=al[0],ol=al[1],ul=al[2],ll=Xo.QUOTA_LIMIT,cl=Al({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(t){this.$emit("input",t),t||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(t){this.show=t},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer)return{maxHeight:window.innerHeight-this.bodyOffsetTop+"px"}},isSkuCombSelected:function(){var t=this;return!(this.hasSku&&!Jo(this.skuTree,this.selectedSku))&&!this.propList.filter(function(t){return!1!==t.is_necessary}).some(function(e){return 0===(t.selectedProp[e.k_id]||[]).length})},isSkuEmpty:function(){return 0===Object.keys(this.sku).length},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(t=this.hasSku?Zo(this.skuList,this.selectedSku):{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num})&&(t.properties=iu(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce(function(t,e){return t+(e.price||0)},0)),t},selectedSkuValues:function(){return tu(this.skuTree,this.selectedSku)},selectedPropValues:function(){return nu(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach(function(e){e.v&&e.v.forEach(function(e){var n=e.previewImgUrl||e.imgUrl||e.img_url;n&&-1===t.indexOf(n)&&t.push(n)})}),t},stock:function(){var t=this.customStepperConfig.stockNum;return void 0!==t?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,e=this.customStepperConfig.stockFormatter;return e?e(this.stock):[ul("stock")+" ",t("span",{class:ol("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+ul("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var e=this.selectedSkuValues.concat(this.selectedPropValues);return ul("selected")+" "+e.map(function(t){return t.name}).join(" ")}var n=this.skuTree.filter(function(e){return""===t.selectedSku[e.k_s]}).map(function(t){return t.k}),i=this.propList.filter(function(e){return(t.selectedProp[e.k_id]||[]).length<1}).map(function(t){return t.k});return ul("select")+" "+n.concat(i).join(" ")}},created:function(){var t=new a.a;this.skuEventBus=t,t.$on("sku:select",this.onSelect),t.$on("sku:propSelect",this.onPropSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:stepperState",this.onStepperState),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,e=this.initialSku.selectedNum,n=null!=e?e:this.startSaleNum;this.stepperError=null,t?t.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(){var t=this;this.selectedSku={},this.skuTree.forEach(function(e){t.selectedSku[e.k_s]=""}),this.skuTree.forEach(function(e){var n=e.k_s,i=1===e.v.length?e.v[0].id:t.initialSku[n];i&&eu(t.skuList,t.selectedSku,{key:n,valueId:i})&&(t.selectedSku[n]=i)});var e=this.selectedSkuValues;e.length>0&&this.$nextTick(function(){t.$emit("sku-selected",{skuValue:e[e.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})}),this.selectedProp={};var n=this.initialSku.selectedProp,i=void 0===n?{}:n;this.propList.forEach(function(e){i[e.k_id]&&(t.selectedProp[e.k_id]=i[e.k_id])}),Object(A.f)(this.selectedProp)&&this.propList.forEach(function(e){var n;if((null==e?void 0:null==(n=e.v)?void 0:n.length)>0){var i=e.v,r=e.k_id;i.some(function(t){return 0!=+t.price})||(t.selectedProp[r]=[i[0].id])}});var r=this.selectedPropValues;r.length>0&&this.$emit("sku-prop-selected",{propValue:r[r.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(0===this.selectedNum)return ul("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return ul("selectSku")},onSelect:function(t){var e,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?i({},this.selectedSku,((e={})[t.skuKeyStr]="",e)):i({},this.selectedSku,((n={})[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var e,n=this.selectedProp[t.skuKeyStr]||[],r=n.indexOf(t.id);r>-1?n.splice(r,1):t.multiple?n.push(t.id):n.splice(0,1,t.id),this.selectedProp=i({},this.selectedProp,((e={})[t.skuKeyStr]=n,e)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var e=this,n=0,r=this.imageList[0];t&&t.imgUrl&&(this.imageList.some(function(e,i){return e===t.imgUrl&&(n=i,!0)}),r=t.imgUrl);var s=i({},t,{index:n,imageList:this.imageList,indexImage:r});this.$emit("open-preview",s),this.previewOnClickImage&&da({images:this.imageList,startPosition:n,onClose:function(){e.$emit("close-preview",s)}})},onOverLimit:function(t){var e=t.action,n=t.limitType,i=t.quota,r=t.quotaUsed,s=this.customStepperConfig.handleOverLimit;s?s(t):"minus"===e?this.startSaleNum>1?Be(ul("minusStartTip",this.startSaleNum)):Be(ul("minusTip")):"plus"===e&&Be(n===ll?r>0?ul("quotaUsedTip",i,r):ul("quotaTip",i):ul("soldout"))},onStepperState:function(t){this.stepperError=t.valid?null:i({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var e=this.validateSku();e?Be(e):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach(function(e){var n=(e.skuRow||{}).k_s;e.centerItem(t.initialSku[n])})}},render:function(){var t=this,e=arguments[0];if(!this.isSkuEmpty){var n=this.sku,i=this.skuList,r=this.goods,s=this.price,a=this.lazyLoad,A=this.originPrice,o=this.skuEventBus,u=this.selectedSku,l=this.selectedProp,c=this.selectedNum,h=this.stepperTitle,d=this.selectedSkuComb,f=this.showHeaderImage,p=this.disableSoldoutSku,g={price:s,originPrice:A,selectedNum:c,skuEventBus:o,selectedSku:u,selectedSkuComb:d},m=function(e){return t.slots(e,g)},v=m("sku-header")||e(uu,{attrs:{sku:n,goods:r,skuEventBus:o,selectedSku:u,showHeaderImage:f}},[e("template",{slot:"sku-header-image-extra"},[m("sku-header-image-extra")]),m("sku-header-price")||e("div",{class:"van-sku__goods-price"},[e("span",{class:"van-sku__price-symbol"},["¥"]),e("span",{class:"van-sku__price-num"},[s]),this.priceTag&&e("span",{class:"van-sku__price-tag"},[this.priceTag])]),m("sku-header-origin-price")||A&&e(du,[ul("originPrice")," ¥",A]),!this.hideStock&&e(du,[e("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&e(du,[this.selectedText]),m("sku-header-extra")]),y=m("sku-group")||this.hasSkuOrAttr&&e("div",{class:this.skuGroupClass},[this.skuTree.map(function(t){return e(vu,{attrs:{skuRow:t},ref:"skuRows",refInFor:!0},[t.v.map(function(n){return e(yu,{attrs:{skuList:i,lazyLoad:a,skuValue:n,skuKeyStr:t.k_s,selectedSku:u,skuEventBus:o,disableSoldoutSku:p,largeImageMode:t.largeImageMode}})})])}),this.propList.map(function(t){return e(vu,{attrs:{skuRow:t}},[t.v.map(function(n){return e(Bu,{attrs:{skuValue:n,skuKeyStr:t.k_id+"",selectedProp:l,skuEventBus:o,multiple:t.is_multiple}})})])})]),B=m("sku-stepper")||e(Fu,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:o,selectedNum:c,stepperTitle:h,skuStockNum:n.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(e){t.$emit("stepper-change",e)}}}),b=m("sku-messages")||e(Zu,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),w=m("sku-actions")||e(sl,{attrs:{buyText:this.buyText,skuEventBus:o,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return e(At,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(e){t.show=e}}},[v,e("div",{class:"van-sku-body",style:this.bodyStyle},[m("sku-body-top"),y,m("extra-sku-group"),B,b]),m("sku-actions-top"),w])}}});Ua.a.add({"zh-CN":{vanSku:{select:"请选择",selected:"已选",selectSku:"请先选择商品规格",soldout:"库存不足",originPrice:"原价",minusTip:"至少选择一件",minusStartTip:function(t){return t+"件起售"},unavailable:"商品已经无法购买啦",stock:"剩余",stockUnit:"件",quotaTip:function(t){return"每人限购"+t+"件"},quotaUsedTip:function(t,e){return"每人限购"+t+"件,你已购买"+e+"件"}},vanSkuActions:{buy:"立即购买",addCart:"加入购物车"},vanSkuImgUploader:{oversize:function(t){return"最大可上传图片为"+t+"MB,请尝试压缩图片尺寸"},fail:"上传失败",uploading:"上传中..."},vanSkuStepper:{quotaLimit:function(t){return"限购"+t+"件"},quotaStart:function(t){return t+"件起售"},comma:",",num:"购买数量"},vanSkuMessages:{fill:"请填写",upload:"请上传",imageLabel:"仅限一张",invalid:{tel:"请填写正确的数字格式留言",mobile:"手机号长度为6-20位数字",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码"},placeholder:{id_no:"请填写身份证号",text:"请填写留言",tel:"请填写数字",email:"请填写邮箱",date:"请选择日期",time:"请选择时间",textarea:"请填写留言",mobile:"请填写手机号"}},vanSkuRow:{multiple:"可多选"},vanSkuDatetimeField:{title:{date:"选择年月日",time:"选择时间",datetime:"选择日期时间"},format:{year:"年",month:"月",day:"日",hour:"时",minute:"分"}}}}),cl.SkuActions=sl,cl.SkuHeader=uu,cl.SkuHeaderItem=du,cl.SkuMessages=Zu,cl.SkuStepper=Fu,cl.SkuRow=vu,cl.SkuRowItem=yu,cl.SkuRowPropItem=Bu,cl.skuHelper=ru,cl.skuConstants=qo;var hl=cl,dl=Object(A.b)("slider"),fl=dl[0],pl=dl[1],gl=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},ml=fl({mixins:[M,Je],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=Object(A.a)(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),y(t,!0),this.touchMove(t),this.dragStatus="draging";var e=this.$el.getBoundingClientRect(),n=(this.vertical?this.deltaY:this.deltaX)/(this.vertical?e.height:e.width)*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+n:this.currentValue=this.startValue+n,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),n=this.vertical?t.clientY-e.top:t.clientX-e.left,i=this.vertical?e.height:e.width,r=+this.min+n/i*this.scope;if(this.range){var s=this.value,a=s[0],A=s[1];r<=(a+A)/2?a=r:A=r,r=[a,A]}this.startValue=this.value,this.updateValue(r,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=kt(t)).reverse():t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),gl(t,this.value)||this.$emit("input",t),e&&!gl(t,this.startValue)&&this.$emit("change",t)},format:function(t){return Math.round(Math.max(this.min,Math.min(t,this.max))/this.step)*this.step}},render:function(){var t,e,n,i,r,s,a=this,o=arguments[0],u=this.vertical,l=u?"height":"width",c=u?"width":"height",h=((t={background:this.inactiveColor})[c]=Object(A.a)(this.barHeight),t),d=function(){var t=a.value,e=a.min,n=a.range,i=a.scope;return n?100*(t[0]-e)/i+"%":null},f=((e={})[l]=(n=a.value,i=a.min,r=a.range,s=a.scope,r?100*(n[1]-n[0])/s+"%":100*(n-i)/s+"%"),e.left=this.vertical?null:d(),e.top=this.vertical?d():null,e.background=this.activeColor,e);this.dragStatus&&(f.transition="none");var p=function(t){var e=["left","right"],n="number"==typeof t;return o("div",{ref:n?"wrapper"+t:"wrapper",attrs:{role:"slider",tabindex:a.disabled?-1:0,"aria-valuemin":a.min,"aria-valuenow":a.value,"aria-valuemax":a.max,"aria-orientation":a.vertical?"vertical":"horizontal"},class:pl(n?"button-wrapper-"+e[t]:"button-wrapper"),on:{touchstart:function(){n&&(a.index=t)},click:function(t){return t.stopPropagation()}}},[a.slots("button")||o("div",{class:pl("button"),style:a.buttonStyle})])};return o("div",{style:h,class:pl({disabled:this.disabled,vertical:u}),on:{click:this.onClick}},[o("div",{class:pl("bar"),style:f},[this.range?[p(0),p(1)]:p()])])}}),vl=Object(A.b)("step"),yl=vl[0],Bl=vl[1],bl=yl({mixins:[Se("vanSteps")],computed:{status:function(){return this.index<this.parent.active?"finish":this.index===+this.parent.active?"process":void 0},active:function(){return"process"===this.status},lineStyle:function(){return"finish"===this.status?{background:this.parent.activeColor}:{background:this.parent.inactiveColor}},titleStyle:function(){return this.active?{color:this.parent.activeColor}:this.status?void 0:{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,e=this.parent,n=e.activeIcon,i=e.iconPrefix,r=e.activeColor,s=e.finishIcon,a=e.inactiveIcon;if(this.active)return this.slots("active-icon")||t(it,{class:Bl("icon","active"),attrs:{name:n,color:r,classPrefix:i}});var A=this.slots("finish-icon");if("finish"===this.status&&(s||A))return A||t(it,{class:Bl("icon","finish"),attrs:{name:s,color:r,classPrefix:i}});var o=this.slots("inactive-icon");return a||o?o||t(it,{class:Bl("icon"),attrs:{name:a,classPrefix:i}}):t("i",{class:Bl("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,e=arguments[0],n=this.status,i=this.active,r=this.parent.direction;return e("div",{class:[bt,Bl([r,(t={},t[n]=n,t)])]},[e("div",{class:Bl("title",{active:i}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),e("div",{class:Bl("circle-container"),on:{click:this.onClickStep}},[this.genCircle()]),e("div",{class:Bl("line"),style:this.lineStyle})])}}),wl=Object(A.b)("steps"),Cl=wl[0],_l=wl[1],Tl=Cl({mixins:[ke("vanSteps")],props:{iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:_l([this.direction])},[t("div",{class:_l("items")},[this.slots()])])}}),El=Object(A.b)("submit-bar"),Sl=El[0],kl=El[1],Ul=El[2];function Il(t,e,n,i){var r=e.tip,a=e.price,A=e.tipIcon;return t("div",s()([{class:kl({unfit:!e.safeAreaInsetBottom})},l(i)]),[n.top&&n.top(),function(){if(n.tip||r)return t("div",{class:kl("tip")},[A&&t(it,{class:kl("tip-icon"),attrs:{name:A}}),r&&t("span",{class:kl("tip-text")},[r]),n.tip&&n.tip()])}(),t("div",{class:kl("bar")},[n.default&&n.default(),function(){if("number"==typeof a){var n=(a/100).toFixed(e.decimalLength).split("."),i=e.decimalLength?"."+n[1]:"";return t("div",{style:{textAlign:e.textAlign?e.textAlign:""},class:kl("text")},[t("span",[e.label||Ul("label")]),t("span",{class:kl("price")},[e.currency,t("span",{class:kl("price","integer")},[n[0]]),i]),e.suffixLabel&&t("span",{class:kl("suffix-label")},[e.suffixLabel])])}}(),n.button?n.button():t(Te,{attrs:{round:!0,type:e.buttonType,text:e.loading?"":e.buttonText,color:e.buttonColor,loading:e.loading,disabled:e.disabled},class:kl("button",e.buttonType),on:{click:function(){c(i,"submit")}}})])])}Il.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"¥"},buttonType:{type:String,default:"danger"}};var Fl=Sl(Il),xl=Object(A.b)("swipe-cell"),Ql=xl[0],Ll=xl[1],Ol=Ql({mixins:[M,ws({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){return this.$refs[t]?this.$refs[t].getBoundingClientRect().width:0},open:function(t){var e="left"===t?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=e,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){this.disabled||(this.touchMove(t),"horizontal"===this.direction&&(this.dragging=!0,this.lockClick=!0,(!this.opened||this.deltaX*this.startOffset<0)&&y(t,this.stopPropagation),this.offset=Ut(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)))},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout(function(){t.lockClick=!1},0))},toggle:function(t){var e=Math.abs(this.offset),n=this.opened?.85:.15,i=this.computedLeftWidth,r=this.computedRightWidth;r&&"right"===t&&e>r*n?this.open("right"):i&&"left"===t&&e>i*n?this.open("left"):this.close()},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,e){var n=this;return function(i){e&&i.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,e=this.slots("left");if(e)return t("div",{ref:"left",class:Ll("left"),on:{click:this.getClickHandler("left",!0)}},[e])},genRightPart:function(){var t=this.$createElement,e=this.slots("right");if(e)return t("div",{ref:"right",class:Ll("right"),on:{click:this.getClickHandler("right",!0)}},[e])}},render:function(){var t=arguments[0],e={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:Ll(),on:{click:this.getClickHandler("cell")}},[t("div",{class:Ll("wrapper"),style:e},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),Dl=Object(A.b)("switch-cell"),Pl=Dl[0],Hl=Dl[1];function Rl(t,e,n,r){return t(te,s()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:Hl([e.cellSize])},l(r)]),[t(nn,{props:i({},e),on:i({},r.listeners)})])}Rl.props=i({},Ye,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var Ml=Pl(Rl),Nl=Object(A.b)("tabbar"),Kl=Nl[0],jl=Nl[1],Vl=Kl({mixins:[ke("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return null!==this.safeAreaInsetBottom?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.tabbar.getBoundingClientRect().height)},methods:{setActiveItem:function(){var t=this;this.children.forEach(function(e,n){e.active=(e.name||n)===t.value})},onChange:function(t){var e=this;t!==this.value&&pi({interceptor:this.beforeChange,args:[t],done:function(){e.$emit("input",t),e.$emit("change",t)}})},genTabbar:function(){var t;return(0,this.$createElement)("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[Et]=this.border,t),jl({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:jl("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),Gl=Object(A.b)("tabbar-item"),$l=Gl[0],Wl=Gl[1],zl=$l({mixins:[Se("vanTabbar")],props:i({},zt,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{active:!1}},computed:{routeActive:function(){var t=this.to,e=this.$route;if(t&&e){var n=Object(A.h)(t)?t:{path:t},i=n.path===e.path,r=Object(A.e)(n.name)&&n.name===e.name;return i||r}}},methods:{onClick:function(t){this.parent.onChange(this.name||this.index),this.$emit("click",t),$t(this.$router,this)},genIcon:function(t){var e=this.$createElement,n=this.slots("icon",{active:t});return n||(this.icon?e(it,{attrs:{name:this.icon,classPrefix:this.iconPrefix}}):void 0)}},render:function(){var t,e=arguments[0],n=this.parent.route?this.routeActive:this.active,i=this.parent[n?"activeColor":"inactiveColor"];return e("div",{class:Wl({active:n}),style:{color:i},on:{click:this.onClick}},[e("div",{class:Wl("icon")},[this.genIcon(n),e(Y,{attrs:{dot:this.dot,info:null!=(t=this.badge)?t:this.info}})]),e("div",{class:Wl("text")},[this.slots("default",{active:n})])])}}),Xl=Object(A.b)("tree-select"),ql=Xl[0],Yl=Xl[1];function Jl(t,e,n,i){var r=e.items,a=e.height,o=e.activeId,u=e.selectedIcon,h=e.mainActiveIndex;var d=(r[+h]||{}).children||[],f=Array.isArray(o);function p(t){return f?-1!==o.indexOf(t):o===t}var g=r.map(function(e){var n;return t(No,{attrs:{dot:e.dot,info:null!=(n=e.badge)?n:e.info,title:e.text,disabled:e.disabled},class:[Yl("nav-item"),e.className]})});return t("div",s()([{class:Yl(),style:{height:Object(A.a)(a)}},l(i)]),[t(Po,{class:Yl("nav"),attrs:{activeKey:h},on:{change:function(t){c(i,"update:main-active-index",t),c(i,"click-nav",t),c(i,"navclick",t)}}},[g]),t("div",{class:Yl("content")},[n.content?n.content():d.map(function(n){return t("div",{key:n.id,class:["van-ellipsis",Yl("item",{active:p(n.id),disabled:n.disabled})],on:{click:function(){if(!n.disabled){var t=n.id;if(f){var r=(t=o.slice()).indexOf(n.id);-1!==r?t.splice(r,1):t.length<e.max&&t.push(n.id)}c(i,"update:active-id",t),c(i,"click-item",n),c(i,"itemclick",n)}}}},[n.text,p(n.id)&&t(it,{attrs:{name:u},class:Yl("selected")})])})])])}Jl.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var Zl=ql(Jl);n.d(e,!1,function(){return mt}),n.d(e,!1,function(){return un}),n.d(e,!1,function(){return xn}),n.d(e,!1,function(){return Gt}),n.d(e,!1,function(){return Pn}),n.d(e,!1,function(){return Te}),n.d(e,!1,function(){return Zn}),n.d(e,!1,function(){return ui}),n.d(e,!1,function(){return Di}),n.d(e,!1,function(){return te}),n.d(e,!1,function(){return Ni}),n.d(e,!1,function(){return ji}),n.d(e,!1,function(){return Wi}),n.d(e,!1,function(){return Zi}),n.d(e,!1,function(){return ir}),n.d(e,!1,function(){return Ar}),n.d(e,!1,function(){return hr}),n.d(e,!1,function(){return vr}),n.d(e,!1,function(){return _r}),n.d(e,!1,function(){return Ir}),n.d(e,!1,function(){return Rr}),n.d(e,!1,function(){return $r}),n.d(e,!1,function(){return Jr}),n.d(e,!1,function(){return is}),n.d(e,!1,function(){return hs}),n.d(e,!1,function(){return Ve}),n.d(e,!1,function(){return ms}),n.d(e,!1,function(){return bs}),n.d(e,!1,function(){return Es}),n.d(e,!1,function(){return Qs}),n.d(e,!1,function(){return ae}),n.d(e,!1,function(){return Ps}),n.d(e,!1,function(){return Qe}),n.d(e,!1,function(){return Pe}),n.d(e,!1,function(){return Ns}),n.d(e,!1,function(){return Gs}),n.d(e,!1,function(){return Xs}),n.d(e,!1,function(){return it}),n.d(e,!1,function(){return ii}),n.d(e,!1,function(){return da}),n.d(e,!1,function(){return ma}),n.d(e,!1,function(){return ba}),n.d(e,!1,function(){return Y}),n.d(e,!1,function(){return Ca}),n.d(e,!1,function(){return ka}),n.d(e,!1,function(){return ht}),n.d(e,!1,function(){return Ua.a}),n.d(e,!1,function(){return Qa}),n.d(e,!1,function(){return Pa}),n.d(e,!1,function(){return $a}),n.d(e,!1,function(){return nA}),n.d(e,!1,function(){return T}),n.d(e,!1,function(){return oA}),n.d(e,!1,function(){return dA}),n.d(e,!1,function(){return vA}),n.d(e,!1,function(){return Nt}),n.d(e,!1,function(){return no}),n.d(e,!1,function(){return At}),n.d(e,!1,function(){return ao}),n.d(e,!1,function(){return ho}),n.d(e,!1,function(){return bn}),n.d(e,!1,function(){return dn}),n.d(e,!1,function(){return mo}),n.d(e,!1,function(){return bo}),n.d(e,!1,function(){return So}),n.d(e,!1,function(){return Qo}),n.d(e,!1,function(){return Po}),n.d(e,!1,function(){return No}),n.d(e,!1,function(){return zo}),n.d(e,!1,function(){return hl}),n.d(e,!1,function(){return ml}),n.d(e,!1,function(){return bl}),n.d(e,!1,function(){return Tu}),n.d(e,!1,function(){return Tl}),n.d(e,!1,function(){return Ci}),n.d(e,!1,function(){return Fl}),n.d(e,!1,function(){return na}),n.d(e,!1,function(){return Ol}),n.d(e,!1,function(){return aa}),n.d(e,!1,function(){return nn}),n.d(e,!1,function(){return Ml}),n.d(e,!1,function(){return di}),n.d(e,!1,function(){return Vl}),n.d(e,!1,function(){return zl}),n.d(e,!1,function(){return Fi}),n.d(e,!1,function(){return vn}),n.d(e,"a",function(){return Be}),n.d(e,!1,function(){return Zl}),n.d(e,!1,function(){return Mu});function tc(t){[mt,un,xn,Gt,Pn,Te,Zn,ui,Di,te,Ni,ji,Wi,Zi,ir,Ar,hr,vr,_r,Ir,Rr,$r,Jr,is,hs,Ve,ms,bs,Es,Qs,ae,Ps,Qe,Pe,Ns,Gs,Xs,it,ii,da,ma,ba,Y,ka,ht,Ua.a,Qa,Pa,$a,nA,T,oA,dA,vA,Nt,no,At,ao,ho,bn,dn,mo,bo,So,Qo,Po,No,zo,hl,ml,bl,Tu,Tl,Ci,Fl,na,Ol,aa,nn,Ml,di,Vl,zl,Fi,vn,Be,Zl,Mu].forEach(function(e){e.install?t.use(e):e.name&&t.component(e.name,e)})}"undefined"!=typeof window&&window.Vue&&tc(window.Vue);e.b={install:tc,version:"2.12.18"}},FeBl:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},FtD3:function(t,e,n){"use strict";var i=n("t8qj");t.exports=function(t,e,n,r,s){var a=new Error(t);return i(a,e,n,r,s)}},GHBc:function(t,e,n){"use strict";var i=n("cGG2");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},GlnR:function(t,e){var n=Math.pow(2,32);t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},r=12;0===i.version?(i.earliestPresentationTime=e.getUint32(r),i.firstOffset=e.getUint32(r+4),r+=8):(i.earliestPresentationTime=e.getUint32(r)*n+e.getUint32(r+4),i.firstOffset=e.getUint32(r+8)*n+e.getUint32(r+12),r+=16),r+=2;var s=e.getUint16(r);for(r+=2;s>0;r+=12,s--)i.references.push({referenceType:(128&t[r])>>>7,referencedSize:2147483647&e.getUint32(r),subsegmentDuration:e.getUint32(r+4),startsWithSap:!!(128&t[r+8]),sapType:(112&t[r+8])>>>4,sapDeltaTime:268435455&e.getUint32(r+8)});return i}},"I/+Z":function(t,e){t.exports=function(t,e){var n,i=null;try{n=JSON.parse(t,e)}catch(t){i=t}return[i,n]}},Ibhu:function(t,e,n){var i=n("D2L2"),r=n("TcQ7"),s=n("vFc/")(!1),a=n("ax3d")("IE_PROTO");t.exports=function(t,e){var n,A=r(t),o=0,u=[];for(n in A)n!=a&&i(A,n)&&u.push(n);for(;e.length>o;)i(A,n=e[o++])&&(~s(u,n)||u.push(n));return u}},"JP+z":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},KCLY:function(t,e,n){"use strict";(function(e){var i=n("cGG2"),r=n("5VQ+"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var A,o={adapter:("undefined"!=typeof XMLHttpRequest?A=n("7GwW"):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(A=n("7GwW")),A),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};o.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){o.headers[t]={}}),i.forEach(["post","put","patch"],function(t){o.headers[t]=i.merge(s)}),t.exports=o}).call(e,n("W2nU"))},L42u:function(t,e,n){var i,r,s,a=n("+ZMJ"),A=n("knuC"),o=n("RPLV"),u=n("ON07"),l=n("7KvD"),c=l.process,h=l.setImmediate,d=l.clearImmediate,f=l.MessageChannel,p=l.Dispatch,g=0,m={},v=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},y=function(t){v.call(t.data)};h&&d||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++g]=function(){A("function"==typeof t?t:Function(t),e)},i(g),g},d=function(t){delete m[t]},"process"==n("R9M2")(c)?i=function(t){c.nextTick(a(v,t,1))}:p&&p.now?i=function(t){p.now(a(v,t,1))}:f?(s=(r=new f).port2,r.port1.onmessage=y,i=a(s.postMessage,s,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(i=function(t){l.postMessage(t+"","*")},l.addEventListener("message",y,!1)):i="onreadystatechange"in u("script")?function(t){o.appendChild(u("script")).onreadystatechange=function(){o.removeChild(this),v.call(t)}}:function(t){setTimeout(a(v,t,1),0)}),t.exports={set:h,clear:d}},M1I4:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},M6a0:function(t,e){},MJLE:function(t,e,n){var i,r;r=function(){function t(t){this.mode=n.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,i=this.data.length;e<i;e++){var r=[],s=this.data.charCodeAt(e);s>65536?(r[0]=240|(1835008&s)>>>18,r[1]=128|(258048&s)>>>12,r[2]=128|(4032&s)>>>6,r[3]=128|63&s):s>2048?(r[0]=224|(61440&s)>>>12,r[1]=128|(4032&s)>>>6,r[2]=128|63&s):s>128?(r[0]=192|(1984&s)>>>6,r[1]=128|63&s):r[0]=s,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e<n;e++)t.put(this.parsedData[e],8)}},e.prototype={addData:function(e){var n=new t(e);this.dataList.push(n),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[i][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,n),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(this.modules[t+n][e+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=d.getLostPoint(this);(0==n||t>i)&&(t=i,e=n)}return e},createMovieClip:function(t,e,n){var i=t.createEmptyMovieClip(e,n);this.make();for(var r=0;r<this.modules.length;r++)for(var s=1*r,a=0;a<this.modules[r].length;a++){var A=1*a;this.modules[r][a]&&(i.beginFill(0,100),i.moveTo(A,s),i.lineTo(A+1,s),i.lineTo(A+1,s+1),i.lineTo(A,s+1),i.endFill())}return i},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=d.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var i=t[e],r=t[n];if(null==this.modules[i][r])for(var s=-2;s<=2;s++)for(var a=-2;a<=2;a++)this.modules[i+s][r+a]=-2==s||2==s||-2==a||2==a||0==s&&0==a}},setupTypeNumber:function(t){for(var e=d.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(n=0;n<18;n++){i=!t&&1==(e>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,i=d.getBCHTypeInfo(n),r=0;r<15;r++){var s=!t&&1==(i>>r&1);r<6?this.modules[r][8]=s:r<8?this.modules[r+1][8]=s:this.modules[this.moduleCount-15+r][8]=s}for(r=0;r<15;r++){s=!t&&1==(i>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=s:r<9?this.modules[8][15-r-1+1]=s:this.modules[8][15-r-1]=s}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,i=this.moduleCount-1,r=7,s=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var A=0;A<2;A++)if(null==this.modules[i][a-A]){var o=!1;s<t.length&&(o=1==(t[s]>>>r&1)),d.getMask(e,i,a-A)&&(o=!o),this.modules[i][a-A]=o,-1==--r&&(s++,r=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,n,i){for(var r=m.getRSBlocks(t,n),s=new v,a=0;a<i.length;a++){var A=i[a];s.put(A.mode,4),s.put(A.getLength(),d.getLengthInBits(A.mode,t)),A.write(s)}var o=0;for(a=0;a<r.length;a++)o+=r[a].dataCount;if(s.getLengthInBits()>8*o)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*o+")");for(s.getLengthInBits()+4<=8*o&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*o||(s.put(e.PAD0,8),s.getLengthInBits()>=8*o));)s.put(e.PAD1,8);return e.createBytes(s,r)},e.createBytes=function(t,e){for(var n=0,i=0,r=0,s=new Array(e.length),a=new Array(e.length),A=0;A<e.length;A++){var o=e[A].dataCount,u=e[A].totalCount-o;i=Math.max(i,o),r=Math.max(r,u),s[A]=new Array(o);for(var l=0;l<s[A].length;l++)s[A][l]=255&t.buffer[l+n];n+=o;var c=d.getErrorCorrectPolynomial(u),h=new g(s[A],c.getLength()-1).mod(c);a[A]=new Array(c.getLength()-1);for(l=0;l<a[A].length;l++){var f=l+h.getLength()-a[A].length;a[A][l]=f>=0?h.get(f):0}}var p=0;for(l=0;l<e.length;l++)p+=e[l].totalCount;var m=new Array(p),v=0;for(l=0;l<i;l++)for(A=0;A<e.length;A++)l<s[A].length&&(m[v++]=s[A][l]);for(l=0;l<r;l++)for(A=0;A<e.length;A++)l<a[A].length&&(m[v++]=a[A][l]);return m};for(var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},r={L:1,M:0,Q:3,H:2},s=0,a=1,A=2,o=3,u=4,l=5,c=6,h=7,d={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;d.getBCHDigit(e)-d.getBCHDigit(d.G15)>=0;)e^=d.G15<<d.getBCHDigit(e)-d.getBCHDigit(d.G15);return(t<<10|e)^d.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;d.getBCHDigit(e)-d.getBCHDigit(d.G18)>=0;)e^=d.G18<<d.getBCHDigit(e)-d.getBCHDigit(d.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return d.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case s:return(e+n)%2==0;case a:return e%2==0;case A:return n%3==0;case o:return(e+n)%3==0;case u:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case l:return e*n%2+e*n%3==0;case c:return(e*n%2+e*n%3)%2==0;case h:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new g([1],0),n=0;n<t;n++)e=e.multiply(new g([1,f.gexp(n)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,i=0;i<e;i++)for(var r=0;r<e;r++){for(var s=0,a=t.isDark(i,r),A=-1;A<=1;A++)if(!(i+A<0||e<=i+A))for(var o=-1;o<=1;o++)r+o<0||e<=r+o||0==A&&0==o||a==t.isDark(i+A,r+o)&&s++;s>5&&(n+=3+s-5)}for(i=0;i<e-1;i++)for(r=0;r<e-1;r++){var u=0;t.isDark(i,r)&&u++,t.isDark(i+1,r)&&u++,t.isDark(i,r+1)&&u++,t.isDark(i+1,r+1)&&u++,0!=u&&4!=u||(n+=3)}for(i=0;i<e;i++)for(r=0;r<e-6;r++)t.isDark(i,r)&&!t.isDark(i,r+1)&&t.isDark(i,r+2)&&t.isDark(i,r+3)&&t.isDark(i,r+4)&&!t.isDark(i,r+5)&&t.isDark(i,r+6)&&(n+=40);for(r=0;r<e;r++)for(i=0;i<e-6;i++)t.isDark(i,r)&&!t.isDark(i+1,r)&&t.isDark(i+2,r)&&t.isDark(i+3,r)&&t.isDark(i+4,r)&&!t.isDark(i+5,r)&&t.isDark(i+6,r)&&(n+=40);var l=0;for(r=0;r<e;r++)for(i=0;i<e;i++)t.isDark(i,r)&&l++;return n+=10*(Math.abs(100*l/e/e-50)/5)}},f={glog:function(t){if(t<1)throw new Error("glog("+t+")");return f.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return f.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},p=0;p<8;p++)f.EXP_TABLE[p]=1<<p;for(p=8;p<256;p++)f.EXP_TABLE[p]=f.EXP_TABLE[p-4]^f.EXP_TABLE[p-5]^f.EXP_TABLE[p-6]^f.EXP_TABLE[p-8];for(p=0;p<255;p++)f.LOG_TABLE[f.EXP_TABLE[p]]=p;function g(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&0==t[n];)n++;this.num=new Array(t.length-n+e);for(var i=0;i<t.length-n;i++)this.num[i]=t[i+n]}function m(t,e){this.totalCount=t,this.dataCount=e}function v(){this.buffer=[],this.length=0}g.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<t.getLength();i++)e[n+i]^=f.gexp(f.glog(this.get(n))+f.glog(t.get(i)));return new g(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=f.glog(this.get(0))-f.glog(t.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<t.getLength();i++)n[i]^=f.gexp(f.glog(t.get(i))+e);return new g(n,0).mod(t)}},m.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],m.getRSBlocks=function(t,e){var n=m.getRsBlockTable(t,e);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var i=n.length/3,r=[],s=0;s<i;s++)for(var a=n[3*s+0],A=n[3*s+1],o=n[3*s+2],u=0;u<a;u++)r.push(new m(A,o));return r},m.getRsBlockTable=function(t,e){switch(e){case r.L:return m.RS_BLOCK_TABLE[4*(t-1)+0];case r.M:return m.RS_BLOCK_TABLE[4*(t-1)+1];case r.Q:return m.RS_BLOCK_TABLE[4*(t-1)+2];case r.H:return m.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},v.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var y=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function B(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var n=e.toString().match(/android ([0-9]\.[0-9])/i);n&&n[1]&&(t=parseFloat(n[1]))}return t}var b=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){var e=this._htOption,n=this._el,i=t.getModuleCount();Math.floor(e.width/i),Math.floor(e.height/i);function r(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg",t);for(var i in e)e.hasOwnProperty(i)&&n.setAttribute(i,e[i]);return n}this.clear();var s=r("svg",{viewBox:"0 0 "+String(i)+" "+String(i),width:"100%",height:"100%",fill:e.colorLight});s.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.appendChild(s),s.appendChild(r("rect",{fill:e.colorLight,width:"100%",height:"100%"})),s.appendChild(r("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<i;a++)for(var A=0;A<i;A++)if(t.isDark(a,A)){var o=r("use",{x:String(A),y:String(a)});o.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),s.appendChild(o)}},t.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},t}(),w="svg"===document.documentElement.tagName.toLowerCase()?b:"undefined"==typeof CanvasRenderingContext2D?function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){for(var e=this._htOption,n=this._el,i=t.getModuleCount(),r=Math.floor(e.width/i),s=Math.floor(e.height/i),a=['<table style="border:0;border-collapse:collapse;">'],A=0;A<i;A++){a.push("<tr>");for(var o=0;o<i;o++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+s+"px;background-color:"+(t.isDark(A,o)?e.colorDark:e.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),n.innerHTML=a.join("");var u=n.childNodes[0],l=(e.width-u.offsetWidth)/2,c=(e.height-u.offsetHeight)/2;l>0&&c>0&&(u.style.margin=c+"px "+l+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}():function(){function t(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this._android&&this._android<=2.1){var e=1/window.devicePixelRatio,n=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(t,i,r,s,a,A,o,u,l){if("nodeName"in t&&/img/i.test(t.nodeName))for(var c=arguments.length-1;c>=1;c--)arguments[c]=arguments[c]*e;else void 0===u&&(arguments[1]*=e,arguments[2]*=e,arguments[3]*=e,arguments[4]*=e);n.apply(this,arguments)}}var i=function(t,e){this._bIsPainted=!1,this._android=B(),this._htOption=e,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=e.width,this._elCanvas.height=e.height,t.appendChild(this._elCanvas),this._el=t,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return i.prototype.draw=function(t){var e=this._elImage,n=this._oContext,i=this._htOption,r=t.getModuleCount(),s=i.width/r,a=i.height/r,A=Math.round(s),o=Math.round(a);e.style.display="none",this.clear();for(var u=0;u<r;u++)for(var l=0;l<r;l++){var c=t.isDark(u,l),h=l*s,d=u*a;n.strokeStyle=c?i.colorDark:i.colorLight,n.lineWidth=1,n.fillStyle=c?i.colorDark:i.colorLight,n.fillRect(h,d,s,a),n.strokeRect(Math.floor(h)+.5,Math.floor(d)+.5,A,o),n.strokeRect(Math.ceil(h)-.5,Math.ceil(d)-.5,A,o)}this._bIsPainted=!0},i.prototype.makeImage=function(){this._bIsPainted&&function(t,e){var n=this;if(n._fFail=e,n._fSuccess=t,null===n._bSupportDataURI){var i=document.createElement("img"),r=function(){n._bSupportDataURI=!1,n._fFail&&n._fFail.call(n)};return i.onabort=r,i.onerror=r,i.onload=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)},void(i.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===n._bSupportDataURI&&n._fSuccess?n._fSuccess.call(n):!1===n._bSupportDataURI&&n._fFail&&n._fFail.call(n)}.call(this,t)},i.prototype.isPainted=function(){return this._bIsPainted},i.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},i.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},i}();function C(t,e){for(var n=1,i=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),s=0,a=y.length;s<=a;s++){var A=0;switch(e){case r.L:A=y[s][0];break;case r.M:A=y[s][1];break;case r.Q:A=y[s][2];break;case r.H:A=y[s][3]}if(i<=A)break;n++}if(n>y.length)throw new Error("Too long data");return n}return(i=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:r.H},"string"==typeof e&&(e={text:e}),e)for(var n in e)this._htOption[n]=e[n];"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(w=b),this._android=B(),this._el=t,this._oQRCode=null,this._oDrawing=new w(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)}).prototype.makeCode=function(t){this._oQRCode=new e(C(t,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage()},i.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},i.prototype.clear=function(){this._oDrawing.clear()},i.CorrectLevel=r,i},t.exports=r()},MU5D:function(t,e,n){var i=n("R9M2");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},Mctu:function(t,e,n){function i(t){this.options=t||{locator:{}}}function r(){this.cdata=!1}function s(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function a(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function A(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function o(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}i.prototype.parseFromString=function(t,e){var n=this.options,i=new c,s=n.domBuilder||new r,A=n.errorHandler,o=n.locator,l=n.xmlns||{},h=/\/x?html?$/.test(e),d=h?u.entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return o&&s.setDocumentLocator(o),i.errorHandler=function(t,e,n){if(!t){if(e instanceof r)return e;t=e}var i={},s=t instanceof Function;function A(e){var r=t[e];!r&&s&&(r=2==t.length?function(n){t(e,n)}:t),i[e]=r&&function(t){r("[xmldom "+e+"]\t"+t+a(n))}||function(){}}return n=n||{},A("warning"),A("error"),A("fatalError"),i}(A,s,o),i.domBuilder=n.domBuilder||s,h&&(l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",t&&"string"==typeof t?i.parse(t,l,d):i.errorHandler.error("invalid doc source"),s.doc},r.prototype={startDocument:function(){this.doc=(new d).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,i){var r=this.doc,a=r.createElementNS(t,n||e),A=i.length;o(this,a),this.currentElement=a,this.locator&&s(this.locator,a);for(var u=0;u<A;u++){t=i.getURI(u);var l=i.getValue(u),c=(n=i.getQName(u),r.createAttributeNS(t,n));this.locator&&s(i.getLocator(u),c),c.value=c.nodeValue=l,a.setAttributeNode(c)}},endElement:function(t,e,n){var i=this.currentElement;i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&s(this.locator,n),o(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=A.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(t);else i=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(t)&&this.doc.appendChild(i),this.locator&&s(this.locator,i)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=A.apply(this,arguments);var i=this.doc.createComment(t);this.locator&&s(this.locator,i),o(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(t,e,n);this.locator&&s(this.locator,r),o(this,r)}},warning:function(t){console.warn("[xmldom warning]\t"+t,a(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,a(this.locator))},fatalError:function(t){throw new h(t,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){r.prototype[t]=function(){return null}});var u=n("2IcF"),l=n("UJiq"),c=l.XMLReader,h=l.ParseError,d=e.DOMImplementation=n("c/bS").DOMImplementation;e.XMLSerializer=n("c/bS").XMLSerializer,e.DOMParser=i,e.__DOMHandler=r},Mhyx:function(t,e,n){var i=n("/bQp"),r=n("dSzd")("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[r]===t)}},MmMw:function(t,e,n){var i=n("EqjI");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"NWt+":function(t,e,n){var i=n("+ZMJ"),r=n("msXi"),s=n("Mhyx"),a=n("77Pl"),A=n("QRG4"),o=n("3fs2"),u={},l={};(e=t.exports=function(t,e,n,c,h){var d,f,p,g,m=h?function(){return t}:o(t),v=i(n,c,e?2:1),y=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(s(m)){for(d=A(t.length);d>y;y++)if((g=e?v(a(f=t[y])[0],f[1]):v(t[y]))===u||g===l)return g}else for(p=m.call(t);!(f=p.next()).done;)if((g=r(p,v,f.value,e))===u||g===l)return g}).BREAK=u,e.RETURN=l},O4g8:function(t,e){t.exports=!0},ON07:function(t,e,n){var i=n("EqjI"),r=n("7KvD").document,s=i(r)&&i(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},OWA6:function(t,e,n){"use strict";var i=n("awF4"),r=n("lt8z"),s=n("Rl2i"),a=function(t){var e={};return t?(t.trim().split("\n").forEach(function(t){var n=t.indexOf(":"),i=t.slice(0,n).trim().toLowerCase(),r=t.slice(n+1).trim();void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}),e):e};function A(t,e,n){var i=t;return s(e)?(n=e,"string"==typeof t&&(i={uri:t})):i=r({},e,{uri:t}),i.callback=n,i}function o(t,e,n){return u(e=A(t,e,n))}function u(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,i,r){e||(e=!0,t.callback(n,i,r))};function i(t){return clearTimeout(l),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,m)}function r(){if(!A){var e;clearTimeout(l),e=t.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var i=m,r=null;return 0!==e?(i={body:function(){var t=void 0;if(t=u.response?u.response:u.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(u),g)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:h,headers:{},url:c,rawRequest:u},u.getAllResponseHeaders&&(i.headers=a(u.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),n(r,i,i.body)}}var s,A,u=t.xhr||null;u||(u=t.cors||t.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var l,c=u.url=t.uri||t.url,h=u.method=t.method||"GET",d=t.body||t.data,f=u.headers=t.headers||{},p=!!t.sync,g=!1,m={body:void 0,headers:{},statusCode:0,method:h,url:c,rawRequest:u};if("json"in t&&!1!==t.json&&(g=!0,f.accept||f.Accept||(f.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),d=JSON.stringify(!0===t.json?d:t.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(r,0)},u.onload=r,u.onerror=i,u.onprogress=function(){},u.onabort=function(){A=!0},u.ontimeout=i,u.open(h,c,!p,t.username,t.password),p||(u.withCredentials=!!t.withCredentials),!p&&t.timeout>0&&(l=setTimeout(function(){if(!A){A=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}},t.timeout)),u.setRequestHeader)for(s in f)f.hasOwnProperty(s)&&u.setRequestHeader(s,f[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(u),u.send(d||null),u}t.exports=o,t.exports.default=o,o.XMLHttpRequest=i.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:i.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(t){o["delete"===t?"del":t]=function(e,n,i){return(n=A(e,n,i)).method=t.toUpperCase(),u(n)}})},"Oi+a":function(t,e,n){"use strict";var i=n("dIwP"),r=n("qRfI");t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},PzxK:function(t,e,n){var i=n("D2L2"),r=n("sB3e"),s=n("ax3d")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},QRG4:function(t,e,n){var i=n("UuGF"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},R9M2:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},RPLV:function(t,e,n){var i=n("7KvD").document;t.exports=i&&i.documentElement},"RY/4":function(t,e,n){var i=n("R9M2"),r=n("dSzd")("toStringTag"),s="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:s?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},Rl2i:function(t,e){t.exports=function(t){if(!t)return!1;var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},S06l:function(t,e,n){"use strict";var i=n("7+uW"),r=n("o69Z"),s=Object.prototype.hasOwnProperty;function a(t,e){return Object.keys(e).forEach(function(n){!function(t,e,n){var i=e[n];Object(r.e)(i)&&(s.call(t,n)&&Object(r.h)(i)?t[n]=a(Object(t[n]),e[n]):t[n]=i)}(t,e,n)}),t}var A=i.a.prototype,o=i.a.util.defineReactive;o(A,"$vantLang","zh-CN"),o(A,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});e.a={messages:function(){return A.$vantMessages[A.$vantLang]},use:function(t,e){var n;A.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),a(A.$vantMessages,t)}}},S82l:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},SLDG:function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},SfB7:function(t,e,n){t.exports=!n("+E39")&&!n("S82l")(function(){return 7!=Object.defineProperty(n("ON07")("div"),"a",{get:function(){return 7}}).a})},TNV1:function(t,e,n){"use strict";var i=n("cGG2");t.exports=function(t,e,n){return i.forEach(n,function(n){t=n(t,e)}),t}},TcQ7:function(t,e,n){var i=n("MU5D"),r=n("52gC");t.exports=function(t){return i(r(t))}},U5ju:function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),t.exports=n("FeBl").Promise},UJiq:function(t,e){var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,i=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),r=new RegExp("^"+n.source+i.source+"*(?::"+n.source+i.source+"*)?$"),s=0,a=1,A=2,o=3,u=4,l=5,c=6,h=7;function d(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,d)}function f(){}function p(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function g(t,e,n,i,r,d){function f(t,e,i){t in n.attributeNames&&d.fatalError("Attribute "+t+" redefined"),n.addValue(t,e,i)}for(var p,g=++e,m=s;;){var v=t.charAt(g);switch(v){case"=":if(m===a)p=t.slice(e,g),m=o;else{if(m!==A)throw new Error("attribute equal must after attrName");m=o}break;case"'":case'"':if(m===o||m===a){if(m===a&&(d.warning('attribute value must after "="'),p=t.slice(e,g)),e=g+1,!((g=t.indexOf(v,e))>0))throw new Error("attribute value no end '"+v+"' match");f(p,y=t.slice(e,g).replace(/&#?\w+;/g,r),e-1),m=l}else{if(m!=u)throw new Error('attribute value must after "="');f(p,y=t.slice(e,g).replace(/&#?\w+;/g,r),e),d.warning('attribute "'+p+'" missed start quot('+v+")!!"),e=g+1,m=l}break;case"/":switch(m){case s:n.setTagName(t.slice(e,g));case l:case c:case h:m=h,n.closed=!0;case u:case a:case A:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return d.error("unexpected end of input"),m==s&&n.setTagName(t.slice(e,g)),g;case">":switch(m){case s:n.setTagName(t.slice(e,g));case l:case c:case h:break;case u:case a:"/"===(y=t.slice(e,g)).slice(-1)&&(n.closed=!0,y=y.slice(0,-1));case A:m===A&&(y=p),m==u?(d.warning('attribute "'+y+'" missed quot(")!'),f(p,y.replace(/&#?\w+;/g,r),e)):("http://www.w3.org/1999/xhtml"===i[""]&&y.match(/^(?:disabled|checked|selected)$/i)||d.warning('attribute "'+y+'" missed value!! "'+y+'" instead!!'),f(y,y,e));break;case o:throw new Error("attribute value missed!!")}return g;case"":v=" ";default:if(v<=" ")switch(m){case s:n.setTagName(t.slice(e,g)),m=c;break;case a:p=t.slice(e,g),m=A;break;case u:var y=t.slice(e,g).replace(/&#?\w+;/g,r);d.warning('attribute "'+y+'" missed quot(")!!'),f(p,y,e);case l:m=c}else switch(m){case A:n.tagName;"http://www.w3.org/1999/xhtml"===i[""]&&p.match(/^(?:disabled|checked|selected)$/i)||d.warning('attribute "'+p+'" missed value!! "'+p+'" instead2!!'),f(p,p,e),e=g,m=a;break;case l:d.warning('attribute space is required"'+p+'"!!');case c:m=a,e=g;break;case o:m=u,e=g;break;case h:throw new Error("elements closed character '/' and '>' must be connected to")}}g++}}function m(t,e,n){for(var i=t.tagName,r=null,s=t.length;s--;){var a=t[s],A=a.qName,o=a.value;if((h=A.indexOf(":"))>0)var u=a.prefix=A.slice(0,h),l=A.slice(h+1),c="xmlns"===u&&l;else l=A,u=null,c="xmlns"===A&&"";a.localName=l,!1!==c&&(null==r&&(r={},B(n,n={})),n[c]=r[c]=o,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(c,o))}for(s=t.length;s--;){(u=(a=t[s]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]))}var h;(h=i.indexOf(":"))>0?(u=t.prefix=i.slice(0,h),l=t.localName=i.slice(h+1)):(u=null,l=t.localName=i);var d=t.uri=n[u||""];if(e.startElement(d,l,i,t),!t.closed)return t.currentNSMap=n,t.localNSMap=r,!0;if(e.endElement(d,l,i),r)for(u in r)e.endPrefixMapping(u)}function v(t,e,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var s=t.indexOf("</"+n+">",e),a=t.substring(e+1,s);if(/[&<]/.test(a))return/^script$/i.test(n)?(r.characters(a,0,a.length),s):(a=a.replace(/&#?\w+;/g,i),r.characters(a,0,a.length),s)}return e+1}function y(t,e,n,i){var r=i[n];return null==r&&((r=t.lastIndexOf("</"+n+">"))<e&&(r=t.lastIndexOf("</"+n)),i[n]=r),r<e}function B(t,e){for(var n in t)e[n]=t[n]}function b(t,e,n,i){switch(t.charAt(e+2)){case"-":return"-"===t.charAt(e+3)?(r=t.indexOf("--\x3e",e+4))>e?(n.comment(t,e+4,r-e-4),r+3):(i.error("Unclosed comment"),-1):-1;default:if("CDATA["==t.substr(e+3,6)){var r=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,r-e-9),n.endCDATA(),r+3}var s=function(t,e){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=e,r.exec(t);for(;n=r.exec(t);)if(i.push(n),n[1])return i}(t,e),a=s.length;if(a>1&&/!doctype/i.test(s[0][0])){var A=s[1][0],o=!1,u=!1;a>3&&(/^public$/i.test(s[2][0])?(o=s[3][0],u=a>4&&s[4][0]):/^system$/i.test(s[2][0])&&(u=s[3][0]));var l=s[a-1];return n.startDTD(A,o,u),n.endDTD(),l.index+l[0].length}}return-1}function w(t,e,n){var i=t.indexOf("?>",e);if(i){var r=t.substring(e,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return n.processingInstruction(r[1],r[2]),i+2}return-1}return-1}function C(){this.attributeNames={}}d.prototype=new Error,d.prototype.name=d.name,f.prototype={parse:function(t,e,n){var i=this.domBuilder;i.startDocument(),B(e,e={}),function(t,e,n,i,r){function s(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(r.error("entity not found:"+t),t)}function a(e){if(e>B){var n=t.substring(B,e).replace(/&#?\w+;/g,s);c&&A(B),i.characters(n,0,e-B),B=e}}function A(e,n){for(;e>=u&&(n=l.exec(t));)o=n.index,u=o+n[0].length,c.lineNumber++;c.columnNumber=e-o+1}var o=0,u=0,l=/.*(?:\r\n?|\n)|.*$/g,c=i.locator,h=[{currentNSMap:e}],f={},B=0;for(;;){try{var _=t.indexOf("<",B);if(_<0){if(!t.substr(B).match(/^\s*$/)){var T=i.doc,E=T.createTextNode(t.substr(B));T.appendChild(E),i.currentElement=E}return}switch(_>B&&a(_),t.charAt(_+1)){case"/":var S=t.indexOf(">",_+3),k=t.substring(_+2,S),U=h.pop();S<0?(k=t.substring(_+2).replace(/[\s<].*/,""),r.error("end tag name: "+k+" is not complete:"+U.tagName),S=_+1+k.length):k.match(/\s</)&&(k=k.replace(/[\s<].*/,""),r.error("end tag name: "+k+" maybe not complete"),S=_+1+k.length);var I=U.localNSMap,F=U.tagName==k,x=F||U.tagName&&U.tagName.toLowerCase()==k.toLowerCase();if(x){if(i.endElement(U.uri,U.localName,k),I)for(var Q in I)i.endPrefixMapping(Q);F||r.fatalError("end tag name: "+k+" is not match the current start tagName:"+U.tagName)}else h.push(U);S++;break;case"?":c&&A(_),S=w(t,_,i);break;case"!":c&&A(_),S=b(t,_,i,r);break;default:c&&A(_);var L=new C,O=h[h.length-1].currentNSMap,S=g(t,_,L,O,s,r),D=L.length;if(!L.closed&&y(t,S,L.tagName,f)&&(L.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),c&&D){for(var P=p(c,{}),H=0;H<D;H++){var R=L[H];A(R.offset),R.locator=p(c,{})}i.locator=P,m(L,i,O)&&h.push(L),i.locator=c}else m(L,i,O)&&h.push(L);"http://www.w3.org/1999/xhtml"!==L.uri||L.closed?S++:S=v(t,S,L.tagName,s,i)}}catch(t){if(t instanceof d)throw t;r.error("element parse error: "+t),S=-1}S>B?B=S:a(Math.max(_,B)+1)}}(t,e,n,i,this.errorHandler),i.endDocument()}},C.prototype={setTagName:function(t){if(!r.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!r.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=f,e.ParseError=d},UuGF:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"VU/8":function(t,e){t.exports=function(t,e,n,i,r,s){var a,A=t=t||{},o=typeof t.default;"object"!==o&&"function"!==o||(a=t,A=t.default);var u,l="function"==typeof A?A.options:A;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId=r),s?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):i&&(u=i),u){var c=l.functional,h=c?l.render:l.beforeCreate;c?(l._injectStyles=u,l.render=function(t,e){return u.call(e),h(t,e)}):l.beforeCreate=h?[].concat(h,u):[u]}return{esModule:a,exports:A,options:l}}},W1rN:function(t,e,n){var i;i=function(){return e={134:function(t,e,n){"use strict";n.d(e,{default:function(){return f}});e=n(279);var i=n.n(e),r=(e=n(370),n.n(e)),s=(e=n(817),n.n(e));function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=function(){function t(e){!function(e){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(e),this.initSelection()}var e,n;return e=t,(n=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px",t=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=s()(e),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=s()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==a(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}])&&A(e.prototype,n),t}();function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){if(t="data-clipboard-".concat(t),e.hasAttribute(t))return e.getAttribute(t)}var f=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,i());var t,e,n,s=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,i=h(t);return n=e?(n=h(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),i=this,!(n=n)||"object"!==u(n)&&"function"!=typeof n?function(t){if(void 0!==i)return i;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}():n}}(a);function a(t,e){var n;return function(t){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this),(n=s.call(this)).resolveOptions(e),n.listenClick(t),n}return t=a,n=[{key:"isSupported",value:function(){var t="string"==typeof(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[t]:t,e=!!document.queryCommandSupported;return t.forEach(function(t){e=e&&!!document.queryCommandSupported(t)}),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===u(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=r()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){t=t.delegateTarget||t.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(t){return d("action",t)}},{key:"defaultTarget",value:function(t){if(t=d("target",t))return document.querySelector(t)}},{key:"defaultText",value:function(t){return d("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&l(t.prototype,e),n&&l(t,n),a}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var i=n(828);function r(t,e,n,r,s){var a=function(t,e,n,r){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&r.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,a,s),{destroy:function(){t.removeEventListener(n,a,s)}}}t.exports=function(t,e,n,i,s){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return r(t,e,n,i,s)}))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var i=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(t))return u=e,l=n,(o=t).addEventListener(u,l),{destroy:function(){o.removeEventListener(u,l)}};if(i.nodeList(t))return s=t,a=e,A=n,Array.prototype.forEach.call(s,function(t){t.addEventListener(a,A)}),{destroy:function(){Array.prototype.forEach.call(s,function(t){t.removeEventListener(a,A)})}};if(i.string(t))return t=t,e=e,n=n,r(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var s,a,A,o,u,l}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function r(){i.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var s=0,a=i.length;s<a;s++)i[s].fn!==e&&i[s].fn._!==e&&r.push(i[s]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t(134).default;function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{}};return e[i](r,r.exports,t),r.exports}var e,n},t.exports=i()},W2nU:function(t,e){var n,i,r=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function A(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var o,u=[],l=!1,c=-1;function h(){l&&o&&(l=!1,o.length?u=o.concat(u):c=-1,u.length&&d())}function d(){if(!l){var t=A(h);l=!0;for(var e=u.length;e;){for(o=u,u=[];++c<e;)o&&o[c].run();c=-1,e=u.length}o=null,l=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new f(t,e)),1!==u.length||l||A(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},X8DO:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},XmWM:function(t,e,n){"use strict";var i=n("cGG2"),r=n("DQCr"),s=n("fuGk"),a=n("xLtR"),A=n("DUeU");function o(t){this.defaults=t,this.interceptors={request:new s,response:new s}}o.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=A(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},o.prototype.getUri=function(t){return t=A(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],function(t){o.prototype[t]=function(e,n){return this.request(A(n||{},{method:t,url:e,data:(n||{}).data}))}}),i.forEach(["post","put","patch"],function(t){o.prototype[t]=function(e,n,i){return this.request(A(i||{},{method:t,url:e,data:n}))}}),t.exports=o},YNA3:function(t,e,n){"use strict";e.a=function(t){return t.replace(i,function(t,e){return e.toUpperCase()})},e.b=function(t,e){void 0===e&&(e=2);var n=t+"";for(;n.length<e;)n="0"+n;return n};var i=/-(\w)/g},Yobk:function(t,e,n){var i=n("77Pl"),r=n("qio6"),s=n("xnc9"),a=n("ax3d")("IE_PROTO"),A=function(){},o=function(){var t,e=n("ON07")("iframe"),i=s.length;for(e.style.display="none",n("RPLV").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),o=t.F;i--;)delete o.prototype[s[i]];return o()};t.exports=Object.create||function(t,e){var n;return null!==t?(A.prototype=i(t),n=new A,A.prototype=null,n[a]=t):n=o(),void 0===e?n:r(n,e)}},YqKu:function(t,e,n){!function(){function e(t){t.directive("wechat-title",function(t,e){!function(t,e){if(void 0!==t&&window.document.title!==t){document.title=t;var n=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(n)){var i=document.createElement("iframe");i.style.display="none";var r=/alipay/.test(n)?e:e||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";r&&i.setAttribute("src",r);var s=function(){setTimeout(function(){i.removeEventListener("load",s),document.body.removeChild(i)},0)};i.addEventListener("load",s),document.body.appendChild(i)}}}(e.value,t.getAttribute("img-set")||null)})}t.exports=e}()},aj7g:function(t,e){var n="auto",i={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function s(t){return"string"==typeof t&&(!!r[t.toLowerCase()]&&t.toLowerCase())}function a(t,e,r){this.hasBeenReset=!1;var a="",A=!1,o=t,u=e,l=r,c=null,h="",d=!0,f="auto",p="start",g="auto",m="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(t){a=""+t}},pauseOnExit:{enumerable:!0,get:function(){return A},set:function(t){A=!!t}},startTime:{enumerable:!0,get:function(){return o},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");o=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");u=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(t){l=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(t){c=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(t){var e=function(t){return"string"==typeof t&&!!i[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(t){d=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(t){if("number"!=typeof t&&t!==n)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return p},set:function(t){var e=s(t);e?(p=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");g=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(t){var e=s(t);e?(m=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=s(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}a.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=a},awF4:function(t,e,n){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(e,n("DuR2"))},ax3d:function(t,e,n){var i=n("e8AB")("keys"),r=n("3Eo+");t.exports=function(t){return i[t]||(i[t]=r(t))}},bRrM:function(t,e,n){"use strict";var i=n("7KvD"),r=n("FeBl"),s=n("evD5"),a=n("+E39"),A=n("dSzd")("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];a&&e&&!e[A]&&s.f(e,A,{configurable:!0,get:function(){return this}})}},"c/bS":function(t,e){function n(t,e){for(var n in t)e[n]=t[n]}function i(t,e){var i=t.prototype;if(!(i instanceof e)){function r(){}r.prototype=e.prototype,n(i,r=new r),t.prototype=i=r}i.constructor!=t&&("function"!=typeof t&&console.error("unknow Class:"+t),i.constructor=t)}var r="http://www.w3.org/1999/xhtml",s={},a=s.ELEMENT_NODE=1,A=s.ATTRIBUTE_NODE=2,o=s.TEXT_NODE=3,u=s.CDATA_SECTION_NODE=4,l=s.ENTITY_REFERENCE_NODE=5,c=s.ENTITY_NODE=6,h=s.PROCESSING_INSTRUCTION_NODE=7,d=s.COMMENT_NODE=8,f=s.DOCUMENT_NODE=9,p=s.DOCUMENT_TYPE_NODE=10,g=s.DOCUMENT_FRAGMENT_NODE=11,m=s.NOTATION_NODE=12,v={},y={},B=(v.INDEX_SIZE_ERR=(y[1]="Index size error",1),v.DOMSTRING_SIZE_ERR=(y[2]="DOMString size error",2),v.HIERARCHY_REQUEST_ERR=(y[3]="Hierarchy request error",3)),b=(v.WRONG_DOCUMENT_ERR=(y[4]="Wrong document",4),v.INVALID_CHARACTER_ERR=(y[5]="Invalid character",5),v.NO_DATA_ALLOWED_ERR=(y[6]="No data allowed",6),v.NO_MODIFICATION_ALLOWED_ERR=(y[7]="No modification allowed",7),v.NOT_FOUND_ERR=(y[8]="Not found",8)),w=(v.NOT_SUPPORTED_ERR=(y[9]="Not supported",9),v.INUSE_ATTRIBUTE_ERR=(y[10]="Attribute in use",10));v.INVALID_STATE_ERR=(y[11]="Invalid state",11),v.SYNTAX_ERR=(y[12]="Syntax error",12),v.INVALID_MODIFICATION_ERR=(y[13]="Invalid modification",13),v.NAMESPACE_ERR=(y[14]="Invalid namespace",14),v.INVALID_ACCESS_ERR=(y[15]="Invalid access",15);function C(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,y[t]),this.message=y[t],Error.captureStackTrace&&Error.captureStackTrace(this,C);return n.code=t,e&&(this.message=this.message+": "+e),n}function _(){}function T(t,e){this._node=t,this._refresh=e,E(this)}function E(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var i=t._refresh(t._node);nt(t,"length",i.length),n(i,t),t._inc=e}}function S(){}function k(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function U(t,e,n,i){if(i?e[k(e,i)]=n:e[e.length++]=n,t){n.ownerElement=t;var r=t.ownerDocument;r&&(i&&D(r,t,i),function(t,e,n){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(e._nsMap[n.prefix?n.localName:""]=n.value)}(r,t,n))}}function I(t,e,n){var i=k(e,n);if(!(i>=0))throw C(b,new Error(t.tagName+"@"+n));for(var r=e.length-1;i<r;)e[i]=e[++i];if(e.length=r,t){var s=t.ownerDocument;s&&(D(s,t,n),n.ownerElement=null)}}function F(t){if(this._features={},t)for(var e in t)this._features=t[e]}function x(){}function Q(t){return("<"==t?"<":">"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function L(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(L(t,e))return!0}while(t=t.nextSibling)}function O(){}function D(t,e,n,i){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function P(t,e,n){if(t&&t._inc){t._inc++;var i=e.childNodes;if(n)i[i.length++]=n;else{for(var r=e.firstChild,s=0;r;)i[s++]=r,r=r.nextSibling;i.length=s}}}function H(t,e){var n=e.previousSibling,i=e.nextSibling;return n?n.nextSibling=i:t.firstChild=i,i?i.previousSibling=n:t.lastChild=n,P(t.ownerDocument,t),e}function R(t,e,n){var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===g){var r=e.firstChild;if(null==r)return e;var s=e.lastChild}else r=s=e;var a=n?n.previousSibling:t.lastChild;r.previousSibling=a,s.nextSibling=n,a?a.nextSibling=r:t.firstChild=r,null==n?t.lastChild=s:n.previousSibling=s;do{r.parentNode=t}while(r!==s&&(r=r.nextSibling));return P(t.ownerDocument||t,t),e.nodeType==g&&(e.firstChild=e.lastChild=null),e}function M(){this._nsMap={}}function N(){}function K(){}function j(){}function V(){}function G(){}function $(){}function W(){}function z(){}function X(){}function q(){}function Y(){}function J(){}function Z(t,e){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,s=i.namespaceURI;if(s&&null==r&&null==(r=i.lookupPrefix(s)))var a=[{namespace:s,prefix:null}];return et(this,n,t,e,a),n.join("")}function tt(t,e,n){var i=t.prefix||"",r=t.namespaceURI;if(!i&&!r)return!1;if("xml"===i&&"http://www.w3.org/XML/1998/namespace"===r||"http://www.w3.org/2000/xmlns/"==r)return!1;for(var s=n.length;s--;){var a=n[s];if(a.prefix==i)return a.namespace!=r}return!0}function et(t,e,n,i,s){if(i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case a:s||(s=[]);s.length;var c=t.attributes,m=c.length,v=t.firstChild,y=t.tagName;n=r===t.namespaceURI||n,e.push("<",y);for(var B=0;B<m;B++){"xmlns"==(b=c.item(B)).prefix?s.push({prefix:b.localName,namespace:b.value}):"xmlns"==b.nodeName&&s.push({prefix:"",namespace:b.value})}for(B=0;B<m;B++){var b;if(tt(b=c.item(B),0,s)){var w=b.prefix||"",C=b.namespaceURI,_=w?" xmlns:"+w:" xmlns";e.push(_,'="',C,'"'),s.push({prefix:w,namespace:C})}et(b,e,n,i,s)}if(tt(t,0,s)){w=t.prefix||"",C=t.namespaceURI,_=w?" xmlns:"+w:" xmlns";e.push(_,'="',C,'"'),s.push({prefix:w,namespace:C})}if(v||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(y)){if(e.push(">"),n&&/^script$/i.test(y))for(;v;)v.data?e.push(v.data):et(v,e,n,i,s),v=v.nextSibling;else for(;v;)et(v,e,n,i,s),v=v.nextSibling;e.push("</",y,">")}else e.push("/>");return;case f:case g:for(v=t.firstChild;v;)et(v,e,n,i,s),v=v.nextSibling;return;case A:return e.push(" ",t.name,'="',t.value.replace(/[&"]/g,Q),'"');case o:return e.push(t.data.replace(/[<&]/g,Q).replace(/]]>/g,"]]>"));case u:return e.push("<![CDATA[",t.data,"]]>");case d:return e.push("\x3c!--",t.data,"--\x3e");case p:var T=t.publicId,E=t.systemId;if(e.push("<!DOCTYPE ",t.name),T)e.push(" PUBLIC ",T),E&&"."!=E&&e.push(" ",E),e.push(">");else if(E&&"."!=E)e.push(" SYSTEM ",E,">");else{var S=t.internalSubset;S&&e.push(" [",S,"]"),e.push(">")}return;case h:return e.push("<?",t.target," ",t.data,"?>");case l:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function nt(t,e,n){t[e]=n}C.prototype=Error.prototype,n(v,C),_.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var n=[],i=0;i<this.length;i++)et(this[i],n,t,e);return n.join("")}},T.prototype.item=function(t){return E(this),this[t]},i(T,_),S.prototype={length:0,item:_.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new C(w);var n=this.getNamedItem(t.nodeName);return U(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e,n=t.ownerElement;if(n&&n!=this._ownerElement)throw new C(w);return e=this.getNamedItemNS(t.namespaceURI,t.localName),U(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return I(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return I(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var i=this[n];if(i.localName==e&&i.namespaceURI==t)return i}return null}},F.prototype={hasFeature:function(t,e){var n=this._features[t.toLowerCase()];return!(!n||e&&!(e in n))},createDocument:function(t,e,n){var i=new O;if(i.implementation=this,i.childNodes=new _,i.doctype=n,n&&i.appendChild(n),e){var r=i.createElementNS(t,e);i.appendChild(r)}return i},createDocumentType:function(t,e,n){var i=new $;return i.name=t,i.nodeName=t,i.publicId=e,i.systemId=n,i}},x.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return R(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return H(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return function t(e,n,i){var r=new n.constructor;for(var s in n){var o=n[s];"object"!=typeof o&&o!=r[s]&&(r[s]=o)}n.childNodes&&(r.childNodes=new _);r.ownerDocument=e;switch(r.nodeType){case a:var u=n.attributes,l=r.attributes=new S,c=u.length;l._ownerElement=r;for(var h=0;h<c;h++)r.setAttributeNode(t(e,u.item(h),!0));break;case A:i=!0}if(i)for(var d=n.firstChild;d;)r.appendChild(t(e,d,i)),d=d.nextSibling;return r}(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==o&&t.nodeType==o?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n)for(var i in n)if(n[i]==t)return i;e=e.nodeType==A?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&t in n)return n[t];e=e.nodeType==A?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},n(s,x),n(s,x.prototype),O.prototype={nodeName:"#document",nodeType:f,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==g){for(var n=t.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,e),n=i}return t}return null==this.documentElement&&t.nodeType==a&&(this.documentElement=t),R(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),H(this,t)},importNode:function(t,e){return function t(e,n,i){var r;switch(n.nodeType){case a:(r=n.cloneNode(!1)).ownerDocument=e;case g:break;case A:i=!0}r||(r=n.cloneNode(!1));r.ownerDocument=e;r.parentNode=null;if(i)for(var s=n.firstChild;s;)r.appendChild(t(e,s,i)),s=s.nextSibling;return r}(this,t,e)},getElementById:function(t){var e=null;return L(this.documentElement,function(n){if(n.nodeType==a&&n.getAttribute("id")==t)return e=n,!0}),e},getElementsByClassName:function(t){var e=new RegExp("(^|\\s)"+t+"(\\s|$)");return new T(this,function(t){var n=[];return L(t.documentElement,function(i){i!==t&&i.nodeType==a&&e.test(i.getAttribute("class"))&&n.push(i)}),n})},createElement:function(t){var e=new M;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new _,(e.attributes=new S)._ownerElement=e,e},createDocumentFragment:function(){var t=new q;return t.ownerDocument=this,t.childNodes=new _,t},createTextNode:function(t){var e=new j;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new V;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new G;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new Y;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new N;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new X;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new M,i=e.split(":"),r=n.attributes=new S;return n.childNodes=new _,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=e,r._ownerElement=n,n},createAttributeNS:function(t,e){var n=new N,i=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=e,n}},i(O,x),M.prototype={nodeType:a,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===g?this.insertBefore(t,null):function(t,e){var n=e.parentNode;if(n){var i=t.lastChild;n.removeChild(e),i=t.lastChild}return i=t.lastChild,e.parentNode=t,e.previousSibling=i,e.nextSibling=null,i?i.nextSibling=e:t.firstChild=e,t.lastChild=e,P(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var i=this.ownerDocument.createAttributeNS(t,e);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new T(this,function(e){var n=[];return L(e,function(i){i===e||i.nodeType!=a||"*"!==t&&i.tagName!=t||n.push(i)}),n})},getElementsByTagNameNS:function(t,e){return new T(this,function(n){var i=[];return L(n,function(r){r===n||r.nodeType!==a||"*"!==t&&r.namespaceURI!==t||"*"!==e&&r.localName!=e||i.push(r)}),i})}},O.prototype.getElementsByTagName=M.prototype.getElementsByTagName,O.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,i(M,x),N.prototype.nodeType=A,i(N,x),K.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(y[B])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){n=this.data.substring(0,t)+n+this.data.substring(t+e),this.nodeValue=this.data=n,this.length=n.length}},i(K,x),j.prototype={nodeName:"#text",nodeType:o,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},i(j,K),V.prototype={nodeName:"#comment",nodeType:d},i(V,K),G.prototype={nodeName:"#cdata-section",nodeType:u},i(G,K),$.prototype.nodeType=p,i($,x),W.prototype.nodeType=m,i(W,x),z.prototype.nodeType=c,i(z,x),X.prototype.nodeType=l,i(X,x),q.prototype.nodeName="#document-fragment",q.prototype.nodeType=g,i(q,x),Y.prototype.nodeType=h,i(Y,x),J.prototype.serializeToString=function(t,e,n){return Z.call(t,e,n)},x.prototype.toString=Z;try{if(Object.defineProperty){Object.defineProperty(T.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(x.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case a:case g:var n=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case a:case g:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),nt=function(t,e,n){t["$$"+e]=n}}}catch(t){}e.Node=x,e.DOMException=C,e.DOMImplementation=F,e.XMLSerializer=J},cGG2:function(t,e,n){"use strict";var i=n("JP+z"),r=Object.prototype.toString;function s(t){return"[object Array]"===r.call(t)}function a(t){return void 0===t}function A(t){return null!==t&&"object"==typeof t}function o(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===r.call(t)}function l(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),s(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}t.exports={isArray:s,isArrayBuffer:function(t){return"[object ArrayBuffer]"===r.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:A,isPlainObject:o,isUndefined:a,isDate:function(t){return"[object Date]"===r.call(t)},isFile:function(t){return"[object File]"===r.call(t)},isBlob:function(t){return"[object Blob]"===r.call(t)},isFunction:u,isStream:function(t){return A(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function n(n,i){o(e[i])&&o(n)?e[i]=t(e[i],n):o(n)?e[i]=t({},n):s(n)?e[i]=n.slice():e[i]=n}for(var i=0,r=arguments.length;i<r;i++)l(arguments[i],n);return e},extend:function(t,e,n){return l(e,function(e,r){t[r]=n&&"function"==typeof e?i(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},cTzj:function(t,e,n){var i;i=function(){"use strict";function t(t){t=t||{};var i=arguments.length,r=0;if(1===i)return t;for(;++r<i;){var s=arguments[r];c(t)&&(t=s),n(s)&&e(t,s)}return t}function e(e,r){for(var s in h(e,r),r)if("__proto__"!==s&&i(r,s)){var a=r[s];n(a)?("undefined"===f(e[s])&&"function"===f(a)&&(e[s]=a),e[s]=t(e[s]||{},a)):e[s]=a}return e}function n(t){return"object"===f(t)||"function"===f(t)}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function s(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),i=[],r=t.parentNode.offsetWidth*e,s=void 0,a=void 0,A=void 0;(n=n.trim().split(",")).map(function(t){t=t.trim(),-1===(s=t.lastIndexOf(" "))?(a=t,A=999998):(a=t.substr(0,s),A=parseInt(t.substr(s+1,t.length-s-2),10)),i.push([A,a])}),i.sort(function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0});for(var o="",u=void 0,l=i.length,c=0;c<l;c++)if((u=i[c])[0]>=r){o=u[1];break}return o}}function a(t,e){for(var n=void 0,i=0,r=t.length;i<r;i++)if(e(t[i])){n=t[i];break}return n}function A(){}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":o(t))},h=function(t,e){if(null===t||void 0===t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var n=Object.prototype.propertyIsEnumerable,i=Object(t),r=arguments.length,s=0;++s<r;)for(var a=Object(arguments[s]),A=Object.getOwnPropertySymbols(a),o=0;o<A.length;o++){var u=A[o];n.call(a,u)&&(i[u]=a[u])}return i},d=Object.prototype.toString,f=function(t){var e=void 0===t?"undefined":o(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=d.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"},p=t,g="undefined"!=typeof window,m=g&&"IntersectionObserver"in window,v={event:"event",observer:"observer"},y=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}if(g)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),B=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return g&&window.devicePixelRatio||t},b=function(){if(g){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),w={on:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];b?t.addEventListener(e,n,{capture:i,passive:!0}):t.addEventListener(e,n,i)},off:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,i)}},C=function(t,e,n){var i=new Image;i.src=t.src,i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},_=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},T=function(t){return _(t,"overflow")+_(t,"overflow-y")+_(t,"overflow-x")},E={},S=function(){function t(e){var n=e.el,i=e.src,r=e.error,s=e.loading,a=e.bindType,A=e.$parent,o=e.options,l=e.elRenderer;u(this,t),this.el=n,this.src=i,this.error=r,this.loading=s,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=o,this.rect=null,this.$parent=A,this.elRenderer=l,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return l(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,i=t.error,r=this.src;this.src=e,this.loading=n,this.error=i,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map(function(e){t.options.filter[e](t,t.options)})}},{key:"renderLoading",value:function(t){var e=this;C({src:this.loading},function(n){e.render("loading",!1),t()},function(){t(),e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")})}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||E[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading(function(){t.attempt++,t.record("loadStart"),C({src:t.src},function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),E[t.src]=1,e()},function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)})})}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),k="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",U=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],I={rootMargin:"0px",threshold:0},F=function(t){return function(){function e(t){var n=t.preLoad,i=t.error,r=t.throttleWait,s=t.preLoadTop,a=t.dispatchEvent,A=t.loading,o=t.attempt,l=t.silent,c=void 0===l||l,h=t.scale,d=t.listenEvents,f=(t.hasbind,t.filter),p=t.adapter,m=t.observer,y=t.observerOptions;u(this,e),this.version="1.2.3",this.mode=v.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:c,dispatchEvent:!!a,throttleWait:r||200,preLoad:n||1.3,preLoadTop:s||0,error:i||k,loading:A||k,attempt:o||3,scale:h||B(h),ListenEvents:d||U,hasbind:!1,supportWebp:function(){if(!g)return!1;var t=!0,e=document;try{var n=e.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",e.body.appendChild(n),t=!n.offsetWidth,e.body.removeChild(n)}catch(e){t=!1}return t}(),filter:f||{},adapter:p||{},observer:!!m,observerOptions:y||I},this._initEvent(),this.lazyLoadHandler=function(t,e){var n=null,i=0;return function(){if(!n){var r=this,s=arguments,a=function(){i=Date.now(),n=!1,t.apply(r,s)};Date.now()-i>=e?a():n=setTimeout(a,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?v.observer:v.event)}return l(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map(function(e){t.push(e.performance())}),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),g&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,n,i){var r=this;if(function(t,e){for(var n=!1,i=0,r=t.length;i<r;i++)if(e(t[i])){n=!0;break}return n}(this.ListenerQueue,function(t){return t.el===e}))return this.update(e,n),t.nextTick(this.lazyLoadHandler);var a=this._valueFormatter(n.value),A=a.src,o=a.loading,u=a.error;t.nextTick(function(){A=s(e,r.options.scale)||A,r._observer&&r._observer.observe(e);var a=Object.keys(n.modifiers)[0],l=void 0;a&&(l=(l=i.context.$refs[a])?l.$el||l:document.getElementById(a)),l||(l=function(t){if(g){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(T(e)))return e;e=e.parentNode}return window}}(e));var c=new S({bindType:n.arg,$parent:l,el:e,loading:o,error:u,src:A,elRenderer:r._elRenderer.bind(r),options:r.options});r.ListenerQueue.push(c),g&&(r._addListenerTarget(window),r._addListenerTarget(l)),r.lazyLoadHandler(),t.nextTick(function(){return r.lazyLoadHandler()})})}},{key:"update",value:function(e,n){var i=this,r=this._valueFormatter(n.value),A=r.src,o=r.loading,u=r.error;A=s(e,this.options.scale)||A;var l=a(this.ListenerQueue,function(t){return t.el===e});l&&l.update({src:A,loading:o,error:u}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick(function(){return i.lazyLoadHandler()})}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=a(this.ListenerQueue,function(e){return e.el===t});e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),r(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(r(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;m||t!==v.observer||(t=v.event),this.mode=t,t===v.event?(this._observer&&(this.ListenerQueue.forEach(function(t){e._observer.unobserve(t.el)}),this._observer=null),this.TargetQueue.forEach(function(t){e._initListen(t.el,!0)})):(this.TargetQueue.forEach(function(t){e._initListen(t.el,!1)}),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=a(this.TargetQueue,function(e){return e.el===t});return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===v.event&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach(function(n,i){n.el===t&&(--n.childrenCount||(e._initListen(n.el,!1),e.TargetQueue.splice(i,1),n=null))})}},{key:"_initListen",value:function(t,e){var n=this;this.options.ListenEvents.forEach(function(i){return w[e?"on":"off"](t,i,n.lazyLoadHandler)})}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,n){t.Event.listeners[e].push(n)},this.$once=function(e,n){var i=t;t.$on(e,function t(){i.$off(e,t),n.apply(i,arguments)})},this.$off=function(e,n){n?r(t.Event.listeners[e],n):t.Event.listeners[e]=[]},this.$emit=function(e,n,i){t.Event.listeners[e].forEach(function(t){return t(n,i)})}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach(function(e,n){e.state.loaded||e.checkInView()&&e.load(function(){!e.error&&e.loaded&&t.ListenerQueue.splice(n,1)})})}},{key:"_initIntersectionObserver",value:function(){var t=this;m&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach(function(e){t._observer.observe(e.el)}))}},{key:"_observerHandler",value:function(t,e){var n=this;t.forEach(function(t){t.isIntersecting&&n.ListenerQueue.forEach(function(e){if(e.el===t.target){if(e.state.loaded)return n._observer.unobserve(e.el);e.load()}})})}},{key:"_elRenderer",value:function(t,e,n){if(t.el){var i=t.el,r=t.bindType,s=void 0;switch(e){case"loading":s=t.loading;break;case"error":s=t.error;break;default:s=t.src}if(r?i.style[r]='url("'+s+'")':i.getAttribute("src")!==s&&i.setAttribute("src",s),i.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var a=new y(e,{detail:t});i.dispatchEvent(a)}}}},{key:"_valueFormatter",value:function(t){var e=t,n=this.options.loading,i=this.options.error;return function(t){return null!==t&&"object"===(void 0===t?"undefined":o(t))}(t)&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),e=t.src,n=t.loading||this.options.loading,i=t.error||this.options.error),{src:e,loading:n,error:i}}}]),e}()},x=function(){function t(e){var n=e.lazy;u(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return l(t,[{key:"bind",value:function(t,e,n){var i=new L({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(i)}},{key:"update",value:function(t,e,n){var i=a(this._queue,function(e){return e.el===t});i&&i.update({el:t,binding:e,vnode:n})}},{key:"unbind",value:function(t,e,n){var i=a(this._queue,function(e){return e.el===t});i&&(i.clear(),r(this._queue,i))}}]),t}(),Q={selector:"img"},L=function(){function t(e){var n=e.el,i=e.binding,r=e.vnode,s=e.lazy;u(this,t),this.el=null,this.vnode=r,this.binding=i,this.options={},this.lazy=s,this._queue=[],this.update({el:n,binding:i})}return l(t,[{key:"update",value:function(t){var e=this,n=t.el,i=t.binding;this.el=n,this.options=p({},Q,i.value),this.getImgs().forEach(function(t){e.lazy.add(t,p({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)})}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,n=[],i=0;i<e;i++)n.push(t[i]);return n}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach(function(e){return t.lazy.remove(e)}),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(F(t))(e),i=new x({lazy:n}),r="2"===t.version.split(".")[0];t.prototype.$Lazyload=n,e.lazyComponent&&t.component("lazy-component",function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),g&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}}(n)),r?(t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),t.directive("lazy-container",{bind:i.bind.bind(i),update:i.update.bind(i),unbind:i.unbind.bind(i)})):(t.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(t,e){p(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){n.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){i.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.unbind(this.el)}}))}}},t.exports=i()},cWxy:function(t,e,n){"use strict";var i=n("dVOP");function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new i(t),e(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r(function(e){t=e}),cancel:t}},t.exports=r},ciWi:function(t,e,n){var i=n("awF4"),r=t.exports={WebVTT:n("dlST"),VTTCue:n("aj7g"),VTTRegion:n("DvOw")};i.vttjs=r,i.WebVTT=r.WebVTT;var s=r.VTTCue,a=r.VTTRegion,A=i.VTTCue,o=i.VTTRegion;r.shim=function(){i.VTTCue=s,i.VTTRegion=a},r.restore=function(){i.VTTCue=A,i.VTTRegion=o},i.VTTCue||r.shim()},dIwP:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dSzd:function(t,e,n){var i=n("e8AB")("wks"),r=n("3Eo+"),s=n("7KvD").Symbol,a="function"==typeof s;(t.exports=function(t){return i[t]||(i[t]=a&&s[t]||(a?s:r)("Symbol."+t))}).store=i},dVOP:function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},dY0y:function(t,e,n){var i=n("dSzd")("iterator"),r=!1;try{var s=[7][i]();s.return=function(){r=!0},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var s=[7],a=s[i]();a.next=function(){return{done:n=!0}},s[i]=function(){return a},t(s)}catch(t){}return n}},dkdY:function(t,e){function n(e,i){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,n(e,i)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},dlST:function(t,e,n){var i=n("dwO+"),r=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function s(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function a(t){function e(t,e,n,i){return 3600*(0|t)+60*(0|e)+(0|n)+(0|i)/1e3}var n=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function A(){this.values=r(null)}function o(t,e,n,i){var r=i?t.split(i):[t];for(var s in r)if("string"==typeof r[s]){var a=r[s].split(n);if(2===a.length)e(a[0],a[1])}}function u(t,e,n){var i=t;function r(){var e=a(t);if(null===e)throw new s(s.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function u(){t=t.replace(/^\s+/,"")}if(u(),e.startTime=r(),u(),"--\x3e"!==t.substr(0,3))throw new s(s.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.substr(3),u(),e.endTime=r(),u(),function(t,e){var i=new A;o(t,function(t,e){switch(t){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":var s=e.split(","),a=s[0];i.integer(t,a),i.percent(t,a)&&i.set("snapToLines",!1),i.alt(t,a,["auto"]),2===s.length&&i.alt("lineAlign",s[1],["start","center","end"]);break;case"position":s=e.split(","),i.percent(t,s[0]),2===s.length&&i.alt("positionAlign",s[1],["start","center","end"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start","center","end","left","right"])}},/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");try{e.line=i.get("line","auto")}catch(t){}e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100);try{e.align=i.get("align","center")}catch(t){e.align=i.get("align","middle")}try{e.position=i.get("position","auto")}catch(t){e.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}s.prototype=r(Error.prototype),s.prototype.constructor=s,s.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},A.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var i=0;i<n.length;++i)if(e===n[i]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var l=i.createElement&&i.createElement("textarea"),c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},d={v:"title",lang:"lang"},f={rt:"ruby"};function p(t,e){function n(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]*>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}function i(t,e){return!f[e.localName]||f[e.localName]===t.localName}function r(e,n){var i=c[e];if(!i)return null;var r=t.document.createElement(i),s=d[e];return s&&n&&(r[s]=n.trim()),r}for(var s,A,o=t.document.createElement("div"),u=o,p=[];null!==(s=n());)if("<"!==s[0])u.appendChild(t.document.createTextNode((A=s,l.innerHTML=A,A=l.textContent,l.textContent="",A)));else{if("/"===s[1]){p.length&&p[p.length-1]===s.substr(2).replace(">","")&&(p.pop(),u=u.parentNode);continue}var g,m=a(s.substr(1,s.length-2));if(m){g=t.document.createProcessingInstruction("timestamp",m),u.appendChild(g);continue}var v=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=r(v[1],v[3])))continue;if(!i(u,g))continue;if(v[2]){var y=v[2].split(".");y.forEach(function(t){var e=/^bg_/.test(t),n=e?t.slice(3):t;if(h.hasOwnProperty(n)){var i=e?"background-color":"color",r=h[n];g.style[i]=r}}),g.className=y.join(" ")}p.push(v[1]),u.appendChild(g),u=g}return o}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(t){for(var e=0;e<g.length;e++){var n=g[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function v(){}function y(t,e,n){v.call(this),this.cue=e,this.cueDiv=p(t,e.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=t.document.createElement("div"),i={direction:function(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function i(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function r(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var s=n.match(/^.*(\n|\r)/);return s?(t.length=0,s[0]):n}return"ruby"===e.tagName?r(t):e.childNodes?(i(t,e),r(t)):void 0}for(i(e,t);n=r(e);)for(var s=0;s<n.length;s++)if(m(n.charCodeAt(s)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(e.positionAlign){case"start":r=e.position;break;case"center":r=e.position-e.size/2;break;case"end":r=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function B(t){var e,n,i,r;if(t.div){n=t.div.offsetHeight,i=t.div.offsetWidth,r=t.div.offsetTop;var s=(s=t.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&&s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||n,this.bottom=t.bottom||r+(t.height||n),this.width=t.width||i,this.lineHeight=void 0!==e?e:t.lineHeight}function b(t,e,n,i){var r=new B(e),s=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,i=0,r=0;r<n.length&&n[r]!==e;r++)"showing"===n[r].mode&&i++;return-1*++i}(s),A=[];if(s.snapToLines){var o;switch(s.vertical){case"":A=["+y","-y"],o="height";break;case"rl":A=["+x","-x"],o="width";break;case"lr":A=["-x","+x"],o="width"}var u=r.lineHeight,l=u*Math.round(a),c=n[o]+u,h=A[0];Math.abs(l)>c&&(l=l<0?-1:1,l*=Math.ceil(c/u)*u),a<0&&(l+=""===s.vertical?n.height:n.width,A=A.reverse()),r.move(h,l)}else{var d=r.lineHeight/n.height*100;switch(s.lineAlign){case"center":a-=d/2;break;case"end":a-=d}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}A=["+y","-x","+x","-y"],r=new B(e)}var f=function(t,e){for(var r,s=new B(t),a=1,A=0;A<e.length;A++){for(;t.overlapsOppositeAxis(n,e[A])||t.within(n)&&t.overlapsAny(i);)t.move(e[A]);if(t.within(n))return t;var o=t.intersectPercentage(n);a>o&&(r=new B(t),a=o),t=new B(s)}return r||s}(r,A);e.move(f.toCSSCompatValues(n))}function w(){}v.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},v.prototype.formatStyle=function(t,e){return 0===t?0:t+e},y.prototype=r(v.prototype),y.prototype.constructor=y,B.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},B.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},B.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},B.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},B.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},B.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},B.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},B.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,i=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||i,height:t.height||e,bottom:t.bottom||i+(t.height||e),width:t.width||n}},w.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},w.convertCueToDOMTree=function(t,e){return t&&e?p(t,e):null};w.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=t.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],s=B.getSimpleBoxPosition(i),a={font:Math.round(.05*s.height*100)/100+"px sans-serif"};!function(){for(var n,A,o=0;o<e.length;o++)A=e[o],n=new y(t,A,a),i.appendChild(n.div),b(0,n,s,r),A.displayState=n.div,r.push(B.getSimpleBoxPosition(n))}()}else for(var A=0;A<e.length;A++)i.appendChild(e[A].displayState)},w.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},w.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof s))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var e=this;function n(){for(var t=e.buffer,n=0;n<t.length&&"\r"!==t[n]&&"\n"!==t[n];)++n;var i=t.substr(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.substr(n),i}function i(t){t.match(/X-TIMESTAMP-MAP/)?o(t,function(t,n){switch(t){case"X-TIMESTAMP-MAP":i=n,r=new A,o(i,function(t,e){switch(t){case"MPEGT":r.integer(t+"S",e);break;case"LOCA":r.set(t+"L",a(e))}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:r.get("MPEGTS"),LOCAL:r.get("LOCAL")})}var i,r},/=/):o(t,function(t,n){switch(t){case"Region":!function(t){var n=new A;if(o(t,function(t,e){switch(t){case"id":n.set(t,e);break;case"width":n.percent(t,e);break;case"lines":n.integer(t,e);break;case"regionanchor":case"viewportanchor":var i=e.split(",");if(2!==i.length)break;var r=new A;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(t+"X",r.get("x")),n.set(t+"Y",r.get("y"));break;case"scroll":n.alt(t,e,["up"])}},/=/,/\s/),n.has("id")){var i=new(e.vttjs.VTTRegion||e.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),e.onregion&&e.onregion(i),e.regionList.push({id:n.get("id"),region:i})}}(n)}},/:/)}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var r;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var l=(r=n()).match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new s(s.Errors.BadSignature);e.state="HEADER"}for(var c=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(c?c=!1:r=n(),e.state){case"HEADER":/:/.test(r)?i(r):r||(e.state="ID");continue;case"NOTE":r||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){e.state="NOTE";break}if(!r)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch(t){e.cue.align="middle"}if(e.state="CUE",-1===r.indexOf("--\x3e")){e.cue.id=r;continue}case"CUE":try{u(r,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var h=-1!==r.indexOf("--\x3e");if(!r||h&&(c=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new s(s.Errors.BadSignature)}catch(t){this.reportOrThrowError(t)}return this.onflush&&this.onflush(),this}},t.exports=w},"dwO+":function(t,e,n){(function(e){var i,r=void 0!==e?e:"undefined"!=typeof window?window:{},s=n(0);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=s),t.exports=i}).call(e,n("DuR2"))},e6n0:function(t,e,n){var i=n("evD5").f,r=n("D2L2"),s=n("dSzd")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,s)&&i(t,s,{configurable:!0,value:e})}},e8AB:function(t,e,n){var i=n("FeBl"),r=n("7KvD"),s=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("O4g8")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},eMjc:function(t,e,n){
- /*!
- * html2canvas 1.3.2 <https://html2canvas.hertzen.com>
- * Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com>
- * Released under MIT License
- */var i;i=function(){"use strict";
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){return(n=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function i(t,e,n,i){return new(n||(n=Promise))(function(r,s){function a(t){try{o(i.next(t))}catch(t){s(t)}}function A(t){try{o(i.throw(t))}catch(t){s(t)}}function o(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,A)}o((i=i.apply(t,e||[])).next())})}function r(t,e){var n,i,r,s,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function A(s){return function(A){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,A])}}}function s(t,e,n){if(n||2===arguments.length)for(var i,r=0,s=e.length;r<s;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}for(var a=function(){function t(t,e,n,i){this.left=t,this.top=e,this.width=n,this.height=i}return t.prototype.add=function(e,n,i,r){return new t(this.left+e,this.top+n,this.width+i,this.height+r)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var i=n[0];return i?new t(i.x+e.windowBounds.left,i.y+e.windowBounds.top,i.width,i.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),A=function(t,e){return a.fromClientRect(t,e.getBoundingClientRect())},o=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var s=t.charCodeAt(n++);56320==(64512&s)?e.push(((1023&r)<<10)+(1023&s)+65536):(e.push(r),n--)}else e.push(r)}return e},u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var i=[],r=-1,s="";++r<n;){var a=t[r];a<=65535?i.push(a):(a-=65536,i.push(55296+(a>>10),a%1024+56320)),(r+1===n||i.length>16384)&&(s+=String.fromCharCode.apply(String,i),i.length=0)}return s},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<l.length;h++)c[l.charCodeAt(h)]=h;var d=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},f=function(){function t(t,e,n,i,r,s){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=i,this.index=r,this.data=s}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),p=10,g=13,m=15,v=17,y=18,B=19,b=20,w=21,C=22,_=24,T=25,E=26,S=27,k=28,U=30,I=32,F=33,x=34,Q=35,L=37,O=38,D=39,P=40,H=42,R=[9001,65288],M="!",N=function(t){var e,n,i,r=function(t){var e,n,i,r,s,a=.75*t.length,A=t.length,o=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),l=Array.isArray(u)?u:new Uint8Array(u);for(e=0;e<A;e+=4)n=c[t.charCodeAt(e)],i=c[t.charCodeAt(e+1)],r=c[t.charCodeAt(e+2)],s=c[t.charCodeAt(e+3)],l[o++]=n<<2|i>>4,l[o++]=(15&i)<<4|r>>2,l[o++]=(3&r)<<6|63&s;return u}(t),s=Array.isArray(r)?function(t){for(var e=t.length,n=[],i=0;i<e;i+=4)n.push(t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]);return n}(r):new Uint32Array(r),a=Array.isArray(r)?function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n.push(t[i+1]<<8|t[i]);return n}(r):new Uint16Array(r),A=d(a,12,s[4]/2),o=2===s[5]?d(a,(24+s[4])/2):(e=s,n=Math.ceil((24+s[4])/4),e.slice?e.slice(n,i):new Uint32Array(Array.prototype.slice.call(e,n,i)));return new f(s[0],s[1],s[2],s[3],A,o)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),K=[U,36],j=[1,2,3,5],V=[p,8],G=[S,E],$=j.concat(V),W=[O,D,P,x,Q],z=[m,g],X=function(t,e,n,i){var r=i[n];if(Array.isArray(t)?-1!==t.indexOf(r):t===r)for(var s=n;s<=i.length;){if((o=i[++s])===e)return!0;if(o!==p)break}if(r===p)for(s=n;s>0;){var a=i[--s];if(Array.isArray(t)?-1!==t.indexOf(a):t===a)for(var A=n;A<=i.length;){var o;if((o=i[++A])===e)return!0;if(o!==p)break}if(a!==p)break}return!1},q=function(t,e){for(var n=t;n>=0;){var i=e[n];if(i!==p)return i;n--}return 0},Y=function(t,e,n,i,r){if(0===n[i])return"×";var s=i-1;if(Array.isArray(r)&&!0===r[s])return"×";var a=s-1,A=s+1,o=e[s],u=a>=0?e[a]:0,l=e[A];if(2===o&&3===l)return"×";if(-1!==j.indexOf(o))return M;if(-1!==j.indexOf(l))return"×";if(-1!==V.indexOf(l))return"×";if(8===q(s,e))return"÷";if(11===N.get(t[s]))return"×";if((o===I||o===F)&&11===N.get(t[A]))return"×";if(7===o||7===l)return"×";if(9===o)return"×";if(-1===[p,g,m].indexOf(o)&&9===l)return"×";if(-1!==[v,y,B,_,k].indexOf(l))return"×";if(q(s,e)===C)return"×";if(X(23,C,s,e))return"×";if(X([v,y],w,s,e))return"×";if(X(12,12,s,e))return"×";if(o===p)return"÷";if(23===o||23===l)return"×";if(16===l||16===o)return"÷";if(-1!==[g,m,w].indexOf(l)||14===o)return"×";if(36===u&&-1!==z.indexOf(o))return"×";if(o===k&&36===l)return"×";if(l===b)return"×";if(-1!==K.indexOf(l)&&o===T||-1!==K.indexOf(o)&&l===T)return"×";if(o===S&&-1!==[L,I,F].indexOf(l)||-1!==[L,I,F].indexOf(o)&&l===E)return"×";if(-1!==K.indexOf(o)&&-1!==G.indexOf(l)||-1!==G.indexOf(o)&&-1!==K.indexOf(l))return"×";if(-1!==[S,E].indexOf(o)&&(l===T||-1!==[C,m].indexOf(l)&&e[A+1]===T)||-1!==[C,m].indexOf(o)&&l===T||o===T&&-1!==[T,k,_].indexOf(l))return"×";if(-1!==[T,k,_,v,y].indexOf(l))for(var c=s;c>=0;){if((h=e[c])===T)return"×";if(-1===[k,_].indexOf(h))break;c--}if(-1!==[S,E].indexOf(l))for(c=-1!==[v,y].indexOf(o)?a:s;c>=0;){var h;if((h=e[c])===T)return"×";if(-1===[k,_].indexOf(h))break;c--}if(O===o&&-1!==[O,D,x,Q].indexOf(l)||-1!==[D,x].indexOf(o)&&-1!==[D,P].indexOf(l)||-1!==[P,Q].indexOf(o)&&l===P)return"×";if(-1!==W.indexOf(o)&&-1!==[b,E].indexOf(l)||-1!==W.indexOf(l)&&o===S)return"×";if(-1!==K.indexOf(o)&&-1!==K.indexOf(l))return"×";if(o===_&&-1!==K.indexOf(l))return"×";if(-1!==K.concat(T).indexOf(o)&&l===C&&-1===R.indexOf(t[A])||-1!==K.concat(T).indexOf(l)&&o===y)return"×";if(41===o&&41===l){for(var d=n[s],f=1;d>0&&41===e[--d];)f++;if(f%2!=0)return"×"}return o===I&&l===F?"×":"÷"},J=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=function(t,e){void 0===e&&(e="strict");var n=[],i=[],r=[];return t.forEach(function(t,s){var a=N.get(t);if(a>50?(r.push(!0),a-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return i.push(s),n.push(16);if(4===a||11===a){if(0===s)return i.push(s),n.push(U);var A=n[s-1];return-1===$.indexOf(A)?(i.push(i[s-1]),n.push(A)):(i.push(s),n.push(U))}return i.push(s),31===a?n.push("strict"===e?w:L):a===H?n.push(U):29===a?n.push(U):43===a?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(L):n.push(U):void n.push(a)}),[i,n,r]}(t,e.lineBreak),i=n[0],r=n[1],s=n[2];return"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(r=r.map(function(t){return-1!==[T,U,H].indexOf(t)?L:t})),[i,r,"keep-all"===e.wordBreak?s.map(function(e,n){return e&&t[n]>=19968&&t[n]<=40959}):void 0]},Z=function(){function t(t,e,n,i){this.codePoints=t,this.required=e===M,this.start=n,this.end=i}return t.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),tt=function(t){return t>=48&&t<=57},et=function(t){return tt(t)||t>=65&&t<=70||t>=97&&t<=102},nt=function(t){return 10===t||9===t||32===t},it=function(t){return function(t){return function(t){return t>=97&&t<=122}(t)||function(t){return t>=65&&t<=90}(t)}(t)||function(t){return t>=128}(t)||95===t},rt=function(t){return it(t)||tt(t)||45===t},st=function(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t},at=function(t,e){return 92===t&&10!==e},At=function(t,e,n){return 45===t?it(e)||at(e,n):!!it(t)||!(92!==t||!at(t,e))},ot=function(t,e,n){return 43===t||45===t?!!tt(e)||46===e&&tt(n):tt(46===t?e:t)},ut={type:2},lt={type:3},ct={type:4},ht={type:13},dt={type:8},ft={type:21},pt={type:9},gt={type:10},mt={type:11},vt={type:12},yt={type:14},Bt={type:23},bt={type:1},wt={type:25},Ct={type:24},_t={type:26},Tt={type:27},Et={type:28},St={type:29},kt={type:31},Ut={type:32},It=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(o(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==Ut;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(rt(e)||at(n,i)){var r=At(e,n,i)?2:1;return{type:5,value:this.consumeName(),flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ht;break;case 39:return this.consumeStringToken(39);case 40:return ut;case 41:return lt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yt;break;case 43:if(ot(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return ct;case 45:var s=t,a=this.peekCodePoint(0),A=this.peekCodePoint(1);if(ot(s,a,A))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(At(s,a,A))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(45===a&&62===A)return this.consumeCodePoint(),this.consumeCodePoint(),Ct;break;case 46:if(ot(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var o=this.consumeCodePoint();if(42===o&&47===(o=this.consumeCodePoint()))return this.consumeToken();if(-1===o)return this.consumeToken()}break;case 58:return _t;case 59:return Tt;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),wt;break;case 64:var l=this.peekCodePoint(0),c=this.peekCodePoint(1),h=this.peekCodePoint(2);if(At(l,c,h))return{type:7,value:this.consumeName()};break;case 91:return Et;case 92:if(at(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return St;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),dt;break;case 123:return mt;case 125:return vt;case 117:case 85:var d=this.peekCodePoint(0),f=this.peekCodePoint(1);return 43!==d||!et(f)&&63!==f||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),pt;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),ft;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),gt;break;case-1:return Ut}return nt(t)?(this.consumeWhiteSpace(),kt):tt(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):it(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:u(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();et(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(u.apply(void 0,t.map(function(t){return 63===t?48:t})),16),end:parseInt(u.apply(void 0,t.map(function(t){return 63===t?70:t})),16)};var i=parseInt(u.apply(void 0,t),16);if(45===this.peekCodePoint(0)&&et(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var r=[];et(e)&&r.length<6;)r.push(e),e=this.consumeCodePoint();return{type:30,start:i,end:parseInt(u.apply(void 0,r),16)}}return{type:30,start:i,end:i}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Bt)}for(;;){var i=this.consumeCodePoint();if(-1===i||41===i)return{type:22,value:u.apply(void 0,t)};if(nt(i))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Bt);if(34===i||39===i||40===i||st(i))return this.consumeBadUrlRemnants(),Bt;if(92===i){if(!at(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Bt;t.push(this.consumeEscapedCodePoint())}else t.push(i)}},t.prototype.consumeWhiteSpace=function(){for(;nt(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(41===t||-1===t)return;at(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e="";t>0;){var n=Math.min(6e4,t);e+=u.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var i=this._value[n];if(-1===i||void 0===i||i===t)return{type:0,value:e+=this.consumeStringSlice(n)};if(10===i)return this._value.splice(0,n),bt;if(92===i){var r=this._value[n+1];-1!==r&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):at(i,r)&&(e+=this.consumeStringSlice(n),e+=u(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||t.push(this.consumeCodePoint());tt(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(46===n&&tt(i))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;tt(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===n||101===n)&&((43===i||45===i)&&tt(r)||tt(i)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;tt(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[function(t){var e=0,n=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(n=-1),e++);for(var i=[];tt(t[e]);)i.push(t[e++]);var r=i.length?parseInt(u.apply(void 0,i),10):0;46===t[e]&&e++;for(var s=[];tt(t[e]);)s.push(t[e++]);var a=s.length,A=a?parseInt(u.apply(void 0,s),10):0;69!==t[e]&&101!==t[e]||e++;var o=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(o=-1),e++);for(var l=[];tt(t[e]);)l.push(t[e++]);var c=l.length?parseInt(u.apply(void 0,l),10):0;return n*(r+A*Math.pow(10,-a))*Math.pow(10,o*c)}(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],i=this.peekCodePoint(0),r=this.peekCodePoint(1),s=this.peekCodePoint(2);return At(i,r,s)?{type:15,number:e,flags:n,unit:this.consumeName()}:37===i?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(et(t)){for(var e=u(t);et(this.peekCodePoint(0))&&e.length<6;)e+=u(this.consumeCodePoint());nt(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||function(t){return t>=55296&&t<=57343}(n)||n>1114111?65533:n}return-1===t?65533:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(rt(e))t+=u(e);else{if(!at(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=u(this.consumeEscapedCodePoint())}}},t}(),Ft=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new It;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(32===n.type||Mt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?Ut:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),xt=function(t){return 15===t.type},Qt=function(t){return 17===t.type},Lt=function(t){return 20===t.type},Ot=function(t){return 0===t.type},Dt=function(t,e){return Lt(t)&&t.value===e},Pt=function(t){return 31!==t.type},Ht=function(t){return 31!==t.type&&4!==t.type},Rt=function(t){var e=[],n=[];return t.forEach(function(t){if(4===t.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}31!==t.type&&n.push(t)}),n.length&&e.push(n),e},Mt=function(t,e){return 11===e&&12===t.type||(28===e&&29===t.type||2===e&&3===t.type)},Nt=function(t){return 17===t.type||15===t.type},Kt=function(t){return 16===t.type||Nt(t)},jt=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Vt={type:17,number:0,flags:4},Gt={type:16,number:50,flags:4},$t={type:16,number:100,flags:4},Wt=function(t,e,n){var i=t[0],r=t[1];return[zt(i,e),zt(void 0!==r?r:i,n)]},zt=function(t,e){if(16===t.type)return t.number/100*e;if(xt(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Xt=function(t,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},qt=function(t){return 15===t.type&&("deg"===t.unit||"grad"===t.unit||"rad"===t.unit||"turn"===t.unit)},Yt=function(t){switch(t.filter(Lt).map(function(t){return t.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Vt,Vt];case"to top":case"bottom":return Jt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Vt,$t];case"to right":case"left":return Jt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$t,$t];case"to bottom":case"top":return Jt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$t,Vt];case"to left":case"right":return Jt(270)}return 0},Jt=function(t){return Math.PI*t/180},Zt=function(t,e){if(18===e.type){var n=oe[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var i=e.value.substring(0,1),r=e.value.substring(1,2),s=e.value.substring(2,3);return ne(parseInt(i+i,16),parseInt(r+r,16),parseInt(s+s,16),1)}if(4===e.value.length){i=e.value.substring(0,1),r=e.value.substring(1,2),s=e.value.substring(2,3);var a=e.value.substring(3,4);return ne(parseInt(i+i,16),parseInt(r+r,16),parseInt(s+s,16),parseInt(a+a,16)/255)}if(6===e.value.length){i=e.value.substring(0,2),r=e.value.substring(2,4),s=e.value.substring(4,6);return ne(parseInt(i,16),parseInt(r,16),parseInt(s,16),1)}if(8===e.value.length){i=e.value.substring(0,2),r=e.value.substring(2,4),s=e.value.substring(4,6),a=e.value.substring(6,8);return ne(parseInt(i,16),parseInt(r,16),parseInt(s,16),parseInt(a,16)/255)}}if(20===e.type){var A=le[e.value.toUpperCase()];if(void 0!==A)return A}return le.TRANSPARENT},te=function(t){return 0==(255&t)},ee=function(t){var e=255&t,n=255&t>>8,i=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+i+","+n+","+e/255+")":"rgb("+r+","+i+","+n+")"},ne=function(t,e,n,i){return(t<<24|e<<16|n<<8|Math.round(255*i)<<0)>>>0},ie=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},re=function(t,e){var n=e.filter(Ht);if(3===n.length){var i=n.map(ie),r=i[0],s=i[1],a=i[2];return ne(r,s,a,1)}if(4===n.length){var A=n.map(ie),o=(r=A[0],s=A[1],a=A[2],A[3]);return ne(r,s,a,o)}return 0};function se(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var ae,Ae=function(t,e){var n=e.filter(Ht),i=n[0],r=n[1],s=n[2],a=n[3],A=(17===i.type?Jt(i.number):Xt(t,i))/(2*Math.PI),o=Kt(r)?r.number/100:0,u=Kt(s)?s.number/100:0,l=void 0!==a&&Kt(a)?zt(a,1):1;if(0===o)return ne(255*u,255*u,255*u,1);var c=u<=.5?u*(o+1):u+o-u*o,h=2*u-c,d=se(h,c,A+1/3),f=se(h,c,A),p=se(h,c,A-1/3);return ne(255*d,255*f,255*p,l)},oe={hsl:Ae,hsla:Ae,rgb:re,rgba:re},ue=function(t,e){return Zt(t,Ft.create(e).parseComponentValue())},le={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};!function(t){t[t.BORDER_BOX=0]="BORDER_BOX",t[t.PADDING_BOX=1]="PADDING_BOX",t[t.CONTENT_BOX=2]="CONTENT_BOX"}(ae||(ae={}));var ce,he={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(t){if(Lt(t))switch(t.value){case"padding-box":return ae.PADDING_BOX;case"content-box":return ae.CONTENT_BOX}return ae.BORDER_BOX})}},de={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fe=function(t,e){var n=Zt(t,e[0]),i=e[1];return i&&Kt(i)?{color:n,stop:i}:{color:n,stop:null}},pe=function(t,e){var n=t[0],i=t[t.length-1];null===n.stop&&(n.stop=Vt),null===i.stop&&(i.stop=$t);for(var r=[],s=0,a=0;a<t.length;a++){var A=t[a].stop;if(null!==A){var o=zt(A,e);o>s?r.push(o):r.push(s),s=o}else r.push(null)}var u=null;for(a=0;a<r.length;a++){var l=r[a];if(null===l)null===u&&(u=a);else if(null!==u){for(var c=a-u,h=(l-r[u-1])/(c+1),d=1;d<=c;d++)r[u+d-1]=h*d;u=null}}return t.map(function(t,n){return{color:t.color,stop:Math.max(Math.min(1,r[n]/e),0)}})},ge=function(t,e,n){var i="number"==typeof t?t:function(t,e,n){var i=e/2,r=n/2,s=zt(t[0],e)-i,a=r-zt(t[1],n);return(Math.atan2(a,s)+2*Math.PI)%(2*Math.PI)}(t,e,n),r=Math.abs(e*Math.sin(i))+Math.abs(n*Math.cos(i)),s=e/2,a=n/2,A=r/2,o=Math.sin(i-Math.PI/2)*A,u=Math.cos(i-Math.PI/2)*A;return[r,s-u,s+u,a-o,a+o]},me=function(t,e){return Math.sqrt(t*t+e*e)},ve=function(t,e,n,i,r){return[[0,0],[0,e],[t,0],[t,e]].reduce(function(t,e){var s=e[0],a=e[1],A=me(n-s,i-a);return(r?A<t.optimumDistance:A>t.optimumDistance)?{optimumCorner:e,optimumDistance:A}:t},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},ye=function(t,e){var n=Jt(180),i=[];return Rt(e).forEach(function(e,r){if(0===r){var s=e[0];if(20===s.type&&-1!==["top","left","right","bottom"].indexOf(s.value))return void(n=Yt(e));if(qt(s))return void(n=(Xt(t,s)+Jt(270))%Jt(360))}var a=fe(t,e);i.push(a)}),{angle:n,stops:i,type:ce.LINEAR_GRADIENT}},Be=function(t,e){var n=be.CIRCLE,i=we.FARTHEST_CORNER,r=[],s=[];return Rt(e).forEach(function(e,a){var A=!0;if(0===a?A=e.reduce(function(t,e){if(Lt(e))switch(e.value){case"center":return s.push(Gt),!1;case"top":case"left":return s.push(Vt),!1;case"right":case"bottom":return s.push($t),!1}else if(Kt(e)||Nt(e))return s.push(e),!1;return t},A):1===a&&(A=e.reduce(function(t,e){if(Lt(e))switch(e.value){case"circle":return n=be.CIRCLE,!1;case"ellipse":return n=be.ELLIPSE,!1;case"contain":case"closest-side":return i=we.CLOSEST_SIDE,!1;case"farthest-side":return i=we.FARTHEST_SIDE,!1;case"closest-corner":return i=we.CLOSEST_CORNER,!1;case"cover":case"farthest-corner":return i=we.FARTHEST_CORNER,!1}else if(Nt(e)||Kt(e))return Array.isArray(i)||(i=[]),i.push(e),!1;return t},A)),A){var o=fe(t,e);r.push(o)}}),{size:i,shape:n,stops:r,position:s,type:ce.RADIAL_GRADIENT}};!function(t){t[t.URL=0]="URL",t[t.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",t[t.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(ce||(ce={}));var be,we;!function(t){t[t.CIRCLE=0]="CIRCLE",t[t.ELLIPSE=1]="ELLIPSE"}(be||(be={})),function(t){t[t.CLOSEST_SIDE=0]="CLOSEST_SIDE",t[t.FARTHEST_SIDE=1]="FARTHEST_SIDE",t[t.CLOSEST_CORNER=2]="CLOSEST_CORNER",t[t.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(we||(we={}));var Ce=function(t,e){if(22===e.type){var n={url:e.value,type:ce.URL};return t.cache.addImage(e.value),n}if(18===e.type){var i=Te[e.name];if(void 0===i)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return i(t,e.values)}throw new Error("Unsupported image type "+e.type)};var _e,Te={"linear-gradient":function(t,e){var n=Jt(180),i=[];return Rt(e).forEach(function(e,r){if(0===r){var s=e[0];if(20===s.type&&"to"===s.value)return void(n=Yt(e));if(qt(s))return void(n=Xt(t,s))}var a=fe(t,e);i.push(a)}),{angle:n,stops:i,type:ce.LINEAR_GRADIENT}},"-moz-linear-gradient":ye,"-ms-linear-gradient":ye,"-o-linear-gradient":ye,"-webkit-linear-gradient":ye,"radial-gradient":function(t,e){var n=be.CIRCLE,i=we.FARTHEST_CORNER,r=[],s=[];return Rt(e).forEach(function(e,a){var A=!0;if(0===a){var o=!1;A=e.reduce(function(t,e){if(o)if(Lt(e))switch(e.value){case"center":return s.push(Gt),t;case"top":case"left":return s.push(Vt),t;case"right":case"bottom":return s.push($t),t}else(Kt(e)||Nt(e))&&s.push(e);else if(Lt(e))switch(e.value){case"circle":return n=be.CIRCLE,!1;case"ellipse":return n=be.ELLIPSE,!1;case"at":return o=!0,!1;case"closest-side":return i=we.CLOSEST_SIDE,!1;case"cover":case"farthest-side":return i=we.FARTHEST_SIDE,!1;case"contain":case"closest-corner":return i=we.CLOSEST_CORNER,!1;case"farthest-corner":return i=we.FARTHEST_CORNER,!1}else if(Nt(e)||Kt(e))return Array.isArray(i)||(i=[]),i.push(e),!1;return t},A)}if(A){var u=fe(t,e);r.push(u)}}),{size:i,shape:n,stops:r,position:s,type:ce.RADIAL_GRADIENT}},"-moz-radial-gradient":Be,"-ms-radial-gradient":Be,"-o-radial-gradient":Be,"-webkit-radial-gradient":Be,"-webkit-gradient":function(t,e){var n=Jt(180),i=[],r=ce.LINEAR_GRADIENT,s=be.CIRCLE,a=we.FARTHEST_CORNER;return Rt(e).forEach(function(e,n){var s=e[0];if(0===n){if(Lt(s)&&"linear"===s.value)return void(r=ce.LINEAR_GRADIENT);if(Lt(s)&&"radial"===s.value)return void(r=ce.RADIAL_GRADIENT)}if(18===s.type)if("from"===s.name){var a=Zt(t,s.values[0]);i.push({stop:Vt,color:a})}else if("to"===s.name)a=Zt(t,s.values[0]),i.push({stop:$t,color:a});else if("color-stop"===s.name){var A=s.values.filter(Ht);if(2===A.length){a=Zt(t,A[1]);var o=A[0];Qt(o)&&i.push({stop:{type:16,number:100*o.number,flags:o.flags},color:a})}}}),r===ce.LINEAR_GRADIENT?{angle:(n+Jt(180))%Jt(360),stops:i,type:r}:{size:a,shape:s,stops:i,position:[],type:r}}},Ee={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter(function(t){return Ht(t)&&function(t){return!(20===t.type&&"none"===t.value||18===t.type&&!Te[t.name])}(t)}).map(function(e){return Ce(t,e)})}},Se={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(t){if(Lt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ke={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Rt(e).map(function(t){return t.filter(Kt)}).map(jt)}};!function(t){t[t.REPEAT=0]="REPEAT",t[t.NO_REPEAT=1]="NO_REPEAT",t[t.REPEAT_X=2]="REPEAT_X",t[t.REPEAT_Y=3]="REPEAT_Y"}(_e||(_e={}));var Ue,Ie={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Rt(e).map(function(t){return t.filter(Lt).map(function(t){return t.value}).join(" ")}).map(Fe)}},Fe=function(t){switch(t){case"no-repeat":return _e.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return _e.REPEAT_X;case"repeat-y":case"no-repeat repeat":return _e.REPEAT_Y;case"repeat":default:return _e.REPEAT}};!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(Ue||(Ue={}));var xe,Qe={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Rt(e).map(function(t){return t.filter(Le)})}},Le=function(t){return Lt(t)||Kt(t)},Oe=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},De=Oe("top"),Pe=Oe("right"),He=Oe("bottom"),Re=Oe("left"),Me=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return jt(e.filter(Kt))}}},Ne=Me("top-left"),Ke=Me("top-right"),je=Me("bottom-right"),Ve=Me("bottom-left");!function(t){t[t.NONE=0]="NONE",t[t.SOLID=1]="SOLID",t[t.DASHED=2]="DASHED",t[t.DOTTED=3]="DOTTED",t[t.DOUBLE=4]="DOUBLE"}(xe||(xe={}));var Ge,$e=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return xe.NONE;case"dashed":return xe.DASHED;case"dotted":return xe.DOTTED;case"double":return xe.DOUBLE}return xe.SOLID}}},We=$e("top"),ze=$e("right"),Xe=$e("bottom"),qe=$e("left"),Ye=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return xt(e)?e.number:0}}},Je=Ye("top"),Ze=Ye("right"),tn=Ye("bottom"),en=Ye("left"),nn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},sn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Lt).reduce(function(t,e){return t|an(e.value)},0)}},an=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(t){t[t.NONE=0]="NONE",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.INLINE_START=3]="INLINE_START",t[t.INLINE_END=4]="INLINE_END"}(Ge||(Ge={}));var An,on={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return Ge.LEFT;case"right":return Ge.RIGHT;case"inline-start":return Ge.INLINE_START;case"inline-end":return Ge.INLINE_END}return Ge.NONE}},un={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type?e.number:15===e.type?e.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(An||(An={}));var ln,cn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return An.STRICT;case"normal":default:return An.NORMAL}}},hn={name:"line-height",initialValue:"normal",prefix:!1,type:4},dn=function(t,e){return Lt(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:Kt(t)?zt(t,e):e},fn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Ce(t,e)}};!function(t){t[t.INSIDE=0]="INSIDE",t[t.OUTSIDE=1]="OUTSIDE"}(ln||(ln={}));var pn,gn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return ln.INSIDE;case"outside":default:return ln.OUTSIDE}}};!function(t){t[t.NONE=-1]="NONE",t[t.DISC=0]="DISC",t[t.CIRCLE=1]="CIRCLE",t[t.SQUARE=2]="SQUARE",t[t.DECIMAL=3]="DECIMAL",t[t.CJK_DECIMAL=4]="CJK_DECIMAL",t[t.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",t[t.LOWER_ROMAN=6]="LOWER_ROMAN",t[t.UPPER_ROMAN=7]="UPPER_ROMAN",t[t.LOWER_GREEK=8]="LOWER_GREEK",t[t.LOWER_ALPHA=9]="LOWER_ALPHA",t[t.UPPER_ALPHA=10]="UPPER_ALPHA",t[t.ARABIC_INDIC=11]="ARABIC_INDIC",t[t.ARMENIAN=12]="ARMENIAN",t[t.BENGALI=13]="BENGALI",t[t.CAMBODIAN=14]="CAMBODIAN",t[t.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",t[t.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",t[t.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",t[t.DEVANAGARI=18]="DEVANAGARI",t[t.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",t[t.GEORGIAN=20]="GEORGIAN",t[t.GUJARATI=21]="GUJARATI",t[t.GURMUKHI=22]="GURMUKHI",t[t.HEBREW=22]="HEBREW",t[t.HIRAGANA=23]="HIRAGANA",t[t.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",t[t.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",t[t.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",t[t.KANNADA=27]="KANNADA",t[t.KATAKANA=28]="KATAKANA",t[t.KATAKANA_IROHA=29]="KATAKANA_IROHA",t[t.KHMER=30]="KHMER",t[t.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",t[t.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",t[t.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",t[t.LAO=34]="LAO",t[t.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",t[t.MALAYALAM=36]="MALAYALAM",t[t.MONGOLIAN=37]="MONGOLIAN",t[t.MYANMAR=38]="MYANMAR",t[t.ORIYA=39]="ORIYA",t[t.PERSIAN=40]="PERSIAN",t[t.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",t[t.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",t[t.TAMIL=43]="TAMIL",t[t.TELUGU=44]="TELUGU",t[t.THAI=45]="THAI",t[t.TIBETAN=46]="TIBETAN",t[t.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",t[t.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",t[t.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",t[t.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",t[t.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(pn||(pn={}));var mn,vn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return pn.DISC;case"circle":return pn.CIRCLE;case"square":return pn.SQUARE;case"decimal":return pn.DECIMAL;case"cjk-decimal":return pn.CJK_DECIMAL;case"decimal-leading-zero":return pn.DECIMAL_LEADING_ZERO;case"lower-roman":return pn.LOWER_ROMAN;case"upper-roman":return pn.UPPER_ROMAN;case"lower-greek":return pn.LOWER_GREEK;case"lower-alpha":return pn.LOWER_ALPHA;case"upper-alpha":return pn.UPPER_ALPHA;case"arabic-indic":return pn.ARABIC_INDIC;case"armenian":return pn.ARMENIAN;case"bengali":return pn.BENGALI;case"cambodian":return pn.CAMBODIAN;case"cjk-earthly-branch":return pn.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return pn.CJK_HEAVENLY_STEM;case"cjk-ideographic":return pn.CJK_IDEOGRAPHIC;case"devanagari":return pn.DEVANAGARI;case"ethiopic-numeric":return pn.ETHIOPIC_NUMERIC;case"georgian":return pn.GEORGIAN;case"gujarati":return pn.GUJARATI;case"gurmukhi":return pn.GURMUKHI;case"hebrew":return pn.HEBREW;case"hiragana":return pn.HIRAGANA;case"hiragana-iroha":return pn.HIRAGANA_IROHA;case"japanese-formal":return pn.JAPANESE_FORMAL;case"japanese-informal":return pn.JAPANESE_INFORMAL;case"kannada":return pn.KANNADA;case"katakana":return pn.KATAKANA;case"katakana-iroha":return pn.KATAKANA_IROHA;case"khmer":return pn.KHMER;case"korean-hangul-formal":return pn.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return pn.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return pn.KOREAN_HANJA_INFORMAL;case"lao":return pn.LAO;case"lower-armenian":return pn.LOWER_ARMENIAN;case"malayalam":return pn.MALAYALAM;case"mongolian":return pn.MONGOLIAN;case"myanmar":return pn.MYANMAR;case"oriya":return pn.ORIYA;case"persian":return pn.PERSIAN;case"simp-chinese-formal":return pn.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return pn.SIMP_CHINESE_INFORMAL;case"tamil":return pn.TAMIL;case"telugu":return pn.TELUGU;case"thai":return pn.THAI;case"tibetan":return pn.TIBETAN;case"trad-chinese-formal":return pn.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return pn.TRAD_CHINESE_INFORMAL;case"upper-armenian":return pn.UPPER_ARMENIAN;case"disclosure-open":return pn.DISCLOSURE_OPEN;case"disclosure-closed":return pn.DISCLOSURE_CLOSED;case"none":default:return pn.NONE}}},yn=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Bn=yn("top"),bn=yn("right"),wn=yn("bottom"),Cn=yn("left");!function(t){t[t.VISIBLE=0]="VISIBLE",t[t.HIDDEN=1]="HIDDEN",t[t.SCROLL=2]="SCROLL",t[t.CLIP=3]="CLIP",t[t.AUTO=4]="AUTO"}(mn||(mn={}));var _n,Tn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Lt).map(function(t){switch(t.value){case"hidden":return mn.HIDDEN;case"scroll":return mn.SCROLL;case"clip":return mn.CLIP;case"auto":return mn.AUTO;case"visible":default:return mn.VISIBLE}})}},En={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Sn=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},kn=Sn("top"),Un=Sn("right"),In=Sn("bottom"),Fn=Sn("left");!function(t){t[t.LEFT=0]="LEFT",t[t.CENTER=1]="CENTER",t[t.RIGHT=2]="RIGHT"}(_n||(_n={}));var xn,Qn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return _n.RIGHT;case"center":case"justify":return _n.CENTER;case"left":default:return _n.LEFT}}};!function(t){t[t.STATIC=0]="STATIC",t[t.RELATIVE=1]="RELATIVE",t[t.ABSOLUTE=2]="ABSOLUTE",t[t.FIXED=3]="FIXED",t[t.STICKY=4]="STICKY"}(xn||(xn={}));var Ln,On={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return xn.RELATIVE;case"absolute":return xn.ABSOLUTE;case"fixed":return xn.FIXED;case"sticky":return xn.STICKY}return xn.STATIC}},Dn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Dt(e[0],"none")?[]:Rt(e).map(function(e){for(var n={color:le.TRANSPARENT,offsetX:Vt,offsetY:Vt,blur:Vt},i=0,r=0;r<e.length;r++){var s=e[r];Nt(s)?(0===i?n.offsetX=s:1===i?n.offsetY=s:n.blur=s,i++):n.color=Zt(t,s)}return n})}};!function(t){t[t.NONE=0]="NONE",t[t.LOWERCASE=1]="LOWERCASE",t[t.UPPERCASE=2]="UPPERCASE",t[t.CAPITALIZE=3]="CAPITALIZE"}(Ln||(Ln={}));var Pn,Hn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return Ln.UPPERCASE;case"lowercase":return Ln.LOWERCASE;case"capitalize":return Ln.CAPITALIZE}return Ln.NONE}},Rn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var n=Mn[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},Mn={matrix:function(t){var e=t.filter(function(t){return 17===t.type}).map(function(t){return t.number});return 6===e.length?e:null},matrix3d:function(t){var e=t.filter(function(t){return 17===t.type}).map(function(t){return t.number}),n=e[0],i=e[1];e[2],e[3];var r=e[4],s=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var a=e[12],A=e[13];return e[14],e[15],16===e.length?[n,i,r,s,a,A]:null}},Nn={type:16,number:50,flags:4},Kn=[Nn,Nn],jn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(Kt);return 2!==n.length?Kn:[n[0],n[1]]}};!function(t){t[t.VISIBLE=0]="VISIBLE",t[t.HIDDEN=1]="HIDDEN",t[t.COLLAPSE=2]="COLLAPSE"}(Pn||(Pn={}));var Vn,Gn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return Pn.HIDDEN;case"collapse":return Pn.COLLAPSE;case"visible":default:return Pn.VISIBLE}}};!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(Vn||(Vn={}));var $n,Wn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Vn.BREAK_ALL;case"keep-all":return Vn.KEEP_ALL;case"normal":default:return Vn.NORMAL}}},zn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(Qt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Xn=function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},qn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Qt(e)?e.number:1}},Yn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Lt).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return 0!==t})}},Zn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],i=[];return e.forEach(function(t){switch(t.type){case 20:case 0:n.push(t.value);break;case 17:n.push(t.number.toString());break;case 4:i.push(n.join(" ")),n.length=0}}),n.length&&i.push(n.join(" ")),i.map(function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"})}},ti={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ei={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(Qt(e))return e.number;if(Lt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},ni={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Lt).map(function(t){return t.value})}};!function(t){t.NORMAL="normal",t.ITALIC="italic",t.OBLIQUE="oblique"}($n||($n={}));var ii,ri={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return $n.OBLIQUE;case"italic":return $n.ITALIC;case"normal":default:return $n.NORMAL}}},si=function(t,e){return 0!=(t&e)},ai={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e}},Ai={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;for(var i=[],r=e.filter(Pt),s=0;s<r.length;s++){var a=r[s],A=r[s+1];if(20===a.type){var o=A&&Qt(A)?A.number:1;i.push({counter:a.value,increment:o})}}return i}},oi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var n=[],i=e.filter(Pt),r=0;r<i.length;r++){var s=i[r],a=i[r+1];if(Lt(s)&&"none"!==s.value){var A=a&&Qt(a)?a.number:0;n.push({counter:s.value,reset:A})}}return n}},ui={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(xt).map(function(e){return Xn(t,e)})}},li={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;var i=[],r=e.filter(Ot);if(r.length%2!=0)return null;for(var s=0;s<r.length;s+=2){var a=r[s].value,A=r[s+1].value;i.push({open:a,close:A})}return i}},ci=function(t,e,n){if(!t)return"";var i=t[Math.min(e,t.length-1)];return i?n?i.open:i.close:""},hi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Dt(e[0],"none")?[]:Rt(e).map(function(e){for(var n={color:255,offsetX:Vt,offsetY:Vt,blur:Vt,spread:Vt,inset:!1},i=0,r=0;r<e.length;r++){var s=e[r];Dt(s,"inset")?n.inset=!0:Nt(s)?(0===i?n.offsetX=s:1===i?n.offsetY=s:2===i?n.blur=s:n.spread=s,i++):n.color=Zt(t,s)}return n})}};!function(t){t[t.FILL=0]="FILL",t[t.STROKE=1]="STROKE",t[t.MARKERS=2]="MARKERS"}(ii||(ii={}));for(var di={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[ii.FILL,ii.STROKE,ii.MARKERS],i=[];return e.filter(Lt).forEach(function(t){switch(t.value){case"stroke":i.push(ii.STROKE);break;case"fill":i.push(ii.FILL);break;case"markers":i.push(ii.MARKERS)}}),n.forEach(function(t){-1===i.indexOf(t)&&i.push(t)}),i}},fi={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},pi={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return xt(e)?e.number:0}},gi=function(){function t(t,e){var n,i;this.animationDuration=yi(t,ui,e.animationDuration),this.backgroundClip=yi(t,he,e.backgroundClip),this.backgroundColor=yi(t,de,e.backgroundColor),this.backgroundImage=yi(t,Ee,e.backgroundImage),this.backgroundOrigin=yi(t,Se,e.backgroundOrigin),this.backgroundPosition=yi(t,ke,e.backgroundPosition),this.backgroundRepeat=yi(t,Ie,e.backgroundRepeat),this.backgroundSize=yi(t,Qe,e.backgroundSize),this.borderTopColor=yi(t,De,e.borderTopColor),this.borderRightColor=yi(t,Pe,e.borderRightColor),this.borderBottomColor=yi(t,He,e.borderBottomColor),this.borderLeftColor=yi(t,Re,e.borderLeftColor),this.borderTopLeftRadius=yi(t,Ne,e.borderTopLeftRadius),this.borderTopRightRadius=yi(t,Ke,e.borderTopRightRadius),this.borderBottomRightRadius=yi(t,je,e.borderBottomRightRadius),this.borderBottomLeftRadius=yi(t,Ve,e.borderBottomLeftRadius),this.borderTopStyle=yi(t,We,e.borderTopStyle),this.borderRightStyle=yi(t,ze,e.borderRightStyle),this.borderBottomStyle=yi(t,Xe,e.borderBottomStyle),this.borderLeftStyle=yi(t,qe,e.borderLeftStyle),this.borderTopWidth=yi(t,Je,e.borderTopWidth),this.borderRightWidth=yi(t,Ze,e.borderRightWidth),this.borderBottomWidth=yi(t,tn,e.borderBottomWidth),this.borderLeftWidth=yi(t,en,e.borderLeftWidth),this.boxShadow=yi(t,hi,e.boxShadow),this.color=yi(t,nn,e.color),this.direction=yi(t,rn,e.direction),this.display=yi(t,sn,e.display),this.float=yi(t,on,e.cssFloat),this.fontFamily=yi(t,Zn,e.fontFamily),this.fontSize=yi(t,ti,e.fontSize),this.fontStyle=yi(t,ri,e.fontStyle),this.fontVariant=yi(t,ni,e.fontVariant),this.fontWeight=yi(t,ei,e.fontWeight),this.letterSpacing=yi(t,un,e.letterSpacing),this.lineBreak=yi(t,cn,e.lineBreak),this.lineHeight=yi(t,hn,e.lineHeight),this.listStyleImage=yi(t,fn,e.listStyleImage),this.listStylePosition=yi(t,gn,e.listStylePosition),this.listStyleType=yi(t,vn,e.listStyleType),this.marginTop=yi(t,Bn,e.marginTop),this.marginRight=yi(t,bn,e.marginRight),this.marginBottom=yi(t,wn,e.marginBottom),this.marginLeft=yi(t,Cn,e.marginLeft),this.opacity=yi(t,qn,e.opacity);var r=yi(t,Tn,e.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=yi(t,En,e.overflowWrap),this.paddingTop=yi(t,kn,e.paddingTop),this.paddingRight=yi(t,Un,e.paddingRight),this.paddingBottom=yi(t,In,e.paddingBottom),this.paddingLeft=yi(t,Fn,e.paddingLeft),this.paintOrder=yi(t,di,e.paintOrder),this.position=yi(t,On,e.position),this.textAlign=yi(t,Qn,e.textAlign),this.textDecorationColor=yi(t,Yn,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=yi(t,Jn,null!==(i=e.textDecorationLine)&&void 0!==i?i:e.textDecoration),this.textShadow=yi(t,Dn,e.textShadow),this.textTransform=yi(t,Hn,e.textTransform),this.transform=yi(t,Rn,e.transform),this.transformOrigin=yi(t,jn,e.transformOrigin),this.visibility=yi(t,Gn,e.visibility),this.webkitTextStrokeColor=yi(t,fi,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=yi(t,pi,e.webkitTextStrokeWidth),this.wordBreak=yi(t,Wn,e.wordBreak),this.zIndex=yi(t,zn,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Pn.VISIBLE},t.prototype.isTransparent=function(){return te(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return this.position!==xn.STATIC},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==Ge.NONE},t.prototype.isInlineLevel=function(){return si(this.display,4)||si(this.display,33554432)||si(this.display,268435456)||si(this.display,536870912)||si(this.display,67108864)||si(this.display,134217728)},t}(),mi=function(){return function(t,e){this.content=yi(t,ai,e.content),this.quotes=yi(t,li,e.quotes)}}(),vi=function(){return function(t,e){this.counterIncrement=yi(t,Ai,e.counterIncrement),this.counterReset=yi(t,oi,e.counterReset)}}(),yi=function(t,e,n){var i=new It,r=null!==n&&void 0!==n?n.toString():e.initialValue;i.write(r);var s=new Ft(i.read());switch(e.type){case 2:var a=s.parseComponentValue();return e.parse(t,Lt(a)?a.value:e.initialValue);case 0:return e.parse(t,s.parseComponentValue());case 1:return e.parse(t,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(e.format){case"angle":return Xt(t,s.parseComponentValue());case"color":return Zt(t,s.parseComponentValue());case"image":return Ce(t,s.parseComponentValue());case"length":var A=s.parseComponentValue();return Nt(A)?A:Vt;case"length-percentage":var o=s.parseComponentValue();return Kt(o)?o:Vt;case"time":return Xn(t,s.parseComponentValue())}}},Bi=function(t,e){var n=function(t){switch(t.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(t);return 1===n||e===n},bi=function(){return function(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Bi(e,3),this.styles=new gi(t,window.getComputedStyle(e,null)),Er(e)&&(this.styles.animationDuration.some(function(t){return t>0})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=A(this.context,e),Bi(e,4)&&(this.flags|=16)}}(),wi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ci="undefined"==typeof Uint8Array?[]:new Uint8Array(256),_i=0;_i<wi.length;_i++)Ci[wi.charCodeAt(_i)]=_i;for(var Ti=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},Ei=function(){function t(t,e,n,i,r,s){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=i,this.index=r,this.data=s}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ki="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ui=0;Ui<Si.length;Ui++)ki[Si.charCodeAt(Ui)]=Ui;var Ii,Fi=8,xi=9,Qi=11,Li=12,Oi=function(t,e){var n,i,r,s=function(t){var e,n,i,r,s,a=.75*t.length,A=t.length,o=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),l=Array.isArray(u)?u:new Uint8Array(u);for(e=0;e<A;e+=4)n=Ci[t.charCodeAt(e)],i=Ci[t.charCodeAt(e+1)],r=Ci[t.charCodeAt(e+2)],s=Ci[t.charCodeAt(e+3)],l[o++]=n<<2|i>>4,l[o++]=(15&i)<<4|r>>2,l[o++]=(3&r)<<6|63&s;return u}(t),a=Array.isArray(s)?function(t){for(var e=t.length,n=[],i=0;i<e;i+=4)n.push(t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]);return n}(s):new Uint32Array(s),A=Array.isArray(s)?function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n.push(t[i+1]<<8|t[i]);return n}(s):new Uint16Array(s),o=Ti(A,12,a[4]/2),u=2===a[5]?Ti(A,(24+a[4])/2):(n=a,i=Math.ceil((24+a[4])/4),n.slice?n.slice(i,r):new Uint32Array(Array.prototype.slice.call(n,i,r)));return new Ei(a[0],a[1],a[2],a[3],o,u)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),Di=function(t){return Oi.get(t)},Pi=function(t,e,n){var i=n-2,r=e[i],s=e[n-1],a=e[n];if(2===s&&3===a)return"×";if(2===s||3===s||4===s)return"÷";if(2===a||3===a||4===a)return"÷";if(s===Fi&&-1!==[Fi,xi,Qi,Li].indexOf(a))return"×";if(!(s!==Qi&&s!==xi||a!==xi&&10!==a))return"×";if((s===Li||10===s)&&10===a)return"×";if(13===a||5===a)return"×";if(7===a)return"×";if(1===s)return"×";if(13===s&&14===a){for(;5===r;)r=e[--i];if(14===r)return"×"}if(15===s&&15===a){for(var A=0;15===r;)A++,r=e[--i];if(A%2==0)return"×"}return"÷"},Hi=function(t){var e=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var s=t.charCodeAt(n++);56320==(64512&s)?e.push(((1023&r)<<10)+(1023&s)+65536):(e.push(r),n--)}else e.push(r)}return e}(t),n=e.length,i=0,r=0,s=e.map(Di);return{next:function(){if(i>=n)return{done:!0,value:null};for(var t="×";i<n&&"×"===(t=Pi(0,s,++i)););if("×"!==t||i===n){var a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var i=[],r=-1,s="";++r<n;){var a=t[r];a<=65535?i.push(a):(a-=65536,i.push(55296+(a>>10),a%1024+56320)),(r+1===n||i.length>16384)&&(s+=String.fromCharCode.apply(String,i),i.length=0)}return s}.apply(null,e.slice(r,i));return r=i,{value:a,done:!1}}return{done:!0,value:null}}}},Ri=function(t){for(var e,n=Hi(t),i=[];!(e=n.next()).done;)e.value&&i.push(e.value.slice());return i},Mi=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Ni=function(t,e,n,i,r){var s="http://www.w3.org/2000/svg",a=document.createElementNS(s,"svg"),A=document.createElementNS(s,"foreignObject");return a.setAttributeNS(null,"width",t.toString()),a.setAttributeNS(null,"height",e.toString()),A.setAttributeNS(null,"width","100%"),A.setAttributeNS(null,"height","100%"),A.setAttributeNS(null,"x",n.toString()),A.setAttributeNS(null,"y",i.toString()),A.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(A),A.appendChild(r),a},Ki=function(t){return new Promise(function(e,n){var i=new Image;i.onload=function(){return e(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))})},ji={get SUPPORT_RANGE_BOUNDS(){var t=function(t){if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n);var i=e.getBoundingClientRect(),r=Math.round(i.height);if(t.body.removeChild(n),123===r)return!0}}return!1}(document);return Object.defineProperty(ji,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=ji.SUPPORT_RANGE_BOUNDS&&function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML="function"==typeof"".repeat?"👨".repeat(10):"";var i=e.firstChild,r=0,s={},a=o(i.data).map(function(t){return u(t)}).every(function(t,e){n.setStart(i,r),n.setEnd(i,r+t.length);var a=n.getBoundingClientRect();r+=t.length;var A=a.x>s.x||a.y>s.y;return s=a,0===e||A});return t.body.removeChild(e),a}(document);return Object.defineProperty(ji,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,n=t.createElement("canvas"),i=n.getContext("2d");if(!i)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0}(document);return Object.defineProperty(ji,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var e=t.createElement("canvas");e.width=100,e.height=100;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var i=new Image,r=e.toDataURL();i.src=r;var s=Ni(100,100,0,0,i);return n.fillStyle="red",n.fillRect(0,0,100,100),Ki(s).then(function(e){n.drawImage(e,0,0);var i=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var s=t.createElement("div");return s.style.backgroundImage="url("+r+")",s.style.height="100px",Mi(i)?Ki(Ni(100,100,0,0,s)):Promise.reject(!1)}).then(function(t){return n.drawImage(t,0,0),Mi(n.getImageData(0,0,100,100).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(ji,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=void 0!==(new Image).crossOrigin;return Object.defineProperty(ji,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(ji,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ji,"SUPPORT_CORS_XHR",{value:t}),t}},Vi=function(){return function(t,e){this.text=t,this.bounds=e}}(),Gi=function(t,e,n,i){var r=[],s=0;return Xi(e,n).forEach(function(e){if(n.textDecorationLine.length||e.trim().length>0)if(ji.SUPPORT_RANGE_BOUNDS)ji.SUPPORT_WORD_BREAKING?r.push(new Vi(e,zi(t,i,s,e.length))):r.push(new Vi(e,a.fromDOMRectList(t,Wi(i,s,e.length).getClientRects())));else{var A=i.splitText(e.length);r.push(new Vi(e,$i(t,i))),i=A}else ji.SUPPORT_RANGE_BOUNDS||(i=i.splitText(e.length));s+=e.length}),r},$i=function(t,e){var n=e.ownerDocument;if(n){var i=n.createElement("html2canvaswrapper");i.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(i,e);var s=A(t,i);return i.firstChild&&r.replaceChild(i.firstChild,i),s}}return a.EMPTY},Wi=function(t,e,n){var i=t.ownerDocument;if(!i)throw new Error("Node has no owner document");var r=i.createRange();return r.setStart(t,e),r.setEnd(t,e+n),r},zi=function(t,e,n,i){return a.fromClientRect(t,Wi(e,n,i).getBoundingClientRect())},Xi=function(t,e){return 0!==e.letterSpacing?Ri(t):Yi(t,e)},qi=[32,160,4961,65792,65793,4153,4241],Yi=function(t,e){for(var n,i=function(t,e){var n=o(t),i=J(n,e),r=i[0],s=i[1],a=i[2],A=n.length,u=0,l=0;return{next:function(){if(l>=A)return{done:!0,value:null};for(var t="×";l<A&&"×"===(t=Y(n,s,r,++l,a)););if("×"!==t||l===A){var e=new Z(n,t,u,l);return u=l,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),r=[],s=function(){if(n.value){var t=n.value.slice(),e="";o(t).forEach(function(t){-1===qi.indexOf(t)?e+=u(t):(e.length&&r.push(e),r.push(u(t)),e="")}),e.length&&r.push(e)}};!(n=i.next()).done;)s();return r},Ji=function(){return function(t,e,n){this.text=Zi(e.data,n.textTransform),this.textBounds=Gi(t,this.text,n,e)}}(),Zi=function(t,e){switch(e){case Ln.LOWERCASE:return t.toLowerCase();case Ln.CAPITALIZE:return t.replace(tr,er);case Ln.UPPERCASE:return t.toUpperCase();default:return t}},tr=/(^|\s|:|-|\(|\))([a-z])/g,er=function(t,e,n){return t.length>0?e+n.toUpperCase():t},nr=function(t){function n(e,n){var i=t.call(this,e,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return e(n,t),n}(bi),ir=function(t){function n(e,n){var i=t.call(this,e,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return e(n,t),n}(bi),rr=function(t){function n(e,n){var i=t.call(this,e,n)||this,r=new XMLSerializer,s=A(e,n);return n.setAttribute("width",s.width+"px"),n.setAttribute("height",s.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return e(n,t),n}(bi),sr=function(t){function n(e,n){var i=t.call(this,e,n)||this;return i.value=n.value,i}return e(n,t),n}(bi),ar=function(t){function n(e,n){var i=t.call(this,e,n)||this;return i.start=n.start,i.reversed="boolean"==typeof n.reversed&&!0===n.reversed,i}return e(n,t),n}(bi),Ar=[{type:15,flags:0,unit:"px",number:3}],or=[{type:16,flags:0,number:50}],ur=function(t){return t.width>t.height?new a(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new a(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},lr=function(t){var e=t.type===dr?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e},cr="checkbox",hr="radio",dr="password",fr=function(t){function n(e,n){var i=t.call(this,e,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=lr(n),i.type!==cr&&i.type!==hr||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=xe.SOLID,i.styles.backgroundClip=[ae.BORDER_BOX],i.styles.backgroundOrigin=[0],i.bounds=ur(i.bounds)),i.type){case cr:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Ar;break;case hr:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=or}return i}return e(n,t),n}(bi),pr=function(t){function n(e,n){var i=t.call(this,e,n)||this,r=n.options[n.selectedIndex||0];return i.value=r&&r.text||"",i}return e(n,t),n}(bi),gr=function(t){function n(e,n){var i=t.call(this,e,n)||this;return i.value=n.value,i}return e(n,t),n}(bi),mr=function(t){function n(e,n){var i=t.call(this,e,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=br(e,n.contentWindow.document.documentElement);var r=n.contentWindow.document.documentElement?ue(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):le.TRANSPARENT,s=n.contentWindow.document.body?ue(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):le.TRANSPARENT;i.backgroundColor=te(r)?te(s)?i.styles.backgroundColor:s:r}}catch(t){}return i}return e(n,t),n}(bi),vr=["OL","UL","MENU"],yr=function(t,e,n,i){for(var r=e.firstChild,s=void 0;r;r=s)if(s=r.nextSibling,_r(r)&&r.data.trim().length>0)n.textNodes.push(new Ji(t,r,n.styles));else if(Tr(r))if(Mr(r)&&r.assignedNodes)r.assignedNodes().forEach(function(e){return yr(t,e,n,i)});else{var a=Br(t,r);a.styles.isVisible()&&(wr(r,a,i)?a.flags|=4:Cr(a.styles)&&(a.flags|=2),-1!==vr.indexOf(r.tagName)&&(a.flags|=8),n.elements.push(a),r.slot,r.shadowRoot?yr(t,r.shadowRoot,a,i):Hr(r)||Fr(r)||Rr(r)||yr(t,r,a,i))}},Br=function(t,e){return Lr(e)?new nr(t,e):Qr(e)?new ir(t,e):Fr(e)?new rr(t,e):kr(e)?new sr(t,e):Ur(e)?new ar(t,e):Ir(e)?new fr(t,e):Rr(e)?new pr(t,e):Hr(e)?new gr(t,e):Or(e)?new mr(t,e):new bi(t,e)},br=function(t,e){var n=Br(t,e);return n.flags|=4,yr(t,e,n,n),n},wr=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||xr(t)&&n.styles.isTransparent()},Cr=function(t){return t.isPositioned()||t.isFloating()},_r=function(t){return t.nodeType===Node.TEXT_NODE},Tr=function(t){return t.nodeType===Node.ELEMENT_NODE},Er=function(t){return Tr(t)&&void 0!==t.style&&!Sr(t)},Sr=function(t){return"object"==typeof t.className},kr=function(t){return"LI"===t.tagName},Ur=function(t){return"OL"===t.tagName},Ir=function(t){return"INPUT"===t.tagName},Fr=function(t){return"svg"===t.tagName},xr=function(t){return"BODY"===t.tagName},Qr=function(t){return"CANVAS"===t.tagName},Lr=function(t){return"IMG"===t.tagName},Or=function(t){return"IFRAME"===t.tagName},Dr=function(t){return"STYLE"===t.tagName},Pr=function(t){return"SCRIPT"===t.tagName},Hr=function(t){return"TEXTAREA"===t.tagName},Rr=function(t){return"SELECT"===t.tagName},Mr=function(t){return"SLOT"===t.tagName},Nr=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach(function(t){return e.counters[t].pop()})},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,i=t.counterReset,r=!0;null!==n&&n.forEach(function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(r=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)});var s=[];return r&&i.forEach(function(t){var n=e.counters[t.counter];s.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)}),s},t}(),Kr={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},jr={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Vr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Gr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$r=function(t,e,n,i,r,s){return t<e||t>n?Yr(t,r,s.length>0):i.integers.reduce(function(e,n,r){for(;t>=n;)t-=n,e+=i.values[r];return e},"")+s},Wr=function(t,e,n,i){var r="";do{n||t--,r=i(t)+r,t/=e}while(t*e>=e);return r},zr=function(t,e,n,i,r){var s=n-e+1;return(t<0?"-":"")+(Wr(Math.abs(t),s,i,function(t){return u(Math.floor(t%s)+e)})+r)},Xr=function(t,e,n){void 0===n&&(n=". ");var i=e.length;return Wr(Math.abs(t),i,!1,function(t){return e[Math.floor(t%i)]})+n},qr=function(t,e,n,i,r,s){if(t<-9999||t>9999)return Yr(t,pn.CJK_DECIMAL,r.length>0);var a=Math.abs(t),A=r;if(0===a)return e[0]+A;for(var o=0;a>0&&o<=4;o++){var u=a%10;0===u&&si(s,1)&&""!==A?A=e[u]+A:u>1||1===u&&0===o||1===u&&1===o&&si(s,2)||1===u&&1===o&&si(s,4)&&t>100||1===u&&o>1&&si(s,8)?A=e[u]+(o>0?n[o-1]:"")+A:1===u&&o>0&&(A=n[o-1]+A),a=Math.floor(a/10)}return(t<0?i:"")+A},Yr=function(t,e,n){var i=n?". ":"",r=n?"、":"",s=n?", ":"",a=n?" ":"";switch(e){case pn.DISC:return"•"+a;case pn.CIRCLE:return"◦"+a;case pn.SQUARE:return"◾"+a;case pn.DECIMAL_LEADING_ZERO:var A=zr(t,48,57,!0,i);return A.length<4?"0"+A:A;case pn.CJK_DECIMAL:return Xr(t,"〇一二三四五六七八九",r);case pn.LOWER_ROMAN:return $r(t,1,3999,Kr,pn.DECIMAL,i).toLowerCase();case pn.UPPER_ROMAN:return $r(t,1,3999,Kr,pn.DECIMAL,i);case pn.LOWER_GREEK:return zr(t,945,969,!1,i);case pn.LOWER_ALPHA:return zr(t,97,122,!1,i);case pn.UPPER_ALPHA:return zr(t,65,90,!1,i);case pn.ARABIC_INDIC:return zr(t,1632,1641,!0,i);case pn.ARMENIAN:case pn.UPPER_ARMENIAN:return $r(t,1,9999,jr,pn.DECIMAL,i);case pn.LOWER_ARMENIAN:return $r(t,1,9999,jr,pn.DECIMAL,i).toLowerCase();case pn.BENGALI:return zr(t,2534,2543,!0,i);case pn.CAMBODIAN:case pn.KHMER:return zr(t,6112,6121,!0,i);case pn.CJK_EARTHLY_BRANCH:return Xr(t,"子丑寅卯辰巳午未申酉戌亥",r);case pn.CJK_HEAVENLY_STEM:return Xr(t,"甲乙丙丁戊己庚辛壬癸",r);case pn.CJK_IDEOGRAPHIC:case pn.TRAD_CHINESE_INFORMAL:return qr(t,"零一二三四五六七八九","十百千萬","負",r,14);case pn.TRAD_CHINESE_FORMAL:return qr(t,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",r,15);case pn.SIMP_CHINESE_INFORMAL:return qr(t,"零一二三四五六七八九","十百千萬","负",r,14);case pn.SIMP_CHINESE_FORMAL:return qr(t,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",r,15);case pn.JAPANESE_INFORMAL:return qr(t,"〇一二三四五六七八九","十百千万","マイナス",r,0);case pn.JAPANESE_FORMAL:return qr(t,"零壱弐参四伍六七八九","拾百千万","マイナス",r,7);case pn.KOREAN_HANGUL_FORMAL:return qr(t,"영일이삼사오육칠팔구","십백천만","마이너스",s,7);case pn.KOREAN_HANJA_INFORMAL:return qr(t,"零一二三四五六七八九","十百千萬","마이너스",s,0);case pn.KOREAN_HANJA_FORMAL:return qr(t,"零壹貳參四五六七八九","拾百千","마이너스",s,7);case pn.DEVANAGARI:return zr(t,2406,2415,!0,i);case pn.GEORGIAN:return $r(t,1,19999,Gr,pn.DECIMAL,i);case pn.GUJARATI:return zr(t,2790,2799,!0,i);case pn.GURMUKHI:return zr(t,2662,2671,!0,i);case pn.HEBREW:return $r(t,1,10999,Vr,pn.DECIMAL,i);case pn.HIRAGANA:return Xr(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case pn.HIRAGANA_IROHA:return Xr(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case pn.KANNADA:return zr(t,3302,3311,!0,i);case pn.KATAKANA:return Xr(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case pn.KATAKANA_IROHA:return Xr(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case pn.LAO:return zr(t,3792,3801,!0,i);case pn.MONGOLIAN:return zr(t,6160,6169,!0,i);case pn.MYANMAR:return zr(t,4160,4169,!0,i);case pn.ORIYA:return zr(t,2918,2927,!0,i);case pn.PERSIAN:return zr(t,1776,1785,!0,i);case pn.TAMIL:return zr(t,3046,3055,!0,i);case pn.TELUGU:return zr(t,3174,3183,!0,i);case pn.THAI:return zr(t,3664,3673,!0,i);case pn.TIBETAN:return zr(t,3872,3881,!0,i);case pn.DECIMAL:default:return zr(t,48,57,!0,i)}},Jr=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Nr,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}return t.prototype.toIFrame=function(t,e){var n=this,s=ts(t,e);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var a=t.defaultView.pageXOffset,A=t.defaultView.pageYOffset,o=s.contentWindow,u=o.document,l=is(s).then(function(){return i(n,void 0,void 0,function(){var t,n;return r(this,function(i){switch(i.label){case 0:return this.scrolledElements.forEach(os),o&&(o.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||o.scrollY===e.top&&o.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:i.sent(),i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ns(u)]:[3,4];case 3:i.sent(),i.label=4;case 4:return"function"==typeof t?[2,Promise.resolve().then(function(){return t(u,n)}).then(function(){return s})]:[2,s]}})})});return u.open(),u.write(as(document.doctype)+"<html></html>"),As(this.referenceElement.ownerDocument,a,A),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),l},t.prototype.createElementClone=function(t){if(Bi(t,2),Qr(t))return this.createCanvasClone(t);if(Dr(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Lr(e)&&(Lr(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t},""),i=t.cloneNode(!1);return i.textContent=n,i}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var i=t.cloneNode(!1);try{i.width=t.width,i.height=t.height;var r=t.getContext("2d"),s=i.getContext("2d");if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,t.width,t.height),0,0);else{var a=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(a){var A=a.getContextAttributes();!1===(null===A||void 0===A?void 0:A.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}s.drawImage(t,0,0)}return i}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return i},t.prototype.cloneNode=function(t){if(_r(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var e=t.ownerDocument.defaultView;if(e&&Tr(t)&&(Er(t)||Sr(t))){var n=this.createElementClone(t);n.style.transitionProperty="none";var i=e.getComputedStyle(t),r=e.getComputedStyle(t,":before"),s=e.getComputedStyle(t,":after");this.referenceElement===t&&Er(n)&&(this.clonedReferenceElement=n),xr(n)&&cs(n);for(var a=this.counters.parse(new vi(this.context,i)),A=this.resolvePseudoContent(t,n,r,Ii.BEFORE),o=t.firstChild;o;o=o.nextSibling)Tr(o)&&(Pr(o)||o.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(o))||this.options.copyStyles&&Tr(o)&&Dr(o)||n.appendChild(this.cloneNode(o));A&&n.insertBefore(A,n.firstChild);var u=this.resolvePseudoContent(t,n,s,Ii.AFTER);return u&&n.appendChild(u),this.counters.pop(a),i&&(this.options.copyStyles||Sr(t))&&!Or(t)&&ss(i,n),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(Hr(t)||Rr(t))&&(Hr(n)||Rr(n))&&(n.value=t.value),n}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,i){var r=this;if(n){var s=n.content,a=e.ownerDocument;if(a&&s&&"none"!==s&&"-moz-alt-content"!==s&&"none"!==n.display){this.counters.parse(new vi(this.context,n));var A=new mi(this.context,n),o=a.createElement("html2canvaspseudoelement");ss(n,o),A.content.forEach(function(e){if(0===e.type)o.appendChild(a.createTextNode(e.value));else if(22===e.type){var n=a.createElement("img");n.src=e.value,n.style.opacity="1",o.appendChild(n)}else if(18===e.type){if("attr"===e.name){var i=e.values.filter(Lt);i.length&&o.appendChild(a.createTextNode(t.getAttribute(i[0].value)||""))}else if("counter"===e.name){var s=e.values.filter(Ht),u=s[0],l=s[1];if(u&&Lt(u)){var c=r.counters.getCounterValue(u.value),h=l&&Lt(l)?vn.parse(r.context,l.value):pn.DECIMAL;o.appendChild(a.createTextNode(Yr(c,h,!1)))}}else if("counters"===e.name){var d=e.values.filter(Ht),f=(u=d[0],d[1]);l=d[2];if(u&&Lt(u)){var p=r.counters.getCounterValues(u.value),g=l&&Lt(l)?vn.parse(r.context,l.value):pn.DECIMAL,m=f&&0===f.type?f.value:"",v=p.map(function(t){return Yr(t,g,!1)}).join(m);o.appendChild(a.createTextNode(v))}}}else if(20===e.type)switch(e.value){case"open-quote":o.appendChild(a.createTextNode(ci(A.quotes,r.quoteDepth++,!0)));break;case"close-quote":o.appendChild(a.createTextNode(ci(A.quotes,--r.quoteDepth,!1)));break;default:o.appendChild(a.createTextNode(e.value))}}),o.className=us+" "+ls;var u=i===Ii.BEFORE?" "+us:" "+ls;return Sr(e)?e.className.baseValue+=u:e.className+=u,o}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(Ii||(Ii={}));var Zr,ts=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),t.body.appendChild(n),n},es=function(t){return new Promise(function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()})},ns=function(t){return Promise.all([].slice.call(t.images,0).map(es))},is=function(t){return new Promise(function(e,n){var i=t.contentWindow;if(!i)return n("No window assigned for iframe");var r=i.document;i.onload=t.onload=function(){i.onload=t.onload=null;var n=setInterval(function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(n),e(t))},50)}})},rs=["all","d","content"],ss=function(t,e){for(var n=t.length-1;n>=0;n--){var i=t.item(n);-1===rs.indexOf(i)&&e.style.setProperty(i,t.getPropertyValue(i))}return e},as=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},As=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},os=function(t){var e=t[0],n=t[1],i=t[2];e.scrollLeft=n,e.scrollTop=i},us="___html2canvas___pseudoelement_before",ls="___html2canvas___pseudoelement_after",cs=function(t){hs(t,"."+us+':before{\n content: "" !important;\n display: none !important;\n}\n .'+ls+':after{\n content: "" !important;\n display: none !important;\n}')},hs=function(t,e){var n=t.ownerDocument;if(n){var i=n.createElement("style");i.textContent=e,t.appendChild(i)}},ds=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),fs=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:bs(t)||vs(t)?((this._cache[t]=this.loadImage(t)).catch(function(){}),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return i(this,void 0,void 0,function(){var e,n,i,s,a=this;return r(this,function(r){switch(r.label){case 0:return e=ds.isSameOrigin(t),n=!ys(t)&&!0===this._options.useCORS&&ji.SUPPORT_CORS_IMAGES&&!e,i=!ys(t)&&!e&&!bs(t)&&"string"==typeof this._options.proxy&&ji.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||ys(t)||bs(t)||i||n?(s=t,i?[4,this.proxy(s)]:[3,2]):[2];case 1:s=r.sent(),r.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(t,e){var i=new Image;i.onload=function(){return t(i)},i.onerror=e,(Bs(s)||n)&&(i.crossOrigin="anonymous"),i.src=s,!0===i.complete&&setTimeout(function(){return t(i)},500),a._options.imageTimeout>0&&setTimeout(function(){return e("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,r.sent()]}})})},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=t.substring(0,256);return new Promise(function(r,s){var a=ji.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(200===A.status)if("text"===a)r(A.response);else{var t=new FileReader;t.addEventListener("load",function(){return r(t.result)},!1),t.addEventListener("error",function(t){return s(t)},!1),t.readAsDataURL(A.response)}else s("Failed to proxy resource "+i+" with status code "+A.status)},A.onerror=s;var o=n.indexOf("?")>-1?"&":"?";if(A.open("GET",""+n+o+"url="+encodeURIComponent(t)+"&responseType="+a),"text"!==a&&A instanceof XMLHttpRequest&&(A.responseType=a),e._options.imageTimeout){var u=e._options.imageTimeout;A.timeout=u,A.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+i)}}A.send()})},t}(),ps=/^data:image\/svg\+xml/i,gs=/^data:image\/.*;base64,/i,ms=/^data:image\/.*/i,vs=function(t){return ji.SUPPORT_SVG_DRAWING||!ws(t)},ys=function(t){return ms.test(t)},Bs=function(t){return gs.test(t)},bs=function(t){return"blob"===t.substr(0,4)},ws=function(t){return"svg"===t.substr(-3).toLowerCase()||ps.test(t)};!function(t){t[t.VECTOR=0]="VECTOR",t[t.BEZIER_CURVE=1]="BEZIER_CURVE"}(Zr||(Zr={}));var Cs,_s=function(t,e){return t.length===e.length&&t.some(function(t,n){return t===e[n]})},Ts=function(){function t(t,e){this.type=Zr.VECTOR,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),Es=function(t,e,n){return new Ts(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Ss=function(){function t(t,e,n,i){this.type=Zr.BEZIER_CURVE,this.start=t,this.startControl=e,this.endControl=n,this.end=i}return t.prototype.subdivide=function(e,n){var i=Es(this.start,this.startControl,e),r=Es(this.startControl,this.endControl,e),s=Es(this.endControl,this.end,e),a=Es(i,r,e),A=Es(r,s,e),o=Es(a,A,e);return n?new t(this.start,i,a,o):new t(o,A,s,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),ks=function(t){return t.type===Zr.BEZIER_CURVE},Us=function(){return function(t){var e=t.styles,n=t.bounds,i=Wt(e.borderTopLeftRadius,n.width,n.height),r=i[0],s=i[1],a=Wt(e.borderTopRightRadius,n.width,n.height),A=a[0],o=a[1],u=Wt(e.borderBottomRightRadius,n.width,n.height),l=u[0],c=u[1],h=Wt(e.borderBottomLeftRadius,n.width,n.height),d=h[0],f=h[1],p=[];p.push((r+A)/n.width),p.push((d+l)/n.width),p.push((s+f)/n.height),p.push((o+c)/n.height);var g=Math.max.apply(Math,p);g>1&&(r/=g,s/=g,A/=g,o/=g,l/=g,c/=g,d/=g,f/=g);var m=n.width-A,v=n.height-c,y=n.width-l,B=n.height-f,b=e.borderTopWidth,w=e.borderRightWidth,C=e.borderBottomWidth,_=e.borderLeftWidth,T=zt(e.paddingTop,t.bounds.width),E=zt(e.paddingRight,t.bounds.width),S=zt(e.paddingBottom,t.bounds.width),k=zt(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||s>0?Is(n.left+_/3,n.top+b/3,r-_/3,s-b/3,Cs.TOP_LEFT):new Ts(n.left+_/3,n.top+b/3),this.topRightBorderDoubleOuterBox=r>0||s>0?Is(n.left+m,n.top+b/3,A-w/3,o-b/3,Cs.TOP_RIGHT):new Ts(n.left+n.width-w/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=l>0||c>0?Is(n.left+y,n.top+v,l-w/3,c-C/3,Cs.BOTTOM_RIGHT):new Ts(n.left+n.width-w/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||f>0?Is(n.left+_/3,n.top+B,d-_/3,f-C/3,Cs.BOTTOM_LEFT):new Ts(n.left+_/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=r>0||s>0?Is(n.left+2*_/3,n.top+2*b/3,r-2*_/3,s-2*b/3,Cs.TOP_LEFT):new Ts(n.left+2*_/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=r>0||s>0?Is(n.left+m,n.top+2*b/3,A-2*w/3,o-2*b/3,Cs.TOP_RIGHT):new Ts(n.left+n.width-2*w/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=l>0||c>0?Is(n.left+y,n.top+v,l-2*w/3,c-2*C/3,Cs.BOTTOM_RIGHT):new Ts(n.left+n.width-2*w/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||f>0?Is(n.left+2*_/3,n.top+B,d-2*_/3,f-2*C/3,Cs.BOTTOM_LEFT):new Ts(n.left+2*_/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=r>0||s>0?Is(n.left+_/2,n.top+b/2,r-_/2,s-b/2,Cs.TOP_LEFT):new Ts(n.left+_/2,n.top+b/2),this.topRightBorderStroke=r>0||s>0?Is(n.left+m,n.top+b/2,A-w/2,o-b/2,Cs.TOP_RIGHT):new Ts(n.left+n.width-w/2,n.top+b/2),this.bottomRightBorderStroke=l>0||c>0?Is(n.left+y,n.top+v,l-w/2,c-C/2,Cs.BOTTOM_RIGHT):new Ts(n.left+n.width-w/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=d>0||f>0?Is(n.left+_/2,n.top+B,d-_/2,f-C/2,Cs.BOTTOM_LEFT):new Ts(n.left+_/2,n.top+n.height-C/2),this.topLeftBorderBox=r>0||s>0?Is(n.left,n.top,r,s,Cs.TOP_LEFT):new Ts(n.left,n.top),this.topRightBorderBox=A>0||o>0?Is(n.left+m,n.top,A,o,Cs.TOP_RIGHT):new Ts(n.left+n.width,n.top),this.bottomRightBorderBox=l>0||c>0?Is(n.left+y,n.top+v,l,c,Cs.BOTTOM_RIGHT):new Ts(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||f>0?Is(n.left,n.top+B,d,f,Cs.BOTTOM_LEFT):new Ts(n.left,n.top+n.height),this.topLeftPaddingBox=r>0||s>0?Is(n.left+_,n.top+b,Math.max(0,r-_),Math.max(0,s-b),Cs.TOP_LEFT):new Ts(n.left+_,n.top+b),this.topRightPaddingBox=A>0||o>0?Is(n.left+Math.min(m,n.width-w),n.top+b,m>n.width+w?0:Math.max(0,A-w),Math.max(0,o-b),Cs.TOP_RIGHT):new Ts(n.left+n.width-w,n.top+b),this.bottomRightPaddingBox=l>0||c>0?Is(n.left+Math.min(y,n.width-_),n.top+Math.min(v,n.height-C),Math.max(0,l-w),Math.max(0,c-C),Cs.BOTTOM_RIGHT):new Ts(n.left+n.width-w,n.top+n.height-C),this.bottomLeftPaddingBox=d>0||f>0?Is(n.left+_,n.top+Math.min(B,n.height-C),Math.max(0,d-_),Math.max(0,f-C),Cs.BOTTOM_LEFT):new Ts(n.left+_,n.top+n.height-C),this.topLeftContentBox=r>0||s>0?Is(n.left+_+k,n.top+b+T,Math.max(0,r-(_+k)),Math.max(0,s-(b+T)),Cs.TOP_LEFT):new Ts(n.left+_+k,n.top+b+T),this.topRightContentBox=A>0||o>0?Is(n.left+Math.min(m,n.width+_+k),n.top+b+T,m>n.width+_+k?0:A-_+k,o-(b+T),Cs.TOP_RIGHT):new Ts(n.left+n.width-(w+E),n.top+b+T),this.bottomRightContentBox=l>0||c>0?Is(n.left+Math.min(y,n.width-(_+k)),n.top+Math.min(v,n.height+b+T),Math.max(0,l-(w+E)),c-(C+S),Cs.BOTTOM_RIGHT):new Ts(n.left+n.width-(w+E),n.top+n.height-(C+S)),this.bottomLeftContentBox=d>0||f>0?Is(n.left+_+k,n.top+B,Math.max(0,d-(_+k)),f-(C+S),Cs.BOTTOM_LEFT):new Ts(n.left+_+k,n.top+n.height-(C+S))}}();!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Cs||(Cs={}));var Is=function(t,e,n,i,r){var s=(Math.sqrt(2)-1)/3*4,a=n*s,A=i*s,o=t+n,u=e+i;switch(r){case Cs.TOP_LEFT:return new Ss(new Ts(t,u),new Ts(t,u-A),new Ts(o-a,e),new Ts(o,e));case Cs.TOP_RIGHT:return new Ss(new Ts(t,e),new Ts(t+a,e),new Ts(o,u-A),new Ts(o,u));case Cs.BOTTOM_RIGHT:return new Ss(new Ts(o,e),new Ts(o,e+A),new Ts(t+a,u),new Ts(t,u));case Cs.BOTTOM_LEFT:default:return new Ss(new Ts(o,u),new Ts(o-a,u),new Ts(t,e+A),new Ts(t,e))}},Fs=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},xs=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Qs=function(){return function(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}}(),Ls=function(){return function(t,e){this.path=t,this.target=e,this.type=1}}(),Os=function(){return function(t){this.opacity=t,this.type=2,this.target=6}}(),Ds=function(t){return 1===t.type},Ps=function(){return function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),Hs=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Us(this.container),this.container.styles.opacity<1&&this.effects.push(new Os(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new Qs(n,i,r))}if(this.container.styles.overflowX!==mn.VISIBLE){var s=Fs(this.curves),a=xs(this.curves);_s(s,a)?this.effects.push(new Ls(s,6)):(this.effects.push(new Ls(s,2)),this.effects.push(new Ls(a,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[xn.ABSOLUTE,xn.FIXED].indexOf(this.container.styles.position),n=this.parent,i=this.effects.slice(0);n;){var r=n.effects.filter(function(t){return!Ds(t)});if(e||n.container.styles.position!==xn.STATIC||!n.parent){if(i.unshift.apply(i,r),e=-1===[xn.ABSOLUTE,xn.FIXED].indexOf(n.container.styles.position),n.container.styles.overflowX!==mn.VISIBLE){var s=Fs(n.curves),a=xs(n.curves);_s(s,a)||i.unshift(new Ls(a,6))}}else i.unshift.apply(i,r);n=n.parent}return i.filter(function(e){return si(e.target,t)})},t}(),Rs=function(t,e,n,i){t.container.elements.forEach(function(r){var s=si(r.flags,4),a=si(r.flags,2),A=new Hs(r,t);si(r.styles.display,2048)&&i.push(A);var o=si(r.flags,8)?[]:i;if(s||a){var u=s||r.styles.isPositioned()?n:e,l=new Ps(A);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var c=r.styles.zIndex.order;if(c<0){var h=0;u.negativeZIndex.some(function(t,e){return c>t.element.container.styles.zIndex.order?(h=e,!1):h>0}),u.negativeZIndex.splice(h,0,l)}else if(c>0){var d=0;u.positiveZIndex.some(function(t,e){return c>=t.element.container.styles.zIndex.order?(d=e+1,!1):d>0}),u.positiveZIndex.splice(d,0,l)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else r.styles.isFloating()?u.nonPositionedFloats.push(l):u.nonPositionedInlineLevel.push(l);Rs(A,l,s?l:n,o)}else r.styles.isInlineLevel()?e.inlineLevel.push(A):e.nonInlineLevel.push(A),Rs(A,e,n,o);si(r.flags,8)&&Ms(r,o)})},Ms=function(t,e){for(var n=t instanceof ar?t.start:1,i=t instanceof ar&&t.reversed,r=0;r<e.length;r++){var s=e[r];s.container instanceof sr&&"number"==typeof s.container.value&&0!==s.container.value&&(n=s.container.value),s.listValue=Yr(n,s.container.styles.listStyleType,!0),n+=i?-1:1}},Ns=function(t,e){switch(e){case 0:return js(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return js(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return js(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return js(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Ks=function(t,e){var n=[];return ks(t)?n.push(t.subdivide(.5,!1)):n.push(t),ks(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},js=function(t,e,n,i){var r=[];return ks(t)?r.push(t.subdivide(.5,!1)):r.push(t),ks(n)?r.push(n.subdivide(.5,!0)):r.push(n),ks(i)?r.push(i.subdivide(.5,!0).reverse()):r.push(i),ks(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},Vs=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Gs=function(t){var e=t.styles,n=t.bounds,i=zt(e.paddingLeft,n.width),r=zt(e.paddingRight,n.width),s=zt(e.paddingTop,n.width),a=zt(e.paddingBottom,n.width);return n.add(i+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+i+r),-(e.borderTopWidth+e.borderBottomWidth+s+a))},$s=function(t,e,n){var i,r,s=(i=qs(t.styles.backgroundOrigin,e),r=t,0===i?r.bounds:2===i?Gs(r):Vs(r)),a=function(t,e){return t===ae.BORDER_BOX?e.bounds:t===ae.CONTENT_BOX?Gs(e):Vs(e)}(qs(t.styles.backgroundClip,e),t),A=Xs(qs(t.styles.backgroundSize,e),n,s),o=A[0],u=A[1],l=Wt(qs(t.styles.backgroundPosition,e),s.width-o,s.height-u);return[Ys(qs(t.styles.backgroundRepeat,e),l,A,s,a),Math.round(s.left+l[0]),Math.round(s.top+l[1]),o,u]},Ws=function(t){return Lt(t)&&t.value===Ue.AUTO},zs=function(t){return"number"==typeof t},Xs=function(t,e,n){var i=e[0],r=e[1],s=e[2],a=t[0],A=t[1];if(!a)return[0,0];if(Kt(a)&&A&&Kt(A))return[zt(a,n.width),zt(A,n.height)];var o=zs(s);if(Lt(a)&&(a.value===Ue.CONTAIN||a.value===Ue.COVER))return zs(s)?n.width/n.height<s!=(a.value===Ue.COVER)?[n.width,n.width/s]:[n.height*s,n.height]:[n.width,n.height];var u=zs(i),l=zs(r),c=u||l;if(Ws(a)&&(!A||Ws(A)))return u&&l?[i,r]:o||c?c&&o?[u?i:r*s,l?r:i/s]:[u?i:n.width,l?r:n.height]:[n.width,n.height];if(o){var h=0,d=0;return Kt(a)?h=zt(a,n.width):Kt(A)&&(d=zt(A,n.height)),Ws(a)?h=d*s:A&&!Ws(A)||(d=h/s),[h,d]}var f=null,p=null;if(Kt(a)?f=zt(a,n.width):A&&Kt(A)&&(p=zt(A,n.height)),null===f||A&&!Ws(A)||(p=u&&l?f/i*r:n.height),null!==p&&Ws(a)&&(f=u&&l?p/r*i:n.width),null!==f&&null!==p)return[f,p];throw new Error("Unable to calculate background-size for element")},qs=function(t,e){var n=t[e];return void 0===n?t[0]:n},Ys=function(t,e,n,i,r){var s=e[0],a=e[1],A=n[0],o=n[1];switch(t){case _e.REPEAT_X:return[new Ts(Math.round(i.left),Math.round(i.top+a)),new Ts(Math.round(i.left+i.width),Math.round(i.top+a)),new Ts(Math.round(i.left+i.width),Math.round(o+i.top+a)),new Ts(Math.round(i.left),Math.round(o+i.top+a))];case _e.REPEAT_Y:return[new Ts(Math.round(i.left+s),Math.round(i.top)),new Ts(Math.round(i.left+s+A),Math.round(i.top)),new Ts(Math.round(i.left+s+A),Math.round(i.height+i.top)),new Ts(Math.round(i.left+s),Math.round(i.height+i.top))];case _e.NO_REPEAT:return[new Ts(Math.round(i.left+s),Math.round(i.top+a)),new Ts(Math.round(i.left+s+A),Math.round(i.top+a)),new Ts(Math.round(i.left+s+A),Math.round(i.top+a+o)),new Ts(Math.round(i.left+s),Math.round(i.top+a+o))];default:return[new Ts(Math.round(r.left),Math.round(r.top)),new Ts(Math.round(r.left+r.width),Math.round(r.top)),new Ts(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Ts(Math.round(r.left),Math.round(r.height+r.top))]}},Js=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),i=this._document.createElement("img"),r=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",s.appendChild(n),i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(r),n.appendChild(i);var a=i.offsetTop-r.offsetTop+2;n.removeChild(r),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",i.style.verticalAlign="super";var A=i.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:A}},t.prototype.getMetrics=function(t,e){var n=t+" "+e;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},t}(),Zs=function(){return function(t,e){this.context=t,this.options=e}}(),ta=function(t){function n(e,n){var i=t.call(this,e,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new Js(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return e(n,t),n.prototype.applyEffects=function(t){for(var e=this;this._activeEffects.length;)this.popEffect();t.forEach(function(t){return e.applyEffect(t)})},n.prototype.applyEffect=function(t){this.ctx.save(),function(t){return 2===t.type}(t)&&(this.ctx.globalAlpha=t.opacity),function(t){return 0===t.type}(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Ds(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(t){return i(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return t.element.container.styles.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(t){return i(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return si(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(t,e,n){var i=this;0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n):Ri(t.text).reduce(function(e,r){return i.ctx.fillText(r,e,t.bounds.top+n),e+i.ctx.measureText(r).width},t.bounds.left)},n.prototype.createFontStyle=function(t){var e=t.fontVariant.filter(function(t){return"normal"===t||"small-caps"===t}).join(""),n=t.fontFamily.join(", "),i=xt(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,i,n].join(" "),n,i]},n.prototype.renderTextNode=function(t,e){return i(this,void 0,void 0,function(){var n,i,s,a,A,o,u,l,c=this;return r(this,function(r){return n=this.createFontStyle(e),i=n[0],s=n[1],a=n[2],this.ctx.font=i,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",A=this.fontMetrics.getMetrics(s,a),o=A.baseline,u=A.middle,l=e.paintOrder,t.textBounds.forEach(function(t){l.forEach(function(n){switch(n){case ii.FILL:c.ctx.fillStyle=ee(e.color),c.renderTextWithLetterSpacing(t,e.letterSpacing,o);var i=e.textShadow;i.length&&t.text.trim().length&&(i.slice(0).reverse().forEach(function(n){c.ctx.shadowColor=ee(n.color),c.ctx.shadowOffsetX=n.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=n.offsetY.number*c.options.scale,c.ctx.shadowBlur=n.blur.number,c.renderTextWithLetterSpacing(t,e.letterSpacing,o)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),e.textDecorationLine.length&&(c.ctx.fillStyle=ee(e.textDecorationColor||e.color),e.textDecorationLine.forEach(function(e){switch(e){case 1:c.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+o),t.bounds.width,1);break;case 2:c.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:c.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+u),t.bounds.width,1)}}));break;case ii.STROKE:e.webkitTextStrokeWidth&&t.text.trim().length&&(c.ctx.strokeStyle=ee(e.webkitTextStrokeColor),c.ctx.lineWidth=e.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+o)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(t,e,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Gs(t),r=xs(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(t){return i(this,void 0,void 0,function(){var e,i,s,A,o,u,l,c,h,d,f,p,g,m,v,y,B,b;return r(this,function(r){switch(r.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,i=t.curves,s=e.styles,A=0,o=e.textNodes,r.label=1;case 1:return A<o.length?(u=o[A],[4,this.renderTextNode(u,s)]):[3,4];case 2:r.sent(),r.label=3;case 3:return A++,[3,1];case 4:if(!(e instanceof nr))return[3,8];r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return v=r.sent(),this.renderReplacedElement(e,i,v),[3,8];case 7:return r.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof ir&&this.renderReplacedElement(e,i,e.canvas),!(e instanceof rr))return[3,12];r.label=9;case 9:return r.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return v=r.sent(),this.renderReplacedElement(e,i,v),[3,12];case 11:return r.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof mr&&e.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:l=r.sent(),e.width&&e.height&&this.ctx.drawImage(l,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),r.label=14;case 14:if(e instanceof fr&&(c=Math.min(e.bounds.width,e.bounds.height),e.type===cr?e.checked&&(this.ctx.save(),this.path([new Ts(e.bounds.left+.39363*c,e.bounds.top+.79*c),new Ts(e.bounds.left+.16*c,e.bounds.top+.5549*c),new Ts(e.bounds.left+.27347*c,e.bounds.top+.44071*c),new Ts(e.bounds.left+.39694*c,e.bounds.top+.5649*c),new Ts(e.bounds.left+.72983*c,e.bounds.top+.23*c),new Ts(e.bounds.left+.84*c,e.bounds.top+.34085*c),new Ts(e.bounds.left+.39363*c,e.bounds.top+.79*c)]),this.ctx.fillStyle=ee(707406591),this.ctx.fill(),this.ctx.restore()):e.type===hr&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+c/2,e.bounds.top+c/2,c/4,0,2*Math.PI,!0),this.ctx.fillStyle=ee(707406591),this.ctx.fill(),this.ctx.restore())),ea(e)&&e.value.length){switch(h=this.createFontStyle(s),B=h[0],d=h[1],f=this.fontMetrics.getMetrics(B,d).baseline,this.ctx.font=B,this.ctx.fillStyle=ee(s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ia(e.styles.textAlign),b=Gs(e),p=0,e.styles.textAlign){case _n.CENTER:p+=b.width/2;break;case _n.RIGHT:p+=b.width}g=b.add(p,0,0,-b.height/2+1),this.ctx.save(),this.path([new Ts(b.left,b.top),new Ts(b.left+b.width,b.top),new Ts(b.left+b.width,b.top+b.height),new Ts(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Vi(e.value,g),s.letterSpacing,f),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!si(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if((m=e.styles.listStyleImage).type!==ce.URL)return[3,18];v=void 0,y=m.url,r.label=15;case 15:return r.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return v=r.sent(),this.ctx.drawImage(v,e.bounds.left-(v.width+10),e.bounds.top),[3,18];case 17:return r.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:t.listValue&&e.styles.listStyleType!==pn.NONE&&(B=this.createFontStyle(s)[0],this.ctx.font=B,this.ctx.fillStyle=ee(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new a(e.bounds.left,e.bounds.top+zt(e.styles.paddingTop,e.bounds.width),e.bounds.width,dn(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Vi(t.listValue,b),s.letterSpacing,dn(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),r.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(t){return i(this,void 0,void 0,function(){var e,n,i,s,a,A,o,u,l,c,h,d,f,p,g;return r(this,function(r){switch(r.label){case 0:return si(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:r.sent(),e=0,n=t.negativeZIndex,r.label=2;case 2:return e<n.length?(g=n[e],[4,this.renderStack(g)]):[3,5];case 3:r.sent(),r.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:r.sent(),i=0,s=t.nonInlineLevel,r.label=7;case 7:return i<s.length?(g=s[i],[4,this.renderNode(g)]):[3,10];case 8:r.sent(),r.label=9;case 9:return i++,[3,7];case 10:a=0,A=t.nonPositionedFloats,r.label=11;case 11:return a<A.length?(g=A[a],[4,this.renderStack(g)]):[3,14];case 12:r.sent(),r.label=13;case 13:return a++,[3,11];case 14:o=0,u=t.nonPositionedInlineLevel,r.label=15;case 15:return o<u.length?(g=u[o],[4,this.renderStack(g)]):[3,18];case 16:r.sent(),r.label=17;case 17:return o++,[3,15];case 18:l=0,c=t.inlineLevel,r.label=19;case 19:return l<c.length?(g=c[l],[4,this.renderNode(g)]):[3,22];case 20:r.sent(),r.label=21;case 21:return l++,[3,19];case 22:h=0,d=t.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return h<d.length?(g=d[h],[4,this.renderStack(g)]):[3,26];case 24:r.sent(),r.label=25;case 25:return h++,[3,23];case 26:f=0,p=t.positiveZIndex,r.label=27;case 27:return f<p.length?(g=p[f],[4,this.renderStack(g)]):[3,30];case 28:r.sent(),r.label=29;case 29:return f++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},n.prototype.formatPath=function(t){var e=this;t.forEach(function(t,n){var i=ks(t)?t.start:t;0===n?e.ctx.moveTo(i.x,i.y):e.ctx.lineTo(i.x,i.y),ks(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},n.prototype.renderRepeat=function(t,e,n,i){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},n.prototype.resizeImage=function(t,e,n){var i;if(t.width===e&&t.height===n)return t;var r=(null!==(i=this.canvas.ownerDocument)&&void 0!==i?i:document).createElement("canvas");return r.width=Math.max(1,e),r.height=Math.max(1,n),r.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,n),r},n.prototype.renderBackgroundImage=function(t){return i(this,void 0,void 0,function(){var e,n,i,s,a,A;return r(this,function(o){switch(o.label){case 0:e=t.styles.backgroundImage.length-1,n=function(n){var s,a,A,o,u,l,c,h,d,f,p,g,m,v,y,B,b,w,C,_,T,E,S,k,U,I,F,x,Q,L,O;return r(this,function(r){switch(r.label){case 0:if(n.type!==ce.URL)return[3,5];s=void 0,a=n.url,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.context.cache.match(a)];case 2:return s=r.sent(),[3,4];case 3:return r.sent(),i.context.logger.error("Error loading background-image "+a),[3,4];case 4:return s&&(A=$s(t,e,[s.width,s.height,s.width/s.height]),B=A[0],E=A[1],S=A[2],C=A[3],_=A[4],v=i.ctx.createPattern(i.resizeImage(s,C,_),"repeat"),i.renderRepeat(B,v,E,S)),[3,6];case 5:n.type===ce.LINEAR_GRADIENT?(o=$s(t,e,[null,null,null]),B=o[0],E=o[1],S=o[2],C=o[3],_=o[4],u=ge(n.angle,C,_),l=u[0],c=u[1],h=u[2],d=u[3],f=u[4],(p=document.createElement("canvas")).width=C,p.height=_,g=p.getContext("2d"),m=g.createLinearGradient(c,d,h,f),pe(n.stops,l).forEach(function(t){return m.addColorStop(t.stop,ee(t.color))}),g.fillStyle=m,g.fillRect(0,0,C,_),C>0&&_>0&&(v=i.ctx.createPattern(p,"repeat"),i.renderRepeat(B,v,E,S))):function(t){return t.type===ce.RADIAL_GRADIENT}(n)&&(y=$s(t,e,[null,null,null]),B=y[0],b=y[1],w=y[2],C=y[3],_=y[4],T=0===n.position.length?[Gt]:n.position,E=zt(T[0],C),S=zt(T[T.length-1],_),k=function(t,e,n,i,r){var s=0,a=0;switch(t.size){case we.CLOSEST_SIDE:t.shape===be.CIRCLE?s=a=Math.min(Math.abs(e),Math.abs(e-i),Math.abs(n),Math.abs(n-r)):t.shape===be.ELLIPSE&&(s=Math.min(Math.abs(e),Math.abs(e-i)),a=Math.min(Math.abs(n),Math.abs(n-r)));break;case we.CLOSEST_CORNER:if(t.shape===be.CIRCLE)s=a=Math.min(me(e,n),me(e,n-r),me(e-i,n),me(e-i,n-r));else if(t.shape===be.ELLIPSE){var A=Math.min(Math.abs(n),Math.abs(n-r))/Math.min(Math.abs(e),Math.abs(e-i)),o=ve(i,r,e,n,!0),u=o[0],l=o[1];a=A*(s=me(u-e,(l-n)/A))}break;case we.FARTHEST_SIDE:t.shape===be.CIRCLE?s=a=Math.max(Math.abs(e),Math.abs(e-i),Math.abs(n),Math.abs(n-r)):t.shape===be.ELLIPSE&&(s=Math.max(Math.abs(e),Math.abs(e-i)),a=Math.max(Math.abs(n),Math.abs(n-r)));break;case we.FARTHEST_CORNER:if(t.shape===be.CIRCLE)s=a=Math.max(me(e,n),me(e,n-r),me(e-i,n),me(e-i,n-r));else if(t.shape===be.ELLIPSE){A=Math.max(Math.abs(n),Math.abs(n-r))/Math.max(Math.abs(e),Math.abs(e-i));var c=ve(i,r,e,n,!1);u=c[0],l=c[1],a=A*(s=me(u-e,(l-n)/A))}}return Array.isArray(t.size)&&(s=zt(t.size[0],i),a=2===t.size.length?zt(t.size[1],r):s),[s,a]}(n,E,S,C,_),U=k[0],I=k[1],U>0&&I>0&&(F=i.ctx.createRadialGradient(b+E,w+S,0,b+E,w+S,U),pe(n.stops,2*U).forEach(function(t){return F.addColorStop(t.stop,ee(t.color))}),i.path(B),i.ctx.fillStyle=F,U!==I?(x=t.bounds.left+.5*t.bounds.width,Q=t.bounds.top+.5*t.bounds.height,O=1/(L=I/U),i.ctx.save(),i.ctx.translate(x,Q),i.ctx.transform(1,0,0,L,0,0),i.ctx.translate(-x,-Q),i.ctx.fillRect(b,O*(w-Q)+Q,C,_*O),i.ctx.restore()):i.ctx.fill())),r.label=6;case 6:return e--,[2]}})},i=this,s=0,a=t.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return s<a.length?(A=a[s],[5,n(A)]):[3,4];case 2:o.sent(),o.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(t,e,n){return i(this,void 0,void 0,function(){return r(this,function(i){return this.path(Ns(n,e)),this.ctx.fillStyle=ee(t),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(t,e,n,s){return i(this,void 0,void 0,function(){var i,a;return r(this,function(r){switch(r.label){case 0:return e<3?[4,this.renderSolidBorder(t,n,s)]:[3,2];case 1:return r.sent(),[2];case 2:return i=function(t,e){switch(e){case 0:return js(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return js(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return js(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return js(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}}(s,n),this.path(i),this.ctx.fillStyle=ee(t),this.ctx.fill(),a=function(t,e){switch(e){case 0:return js(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return js(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return js(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return js(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}}(s,n),this.path(a),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(t){return i(this,void 0,void 0,function(){var e,n,i,s,a,A,o,u,l=this;return r(this,function(r){switch(r.label){case 0:return this.applyEffects(t.getEffects(2)),e=t.container.styles,n=!te(e.backgroundColor)||e.backgroundImage.length,i=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],s=na(qs(e.backgroundClip,0),t.curves),n||e.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),te(e.backgroundColor)||(this.ctx.fillStyle=ee(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:r.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(e){l.ctx.save();var n,i,r,s,a,A=Fs(t.curves),o=e.inset?0:1e4,u=(n=A,i=-o+(e.inset?1:-1)*e.spread.number,r=(e.inset?1:-1)*e.spread.number,s=e.spread.number*(e.inset?-2:2),a=e.spread.number*(e.inset?-2:2),n.map(function(t,e){switch(e){case 0:return t.add(i,r);case 1:return t.add(i+s,r);case 2:return t.add(i+s,r+a);case 3:return t.add(i,r+a)}return t}));e.inset?(l.path(A),l.ctx.clip(),l.mask(u)):(l.mask(A),l.ctx.clip(),l.path(u)),l.ctx.shadowOffsetX=e.offsetX.number+o,l.ctx.shadowOffsetY=e.offsetY.number,l.ctx.shadowColor=ee(e.color),l.ctx.shadowBlur=e.blur.number,l.ctx.fillStyle=e.inset?ee(e.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()}),r.label=2;case 2:a=0,A=0,o=i,r.label=3;case 3:return A<o.length?(u=o[A]).style!==xe.NONE&&!te(u.color)&&u.width>0?u.style!==xe.DASHED?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,a,t.curves,xe.DASHED)]:[3,11]:[3,13];case 4:return r.sent(),[3,11];case 5:return u.style!==xe.DOTTED?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,a,t.curves,xe.DOTTED)];case 6:return r.sent(),[3,11];case 7:return u.style!==xe.DOUBLE?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,a,t.curves)];case 8:return r.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,a,t.curves)];case 10:r.sent(),r.label=11;case 11:a++,r.label=12;case 12:return A++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(t,e,n,s,a){return i(this,void 0,void 0,function(){var i,A,o,u,l,c,h,d,f,p,g,m,v,y,B,b;return r(this,function(r){return this.ctx.save(),i=function(t,e){switch(e){case 0:return Ks(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Ks(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Ks(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Ks(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}}(s,n),A=Ns(s,n),a===xe.DASHED&&(this.path(A),this.ctx.clip()),ks(A[0])?(o=A[0].start.x,u=A[0].start.y):(o=A[0].x,u=A[0].y),ks(A[1])?(l=A[1].end.x,c=A[1].end.y):(l=A[1].x,c=A[1].y),h=0===n||2===n?Math.abs(o-l):Math.abs(u-c),this.ctx.beginPath(),a===xe.DOTTED?this.formatPath(i):this.formatPath(A.slice(0,2)),d=e<3?3*e:2*e,f=e<3?2*e:e,a===xe.DOTTED&&(d=e,f=e),p=!0,h<=2*d?p=!1:h<=2*d+f?(d*=g=h/(2*d+f),f*=g):(m=Math.floor((h+f)/(d+f)),v=(h-m*d)/(m-1),f=(y=(h-(m+1)*d)/m)<=0||Math.abs(f-v)<Math.abs(f-y)?v:y),p&&(a===xe.DOTTED?this.ctx.setLineDash([0,d+f]):this.ctx.setLineDash([d,f])),a===xe.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=ee(t),this.ctx.stroke(),this.ctx.setLineDash([]),a===xe.DASHED&&(ks(A[0])&&(B=A[3],b=A[0],this.ctx.beginPath(),this.formatPath([new Ts(B.end.x,B.end.y),new Ts(b.start.x,b.start.y)]),this.ctx.stroke()),ks(A[1])&&(B=A[1],b=A[2],this.ctx.beginPath(),this.formatPath([new Ts(B.end.x,B.end.y),new Ts(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(t){return i(this,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ee(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),i=new Hs(t,null),r=new Ps(i),Rs(i,r,r,s=[]),Ms(i.container,s),e=r,[4,this.renderStack(e)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}var i,r,s})})},n}(Zs),ea=function(t){return t instanceof gr||(t instanceof pr||t instanceof fr&&t.type!==hr&&t.type!==cr)},na=function(t,e){switch(t){case ae.BORDER_BOX:return Fs(e);case ae.CONTENT_BOX:return function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]}(e);case ae.PADDING_BOX:default:return xs(e)}},ia=function(t){switch(t){case _n.CENTER:return"center";case _n.RIGHT:return"right";case _n.LEFT:default:return"left"}},ra=function(t){function n(e,n){var i=t.call(this,e,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return e(n,t),n.prototype.render=function(t){return i(this,void 0,void 0,function(){var e,n;return r(this,function(i){switch(i.label){case 0:return e=Ni(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,sa(e)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ee(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(Zs),sa=function(t){return new Promise(function(e,n){var i=new Image;i.onload=function(){e(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))})},aa=function(){function t(t){var e=t.id,n=t.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,s([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,s([this.id,this.getTime()+"ms"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,s([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,s([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.instances={},t}(),Aa=function(){function t(e,n){var i;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new aa({id:this.instanceName,enabled:e.logging}),this.cache=null!==(i=e.cache)&&void 0!==i?i:new fs(this,e)}return t.instanceCount=1,t}();"undefined"!=typeof window&&ds.setContext(window);var oa=function(t,e){return i(void 0,void 0,void 0,function(){var i,s,o,u,l,c,h,d,f,p,g,m,v,y,B,b,w,C,_,T,E,S,k,U,I,F,x,Q,L,O,D,P,H,R,M,N,K,j;return r(this,function(r){switch(r.label){case 0:if(!t||"object"!=typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(!(i=t.ownerDocument))throw new Error("Element is not attached to a Document");if(!(s=i.defaultView))throw new Error("Document is not attached to a Window");return o={allowTaint:null!==(S=e.allowTaint)&&void 0!==S&&S,imageTimeout:null!==(k=e.imageTimeout)&&void 0!==k?k:15e3,proxy:e.proxy,useCORS:null!==(U=e.useCORS)&&void 0!==U&&U},u=n({logging:null===(I=e.logging)||void 0===I||I,cache:e.cache},o),l={windowWidth:null!==(F=e.windowWidth)&&void 0!==F?F:s.innerWidth,windowHeight:null!==(x=e.windowHeight)&&void 0!==x?x:s.innerHeight,scrollX:null!==(Q=e.scrollX)&&void 0!==Q?Q:s.pageXOffset,scrollY:null!==(L=e.scrollY)&&void 0!==L?L:s.pageYOffset},c=new a(l.scrollX,l.scrollY,l.windowWidth,l.windowHeight),h=new Aa(u,c),d=null!==(O=e.foreignObjectRendering)&&void 0!==O&&O,f={allowTaint:null!==(D=e.allowTaint)&&void 0!==D&&D,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:d,copyStyles:d},h.logger.debug("Starting document clone with size "+c.width+"x"+c.height+" scrolled to "+-c.left+","+-c.top),p=new Jr(h,t,f),(g=p.clonedReferenceElement)?[4,p.toIFrame(i,c)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=r.sent(),v=xr(g)||"HTML"===g.tagName?function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var i=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),r=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new a(0,0,i,r)}(g.ownerDocument):A(h,g),y=v.width,B=v.height,b=v.left,w=v.top,C=ua(h,g,e.backgroundColor),_={canvas:e.canvas,backgroundColor:C,scale:null!==(H=null!==(P=e.scale)&&void 0!==P?P:s.devicePixelRatio)&&void 0!==H?H:1,x:(null!==(R=e.x)&&void 0!==R?R:0)+b,y:(null!==(M=e.y)&&void 0!==M?M:0)+w,width:null!==(N=e.width)&&void 0!==N?N:Math.ceil(y),height:null!==(K=e.height)&&void 0!==K?K:Math.ceil(B)},d?(h.logger.debug("Document cloned, using foreign object rendering"),[4,new ra(h,_).render(g)]):[3,3];case 2:return T=r.sent(),[3,5];case 3:return h.logger.debug("Document cloned, element located at "+b+","+w+" with size "+y+"x"+B+" using computed rendering"),h.logger.debug("Starting DOM parsing"),E=br(h,g),C===E.styles.backgroundColor&&(E.styles.backgroundColor=le.TRANSPARENT),h.logger.debug("Starting renderer for element at "+_.x+","+_.y+" with size "+_.width+"x"+_.height),[4,new ta(h,_).render(E)];case 4:T=r.sent(),r.label=5;case 5:return(null===(j=e.removeContainer)||void 0===j||j)&&(Jr.destroy(m)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),[2,T]}})})},ua=function(t,e,n){var i=e.ownerDocument,r=i.documentElement?ue(t,getComputedStyle(i.documentElement).backgroundColor):le.TRANSPARENT,s=i.body?ue(t,getComputedStyle(i.body).backgroundColor):le.TRANSPARENT,a="string"==typeof n?ue(t,n):null===n?le.TRANSPARENT:4294967295;return e===i.documentElement?te(r)?te(s)?a:s:r:a};return function(t,e){return void 0===e&&(e={}),oa(t,e)}},t.exports=i()},evD5:function(t,e,n){var i=n("77Pl"),r=n("SfB7"),s=n("MmMw"),a=Object.defineProperty;e.f=n("+E39")?Object.defineProperty:function(t,e,n){if(i(t),e=s(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},fJUb:function(t,e,n){var i=n("77Pl"),r=n("EqjI"),s=n("qARP");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=s.f(t);return(0,n.resolve)(e),n.promise}},fkB2:function(t,e,n){var i=n("UuGF"),r=Math.max,s=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):s(t,e)}},fuGk:function(t,e,n){"use strict";var i=n("cGG2");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},fx5k:function(t,e,n){var i,r,s,a,A;i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,r=/^([^\/?#]*)([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,A={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var i=A.parseURL(t);if(!i)throw new Error("Error trying to parse base URL.");return i.path=A.normalizePath(i.path),A.buildURLFromParts(i)}var s=A.parseURL(e);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return n.alwaysNormalize?(s.path=A.normalizePath(s.path),A.buildURLFromParts(s)):e;var a=A.parseURL(t);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var o=r.exec(a.path);a.netLoc=o[1],a.path=o[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(u.netLoc=a.netLoc,"/"!==s.path[0]))if(s.path){var l=a.path,c=l.substring(0,l.lastIndexOf("/")+1)+s.path;u.path=A.normalizePath(c)}else u.path=a.path,s.params||(u.params=a.params,s.query||(u.query=a.query));return null===u.path&&(u.path=n.alwaysNormalize?A.normalizePath(s.path):s.path),A.buildURLFromParts(u)},parseURL:function(t){var e=i.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(s,"");t.length!==(t=t.replace(a,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=A},h65t:function(t,e,n){var i=n("UuGF"),r=n("52gC");t.exports=function(t){return function(e,n){var s,a,A=String(r(e)),o=i(n),u=A.length;return o<0||o>=u?t?"":void 0:(s=A.charCodeAt(o))<55296||s>56319||o+1===u||(a=A.charCodeAt(o+1))<56320||a>57343?t?A.charAt(o):s:t?A.slice(o,o+2):a-56320+(s-55296<<10)+65536}}},hJx8:function(t,e,n){var i=n("evD5"),r=n("X8DO");t.exports=n("+E39")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},iUbK:function(t,e,n){var i=n("7KvD").navigator;t.exports=i&&i.userAgent||""},"j/rp":function(t,e,n){var i=n("dkdY");t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},"jKW+":function(t,e,n){"use strict";var i=n("kM2E"),r=n("qARP"),s=n("dNDb");i(i.S,"Promise",{try:function(t){var e=r.f(this),n=s(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},kM2E:function(t,e,n){var i=n("7KvD"),r=n("FeBl"),s=n("+ZMJ"),a=n("hJx8"),A=n("D2L2"),o=function(t,e,n){var u,l,c,h=t&o.F,d=t&o.G,f=t&o.S,p=t&o.P,g=t&o.B,m=t&o.W,v=d?r:r[e]||(r[e]={}),y=v.prototype,B=d?i:f?i[e]:(i[e]||{}).prototype;for(u in d&&(n=e),n)(l=!h&&B&&void 0!==B[u])&&A(v,u)||(c=l?B[u]:n[u],v[u]=d&&"function"!=typeof B[u]?n[u]:g&&l?s(c,i):m&&B[u]==c?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):p&&"function"==typeof c?s(Function.call,c):c,p&&((v.virtual||(v.virtual={}))[u]=c,t&o.R&&y&&!y[u]&&a(y,u,c)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,t.exports=o},knuC:function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},kx0S:function(t,e,n){var i=n("dkdY"),r=n("ARpH");function s(e,n,a){return r()?(t.exports=s=Reflect.construct,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=s=function(t,e,n){var r=[null];r.push.apply(r,e);var s=new(Function.bind.apply(t,r));return n&&i(s,n.prototype),s},t.exports.default=t.exports,t.exports.__esModule=!0),s.apply(null,arguments)}t.exports=s,t.exports.default=t.exports,t.exports.__esModule=!0},lOnJ:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},lamJ:function(t,e){var n,i,r,s,a,A,o;n=function(t){return 9e4*t},i=function(t,e){return t*e},r=function(t){return t/9e4},s=function(t,e){return t/e},a=function(t,e){return n(s(t,e))},A=function(t,e){return i(r(t),e)},o=function(t,e,n){return r(n?t:t-e)},t.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n,secondsToAudioTs:i,videoTsToSeconds:r,audioTsToSeconds:s,audioTsToVideoTs:a,videoTsToAudioTs:A,metadataTsToSeconds:o}},ljAp:function(t,e){function n(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return a[t];var n,s=String(t);return(n=i[s.toLowerCase()])?n:(n=r[s.toLowerCase()])||(1===s.length?s.charCodeAt(0):void 0)}n.isEventKey=function(t,e){if(t&&"object"==typeof t){var n=t.which||t.keyCode||t.charCode;if(null===n||void 0===n)return!1;if("string"==typeof e){var s;if(s=i[e.toLowerCase()])return s===n;if(s=r[e.toLowerCase()])return s===n}else if("number"==typeof e)return e===n;return!1}};var i=(e=t.exports=n).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
- /*!
- * Programatically add the following
- */
- for(s=97;s<123;s++)i[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)i[s-48]=s;for(s=1;s<13;s++)i["f"+s]=s+111;for(s=0;s<10;s++)i["numpad "+s]=s+96;var a=e.names=e.title={};for(s in i)a[i[s]]=s;for(var A in r)i[A]=r[A]},lktj:function(t,e,n){var i=n("Ibhu"),r=n("xnc9");t.exports=Object.keys||function(t){return i(t,r)}},lt8z:function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,n.apply(this,arguments)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},mRXp:function(t,e,n){"use strict";e.b=function(t){return/^\d+(\.\d+)?$/.test(t)},e.a=function(t){if(Number.isNaN)return Number.isNaN(t);return t!=t}},msXi:function(t,e,n){var i=n("77Pl");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var s=t.return;throw void 0!==s&&i(s.call(t)),e}}},mtWM:function(t,e,n){t.exports=n("tIFN")},mvHQ:function(t,e,n){t.exports={default:n("qkKv"),__esModule:!0}},o69Z:function(t,e,n){"use strict";var i=n("7+uW");function r(t){return function(e,n){return e&&"string"!=typeof e&&(n=e,e=""),""+(e=e?t+"__"+e:t)+function t(e,n){return n?"string"==typeof n?" "+e+"--"+n:Array.isArray(n)?n.reduce(function(n,i){return n+t(e,i)},""):Object.keys(n).reduce(function(i,r){return i+(n[r]?t(e,r):"")},""):""}(e,n)}}var s=n("S06l"),a=n("YNA3"),A={methods:{slots:function(t,e){void 0===t&&(t="default");var n=this.$slots,i=this.$scopedSlots[t];return i?i(e):n[t]}}};function o(t){var e=this.name;t.component(e,this),t.component(Object(a.a)("-"+e),this)}function u(t){return{functional:!0,props:t.props,model:t.model,render:function(e,n){return t(e,n.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach(function(t){e[t]||(e[t]=function(){return n[t]})}),e}(n),n)}}}function l(t){return[function(t){return function(e){return f(e)&&(e=u(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(A)),e.name=t,e.install=o,e}}(t="van-"+t),r(t),function(t){var e=Object(a.a)(t)+".";return function(t){for(var n=s.a.messages(),i=g(n,e+t)||g(n,t),r=arguments.length,a=new Array(r>1?r-1:0),A=1;A<r;A++)a[A-1]=arguments[A];return f(i)?i.apply(void 0,a):i}}(t)]}var c=n("4PMK");n.d(e,"d",function(){return h}),n.d(e,"j",function(){return d}),e.k=function(){},e.e=function(t){return void 0!==t&&null!==t},e.g=f,e.h=p,e.i=function(t){return p(t)&&f(t.then)&&f(t.catch)},e.c=g,e.f=function(t){if(null==t)return!0;if("object"!=typeof t)return!0;return 0===Object.keys(t).length},n.d(e,"b",function(){return l}),n.d(e,"a",function(){return c.a});var h="undefined"!=typeof window,d=i.a.prototype.$isServer;function f(t){return"function"==typeof t}function p(t){return null!==t&&"object"==typeof t}function g(t,e){var n=t;return e.split(".").forEach(function(t){var e;n=null!=(e=n[t])?e:""}),n}},oJlt:function(t,e,n){"use strict";var i=n("cGG2"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,s,a={};return t?(i.forEach(t.split("\n"),function(t){if(s=t.indexOf(":"),e=i.trim(t.substr(0,s)).toLowerCase(),n=i.trim(t.substr(s+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}}),a):a}},p1b6:function(t,e,n){"use strict";var i=n("cGG2");t.exports=i.isStandardBrowserEnv()?{write:function(t,e,n,r,s,a){var A=[];A.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&A.push("expires="+new Date(n).toGMTString()),i.isString(r)&&A.push("path="+r),i.isString(s)&&A.push("domain="+s),!0===a&&A.push("secure"),document.cookie=A.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},pBtG:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},pxG4:function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},qARP:function(t,e,n){"use strict";var i=n("lOnJ");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}(t)}},qRfI:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},qio6:function(t,e,n){var i=n("evD5"),r=n("77Pl"),s=n("lktj");t.exports=n("+E39")?Object.defineProperties:function(t,e){r(t);for(var n,a=s(e),A=a.length,o=0;A>o;)i.f(t,n=a[o++],e[n]);return t}},qkKv:function(t,e,n){var i=n("FeBl"),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},sB3e:function(t,e,n){var i=n("52gC");t.exports=function(t){return Object(i(t))}},sOR5:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},t8qj:function(t,e,n){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},t8x9:function(t,e,n){var i=n("77Pl"),r=n("lOnJ"),s=n("dSzd")("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||void 0==(n=i(a)[s])?e:r(n)}},tIFN:function(t,e,n){"use strict";var i=n("cGG2"),r=n("JP+z"),s=n("XmWM"),a=n("DUeU");function A(t){var e=new s(t),n=r(s.prototype.request,e);return i.extend(n,s.prototype,e),i.extend(n,e),n}var o=A(n("KCLY"));o.Axios=s,o.create=function(t){return A(a(o.defaults,t))},o.Cancel=n("dVOP"),o.CancelToken=n("cWxy"),o.isCancel=n("pBtG"),o.all=function(t){return Promise.all(t)},o.spread=n("pxG4"),o.isAxiosError=n("SLDG"),t.exports=o,t.exports.default=o},ujcs:function(t,e){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- e.read=function(t,e,n,i,r){var s,a,A=8*r-i-1,o=(1<<A)-1,u=o>>1,l=-7,c=n?r-1:0,h=n?-1:1,d=t[e+c];for(c+=h,s=d&(1<<-l)-1,d>>=-l,l+=A;l>0;s=256*s+t[e+c],c+=h,l-=8);for(a=s&(1<<-l)-1,s>>=-l,l+=i;l>0;a=256*a+t[e+c],c+=h,l-=8);if(0===s)s=1-u;else{if(s===o)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),s-=u}return(d?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,e,n,i,r,s){var a,A,o,u=8*s-r-1,l=(1<<u)-1,c=l>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:s-1,f=i?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(A=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-a))<1&&(a--,o*=2),(e+=a+c>=1?h/o:h*Math.pow(2,1-c))*o>=2&&(a++,o/=2),a+c>=l?(A=0,a=l):a+c>=1?(A=(e*o-1)*Math.pow(2,r),a+=c):(A=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&A,d+=f,A/=256,r-=8);for(a=a<<r|A,u+=r;u>0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*p}},"vFc/":function(t,e,n){var i=n("TcQ7"),r=n("QRG4"),s=n("fkB2");t.exports=function(t){return function(e,n,a){var A,o=i(e),u=r(o.length),l=s(a,u);if(t&&n!=n){for(;u>l;)if((A=o[l++])!=A)return!0}else for(;u>l;l++)if((t||l in o)&&o[l]===n)return t||l||0;return!t&&-1}}},"vIB/":function(t,e,n){"use strict";var i=n("O4g8"),r=n("kM2E"),s=n("880/"),a=n("hJx8"),A=n("/bQp"),o=n("94VQ"),u=n("e6n0"),l=n("PzxK"),c=n("dSzd")("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,f,p,g,m){o(n,e,f);var v,y,B,b=function(t){if(!h&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",C="values"==p,_=!1,T=t.prototype,E=T[c]||T["@@iterator"]||p&&T[p],S=E||b(p),k=p?C?b("entries"):S:void 0,U="Array"==e&&T.entries||E;if(U&&(B=l(U.call(new t)))!==Object.prototype&&B.next&&(u(B,w,!0),i||"function"==typeof B[c]||a(B,c,d)),C&&E&&"values"!==E.name&&(_=!0,S=function(){return E.call(this)}),i&&!m||!h&&!_&&T[c]||a(T,c,S),A[e]=S,A[w]=d,p)if(v={values:C?S:b("values"),keys:g?S:b("keys"),entries:k},m)for(y in v)y in T||s(T,y,v[y]);else r(r.P+r.F*(h||_),e,v);return v}},wvfG:function(t,e,n){var i=n("W1rN"),r={autoSetContainer:!1,appendToBody:!0},s={install:function(t){t.prototype.$clipboardConfig=r,t.prototype.$copyText=function(t,e){return new Promise(function(n,s){var a=document.createElement("button"),A=new i(a,{text:function(){return t},action:function(){return"copy"},container:"object"==typeof e?e:document.body});A.on("success",function(t){A.destroy(),n(t)}),A.on("error",function(t){A.destroy(),s(t)}),r.appendToBody&&document.body.appendChild(a),a.click(),r.appendToBody&&document.body.removeChild(a)})},t.directive("clipboard",{bind:function(t,e,n){if("success"===e.arg)t._vClipboard_success=e.value;else if("error"===e.arg)t._vClipboard_error=e.value;else{var s=new i(t,{text:function(){return e.value},action:function(){return"cut"===e.arg?"cut":"copy"},container:r.autoSetContainer?t:void 0});s.on("success",function(e){var n=t._vClipboard_success;n&&n(e)}),s.on("error",function(e){var n=t._vClipboard_error;n&&n(e)}),t._vClipboard=s}},update:function(t,e){"success"===e.arg?t._vClipboard_success=e.value:"error"===e.arg?t._vClipboard_error=e.value:(t._vClipboard.text=function(){return e.value},t._vClipboard.action=function(){return"cut"===e.arg?"cut":"copy"})},unbind:function(t,e){"success"===e.arg?delete t._vClipboard_success:"error"===e.arg?delete t._vClipboard_error:(t._vClipboard.destroy(),delete t._vClipboard)}})},config:r};t.exports=s},xGkn:function(t,e,n){"use strict";var i=n("4mcu"),r=n("EGZi"),s=n("/bQp"),a=n("TcQ7");t.exports=n("vIB/")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},"xH/j":function(t,e,n){var i=n("hJx8");t.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},xLtR:function(t,e,n){"use strict";var i=n("cGG2"),r=n("TNV1"),s=n("pBtG"),a=n("KCLY");function A(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return A(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return A(t),e.data=r(e.data,e.headers,t.transformResponse),e},function(e){return s(e)||(A(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},xnc9:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},zQR9:function(t,e,n){"use strict";var i=n("h65t")(!0);n("vIB/")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})}});
- //# sourceMappingURL=vendor.e028b68e17bae0c87b25.js.map
|