Acest script nu ar trebui instalat direct. Aceasta este o bibliotecă pentru alte scripturi care este inclusă prin directiva meta a // @require https://update.greasyfork.org/scripts/482178/1295511/ximalaya_award_fc5d2.js
window.ximalaya_award_fc5d2=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=197)}([function(t,e,r){t.exports=r(203)()},function(t,e,r){"use strict";t.exports=r(198)},function(t,e,r){"use strict";(function(n){var i,o,a,s;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)}Object.defineProperty(e,"__esModule",{value:!0}),s=function(){var t=t||function(t,e){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==n&&n.crypto&&(i=n.crypto),!i)try{i=r(325)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),s={},u=s.lib={},l=u.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=u.WordArray=l.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)e[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(o());return new c.init(e,t)}}),f=s.enc={},d=f.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},h=f.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},g=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,l=t.min(4*u,o);if(u){for(var f=0;f<u;f+=a)this._doProcessBlock(i,f);r=i.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),v=(u.Hasher=g.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new v.HMAC.init(t,r).finalize(e)}}}),s.algo={});return s}(Math);return t},"object"===u(e)?t.exports=e=s():(o=[],void 0===(a="function"==typeof(i=s)?i.apply(e,o):i)||(t.exports=a))}).call(this,r(21))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r,n,i,o,a,s,u,l,c,f,d,h,p,g,v,y,m;t.lib.Cipher||(r=(e=t).lib,n=r.Base,i=r.WordArray,o=r.BufferedBlockAlgorithm,(a=e.enc).Utf8,s=a.Base64,u=e.algo.EvpKDF,l=r.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?m:v}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()}),r.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),c=e.mode={},f=r.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=c.CBC=function(){var t=f.extend();function e(t,e,r){var n,i=this._iv;i?(n=i,this._iv=void 0):n=this._prevBlock;for(var o=0;o<r;o++)t[e+o]^=n[o]}return t.Encryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;e.call(this,t,r,i),n.encryptBlock(t,r),this._prevBlock=t.slice(r,r+i)}}),t.Decryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize,o=t.slice(r,r+i);n.decryptBlock(t,r),e.call(this,t,r,i),this._prevBlock=o}}),t}(),h=(e.pad={}).Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,o=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(o);var u=i.create(a,n);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:d,padding:h}),reset:function(){var t;l.reset.call(this);var e=this.cfg,r=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(n,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),p=r.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),g=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;return(r?i.create([1398893684,1701076831]).concat(r).concat(e):e).toString(s)},parse:function(t){var e,r=s.parse(t),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),p.create({ciphertext:r,salt:e})}},v=r.SerializableCipher=n.extend({cfg:n.extend({format:g}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),a=i.cfg;return p.create({ciphertext:o,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),y=(e.kdf={}).OpenSSL={execute:function(t,e,r,n){n||(n=i.random(8));var o=u.create({keySize:e+r}).compute(t,n),a=i.create(o.words.slice(e),4*r);return o.sigBytes=4*e,p.create({key:o,iv:a,salt:n})}},m=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(t,e,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize);n.iv=i.iv;var o=v.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt);return n.iv=i.iv,v.decrypt.call(this,t,e,i.key,n)}}))},"object"===s(e)?t.exports=e=a(r(2),r(11)):(i=[r(2),r(11)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";r.r(e),r.d(e,"MemoryRouter",(function(){return m})),r.d(e,"Prompt",(function(){return E})),r.d(e,"Redirect",(function(){return _})),r.d(e,"Route",(function(){return O})),r.d(e,"Router",(function(){return y})),r.d(e,"StaticRouter",(function(){return I})),r.d(e,"Switch",(function(){return M})),r.d(e,"__HistoryContext",(function(){return g})),r.d(e,"__RouterContext",(function(){return v})),r.d(e,"generatePath",(function(){return S})),r.d(e,"matchPath",(function(){return A})),r.d(e,"useHistory",(function(){return B})),r.d(e,"useLocation",(function(){return F})),r.d(e,"useParams",(function(){return U})),r.d(e,"useRouteMatch",(function(){return H})),r.d(e,"withRouter",(function(){return N}));var n=r(14),i=r(1),o=r.n(i),a=(r(0),r(18)),s=r(107),u=r(15),l=r(6),c=r(108),f=r.n(c),d=(r(110),r(34)),h=r(101),p=r.n(h),g=function(t){var e=Object(s.default)();return e.displayName=t,e}("Router-History"),v=function(t){var e=Object(s.default)();return e.displayName=t,e}("Router"),y=function(t){function e(e){var r;return(r=t.call(this,e)||this).state={location:e.history.location},r._isMounted=!1,r._pendingLocation=null,e.staticContext||(r.unlisten=e.history.listen((function(t){r._isMounted?r.setState({location:t}):r._pendingLocation=t}))),r}Object(n.default)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var r=e.prototype;return r.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&this.unlisten()},r.render=function(){return o.a.createElement(v.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(g.Provider,{children:this.props.children||null,value:this.props.history}))},e}(o.a.Component);var m=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).history=Object(a.createMemoryHistory)(e.props),e}return Object(n.default)(e,t),e.prototype.render=function(){return o.a.createElement(y,{history:this.history,children:this.props.children})},e}(o.a.Component);var b=function(t){function e(){return t.apply(this,arguments)||this}Object(n.default)(e,t);var r=e.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},e}(o.a.Component);function E(t){var e=t.message,r=t.when,n=void 0===r||r;return o.a.createElement(v.Consumer,null,(function(t){if(t||Object(u.default)(!1),!n||t.staticContext)return null;var r=t.history.block;return o.a.createElement(b,{onMount:function(t){t.release=r(e)},onUpdate:function(t,n){n.message!==e&&(t.release(),t.release=r(e))},onUnmount:function(t){t.release()},message:e})}))}var T={},w=0;function S(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(T[t])return T[t];var e=f.a.compile(t);return w<1e4&&(T[t]=e,w++),e}(t)(e,{pretty:!0})}function _(t){var e=t.computedMatch,r=t.to,n=t.push,i=void 0!==n&&n;return o.a.createElement(v.Consumer,null,(function(t){t||Object(u.default)(!1);var n=t.history,s=t.staticContext,c=i?n.push:n.replace,f=Object(a.createLocation)(e?"string"==typeof r?S(r,e.params):Object(l.default)({},r,{pathname:S(r.pathname,e.params)}):r);return s?(c(f),null):o.a.createElement(b,{onMount:function(){c(f)},onUpdate:function(t,e){var r=Object(a.createLocation)(e.to);Object(a.locationsAreEqual)(r,Object(l.default)({},f,{key:r.key}))||c(f)},to:r})}))}var k={},x=0;function A(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var r=e,n=r.path,i=r.exact,o=void 0!==i&&i,a=r.strict,s=void 0!==a&&a,u=r.sensitive,l=void 0!==u&&u;return[].concat(n).reduce((function(e,r){if(!r&&""!==r)return null;if(e)return e;var n=function(t,e){var r=""+e.end+e.strict+e.sensitive,n=k[r]||(k[r]={});if(n[t])return n[t];var i=[],o={regexp:f()(t,i,e),keys:i};return x<1e4&&(n[t]=o,x++),o}(r,{end:o,strict:s,sensitive:l}),i=n.regexp,a=n.keys,u=i.exec(t);if(!u)return null;var c=u[0],d=u.slice(1),h=t===c;return o&&!h?null:{path:r,url:"/"===r&&""===c?"/":c,isExact:h,params:a.reduce((function(t,e,r){return t[e.name]=d[r],t}),{})}}),null)}var O=function(t){function e(){return t.apply(this,arguments)||this}return Object(n.default)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(v.Consumer,null,(function(e){e||Object(u.default)(!1);var r=t.props.location||e.location,n=t.props.computedMatch?t.props.computedMatch:t.props.path?A(r.pathname,t.props):e.match,i=Object(l.default)({},e,{location:r,match:n}),a=t.props,s=a.children,c=a.component,f=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(v.Provider,{value:i},i.match?s?"function"==typeof s?s(i):s:c?o.a.createElement(c,i):f?f(i):null:"function"==typeof s?s(i):null)}))},e}(o.a.Component);function P(t){return"/"===t.charAt(0)?t:"/"+t}function C(t,e){if(!t)return e;var r=P(t);return 0!==e.pathname.indexOf(r)?e:Object(l.default)({},e,{pathname:e.pathname.substr(r.length)})}function R(t){return"string"==typeof t?t:Object(a.createPath)(t)}function D(t){return function(){Object(u.default)(!1)}}function L(){}var I=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).handlePush=function(t){return e.navigateTo(t,"PUSH")},e.handleReplace=function(t){return e.navigateTo(t,"REPLACE")},e.handleListen=function(){return L},e.handleBlock=function(){return L},e}Object(n.default)(e,t);var r=e.prototype;return r.navigateTo=function(t,e){var r=this.props,n=r.basename,i=void 0===n?"":n,o=r.context,s=void 0===o?{}:o;s.action=e,s.location=function(t,e){return t?Object(l.default)({},e,{pathname:P(t)+e.pathname}):e}(i,Object(a.createLocation)(t)),s.url=R(s.location)},r.render=function(){var t=this.props,e=t.basename,r=void 0===e?"":e,n=t.context,i=void 0===n?{}:n,s=t.location,u=void 0===s?"/":s,c=Object(d.default)(t,["basename","context","location"]),f={createHref:function(t){return P(r+R(t))},action:"POP",location:C(r,Object(a.createLocation)(u)),push:this.handlePush,replace:this.handleReplace,go:D(),goBack:D(),goForward:D(),listen:this.handleListen,block:this.handleBlock};return o.a.createElement(y,Object(l.default)({},c,{history:f,staticContext:i}))},e}(o.a.Component);var M=function(t){function e(){return t.apply(this,arguments)||this}return Object(n.default)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(v.Consumer,null,(function(e){e||Object(u.default)(!1);var r,n,i=t.props.location||e.location;return o.a.Children.forEach(t.props.children,(function(t){if(null==n&&o.a.isValidElement(t)){r=t;var a=t.props.path||t.props.from;n=a?A(i.pathname,Object(l.default)({},t.props,{path:a})):e.match}})),n?o.a.cloneElement(r,{location:i,computedMatch:n}):null}))},e}(o.a.Component);function N(t){var e="withRouter("+(t.displayName||t.name)+")",r=function(e){var r=e.wrappedComponentRef,n=Object(d.default)(e,["wrappedComponentRef"]);return o.a.createElement(v.Consumer,null,(function(e){return e||Object(u.default)(!1),o.a.createElement(t,Object(l.default)({},n,e,{ref:r}))}))};return r.displayName=e,r.WrappedComponent=t,p()(r,t)}var j=o.a.useContext;function B(){return j(g)}function F(){return j(v).location}function U(){var t=j(v).match;return t?t.params:{}}function H(t){var e=F(),r=j(v).match;return t?A(e.pathname,t):r}},function(t,e,r){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}}(),t.exports=r(199)},function(t,e,r){"use strict";function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}r.r(e),r.d(e,"default",(function(){return n}))},function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(67),o=(n=i)&&n.__esModule?n:{default:n};e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n=a(r(379)),i=a(r(383)),o=a(r(67));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,o.default)(e)));t.prototype=(0,i.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(n.default?(0,n.default)(t,e):t.__proto__=e)}},function(t,e,r){"use strict";r.r(e),r.d(e,"toArrayChildren",(function(){return o})),r.d(e,"findChildInChildrenByKey",(function(){return a})),r.d(e,"findShownChildInChildrenByKey",(function(){return s})),r.d(e,"findHiddenChildInChildrenByKey",(function(){return u})),r.d(e,"isSameChildren",(function(){return l})),r.d(e,"mergeChildren",(function(){return c}));var n=r(1),i=r.n(n);function o(t){var e=[];return i.a.Children.forEach(t,(function(t){e.push(t)})),e}function a(t,e){var r=null;return t&&t.forEach((function(t){r||t&&t.key===e&&(r=t)})),r}function s(t,e,r){var n=null;return t&&t.forEach((function(t){if(t&&t.key===e&&t.props[r]){if(n)throw new Error("two child with same key for <rc-animate> children");n=t}})),n}function u(t,e,r){var n=0;return t&&t.forEach((function(t){n||(n=t&&t.key===e&&!t.props[r])})),n}function l(t,e,r){var n=t.length===e.length;return n&&t.forEach((function(t,i){var o=e[i];t&&o&&(t&&!o||!t&&o||t.key!==o.key||r&&t.props[r]!==o.props[r])&&(n=!1)})),n}function c(t,e){var r=[],n={},i=[];return t.forEach((function(t){t&&a(e,t.key)?i.length&&(n[t.key]=i,i=[]):i.push(t)})),e.forEach((function(t){t&&Object.prototype.hasOwnProperty.call(n,t.key)&&(r=r.concat(n[t.key])),r.push(t)})),r=r.concat(i)}},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r,n,i,o,a,s;return r=(e=t).lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,u=n.keySize,l=n.iterations;s.length<u;){r&&o.update(r),r=o.update(t).finalize(e),o.reset();for(var c=1;c<l;c++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*u,a}}),e.EvpKDF=function(t,e,r){return s.create(r).compute(t,e)},t.EvpKDF},"object"===s(e)?t.exports=e=a(r(2),r(35),r(36)):(i=[r(2),r(35),r(36)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(349),o=(n=i)&&n.__esModule?n:{default:n};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},function(t,e,r){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}r.r(e),r.d(e,"default",(function(){return n}))},function(t,e,r){"use strict";r.r(e);e.default=function(t,e){if(!t)throw new Error("Invariant failed")}},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r;return r=(e=t).lib.WordArray,e.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return function(t,e,n){for(var i=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,u=n[t.charCodeAt(a)]>>>6-a%4*2,l=s|u;i[o>>>2]|=l<<24-o%4*8,o++}return r.create(i,o)}(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.enc.Base64},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],u=t[e+1],h=t[e+2],p=t[e+3],g=t[e+4],v=t[e+5],y=t[e+6],m=t[e+7],b=t[e+8],E=t[e+9],T=t[e+10],w=t[e+11],S=t[e+12],_=t[e+13],k=t[e+14],x=t[e+15],A=o[0],O=o[1],P=o[2],C=o[3];A=l(A,O,P,C,a,7,s[0]),C=l(C,A,O,P,u,12,s[1]),P=l(P,C,A,O,h,17,s[2]),O=l(O,P,C,A,p,22,s[3]),A=l(A,O,P,C,g,7,s[4]),C=l(C,A,O,P,v,12,s[5]),P=l(P,C,A,O,y,17,s[6]),O=l(O,P,C,A,m,22,s[7]),A=l(A,O,P,C,b,7,s[8]),C=l(C,A,O,P,E,12,s[9]),P=l(P,C,A,O,T,17,s[10]),O=l(O,P,C,A,w,22,s[11]),A=l(A,O,P,C,S,7,s[12]),C=l(C,A,O,P,_,12,s[13]),P=l(P,C,A,O,k,17,s[14]),A=c(A,O=l(O,P,C,A,x,22,s[15]),P,C,u,5,s[16]),C=c(C,A,O,P,y,9,s[17]),P=c(P,C,A,O,w,14,s[18]),O=c(O,P,C,A,a,20,s[19]),A=c(A,O,P,C,v,5,s[20]),C=c(C,A,O,P,T,9,s[21]),P=c(P,C,A,O,x,14,s[22]),O=c(O,P,C,A,g,20,s[23]),A=c(A,O,P,C,E,5,s[24]),C=c(C,A,O,P,k,9,s[25]),P=c(P,C,A,O,p,14,s[26]),O=c(O,P,C,A,b,20,s[27]),A=c(A,O,P,C,_,5,s[28]),C=c(C,A,O,P,h,9,s[29]),P=c(P,C,A,O,m,14,s[30]),A=f(A,O=c(O,P,C,A,S,20,s[31]),P,C,v,4,s[32]),C=f(C,A,O,P,b,11,s[33]),P=f(P,C,A,O,w,16,s[34]),O=f(O,P,C,A,k,23,s[35]),A=f(A,O,P,C,u,4,s[36]),C=f(C,A,O,P,g,11,s[37]),P=f(P,C,A,O,m,16,s[38]),O=f(O,P,C,A,T,23,s[39]),A=f(A,O,P,C,_,4,s[40]),C=f(C,A,O,P,a,11,s[41]),P=f(P,C,A,O,p,16,s[42]),O=f(O,P,C,A,y,23,s[43]),A=f(A,O,P,C,E,4,s[44]),C=f(C,A,O,P,S,11,s[45]),P=f(P,C,A,O,x,16,s[46]),A=d(A,O=f(O,P,C,A,h,23,s[47]),P,C,a,6,s[48]),C=d(C,A,O,P,m,10,s[49]),P=d(P,C,A,O,k,15,s[50]),O=d(O,P,C,A,v,21,s[51]),A=d(A,O,P,C,S,6,s[52]),C=d(C,A,O,P,p,10,s[53]),P=d(P,C,A,O,T,15,s[54]),O=d(O,P,C,A,u,21,s[55]),A=d(A,O,P,C,b,6,s[56]),C=d(C,A,O,P,x,10,s[57]),P=d(P,C,A,O,y,15,s[58]),O=d(O,P,C,A,_,21,s[59]),A=d(A,O,P,C,g,6,s[60]),C=d(C,A,O,P,w,10,s[61]),P=d(P,C,A,O,h,15,s[62]),O=d(O,P,C,A,E,21,s[63]),o[0]=o[0]+A|0,o[1]=o[1]+O|0,o[2]=o[2]+P|0,o[3]=o[3]+C|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+i+a;return(s<<o|s>>>32-o)+e}function c(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+i+a;return(s<<o|s>>>32-o)+e}function f(t,e,r,n,i,o,a){var s=t+(e^r^n)+i+a;return(s<<o|s>>>32-o)+e}function d(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+i+a;return(s<<o|s>>>32-o)+e}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),t.MD5},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";r.r(e),r.d(e,"createBrowserHistory",(function(){return b})),r.d(e,"createHashHistory",(function(){return _})),r.d(e,"createMemoryHistory",(function(){return x})),r.d(e,"createLocation",(function(){return h})),r.d(e,"locationsAreEqual",(function(){return p})),r.d(e,"parsePath",(function(){return f})),r.d(e,"createPath",(function(){return d}));var n=r(6),i=r(195),o=r(196),a=r(15);function s(t){return"/"===t.charAt(0)?t:"/"+t}function u(t){return"/"===t.charAt(0)?t.substr(1):t}function l(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function c(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function f(t){var e=t||"/",r="",n="",i=e.indexOf("#");-1!==i&&(n=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(r=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===r?"":r,hash:"#"===n?"":n}}function d(t){var e=t.pathname,r=t.search,n=t.hash,i=e||"/";return r&&"?"!==r&&(i+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(i+="#"===n.charAt(0)?n:"#"+n),i}function h(t,e,r,o){var a;"string"==typeof t?(a=f(t)).state=e:(void 0===(a=Object(n.default)({},t)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==e&&void 0===a.state&&(a.state=e));try{a.pathname=decodeURI(a.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return r&&(a.key=r),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=Object(i.default)(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function p(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&Object(o.default)(t.state,e.state)}function g(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,r,n,i){if(null!=t){var o="function"==typeof t?t(e,r):t;"string"==typeof o?"function"==typeof n?n(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var r=!0;function n(){r&&t.apply(void 0,arguments)}return e.push(n),function(){r=!1,e=e.filter((function(t){return t!==n}))}},notifyListeners:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e.forEach((function(t){return t.apply(void 0,r)}))}}}var v=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(t,e){e(window.confirm(t))}function m(){try{return window.history.state||{}}catch(t){return{}}}function b(t){void 0===t&&(t={}),v||Object(a.default)(!1);var e,r=window.history,i=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),u=t,f=u.forceRefresh,p=void 0!==f&&f,b=u.getUserConfirmation,E=void 0===b?y:b,T=u.keyLength,w=void 0===T?6:T,S=t.basename?c(s(t.basename)):"";function _(t){var e=t||{},r=e.key,n=e.state,i=window.location,o=i.pathname+i.search+i.hash;return S&&(o=l(o,S)),h(o,n,r)}function k(){return Math.random().toString(36).substr(2,w)}var x=g();function A(t){Object(n.default)(F,t),F.length=r.length,x.notifyListeners(F.location,F.action)}function O(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||R(_(t.state))}function P(){R(_(m()))}var C=!1;function R(t){if(C)C=!1,A();else{x.confirmTransitionTo(t,"POP",E,(function(e){e?A({action:"POP",location:t}):function(t){var e=F.location,r=L.indexOf(e.key);-1===r&&(r=0);var n=L.indexOf(t.key);-1===n&&(n=0);var i=r-n;i&&(C=!0,M(i))}(t)}))}}var D=_(m()),L=[D.key];function I(t){return S+d(t)}function M(t){r.go(t)}var N=0;function j(t){1===(N+=t)&&1===t?(window.addEventListener("popstate",O),o&&window.addEventListener("hashchange",P)):0===N&&(window.removeEventListener("popstate",O),o&&window.removeEventListener("hashchange",P))}var B=!1;var F={length:r.length,action:"POP",location:D,createHref:I,push:function(t,e){var n=h(t,e,k(),F.location);x.confirmTransitionTo(n,"PUSH",E,(function(t){if(t){var e=I(n),o=n.key,a=n.state;if(i)if(r.pushState({key:o,state:a},null,e),p)window.location.href=e;else{var s=L.indexOf(F.location.key),u=L.slice(0,s+1);u.push(n.key),L=u,A({action:"PUSH",location:n})}else window.location.href=e}}))},replace:function(t,e){var n=h(t,e,k(),F.location);x.confirmTransitionTo(n,"REPLACE",E,(function(t){if(t){var e=I(n),o=n.key,a=n.state;if(i)if(r.replaceState({key:o,state:a},null,e),p)window.location.replace(e);else{var s=L.indexOf(F.location.key);-1!==s&&(L[s]=n.key),A({action:"REPLACE",location:n})}else window.location.replace(e)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(t){void 0===t&&(t=!1);var e=x.setPrompt(t);return B||(j(1),B=!0),function(){return B&&(B=!1,j(-1)),e()}},listen:function(t){var e=x.appendListener(t);return j(1),function(){j(-1),e()}}};return F}var E={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+u(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:u,decodePath:s},slash:{encodePath:s,decodePath:s}};function T(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function w(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function S(t){window.location.replace(T(window.location.href)+"#"+t)}function _(t){void 0===t&&(t={}),v||Object(a.default)(!1);var e=window.history,r=(window.navigator.userAgent.indexOf("Firefox"),t),i=r.getUserConfirmation,o=void 0===i?y:i,u=r.hashType,f=void 0===u?"slash":u,p=t.basename?c(s(t.basename)):"",m=E[f],b=m.encodePath,_=m.decodePath;function k(){var t=_(w());return p&&(t=l(t,p)),h(t)}var x=g();function A(t){Object(n.default)(F,t),F.length=e.length,x.notifyListeners(F.location,F.action)}var O=!1,P=null;function C(){var t,e,r=w(),n=b(r);if(r!==n)S(n);else{var i=k(),a=F.location;if(!O&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(P===d(i))return;P=null,function(t){if(O)O=!1,A();else{x.confirmTransitionTo(t,"POP",o,(function(e){e?A({action:"POP",location:t}):function(t){var e=F.location,r=I.lastIndexOf(d(e));-1===r&&(r=0);var n=I.lastIndexOf(d(t));-1===n&&(n=0);var i=r-n;i&&(O=!0,M(i))}(t)}))}}(i)}}var R=w(),D=b(R);R!==D&&S(D);var L=k(),I=[d(L)];function M(t){e.go(t)}var N=0;function j(t){1===(N+=t)&&1===t?window.addEventListener("hashchange",C):0===N&&window.removeEventListener("hashchange",C)}var B=!1;var F={length:e.length,action:"POP",location:L,createHref:function(t){var e=document.querySelector("base"),r="";return e&&e.getAttribute("href")&&(r=T(window.location.href)),r+"#"+b(p+d(t))},push:function(t,e){var r=h(t,void 0,void 0,F.location);x.confirmTransitionTo(r,"PUSH",o,(function(t){if(t){var e=d(r),n=b(p+e);if(w()!==n){P=e,function(t){window.location.hash=t}(n);var i=I.lastIndexOf(d(F.location)),o=I.slice(0,i+1);o.push(e),I=o,A({action:"PUSH",location:r})}else A()}}))},replace:function(t,e){var r=h(t,void 0,void 0,F.location);x.confirmTransitionTo(r,"REPLACE",o,(function(t){if(t){var e=d(r),n=b(p+e);w()!==n&&(P=e,S(n));var i=I.indexOf(d(F.location));-1!==i&&(I[i]=e),A({action:"REPLACE",location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(t){void 0===t&&(t=!1);var e=x.setPrompt(t);return B||(j(1),B=!0),function(){return B&&(B=!1,j(-1)),e()}},listen:function(t){var e=x.appendListener(t);return j(1),function(){j(-1),e()}}};return F}function k(t,e,r){return Math.min(Math.max(t,e),r)}function x(t){void 0===t&&(t={});var e=t,r=e.getUserConfirmation,i=e.initialEntries,o=void 0===i?["/"]:i,a=e.initialIndex,s=void 0===a?0:a,u=e.keyLength,l=void 0===u?6:u,c=g();function f(t){Object(n.default)(E,t),E.length=E.entries.length,c.notifyListeners(E.location,E.action)}function p(){return Math.random().toString(36).substr(2,l)}var v=k(s,0,o.length-1),y=o.map((function(t){return h(t,void 0,"string"==typeof t?p():t.key||p())})),m=d;function b(t){var e=k(E.index+t,0,E.entries.length-1),n=E.entries[e];c.confirmTransitionTo(n,"POP",r,(function(t){t?f({action:"POP",location:n,index:e}):f()}))}var E={length:y.length,action:"POP",location:y[v],index:v,entries:y,createHref:m,push:function(t,e){var n=h(t,e,p(),E.location);c.confirmTransitionTo(n,"PUSH",r,(function(t){if(t){var e=E.index+1,r=E.entries.slice(0);r.length>e?r.splice(e,r.length-e,n):r.push(n),f({action:"PUSH",location:n,index:e,entries:r})}}))},replace:function(t,e){var n=h(t,e,p(),E.location);c.confirmTransitionTo(n,"REPLACE",r,(function(t){t&&(E.entries[E.index]=n,f({action:"REPLACE",location:n}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=E.index+t;return e>=0&&e<E.entries.length},block:function(t){return void 0===t&&(t=!1),c.setPrompt(t)},listen:function(t){return c.appendListener(t)}};return E}},function(t,e,r){var n=r(113),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r,n,i,o;return r=(e=t).lib,n=r.Base,i=r.WordArray,(o=e.x64={}).Word=n.extend({init:function(t,e){this.high=t,this.low=e}}),o.WordArray=n.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var o=t[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var t=n.clone.call(this),e=t.words=this.words.slice(0),r=e.length,i=0;i<r;i++)e[i]=e[i].clone();return t}}),t},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},function(t,e,r){t.exports=!r(48)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,r){"use strict";r.r(e);e.default={isAppearSupported:function(t){return t.transitionName&&t.transitionAppear||t.animation.appear},isEnterSupported:function(t){return t.transitionName&&t.transitionEnter||t.animation.enter},isLeaveSupported:function(t){return t.transitionName&&t.transitionLeave||t.animation.leave},allowAppearCallback:function(t){return t.transitionAppear||t.animation.appear},allowEnterCallback:function(t){return t.transitionEnter||t.animation.enter},allowLeaveCallback:function(t){return t.transitionLeave||t.animation.leave}}},function(t,e,r){"use strict";r.r(e),r.d(e,"buffer",(function(){return i})),r.d(e,"isSamePoint",(function(){return o})),r.d(e,"isWindow",(function(){return a})),r.d(e,"isSimilarValue",(function(){return s})),r.d(e,"restoreFocus",(function(){return u}));var n=r(49);function i(t,e){var r=void 0;function n(){r&&(clearTimeout(r),r=null)}function i(){n(),r=setTimeout(t,e)}return i.clear=n,i}function o(t,e){return t===e||!(!t||!e)&&("pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e&&(t.clientX===e.clientX&&t.clientY===e.clientY))}function a(t){return t&&"object"==typeof t&&t.window===t}function s(t,e){var r=Math.floor(t),n=Math.floor(e);return Math.abs(r-n)<=1}function u(t,e){t!==document.activeElement&&Object(n.default)(e,t)&&t.focus()}},function(t,e,r){var n=r(51),i=r(219),o=r(220),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e,r){var n=r(240),i=r(243);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(47),i=r(169),o=r(88),a=Object.defineProperty;e.f=r(26)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return s}));var n=r(185),i=r.n(n),o=r(5),a=r.n(o);function s(t,e,r,n){var o=a.a.unstable_batchedUpdates?function(t){a.a.unstable_batchedUpdates(r,t)}:r;return i()(t,e,o,n)}},function(t,e,r){"use strict";function n(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}r.r(e),r.d(e,"default",(function(){return n}))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r,n,i,o,a,s;return r=(e=t).lib,n=r.WordArray,i=r.Hasher,o=e.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],u=r[4],l=0;l<80;l++){if(l<16)a[l]=0|t[e+l];else{var c=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=c<<1|c>>>31}var f=(n<<5|n>>>27)+u+a[l];f+=l<20?1518500249+(i&o|~i&s):l<40?1859775393+(i^o^s):l<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,u=s,s=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA1=i._createHelper(s),e.HmacSHA1=i._createHmacHelper(s),t.SHA1},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r,n;r=(e=t).lib.Base,n=e.enc.Utf8,e.algo.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=n.parse(e));var r=t.blockSize,i=4*r;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,u=a.words,l=0;l<r;l++)s[l]^=1549556828,u[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){var n=r(24),i=r(25),o=r(168),a=r(38),s=r(32),u=function(t,e,r){var l,c,f,d=t&u.F,h=t&u.G,p=t&u.S,g=t&u.P,v=t&u.B,y=t&u.W,m=h?i:i[e]||(i[e]={}),b=m.prototype,E=h?n:p?n[e]:(n[e]||{}).prototype;for(l in h&&(r=e),r)(c=!d&&E&&void 0!==E[l])&&s(m,l)||(f=c?E[l]:r[l],m[l]=h&&"function"!=typeof E[l]?r[l]:v&&c?o(f,n):y&&E[l]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):g&&"function"==typeof f?o(Function.call,f):f,g&&((m.virtual||(m.virtual={}))[l]=f,t&u.R&&b&&!b[l]&&a(b,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){var n=r(31),i=r(62);t.exports=r(26)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(172),i=r(89);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(92)("wks"),i=r(65),o=r(24).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(178),o=(n=i)&&n.__esModule?n:{default:n};e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,o.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){"use strict";r.r(e),r.d(e,"getAlignFromPlacement",(function(){return a})),r.d(e,"getAlignPopupClassName",(function(){return s})),r.d(e,"saveRef",(function(){return u}));var n=r(13),i=r.n(n);function o(t,e,r){return r?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function a(t,e,r){var n=t[e]||{};return i()({},n,r)}function s(t,e,r,n){var i=r.points;for(var a in t)if(t.hasOwnProperty(a)&&o(t[a].points,i,n))return e+"-placement-"+a;return""}function u(t,e){this[t]=e}},function(t,e,r){"use strict";r.r(e);var n={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},o=[],a=[];function s(t,e,r){t.addEventListener(e,r,!1)}function u(t,e,r){t.removeEventListener(e,r,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var t=document.createElement("div").style;function e(e,r){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];for(var o in i)if(o in t){r.push(i[o]);break}}}"AnimationEvent"in window||(delete n.animationstart.animation,delete i.animationend.animation),"TransitionEvent"in window||(delete n.transitionstart.transition,delete i.transitionend.transition),e(n,o),e(i,a)}();var l={startEvents:o,addStartEventListener:function(t,e){0!==o.length?o.forEach((function(r){s(t,r,e)})):window.setTimeout(e,0)},removeStartEventListener:function(t,e){0!==o.length&&o.forEach((function(r){u(t,r,e)}))},endEvents:a,addEndEventListener:function(t,e){0!==a.length?a.forEach((function(r){s(t,r,e)})):window.setTimeout(e,0)},removeEndEventListener:function(t,e){0!==a.length&&a.forEach((function(r){u(t,r,e)}))}};e.default=l},function(t,e,r){var n=r(53),i=r(79);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(39);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){"use strict";function n(t,e){for(var r=e;r;){if(r===t)return!0;r=r.parentNode}return!1}r.r(e),r.d(e,"default",(function(){return n}))},function(t,e,r){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,u=a(t),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))i.call(r,c)&&(u[c]=r[c]);if(n){s=n(r);for(var f=0;f<s.length;f++)o.call(r,s[f])&&(u[s[f]]=r[s[f]])}}return u}},function(t,e,r){var n=r(19).Symbol;t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(29),i=r(20);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){var n=r(230),i=r(231),o=r(232),a=r(233),s=r(234);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,r){var n=r(46);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(30)(Object,"create");t.exports=n},function(t,e,r){var n=r(252);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(85);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e){t.exports=function(t){return t}},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),u[i]=r(e.pow(n,1/3)),i++),n++}();var l=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],f=r[6],d=r[7],h=0;h<64;h++){if(h<16)l[h]=0|t[e+h];else{var p=l[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=l[h-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[h]=g+l[h-7]+y+l[h-16]}var m=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),E=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&f)+u[h]+l[h];d=f,f=c,c=s,s=a+E|0,a=o,o=i,i=n,n=E+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+f|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=o._createHelper(c),r.HmacSHA256=o._createHmacHelper(c)}(Math),t.SHA256},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(){var e=t,r=e.lib.Hasher,n=e.x64,i=n.Word,o=n.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=s()}();var c=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],f=r[6],d=r[7],h=n.high,p=n.low,g=i.high,v=i.low,y=o.high,m=o.low,b=a.high,E=a.low,T=s.high,w=s.low,S=c.high,_=c.low,k=f.high,x=f.low,A=d.high,O=d.low,P=h,C=p,R=g,D=v,L=y,I=m,M=b,N=E,j=T,B=w,F=S,U=_,H=k,V=x,z=A,G=O,W=0;W<80;W++){var K,Y,X=l[W];if(W<16)Y=X.high=0|t[e+2*W],K=X.low=0|t[e+2*W+1];else{var q=l[W-15],$=q.high,Q=q.low,J=($>>>1|Q<<31)^($>>>8|Q<<24)^$>>>7,Z=(Q>>>1|$<<31)^(Q>>>8|$<<24)^(Q>>>7|$<<25),tt=l[W-2],et=tt.high,rt=tt.low,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,it=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),ot=l[W-7],at=ot.high,st=ot.low,ut=l[W-16],lt=ut.high,ct=ut.low;Y=(Y=(Y=J+at+((K=Z+st)>>>0<Z>>>0?1:0))+nt+((K+=it)>>>0<it>>>0?1:0))+lt+((K+=ct)>>>0<ct>>>0?1:0),X.high=Y,X.low=K}var ft,dt=j&F^~j&H,ht=B&U^~B&V,pt=P&R^P&L^R&L,gt=C&D^C&I^D&I,vt=(P>>>28|C<<4)^(P<<30|C>>>2)^(P<<25|C>>>7),yt=(C>>>28|P<<4)^(C<<30|P>>>2)^(C<<25|P>>>7),mt=(j>>>14|B<<18)^(j>>>18|B<<14)^(j<<23|B>>>9),bt=(B>>>14|j<<18)^(B>>>18|j<<14)^(B<<23|j>>>9),Et=u[W],Tt=Et.high,wt=Et.low,St=z+mt+((ft=G+bt)>>>0<G>>>0?1:0),_t=yt+gt;z=H,G=V,H=F,V=U,F=j,U=B,j=M+(St=(St=(St=St+dt+((ft+=ht)>>>0<ht>>>0?1:0))+Tt+((ft+=wt)>>>0<wt>>>0?1:0))+Y+((ft+=K)>>>0<K>>>0?1:0))+((B=N+ft|0)>>>0<N>>>0?1:0)|0,M=L,N=I,L=R,I=D,R=P,D=C,P=St+(vt+pt+(_t>>>0<yt>>>0?1:0))+((C=ft+_t|0)>>>0<ft>>>0?1:0)|0}p=n.low=p+C,n.high=h+P+(p>>>0<C>>>0?1:0),v=i.low=v+D,i.high=g+R+(v>>>0<D>>>0?1:0),m=o.low=m+I,o.high=y+L+(m>>>0<I>>>0?1:0),E=a.low=E+N,a.high=b+M+(E>>>0<N>>>0?1:0),w=s.low=w+B,s.high=T+j+(w>>>0<B>>>0?1:0),_=c.low=_+U,c.high=S+F+(_>>>0<U>>>0?1:0),x=f.low=x+V,f.high=k+H+(x>>>0<V>>>0?1:0),O=d.low=O+G,d.high=A+z+(O>>>0<G>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=r._createHelper(c),e.HmacSHA512=r._createHmacHelper(c)}(),t.SHA512},"object"===s(e)?t.exports=e=a(r(2),r(23)):(i=[r(2),r(23)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(171),i=r(93);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e){t.exports=!0},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){"use strict";e.__esModule=!0;var n=a(r(357)),i=a(r(369)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof i.default&&"symbol"===o(n.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":o(t)}},function(t,e,r){"use strict";function n(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function i(t){this.setState(function(e){var r=this.constructor.getDerivedStateFromProps(t,e);return null!=r?r:null}.bind(this))}function o(t,e){try{var r=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var r=null,a=null,s=null;if("function"==typeof e.componentWillMount?r="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?s="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==s){var u=t.displayName||t.name,l="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=n,e.componentWillReceiveProps=i),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;c.call(this,t,e,n)}}return t}r.r(e),r.d(e,"polyfill",(function(){return a})),n.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}},function(t,e,r){"use strict";r.r(e);var n=r(69),i=r.n(n),o=r(8),a=r.n(o),s=r(7),u=r.n(s),l=r(9),c=r.n(l),f=r(1),d=r.n(f),h=r(0),p=r.n(h),g=function(t){function e(){return a()(this,e),u()(this,t.apply(this,arguments))}return c()(e,t),e.prototype.shouldComponentUpdate=function(t){return t.hiddenClassName||t.visible},e.prototype.render=function(){var t=this.props,e=t.hiddenClassName,r=t.visible,n=i()(t,["hiddenClassName","visible"]);return e||d.a.Children.count(n.children)>1?(!r&&e&&(n.className+=" "+e),d.a.createElement("div",n)):d.a.Children.only(n.children)},e}(f.Component);g.propTypes={children:p.a.any,className:p.a.string,visible:p.a.bool,hiddenClassName:p.a.string},e.default=g},function(t,e,r){"use strict";r.r(e);var n=r(13),i=r.n(n),o=r(190),a=r.n(o),s=r(8),u=r.n(s),l=r(42),c=r.n(l),f=r(7),d=r.n(f),h=r(9),p=r.n(h),g=r(1),v=r.n(g),y=r(0),m=r.n(y),b=r(191),E=r(10),T=r(192),w=r(27),S="rc_animate_"+Date.now();function _(t){var e=t.children;return v.a.isValidElement(e)&&!e.key?v.a.cloneElement(e,{key:S}):e}function k(){}var x=function(t){function e(t){u()(this,e);var r=d()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return A.call(r),r.currentlyAnimatingKeys={},r.keysToEnter=[],r.keysToLeave=[],r.state={children:Object(E.toArrayChildren)(_(t))},r.childrenRefs={},r}return p()(e,t),c()(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props.showProp,r=this.state.children;e&&(r=r.filter((function(t){return!!t.props[e]}))),r.forEach((function(e){e&&t.performAppear(e.key)}))}},{key:"componentWillReceiveProps",value:function(t){var e=this;this.nextProps=t;var r=Object(E.toArrayChildren)(_(t)),n=this.props;n.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach((function(t){e.stop(t)}));var i=n.showProp,o=this.currentlyAnimatingKeys,s=n.exclusive?Object(E.toArrayChildren)(_(n)):this.state.children,u=[];i?(s.forEach((function(t){var e=t&&Object(E.findChildInChildrenByKey)(r,t.key),n=void 0;(n=e&&e.props[i]||!t.props[i]?e:v.a.cloneElement(e||t,a()({},i,!0)))&&u.push(n)})),r.forEach((function(t){t&&Object(E.findChildInChildrenByKey)(s,t.key)||u.push(t)}))):u=Object(E.mergeChildren)(s,r),this.setState({children:u}),r.forEach((function(t){var r=t&&t.key;if(!t||!o[r]){var n=t&&Object(E.findChildInChildrenByKey)(s,r);if(i){var a=t.props[i];if(n)!Object(E.findShownChildInChildrenByKey)(s,r,i)&&a&&e.keysToEnter.push(r);else a&&e.keysToEnter.push(r)}else n||e.keysToEnter.push(r)}})),s.forEach((function(t){var n=t&&t.key;if(!t||!o[n]){var a=t&&Object(E.findChildInChildrenByKey)(r,n);if(i){var s=t.props[i];if(a)!Object(E.findShownChildInChildrenByKey)(r,n,i)&&s&&e.keysToLeave.push(n);else s&&e.keysToLeave.push(n)}else a||e.keysToLeave.push(n)}}))}},{key:"componentDidUpdate",value:function(){var t=this.keysToEnter;this.keysToEnter=[],t.forEach(this.performEnter);var e=this.keysToLeave;this.keysToLeave=[],e.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(t,e){var r=this.props.showProp;return r?Object(E.findShownChildInChildrenByKey)(t,e,r):Object(E.findChildInChildrenByKey)(t,e)}},{key:"stop",value:function(t){delete this.currentlyAnimatingKeys[t];var e=this.childrenRefs[t];e&&e.stop()}},{key:"render",value:function(){var t=this,e=this.props;this.nextProps=e;var r=this.state.children,n=null;r&&(n=r.map((function(r){if(null==r)return r;if(!r.key)throw new Error("must set key for <rc-animate> children");return v.a.createElement(T.default,{key:r.key,ref:function(e){t.childrenRefs[r.key]=e},animation:e.animation,transitionName:e.transitionName,transitionEnter:e.transitionEnter,transitionAppear:e.transitionAppear,transitionLeave:e.transitionLeave},r)})));var o=e.component;if(o){var a=e;return"string"==typeof o&&(a=i()({className:e.className,style:e.style},e.componentProps)),v.a.createElement(o,a,n)}return n[0]||null}}]),e}(v.a.Component);x.isAnimate=!0,x.propTypes={className:m.a.string,style:m.a.object,component:m.a.any,componentProps:m.a.object,animation:m.a.object,transitionName:m.a.oneOfType([m.a.string,m.a.object]),transitionEnter:m.a.bool,transitionAppear:m.a.bool,exclusive:m.a.bool,transitionLeave:m.a.bool,onEnd:m.a.func,onEnter:m.a.func,onLeave:m.a.func,onAppear:m.a.func,showProp:m.a.string,children:m.a.node},x.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:k,onEnter:k,onLeave:k,onAppear:k};var A=function(){var t=this;this.performEnter=function(e){t.childrenRefs[e]&&(t.currentlyAnimatingKeys[e]=!0,t.childrenRefs[e].componentWillEnter(t.handleDoneAdding.bind(t,e,"enter")))},this.performAppear=function(e){t.childrenRefs[e]&&(t.currentlyAnimatingKeys[e]=!0,t.childrenRefs[e].componentWillAppear(t.handleDoneAdding.bind(t,e,"appear")))},this.handleDoneAdding=function(e,r){var n=t.props;if(delete t.currentlyAnimatingKeys[e],!n.exclusive||n===t.nextProps){var i=Object(E.toArrayChildren)(_(n));t.isValidChildByKey(i,e)?"appear"===r?w.default.allowAppearCallback(n)&&(n.onAppear(e),n.onEnd(e,!0)):w.default.allowEnterCallback(n)&&(n.onEnter(e),n.onEnd(e,!0)):t.performLeave(e)}},this.performLeave=function(e){t.childrenRefs[e]&&(t.currentlyAnimatingKeys[e]=!0,t.childrenRefs[e].componentWillLeave(t.handleDoneLeaving.bind(t,e)))},this.handleDoneLeaving=function(e){var r=t.props;if(delete t.currentlyAnimatingKeys[e],!r.exclusive||r===t.nextProps){var n=Object(E.toArrayChildren)(_(r));if(t.isValidChildByKey(n,e))t.performEnter(e);else{var i=function(){w.default.allowLeaveCallback(r)&&(r.onLeave(e),r.onEnd(e,!1))};Object(E.isSameChildren)(t.state.children,n,r.showProp)?i():t.setState({children:n},i)}}}};e.default=Object(b.default)(x)},,function(t,e,r){var n=r(215),i=r(227)(n);t.exports=i},function(t,e,r){var n=r(112),i=r(225),o=r(45);t.exports=function(t){return o(t)?n(t):i(t)}},function(t,e,r){var n=r(218),i=r(22),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,r){(function(t){var n=r(19),i=r(221),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,r(52)(t))},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(222),i=r(223),o=r(224),a=o&&o.isTypedArray,s=a?i(a):n;t.exports=s},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(54),i=r(235),o=r(236),a=r(237),s=r(238),u=r(239);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,t.exports=l},function(t,e,r){var n=r(30)(r(19),"Map");t.exports=n},function(t,e,r){var n=r(244),i=r(251),o=r(253),a=r(254),s=r(255);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,r){var n=r(12),i=r(85),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,r){var n=r(29),i=r(22);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},function(t,e,r){var n=r(127);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],s=Object.keys(a),u=0;u<s.length;++u){var l=s[u],c=a[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:a,prop:l}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r){if(0===t.length)return t;var n=t;if("symbol"==typeof t?n=Symbol.prototype.toString.call(t):"string"!=typeof t&&(n=String(t)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",a=0;a<n.length;++a){var s=n.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=n.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var s=e;return i(e)&&!i(r)&&(s=a(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),s)}}},function(t,e,r){var n=r(39);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(92)("keys"),i=r(65);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(25),i=r(24),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(64)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(89);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports={}},function(t,e,r){var n=r(47),i=r(362),o=r(93),a=r(91)("IE_PROTO"),s=function(){},u=function(){var t,e=r(170)("iframe"),n=o.length;for(e.style.display="none",r(363).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[o[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[a]=t):r=u(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(31).f,i=r(32),o=r(41)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){e.f=r(41)},function(t,e,r){var n=r(24),i=r(25),o=r(64),a=r(99),s=r(31).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,r){"use strict";var n=r(110),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return n.isMemo(t)?a:s[t.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&t(e,i,n)}var a=c(r);f&&(a=a.concat(f(r)));for(var s=u(e),g=u(r),v=0;v<a.length;++v){var y=a[v];if(!(o[y]||n&&n[y]||g&&g[y]||s&&s[y])){var m=d(r,y);try{l(e,y,m)}catch(t){}}}}return e}},function(t,e,r){var n;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)&&n.length){var a=i.apply(null,n);a&&t.push(a)}else if("object"===o)for(var s in n)r.call(n,s)&&n[s]&&t.push(s)}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n)}()},function(t,e,r){"use strict";r.r(e);var n=r(189);e.default=n.default},function(t,e,r){"use strict";function n(t){return(n="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 i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var a;r.r(e),r.d(e,"alignElement",(function(){return rt})),r.d(e,"alignPoint",(function(){return nt}));var s={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function u(){if(void 0!==a)return a;a="";var t=document.createElement("p").style;for(var e in s)e+"Transform"in t&&(a=e);return a}function l(){return u()?"".concat(u(),"TransitionProperty"):"transitionProperty"}function c(){return u()?"".concat(u(),"Transform"):"transform"}function f(t,e){var r=l();r&&(t.style[r]=e,"transitionProperty"!==r&&(t.style.transitionProperty=e))}function d(t,e){var r=c();r&&(t.style[r]=e,"transform"!==r&&(t.style.transform=e))}var h,p=/matrix\((.*)\)/,g=/matrix3d\((.*)\)/;function v(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function y(t,e,r){var i=r;if("object"!==n(e))return void 0!==i?("number"==typeof i&&(i="".concat(i,"px")),void(t.style[e]=i)):h(t,e);for(var o in e)e.hasOwnProperty(o)&&y(t,o,e[o])}function m(t,e){var r=t["page".concat(e?"Y":"X","Offset")],n="scroll".concat(e?"Top":"Left");if("number"!=typeof r){var i=t.document;"number"!=typeof(r=i.documentElement[n])&&(r=i.body[n])}return r}function b(t){return m(t)}function E(t){return m(t,!0)}function T(t){var e=function(t){var e,r,n,i=t.ownerDocument,o=i.body,a=i&&i.documentElement;return r=(e=t.getBoundingClientRect()).left,n=e.top,{left:r-=a.clientLeft||o.clientLeft||0,top:n-=a.clientTop||o.clientTop||0}}(t),r=t.ownerDocument,n=r.defaultView||r.parentWindow;return e.left+=b(n),e.top+=E(n),e}function w(t){return null!=t&&t==t.window}function S(t){return w(t)?t.document:9===t.nodeType?t:t.ownerDocument}var _=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),k=/^(top|right|bottom|left)$/,x="left";function A(t,e){return"left"===t?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function O(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"bottom"===t?"top":void 0}function P(t,e,r){"static"===y(t,"position")&&(t.style.position="relative");var n=-999,i=-999,o=A("left",r),a=A("top",r),s=O(o),u=O(a);"left"!==o&&(n=999),"top"!==a&&(i=999);var c,d="",h=T(t);("left"in e||"top"in e)&&(d=(c=t).style.transitionProperty||c.style[l()]||"",f(t,"none")),"left"in e&&(t.style[s]="",t.style[o]="".concat(n,"px")),"top"in e&&(t.style[u]="",t.style[a]="".concat(i,"px")),v(t);var p=T(t),g={};for(var m in e)if(e.hasOwnProperty(m)){var b=A(m,r),E="left"===m?n:i,w=h[m]-p[m];g[b]=b===m?E+w:E-w}y(t,g),v(t),("left"in e||"top"in e)&&f(t,d);var S={};for(var _ in e)if(e.hasOwnProperty(_)){var k=A(_,r),x=e[_]-h[_];S[k]=_===k?g[k]+x:g[k]-x}y(t,S)}function C(t,e){var r=T(t),n=function(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue("transform")||e.getPropertyValue(c());if(r&&"none"!==r){var n=r.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}(t),i={x:n.x,y:n.y};"left"in e&&(i.x=n.x+e.left-r.left),"top"in e&&(i.y=n.y+e.top-r.top),function(t,e){var r=window.getComputedStyle(t,null),n=r.getPropertyValue("transform")||r.getPropertyValue(c());if(n&&"none"!==n){var i,o=n.match(p);if(o)(i=(o=o[1]).split(",").map((function(t){return parseFloat(t,10)})))[4]=e.x,i[5]=e.y,d(t,"matrix(".concat(i.join(","),")"));else(i=n.match(g)[1].split(",").map((function(t){return parseFloat(t,10)})))[12]=e.x,i[13]=e.y,d(t,"matrix3d(".concat(i.join(","),")"))}else d(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(t,i)}function R(t,e){for(var r=0;r<t.length;r++)e(t[r])}function D(t){return"border-box"===h(t,"boxSizing")}"undefined"!=typeof window&&(h=window.getComputedStyle?function(t,e,r){var n=r,i="",o=S(t);return(n=n||o.defaultView.getComputedStyle(t,null))&&(i=n.getPropertyValue(e)||n[e]),i}:function(t,e){var r=t.currentStyle&&t.currentStyle[e];if(_.test(r)&&!k.test(e)){var n=t.style,i=n[x],o=t.runtimeStyle[x];t.runtimeStyle[x]=t.currentStyle[x],n[x]="fontSize"===e?"1em":r||0,r=n.pixelLeft+"px",n[x]=i,t.runtimeStyle[x]=o}return""===r?"auto":r});var L=["margin","border","padding"];function I(t,e,r){var n,i={},o=t.style;for(n in e)e.hasOwnProperty(n)&&(i[n]=o[n],o[n]=e[n]);for(n in r.call(t),e)e.hasOwnProperty(n)&&(o[n]=i[n])}function M(t,e,r){var n,i,o,a=0;for(i=0;i<e.length;i++)if(n=e[i])for(o=0;o<r.length;o++){var s=void 0;s="border"===n?"".concat(n).concat(r[o],"Width"):n+r[o],a+=parseFloat(h(t,s))||0}return a}var N={getParent:function(t){var e=t;do{e=11===e.nodeType&&e.host?e.host:e.parentNode}while(e&&1!==e.nodeType&&9!==e.nodeType);return e}};function j(t,e,r){var n=r;if(w(t))return"width"===e?N.viewportWidth(t):N.viewportHeight(t);if(9===t.nodeType)return"width"===e?N.docWidth(t):N.docHeight(t);var i="width"===e?["Left","Right"]:["Top","Bottom"],o="width"===e?t.getBoundingClientRect().width:t.getBoundingClientRect().height,a=(h(t),D(t)),s=0;(null==o||o<=0)&&(o=void 0,(null==(s=h(t,e))||Number(s)<0)&&(s=t.style[e]||0),s=parseFloat(s)||0),void 0===n&&(n=a?1:-1);var u=void 0!==o||a,l=o||s;return-1===n?u?l-M(t,["border","padding"],i):s:u?1===n?l:l+(2===n?-M(t,["border"],i):M(t,["margin"],i)):s+M(t,L.slice(n),i)}R(["Width","Height"],(function(t){N["doc".concat(t)]=function(e){var r=e.document;return Math.max(r.documentElement["scroll".concat(t)],r.body["scroll".concat(t)],N["viewport".concat(t)](r))},N["viewport".concat(t)]=function(e){var r="client".concat(t),n=e.document,i=n.body,o=n.documentElement[r];return"CSS1Compat"===n.compatMode&&o||i&&i[r]||o}}));var B={position:"absolute",visibility:"hidden",display:"block"};function F(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e[0];return 0!==i.offsetWidth?n=j.apply(void 0,e):I(i,B,(function(){n=j.apply(void 0,e)})),n}function U(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}R(["width","height"],(function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);N["outer".concat(e)]=function(e,r){return e&&F(e,t,r?0:1)};var r="width"===t?["Left","Right"]:["Top","Bottom"];N[t]=function(e,n){var i=n;if(void 0===i)return e&&F(e,t,-1);if(e){h(e);return D(e)&&(i+=M(e,["padding","border"],r)),y(e,t,i)}}}));var H={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var e=t.ownerDocument||t;return e.defaultView||e.parentWindow},getDocument:S,offset:function(t,e,r){if(void 0===e)return T(t);!function(t,e,r){if(r.ignoreShake){var n=T(t),i=n.left.toFixed(0),o=n.top.toFixed(0),a=e.left.toFixed(0),s=e.top.toFixed(0);if(i===a&&o===s)return}r.useCssRight||r.useCssBottom?P(t,e,r):r.useCssTransform&&c()in document.body.style?C(t,e):P(t,e,r)}(t,e,r||{})},isWindow:w,each:R,css:y,clone:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);if(t.overflow)for(e in t)t.hasOwnProperty(e)&&(r.overflow[e]=t.overflow[e]);return r},mix:U,getWindowScrollLeft:function(t){return b(t)},getWindowScrollTop:function(t){return E(t)},merge:function(){for(var t={},e=0;e<arguments.length;e++)H.mix(t,e<0||arguments.length<=e?void 0:arguments[e]);return t},viewportWidth:0,viewportHeight:0};U(H,N);var V=H.getParent;function z(t){if(H.isWindow(t)||9===t.nodeType)return null;var e,r=H.getDocument(t).body,n=H.css(t,"position");if(!("fixed"===n||"absolute"===n))return"html"===t.nodeName.toLowerCase()?null:V(t);for(e=V(t);e&&e!==r&&9!==e.nodeType;e=V(e))if("static"!==(n=H.css(e,"position")))return e;return null}var G=H.getParent;function W(t,e){for(var r={left:0,right:1/0,top:0,bottom:1/0},n=z(t),i=H.getDocument(t),o=i.defaultView||i.parentWindow,a=i.body,s=i.documentElement;n;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===n.clientWidth||n===a||n===s||"visible"===H.css(n,"overflow")){if(n===a||n===s)break}else{var u=H.offset(n);u.left+=n.clientLeft,u.top+=n.clientTop,r.top=Math.max(r.top,u.top),r.right=Math.min(r.right,u.left+n.clientWidth),r.bottom=Math.min(r.bottom,u.top+n.clientHeight),r.left=Math.max(r.left,u.left)}n=z(n)}var l=null;H.isWindow(t)||9===t.nodeType||(l=t.style.position,"absolute"===H.css(t,"position")&&(t.style.position="fixed"));var c=H.getWindowScrollLeft(o),f=H.getWindowScrollTop(o),d=H.viewportWidth(o),h=H.viewportHeight(o),p=s.scrollWidth,g=s.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(p=o.innerWidth),"hidden"===v.overflowY&&(g=o.innerHeight),t.style&&(t.style.position=l),e||function(t){if(H.isWindow(t)||9===t.nodeType)return!1;var e=H.getDocument(t).body,r=null;for(r=G(t);r&&r!==e;r=G(r)){if("fixed"===H.css(r,"position"))return!0}return!1}(t))r.left=Math.max(r.left,c),r.top=Math.max(r.top,f),r.right=Math.min(r.right,c+d),r.bottom=Math.min(r.bottom,f+h);else{var y=Math.max(p,c+d);r.right=Math.min(r.right,y);var m=Math.max(g,f+h);r.bottom=Math.min(r.bottom,m)}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function K(t){var e,r,n;if(H.isWindow(t)||9===t.nodeType){var i=H.getWindow(t);e={left:H.getWindowScrollLeft(i),top:H.getWindowScrollTop(i)},r=H.viewportWidth(i),n=H.viewportHeight(i)}else e=H.offset(t),r=H.outerWidth(t),n=H.outerHeight(t);return e.width=r,e.height=n,e}function Y(t,e){var r=e.charAt(0),n=e.charAt(1),i=t.width,o=t.height,a=t.left,s=t.top;return"c"===r?s+=o/2:"b"===r&&(s+=o),"c"===n?a+=i/2:"r"===n&&(a+=i),{left:a,top:s}}function X(t,e,r,n,i){var o=Y(e,r[1]),a=Y(t,r[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(t.left-s[0]+n[0]-i[0]),top:Math.round(t.top-s[1]+n[1]-i[1])}}function q(t,e,r){return t.left<r.left||t.left+e.width>r.right}function $(t,e,r){return t.top<r.top||t.top+e.height>r.bottom}function Q(t,e,r){var n=[];return H.each(t,(function(t){n.push(t.replace(e,(function(t){return r[t]})))})),n}function J(t,e){return t[e]=-t[e],t}function Z(t,e){return(/%$/.test(t)?parseInt(t.substring(0,t.length-1),10)/100*e:parseInt(t,10))||0}function tt(t,e){t[0]=Z(t[0],e.width),t[1]=Z(t[1],e.height)}function et(t,e,r,n){var i=r.points,o=r.offset||[0,0],a=r.targetOffset||[0,0],s=r.overflow,u=r.source||t;o=[].concat(o),a=[].concat(a);var l={},c=0,f=W(u,!(!(s=s||{})||!s.alwaysByViewport)),d=K(u);tt(o,d),tt(a,e);var h=X(d,e,i,o,a),p=H.merge(d,h);if(f&&(s.adjustX||s.adjustY)&&n){if(s.adjustX&&q(h,d,f)){var g=Q(i,/[lr]/gi,{l:"r",r:"l"}),v=J(o,0),y=J(a,0);(function(t,e,r){return t.left>r.right||t.left+e.width<r.left})(X(d,e,g,v,y),d,f)||(c=1,i=g,o=v,a=y)}if(s.adjustY&&$(h,d,f)){var m=Q(i,/[tb]/gi,{t:"b",b:"t"}),b=J(o,1),E=J(a,1);(function(t,e,r){return t.top>r.bottom||t.top+e.height<r.top})(X(d,e,m,b,E),d,f)||(c=1,i=m,o=b,a=E)}c&&(h=X(d,e,i,o,a),H.mix(p,h));var T=q(h,d,f),w=$(h,d,f);if(T||w){var S=i;T&&(S=Q(i,/[lr]/gi,{l:"r",r:"l"})),w&&(S=Q(i,/[tb]/gi,{t:"b",b:"t"})),i=S,o=r.offset||[0,0],a=r.targetOffset||[0,0]}l.adjustX=s.adjustX&&T,l.adjustY=s.adjustY&&w,(l.adjustX||l.adjustY)&&(p=function(t,e,r,n){var i=H.clone(t),o={width:e.width,height:e.height};return n.adjustX&&i.left<r.left&&(i.left=r.left),n.resizeWidth&&i.left>=r.left&&i.left+o.width>r.right&&(o.width-=i.left+o.width-r.right),n.adjustX&&i.left+o.width>r.right&&(i.left=Math.max(r.right-o.width,r.left)),n.adjustY&&i.top<r.top&&(i.top=r.top),n.resizeHeight&&i.top>=r.top&&i.top+o.height>r.bottom&&(o.height-=i.top+o.height-r.bottom),n.adjustY&&i.top+o.height>r.bottom&&(i.top=Math.max(r.bottom-o.height,r.top)),H.mix(i,o)}(h,d,f,l))}return p.width!==d.width&&H.css(u,"width",H.width(u)+p.width-d.width),p.height!==d.height&&H.css(u,"height",H.height(u)+p.height-d.height),H.offset(u,{left:p.left,top:p.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:l}}function rt(t,e,r){var n=r.target||e;return et(t,K(n),r,!function(t,e){var r=W(t,e),n=K(t);return!r||n.left+n.width<=r.left||n.top+n.height<=r.top||n.left>=r.right||n.top>=r.bottom}(n,r.overflow&&r.overflow.alwaysByViewport))}function nt(t,e,r){var n,a,s=H.getDocument(t),u=s.defaultView||s.parentWindow,l=H.getWindowScrollLeft(u),c=H.getWindowScrollTop(u),f=H.viewportWidth(u),d=H.viewportHeight(u);n="pageX"in e?e.pageX:l+e.clientX,a="pageY"in e?e.pageY:c+e.clientY;var h=n>=0&&n<=l+f&&a>=0&&a<=c+d;return et(t,{left:n,top:a,width:0,height:0},function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(r,!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r,{points:[r.points[0],"cc"]}),h)}rt.__getOffsetParent=z,rt.__getVisibleRectForElement=W,e.default=rt},function(t,e,r){"use strict";r.r(e),r.d(e,"isCssAnimationSupported",(function(){return u}));var n=r(67),i=r.n(n),o=r(44),a=r(193),s=r.n(a),u=0!==o.default.endEvents.length,l=["Webkit","Moz","O","ms"],c=["-webkit-","-moz-","-o-","ms-",""];function f(t,e){for(var r=window.getComputedStyle(t,null),n="",i=0;i<c.length&&!(n=r.getPropertyValue(c[i]+e));i++);return n}function d(t){if(u){var e=parseFloat(f(t,"transition-delay"))||0,r=parseFloat(f(t,"transition-duration"))||0,n=parseFloat(f(t,"animation-delay"))||0,i=parseFloat(f(t,"animation-duration"))||0,o=Math.max(r+e,i+n);t.rcEndAnimTimeout=setTimeout((function(){t.rcEndAnimTimeout=null,t.rcEndListener&&t.rcEndListener()}),1e3*o+200)}}function h(t){t.rcEndAnimTimeout&&(clearTimeout(t.rcEndAnimTimeout),t.rcEndAnimTimeout=null)}var p=function(t,e,r){var n="object"===(void 0===e?"undefined":i()(e)),a=n?e.name:e,u=n?e.active:e+"-active",l=r,c=void 0,f=void 0,p=s()(t);return r&&"[object Object]"===Object.prototype.toString.call(r)&&(l=r.end,c=r.start,f=r.active),t.rcEndListener&&t.rcEndListener(),t.rcEndListener=function(e){e&&e.target!==t||(t.rcAnimTimeout&&(clearTimeout(t.rcAnimTimeout),t.rcAnimTimeout=null),h(t),p.remove(a),p.remove(u),o.default.removeEndEventListener(t,t.rcEndListener),t.rcEndListener=null,l&&l())},o.default.addEndEventListener(t,t.rcEndListener),c&&c(),p.add(a),t.rcAnimTimeout=setTimeout((function(){t.rcAnimTimeout=null,p.add(u),f&&setTimeout(f,0),d(t)}),30),{stop:function(){t.rcEndListener&&t.rcEndListener()}}};p.style=function(t,e,r){t.rcEndListener&&t.rcEndListener(),t.rcEndListener=function(e){e&&e.target!==t||(t.rcAnimTimeout&&(clearTimeout(t.rcAnimTimeout),t.rcAnimTimeout=null),h(t),o.default.removeEndEventListener(t,t.rcEndListener),t.rcEndListener=null,r&&r())},o.default.addEndEventListener(t,t.rcEndListener),t.rcAnimTimeout=setTimeout((function(){for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r]);t.rcAnimTimeout=null,d(t)}),0)},p.setTransition=function(t,e,r){var n=e,i=r;void 0===r&&(i=n,n=""),n=n||"",l.forEach((function(e){t.style[e+"Transition"+n]=i}))},p.isCssAnimationSupported=u,e.default=p},function(t,e,r){"use strict";r.r(e);var n=r(8),i=r.n(n),o=r(7),a=r.n(o),s=r(9),u=r.n(s),l=r(1),c=r.n(l),f=r(0),d=r.n(f),h=r(70),p=function(t){function e(){return i()(this,e),a()(this,t.apply(this,arguments))}return u()(e,t),e.prototype.render=function(){var t=this.props,e=t.className;return t.visible||(e+=" "+t.hiddenClassName),c.a.createElement("div",{className:e,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseDown:t.onMouseDown,onTouchStart:t.onTouchStart,style:t.style},c.a.createElement(h.default,{className:t.prefixCls+"-content",visible:t.visible},t.children))},e}(l.Component);p.propTypes={hiddenClassName:d.a.string,className:d.a.string,prefixCls:d.a.string,onMouseEnter:d.a.func,onMouseLeave:d.a.func,onMouseDown:d.a.func,onTouchStart:d.a.func,children:d.a.any},e.default=p},function(t,e,r){"use strict";r.r(e),function(t){var n=r(1),i=r.n(n),o=r(14),a=r(0),s=r.n(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:{};function l(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(r,n){t=r,e.forEach((function(e){return e(t,n)}))}}}var c=i.a.createContext||function(t,e){var r,i,a,c="__create-react-context-"+((u[a="__global_unique_id__"]=(u[a]||0)+1)+"__"),f=function(t){function r(){var e;return(e=t.apply(this,arguments)||this).emitter=l(e.props.value),e}Object(o.default)(r,t);var n=r.prototype;return n.getChildContext=function(){var t;return(t={})[c]=this.emitter,t},n.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var r,n=this.props.value,i=t.value;((o=n)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?r=0:(r="function"==typeof e?e(n,i):1073741823,0!==(r|=0)&&this.emitter.set(t.value,r))}var o,a},n.render=function(){return this.props.children},r}(n.Component);f.childContextTypes=((r={})[c]=s.a.object.isRequired,r);var d=function(e){function r(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,r){0!=((0|t.observedBits)&r)&&t.setState({value:t.getValue()})},t}Object(o.default)(r,e);var n=r.prototype;return n.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?1073741823:e},n.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?1073741823:t},n.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},n.getValue=function(){return this.context[c]?this.context[c].get():t},n.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},r}(n.Component);return d.contextTypes=((i={})[c]=s.a.object,i),{Provider:f,Consumer:d}};e.default=c}.call(this,r(21))},function(t,e,r){var n=r(406);t.exports=h,t.exports.parse=o,t.exports.compile=function(t,e){return s(o(t,e),e)},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var r,n=[],o=0,a=0,s="",c=e&&e.delimiter||"/";null!=(r=i.exec(t));){var f=r[0],d=r[1],h=r.index;if(s+=t.slice(a,h),a=h+f.length,d)s+=d[1];else{var p=t[a],g=r[2],v=r[3],y=r[4],m=r[5],b=r[6],E=r[7];s&&(n.push(s),s="");var T=null!=g&&null!=p&&p!==g,w="+"===b||"*"===b,S="?"===b||"*"===b,_=r[2]||c,k=y||m;n.push({name:v||o++,prefix:g||"",delimiter:_,optional:S,repeat:w,partial:T,asterisk:!!E,pattern:k?l(k):E?".*":"[^"+u(_)+"]+?"})}}return a<t.length&&(s+=t.substr(a)),s&&n.push(s),n}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function s(t,e){for(var r=new Array(t.length),i=0;i<t.length;i++)"object"==typeof t[i]&&(r[i]=new RegExp("^(?:"+t[i].pattern+")$",f(e)));return function(e,i){for(var o="",s=e||{},u=(i||{}).pretty?a:encodeURIComponent,l=0;l<t.length;l++){var c=t[l];if("string"!=typeof c){var f,d=s[c.name];if(null==d){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(n(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=u(d[h]),!r[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(d).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(d),!r[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function c(t,e){return t.keys=e,t}function f(t){return t&&t.sensitive?"":"i"}function d(t,e,r){n(e)||(r=e||r,e=[]);for(var i=(r=r||{}).strict,o=!1!==r.end,a="",s=0;s<t.length;s++){var l=t[s];if("string"==typeof l)a+=u(l);else{var d=u(l.prefix),h="(?:"+l.pattern+")";e.push(l),l.repeat&&(h+="(?:"+d+h+")*"),a+=h=l.optional?l.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var p=u(r.delimiter||"/"),g=a.slice(-p.length)===p;return i||(a=(g?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&g?"":"(?="+p+"|$)",c(new RegExp("^"+a,f(r)),e)}function h(t,e,r){return n(e)||(r=e||r,e=[]),r=r||{},t instanceof RegExp?function(t,e){var r=t.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(t,e)}(t,e):n(t)?function(t,e,r){for(var n=[],i=0;i<t.length;i++)n.push(h(t[i],e,r).source);return c(new RegExp("(?:"+n.join("|")+")",f(r)),e)}(t,e,r):function(t,e,r){return d(o(t,r),e,r)}(t,e,r)}},function(t,e){e.__esModule=!0;e.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var r=e.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},n=(e.VALID_TAG_NAMES=Object.keys(r).map((function(t){return r[t]})),e.TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src"},e.REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"});e.HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},e.HTML_TAG_MAP=Object.keys(n).reduce((function(t,e){return t[n[e]]=e,t}),{}),e.SELF_CLOSING_TAGS=[r.NOSCRIPT,r.SCRIPT,r.STYLE],e.HELMET_ATTRIBUTE="data-react-helmet"},function(t,e,r){"use strict";t.exports=r(212)},function(t,e,r){var n=r(216)();t.exports=n},function(t,e,r){var n=r(217),i=r(75),o=r(12),a=r(76),s=r(77),u=r(78),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),c=!r&&i(t),f=!r&&!c&&a(t),d=!r&&!c&&!f&&u(t),h=r||c||f||d,p=h?n(t.length,String):[],g=p.length;for(var v in t)!e&&!l.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||p.push(v);return p}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(21))},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(228),i=r(277),o=r(59),a=r(12),s=r(288);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):n(t):s(t)}},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(256),i=r(22);t.exports=function t(e,r,o,a,s){return e===r||(null==e||null==r||!i(e)&&!i(r)?e!=e&&r!=r:n(e,r,o,a,t,s))}},function(t,e,r){var n=r(257),i=r(119),o=r(260);t.exports=function(t,e,r,a,s,u){var l=1&r,c=t.length,f=e.length;if(c!=f&&!(l&&f>c))return!1;var d=u.get(t),h=u.get(e);if(d&&h)return d==e&&h==t;var p=-1,g=!0,v=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++p<c;){var y=t[p],m=e[p];if(a)var b=l?a(m,y,p,e,t,u):a(y,m,p,t,e,u);if(void 0!==b){if(b)continue;g=!1;break}if(v){if(!i(e,(function(t,e){if(!o(v,e)&&(y===t||s(y,t,r,a,u)))return v.push(e)}))){g=!1;break}}else if(y!==m&&!s(y,m,r,a,u)){g=!1;break}}return u.delete(t),u.delete(e),g}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e,r){var n=r(19).Uint8Array;t.exports=n},function(t,e,r){var n=r(20);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},function(t,e,r){var n=r(124),i=r(58);t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},function(t,e,r){var n=r(12),i=r(84),o=r(279),a=r(282);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(59),i=r(293),o=r(294);t.exports=function(t,e){return o(i(t,e,n),t+"")}},function(t,e,r){var n=r(30),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,r){var n=r(81),i=r(129),o=r(111),a=r(299),s=r(20),u=r(133),l=r(132);t.exports=function t(e,r,c,f,d){e!==r&&o(r,(function(o,u){if(d||(d=new n),s(o))a(e,r,u,c,t,f,d);else{var h=f?f(l(e,u),o,u+"",e,r,d):void 0;void 0===h&&(h=o),i(e,u,h)}}),u)}},function(t,e,r){var n=r(86),i=r(46);t.exports=function(t,e,r){(void 0!==r&&!i(t[e],r)||void 0===r&&!(e in t))&&n(t,e,r)}},function(t,e,r){var n=r(114)(Object.getPrototypeOf,Object);t.exports=n},function(t,e,r){var n=r(29),i=r(130),o=r(22),a=Function.prototype,s=Object.prototype,u=a.toString,l=s.hasOwnProperty,c=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==c}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,r){var n=r(112),i=r(310),o=r(45);t.exports=function(t){return o(t)?n(t,!0):i(t)}},function(t,e,r){var n=r(46),i=r(45),o=r(77),a=r(20);t.exports=function(t,e,r){if(!a(r))return!1;var s=typeof e;return!!("number"==s?i(r)&&o(e,r.length):"string"==s&&e in r)&&n(r[e],t)}},function(t,e,r){(function(t){(function(e,n){"use strict";var i="default"in n?n.default:n,o={LIST:"list",LOOP:"loop",RANDOM:"random",SINGLE:"single",SEQUENCE:"sequence"},a={READY:"ready",LOADING:"loading",PLAYING:"playing",PAUSED:"paused",STOPPED:"stopped",ERROR:"error"},s={index:null,trackId:null,trackName:null,trackUrl:null,trackCoverPath:null,albumId:null,sourceAlbumId:null,albumName:null,albumUrl:null,anchorId:null,canPlay:null,isBaiduMusic:null,isPaid:null,duration:null,src:null,hasBuy:null,albumIsSample:null,sampleDuration:null,updateTime:null,createTime:null,isLike:null,isCopyright:null};function u(t,e){return t(e={exports:{}},e.exports),e.exports}var l=u((function(t){function e(){return t.exports=e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e.apply(this,arguments)}t.exports=e})),c=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var d=function(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),t},h=u((function(t){function e(t){return(e="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 r(n){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=r=function(t){return e(t)}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},r(n)}t.exports=r})),p=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},g=function(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?p(t):e},v=u((function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(r)}t.exports=e})),y=u((function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(r,n)}t.exports=e})),m=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&&y(t,e)},b=i.createContext(),E=function(t){return function(e){return function(r){function n(){return c(this,n),g(this,v(n).apply(this,arguments))}return m(n,r),d(n,[{key:"render",value:function(){var r=this;return i.createElement(b.Consumer,null,(function(n){var o=function(t,e){return"function"!=typeof e?t:"function"==typeof e?e(t):void 0}(n,t);return i.createElement(e,l({},o,r.props))}))}}]),n}(i.Component)}},T=i.createContext(),w=function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}},S=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)},_=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},k=function(t){return w(t)||S(t)||_()},x=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i},A=function(t,e){if(null==t)return{};var r,n,i=x(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i},O=u((function(t){var e=function(t){var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r,n){var i=e&&e.prototype instanceof c?e:c,o=Object.create(i.prototype),a=new w(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=b(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function c(){}function f(){}function d(){}var h={};h[i]=function(){return this};var p=Object.getPrototypeOf,g=p&&p(p(S([])));g&&g!==e&&r.call(g,i)&&(h=g);var v=d.prototype=c.prototype=Object.create(h);function y(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function m(t){var e;this._invoke=function(n,i){function o(){return new Promise((function(e,o){!function e(n,i,o,a){var s=u(t[n],t,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}(n,i,e,o)}))}return e=e?e.then(o,o):o()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return f.prototype=v.constructor=d,d.constructor=f,d[a]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(m.prototype),m.prototype[o]=function(){return this},t.AsyncIterator=m,t.async=function(e,r,n,i){var o=new m(s(e,r,n,i));return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(v),v[a]="Generator",v[i]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));function P(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}var C=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){P(o,n,i,a,s,"next",t)}function s(t){P(o,n,i,a,s,"throw",t)}a(void 0)}))}},R=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t};function D(t,e,r){return"object"===h(r)&&(r=JSON.stringify(r)),t+=-1===t.indexOf("?")?"?":"&",t+=encodeURIComponent(e)+"="+encodeURIComponent(r)}function L(e){var r=e.type,n=e.url,i=e.data,o=e.contentType,a=e.withCredentials,s=void 0!==a&&a,u=e.headers,l=e.timeout,c=void 0===l?3e3:l;return new Promise((function(e,a){if(void 0!==t&&"undefined"==typeof window&&t)return null;var l,f=new XMLHttpRequest;if(s&&(f.withCredentials=!0),"GET"===r.toUpperCase()&&i)for(var d in i)i.hasOwnProperty(d)&&(n=D(n,d,i[d]));for(var h in f.open(r,n,!0),"POST"===r.toUpperCase()&&(l=i,"[object Object]"===Object.prototype.toString.call(l))&&(o&&"application/x-www-form-urlencoded"!==o?(f.setRequestHeader("Content-Type","application/json"),i=JSON.stringify(i)):(f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i=function t(e){var r,n,i,o,a,s,u="";for(r in e)if((n=e[r])instanceof Array)for(s=0;s<n.length;++s)o=n[s],(a={})[r+"["+s+"]"]=o,u+=t(a)+"&";else if(n instanceof Object)for(i in n)o=n[i],(a={})[r+"["+i+"]"]=o,u+=t(a)+"&";else null!=n&&(u+=encodeURIComponent(r)+"="+encodeURIComponent(n)+"&");return u.length?u.substr(0,u.length-1):u}(i))),u)u.hasOwnProperty(h)&&f.setRequestHeader(h,u[h]);f.onload=function(){if(f.status>=200&&f.status<300||304===f.status){var t;try{t=JSON.parse(f.response)}catch(e){t=f.response}e(t)}else a("\n [Request Error]: ".concat(f.status," ").concat(f.statusText," \n [Response]: ").concat(f.response))},f.timeout=c,f.ontimeout=function(){a("链接超时!")},f.onerror=function(){a("网络错误!")},f.onabort=function(){a("请求取消!")},f.send("GET"===r.toUpperCase()?null:i)}))}var I,M,N={get:function(t){var e=t.url,r=t.data,n=t.withCredentials,i=void 0!==n&&n,o=t.headers;return new Promise((function(t,n){!function t(n,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;L({type:"GET",url:e,data:r,withCredentials:i,headers:o}).then((function(t){return n(t)})).catch((function(r){s?a(r):(e=e.replace(/(www|mobile|m)\.ximalaya\.com/,(function(t,e){return"www"===e||"m"===e?"mwsa.ximalaya.com":"mobile"===e?"mobwsa.ximalaya.com":void 0})),t(n,a,++s))}))}(t,n)}))},post:function(t){var e=t.url,r=t.data,n=t.contentType,i=t.withCredentials;return L({type:"POST",url:e,data:r,contentType:n,withCredentials:void 0!==i&&i,headers:t.headers})}},j=function(t){I=t},B=function(){return I},F=!(void 0===t||"undefined"!=typeof window||!t),U=function(){return M},H=function(t,e){var r=window.location,n="file:"===r.protocol?"https:":r.protocol,i=B()||e,o="file:"===window.location.protocol,a="";switch(i){case"test":a="".concat(n,"web"===t?"//test.ximalaya.com":"//m.test.ximalaya.com"),M="".concat(n,"//test.ximalaya.com/simple-revision-for-pc");break;case"uat":a="".concat(n,"web"===t?"//uat.ximalaya.com":"//m.uat.ximalaya.com"),M="".concat(n,"//uat.ximalaya.com/simple-revision-for-pc");break;case"prod":a="".concat(n,"web"===t?"//www.ximalaya.com":"//m.ximalaya.com"),M=o?"".concat(n,"//pc.ximalaya.com/simple-revision-for-pc"):"https://www.ximalaya.com/revision";break;case"xmweb":a="".concat(n,"web"===t?"//xmweb.test.ximalaya.com":"//m.ximalaya.com"),M=o?"".concat(n,"//pc.ximalaya.com/simple-revision-for-pc"):"https://www.ximalaya.com/revision";break;case"debug":a=""}return a},V="undefined"!=typeof window,z=F?function(){return{inServer:F,inWindow:V}}:function(t){var e,r=function(){var t,e=window.location,r="file:"===e.protocol?"https:":e.protocol,n="prod",i=(t=window.location.hostname,!!/test/.test(t)||!!/^\d{0,4}\.\d{0,4}\.\d{0,4}\.\d{0,4}$/.test(t)||!!/localhost/.test(t)),o=/uat\./.test(e.hostname),a="1"===Object({NODE_ENV:"production",RUN_ENV:"web"}).REACT_APP_DEBUG||e.port&&"80"!==e.port,s=/xmweb\.test\./.test(e.hostname);return i&&(n="test"),o&&(n="uat"),a&&(n="debug"),s&&(n="xmweb"),{IS_TEST:i,IS_DEBUG:a,IS_XMWEB:s,PROTOCOL:r,WEB_ROOT:H("web",n),M_ROOT:H("m",n),TOKEN_LABEL:i?"4&_token":"1&_token",inServer:F,inWindow:V,isSafari:/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)}}();if("undefined"!=typeof window&&/m\.((test|uat)\.)?ximalaya\.com/.test(window.location.hostname)&&(r.WEB_ROOT=r.M_ROOT),!t||(e=t,"[object Object]"!==Object.prototype.toString.call(e)))return r;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];r[n]=i}return r.IS_DEBUG&&(r.WEB_ROOT=""),r},G=function(t){return null==t},W={getTracksByAlbumId:function(t){var e=t.albumId,r=t.pageNum,n=void 0===r?1:r,i=t.pageSize,o=void 0===i?30:i,a=t.sort,s=void 0===a?-1:a,u={id:e,num:n,sort:s,size:o,ptype:0};return G(s)&&(u.sort=-1),N.get({url:"".concat(U(),"/play/v1/show"),data:u}).then((function(t){if(200!==t.ret)throw console.warn("/revision/play/v1/show服务调用失败:",t.msg),new Error("/revision/play/v1/show服务调用失败:".concat(t.msg||""));return t.data}))},getTracksByTrackIds:function(t){var e=t.trackIds;Array.isArray(e)&&(e=e.join(","));var r={idsStr:e};return N.get({url:"".concat(U(),"/play/v1/tracks"),data:r}).then((function(t){if(200!==t.ret)throw console.warn("/".concat(U(),"/play/v1/tracks服务调用失败:"),t.msg),new Error(t.msg);return t.data}))},getTracksBySingleTrackId:function(t){var e=t.trackId,r=t.pageSize,n=void 0===r?30:r,i=t.sort,o=void 0===i?-1:i,a={id:e,sort:o,size:n,ptype:1};return G(o)&&(a.sort=-1),N.get({url:"".concat(U(),"/play/v1/show"),data:a}).then((function(t){if(200!==t.ret)throw console.warn("/revision/play/v1/show服务调用失败:",t.msg),new Error("/revision/play/v1/show服务调用失败:".concat(t.msg));return t.data}))},getTrackPremissionInfo:function(t){return N.get({url:"".concat(U(),"/play/v1/audio"),data:{id:t,ptype:1}}).then((function(t){if(200!==t.ret)throw console.warn("/".concat(U(),"/play/v1/audio服务调用失败:"),t.msg),new Error(t.msg);return t.data}))},getDefaultTrackSrc:function(){return N.get({url:"".concat(z().M_ROOT,"/web-config/api/jc/queryAllData"),data:{app:"web",group:"new-hybrid",key:"pay"}}).then((function(t){if(0!==t.ret)throw console.warn("/web-config/api/jc/queryAllData服务调用失败:",t.msg),new Error(t.msg);return t.data}))},getTrackPriceInfo:function(t){return N.get({url:"".concat(U(),"/bdsp/album/pay/schema"),data:{id:t,productType:2}}).then((function(t){if(200!==t.ret)throw console.warn("/".concat(U(),"/bdsp/album/pay/schema服务调用失败:"),t.msg),new Error(t.msg);return t.data.albumPrice}))}},K={API_ERROR_1000:1e3,API_ERROR_1001:1001,BUS_NOT_PALY_ERROR_4000:4e3,BUS_NOT_PALY_ERROR_4001:4001,BUS_NOT_PALY_ERROR_4002:4002,BUS_NOT_PALY_ERROR_4003:4003,BUS_NOT_PALY_ERROR_4004:4004,PALY_ERROR:2e3,PALY_RESUME_ERROR:2001,PLAY_HLS_ERROR:2003};function Y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function X(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(r,!0).forEach((function(e){R(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var q=function(t,e){if(!t)return e;var r=[];"string"==typeof e&&(e=e.split(",")),"number"==typeof e&&(e=[e]);var n=e.findIndex((function(e){return e===t||e===t.toString()}));if(e.length<=40)return e;if(-1===n)return[t];r=[e[n]];var i=n,o=n;do{if(o+1<e.length){var a=e[++o];r.push(a)}if(i-1>0){var s=e[--i];r.unshift(s)}}while(o-i<39);return r},$=function(t,e){return!e||e&&!e.length?null:e.filter((function(e){return+e.trackId==+t}))[0]},Q=function(t){return t&&t[0].index>t[1].index},J=0,Z=function(t,e){return!!t&&("next"===e?Q(t)?1!=t[1].pageNum:t[1].hasMore:Q(t)?t[0].hasMore:1!=t[0].pageNum)},tt=function(t){function e(){var t;return c(this,e),t=g(this,v(e).call(this)),R(p(t),"state",{isCurrentAlbum:!1,isCurrentTrack:!1,isSelectingAlbum:!1,isSelectingTrack:!1}),R(p(t),"_autoPlayNextPage",(function(){var e=t.props.playerCtx.webPlayer,r=function(t){var e=t.isBoundaryTrack,r=t.paginationInfo,n=t.type;return e&&Z(r,n)},n=!1;e.solo("player@nextTrack",(function(i,a){var s=i.playMode,u=i.currentTrackId;if(!n){n=!0;var l=e.playlist,c=e.storage,f=c?c.get("paginationInfo"):t.props.playerCtx.paginationInfo,d=function(t,e){return e.findIndex((function(e){return+e.trackId==+t}))===e.length-1}(u,l),h=r({isBoundaryTrack:d,paginationInfo:f,type:"next"});s!==o.LIST&&s!==o.LOOP||!h?s===o.SEQUENCE?h?t.$_loadMoreTracks(!0,"next")&&a("play next page"):d?a("stop play in SEQUENCE mode"):a(null,{playMode:s,currentTrackId:u}):a(null,{playMode:s,currentTrackId:u}):(t.$_loadMoreTracks(!0,"next"),a("play next page")),n=!1}})),e.solo("player@prevTrack",(function(n,i){var a=n.playMode,s=n.currentTrackId,u=e.playlist,l=e.storage,c=l?l.get("paginationInfo"):t.props.playerCtx.paginationInfo,f=function(t,e){return 0===e.findIndex((function(e){return+e.trackId==+t}))}(s,u),d=r({isBoundaryTrack:f,paginationInfo:c,type:"prev"});a!==o.LIST&&a!==o.LOOP||!d?a===o.SEQUENCE?d?t.$_loadMoreTracks(!0,"prev")&&i("play prev page"):f?i("stop play in SEQUENCE mode"):i(null,{playMode:a,currentTrackId:s}):i(null,{playMode:a,currentTrackId:s}):(t.$_loadMoreTracks(!0,"prev"),i("play next page"))}))})),R(p(t),"getPaginationTracks",function(){var e=C(O.mark((function e(r){var n,i,o,a,s,u,l,c,f,d,h,p,g,v;return O.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.albumId,i=r.trackId,o=r.sort,a=void 0===o?-1:o,s=r.pageNum,u=void 0===s?1:s,l=r.pageSize,c=void 0===l?30:l,(f=t.props.playerCtx).$_dangerously_setState,d=f.webPlayer,h=f.currentTrack,n||i){e.next=4;break}return e.abrupt("return",!1);case 4:return t.setState({isSelectingAlbum:!0}),p=n?W.getTracksByAlbumId:W.getTracksBySingleTrackId,g=n?{albumId:n,sort:a,pageNum:u,pageSize:c}:{trackId:i,sort:a,pageSize:c},e.prev=7,e.next=10,p(g);case 10:return(v=e.sent).tracksAudioPlay&&v.tracksAudioPlay.length&&v.tracksAudioPlay.forEach((function(t){return t.sort=v.sort,t.albumRecordSort=v.albumRecordSort,t})),e.abrupt("return",v);case 15:e.prev=15,e.t0=e.catch(7),d.emit("player@traceError",[h,K.API_ERROR_1000,e.t0]);case 18:return e.abrupt("return",!1);case 19:case"end":return e.stop()}}),e,null,[[7,15]])})));return function(t){return e.apply(this,arguments)}}()),R(p(t),"$_playWithTrackIds",function(){var e=C(O.mark((function e(r){var n,i,o,a,s,u,l;return O.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.trackIds,i=r.currentTrackId,o=void 0===i?null:i,t.props.playerCtx.$_dangerously_setState,t.setState({isSelectingTrack:!0}),t._setPaginationInfo(null),a=q(o,n),e.next=7,W.getTracksByTrackIds({trackIds:a});case 7:s=e.sent,u=s.shows,l=o?$(o,u):u[0],t.props.playerCtx.$_play({track:l,playlist:u});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),R(p(t),"$_playWithTracks",function(){var e=C(O.mark((function e(r){var n,i,o,a,s;return O.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.tracks,i=r.currentTrackId,o=void 0===i?null:i,t.props.playerCtx.$_dangerously_setState,t.setState({isSelectingTrack:!0}),t._setPaginationInfo(null),a=n,s=o?$(o,a):a[0],t.props.playerCtx.$_play({track:s,playlist:a});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),R(p(t),"$_playWithAlbumId",function(){var e=C(O.mark((function e(r){var n,i,o,a,s,u,l,c,f,d,h,p;return O.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.albumId,i=r.sort,o=r.pageNum,a=void 0===o?1:o,s=r.pageSize,u=void 0===s?30:s,l=r.trackId,c=void 0===l?null:l,t.props.playerCtx.webPlayer.emit("player@paginationInfo",[null]),e.next=5,t.getPaginationTracks({albumId:n,pageNum:a,sort:i,pageSize:u});case 5:f=e.sent,d=f.tracksAudioPlay,h=A(f,["tracksAudioPlay"]),t._syncPagination(h,!0),p=c?$(c,d):d[0],t.props.playerCtx.$_play({track:p,playlist:d});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),R(p(t),"$_playWithSingleTrackId",function(){var e=C(O.mark((function e(r,n){var i,o,a,s,u,l,c;return O.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.trackId,o=r.sort,a=r.pageSize,t.props.playerCtx.webPlayer.emit("player@paginationInfo",[null]),e.next=5,t.getPaginationTracks({trackId:i,sort:o,pageSize:a});case 5:s=e.sent,u=s.tracksAudioPlay,l=A(s,["tracksAudioPlay"]),t._syncPagination(l,!0),c=$(i,u),n?t.props.playerCtx.$_select(c,u):t.props.playerCtx.$_play({track:c,playlist:u});case 11:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),R(p(t),"$_loadMoreTracks",C(O.mark((function e(){var r,n,i,o,a,s,u,l,c,f,d,h,p,g,v,y,m,b,E,T,w,S,_=arguments;return O.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=_.length>0&&void 0!==_[0]&&_[0],n=_.length>1&&void 0!==_[1]?_[1]:"next",i=t.props.playerCtx,o=i.webPlayer,a=i.playlist,s=i.$_play,u=i.$_setPlaylist,l=i.paginationInfo,c="next"===n,f=o.storage.get("paginationInfo")||l,d=Q(f),Z(f,n)){e.next=8;break}return e.abrupt("return",!1);case 8:return h=f[c?1:0],p=h.albumId,g=h.pageNum,v=h.pageSize,y=h.sort,m=g,c?d?--g:++g:d?++g:--g,e.next=15,t.getPaginationTracks({albumId:p,pageNum:g,sort:y,pageSize:v});case 15:return b=e.sent,E=b.tracksAudioPlay,T=A(b,["tracksAudioPlay"]),(!E||E&&!E.length)&&(T.pageNum=m),d&&(E=E.reverse()),w=c?[].concat(k(a),k(E)):[].concat(k(E),k(a)),t._syncPagination(T,c),u(w),r?(S=c?E[0]:E[E.length-1],s({track:S,playlist:w})):u(w),e.abrupt("return",w);case 25:case"end":return e.stop()}}),e)})))),R(p(t),"$_reserveSort",(function(){var e=t.props.playerCtx,r=e.webPlayer,n=e.$_setPlaylist,i=e.playlist;if(i=i.reverse(),r.storage){var o=r.storage.get("paginationInfo");if(o){var a=[o[0],o[1]];o[1]=a[0],o[0]=a[1],r.emit("player@paginationInfo",[o])}else J^=1;n(i)}})),R(p(t),"$_hasMorePage",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"next",r=t._getPaginatioInfo();return Z(r,e)})),R(p(t),"$_hasReversed",(function(){var e=t._getPaginatioInfo();return Q(e)})),R(p(t),"$_getAlbumSort",(function(){var e=t._getPaginatioInfo();return e?t.$_hasReversed()?1^e[0].sort:e[0].sort:J})),t}return m(e,t),d(e,[{key:"shouldComponentUpdate",value:function(t,e){if(t.forceRender)return!0;var r=!(!t.albumId||!this.props.albumId||+t.albumId==+this.props.albumId),n=!(!t.trackId||!this.props.trackId||+t.trackId==+this.props.trackId);return!!(e.isCurrentAlbum||this.state.isCurrentAlbum||e.isCurrentTrack||this.state.isCurrentTrack||e.isSelectingAlbum||this.state.isSelectingAlbum||r||n)}}],[{key:"getDerivedStateFromProps",value:function(t,e){if(!t.playerCtx)return null;var r=t.albumId,n=void 0===r?"":r,i=t.trackId,o=void 0===i?"":i,a=t.playerCtx.currentTrack;return a?{isCurrentAlbum:!(+n!=+a.albumId),isCurrentTrack:!(+o!=+a.trackId),isSelectingAlbum:!(+n!=+a.albumId),isSelectingTrack:!(+o!=+a.trackId)}:null}}]),d(e,[{key:"componentDidMount",value:function(){this._autoPlayNextPage()}},{key:"_offEvent",value:function(){var t=this.props.playerCtx.webPlayer;t.off("player@nextTrack"),t.off("player@prevTrack")}},{key:"_getPaginatioInfo",value:function(){var t=this.props.playerCtx,e=t.webPlayer,r=t.paginationInfo,n=e.storage.get("paginationInfo");return n&&0!==n.length||(n=r),n}},{key:"_syncPagination",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.props.playerCtx,n=r.webPlayer;if(r.$_dangerously_setState,n.storage){var i=n.storage.get("paginationInfo")||[X({},t,{index:0}),X({},t,{index:1})];e?i[1]=X({},i[1],{},t):i[0]=X({},i[0],{},t),this._setPaginationInfo(i)}}},{key:"_setPaginationInfo",value:function(t){var e=this.props.playerCtx,r=e.webPlayer,n=e.$_dangerously_setState;r.emit("player@paginationInfo",[t]),n({paginationInfo:t})}},{key:"render",value:function(){var t=this.props,e=t.Component,r=A(t,["Component"]),n=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&r.startsWith("$_")&&(e[r]=t[r]);return e}(this);if(!e)return null;var o=X({},r,{},n,{},this.state);return i.createElement(e,o)}}]),e}(n.Component),et=E()(tt),rt=function(t){if(Array.isArray(t))return t},nt=function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r},it=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},ot=function(t,e){return rt(t)||nt(t,e)||it()};function at(t,e){for(var r in t)e[r]=t[r];return e}var st=function(){function t(){c(this,t),this._handlers={}}return d(t,[{key:"on",value:function(t,e){"function"==typeof e&&(this._handlers[t]?this._handlers[t].push(e):this._handlers[t]=[e])}},{key:"off",value:function(t,e){var r=this._handlers[t];if(r)if(e)for(var n=r.length-1;n>=0;n--)r[n]===e&&r.splice(n,1);else r.splice(0,r.length)}},{key:"unAll",value:function(){this._handlers={}}},{key:"solo",value:function(t,e){var r=this._handlers[t];if(r&&r.length&&r.some((function(t){return e.toString()===t.toString()})))return!1;this.on(t,e)}},{key:"once",value:function(t,e){var r=this;this.on(t,(function n(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];e.apply(r,o),setTimeout((function(){r.off(t,n)}),0)}))}},{key:"emit",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=this._handlers[t];i&&i.forEach((function(t){return t.apply(void 0,r)}))}},{key:"applyPluginsAsyncSeries",value:function(t){var e=Array.prototype.slice.call(arguments,1),r=e.pop(),n=this._handlers[t];if(!n||0===n.length)return r();var i=0,o=this;e.push(at(r,(function(t){return t?r(t):++i>=n.length?r():void n[i].apply(o,e)}))),n[0].apply(this,e)}},{key:"applyPluginsAsyncWaterfall",value:function(t,e,r){if(!this._handlers[t]||0===this._handlers[t].length)return r(null,e);var n=this._handlers[t],i=0,o=this,a=at(r,(function(t,e){return t?r(t,e):++i>=n.length?r(null,e):void n[i].call(o,e,a)}));n[0].call(this,e,a)}}]),t}(),ut=function(t){return JSON.parse(JSON.stringify(t))},lt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:150,r=null;return function(){var n=this,i=arguments;r&&(clearTimeout(r),r=null),r=setTimeout((function(){t.apply(n,i)}),e)}},ct={plugins:[],playbackRate:1,volume:1},ft=function(t){function e(t){var r;c(this,e),r=g(this,v(e).call(this));var n=new Audio;return r.originAudio=n,r.useCustomAudio=!!t.customAudio,t.customAudio&&(n=t.customAudio()),n.loop=!1,n.autoplay=!1,r._options=Object.assign({},ct,t),r._plugins=r._options.plugins,n.preload=r._options.preload||"none",r.audio=n,r._playSrc=null,r._playState=a.STOPPED,r._playInfo=[],r._playbackRate=r._options.playbackRate,r._volume=r._options.volume,r._errorMsg={},r.tempTime=0,r.ininAudioSetting(),r.bindEvents(),r}return m(e,t),d(e,[{key:"bindEvents",value:function(){var t=this,e=this.audio;e.addEventListener("error",function(){var e=C(O.mark((function e(r){var n;return O.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(t,e){var r=new Image;r.onerror=function(){return t(!1)},r.onload=function(){return t(!0)},r.src="https://www.ximalaya.com/favicon.ico"}));case 2:if(!1!==e.sent||!t._playSrc||-1===t._playSrc.indexOf("http")){e.next=6;break}return t.pause(),e.abrupt("return");case 6:t._errorMsg={src:t.audio.src,message:r},n=t.audio.src,t.setPlayState(a.ERROR),t.emit("audio@loadError",[r,n,t]);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.addEventListener("playing",(function(){t.setPlayState(a.PLAYING)})),e.addEventListener("pause",(function(){t.setPlayState(a.PAUSED)})),e.addEventListener("ended",(function(){t.setPlayState(a.STOPPED),t.emit("audio@ended")})),e.addEventListener("timeupdate",(function(){var r=e.currentTime;if(t._playState===a.PLAYING){var n=r/e.duration;t.emit("audio@timeUpdate",[r,n])}})),e.addEventListener("progress",(function(){var r=e.buffered.length?e.buffered.end(e.buffered.length-1)/t.getDuration():0;t.emit("audio@progress",[r])})),e.addEventListener("durationchange",(function(){var e=t.getDuration();1!==e&&t.emit("audio@durationChange",[e])}))}},{key:"ininAudioSetting",value:function(){var t=this._options,e=t.playbackRate,r=t.volume;this.setPlaybackRate(e),this.setVolume(r)}},{key:"enhance",value:function(t,e){if(this[t])throw new K('props: "'.concat(t,'" is already exist in webAudio, you can not overrider it!'));var r=e();void 0!==r&&(this[t]=r)}},{key:"getDuration",value:function(){return isNaN(this.audio.duration)?0:this.audio.duration}},{key:"getVolume",value:function(){return this.audio.volume}},{key:"getCurrentTime",value:function(){return this.audio.currentTime||this.tempTime}},{key:"stop",value:function(){this._playState!==a.STOPPED&&(this.setPlayState(a.STOPPED),this.audio.pause(),this.audio.currentTime=this.tempTime=0,this.emit("audio@didStop"))}},{key:"play",value:function(){if(!this._playSrc)throw new K("audio url is not exit!");var t=this.audio.play();t&&t.catch&&t.catch((function(t){t&&t.message&&console.warn("webAudio play catch exception:\n message: ".concat(t.message," \n name: ").concat(t.name))})),this.setPlayState(a.PLAYING)}},{key:"pause",value:function(){this._playState===a.PLAYING&&(this.audio.pause(),this.setPlayState(a.PAUSED))}},{key:"resume",value:function(){var t=this;if(this._playState===a.PAUSED){var e=this.getCurrentTime();if(this.audio.currentTime=e,this._playSrc.indexOf(".m3u8")>-1){var r=this.audio.play();r&&r.catch&&r.catch((function(e){e&&e.message&&(t.emit("audio@traceError",[K.PLAY_HLS_ERROR,"message: ".concat(e.message," name: ").concat(e.name)]),console.warn("webAudio play catch exception:\n message: ".concat(e.message," \n name: ").concat(e.name)))}))}else this.audio.load(),this.audio.addEventListener("canplay",(function(){t.audio.currentTime=e+.01;var r=t.audio.play();r&&r.catch&&r.catch((function(e){e&&e.message&&(t.emit("audio@traceError",[K.PALY_ERROR,"onceEvent message: ".concat(e.message," name: ").concat(e.name)]),console.warn("webAudio play catch exception:\n message: ".concat(e.message," \n name: ").concat(e.name)))}))}),{once:!0})}}},{key:"setSrc",value:function(t){try{if(!t)throw new K("设置音轨地址, src: ".concat(t," 出错"));return this.emit("audio@setSrc"),this._playSrc=t,this.audio.src=this._playSrc,this._playInfo=[],this}catch(t){console.warn("webaudio setSrc error :",t)}}},{key:"setPlayState",value:function(t){if(this._playState!==t){this._playState=t;var e={t:Date.now(),s:this._playState,p:this.audio.currentTime,u:this._playSrc};this._playInfo.push(e),this.emit("audio@playStateChange",[this._playState,this._playInfo]),(!this._playState||this._playState===a.ERROR||this._playInfo.length>3e3)&&(this._playInfo=[])}}},{key:"setPlaybackRate",value:function(t){if(t=Number(t),isNaN(t)||t<.25||t>5)throw K("rate: ".concat(t,". audio playbackRate should in 0.25 to 5!'"));if(+t==+this._playbackRate&&+t==+this.audio.playbackRate)return null;this._playbackRate=t,this.audio.playbackRate=t,this.audio.defaultPlaybackRate=t,this.emit("audio@playbackRateChange",[t])}},{key:"setVolume",value:function(t){t=parseFloat(t),isNaN(t)||(t=(t=t>=1?1:t)<=0?0:t,this._volume=t,this.audio.volume=t,this.emit("audio@volumeChange",[t]))}},{key:"seek",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tempTime,r=arguments.length>1?arguments[1]:void 0;try{if(isNaN(e))throw new K('seek time: "'.concat(e,'" must be number!'));e=Math.max(e,0);var n=this.getDuration();n&&(e=Math.min(e,n)),r?this.audio.currentTime=e:this.tempTime=e,this.audio.currentTime!==e&&0!==e&&r?this.audio.addEventListener("canplay",(function(){t.audio.currentTime=e,t.emit("audio@seekedTime",[e])}),{once:!0}):this.emit("audio@seekedTime",[e])}catch(t){console.error(t)}}}]),e}(st),dt={plugins:[],playbackRate:1,volume:1,playMode:o.LIST,currentTrack:null},ht=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},pt=u((function(t){function e(){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}}function r(n,i,o){return e()?t.exports=r=Reflect.construct:t.exports=r=function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&y(i,r.prototype),i},r.apply(null,arguments)}t.exports=r})),gt=function(t){function e(t){var r,n=t.errorCode,i=void 0===n?0:n,o=t.errorMsg,a=void 0===o?"":o;return c(this,e),(r=g(this,v(e).call(this,"innert Error: errorCode: ".concat(i,"; errorMsg: ").concat(a)))).errorCode=i,r.errorMsg=a,r}return m(e,t),e}(u((function(t){function e(r){var n="function"==typeof Map?new Map:void 0;return t.exports=e=function(t){if(null===t||!ht(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return pt(t,arguments,v(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),y(e,t)},e(r)}t.exports=e}))(Error)),vt=function(t){function e(t){var r;return c(this,e),r=g(this,v(e).call(this)),R(p(r),"VERSION","1.17.5"),r._options=function(t){return Object.assign({},dt,t)}(t),r.playState=a.STOPPED,r.playMode=r._options.playMode,r.volume=r._options.volume,r.playbackRate=r._options.playbackRate,r.currentTrack=r._options.currentTrack,r.selectTrack=null,r.playlist=r._options.playlist||[],r.orderPlaylist=r._options.playlist||[],r.webAudio=new ft(r._options),r._plugins=r._options.plugins,r._lockSwitchTrack=!1,r.bindEvents(),r.initPlugins(),e.prototype.next=lt(r.next.bind(p(r)),300),e.prototype.prev=lt(r.prev.bind(p(r)),300),r.useCustomAudio=!!r._options.customAudio,r}return m(e,t),d(e,[{key:"getContext",value:function(){return{webAudio:this.webAudio,webPlayer:this}}},{key:"getDuration",value:function(){return this.webAudio.getDuration()||this.currentTrack.duration||0}},{key:"enhance",value:function(t,e){if(this[t])throw new Error('props: "'.concat(t,'" is already exist in webPlayer, you can not overrider it!'));var r=e();void 0!==r&&(this[t]=r)}},{key:"initPlugins",value:function(){var t=this;this._plugins.forEach((function(e){e.apply(t.getContext())}))}},{key:"bindEvents",value:function(){var t=this,e=this;this.webAudio.on("audio@playStateChange",(function(r){var n=ot(r,2),i=n[0],o=n[1];t.playState=i,e.emit("player@playStateChange",[i,o])})),this.webAudio.on("audio@loadError",(function(t){var r=ot(t,3),n=r[0],i=r[1],o=r[2];e.applyPluginsAsyncWaterfall("player@loadError",{error:n,src:i,webAudio:o,currentTrack:e.currentTrack},(function(){}))})),this.webAudio.on("audio@volumeChange",(function(r){var n=ot(r,1)[0];t.volume=n,e.emit("player@volumeChange",[n])})),this.webAudio.on("audio@playbackRateChange",(function(r){var n=ot(r,1)[0];t.playbackRate=n,e.emit("player@playbackRateChange",[n])})),this.webAudio.on("audio@timeUpdate",(function(t){var r=ot(t,2),n=r[0],i=r[1];e.emit("player@timeUpdate",[n,i])})),this.webAudio.on("audio@progress",(function(t){var r=ot(t,1)[0];e.emit("player@progress",[r])})),this.webAudio.on("audio@durationChange",(function(t){var r=ot(t,1)[0];e.emit("player@durationChange",[r])})),this.webAudio.on("audio@ended",(function(){switch(e.currentTrack.currentPlayTime&&(e.currentTrack.currentPlayTime={}),e.emit("player@ended"),e.playMode){case o.LOOP:e.seek(0),e.play();break;case o.SINGLE:e.stop(),e.emit("player@timeUpdate",[0,0]);break;default:e.currentTrack.autoPauseIfEnd?e.pause():e.next(!0)}})),this.webAudio.on("audio@seekedTime",(function(t){var r=ot(t,1)[0];e.currentTrack&&e.currentTrack.currentPlayTime&&e.currentTrack.currentPlayTime.currentTime&&(e.currentTrack.currentPlayTime.currentTime=r),e.emit("player@seekedTime",[r])})),this.webAudio.on("audio@seekedTime"),this.webAudio.on("audio@setSrc")}},{key:"_play",value:function(){this.emit("player@willPlayTrack",[this.currentTrack]);var t=this.currentTrack;if(t&&t.currentPlayTime&&t.currentPlayTime.currentTime){var e=t.currentPlayTime.currentTime;this.seek(e,!0)}else this.seek(0,!0);t.disablePlay||this.webAudio.play()}},{key:"_shouldSetPlaylist",value:function(t,e){return JSON.stringify(e)!==JSON.stringify(this.playlist)||t&&0===this.playlist.length}},{key:"setTrack",value:function(t){var e=this;return new Promise((function(r,n){var i=e;e.applyPluginsAsyncWaterfall("player@setTrack",t,(function(t,o){return t?n(t):(i.setCurrentTrack(o),o.src?(i.webAudio.setSrc(i.currentTrack.src),e.playedDuration=0,e.listenedDuration=0,void r(o)):(i.emit("player@traceError",[i.currentTrack,K.PALY_ERROR,"当前的声音的地址无效"]),n(new gt({errorCode:0,errorMsg:"当前的声音的地址无效"}))))}))}))}},{key:"select",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist;return new Promise((function(n,i){return t?e.isSeletngTrack(t)?n(t):void e.applyPluginsAsyncWaterfall("player@selectingTrack",t,(function(t,o){if(t){if(!(t instanceof gt))return i(t);if(e.selectTrack=null,0!==t.errorCode&&1!==t.errorCode||!o)return i(t);o.src||(o.src="https://fdfs.xmcdn.com/storages/1c34-audiofreehighqps/BF/71/CMCoOR8DwbfqAAGPvgB2YZ-c.m4a")}return e.stop(),0===r&&(r=[o]),e.selectTrack=o,e._shouldSetPlaylist(o,r)&&e.setPlaylist(r),e.setTrack(o).then((function(t){n(t)})).catch((function(t){console.warn('[Player Error] player "select" Error on "player@selectingTrack" ',t),i(t)}))})):i("选择的声音不存在")}))}},{key:"stop",value:function(){return this.webAudio.stop(),this.selectTrack=this.currentTrack={},this}},{key:"play",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.track,n=void 0===r?this.currentTrack:r,i=e.playlist,o=void 0===i?this.palylist:i,s=e.seekTime,u=void 0===s?0:s,l=ut(this.currentTrack),c=ut(this.playlist);return n?(!this.isCurrentTrack(n)||this.playState!==a.PLAYING)&&void this.select(n,o).then((function(e){u&&(e.currentPlayTime={currentTime:u}),t._play()})).catch((function(e){console.warn("[Player Error] player catch error: ",e),t.emit("player@Error",[e,l,c]),l=null,c=null})):Promise.reject("当前声音不存在")}},{key:"pause",value:function(){this.webAudio.pause()}},{key:"resume",value:function(){this.webAudio.resume()}},{key:"prev",value:function(t){var e=this;this.applyPluginsAsyncWaterfall("player@prevTrack",{playMode:this.playMode,currentTrackId:this.currentTrack.trackId},(function(r,n){if(r)return"拉取上一页声音数据";e.switchTrack("prev").then((function(r){if(!0!==t)return e._play()})).catch((function(t){console.warn("选择上一曲失败:",t)}))}))}},{key:"next",value:function(t,e){var r=this;this.applyPluginsAsyncWaterfall("player@nextTrack",{playMode:this.playMode,currentTrackId:this.currentTrack.trackId},(function(n,i){return n?"拉取下一页声音数据":r.switchTrack("next",t).then((function(t){if(!0!==e)return r._play()})).catch((function(t){console.warn("选择下一曲失败:",t)}))}))}},{key:"setCurrentTrack",value:function(t){var e=t||{};this.currentTrack=e,this.emit("player@currentTrackChange",[e])}},{key:"setPlaylist",value:function(t){this.playlist=t||[],this.orderPlaylist=t||[],this.emit("player@playlistChange",[t]),this.setPlayMode(this.playMode)}},{key:"setPlayMode",value:function(t){if(o[t.toUpperCase()])if(this.playMode=t.toLowerCase(),this.emit("player@playModeChange",[t]),this.playMode===o.RANDOM){var e=function(t){for(var e,r,n=t.slice(0),i=n.length;i;e=parseInt(Math.random()*i),r=n[--i],n[i]=n[e],n[e]=r);return n}(this.playlist);this.playlist=e}else this.playlist=this.orderPlaylist}},{key:"setVolume",value:function(t){this.webAudio.setVolume(t)}},{key:"seek",value:function(t,e){this.playState!==a.PLAYING&&this.playState!==a.PAUSED||(e=!0),this.webAudio.seek(t,e)}},{key:"setPlaybackRate",value:function(t){this.webAudio.setPlaybackRate(t)}},{key:"getNextTrack",value:function(t,e){if(e=e||this.currentTrack,"next"===t||"prev"===t){var r=this.getIndex(e);switch(-1===r&&(r=0),t){case"next":r=r<this.playlist.length-1?r+1:0;break;case"prev":r=r>0?r-1:this.playlist.length-1}return this.playlist[r]}}},{key:"switchTrack",value:function(t,e){var r=this;if(this._lockSwitchTrack)return this.currentTrack&&"{}"!==JSON.stringify(this.currentTrack)||(this._lockSwitchTrack=!1),Promise.reject("current switch track is locked, current track: ",t);if(this._lockSwitchTrack=!0,"next"===t||"prev"===t){var n=this.getNextTrack(t);return this._lockTimeId&&clearTimeout(this._lockTimeId),this._lockTimeId=setTimeout((function(){r._lockSwitchTrack=!1}),2e3),e&&(n.isAutoNext=!0),this.select(n).finally((function(){r._lockSwitchTrack=!1}))}}},{key:"getSiblingsTrack",value:function(){var t,e,r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={prev:null,next:null},i=this.getIndex(this.currentTrack);return-1===i||(r?(t=i>0?i-1:this.playlist.length-1,e=i<this.playlist.length-1?i+1:0):(t=i-1,e=i+1),n.prev=t<=this.playlist.length?this.playlist[t]:null,n.next=e<=this.playlist.length?this.playlist[e]:null),n}},{key:"getIndex",value:function(t){for(var e=this.playlist,r=0;r<e.length;r++){var n=e[r];if(!n||!t)return-1;if(void 0!==t.trackId&&n.trackId===t.trackId||void 0!==t.uid&&n.uid===t.uid||void 0!==t.programUUid&&n.programUUid===t.programUUid)return r}return-1}},{key:"isCurrentTrack",value:function(t){return this.currentTrack&&+this.currentTrack.trackId==+t.trackId}},{key:"isSeletngTrack",value:function(t){return this.selectTrack&&+this.selectTrack.trackId==+t.trackId&&!this.isCurrentTrack(t)}}]),e}(st);function yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var mt=function(){function t(){if(c(this,t),R(this,"PLAYER_STATE","PLAYER_STATE"),t._singer)return t._singer;t._singer=this,this._initState()}return d(t,[{key:"_initState",value:function(){var t=localStorage.getItem(this.PLAYER_STATE);t||(t=JSON.stringify({}),localStorage.setItem(this.PLAYER_STATE,t))}},{key:"set",value:function(t,e){try{var r=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yt(r,!0).forEach((function(e){R(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yt(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},this.getPlayerState(),{},R({},t,e));localStorage.setItem(this.PLAYER_STATE,JSON.stringify(r))}catch(t){webPlayer.emit("player@traceError",[null,4100,"[storageSupportPlugin] set too large data"]),console.warn(t,"\n[storageSupportPlugin] set too large data \n")}}},{key:"get",value:function(t){return this.getPlayerState()[t]}},{key:"clear",value:function(){localStorage.removeItem(this.PLAYER_STATE)}},{key:"getPlayerState",value:function(){var t=localStorage.getItem(this.PLAYER_STATE)||"{}";return JSON.parse(t)}}]),t}(),bt=function(){function t(e){c(this,t),R(this,"keyName",void 0),this.keyName=e}return d(t,[{key:"set",value:function(t){localStorage.setItem(this.keyName,JSON.stringify(t))}},{key:"get",value:function(){return JSON.parse(localStorage.getItem(this.keyName)||"null")}}]),t}(),Et=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,t),R(this,"defaultState",{playMode:"list",volume:1,playbackRate:1,playlist:[],currentTrack:{},currentTrackId:null,paginationInfo:null,playQuality:64}),R(this,"playTimeStorage",void 0),this._initStorage(e),this.playTimeStorage=new bt("PLAYER_CURRENT_PLAY_TIME")}return d(t,[{key:"_initStorage",value:function(t){var e=this;Object.assign(this.defaultState,t),this.storage=new mt,Object.keys(this.defaultState).forEach((function(t){e.storage.get(t)||e.storage.set(t,e.defaultState[t])}))}},{key:"apply",value:function(t){var e=this,r=(t.webAudio,t.webPlayer);Object.defineProperty(r,"storage",{value:this.storage,configurable:!0}),r.on("player@initWebAudio",(function(t,n){var i=JSON.parse(JSON.stringify(t));Object.keys(i).forEach((function(t){if(void 0!==e.defaultState[t]){var r=e.storage.get(t);i[t]!==r&&(i[t]=r)}}));var o=e.storage.get("currentTrack"),a=e.playTimeStorage.get();a&&o&&o.trackId===a.trackId&&(o.currentPlayTime=a,i.currentTrack.currentPlayTime=a);var s=e.storage.get("playlist");r.select(o,s).catch((function(t){})),n(null,i)})),r.on("player@volumeChange",(function(t){var r=ot(t,1)[0];e.storage.set("volume",r)})),r.on("player@playModeChange",(function(t){var r=ot(t,1)[0];e.storage.set("playMode",r)})),r.on("player@playbackRateChange",(function(t){var r=ot(t,1)[0];e.storage.set("playbackRate",r)})),r.on("player@playlistChange",(function(t){var r=ot(t,1)[0];e.storage.set("playlist",r)})),r.on("player@willPlayTrack",(function(t){var r=ot(t,1)[0];e.storage.set("currentTrack",r),e.storage.set("currentTrackId",r.trackId)})),r.on("player@timeUpdate",function(t){var e,r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,o=0,a=function(){o=+new Date,e=null,t.apply(r,n)},s=function(){var s=+new Date,u=i-(s-o);r=this,n=arguments,u<=0||u>i?(e&&(clearTimeout(e),e=null),o=s,t.apply(r,n)):e||(e=setTimeout(a,u))};return s}((function(t){var n=ot(t,2),i=n[0],o=n[1];e.playTimeStorage.set({trackId:r.currentTrack?r.currentTrack.trackId:-1,recordTime:(new Date).getTime(),currentTime:i,persent:o})}))),r.on("player@paginationInfo",(function(t){var r=ot(t,1)[0];e.storage.set("paginationInfo",r)}))}}]),t}(),Tt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!(!t||!t.length)&&t.some((function(t){return t instanceof Et}))},wt=!0;function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _t(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?St(r,!0).forEach((function(e){R(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):St(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var kt=function(){function t(){c(this,t)}return d(t,[{key:"apply",value:function(t){var e=t.webPlayer;e.on("player@selectingTrack",(function(t,r){if(t.offlineFile)return r(null,t);if(!t||!t.trackId)return r(null,t);var n=W.getTrackPremissionInfo(t.trackId).catch((function(r){e.emit("player@traceError",[t,K.API_ERROR_1000,"接口[/revision/play/v1/audio]: ".concat(r)])})),i=wt?W.getTrackPriceInfo(t.trackId).catch((function(r){e.emit("player@traceError",[t,K.API_ERROR_1000,"接口[/revision/bdsp/album/pay/schema]: ".concat(r)]),console.log("getTrackPriceInfo err",r)})):Promise.resolve({});Promise.all([n,i]).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=ot(e,2),i=n[0],o=n[1];i&&void 0!==i.src&&delete i.src,i&&void 0!==i.sampleDuration&&delete i.sampleDuration;var a=_t({},t,{},i,{albumPrice:o});r(null,a)})).catch((function(){r(null,t)}))}))}}]),t}();function xt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function At(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xt(r,!0).forEach((function(e){R(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Ot=function(){function t(){c(this,t)}return d(t,[{key:"apply",value:function(t){var e=this,r=t.webPlayer,n="";W.getDefaultTrackSrc().then((function(t){if(t&&t.length){var e=t[0].trackSrc;n=0===e.indexOf("//")?"https:"+e:e}})),r.on("player@selectingTrack",(function(t,e){var i=new gt({errorCode:1,errorMsg:"Not Authorized"});if(!t)return e(null,t);if(t.offlineFile)return e(null,t);var o=JSON.parse(JSON.stringify(t));if(t.canPlay)return!1===t.firstPlayStatus&&r.emit("player@cannotPlayTrack",[o,3]),e(null,o);if(!1===t.canPlay&&!0===t.isXimiAhead)return r.emit("player@cannotPlayTrack",[o,4]),e(i,At({},o,{src:n,autoPauseIfEnd:!0}));var a=!0;!1===t.isCopyright?(r.emit("player@cannotPlayTrack",[o,0]),a=!1):t.isCopyright&&!1===t.canPlay&&(r.emit("player@cannotPlayTrack",[o,1]),a=!1),a?e(null,t):e(i,At({},t,{src:n,autoPauseIfEnd:!0}))})),r.on("player@timeUpdate",(function(t){var n=ot(t,2),i=n[0],o=n[1],a=r.currentTrack,s=JSON.parse(JSON.stringify(a));e.pauseTrackBySample(a,i)&&(r.pause(),r.emit("player@cannotPlayTrack",[s,2]));var u=Math.round(100*o);u&&u%30==0&&r._getNextTrackInfo&&r._getNextTrackInfo(a.trackId)}))}},{key:"pauseTrackBySample",value:function(t,e){return!(!t||!t.trackId)&&!(t.hasBuy||!t.albumIsSample)&&t.sampleDuration-1<=e}}]),t}(),Pt=z().TOKEN_LABEL,Ct={getUid:function(){var t=this.getCookie(Pt);return t?t.split("&")[0]:""},getToken:function(){var t=this.getCookie(Pt);return t?t.split("&")[1]:""},getCookie:function(t){var e,r=new RegExp("(^| )"+t+"=([^;]*)(;|$)");return(e=document.cookie.match(r))?unescape(e[2]):null}},Rt=r(136),Dt=Rt,Lt=function(t){return Dt.AES.decrypt({ciphertext:Rt.enc.Base64url.parse(t)},Dt.enc.Hex.parse("aaad3e4fd540b0f79dca95606e72bf93"),{mode:Dt.mode.ECB,padding:Dt.pad.Pkcs7}).toString(Dt.enc.Utf8)};function It(t){return t.isAuthorized&&(t.hasBuy=t.isAuthorized),t.playUrlList&&t.playUrlList.length&&(t.canPlay=!0),t.uid&&delete t.uid,t}function Mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mt(r,!0).forEach((function(e){R(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mt(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var jt=[24,64,128],Bt=["www","mobile","mobwsa","mobilehera"];"undefined"!=typeof window&&/m\.(test\.)?ximalaya\.com/.test(window.location.origin)&&Bt.unshift("m");var Ft=function(t){var e=z(),r=e.IS_DEBUG,n=e.PROTOCOL,i=e.IS_TEST,o=e.IS_XMWEB,a=Bt[t||0]||"mobile",s=r||o?"":"".concat(n,"//").concat(a,".").concat(i?"test.":"","ximalaya.com");return"".concat(s,"/mobile-playpage/track/v3/baseInfo/").concat(Date.now())},Ut=function(){function t(e){c(this,t),this._options=Object.assign({},e)}return d(t,[{key:"stringfy",value:function(t){var e=[];for(var r in t)if(t.hasOwnProperty(r)){var n=encodeURIComponent(t[r]),i=encodeURIComponent(r);e.push("".concat(i,"=").concat(n))}return e.join("&")}},{key:"getAccountInfo",value:function(){return{uid:Ct.getUid(),token:Ct.getToken()}}},{key:"getPlayUrl",value:function(t){var e,r=this,n=1;return this.mediaType&&t.some((function(t){return t.type.indexOf(r.mediaType)>=0&&(e=t.url,!0)})),e||(e=t[0].url),t&&t.length&&(n=t[0].qualityLevel),{qualityLevel:n,encodeText:e}}},{key:"queryPayTrack",value:function(t,e){var r=this;return new Promise((function(n,i){var o=e||r.webPlayer.getPlayQuality(),a=jt.indexOf(o);!function e(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s=Ft(o);return L({type:"GET",url:s,data:{device:r._options.deviceType||"web",trackId:t,trackQualityLevel:a>=0?a:1},withCredentials:!z().IS_DEBUG,timeout:2e3}).then((function(t){if(t.ret)i(t);else{var e=t.trackInfo,o=e.playUrlList,a=e.type;if(o&&o.length){var s=r.getPlayUrl(o),u=s.encodeText,l=s.qualityLevel;n(Nt({},It(t.trackInfo),{src:r._options.decryptFn?r._options.decryptFn(u):Lt(u),type:a,qualityLevel:l}))}else n(Nt({},It(t.trackInfo),{src:"",type:a}))}})).catch((function(t){o<4?setTimeout((function(){e(++o)}),500):i(t)}))}()}))}},{key:"apply",value:function(t){var e=this,r=t.webPlayer;this.preLoadTrack={},this.webPlayer=r,r.on("player@selectingTrack",(function(t,n){if(t){if(!t||!t.trackId)return n(null,t);if(t.offlineFile)return n(null,t);if(e.preLoadTrack[t.trackId]){var i=Nt({},t,{},e.preLoadTrack[t.trackId]);return delete e.preLoadTrack[t.trackId],void n(null,i)}e.queryPayTrack(t.trackId).then((function(e){Object.assign(t,e),n(null,t)}),(function(e){var i=e;e&&e.ret?(r.emit("player@businessError",[e.ret,e.msg,t]),i=e.msg):r.emit("player@cannotGetProtectorUrl",[i]),n(i,t)})).catch((function(e){r.emit("player@cannotGetProtectorUrl",[e]),n(e,t)}))}})),r.setPlayQuality=function(t,n){if((!e.quality||+t!=+e.quality)&&(n&&"string"==typeof n&&(e.mediaType=n),-1!==jt.indexOf(+t))){r.storage&&r.storage.set("playQuality",t),e.quality=t,r.emit("player@playQualityChange",[t]);var i="stopped"===r.webAudio._playState;r.currentTrack&&r.currentTrack.trackId&&e.queryPayTrack(r.currentTrack.trackId).then((function(t){var e=t.src,n=t.qualityLevel;try{if(e===r.webAudio.audio.src)return}catch(t){}var o=r.webAudio.audio.currentTime;if(r.currentTrack.src=e,r.currentTrack.qualityLevel=n,r.webAudio.audio.src=e,r.setCurrentTrack(r.currentTrack),!i){var a="playing"===r.webAudio._playState;r.webAudio.audio.load(),r.seek(o),r.webAudio.setPlayState("paused"),r.webAudio.audio.addEventListener("canplay",(function(){a&&r.webAudio.audio.play()}),{once:!0})}}))}},r.getPlayQuality=function(){return r.storage&&r.storage.get("playQuality")||e.quality||"64"},r.emit("player@playQualityChange",[r.getPlayQuality()]),r.getPlayAddressByTrackId=function(t,r){return t?e.queryPayTrack(t,r):(console.warn("getPlayAddressByTrackId 参数不对 没有传入trackId"),Promise.reject("\b调用getPlayAddressByTrackId 传参错误;没有trackId\b"))},r._getNextTrackInfo=function(t){if(["sequence","list"].includes(r.playMode)&&!e.isPreloading){var n=r.getNextTrack("next",{trackId:t});if(n&&n.trackId){var i=e.preLoadTrack[n.trackId];if(i&&Date.now()-i.preloadTime<54e5)return;e.isPreloading=!0,e.queryPayTrack(n.trackId).then((function(t){t.preloadTime=Date.now(),e.preLoadTrack[n.trackId]=t})).finally((function(){e.isPreloading=!1}))}}}}}]),t}(),Ht=function(){function t(){c(this,t)}return d(t,[{key:"getBaiduMusic",value:function(t){return new Promise((function(e,r){N.get({url:"".concat(z().WEB_ROOT,"/revision/play/baiduMusic"),data:{trackId:t}}).then((function(t){if(200===t.ret){var n=t.data.baiduMusicSrc;e(n)}else r(t)})).catch((function(t){return r(t)}))}))}},{key:"apply",value:function(t){var e=this;t.webPlayer.on("player@setTrack",(function(t,r){if(t){if(t.offlineFile)return r(null,t);if(t.isBaiduMusic){var n=t.trackId;e.getBaiduMusic(n).then((function(e){t.src=e,r(null,t)})).catch((function(e){r(e,t)}))}else r(null,t)}}))}}]),t}(),Vt=function(){function t(){c(this,t),this.errorTracks=[0,1],this.retryLimit=2,this.errorTrackIds=[]}return d(t,[{key:"canRetry",value:function(t){return-1===this.errorTrackIds.indexOf(t)&&this.errorTrackIds.length<10&&this.errorTrackIds.push(t),this.errorTracks[1]=this.errorTracks[0]===t?this.errorTracks[1]+1:1,this.errorTracks[0]=t,this.errorTracks[1]<=this.retryLimit&&-1===this.errorTrackIds.indexOf(t)}},{key:"isPaidTrackExpire",value:function(t){var e=!1,r=/timestamp=(\d+)/.exec(t);if(r&&r[1]){var n=1e3*r[1].slice(0,10);e=Date.now()-n>=54e5}return e}},{key:"apply",value:function(t){var e=this,r=t.webPlayer,n=(t.webAudio,this);r.on("player@Error",(function(t){var n=ot(t,3),i=n[0],o=n[1],a=n[2];o&&o.trackId&&i&&i.errorMsg&&"Not Authorized"!==i.errorMsg&&e.errorTracks[0]!==o.trackId&&e.canRetry(o.trackId)&&r.play({track:o,playlist:a})})),r.on("player@loadError",(function(t,e){t.error;var i=t.src,o=t.webAudio,a=t.currentTrack;if(a&&a.trackId){if(a.sampleDuration>0&&!a._loadRetry)return a._loadRetry=!0,o.audio.load(),void r.webAudio.setPlayState("paused");a.trackId;if(n.errorTracks[0],n.isPaidTrackExpire(i))return a.originUrl=a.src="",void r.play({track:a,seekTime:o.getCurrentTime()||0});e(null,t)}}))}}]),t}(),zt=r(136),Gt="72798eb33fd32602b6ecbd494cbe87fb";function Wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wt(r,!0).forEach((function(e){R(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wt(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Yt=function(t){var e=0,r=t.length,n=t.length-1;return r&&(e=t[n].s===a.STOPPED||t[n].s===a.PAUSED?t[n].p:t[n-1].p),e},Xt=function(t){function e(t){var r;return c(this,e),t=t||{},r=g(this,v(e).call(this,t.clientName)),R(p(r),"_refreshOptions",(function(){return r.options})),r.options={clientName:"",active:!0,refreshOptions:r._refreshOptions.bind(p(r)),extraStatisticInfo:{}},Object.assign(r.options,t),r.timerFn=null,r.intervalTime=0,r.TOKEN="",r}return m(e,t),d(e,[{key:"apply",value:function(t){var e=this,r=t.webPlayer,n=t.webAudio;r.playedDuration=r.playedDuration||0,r.listenedDuration=r.listenedDuration||0,r.on("player@timeUpdate",(function(t){var e=ot(t,1)[0],n=e-(r.mLastPosition||e);n>0&&n<=4&&(r.playedDuration=r.playedDuration+parseInt(1e3*n)/1e3,r.listenedDuration=r.listenedDuration+parseInt(n/r.webAudio.audio.playbackRate*1e3)/1e3),r.mLastPosition=e})),r.on("player@willPlayTrack",(function(t){var i=ot(t,1)[0];if(e.options.refreshOptions(e.options).active){e.timerFn&&clearInterval(e.timerFn);var o=e.isM3U8(i)?"radio":"track",a=[e.getLoggerInterval().then((function(t){return e.intervalTime=t})),new Promise((function(t,r){"radio"===o?e.postRadioCount(i.radioId||0).then((function(){return t()})):e.postTrackCount(i.trackId||0).then((function(r){e.TOKEN=r,t()}))}))];Promise.all(a).then((function(t){var i=ot(t,1)[0];i<=0||!i||(e.timerFn=setInterval((function(){return e.postPlayingInfo(r,n,!0)}),1e3*i))})).catch((function(t){console.warn("接口请求出错",t)}))}})),r.on("player@playStateChange",(function(t){var i=ot(t,2);i[0],i[1],e.options.refreshOptions(e.options).active&&(e.isM3U8(r.currentTrack)?e.postRadioPlayingInfo(r,n):e.postPlayingInfo(r,n))}))}},{key:"postPlayingInfo",value:function(t,e,r){var n=t.playState,i=t.currentTrack;if(i&&i.trackId&&(r&&n===a.PLAYING||!r&&(n===a.STOPPED||n===a.PAUSED))){var o=e._playInfo,s=r?Number(e.getCurrentTime()).toFixed(0):Math.round(Yt(o)),u=Kt({trackId:i.trackId,albumId:i.albumId,direction:1===i.albumRecordSort?1^i.sort:i.sort,startedAt:o[0]?o[0].t:0,endedAt:Date.now(),duration:parseInt(t.playedDuration),listenedDuration:parseInt(t.listenedDuration),breakSecond:s,token:this.TOKEN,device:this.options.clientName,channelId:i.channelId},this.options.extraStatisticInfo);void 0===u.direction&&delete u.direction,void 0===u.channelId&&delete u.channelId,this.postTrackStatistic(u)}}},{key:"postRadioPlayingInfo",value:function(t,e){var r=t.playState,n=t.currentTrack,i=e._playInfo;if(r===a.STOPPED||r===a.PAUSED){var o=Kt({radioId:n.radioId,programScheduleId:n.programScheduleId,programId:n.programId,startedAt:i[0]?i[0].t:0,endedAt:Date.now(),duration:parseInt(t.playedDuration),breakSecond:0,device:this.options.clientName},this.options.extraStatisticInfo);this.postRadioStatistic(o)}}},{key:"isM3U8",value:function(t){return!!t&&t.radioId&&t.src.indexOf(".m3u8")>-1}}]),e}(function(){function t(e){c(this,t),this.HOST=z().WEB_ROOT,this.clientName=e,this.isMobile=/Android|webOS|iPhone|iPod|BlackBerry/.test(navigator.userAgent)}return d(t,[{key:"andDncryptSign",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="trackId=".concat(t.trackId,"&startedAt=").concat(t.startedAt,"&endedAt=").concat(t.endedAt,"&duration=").concat(t.duration,"&breakSecond=").concat(t.breakSecond),r=zt.AES.encrypt(e,zt.enc.Hex.parse(Gt),{mode:zt.mode.ECB,padding:zt.pad.Pkcs7}).ciphertext;t.sign=zt.enc.Base64url.stringify(r)}},{key:"getLoggerInterval",value:function(){return N.get({url:"".concat(this.HOST,"/nyx/v2/track/statistic/interval")}).then((function(t){var e=0;return 0===t.ret&&(e=t.data.interval),e})).catch((function(t){}))}},{key:"postTrackCount",value:function(t){var e="".concat(this.HOST,"/nyx/v2/track/count/").concat(this.isMobile?"wap":"web"),r={trackId:t,clientName:this.clientName};return!this.clientName&&delete r.clientName,N.post({url:e,data:r}).then((function(t){var e=null;return 0===t.ret&&(e=t.data.token),e})).catch((function(t){console.warn("track count: ",t)}))}},{key:"postTrackStatistic",value:function(t){var e="".concat(this.HOST,"/nyx/v2/track/statistic/").concat(this.isMobile?"wap":"web");return!this.clientName&&delete t.device,this.andDncryptSign(t),N.post({url:e,data:t}).catch((function(t){console.warn("track statistic: ",t)}))}},{key:"postRadioCount",value:function(t){var e="".concat(this.HOST,"/nyx/v2/radio/count/web"),r={radioId:t,clientName:this.clientName};return!this.clientName&&delete r.clientName,N.post({url:e,data:r}).catch((function(t){console.warn("postRadioCount error: ",t)}))}},{key:"postRadioStatistic",value:function(t){var e="".concat(this.HOST,"/nyx/v2/radio/statistic/web");return!this.clientName&&delete t.device,N.post({url:e,data:t}).catch((function(t){console.warn("postRadioStatistic error: ",t)}))}}]),t}()),qt={SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},$t=function(){function t(e){var r;c(this,t),R(this,"filterFunc",(function(t,e){if(!Array.isArray(e))return{};var r={},n=String.prototype.toUpperCase.apply(e).split(",");return n.includes("ALL")?t:(n.forEach((function(e){return r[qt[e]]=t[qt[e]]})),r)}));var n=(R(r={},qt.UP,this.prev),R(r,qt.DOWN,this.next),R(r,qt.LEFT,this.seek.bind(this,-1)),R(r,qt.RIGHT,this.seek.bind(this,1)),R(r,qt.SPACE,this.play),r),i=this.filterFunc(n,e);this.funcMap=i}return d(t,[{key:"apply",value:function(t){var e=t.webPlayer,r=t.webAudio;document.body.addEventListener("keydown",this.bindHotkeys.bind(this,{webPlayer:e,webAudio:r}))}},{key:"bindHotkeys",value:function(t,e){var r=t.webPlayer,n=t.webAudio,i=e.target.tagName;if("INPUT"===i||"TEXTAREA"===i||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)return!1;var o=this.funcMap[e.keyCode];o&&(e.preventDefault(),o({webPlayer:r,webAudio:n}))}},{key:"seek",value:function(t,e){var r=e.webPlayer,n=e.webAudio,i=JSON.parse(JSON.stringify(n.getCurrentTime()));n.getDuration()&&(r.playState===a.PAUSED?r.play({seekTime:i+t}):r.playState===a.PLAYING&&r.seek(i+t))}},{key:"next",value:function(t){t.webPlayer.next()}},{key:"prev",value:function(t){t.webPlayer.prev()}},{key:"play",value:function(t){var e=t.webPlayer;switch(e.playState){case a.STOPPED:e.play();break;case a.PAUSED:e.resume();break;case a.PLAYING:e.pause()}}}]),t}(),Qt=z(),Jt=[Ut,kt,Ot,Ht,Et,Xt,Vt],Zt={GetTrackInfo:kt,BeforeSetTrack:Ot,LinkProtector:Ut,BaiduSource:Ht,StorageSupport:Et,ErrorReset:Vt,CountLogger:Xt,Hotkeys:$t};for(var te in Zt)if(Zt.hasOwnProperty(te)){var ee=Zt[te];Object.defineProperty(ee,"name",{value:te,writable:!1,configurable:!0,enumerable:!0})}var re=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Qt.inServer?[]:Jt.map((function(e){var r=e.name;return t[r]?new e(t[r]):new e}))},ne=function(t){function e(t){var r;return c(this,e),(r=g(this,v(e).call(this,t))).state={playPercent:0,cachePercent:0,currentTime:0},r}return m(e,t),d(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){return t.playerCtx.webPlayer.constructor===vt?{webPlayer:t.playerCtx.webPlayer}:null}}]),d(e,[{key:"componentDidUpdate",value:function(t,e){this.state.webPlayer&&!this.hasBindEvents&&this.bindEvents(this.state.webPlayer)}},{key:"bindEvents",value:function(t){var e=this;this.hasBindEvents=!0,t.on("player@timeUpdate",(function(t){var r=ot(t,2),n=r[0],i=r[1];e.setState({currentTime:n,playPercent:i})})),t.on("player@progress",(function(t){var r=ot(t,1)[0];e.setState({cachePercent:r})})),t.on("player@durationChange"),this.initProgressByStore(t)}},{key:"initProgressByStore",value:function(t){var e=t._plugins;if(Tt(e)){var r=(new mt).get("currentTrack"),n=new bt("PLAYER_CURRENT_PLAY_TIME").get();if(n&&(r.currentPlayTime=n),!r)return!1;if(r.currentPlayTime){var i=r.currentPlayTime,o=i.currentTime,a=i.persent;t.seek(o),this.setState({playPercent:a,currentTime:o})}}}},{key:"render",value:function(){var t=this.state,e=(t.webPlayer,A(t,["webPlayer"]));return i.createElement(T.Provider,{value:{progressCtx:e}},this.props.children)}}]),e}(n.Component);function ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var oe=new st,ae=function(t){function e(t){var r;if(c(this,e),r=g(this,v(e).call(this,t)),R(p(r),"$_setTrack",(function(t){r.webPlayer.setTrack(t)})),R(p(r),"$_play",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.track,n=t.playlist;r.webPlayer.emit("play-by-user-interaction",{track:e,playlist:n}),r.webPlayer.play({track:e,playlist:n})})),R(p(r),"$_pause",(function(){r.webPlayer.pause()})),R(p(r),"$_resume",(function(){r.webPlayer.resume()})),R(p(r),"$_prev",(function(t){r.webPlayer.prev(t)})),R(p(r),"$_next",(function(t){r.webPlayer.next(void 0,t)})),R(p(r),"$_setPlaylist",(function(t){r.webPlayer.setPlaylist(t),0===t.length&&(r.webPlayer.emit("player@paginationInfo",[null]),r.setState({paginationInfo:null}))})),R(p(r),"$_setPlayMode",(function(t){r.webPlayer.setPlayMode(t)})),R(p(r),"$_setPlaybackRate",(function(t){r.webPlayer.setPlaybackRate(t)})),R(p(r),"$_setVolume",(function(t){r.webPlayer.setVolume(t)})),R(p(r),"$_seek",(function(t){r.webPlayer.seek(t)})),R(p(r),"$_select",(function(t,e){r.webPlayer.select(t,e)})),R(p(r),"$_dangerously_setState",(function(t){return r.setState(t)})),R(p(r),"$_clearStorage",(function(){r.webPlayer.storage&&r.webPlayer.storage.clear()})),r.state={webAudio:oe,webPlayer:oe,playState:a.STOPPED,playMode:o.LIST,playbackRate:1,volume:1,currentTrack:s,currentTrackId:null,playlist:[],paginationInfo:null,playQuality:64},z().inServer)return g(r);var n=r.initWebAudio(),i=n.webPlayer,u=n.webAudio;return r.state.webAudio=u,r.state.webPlayer=i,r}return m(e,t),d(e,[{key:"componentDidMount",value:function(){this.bindEvents(),this.initPlugins()}},{key:"componentWillUnmount",value:function(){this.unBindEvents()}},{key:"initWebAudio",value:function(){var t=this.props,e=t.ability,r=void 0===e?{}:e;if(void 0!==t.defaultPlugin&&(r.plugins=re()),r&&Tt(r.plugins))try{var n=new mt;Object.keys(this.state).forEach((function(t){void 0!==n.get(t)&&(r[t]=n.get(t))}))}catch(t){}r&&r.proxy&&z({IS_DEBUG:!0}),r&&r.WEB_ROOT&&z({WEB_ROOT:r.WEB_ROOT}),this.webPlayer=new vt(r),this.webAudio=this.webPlayer.webAudio;var i={webPlayer:this.webPlayer,webAudio:this.webPlayer.webAudio};return window.$webPlayer=this.webPlayer,i}},{key:"initPlugins",value:function(){var t=this,e=this.state,r=(e.webPlayer,e.webAudio,A(e,["webPlayer","webAudio"]));this.webPlayer.applyPluginsAsyncWaterfall("player@initWebAudio",r,(function(e,r){var n={};Object.keys(r).forEach((function(e){void 0!==t.state[e]&&(n[e]=r[e])})),t.setState(n)}))}},{key:"bindEvents",value:function(){var t=this;this.webPlayer.on("player@dangerouslySetState",(function(e){t.setState(e)})),this.webPlayer.on("player@playStateChange",(function(e){var r=ot(e,2),n=r[0];r[1],t.setState({playState:n})})),this.webPlayer.on("player@currentTrackChange",(function(e){var r=ot(e,1)[0];t.setState({currentTrack:r,currentTrackId:r.trackId})})),this.webPlayer.on("player@playlistChange",(function(e){var r=ot(e,1)[0];t.setState({playlist:r})})),this.webPlayer.on("player@playModeChange",(function(e){var r=ot(e,1)[0];t.setState({playMode:r})})),this.webPlayer.on("player@playbackRateChange",(function(e){var r=ot(e,1)[0];t.setState({playbackRate:r})})),this.webPlayer.on("player@volumeChange",(function(e){var r=ot(e,1)[0];t.setState({volume:r})})),this.webPlayer.on("player@playQualityChange",(function(e){var r=ot(e,1)[0];t.setState({playQuality:r})}))}},{key:"unBindEvents",value:function(){this.webPlayer.unAll(),this.webAudio.unAll()}},{key:"map$ToFunction",value:function(){var t={};for(var e in this)e.startsWith("$_")&&(t[e]=this[e]);return t}},{key:"render",value:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ie(r,!0).forEach((function(e){R(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ie(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},this.map$ToFunction(),{},this.state);return i.createElement(b.Provider,{value:{playerCtx:t}},i.createElement(ne,{playerCtx:t},this.props.children))}}]),e}(n.Component),se=j,ue={env:function(t){se(t)},needPriceApi:function(t){wt=!!t}},le=j;e.PlayMode=o,e.PlayState=a,e.PlayerConsumer=E,e.ProgressConsumer=function(){return function(t){return function(e){function r(){return c(this,r),g(this,v(r).apply(this,arguments))}return m(r,e),d(r,[{key:"render",value:function(){var e=this;return i.createElement(b.Consumer,null,(function(r){var n=r.playerCtx;return i.createElement(T.Consumer,null,(function(r){var o=r.progressCtx;return i.createElement(t,l({playerCtx:n,progressCtx:o},e.props))}))}))}}]),r}(i.Component)}},e.ProgressContext=T,e.PlayerContext=b,e.PlayerProvider=ae,e.DEFAULT_PLUGINS=Jt,e.getDefaultPluginsInstances=re,e.OFFICAL_PLUGINS=Zt,e.playApi=W,e.request=N,e.SetEnv=le,e.PlayerSetUp=function(t){for(var e in t)ue[e]&&ue[e](t[e])},e.default=et,Object.defineProperty(e,"__esModule",{value:!0})})(e,r(1))}).call(this,r(21))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return t},"object"===s(e)?t.exports=e=a(r(2),r(23),r(137),r(138),r(16),r(139),r(17),r(35),r(60),r(140),r(61),r(141),r(142),r(143),r(36),r(144),r(11),r(3),r(145),r(146),r(147),r(148),r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(158),r(159),r(160)):(i=[r(2),r(23),r(137),r(138),r(16),r(139),r(17),r(35),r(60),r(140),r(61),r(141),r(142),r(143),r(36),r(144),r(11),r(3),r(145),r(146),r(147),r(148),r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(158),r(159),r(160)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,r=e.init;(e.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)}).prototype=e}}(),t.lib.WordArray},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(){var e=t,r=e.lib.WordArray,n=e.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return r.create(n,2*e)}},n.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o+=2){var a=i(e[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o<e;o++)n[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return r.create(n,2*e)}}}(),t.enc.Utf16},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(){var e=t,r=e.lib.WordArray;function n(t,e,n){for(var i=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2|n[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}e.enc.Base64url={stringify:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.words,n=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<n;a+=3)for(var s=r[a>>>2]>>>24-a%4*8&255,u=r[a+1>>>2]>>>24-(a+1)%4*8&255,l=r[a+2>>>2]>>>24-(a+2)%4*8&255,c=s<<16|u<<8|l,f=0;f<4&&a+.75*f<n;f++)o.push(i.charAt(c>>>6*(3-f)&63));var d=i.charAt(64);if(d)for(;o.length%4;)o.push(d);return o.join("")},parse:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.length,i=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var u=t.indexOf(s);-1!==u&&(r=u)}return n(t,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),t.enc.Base64url},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r,n,i,o;return r=(e=t).lib.WordArray,n=e.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}}),e.SHA224=i._createHelper(o),e.HmacSHA224=i._createHmacHelper(o),t.SHA224},"object"===s(e)?t.exports=e=a(r(2),r(60)):(i=[r(2),r(60)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r,n,i,o,a,s;return r=(e=t).x64,n=r.Word,i=r.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}}),e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s),t.SHA384},"object"===s(e)?t.exports=e=a(r(2),r(23),r(61)):(i=[r(2),r(23),r(61)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64.Word,s=r.algo,u=[],l=[],c=[];!function(){for(var t=1,e=0,r=0;r<24;r++){u[t+5*e]=(r+1)*(r+2)/2%64;var n=(2*t+3*e)%5;t=e%5,e=n}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,d=0;d<7;d++){if(1&i){var h=(1<<d)-1;h<32?f^=1<<h:s^=1<<h-32}128&i?i=i<<1^113:i<<=1}c[o]=a.create(s,f)}}();var f=[];!function(){for(var t=0;t<25;t++)f[t]=a.create()}();var d=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=t[e+2*i],a=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(O=r[i]).high^=a,O.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var h=0,p=0,g=0;g<5;g++)h^=(O=r[d+5*g]).high,p^=O.low;var v=f[d];v.high=h,v.low=p}for(d=0;d<5;d++){var y=f[(d+4)%5],m=f[(d+1)%5],b=m.high,E=m.low;for(h=y.high^(b<<1|E>>>31),p=y.low^(E<<1|b>>>31),g=0;g<5;g++)(O=r[d+5*g]).high^=h,O.low^=p}for(var T=1;T<25;T++){var w=(O=r[T]).high,S=O.low,_=u[T];_<32?(h=w<<_|S>>>32-_,p=S<<_|w>>>32-_):(h=S<<_-32|w>>>64-_,p=w<<_-32|S>>>64-_);var k=f[l[T]];k.high=h,k.low=p}var x=f[0],A=r[0];for(x.high=A.high,x.low=A.low,d=0;d<5;d++)for(g=0;g<5;g++){var O=r[T=d+5*g],P=f[T],C=f[(d+1)%5+5*g],R=f[(d+2)%5+5*g];O.high=P.high^~C.high&R.high,O.low=P.low^~C.low&R.low}O=r[0];var D=c[s];O.high^=D.high,O.low^=D.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,l=[],c=0;c<u;c++){var f=a[c],d=f.high,h=f.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),l.push(h),l.push(d)}return new i.init(l,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=o._createHelper(d),r.HmacSHA3=o._createHmacHelper(d)}(Math),t.SHA3},"object"===s(e)?t.exports=e=a(r(2),r(23)):(i=[r(2),r(23)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){
/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,h,E,T,w,S,_,k,x,A,O=this._hash.words,P=f.words,C=d.words,R=s.words,D=u.words,L=l.words,I=c.words;for(w=o=O[0],S=a=O[1],_=h=O[2],k=E=O[3],x=T=O[4],r=0;r<80;r+=1)A=o+t[e+R[r]]|0,A+=r<16?p(a,h,E)+P[0]:r<32?g(a,h,E)+P[1]:r<48?v(a,h,E)+P[2]:r<64?y(a,h,E)+P[3]:m(a,h,E)+P[4],A=(A=b(A|=0,L[r]))+T|0,o=T,T=E,E=b(h,10),h=a,a=A,A=w+t[e+D[r]]|0,A+=r<16?m(S,_,k)+C[0]:r<32?y(S,_,k)+C[1]:r<48?v(S,_,k)+C[2]:r<64?g(S,_,k)+C[3]:p(S,_,k)+C[4],A=(A=b(A|=0,I[r]))+x|0,w=x,x=k,k=b(_,10),_=S,S=A;A=O[1]+h+k|0,O[1]=O[2]+E+x|0,O[2]=O[3]+T+w|0,O[3]=O[4]+o+S|0,O[4]=O[0]+a+_|0,O[0]=A},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function g(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function b(t,e){return t<<e|t>>>32-e}r.RIPEMD160=o._createHelper(h),r.HmacRIPEMD160=o._createHmacHelper(h)}(Math),t.RIPEMD160},"object"===s(e)?t.exports=e=a(r(2)):(i=[r(2)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r,n,i,o,a,s,u;return r=(e=t).lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.SHA1,s=o.HMAC,u=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=s.create(r.hasher,t),o=i.create(),a=i.create([1]),u=o.words,l=a.words,c=r.keySize,f=r.iterations;u.length<c;){var d=n.update(e).finalize(a);n.reset();for(var h=d.words,p=h.length,g=d,v=1;v<f;v++){g=n.finalize(g),n.reset();for(var y=g.words,m=0;m<p;m++)h[m]^=y[m]}o.concat(d),l[0]++}return o.sigBytes=4*c,o}}),e.PBKDF2=function(t,e,r){return u.create(r).compute(t,e)},t.PBKDF2},"object"===s(e)?t.exports=e=a(r(2),r(35),r(36)):(i=[r(2),r(35),r(36)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a<r;a++)t[e+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i,n),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);r.call(this,t,e,i,n),this._prevBlock=o}}),e}(),t.mode.CFB},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r;return t.mode.CTR=(e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)t[e+s]^=a[s]}}),e.Decryptor=r,e),t.mode.CTR},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255==(t>>24&255)){var e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}else t+=16777216;return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(t){0===(t[0]=r(t[0]))&&(t[1]=r(t[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u<i;u++)t[e+u]^=s[u]}});return e.Decryptor=n,e}(),t.mode.CTRGladman},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r;return t.mode.OFB=(e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)t[e+a]^=o[a]}}),e.Decryptor=r,e),t.mode.OFB},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e;return t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e),t.mode.ECB},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){var e,r,n;return r=(e=t).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}},t.format.Hex},"object"===s(e)?t.exports=e=a(r(2),r(3)):(i=[r(2),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],u=[],l=[],c=[],f=[],d=[],h=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var g=t[r],v=t[g],y=t[v],m=257*t[p]^16843008*p;a[r]=m<<24|m>>>8,s[r]=m<<16|m>>>16,u[r]=m<<8|m>>>24,l[r]=m,m=16843009*y^65537*v^257*g^16843008*r,c[p]=m<<24|m>>>8,f[p]=m<<16|m>>>16,d[p]=m<<8|m>>>24,h[p]=m,r?(r=g^t[t[t[y^g]]],n^=t[t[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=e[a]:(l=o[a-1],a%r?r>6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],u=0;u<n;u++){if(a=n-u,u%4)var l=o[a];else l=o[a-4];s[u]=u<4||a<=4?l:c[i[l>>>24]]^f[i[l>>>16&255]]^d[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,u,l,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,c,f,d,h,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,a,s){for(var u=this._nRounds,l=t[e]^r[0],c=t[e+1]^r[1],f=t[e+2]^r[2],d=t[e+3]^r[3],h=4,p=1;p<u;p++){var g=n[l>>>24]^i[c>>>16&255]^o[f>>>8&255]^a[255&d]^r[h++],v=n[c>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&l]^r[h++],y=n[f>>>24]^i[d>>>16&255]^o[l>>>8&255]^a[255&c]^r[h++],m=n[d>>>24]^i[l>>>16&255]^o[c>>>8&255]^a[255&f]^r[h++];l=g,c=v,f=y,d=m}g=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[h++],v=(s[c>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^r[h++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^r[h++],m=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&f])^r[h++],t[e]=g,t[e+1]=v,t[e+2]=y,t[e+3]=m},keySize:8});e.AES=r._createHelper(g)}(),t.AES},"object"===s(e)?t.exports=e=a(r(2),r(16),r(17),r(11),r(3)):(i=[r(2),r(16),r(17),r(11),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;r<56;r++){var n=a[r]-1;e[r]=t[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var l=i[o]=[],c=u[o];for(r=0;r<24;r++)l[r/6|0]|=e[(s[r]-1+c)%28]<<31-r%6,l[4+(r/6|0)]|=e[28+(s[r+24]-1+c)%28]<<31-r%6;for(l[0]=l[0]<<1|l[0]>>>31,r=1;r<7;r++)l[r]=l[r]>>>4*(r-1)+3;l[7]=l[7]<<5|l[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=l[u][((a^i[u])&c[u])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,d.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function h(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}e.DES=i._createHelper(f);var p=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),r=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=f.createEncryptor(n.create(e)),this._des2=f.createEncryptor(n.create(r)),this._des3=f.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),t.TripleDES},"object"===s(e)?t.exports=e=a(r(2),r(16),r(17),r(11),r(3)):(i=[r(2),r(16),r(17),r(11),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=e[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4},"object"===s(e)?t.exports=e=a(r(2),r(16),r(17),r(11),r(3)):(i=[r(2),r(16),r(17),r(11),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&c,d=c<<16|65535&l;for(i[0]^=l,i[1]^=f,i[2]^=c,i[3]^=d,i[4]^=l,i[5]^=f,i[6]^=c,i[7]^=d,r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(t,e){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^l}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(s)}(),t.Rabbit},"object"===s(e)?t.exports=e=a(r(2),r(16),r(17),r(11),r(3)):(i=[r(2),r(16),r(17),r(11),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){"use strict";var n,i,o,a;function s(t){return(s="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)}Object.defineProperty(e,"__esModule",{value:!0}),a=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&c,d=c<<16|65535&l;for(n[0]^=l,n[1]^=f,n[2]^=c,n[3]^=d,n[4]^=l,n[5]^=f,n[6]^=c,n[7]^=d,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(t,e){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^l}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(s)}(),t.RabbitLegacy},"object"===s(e)?t.exports=e=a(r(2),r(16),r(17),r(11),r(3)):(i=[r(2),r(16),r(17),r(11),r(3)],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))},function(t,e,r){var n;"undefined"!=typeof window&&(n=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":
/*!*********************************************!*\
!*** ./node_modules/eventemitter3/index.js ***!
\*********************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||t,o),u=i?i+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function u(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},l.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n<o;n++)a[n]=r[n].fn;return a},l.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},l.prototype.emit=function(t,e,r,n,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,n),!0;case 5:return c.fn.call(c.context,e,r,n,o),!0;case 6:return c.fn.call(c.context,e,r,n,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,r);break;case 4:c[l].fn.call(c[l].context,e,r,n);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},l.prototype.on=function(t,e,r){return s(this,t,e,r,!1)},l.prototype.once=function(t,e,r){return s(this,t,e,r,!0)},l.prototype.removeListener=function(t,e,r,n){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return u(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||n&&!a.once||r&&a.context!==r||u(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==e||n&&!a[s].once||r&&a[s].context!==r)&&l.push(a[s]);l.length?this._events[o]=1===l.length?l[0]:l:u(this,o)}return this},l.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&u(this,e)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,t.exports=l},"./node_modules/url-toolkit/src/url-toolkit.js":
/*!*****************************************************!*\
!*** ./node_modules/url-toolkit/src/url-toolkit.js ***!
\*****************************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,r){var n,i,o,a,s;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,i=/^([^\/?#]*)(.*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(t,e,r){if(r=r||{},t=t.trim(),!(e=e.trim())){if(!r.alwaysNormalize)return t;var n=s.parseURL(t);if(!n)throw new Error("Error trying to parse base URL.");return n.path=s.normalizePath(n.path),s.buildURLFromParts(n)}var o=s.parseURL(e);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return r.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):e;var a=s.parseURL(t);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var u=i.exec(a.path);a.netLoc=u[1],a.path=u[2]}a.netLoc&&!a.path&&(a.path="/");var l={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(l.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var c=a.path,f=c.substring(0,c.lastIndexOf("/")+1)+o.path;l.path=s.normalizePath(f)}else l.path=a.path,o.params||(l.params=a.params,o.query||(l.query=a.query));return null===l.path&&(l.path=r.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(l)},parseURL:function(t){var e=n.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(o,"");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=s},"./node_modules/webworkify-webpack/index.js":
/*!**************************************************!*\
!*** ./node_modules/webworkify-webpack/index.js ***!
\**************************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,r){function n(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.i=function(t){return t},r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r.oe=function(t){throw console.error(t),t};var n=r(r.s=ENTRY_MODULE);return n.default||n}function i(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(t,e,n){var o={};o[n]=[];var a=e.toString(),s=a.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!s)return o;for(var u,l=s[1],c=new RegExp("(\\\\n|\\W)"+i(l)+"\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");u=c.exec(a);)"dll-reference"!==u[3]&&o[n].push(u[3]);for(c=new RegExp("\\("+i(l)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");u=c.exec(a);)t[u[2]]||(o[n].push(u[1]),t[u[2]]=r(u[1]).m),o[u[2]]=o[u[2]]||[],o[u[2]].push(u[4]);for(var f,d=Object.keys(o),h=0;h<d.length;h++)for(var p=0;p<o[d[h]].length;p++)f=o[d[h]][p],isNaN(1*f)||(o[d[h]][p]=1*o[d[h]][p]);return o}function a(t){return Object.keys(t).reduce((function(e,r){return e||t[r].length>0}),!1)}t.exports=function(t,e){e=e||{};var i={main:r.m},s=e.all?{main:Object.keys(i.main)}:function(t,e){for(var r={main:[e]},n={main:[]},i={main:{}};a(r);)for(var s=Object.keys(r),u=0;u<s.length;u++){var l=s[u],c=r[l].pop();if(i[l]=i[l]||{},!i[l][c]&&t[l][c]){i[l][c]=!0,n[l]=n[l]||[],n[l].push(c);for(var f=o(t,t[l][c],l),d=Object.keys(f),h=0;h<d.length;h++)r[d[h]]=r[d[h]]||[],r[d[h]]=r[d[h]].concat(f[d[h]])}}return n}(i,t),u="";Object.keys(s).filter((function(t){return"main"!==t})).forEach((function(t){for(var e=0;s[t][e];)e++;s[t].push(e),i[t][e]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",u=u+"var "+t+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+s[t].map((function(e){return JSON.stringify(e)+": "+i[t][e].toString()})).join(",")+"});\n"})),u=u+"new (("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+s.main.map((function(t){return JSON.stringify(t)+": "+i.main[t].toString()})).join(",")+"}))(self);";var l=new window.Blob([u],{type:"text/javascript"});if(e.bare)return l;var c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(l),f=new window.Worker(c);return f.objectURL=c,f}},"./src/crypt/decrypter.js":
/*!********************************************!*\
!*** ./src/crypt/decrypter.js + 3 modules ***!
\********************************************/
/*! exports provided: default */
/*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/hls.ts */function(t,e,r){"use strict";r.r(e);var n=function(){function t(t,e){this.subtle=t,this.aesIV=e}return t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)},t}(),i=function(){function t(t,e){this.subtle=t,this.key=e}return t.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}(),o=function(){function t(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}var e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),r=new Uint32Array(4),n=0;n<4;n++)r[n]=e.getUint32(4*n);return r},e.initTable=function(){var t=this.sBox,e=this.invSBox,r=this.subMix,n=r[0],i=r[1],o=r[2],a=r[3],s=this.invSubMix,u=s[0],l=s[1],c=s[2],f=s[3],d=new Uint32Array(256),h=0,p=0,g=0;for(g=0;g<256;g++)d[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){var v=p^p<<1^p<<2^p<<3^p<<4;v=v>>>8^255&v^99,t[h]=v,e[v]=h;var y=d[h],m=d[y],b=d[m],E=257*d[v]^16843008*v;n[h]=E<<24|E>>>8,i[h]=E<<16|E>>>16,o[h]=E<<8|E>>>24,a[h]=E,E=16843009*b^65537*m^257*y^16843008*h,u[v]=E<<24|E>>>8,l[v]=E<<16|E>>>16,c[v]=E<<8|E>>>24,f[v]=E,h?(h=y^d[d[d[b^y]]],p^=d[d[p]]):h=p=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,n=0;n<e.length&&r;)r=e[n]===this.key[n],n++;if(!r){this.key=e;var i=this.keySize=e.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var o,a,s,u,l=this.ksRows=4*(i+6+1),c=this.keySchedule=new Uint32Array(l),f=this.invKeySchedule=new Uint32Array(l),d=this.sBox,h=this.rcon,p=this.invSubMix,g=p[0],v=p[1],y=p[2],m=p[3];for(o=0;o<l;o++)o<i?s=c[o]=e[o]:(u=s,o%i==0?(u=d[(u=u<<8|u>>>24)>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u],u^=h[o/i|0]<<24):i>6&&o%i==4&&(u=d[u>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u]),c[o]=s=(c[o-i]^u)>>>0);for(a=0;a<l;a++)o=l-a,u=3&a?c[o]:c[o-4],f[a]=a<4||o<=4?u:g[d[u>>>24]]^v[d[u>>>16&255]]^y[d[u>>>8&255]]^m[d[255&u]],f[a]=f[a]>>>0}},e.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},e.decrypt=function(t,e,r,n){for(var i,o,a,s,u,l,c,f,d,h,p,g,v,y,m,b,E,T=this.keySize+6,w=this.invKeySchedule,S=this.invSBox,_=this.invSubMix,k=_[0],x=_[1],A=_[2],O=_[3],P=this.uint8ArrayToUint32Array_(r),C=P[0],R=P[1],D=P[2],L=P[3],I=new Int32Array(t),M=new Int32Array(I.length),N=this.networkToHostOrderSwap;e<I.length;){for(d=N(I[e]),h=N(I[e+1]),p=N(I[e+2]),g=N(I[e+3]),u=d^w[0],l=g^w[1],c=p^w[2],f=h^w[3],v=4,y=1;y<T;y++)i=k[u>>>24]^x[l>>16&255]^A[c>>8&255]^O[255&f]^w[v],o=k[l>>>24]^x[c>>16&255]^A[f>>8&255]^O[255&u]^w[v+1],a=k[c>>>24]^x[f>>16&255]^A[u>>8&255]^O[255&l]^w[v+2],s=k[f>>>24]^x[u>>16&255]^A[l>>8&255]^O[255&c]^w[v+3],u=i,l=o,c=a,f=s,v+=4;i=S[u>>>24]<<24^S[l>>16&255]<<16^S[c>>8&255]<<8^S[255&f]^w[v],o=S[l>>>24]<<24^S[c>>16&255]<<16^S[f>>8&255]<<8^S[255&u]^w[v+1],a=S[c>>>24]<<24^S[f>>16&255]<<16^S[u>>8&255]<<8^S[255&l]^w[v+2],s=S[f>>>24]<<24^S[u>>16&255]<<16^S[l>>8&255]<<8^S[255&c]^w[v+3],v+=3,M[e]=N(i^C),M[e+1]=N(s^R),M[e+2]=N(a^D),M[e+3]=N(o^L),C=d,R=h,D=p,L=g,e+=4}return n?(m=M.buffer,b=m.byteLength,(E=b&&new DataView(m).getUint8(b-1))?m.slice(0,b-E):m):M.buffer},e.destroy=function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0},t}(),a=r("./src/errors.ts"),s=r("./src/utils/logger.js"),u=r("./src/events.js"),l=r("./src/utils/get-self-scope.js"),c=Object(l.getSelfScope)(),f=function(){function t(t,e,r){var n=(void 0===r?{}:r).removePKCS7Padding,i=void 0===n||n;if(this.logEnabled=!0,this.observer=t,this.config=e,this.removePKCS7Padding=i,i)try{var o=c.crypto;o&&(this.subtle=o.subtle||o.webkitSubtle)}catch(t){}this.disableWebCrypto=!this.subtle}var e=t.prototype;return e.isSync=function(){return this.disableWebCrypto&&this.config.enableSoftwareAES},e.decrypt=function(t,e,r,a){var u=this;if(this.disableWebCrypto&&this.config.enableSoftwareAES){this.logEnabled&&(s.logger.log("JS AES decrypt"),this.logEnabled=!1);var l=this.decryptor;l||(this.decryptor=l=new o),l.expandKey(e),a(l.decrypt(t,0,r,this.removePKCS7Padding))}else{this.logEnabled&&(s.logger.log("WebCrypto AES decrypt"),this.logEnabled=!1);var c=this.subtle;this.key!==e&&(this.key=e,this.fastAesKey=new i(c,e)),this.fastAesKey.expandKey().then((function(i){new n(c,r).decrypt(t,i).catch((function(n){u.onWebCryptoError(n,t,e,r,a)})).then((function(t){a(t)}))})).catch((function(n){u.onWebCryptoError(n,t,e,r,a)}))}},e.onWebCryptoError=function(t,e,r,n,i){this.config.enableSoftwareAES?(s.logger.log("WebCrypto Error, disable WebCrypto API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(e,r,n,i)):(s.logger.error("decrypting error : "+t.message),this.observer.trigger(u.default.ERROR,{type:a.ErrorTypes.MEDIA_ERROR,details:a.ErrorDetails.FRAG_DECRYPT_ERROR,fatal:!0,reason:t.message}))},e.destroy=function(){var t=this.decryptor;t&&(t.destroy(),this.decryptor=void 0)},t}();e.default=f},"./src/demux/demuxer-inline.js":
/*!**************************************************!*\
!*** ./src/demux/demuxer-inline.js + 12 modules ***!
\**************************************************/
/*! exports provided: default */
/*! ModuleConcatenation bailout: Cannot concat with ./src/crypt/decrypter.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/demux/id3.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/demux/mp4demuxer.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/polyfills/number.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/hls.ts */function(t,e,r){"use strict";r.r(e);var n=r("./src/events.js"),i=r("./src/errors.ts"),o=r("./src/crypt/decrypter.js"),a=r("./src/polyfills/number.js"),s=r("./src/utils/logger.js"),u=r("./src/utils/get-self-scope.js");function l(t,e){return 255===t[e]&&240==(246&t[e+1])}function c(t,e){return 1&t[e+1]?7:9}function f(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function d(t,e){return!!(e+1<t.length&&l(t,e))}function h(t,e){if(d(t,e)){var r=c(t,e);if(e+r>=t.length)return!1;var n=f(t,e);if(n<=r)return!1;var i=e+n;if(i===t.length||i+1<t.length&&l(t,i))return!0}return!1}function p(t,e,r,o,a){if(!t.samplerate){var u=function(t,e,r,o){var a,u,l,c,f,d=navigator.userAgent.toLowerCase(),h=o,p=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];if(a=1+((192&e[r+2])>>>6),!((u=(60&e[r+2])>>>2)>p.length-1))return c=(1&e[r+2])<<2,c|=(192&e[r+3])>>>6,s.logger.log("manifest codec:"+o+",ADTS data:type:"+a+",sampleingIndex:"+u+"["+p[u]+"Hz],channelConfig:"+c),/firefox/i.test(d)?u>=6?(a=5,f=new Array(4),l=u-3):(a=2,f=new Array(2),l=u):-1!==d.indexOf("android")?(a=2,f=new Array(2),l=u):(a=5,f=new Array(4),o&&(-1!==o.indexOf("mp4a.40.29")||-1!==o.indexOf("mp4a.40.5"))||!o&&u>=6?l=u-3:((o&&-1!==o.indexOf("mp4a.40.2")&&(u>=6&&1===c||/vivaldi/i.test(d))||!o&&1===c)&&(a=2,f=new Array(2)),l=u)),f[0]=a<<3,f[0]|=(14&u)>>1,f[1]|=(1&u)<<7,f[1]|=c<<3,5===a&&(f[1]|=(14&l)>>1,f[2]=(1&l)<<7,f[2]|=8,f[3]=0),{config:f,samplerate:p[u],channelCount:c,codec:"mp4a.40."+a,manifestCodec:h};t.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+u})}(e,r,o,a);t.config=u.config,t.samplerate=u.samplerate,t.channelCount=u.channelCount,t.codec=u.codec,t.manifestCodec=u.manifestCodec,s.logger.log("parsed codec:"+t.codec+",rate:"+u.samplerate+",nb channel:"+u.channelCount)}}function g(t){return 9216e4/t}function v(t,e,r,n,i){var o=function(t,e,r,n,i){var o,a,s=t.length;if(o=c(t,e),a=f(t,e),(a-=o)>0&&e+o+a<=s)return{headerLength:o,frameLength:a,stamp:r+n*i}}(e,r,n,i,g(t.samplerate));if(o){var a=o.stamp,s=o.headerLength,u=o.frameLength,l={unit:e.subarray(r+s,r+s+u),pts:a,dts:a};return t.samples.push(l),{sample:l,length:u+s}}}var y=r("./src/demux/id3.js"),m=function(){function t(t,e,r){this.observer=t,this.config=r,this.remuxer=e}var e=t.prototype;return e.resetInitSegment=function(t,e,r,n){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:e,duration:n,inputTimeScale:9e4}},e.resetTimeStamp=function(){},t.probe=function(t){if(!t)return!1;for(var e=(y.default.getID3Data(t,0)||[]).length,r=t.length;e<r;e++)if(h(t,e))return s.logger.log("ADTS sync word found !"),!0;return!1},e.append=function(t,e,r,n){for(var i=this._audioTrack,o=y.default.getID3Data(t,0)||[],u=y.default.getTimeStamp(o),l=Object(a.isFiniteNumber)(u)?90*u:9e4*e,c=0,f=l,h=t.length,g=o.length,m=[{pts:f,dts:f,data:o}];g<h-1;)if(d(t,g)&&g+5<h){p(i,this.observer,t,g,i.manifestCodec);var b=v(i,t,g,l,c);if(!b){s.logger.log("Unable to parse AAC frame");break}g+=b.length,f=b.sample.pts,c++}else y.default.isHeader(t,g)?(o=y.default.getID3Data(t,g),m.push({pts:f,dts:f,data:o}),g+=o.length):g++;this.remuxer.remux(i,{samples:[]},{samples:m,inputTimeScale:9e4},{samples:[]},e,r,n)},e.destroy=function(){},t}(),b=r("./src/demux/mp4demuxer.js"),E={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(t,e,r,n,i){if(!(r+24>e.length)){var o=this.parseHeader(e,r);if(o&&r+o.frameLength<=e.length){var a=n+i*(9e4*o.samplesPerFrame/o.sampleRate),s={unit:e.subarray(r,r+o.frameLength),pts:a,dts:a};return t.config=[],t.channelCount=o.channelCount,t.samplerate=o.sampleRate,t.samples.push(s),{sample:s,length:o.frameLength}}}},parseHeader:function(t,e){var r=t[e+1]>>3&3,n=t[e+1]>>1&3,i=t[e+2]>>4&15,o=t[e+2]>>2&3,a=t[e+2]>>1&1;if(1!==r&&0!==i&&15!==i&&3!==o){var s=3===r?3-n:3===n?3:4,u=1e3*E.BitratesMap[14*s+i-1],l=3===r?0:2===r?1:2,c=E.SamplingRateMap[3*l+o],f=t[e+3]>>6==3?1:2,d=E.SamplesCoefficients[r][n],h=E.BytesInSlot[n],p=8*d*h;return{sampleRate:c,channelCount:f,frameLength:parseInt(d*u/c+a,10)*h,samplesPerFrame:p}}},isHeaderPattern:function(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])},isHeader:function(t,e){return!!(e+1<t.length&&this.isHeaderPattern(t,e))},probe:function(t,e){if(e+1<t.length&&this.isHeaderPattern(t,e)){var r=this.parseHeader(t,e),n=4;r&&r.frameLength&&(n=r.frameLength);var i=e+n;if(i===t.length||i+1<t.length&&this.isHeaderPattern(t,i))return!0}return!1}},T=E,w=function(){function t(t){this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,r=t.byteLength-e,n=new Uint8Array(4),i=Math.min(4,e);if(0===i)throw new Error("no bytes available");n.set(t.subarray(r,r+i)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},e.skipBits=function(t){var e;this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)>>3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;return t>32&&s.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0?this.word<<=e:this.bytesAvailable>0&&this.loadWord(),(e=t-e)>0&&this.bitsAvailable?r<<e|this.readBits(e):r},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){var e,r=8,n=8;for(e=0;e<t;e++)0!==n&&(n=(r+this.readEG()+256)%256),r=0===n?r:n},e.readSPS=function(){var t,e,r,n,i,o,a,s=0,u=0,l=0,c=0,f=this.readUByte.bind(this),d=this.readBits.bind(this),h=this.readUEG.bind(this),p=this.readBoolean.bind(this),g=this.skipBits.bind(this),v=this.skipEG.bind(this),y=this.skipUEG.bind(this),m=this.skipScalingList.bind(this);if(f(),t=f(),d(5),g(3),f(),y(),100===t||110===t||122===t||244===t||44===t||83===t||86===t||118===t||128===t){var b=h();if(3===b&&g(1),y(),y(),g(1),p())for(o=3!==b?8:12,a=0;a<o;a++)p()&&m(a<6?16:64)}y();var E=h();if(0===E)h();else if(1===E)for(g(1),v(),v(),e=h(),a=0;a<e;a++)v();y(),g(1),r=h(),n=h(),0===(i=d(1))&&g(1),g(1),p()&&(s=h(),u=h(),l=h(),c=h());var T=[1,1];if(p()&&p())switch(f()){case 1:T=[1,1];break;case 2:T=[12,11];break;case 3:T=[10,11];break;case 4:T=[16,11];break;case 5:T=[40,33];break;case 6:T=[24,11];break;case 7:T=[20,11];break;case 8:T=[32,11];break;case 9:T=[80,33];break;case 10:T=[18,11];break;case 11:T=[15,11];break;case 12:T=[64,33];break;case 13:T=[160,99];break;case 14:T=[4,3];break;case 15:T=[3,2];break;case 16:T=[2,1];break;case 255:T=[f()<<8|f(),f()<<8|f()]}return{width:Math.ceil(16*(r+1)-2*s-2*u),height:(2-i)*(n+1)*16-(i?2:4)*(l+c),pixelRatio:T}},e.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}(),S=function(){function t(t,e,r,n){this.decryptdata=r,this.discardEPB=n,this.decrypter=new o.default(t,e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t,e){this.decrypter.decrypt(t,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,e)},e.decryptAacSample=function(t,e,r,n){var i=t[e].unit,o=i.subarray(16,i.length-i.length%16),a=o.buffer.slice(o.byteOffset,o.byteOffset+o.length),s=this;this.decryptBuffer(a,(function(o){o=new Uint8Array(o),i.set(o,16),n||s.decryptAacSamples(t,e+1,r)}))},e.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32)){var n=this.decrypter.isSync();if(this.decryptAacSample(t,e,r,n),!n)return}}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),n=0,i=32;i<=t.length-16;i+=160,n+=16)r.set(t.subarray(i,i+16),n);return r},e.getAvcDecryptedUnit=function(t,e){e=new Uint8Array(e);for(var r=0,n=32;n<=t.length-16;n+=160,r+=16)t.set(e.subarray(r,r+16),n);return t},e.decryptAvcSample=function(t,e,r,n,i,o){var a=this.discardEPB(i.data),s=this.getAvcEncryptedData(a),u=this;this.decryptBuffer(s.buffer,(function(s){i.data=u.getAvcDecryptedUnit(a,s),o||u.decryptAvcSamples(t,e,r+1,n)}))},e.decryptAvcSamples=function(t,e,r,n){for(;;e++,r=0){if(e>=t.length)return void n();for(var i=t[e].units;!(r>=i.length);r++){var o=i[r];if(!(o.data.length<=48||1!==o.type&&5!==o.type)){var a=this.decrypter.isSync();if(this.decryptAvcSample(t,e,r,n,o,a),!a)return}}}},t}(),_={video:1,audio:2,id3:3,text:4},k=function(){function t(t,e,r,n){this.observer=t,this.config=r,this.typeSupported=n,this.remuxer=e,this.sampleAes=null,this.pmtUnknownTypes={}}var e=t.prototype;return e.setDecryptData=function(t){null!=t&&null!=t.key&&"SAMPLE-AES"===t.method?this.sampleAes=new S(this.observer,this.config,t,this.discardEPB):this.sampleAes=null},t.probe=function(e){var r=t._syncOffset(e);return!(r<0||(r&&s.logger.warn("MPEG2-TS detected but first sync word found @ offset "+r+", junk ahead ?"),0))},t._syncOffset=function(t){for(var e=Math.min(1e3,t.length-564),r=0;r<e;){if(71===t[r]&&71===t[r+188]&&71===t[r+376])return r;r++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:_[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:"video"===t?0:void 0,isAAC:"audio"===t||void 0,duration:"audio"===t?e:void 0}},e.resetInitSegment=function(e,r,n,i){this.pmtParsed=!1,this._pmtId=-1,this.pmtUnknownTypes={},this._avcTrack=t.createTrack("video",i),this._audioTrack=t.createTrack("audio",i),this._id3Track=t.createTrack("id3",i),this._txtTrack=t.createTrack("text",i),this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=r,this.videoCodec=n,this._duration=i},e.resetTimeStamp=function(){},e.append=function(e,r,o,a){var u,l,c,f,d,h=e.length,p=!1;this.pmtUnknownTypes={},this.contiguous=o;var g=this.pmtParsed,v=this._avcTrack,y=this._audioTrack,m=this._id3Track,b=v.pid,E=y.pid,T=m.pid,w=this._pmtId,S=v.pesData,_=y.pesData,k=m.pesData,x=this._parsePAT,A=this._parsePMT.bind(this),O=this._parsePES,P=this._parseAVCPES.bind(this),C=this._parseAACPES.bind(this),R=this._parseMPEGPES.bind(this),D=this._parseID3PES.bind(this),L=t._syncOffset(e);for(h-=(h+L)%188,u=L;u<h;u+=188)if(71===e[u]){if(l=!!(64&e[u+1]),c=((31&e[u+1])<<8)+e[u+2],(48&e[u+3])>>4>1){if((f=u+5+e[u+4])===u+188)continue}else f=u+4;switch(c){case b:l&&(S&&(d=O(S))&&P(d,!1),S={data:[],size:0}),S&&(S.data.push(e.subarray(f,u+188)),S.size+=u+188-f);break;case E:l&&(_&&(d=O(_))&&(y.isAAC?C(d):R(d)),_={data:[],size:0}),_&&(_.data.push(e.subarray(f,u+188)),_.size+=u+188-f);break;case T:l&&(k&&(d=O(k))&&D(d),k={data:[],size:0}),k&&(k.data.push(e.subarray(f,u+188)),k.size+=u+188-f);break;case 0:l&&(f+=e[f]+1),w=this._pmtId=x(e,f);break;case w:l&&(f+=e[f]+1);var I=A(e,f,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,null!=this.sampleAes);(b=I.avc)>0&&(v.pid=b),(E=I.audio)>0&&(y.pid=E,y.isAAC=I.isAAC),(T=I.id3)>0&&(m.pid=T),p&&!g&&(s.logger.log("reparse from beginning"),p=!1,u=L-188),g=this.pmtParsed=!0;break;case 17:case 8191:break;default:p=!0}}else this.observer.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});S&&(d=O(S))?(P(d,!0),v.pesData=null):v.pesData=S,_&&(d=O(_))?(y.isAAC?C(d):R(d),y.pesData=null):(_&&_.size&&s.logger.log("last AAC PES packet truncated,might overlap between fragments"),y.pesData=_),k&&(d=O(k))?(D(d),m.pesData=null):m.pesData=k,null==this.sampleAes?this.remuxer.remux(y,v,m,this._txtTrack,r,o,a):this.decryptAndRemux(y,v,m,this._txtTrack,r,o,a)},e.decryptAndRemux=function(t,e,r,n,i,o,a){if(t.samples&&t.isAAC){var s=this;this.sampleAes.decryptAacSamples(t.samples,0,(function(){s.decryptAndRemuxAvc(t,e,r,n,i,o,a)}))}else this.decryptAndRemuxAvc(t,e,r,n,i,o,a)},e.decryptAndRemuxAvc=function(t,e,r,n,i,o,a){if(e.samples){var s=this;this.sampleAes.decryptAvcSamples(e.samples,0,0,(function(){s.remuxer.remux(t,e,r,n,i,o,a)}))}else this.remuxer.remux(t,e,r,n,i,o,a)},e.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},e._parsePAT=function(t,e){return(31&t[e+10])<<8|t[e+11]},e._trackUnknownPmt=function(t,e,r){var n=this.pmtUnknownTypes[t]||0;return 0===n&&(this.pmtUnknownTypes[t]=0,e.call(s.logger,r)),this.pmtUnknownTypes[t]++,n},e._parsePMT=function(t,e,r,n){var i,o,a={audio:-1,avc:-1,id3:-1,isAAC:!0};for(i=e+3+((15&t[e+1])<<8|t[e+2])-4,e+=12+((15&t[e+10])<<8|t[e+11]);e<i;){switch(o=(31&t[e+1])<<8|t[e+2],t[e]){case 207:if(!n){this._trackUnknownPmt(t[e],s.logger.warn,"ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===a.audio&&(a.audio=o);break;case 21:-1===a.id3&&(a.id3=o);break;case 219:if(!n){this._trackUnknownPmt(t[e],s.logger.warn,"H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===a.avc&&(a.avc=o);break;case 3:case 4:r?-1===a.audio&&(a.audio=o,a.isAAC=!1):this._trackUnknownPmt(t[e],s.logger.warn,"MPEG audio found, not supported in this browser");break;case 36:this._trackUnknownPmt(t[e],s.logger.warn,"Unsupported HEVC stream type found");break;default:this._trackUnknownPmt(t[e],s.logger.log,"Unknown stream type:"+t[e])}e+=5+((15&t[e+3])<<8|t[e+4])}return a},e._parsePES=function(t){var e,r,n,i,o,a,u,l,c=0,f=t.data;if(!t||0===t.size)return null;for(;f[0].length<19&&f.length>1;){var d=new Uint8Array(f[0].length+f[1].length);d.set(f[0]),d.set(f[1],f[0].length),f[0]=d,f.splice(1,1)}if(1===((e=f[0])[0]<<16)+(e[1]<<8)+e[2]){if((n=(e[4]<<8)+e[5])&&n>t.size-6)return null;if(192&(r=e[7])&&(a=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&r?a-(u=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(s.logger.warn(Math.round((a-u)/9e4)+"s delta between PTS and DTS, align them"),a=u):u=a),l=(i=e[8])+9,t.size<=l)return null;t.size-=l,o=new Uint8Array(t.size);for(var h=0,p=f.length;h<p;h++){var g=(e=f[h]).byteLength;if(l){if(l>g){l-=g;continue}e=e.subarray(l),g-=l,l=0}o.set(e,c),c+=g}return n&&(n-=i+3),{data:o,pts:a,dts:u,len:n}}return null},e.pushAccesUnit=function(t,e){if(t.units.length&&t.frame){var r=e.samples,n=r.length;if(isNaN(t.pts)){if(!n)return void e.dropped++;var i=r[n-1];t.pts=i.pts,t.dts=i.dts}!this.config.forceKeyFrameOnDiscontinuity||!0===t.key||e.sps&&(n||this.contiguous)?(t.id=n,r.push(t)):e.dropped++}t.debug.length&&s.logger.log(t.pts+"/"+t.dts+":"+t.debug)},e._parseAVCPES=function(t,e){var r,n,i,o=this,a=this._avcTrack,s=this._parseAVCNALu(t.data),u=this.avcSample,l=!1,c=this.pushAccesUnit.bind(this),f=function(t,e,r,n){return{key:t,pts:e,dts:r,units:[],debug:n}};t.data=null,u&&s.length&&!a.audFound&&(c(u,a),u=this.avcSample=f(!1,t.pts,t.dts,"")),s.forEach((function(e){switch(e.type){case 1:n=!0,u||(u=o.avcSample=f(!0,t.pts,t.dts,"")),u.frame=!0;var s=e.data;if(l&&s.length>4){var d=new w(s).readSliceType();2!==d&&4!==d&&7!==d&&9!==d||(u.key=!0)}break;case 5:n=!0,u||(u=o.avcSample=f(!0,t.pts,t.dts,"")),u.key=!0,u.frame=!0;break;case 6:n=!0,(r=new w(o.discardEPB(e.data))).readUByte();for(var h=0,p=0,g=!1,v=0;!g&&r.bytesAvailable>1;){h=0;do{h+=v=r.readUByte()}while(255===v);p=0;do{p+=v=r.readUByte()}while(255===v);if(4===h&&0!==r.bytesAvailable){if(g=!0,181===r.readUByte()&&49===r.readUShort()&&1195456820===r.readUInt()&&3===r.readUByte()){var m=r.readUByte(),b=31&m,E=[m,r.readUByte()];for(i=0;i<b;i++)E.push(r.readUByte()),E.push(r.readUByte()),E.push(r.readUByte());o._insertSampleInOrder(o._txtTrack.samples,{type:3,pts:t.pts,bytes:E})}}else if(5===h&&0!==r.bytesAvailable){if(g=!0,p>16){var T=[];for(i=0;i<16;i++)T.push(r.readUByte().toString(16)),3!==i&&5!==i&&7!==i&&9!==i||T.push("-");var S=p-16,_=new Uint8Array(S);for(i=0;i<S;i++)_[i]=r.readUByte();o._insertSampleInOrder(o._txtTrack.samples,{pts:t.pts,payloadType:h,uuid:T.join(""),userDataBytes:_,userData:Object(y.utf8ArrayToStr)(_.buffer)})}}else if(p<r.bytesAvailable)for(i=0;i<p;i++)r.readUByte()}break;case 7:if(n=!0,l=!0,!a.sps){var k=(r=new w(e.data)).readSPS();a.width=k.width,a.height=k.height,a.pixelRatio=k.pixelRatio,a.sps=[e.data],a.duration=o._duration;var x=e.data.subarray(1,4),A="avc1.";for(i=0;i<3;i++){var O=x[i].toString(16);O.length<2&&(O="0"+O),A+=O}a.codec=A}break;case 8:n=!0,a.pps||(a.pps=[e.data]);break;case 9:n=!1,a.audFound=!0,u&&c(u,a),u=o.avcSample=f(!1,t.pts,t.dts,"");break;case 12:n=!1;break;default:n=!1,u&&(u.debug+="unknown NAL "+e.type+" ")}u&&n&&u.units.push(e)})),e&&u&&(c(u,a),this.avcSample=null)},e._insertSampleInOrder=function(t,e){var r=t.length;if(r>0){if(e.pts>=t[r-1].pts)t.push(e);else for(var n=r-1;n>=0;n--)if(e.pts<t[n].pts){t.splice(n,0,e);break}}else t.push(e)},e._getLastNalUnit=function(){var t,e=this.avcSample;if(!e||0===e.units.length){var r=this._avcTrack.samples;e=r[r.length-1]}if(e){var n=e.units;t=n[n.length-1]}return t},e._parseAVCNALu=function(t){var e,r,n,i,o=0,a=t.byteLength,s=this._avcTrack,u=s.naluState||0,l=u,c=[],f=-1;for(-1===u&&(f=0,i=31&t[0],u=0,o=1);o<a;)if(e=t[o++],u)if(1!==u)if(e)if(1===e){if(f>=0)n={data:t.subarray(f,o-u-1),type:i},c.push(n);else{var d=this._getLastNalUnit();if(d&&(l&&o<=4-l&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-l)),(r=o-u-1)>0)){var h=new Uint8Array(d.data.byteLength+r);h.set(d.data,0),h.set(t.subarray(0,r),d.data.byteLength),d.data=h}}o<a?(f=o,i=31&t[o],u=0):u=-1}else u=0;else u=3;else u=e?0:2;else u=e?0:1;if(f>=0&&u>=0&&(n={data:t.subarray(f,a),type:i,state:u},c.push(n)),0===c.length){var p=this._getLastNalUnit();if(p){var g=new Uint8Array(p.data.byteLength+t.byteLength);g.set(p.data,0),g.set(t,p.data.byteLength),p.data=g}}return s.naluState=u,c},e.discardEPB=function(t){for(var e,r,n=t.byteLength,i=[],o=1;o<n-2;)0===t[o]&&0===t[o+1]&&3===t[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return t;e=n-i.length,r=new Uint8Array(e);var a=0;for(o=0;o<e;a++,o++)a===i[0]&&(a++,i.shift()),r[o]=t[a];return r},e._parseAACPES=function(t){var e,r,o,a,u,l,c,f=this._audioTrack,h=t.data,y=t.pts,m=this.aacOverFlow,b=this.aacLastPTS;if(m){var E=new Uint8Array(m.byteLength+h.byteLength);E.set(m,0),E.set(h,m.byteLength),h=E}for(o=0,u=h.length;o<u-1&&!d(h,o);o++);if(!o||(o<u-1?(l="AAC PES did not start with ADTS header,offset:"+o,c=!1):(l="no ADTS header found in AAC PES",c=!0),s.logger.warn("parsing error:"+l),this.observer.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:c,reason:l}),!c)){if(p(f,this.observer,h,o,this.audioCodec),r=0,e=g(f.samplerate),m&&b){var T=b+e;Math.abs(T-y)>1&&(s.logger.log("AAC: align PTS for overlapping frames by "+Math.round((T-y)/90)),y=T)}for(;o<u;){if(d(h,o)){if(o+5<u){var w=v(f,h,o,y,r);if(w){o+=w.length,a=w.sample.pts,r++;continue}}break}o++}m=o<u?h.subarray(o,u):null,this.aacOverFlow=m,this.aacLastPTS=a}},e._parseMPEGPES=function(t){for(var e=t.data,r=e.length,n=0,i=0,o=t.pts;i<r;)if(T.isHeader(e,i)){var a=T.appendFrame(this._audioTrack,e,i,o,n);if(!a)break;i+=a.length,n++}else i++},e._parseID3PES=function(t){this._id3Track.samples.push(t)},t}(),x=function(){function t(t,e,r){this.observer=t,this.config=r,this.remuxer=e}var e=t.prototype;return e.resetInitSegment=function(t,e,r,n){this._audioTrack={container:"audio/mpeg",type:"audio",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:e,duration:n,inputTimeScale:9e4}},e.resetTimeStamp=function(){},t.probe=function(t){var e,r,n=y.default.getID3Data(t,0);if(n&&void 0!==y.default.getTimeStamp(n))for(e=n.length,r=Math.min(t.length-1,e+100);e<r;e++)if(T.probe(t,e))return s.logger.log("MPEG Audio sync word found !"),!0;return!1},e.append=function(t,e,r,n){for(var i=y.default.getID3Data(t,0)||[],o=y.default.getTimeStamp(i),a=void 0!==o?90*o:9e4*e,s=i.length,u=t.length,l=0,c=0,f=this._audioTrack,d=[{pts:a,dts:a,data:i}];s<u;)if(T.isHeader(t,s)){var h=T.appendFrame(f,t,s,a,l);if(!h)break;s+=h.length,c=h.sample.pts,l++}else y.default.isHeader(t,s)?(i=y.default.getID3Data(t,s),d.push({pts:c,dts:c,data:i}),s+=i.length):s++;this.remuxer.remux(f,{samples:[]},{samples:d,inputTimeScale:9e4},{samples:[]},e,r,n)},e.destroy=function(){},t}(),A=function(){function t(){}return t.getSilentFrame=function(t,e){switch(t){case"mp4a.40.2":if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},t}(),O=Math.pow(2,32)-1,P=function(){function t(){}return t.init=function(){var e;for(e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var r=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]),n=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]);t.HDLR_TYPES={video:r,audio:n};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),o=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=o,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var a=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,a,u,a,s),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,i))},t.box=function(t){for(var e,r=Array.prototype.slice.call(arguments,1),n=8,i=r.length,o=i;i--;)n+=r[i].byteLength;for((e=new Uint8Array(n))[0]=n>>24&255,e[1]=n>>16&255,e[2]=n>>8&255,e[3]=255&n,e.set(t,4),i=0,n=8;i<o;i++)e.set(r[i],n),n+=r[i].byteLength;return e},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,r){r*=e;var n=Math.floor(r/(O+1)),i=Math.floor(r%(O+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,r,n){return t.box(t.types.moof,t.mfhd(e),t.traf(n,r))},t.moov=function(e){for(var r=e.length,n=[];r--;)n[r]=t.trak(e[r]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(t.mvex(e)))},t.mvex=function(e){for(var r=e.length,n=[];r--;)n[r]=t.trex(e[r]);return t.box.apply(null,[t.types.mvex].concat(n))},t.mvhd=function(e,r){r*=e;var n=Math.floor(r/(O+1)),i=Math.floor(r%(O+1)),o=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,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 t.box(t.types.mvhd,o)},t.sdtp=function(e){var r,n,i=e.samples||[],o=new Uint8Array(4+i.length);for(n=0;n<i.length;n++)r=i[n].flags,o[n+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return t.box(t.types.sdtp,o)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var r,n,i,o=[],a=[];for(r=0;r<e.sps.length;r++)i=(n=e.sps[r]).byteLength,o.push(i>>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(n));for(r=0;r<e.pps.length;r++)i=(n=e.pps[r]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(n));var s=t.box(t.types.avcC,new Uint8Array([1,o[3],o[4],o[5],255,224|e.sps.length].concat(o).concat([e.pps.length]).concat(a))),u=e.width,l=e.height,c=e.pixelRatio[0],f=e.pixelRatio[1];return t.box(t.types.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,u>>8&255,255&u,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,f>>24,f>>16&255,f>>8&255,255&f])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.mp4a=function(e){var r=e.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){var r=e.samplerate;return t.box(t.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]))},t.stsd=function(e){return"audio"===e.type?e.isAAC||"mp3"!==e.codec?t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.mp3(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var r=e.id,n=e.duration*e.timescale,i=e.width,o=e.height,a=Math.floor(n/(O+1)),s=Math.floor(n%(O+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s,0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,o>>8&255,255&o,0,0]))},t.traf=function(e,r){var n=t.sdtp(e),i=e.id,o=Math.floor(r/(O+1)),a=Math.floor(r%(O+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,a>>24,a>>16&255,a>>8&255,255&a])),t.trun(e,n.length+16+20+8+16+8+8),n)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var r=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,r){var n,i,o,a,s,u,l=e.samples||[],c=l.length,f=12+16*c,d=new Uint8Array(f);for(r+=8+f,d.set([0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,255&c,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),n=0;n<c;n++)o=(i=l[n]).duration,a=i.size,s=i.flags,u=i.cts,d.set([o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,u>>>24&255,u>>>16&255,u>>>8&255,255&u],12+16*n);return t.box(t.types.trun,d)},t.initSegment=function(e){t.types||t.init();var r,n=t.moov(e);return(r=new Uint8Array(t.FTYP.byteLength+n.byteLength)).set(t.FTYP),r.set(n,t.FTYP.byteLength),r},t}();function C(t,e,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);var i=t*e*r;return n?Math.round(i):i}function R(t,e){return void 0===e&&(e=!1),C(t,1e3,1/9e4,e)}function D(t,e){return void 0===e&&(e=1),C(t,9e4,1/e)}var L=D(10),I=D(.2),M=null;function N(t,e){var r;if(void 0===e)return t;for(r=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=r;return t}var j,B=function(){function t(t,e,r,n){if(this.observer=t,this.config=e,this.typeSupported=r,this.ISGenerated=!1,null===M){var i=navigator.userAgent.match(/Chrome\/(\d+)/i);M=i?parseInt(i[1]):0}}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this._initPTS=this._initDTS=t},e.resetInitSegment=function(){this.ISGenerated=!1},e.getVideoStartPts=function(t){var e=!1,r=t.reduce((function(t,r){var n=r.pts-t;return n<-4294967296?(e=!0,N(t,r.pts)):n>0?t:r.pts}),t[0].pts);return e&&s.logger.debug("PTS rollover detected"),r},e.remux=function(t,e,r,i,o,a,u){if(this.ISGenerated||this.generateIS(t,e,o),this.ISGenerated){var l=t.samples.length,c=e.samples.length,f=o,d=o;if(l&&c){var h=this.getVideoStartPts(e.samples),p=(N(t.samples[0].pts,h)-h)/e.inputTimeScale;f+=Math.max(0,p),d+=Math.max(0,-p)}if(l){t.timescale||(s.logger.warn("regenerate InitSegment as audio detected"),this.generateIS(t,e,o));var g,v=this.remuxAudio(t,f,a,u);c&&(v&&(g=v.endPTS-v.startPTS),e.timescale||(s.logger.warn("regenerate InitSegment as video detected"),this.generateIS(t,e,o)),this.remuxVideo(e,d,a,g))}else if(c){var y=this.remuxVideo(e,d,a,0,u);y&&t.codec&&this.remuxEmptyAudio(t,f,a,y)}}r.samples.length&&this.remuxID3(r,o),i.samples.length&&this.remuxText(i,o),this.observer.trigger(n.default.FRAG_PARSED)},e.generateIS=function(t,e,r){var o,a,u=this.observer,l=t.samples,c=e.samples,f=this.typeSupported,d="audio/mp4",h={},p={tracks:h},g=void 0===this._initPTS;if(g&&(o=a=1/0),t.config&&l.length&&(t.timescale=t.samplerate,s.logger.log("audio sampling rate : "+t.samplerate),t.isAAC||(f.mpeg?(d="audio/mpeg",t.codec=""):f.mp3&&(t.codec="mp3")),h.audio={container:d,codec:t.codec,initSegment:!t.isAAC&&f.mpeg?new Uint8Array:P.initSegment([t]),metadata:{channelCount:t.channelCount}},g&&(o=a=l[0].pts-Math.round(t.inputTimeScale*r))),e.sps&&e.pps&&c.length){var v=e.inputTimeScale;if(e.timescale=v,h.video={container:"video/mp4",codec:e.codec,initSegment:P.initSegment([e]),metadata:{width:e.width,height:e.height}},g){var y=this.getVideoStartPts(c),m=Math.round(v*r);a=Math.min(a,N(c[0].dts,y)-m),o=Math.min(o,y-m),this.observer.trigger(n.default.INIT_PTS_FOUND,{initPTS:o})}}else g&&h.audio&&this.observer.trigger(n.default.INIT_PTS_FOUND,{initPTS:o});Object.keys(h).length?(u.trigger(n.default.FRAG_PARSING_INIT_SEGMENT,p),this.ISGenerated=!0,g&&(this._initPTS=o,this._initDTS=a)):u.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},e.remuxVideo=function(t,e,r,o){var a,u,l,c,f,d=t.timescale,h=t.samples,p=[],g=h.length,v=this._initPTS,y=8,m=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,E=0,T=!1,w=this.nextAvcDts;if(0!==g){r||(w=e*d-(h[0].pts-N(h[0].dts,h[0].pts)));for(var S=0;S<g;S++){var _=h[S];_.pts=N(_.pts-v,w),_.dts=N(_.dts-v,w),_.dts>_.pts&&(E=Math.max(Math.min(E,_.pts-_.dts),-1*I)),_.dts<h[S>0?S-1:S].dts&&(T=!0)}T&&h.sort((function(t,e){var r=t.dts-e.dts,n=t.pts-e.pts;return r||n||t.id-e.id})),c=h[0].dts,f=h[g-1].dts;var k=Math.round((f-c)/(g-1));if(E<0){if(E<-2*k){s.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+R(-k,!0)+" ms");for(var x=E,A=0;A<g;A++)h[A].dts=x=Math.max(x,h[A].pts-k),h[A].pts=Math.max(x,h[A].pts)}else{s.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+R(E,!0)+" ms to overcome this issue");for(var O=0;O<g;O++)h[O].dts=h[O].dts+E}c=h[0].dts,f=h[g-1].dts}if(r){var C=c-w,D=C>k;if(D||C<-1){D?s.logger.warn("AVC: "+R(C,!0)+" ms ("+C+"dts) hole between fragments detected, filling it"):s.logger.warn("AVC: "+R(-C,!0)+" ms ("+C+"dts) overlapping between fragments detected"),c=w;var L=h[0].pts-C;h[0].dts=c,h[0].pts=L,s.logger.log("Video: First PTS/DTS adjusted: "+R(L,!0)+"/"+R(c,!0)+", delta: "+R(C,!0)+" ms")}}M&&M<75&&(c=Math.max(0,c));for(var j=0,B=0,F=0;F<g;F++){for(var U=h[F],H=U.units,V=H.length,z=0,G=0;G<V;G++)z+=H[G].data.length;B+=z,j+=V,U.length=z,U.dts=Math.max(U.dts,c),U.pts=Math.max(U.pts,U.dts,0),m=Math.min(U.pts,m),b=Math.max(U.pts,b)}f=h[g-1].dts;var W=B+4*j+8;try{u=new Uint8Array(W)}catch(t){return void this.observer.trigger(n.default.ERROR,{type:i.ErrorTypes.MUX_ERROR,details:i.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:W,reason:"fail allocating video mdat "+W})}var K=new DataView(u.buffer);K.setUint32(0,W),u.set(P.types.mdat,4);for(var Y=0;Y<g;Y++){for(var X,q=h[Y],$=q.units,Q=0,J=0,Z=$.length;J<Z;J++){var tt=$[J],et=tt.data,rt=tt.data.byteLength;K.setUint32(y,rt),y+=4,u.set(et,y),y+=rt,Q+=4+rt}if(Y<g-1)a=h[Y+1].dts-q.dts;else{var nt=this.config,it=q.dts-h[Y>0?Y-1:Y].dts;if(nt.stretchShortVideoTrack){var ot=nt.maxBufferHole,at=Math.floor(ot*d),st=(o?m+o*d:this.nextAudioPts)-q.pts;st>at?((a=st-it)<0&&(a=it),s.logger.log("It is approximately "+R(st,!1)+" ms to the next segment; using duration "+R(a,!1)+" ms for the last video frame.")):a=it}else a=it}X=Math.round(q.pts-q.dts),p.push({size:Q,duration:a,cts:X,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:q.key?2:1,isNonSync:q.key?0:1}})}this.nextAvcDts=f+a;var ut=t.dropped;if(t.nbNalu=0,t.dropped=0,p.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var lt=p[0].flags;lt.dependsOn=2,lt.isNonSync=0}t.samples=p,l=P.moof(t.sequenceNumber++,c,t),t.samples=[];var ct={data1:l,data2:u,startPTS:m/d,endPTS:(b+a)/d,startDTS:c/d,endDTS:this.nextAvcDts/d,type:"video",hasAudio:!1,hasVideo:!0,nb:p.length,dropped:ut};return this.observer.trigger(n.default.FRAG_PARSING_DATA,ct),ct}},e.remuxAudio=function(t,e,r,o){var a,u,l,c,f,d,h=t.inputTimeScale,p=t.timescale,g=h/p,v=(t.isAAC?1024:1152)*g,y=this._initPTS,m=!t.isAAC&&this.typeSupported.mpeg,b=m?0:8,E=t.samples,T=[],w=this.nextAudioPts;if(r|=E.length&&w&&(o&&Math.abs(e-w/h)<.1||Math.abs(E[0].pts-w-y)<20*v),E.forEach((function(t){t.pts=t.dts=N(t.pts-y,e*h)})),0!==(E=E.filter((function(t){return t.pts>=0}))).length){if(r||(w=o?Math.max(0,e*h):E[0].pts),t.isAAC)for(var S=this.config.maxAudioFramesDrift,_=0,k=w;_<E.length;){var x=E[_],O=x.pts,C=O-k;if(C<=-S*v)r||_>0?(s.logger.warn("Dropping 1 audio frame @ "+R(k,!0)/1e3+"s due to "+R(C,!0)+" ms overlap."),E.splice(_,1)):(s.logger.warn("Audio frame @ "+R(O,!0)/1e3+"s overlaps nextAudioPts by "+R(C,!0)+" ms."),k=O+v,_++);else if(C>=S*v&&C<L&&k){var D=Math.round(C/v);s.logger.warn("Injecting "+D+" audio frames @ "+R(k,!0)/1e3+"s due to "+R(C,!0)+" ms gap.");for(var I=0;I<D;I++){var M=Math.max(k,0);(u=A.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(s.logger.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),u=x.unit.subarray()),E.splice(_,0,{unit:u,pts:M,dts:M}),k+=v,_++}x.pts=x.dts=k,k+=v,_++}else Math.abs(C),x.pts=x.dts=k,k+=v,_++}for(var j=E.length,B=0;j--;)B+=E[j].unit.byteLength;for(var F=0,U=E.length;F<U;F++){var H=E[F],V=H.unit,z=H.pts;if(void 0!==d&&a)a.duration=Math.round((z-d)/g);else{var G=z-w,W=0;if(r&&t.isAAC&&G){if(G>0&&G<L)W=Math.round((z-w)/v),s.logger.log(R(G,!0)+" ms hole between AAC samples detected,filling it"),W>0&&((u=A.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(u=V.subarray()),B+=W*u.length);else if(G<-12){s.logger.log("drop overlapping AAC sample, expected/parsed/delta: "+R(w,!0)+" ms / "+R(z,!0)+" ms / "+R(-G,!0)+" ms"),B-=V.byteLength;continue}z=w}if(f=z,!(B>0))return;B+=b;try{l=new Uint8Array(B)}catch(t){return void this.observer.trigger(n.default.ERROR,{type:i.ErrorTypes.MUX_ERROR,details:i.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:B,reason:"fail allocating audio mdat "+B})}m||(new DataView(l.buffer).setUint32(0,B),l.set(P.types.mdat,4));for(var K=0;K<W;K++)(u=A.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(s.logger.log("Unable to get silent frame for given audio codec; duplicating this frame instead."),u=V.subarray()),l.set(u,b),b+=u.byteLength,a={size:u.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},T.push(a)}l.set(V,b);var Y=V.byteLength;b+=Y,a={size:Y,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},T.push(a),d=z}var X=0;if((j=T.length)>=2&&(X=T[j-2].duration,a.duration=X),j){this.nextAudioPts=w=d+g*X,t.samples=T,c=m?new Uint8Array:P.moof(t.sequenceNumber++,f/g,t),t.samples=[];var q=f/h,$=w/h,Q={data1:c,data2:l,startPTS:q,endPTS:$,startDTS:q,endDTS:$,type:"audio",hasAudio:!0,hasVideo:!1,nb:j};return this.observer.trigger(n.default.FRAG_PARSING_DATA,Q),Q}return null}},e.remuxEmptyAudio=function(t,e,r,n){var i=t.inputTimeScale,o=i/(t.samplerate?t.samplerate:i),a=this.nextAudioPts,u=(void 0!==a?a:n.startDTS*i)+this._initDTS,l=n.endDTS*i+this._initDTS,c=1024*o,f=Math.ceil((l-u)/c),d=A.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(s.logger.warn("remux empty Audio"),d){for(var h=[],p=0;p<f;p++){var g=u+p*c;h.push({unit:d,pts:g,dts:g})}t.samples=h,this.remuxAudio(t,e,r)}else s.logger.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!")},e.remuxID3=function(t,e){var r=t.samples.length;if(r){for(var i=t.inputTimeScale,o=this._initPTS,a=this._initDTS,s=0;s<r;s++){var u=t.samples[s];u.pts=N(u.pts-o,e*i)/i,u.dts=N(u.dts-a,e*i)/i}this.observer.trigger(n.default.FRAG_PARSING_METADATA,{samples:t.samples}),t.samples=[]}},e.remuxText=function(t,e){var r=t.samples.length,i=t.inputTimeScale,o=this._initPTS;if(r){for(var a=0;a<r;a++){var s=t.samples[a];s.pts=N(s.pts-o,e*i)/i}t.samples.sort((function(t,e){return t.pts-e.pts})),this.observer.trigger(n.default.FRAG_PARSING_USERDATA,{samples:t.samples})}t.samples=[]},t}(),F=function(){function t(t){this.observer=t}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(){},e.resetInitSegment=function(){},e.remux=function(t,e,r,i,o,a,s,u){var l=this.observer,c="";t&&(c+="audio"),e&&(c+="video"),l.trigger(n.default.FRAG_PARSING_DATA,{data1:u,startPTS:o,startDTS:o,type:c,hasAudio:!!t,hasVideo:!!e,nb:1,dropped:0}),l.trigger(n.default.FRAG_PARSED)},t}(),U=Object(u.getSelfScope)();try{j=U.performance.now.bind(U.performance)}catch(t){s.logger.debug("Unable to use Performance API on this environment"),j=U.Date.now}var H=function(){function t(t,e,r,n){this.observer=t,this.typeSupported=e,this.config=r,this.vendor=n}var e=t.prototype;return e.destroy=function(){var t=this.demuxer;t&&t.destroy()},e.push=function(t,e,r,i,a,s,u,l,c,f,d,h){var p=this;if(t.byteLength>0&&null!=e&&null!=e.key&&"AES-128"===e.method){var g=this.decrypter;null==g&&(g=this.decrypter=new o.default(this.observer,this.config));var v=j();g.decrypt(t,e.key.buffer,e.iv.buffer,(function(t){var o=j();p.observer.trigger(n.default.FRAG_DECRYPTED,{stats:{tstart:v,tdecrypt:o}}),p.pushDecrypted(new Uint8Array(t),e,new Uint8Array(r),i,a,s,u,l,c,f,d,h)}))}else this.pushDecrypted(new Uint8Array(t),e,new Uint8Array(r),i,a,s,u,l,c,f,d,h)},e.pushDecrypted=function(t,e,r,o,a,s,u,l,c,f,d,h){var p=this.demuxer,g=this.remuxer;if(!p||u||l){for(var v,y=this.observer,E=this.typeSupported,T=this.config,w=[{demux:k,remux:B},{demux:b.default,remux:F},{demux:m,remux:B},{demux:x,remux:B}],S=0,_=w.length;S<_&&!(v=w[S]).demux.probe(t);S++);if(!v)return void y.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});g&&g instanceof v.remux||(g=new v.remux(y,T,E,this.vendor)),p&&p instanceof v.demux||(p=new v.demux(y,g,T,E),this.probe=v.demux.probe),this.demuxer=p,this.remuxer=g}(u||l)&&(p.resetInitSegment(r,o,a,f),g.resetInitSegment()),u&&(p.resetTimeStamp(h),g.resetTimeStamp(h)),"function"==typeof p.setDecryptData&&p.setDecryptData(e),p.append(t,s,c,d)},t}();e.default=H},"./src/demux/demuxer-worker.js":
/*!*************************************!*\
!*** ./src/demux/demuxer-worker.js ***!
\*************************************/
/*! exports provided: default */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/demux/demuxer.js (referenced with require.resolve) */function(t,e,r){"use strict";r.r(e);var n=r(/*! ../demux/demuxer-inline */"./src/demux/demuxer-inline.js"),i=r(/*! ../events */"./src/events.js"),o=r(/*! ../utils/logger */"./src/utils/logger.js"),a=r(/*! eventemitter3 */"./node_modules/eventemitter3/index.js");e.default=function(t){var e=new a.EventEmitter;e.trigger=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit.apply(e,[t,t].concat(n))},e.off=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.removeListener.apply(e,[t].concat(n))};var r=function(e,r){t.postMessage({event:e,data:r})};t.addEventListener("message",(function(i){var a=i.data;switch(a.cmd){case"init":var s=JSON.parse(a.config);t.demuxer=new n.default(e,a.typeSupported,s,a.vendor),Object(o.enableLogs)(s.debug),r("init",null);break;case"demux":t.demuxer.push(a.data,a.decryptdata,a.initSegment,a.audioCodec,a.videoCodec,a.timeOffset,a.discontinuity,a.trackSwitch,a.contiguous,a.duration,a.accurateTimeOffset,a.defaultInitPTS)}})),e.on(i.default.FRAG_DECRYPTED,r),e.on(i.default.FRAG_PARSING_INIT_SEGMENT,r),e.on(i.default.FRAG_PARSED,r),e.on(i.default.ERROR,r),e.on(i.default.FRAG_PARSING_METADATA,r),e.on(i.default.FRAG_PARSING_USERDATA,r),e.on(i.default.INIT_PTS_FOUND,r),e.on(i.default.FRAG_PARSING_DATA,(function(e,r){var n=[],i={event:e,data:r};r.data1&&(i.data1=r.data1.buffer,n.push(r.data1.buffer),delete r.data1),r.data2&&(i.data2=r.data2.buffer,n.push(r.data2.buffer),delete r.data2),t.postMessage(i,n)}))}},"./src/demux/id3.js":
/*!**************************!*\
!*** ./src/demux/id3.js ***!
\**************************/
/*! exports provided: default, utf8ArrayToStr */function(t,e,r){"use strict";r.r(e),r.d(e,"utf8ArrayToStr",(function(){return s}));var n,i=r(/*! ../utils/get-self-scope */"./src/utils/get-self-scope.js"),o=function(){function t(){}return t.isHeader=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.isFooter=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.getID3Data=function(e,r){for(var n=r,i=0;t.isHeader(e,r);)i+=10,i+=t._readSize(e,r+6),t.isFooter(e,r+10)&&(i+=10),r+=i;if(i>0)return e.subarray(n,n+i)},t._readSize=function(t,e){var r=0;return r=(127&t[e])<<21,r|=(127&t[e+1])<<14,r|=(127&t[e+2])<<7,r|=127&t[e+3]},t.getTimeStamp=function(e){for(var r=t.getID3Frames(e),n=0;n<r.length;n++){var i=r[n];if(t.isTimeStampFrame(i))return t._readTimeStamp(i)}},t.isTimeStampFrame=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},t._getFrameData=function(e){var r=String.fromCharCode(e[0],e[1],e[2],e[3]),n=t._readSize(e,4);return{type:r,size:n,data:e.subarray(10,10+n)}},t.getID3Frames=function(e){for(var r=0,n=[];t.isHeader(e,r);){for(var i=t._readSize(e,r+6),o=(r+=10)+i;r+8<o;){var a=t._getFrameData(e.subarray(r)),s=t._decodeFrame(a);s&&n.push(s),r+=a.size+10}t.isFooter(e,r)&&(r+=10)}return n},t._decodeFrame=function(e){return"PRIV"===e.type?t._decodePrivFrame(e):"T"===e.type[0]?t._decodeTextFrame(e):"W"===e.type[0]?t._decodeURLFrame(e):void 0},t._readTimeStamp=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),r=1&e[3],n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,r&&(n+=47721858.84),Math.round(n)}},t._decodePrivFrame=function(e){if(!(e.size<2)){var r=t._utf8ArrayToStr(e.data,!0),n=new Uint8Array(e.data.subarray(r.length+1));return{key:e.type,info:r,data:n.buffer}}},t._decodeTextFrame=function(e){if(!(e.size<2)){if("TXXX"===e.type){var r=1,n=t._utf8ArrayToStr(e.data.subarray(r),!0);r+=n.length+1;var i=t._utf8ArrayToStr(e.data.subarray(r));return{key:e.type,info:n,data:i}}var o=t._utf8ArrayToStr(e.data.subarray(1));return{key:e.type,data:o}}},t._decodeURLFrame=function(e){if("WXXX"===e.type){if(e.size<2)return;var r=1,n=t._utf8ArrayToStr(e.data.subarray(r),!0);r+=n.length+1;var i=t._utf8ArrayToStr(e.data.subarray(r));return{key:e.type,info:n,data:i}}var o=t._utf8ArrayToStr(e.data);return{key:e.type,data:o}},t._utf8ArrayToStr=function(t,e){void 0===e&&(e=!1);var r=a();if(r){var n=r.decode(t);if(e){var i=n.indexOf("\0");return-1!==i?n.substring(0,i):n}return n.replace(/\0/g,"")}for(var o,s,u,l=t.length,c="",f=0;f<l;){if(0===(o=t[f++])&&e)return c;if(0!==o&&3!==o)switch(o>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c+=String.fromCharCode(o);break;case 12:case 13:s=t[f++],c+=String.fromCharCode((31&o)<<6|63&s);break;case 14:s=t[f++],u=t[f++],c+=String.fromCharCode((15&o)<<12|(63&s)<<6|(63&u)<<0)}}return c},t}();function a(){var t=Object(i.getSelfScope)();return n||void 0===t.TextDecoder||(n=new t.TextDecoder("utf-8")),n}var s=o._utf8ArrayToStr;e.default=o},"./src/demux/mp4demuxer.js":
/*!*********************************!*\
!*** ./src/demux/mp4demuxer.js ***!
\*********************************/
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n=r(/*! ../utils/logger */"./src/utils/logger.js"),i=r(/*! ../events */"./src/events.js"),o=Math.pow(2,32)-1,a=function(){function t(t,e){this.observer=t,this.remuxer=e}var e=t.prototype;return e.resetTimeStamp=function(t){this.initPTS=t},e.resetInitSegment=function(e,r,n,o){if(e&&e.byteLength){var a=this.initData=t.parseInitSegment(e);null==r&&(r="mp4a.40.5"),null==n&&(n="avc1.42e01e");var s={};a.audio&&a.video?s.audiovideo={container:"video/mp4",codec:r+","+n,initSegment:o?e:null}:(a.audio&&(s.audio={container:"audio/mp4",codec:r,initSegment:o?e:null}),a.video&&(s.video={container:"video/mp4",codec:n,initSegment:o?e:null})),this.observer.trigger(i.default.FRAG_PARSING_INIT_SEGMENT,{tracks:s})}else r&&(this.audioCodec=r),n&&(this.videoCodec=n)},t.probe=function(e){return t.findBox({data:e,start:0,end:Math.min(e.length,16384)},["moof"]).length>0},t.bin2str=function(t){return String.fromCharCode.apply(null,t)},t.readUint16=function(t,e){t.data&&(e+=t.start,t=t.data);var r=t[e]<<8|t[e+1];return r<0?65536+r:r},t.readUint32=function(t,e){t.data&&(e+=t.start,t=t.data);var r=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return r<0?4294967296+r:r},t.writeUint32=function(t,e,r){t.data&&(e+=t.start,t=t.data),t[e]=r>>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},t.findBox=function(e,r){var n,i,o,a,s,u,l=[];if(e.data?(s=e.start,o=e.end,e=e.data):(s=0,o=e.byteLength),!r.length)return null;for(n=s;n<o;)u=(i=t.readUint32(e,n))>1?n+i:o,t.bin2str(e.subarray(n+4,n+8))===r[0]&&(1===r.length?l.push({data:e,start:n+8,end:u}):(a=t.findBox({data:e,start:n+8,end:u},r.slice(1))).length&&(l=l.concat(a))),n=u;return l},t.parseSegmentIndex=function(e){var r,n=t.findBox(e,["moov"])[0],i=n?n.end:null,o=0,a=t.findBox(e,["sidx"]);if(!a||!a[0])return null;r=[];var s=(a=a[0]).data[0];o=0===s?8:16;var u=t.readUint32(a,o);o+=4,o+=0===s?8:16,o+=2;var l=a.end+0,c=t.readUint16(a,o);o+=2;for(var f=0;f<c;f++){var d=o,h=t.readUint32(a,d);d+=4;var p=2147483647&h;if(1==(2147483648&h)>>>31)return void console.warn("SIDX has hierarchical references (not supported)");var g=t.readUint32(a,d);d+=4,r.push({referenceSize:p,subsegmentDuration:g,info:{duration:g/u,start:l,end:l+p-1}}),l+=p,o=d+=4}return{earliestPresentationTime:0,timescale:u,version:s,referencesCount:c,references:r,moovEndOffset:i}},t.parseInitSegment=function(e){var r=[];return t.findBox(e,["moov","trak"]).forEach((function(e){var i=t.findBox(e,["tkhd"])[0];if(i){var o=i.data[i.start],a=0===o?12:20,s=t.readUint32(i,a),u=t.findBox(e,["mdia","mdhd"])[0];if(u){a=0===(o=u.data[u.start])?12:20;var l=t.readUint32(u,a),c=t.findBox(e,["mdia","hdlr"])[0];if(c){var f={soun:"audio",vide:"video"}[t.bin2str(c.data.subarray(c.start+8,c.start+12))];if(f){var d=t.findBox(e,["mdia","minf","stbl","stsd"]);if(d.length){d=d[0];var h=t.bin2str(d.data.subarray(d.start+12,d.start+16));n.logger.log("MP4Demuxer:"+f+":"+h+" found")}r[s]={timescale:l,type:f},r[f]={timescale:l,id:s}}}}}})),r},t.getStartDTS=function(e,r){var n,i,o;return n=t.findBox(r,["moof","traf"]),i=[].concat.apply([],n.map((function(r){return t.findBox(r,["tfhd"]).map((function(n){var i,o;return i=t.readUint32(n,4),o=e[i].timescale||9e4,t.findBox(r,["tfdt"]).map((function(e){var r,n;return r=e.data[e.start],n=t.readUint32(e,4),1===r&&(n*=Math.pow(2,32),n+=t.readUint32(e,8)),n}))[0]/o}))}))),o=Math.min.apply(null,i),isFinite(o)?o:0},t.offsetStartDTS=function(e,r,n){t.findBox(r,["moof","traf"]).map((function(r){return t.findBox(r,["tfhd"]).map((function(i){var a=t.readUint32(i,4),s=e[a].timescale||9e4;t.findBox(r,["tfdt"]).map((function(e){var r=e.data[e.start],i=t.readUint32(e,4);if(0===r)t.writeUint32(e,4,i-n*s);else{i*=Math.pow(2,32),i+=t.readUint32(e,8),i-=n*s,i=Math.max(i,0);var a=Math.floor(i/(o+1)),u=Math.floor(i%(o+1));t.writeUint32(e,4,a),t.writeUint32(e,8,u)}}))}))}))},e.append=function(e,r,n,o){var a=this.initData;a||(this.resetInitSegment(e,this.audioCodec,this.videoCodec,!1),a=this.initData);var s,u=this.initPTS;if(void 0===u){var l=t.getStartDTS(a,e);this.initPTS=u=l-r,this.observer.trigger(i.default.INIT_PTS_FOUND,{initPTS:u})}t.offsetStartDTS(a,e,u),s=t.getStartDTS(a,e),this.remuxer.remux(a.audio,a.video,null,null,s,n,o,e)},e.destroy=function(){},t}();e.default=a},"./src/errors.ts":
/*!***********************!*\
!*** ./src/errors.ts ***!
\***********************/
/*! exports provided: ErrorTypes, ErrorDetails */function(t,e,r){"use strict";var n,i;r.r(e),r.d(e,"ErrorTypes",(function(){return n})),r.d(e,"ErrorDetails",(function(){return i})),function(t){t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError"}(n||(n={})),function(t){t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException"}(i||(i={}))},"./src/events.js":
/*!***********************!*\
!*** ./src/events.js ***!
\***********************/
/*! exports provided: default */function(t,e,r){"use strict";r.r(e),e.default={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",LEVELS_UPDATED:"hlsLevelsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",CUES_PARSED:"hlsCuesParsed",NON_NATIVE_TEXT_TRACKS_FOUND:"hlsNonNativeTextTracksFound",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition",LIVE_BACK_BUFFER_REACHED:"hlsLiveBackBufferReached"}},"./src/hls.ts":
/*!*********************************!*\
!*** ./src/hls.ts + 50 modules ***!
\*********************************/
/*! exports provided: default */
/*! ModuleConcatenation bailout: Cannot concat with ./src/crypt/decrypter.js because of ./src/demux/demuxer-worker.js */
/*! ModuleConcatenation bailout: Cannot concat with ./src/demux/demuxer-inline.js because of ./src/demux/demuxer-worker.js */
/*! ModuleConcatenation bailout: Cannot concat with ./src/demux/id3.js because of ./src/demux/demuxer-worker.js */
/*! ModuleConcatenation bailout: Cannot concat with ./src/demux/mp4demuxer.js because of ./src/demux/demuxer-worker.js */
/*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/demux/demuxer-worker.js */
/*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/demux/demuxer-worker.js */
/*! ModuleConcatenation bailout: Cannot concat with ./src/polyfills/number.js because of ./src/demux/demuxer-worker.js */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/demux/demuxer-worker.js */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/demux/demuxer-worker.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/eventemitter3/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/url-toolkit/src/url-toolkit.js (<- Module is not an ECMAScript module) */function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return or}));var n={};r.r(n),r.d(n,"newCue",(function(){return he}));var i,o,a=r("./node_modules/url-toolkit/src/url-toolkit.js"),s=r("./src/errors.ts"),u=r("./src/polyfills/number.js"),l=r("./src/events.js"),c=r("./src/utils/logger.js"),f={hlsEventGeneric:!0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},d=function(){function t(t){this.hls=void 0,this.handledEvents=void 0,this.useGenericHandler=void 0,this.hls=t,this.onEvent=this.onEvent.bind(this);for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.handledEvents=r,this.useGenericHandler=!0,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){},e.onHandlerDestroyed=function(){},e.isEventHandler=function(){return"object"==typeof this.handledEvents&&this.handledEvents.length&&"function"==typeof this.onEvent},e.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(t){if(f[t])throw new Error("Forbidden event-name: "+t);this.hls.on(t,this.onEvent)}),this)},e.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(t){this.hls.off(t,this.onEvent)}),this)},e.onEvent=function(t,e){this.onEventGeneric(t,e)},e.onEventGeneric=function(t,e){try{(function(t,e){var r="on"+t.replace("hls","");if("function"!=typeof this[r])throw new Error("Event "+t+" has no generic handler in this "+this.constructor.name+" class (tried "+r+")");return this[r].bind(this,e)}).call(this,t,e).call()}catch(e){c.logger.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:t,err:e})}},t}();!function(t){t.MANIFEST="manifest",t.LEVEL="level",t.AUDIO_TRACK="audioTrack",t.SUBTITLE_TRACK="subtitleTrack"}(i||(i={})),function(t){t.MAIN="main",t.AUDIO="audio",t.SUBTITLE="subtitle"}(o||(o={}));var h=r("./src/demux/mp4demuxer.js");function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var g,v=function(){function t(t,e){this._uri=null,this.baseuri=void 0,this.reluri=void 0,this.method=null,this.key=null,this.iv=null,this.baseuri=t,this.reluri=e}var e,r,n;return e=t,(r=[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=Object(a.buildAbsoluteURL)(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}])&&p(e.prototype,r),n&&p(e,n),t}();function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}!function(t){t.AUDIO="audio",t.VIDEO="video"}(g||(g={}));var m=function(){function t(){var t;this._url=null,this._byteRange=null,this._decryptdata=null,this._elementaryStreams=((t={})[g.AUDIO]=!1,t[g.VIDEO]=!1,t),this.deltaPTS=0,this.rawProgramDateTime=null,this.programDateTime=null,this.title=null,this.tagList=[],this.cc=void 0,this.type=void 0,this.relurl=void 0,this.baseurl=void 0,this.duration=void 0,this.start=void 0,this.sn=0,this.urlId=0,this.level=0,this.levelkey=void 0,this.loader=void 0}var e,r,n,i=t.prototype;return i.setByteRange=function(t,e){var r=t.split("@",2),n=[];1===r.length?n[0]=e?e.byteRangeEndOffset:0:n[0]=parseInt(r[1]),n[1]=parseInt(r[0])+n[0],this._byteRange=n},i.addElementaryStream=function(t){this._elementaryStreams[t]=!0},i.hasElementaryStream=function(t){return!0===this._elementaryStreams[t]},i.createInitializationVector=function(t){for(var e=new Uint8Array(16),r=12;r<16;r++)e[r]=t>>8*(15-r)&255;return e},i.setDecryptDataFromLevelKey=function(t,e){var r=t;return(null==t?void 0:t.method)&&t.uri&&!t.iv&&((r=new v(t.baseuri,t.reluri)).method=t.method,r.iv=this.createInitializationVector(e)),r},e=t,(r=[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=Object(a.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(t){this._url=t}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var t=this.sn;"number"!=typeof t&&(this.levelkey&&"AES-128"===this.levelkey.method&&!this.levelkey.iv&&c.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),t=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,t)}return this._decryptdata}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!Object(u.isFiniteNumber)(this.programDateTime))return null;var t=Object(u.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){return!(!this.decryptdata||null===this.decryptdata.uri||null!==this.decryptdata.key)}}])&&y(e.prototype,r),n&&y(e,n),t}();function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var E=function(){function t(t){this.endCC=0,this.endSN=0,this.fragments=[],this.initSegment=null,this.live=!0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=t,this.version=null}var e,r,n;return e=t,(r=[{key:"hasProgramDateTime",get:function(){return!(!this.fragments[0]||!Object(u.isFiniteNumber)(this.fragments[0].programDateTime))}}])&&b(e.prototype,r),n&&b(e,n),t}(),T=/^(\d+)x(\d+)$/,w=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,S=function(){function t(e){for(var r in"string"==typeof e&&(e=t.parseAttrList(e)),e)e.hasOwnProperty(r)&&(this[r]=e[r])}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new Uint8Array(e.length/2),n=0;n<e.length/2;n++)r[n]=parseInt(e.slice(2*n,2*n+2),16);return r}return null},e.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.enumeratedString=function(t){return this[t]},e.decimalResolution=function(t){var e=T.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,r={};for(w.lastIndex=0;null!==(e=w.exec(t));){var n=e[2];0===n.indexOf('"')&&n.lastIndexOf('"')===n.length-1&&(n=n.slice(1,-1)),r[e[1]]=n}return r},t}(),_={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};function k(t,e){return MediaSource.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"')}var x=/(?:#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)|#EXT-X-SESSION-DATA:([^\n\r]*)[\r\n]+)/g,A=/#EXT-X-MEDIA:(.*)/g,O=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),P=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)([^:]*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,C=/\.(mp4|m4s|m4v|m4a)$/i,R=function(){function t(){}return t.findGroup=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.id===e)return n}},t.convertAVC1ToAVCOTI=function(t){var e,r=t.split(".");return r.length>2?(e=r.shift()+".",e+=parseInt(r.shift()).toString(16),e+=("000"+parseInt(r.shift()).toString(16)).substr(-4)):e=t,e},t.resolve=function(t,e){return a.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},t.parseMasterPlaylist=function(e,r){var n,i=[],o={},a=!1;function s(t,e){["video","audio"].forEach((function(r){var n=t.filter((function(t){return function(t,e){var r=_[e];return!!r&&!0===r[t.slice(0,4)]}(t,r)}));if(n.length){var i=n.filter((function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)}));e[r+"Codec"]=i.length>0?i[0]:n[0],t=t.filter((function(t){return-1===n.indexOf(t)}))}})),e.unknownCodecs=t}for(x.lastIndex=0;null!=(n=x.exec(e));)if(n[1]){var u={},l=u.attrs=new S(n[1]);u.url=t.resolve(n[2],r);var c=l.decimalResolution("RESOLUTION");c&&(u.width=c.width,u.height=c.height),u.bitrate=l.decimalInteger("AVERAGE-BANDWIDTH")||l.decimalInteger("BANDWIDTH"),u.name=l.NAME,s([].concat((l.CODECS||"").split(/[ ,]+/)),u),u.videoCodec&&-1!==u.videoCodec.indexOf("avc1")&&(u.videoCodec=t.convertAVC1ToAVCOTI(u.videoCodec)),i.push(u)}else if(n[3]){var f=new S(n[3]);f["DATA-ID"]&&(a=!0,o[f["DATA-ID"]]=f)}return{levels:i,sessionData:a?o:null}},t.parseMasterPlaylistMedia=function(e,r,n,i){var o;void 0===i&&(i=[]);var a=[],s=0;for(A.lastIndex=0;null!==(o=A.exec(e));){var u=new S(o[1]);if(u.TYPE===n){var l={attrs:u,id:s++,groupId:u["GROUP-ID"],instreamId:u["INSTREAM-ID"],name:u.NAME||u.LANGUAGE,type:n,default:"YES"===u.DEFAULT,autoselect:"YES"===u.AUTOSELECT,forced:"YES"===u.FORCED,lang:u.LANGUAGE};if(u.URI&&(l.url=t.resolve(u.URI,r)),i.length){var c=t.findGroup(i,l.groupId);l.audioCodec=c?c.codec:i[0].codec}a.push(l)}}return a},t.parseLevelPlaylist=function(t,e,r,n,i){var o,a,s,l=0,f=0,d=new E(e),h=0,p=null,g=new m,y=null;for(O.lastIndex=0;null!==(o=O.exec(t));){var b=o[1];if(b){g.duration=parseFloat(b);var T=(" "+o[2]).slice(1);g.title=T||null,g.tagList.push(T?["INF",b,T]:["INF",b])}else if(o[3]){if(Object(u.isFiniteNumber)(g.duration)){var w=l++;g.type=n,g.start=f,s&&(g.levelkey=s),g.sn=w,g.level=r,g.cc=h,g.urlId=i,g.baseurl=e,g.relurl=(" "+o[3]).slice(1),D(g,p),d.fragments.push(g),p=g,f+=g.duration,g=new m}}else if(o[4]){var _=(" "+o[4]).slice(1);p?g.setByteRange(_,p):g.setByteRange(_)}else if(o[5])g.rawProgramDateTime=(" "+o[5]).slice(1),g.tagList.push(["PROGRAM-DATE-TIME",g.rawProgramDateTime]),null===y&&(y=d.fragments.length);else{if(!(o=o[0].match(P))){c.logger.warn("No matches on slow regex match for level playlist!");continue}for(a=1;a<o.length&&void 0===o[a];a++);var k=(" "+o[a+1]).slice(1),x=(" "+o[a+2]).slice(1);switch(o[a]){case"#":g.tagList.push(x?[k,x]:[k]);break;case"PLAYLIST-TYPE":d.type=k.toUpperCase();break;case"MEDIA-SEQUENCE":l=d.startSN=parseInt(k);break;case"TARGETDURATION":d.targetduration=parseFloat(k);break;case"VERSION":d.version=parseInt(k);break;case"EXTM3U":break;case"ENDLIST":d.live=!1;break;case"DIS":h++,g.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":h=parseInt(k);break;case"KEY":var A=new S(k),R=A.enumeratedString("METHOD"),L=A.URI,I=A.hexadecimalInteger("IV");if("com.apple.streamingkeydelivery"===(A.KEYFORMAT||"identity")){c.logger.warn("Keyformat com.apple.streamingkeydelivery is not supported");continue}R&&(s=new v(e,L),L&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(R)>=0&&(s.method=R,s.key=null,s.iv=I));break;case"START":var M=new S(k).decimalFloatingPoint("TIME-OFFSET");Object(u.isFiniteNumber)(M)&&(d.startTimeOffset=M);break;case"MAP":var N=new S(k);g.relurl=N.URI,N.BYTERANGE&&g.setByteRange(N.BYTERANGE),g.baseurl=e,g.level=r,g.type=n,g.sn="initSegment",d.initSegment=g,(g=new m).rawProgramDateTime=d.initSegment.rawProgramDateTime;break;default:c.logger.warn("line parsed but not handled: "+o)}}}return(g=p)&&!g.relurl&&(d.fragments.pop(),f-=g.duration),d.totalduration=f,d.averagetargetduration=f/d.fragments.length,d.endSN=l-1,d.startCC=d.fragments[0]?d.fragments[0].cc:0,d.endCC=h,!d.initSegment&&d.fragments.length&&d.fragments.every((function(t){return C.test(t.relurl)}))&&(c.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),(g=new m).relurl=d.fragments[0].relurl,g.baseurl=e,g.level=r,g.type=n,g.sn="initSegment",d.initSegment=g,d.needSidxRanges=!0),y&&function(t,e){for(var r=t[e],n=e-1;n>=0;n--){var i=t[n];i.programDateTime=r.programDateTime-1e3*i.duration,r=i}}(d.fragments,y),d},t}();function D(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):(null==e?void 0:e.programDateTime)&&(t.programDateTime=e.endProgramDateTime),Object(u.isFiniteNumber)(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}var L=window.performance,I=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.MANIFEST_LOADING,l.default.LEVEL_LOADING,l.default.AUDIO_TRACK_LOADING,l.default.SUBTITLE_TRACK_LOADING)||this).loaders={},r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.canHaveQualityLevels=function(t){return t!==i.AUDIO_TRACK&&t!==i.SUBTITLE_TRACK},n.mapContextToLevelType=function(t){switch(t.type){case i.AUDIO_TRACK:return o.AUDIO;case i.SUBTITLE_TRACK:return o.SUBTITLE;default:return o.MAIN}},n.getResponseUrl=function(t,e){var r=t.url;return void 0!==r&&0!==r.indexOf("data:")||(r=e.url),r};var a=n.prototype;return a.createInternalLoader=function(t){var e=this.hls.config,r=e.pLoader,n=e.loader,i=new(r||n)(e);return t.loader=i,this.loaders[t.type]=i,i},a.getInternalLoader=function(t){return this.loaders[t.type]},a.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},a.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},a.destroy=function(){this.destroyInternalLoaders(),t.prototype.destroy.call(this)},a.onManifestLoading=function(t){this.load({url:t.url,type:i.MANIFEST,level:0,id:null,responseType:"text"})},a.onLevelLoading=function(t){this.load({url:t.url,type:i.LEVEL,level:t.level,id:t.id,responseType:"text"})},a.onAudioTrackLoading=function(t){this.load({url:t.url,type:i.AUDIO_TRACK,level:null,id:t.id,responseType:"text"})},a.onSubtitleTrackLoading=function(t){this.load({url:t.url,type:i.SUBTITLE_TRACK,level:null,id:t.id,responseType:"text"})},a.load=function(t){var e=this.hls.config;c.logger.debug("Loading playlist of type "+t.type+", level: "+t.level+", id: "+t.id);var r,n,o,a,s=this.getInternalLoader(t);if(s){var u=s.context;if(u&&u.url===t.url)return c.logger.trace("playlist request ongoing"),!1;c.logger.warn("aborting previous loader for type: "+t.type),s.abort()}switch(t.type){case i.MANIFEST:r=e.manifestLoadingMaxRetry,n=e.manifestLoadingTimeOut,o=e.manifestLoadingRetryDelay,a=e.manifestLoadingMaxRetryTimeout;break;case i.LEVEL:r=0,a=0,o=0,n=e.levelLoadingTimeOut;break;default:r=e.levelLoadingMaxRetry,n=e.levelLoadingTimeOut,o=e.levelLoadingRetryDelay,a=e.levelLoadingMaxRetryTimeout}s=this.createInternalLoader(t);var l={timeout:n,maxRetry:r,retryDelay:o,maxRetryDelay:a},f={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return c.logger.debug("Calling internal loader delegate for URL: "+t.url),s.load(t,l,f),!0},a.loadsuccess=function(t,e,r,n){if(void 0===n&&(n=null),r.isSidxRequest)return this._handleSidxRequest(t,r),void this._handlePlaylistLoaded(t,e,r,n);if(this.resetInternalLoader(r.type),"string"!=typeof t.data)throw new Error('expected responseType of "text" for PlaylistLoader');var i=t.data;e.tload=L.now(),0===i.indexOf("#EXTM3U")?i.indexOf("#EXTINF:")>0||i.indexOf("#EXT-X-TARGETDURATION:")>0?this._handleTrackOrLevelPlaylist(t,e,r,n):this._handleMasterPlaylist(t,e,r,n):this._handleManifestParsingError(t,r,"no EXTM3U delimiter",n)},a.loaderror=function(t,e,r){void 0===r&&(r=null),this._handleNetworkError(e,r,!1,t)},a.loadtimeout=function(t,e,r){void 0===r&&(r=null),this._handleNetworkError(e,r,!0)},a._handleMasterPlaylist=function(t,e,r,i){var o=this.hls,a=t.data,s=n.getResponseUrl(t,r),u=R.parseMasterPlaylist(a,s),f=u.levels,d=u.sessionData;if(f.length){var h=f.map((function(t){return{id:t.attrs.AUDIO,codec:t.audioCodec}})),p=R.parseMasterPlaylistMedia(a,s,"AUDIO",h),g=R.parseMasterPlaylistMedia(a,s,"SUBTITLES"),v=R.parseMasterPlaylistMedia(a,s,"CLOSED-CAPTIONS");if(p.length){var y=!1;p.forEach((function(t){t.url||(y=!0)})),!1===y&&f[0].audioCodec&&!f[0].attrs.AUDIO&&(c.logger.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),p.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:{},url:""}))}o.trigger(l.default.MANIFEST_LOADED,{levels:f,audioTracks:p,subtitles:g,captions:v,url:s,stats:e,networkDetails:i,sessionData:d})}else this._handleManifestParsingError(t,r,"no level found in manifest",i)},a._handleTrackOrLevelPlaylist=function(t,e,r,o){var a=this.hls,c=r.id,f=r.level,d=r.type,h=n.getResponseUrl(t,r),p=Object(u.isFiniteNumber)(c)?c:0,g=Object(u.isFiniteNumber)(f)?f:p,v=n.mapContextToLevelType(r),y=R.parseLevelPlaylist(t.data,h,g,v,p);if(y.tload=e.tload,y.fragments.length){if(d===i.MANIFEST){var m={url:h,details:y};a.trigger(l.default.MANIFEST_LOADED,{levels:[m],audioTracks:[],url:h,stats:e,networkDetails:o,sessionData:null})}if(e.tparsed=L.now(),y.needSidxRanges){var b=y.initSegment.url;this.load({url:b,isSidxRequest:!0,type:d,level:f,levelDetails:y,id:c,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"})}else r.levelDetails=y,this._handlePlaylistLoaded(t,e,r,o)}else a.trigger(l.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:h,reason:"no fragments found in level",level:"number"==typeof r.level?r.level:void 0})},a._handleSidxRequest=function(t,e){if("string"==typeof t.data)throw new Error("sidx request must be made with responseType of array buffer");var r=h.default.parseSegmentIndex(new Uint8Array(t.data));if(r){var n=r.references,i=e.levelDetails;n.forEach((function(t,e){var r=t.info;if(i){var n=i.fragments[e];0===n.byteRange.length&&n.setByteRange(String(1+r.end-r.start)+"@"+String(r.start))}})),i&&i.initSegment.setByteRange(String(r.moovEndOffset)+"@0")}},a._handleManifestParsingError=function(t,e,r,n){this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:t.url,reason:r,networkDetails:n})},a._handleNetworkError=function(t,e,r,n){var o,a;void 0===r&&(r=!1),void 0===n&&(n=null),c.logger.info("A network error occured while loading a "+t.type+"-type playlist");var u=this.getInternalLoader(t);switch(t.type){case i.MANIFEST:o=r?s.ErrorDetails.MANIFEST_LOAD_TIMEOUT:s.ErrorDetails.MANIFEST_LOAD_ERROR,a=!0;break;case i.LEVEL:o=r?s.ErrorDetails.LEVEL_LOAD_TIMEOUT:s.ErrorDetails.LEVEL_LOAD_ERROR,a=!1;break;case i.AUDIO_TRACK:o=r?s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,a=!1;break;default:a=!1}u&&(u.abort(),this.resetInternalLoader(t.type));var f={type:s.ErrorTypes.NETWORK_ERROR,details:o,fatal:a,url:t.url,loader:u,context:t,networkDetails:e};n&&(f.response=n),this.hls.trigger(l.default.ERROR,f)},a._handlePlaylistLoaded=function(t,e,r,o){var a=r.type,s=r.level,u=r.id,c=r.levelDetails;if(c&&c.targetduration)if(n.canHaveQualityLevels(r.type))this.hls.trigger(l.default.LEVEL_LOADED,{details:c,level:s||0,id:u||0,stats:e,networkDetails:o});else switch(a){case i.AUDIO_TRACK:this.hls.trigger(l.default.AUDIO_TRACK_LOADED,{details:c,id:u,stats:e,networkDetails:o});break;case i.SUBTITLE_TRACK:this.hls.trigger(l.default.SUBTITLE_TRACK_LOADED,{details:c,id:u,stats:e,networkDetails:o})}else this._handleManifestParsingError(t,r,"invalid target duration",o)},n}(d),M=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.FRAG_LOADING)||this).loaders={},r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.destroy=function(){var e=this.loaders;for(var r in e){var n=e[r];n&&n.destroy()}this.loaders={},t.prototype.destroy.call(this)},i.onFragLoading=function(t){var e=t.frag,r=e.type,n=this.loaders,i=this.hls.config,o=i.fLoader,a=i.loader;e.loaded=0;var s,l,f,d=n[r];d&&(c.logger.warn("abort previous fragment loader for type: "+r),d.abort()),d=n[r]=e.loader=i.fLoader?new o(i):new a(i),s={url:e.url,frag:e,responseType:"arraybuffer",progressData:!1};var h=e.byteRangeStartOffset,p=e.byteRangeEndOffset;Object(u.isFiniteNumber)(h)&&Object(u.isFiniteNumber)(p)&&(s.rangeStart=h,s.rangeEnd=p),l={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:i.fragLoadingMaxRetryTimeout},f={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},d.load(s,l,f)},i.loadsuccess=function(t,e,r,n){void 0===n&&(n=null);var i=t.data,o=r.frag;o.loader=void 0,this.loaders[o.type]=void 0,this.hls.trigger(l.default.FRAG_LOADED,{payload:i,frag:o,stats:e,networkDetails:n})},i.loaderror=function(t,e,r){void 0===r&&(r=null);var n=e.frag,i=n.loader;i&&i.abort(),this.loaders[n.type]=void 0,this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:e.frag,response:t,networkDetails:r})},i.loadtimeout=function(t,e,r){void 0===r&&(r=null);var n=e.frag,i=n.loader;i&&i.abort(),this.loaders[n.type]=void 0,this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e.frag,networkDetails:r})},i.loadprogress=function(t,e,r,n){void 0===n&&(n=null);var i=e.frag;i.loaded=t.loaded,this.hls.trigger(l.default.FRAG_LOAD_PROGRESS,{frag:i,stats:t,networkDetails:n})},n}(d),N=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.KEY_LOADING)||this).loaders={},r.decryptkey=null,r.decrypturl=null,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.destroy=function(){for(var e in this.loaders){var r=this.loaders[e];r&&r.destroy()}this.loaders={},t.prototype.destroy.call(this)},i.onKeyLoading=function(t){var e=t.frag,r=e.type,n=this.loaders[r];if(e.decryptdata){var i=e.decryptdata.uri;if(i!==this.decrypturl||null===this.decryptkey){var o=this.hls.config;if(n&&(c.logger.warn("abort previous key loader for type:"+r),n.abort()),!i)return void c.logger.warn("key uri is falsy");e.loader=this.loaders[r]=new o.loader(o),this.decrypturl=i,this.decryptkey=null;var a={url:i,frag:e,responseType:"arraybuffer"},s={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout},u={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};e.loader.load(a,s,u)}else this.decryptkey&&(e.decryptdata.key=this.decryptkey,this.hls.trigger(l.default.KEY_LOADED,{frag:e}))}else c.logger.warn("Missing decryption data on fragment in onKeyLoading")},i.loadsuccess=function(t,e,r){var n=r.frag;n.decryptdata?(this.decryptkey=n.decryptdata.key=new Uint8Array(t.data),n.loader=void 0,delete this.loaders[n.type],this.hls.trigger(l.default.KEY_LOADED,{frag:n})):c.logger.error("after key load, decryptdata unset")},i.loaderror=function(t,e){var r=e.frag,n=r.loader;n&&n.abort(),delete this.loaders[r.type],this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:r,response:t})},i.loadtimeout=function(t,e){var r=e.frag,n=r.loader;n&&n.abort(),delete this.loaders[r.type],this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},n}(d),j="NOT_LOADED",B="APPENDING",F="PARTIAL",U="OK",H=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.BUFFER_APPENDED,l.default.FRAG_BUFFERED,l.default.FRAG_LOADED)||this).bufferPadding=.2,r.fragments=Object.create(null),r.timeRanges=Object.create(null),r.config=e.config,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.destroy=function(){this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.config=null,d.prototype.destroy.call(this),t.prototype.destroy.call(this)},i.getBufferedFrag=function(t,e){var r=this.fragments,n=Object.keys(r).filter((function(n){var i=r[n];if(i.body.type!==e)return!1;if(!i.buffered)return!1;var o=i.body;return o.startPTS<=t&&t<=o.endPTS}));if(0===n.length)return null;var i=n.pop();return r[i].body},i.detectEvictedFragments=function(t,e){var r=this;Object.keys(this.fragments).forEach((function(n){var i=r.fragments[n];if(i&&i.buffered){var o=i.range[t];if(o)for(var a=o.time,s=0;s<a.length;s++){var u=a[s];if(!r.isTimeBuffered(u.startPTS,u.endPTS,e)){r.removeFragment(i.body);break}}}}))},i.detectPartialFragments=function(t){var e=this,r=this.getFragmentKey(t),n=this.fragments[r];n&&(n.buffered=!0,Object.keys(this.timeRanges).forEach((function(r){if(t.hasElementaryStream(r)){var i=e.timeRanges[r];n.range[r]=e.getBufferedTimes(t.startPTS,t.endPTS,i)}})))},i.getBufferedTimes=function(t,e,r){for(var n,i,o=[],a=!1,s=0;s<r.length;s++){if(n=r.start(s)-this.bufferPadding,i=r.end(s)+this.bufferPadding,t>=n&&e<=i){o.push({startPTS:Math.max(t,r.start(s)),endPTS:Math.min(e,r.end(s))});break}if(t<i&&e>n)o.push({startPTS:Math.max(t,r.start(s)),endPTS:Math.min(e,r.end(s))}),a=!0;else if(e<=n)break}return{time:o,partial:a}},i.getFragmentKey=function(t){return t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn},i.getPartialFragment=function(t){var e,r,n,i=this,o=null,a=0;return Object.keys(this.fragments).forEach((function(s){var u=i.fragments[s];i.isPartial(u)&&(r=u.body.startPTS-i.bufferPadding,n=u.body.endPTS+i.bufferPadding,t>=r&&t<=n&&(e=Math.min(t-r,n-t),a<=e&&(o=u.body,a=e)))})),o},i.getState=function(t){var e=this.getFragmentKey(t),r=this.fragments[e],n=j;return void 0!==r&&(n=r.buffered?!0===this.isPartial(r)?F:U:B),n},i.isPartial=function(t){return!0===t.buffered&&(void 0!==t.range.video&&!0===t.range.video.partial||void 0!==t.range.audio&&!0===t.range.audio.partial)},i.isTimeBuffered=function(t,e,r){for(var n,i,o=0;o<r.length;o++){if(n=r.start(o)-this.bufferPadding,i=r.end(o)+this.bufferPadding,t>=n&&e<=i)return!0;if(e<=n)return!1}return!1},i.onFragLoaded=function(t){var e=t.frag;Object(u.isFiniteNumber)(e.sn)&&!e.bitrateTest&&(this.fragments[this.getFragmentKey(e)]={body:e,range:Object.create(null),buffered:!1})},i.onBufferAppended=function(t){var e=this;this.timeRanges=t.timeRanges,Object.keys(this.timeRanges).forEach((function(t){var r=e.timeRanges[t];e.detectEvictedFragments(t,r)}))},i.onFragBuffered=function(t){this.detectPartialFragments(t.frag)},i.hasFragment=function(t){var e=this.getFragmentKey(t);return void 0!==this.fragments[e]},i.removeFragment=function(t){var e=this.getFragmentKey(t);delete this.fragments[e]},i.removeAllFragments=function(){this.fragments=Object.create(null)},n}(d),V={search:function(t,e){for(var r=0,n=t.length-1,i=null,o=null;r<=n;){var a=e(o=t[i=(r+n)/2|0]);if(a>0)r=i+1;else{if(!(a<0))return o;n=i-1}}return null}},z=function(){function t(){}return t.isBuffered=function(t,e){try{if(t)for(var r=t.buffered,n=0;n<r.length;n++)if(e>=r.start(n)&&e<=r.end(n))return!0}catch(t){}return!1},t.bufferInfo=function(t,e,r){try{if(t){var n,i=t.buffered,o=[];for(n=0;n<i.length;n++)o.push({start:i.start(n),end:i.end(n)});return this.bufferedInfo(o,e,r)}}catch(t){}return{len:0,start:e,end:e,nextStart:void 0}},t.bufferedInfo=function(t,e,r){t.sort((function(t,e){var r=t.start-e.start;return r||e.end-t.end}));var n=[];if(r)for(var i=0;i<t.length;i++){var o=n.length;if(o){var a=n[o-1].end;t[i].start-a<r?t[i].end>a&&(n[o-1].end=t[i].end):n.push(t[i])}else n.push(t[i])}else n=t;for(var s,u=0,l=e,c=e,f=0;f<n.length;f++){var d=n[f].start,h=n[f].end;if(e+r>=d&&e<h)l=d,u=(c=h)-e;else if(e+r<d){s=d;break}}return{len:u,start:l,end:c,nextStart:s}},t}(),G=r("./node_modules/eventemitter3/index.js"),W=r("./node_modules/webworkify-webpack/index.js"),K=r("./src/demux/demuxer-inline.js");function Y(){return window.MediaSource||window.WebKitMediaSource}var X=r("./src/utils/get-self-scope.js"),q=function(t){var e,r;function n(){return t.apply(this,arguments)||this}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.prototype.trigger=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.emit.apply(this,[t,t].concat(r))},n}(G.EventEmitter),$=Object(X.getSelfScope)(),Q=Y()||{isTypeSupported:function(){return!1}},J=function(){function t(t,e){var r=this;this.hls=t,this.id=e;var n=this.observer=new q,i=t.config,o=function(e,n){(n=n||{}).frag=r.frag,n.id=r.id,t.trigger(e,n)};n.on(l.default.FRAG_DECRYPTED,o),n.on(l.default.FRAG_PARSING_INIT_SEGMENT,o),n.on(l.default.FRAG_PARSING_DATA,o),n.on(l.default.FRAG_PARSED,o),n.on(l.default.ERROR,o),n.on(l.default.FRAG_PARSING_METADATA,o),n.on(l.default.FRAG_PARSING_USERDATA,o),n.on(l.default.INIT_PTS_FOUND,o);var a={mp4:Q.isTypeSupported("video/mp4"),mpeg:Q.isTypeSupported("audio/mpeg"),mp3:Q.isTypeSupported('audio/mp4; codecs="mp3"')},u=navigator.vendor;if(i.enableWorker&&"undefined"!=typeof Worker){var f;c.logger.log("demuxing in webworker");try{f=this.w=W(/*! ../demux/demuxer-worker.js */"./src/demux/demuxer-worker.js"),this.onwmsg=this.onWorkerMessage.bind(this),f.addEventListener("message",this.onwmsg),f.onerror=function(e){t.trigger(l.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:e.message+" ("+e.filename+":"+e.lineno+")"}})},f.postMessage({cmd:"init",typeSupported:a,vendor:u,id:e,config:JSON.stringify(i)})}catch(t){c.logger.warn("Error in worker:",t),c.logger.error("Error while initializing DemuxerWorker, fallback on DemuxerInline"),f&&$.URL.revokeObjectURL(f.objectURL),this.demuxer=new K.default(n,a,i,u),this.w=void 0}}else this.demuxer=new K.default(n,a,i,u)}var e=t.prototype;return e.destroy=function(){var t=this.w;if(t)t.removeEventListener("message",this.onwmsg),t.terminate(),this.w=null;else{var e=this.demuxer;e&&(e.destroy(),this.demuxer=null)}var r=this.observer;r&&(r.removeAllListeners(),this.observer=null)},e.push=function(t,e,r,n,i,o,a,s){var l=this.w,f=Object(u.isFiniteNumber)(i.startPTS)?i.startPTS:i.start,d=i.decryptdata,h=this.frag,p=!(h&&i.cc===h.cc),g=!(h&&i.level===h.level),v=h&&i.sn===h.sn+1,y=!g&&v;if(p&&c.logger.log(this.id+":discontinuity detected"),g&&c.logger.log(this.id+":switch detected"),this.frag=i,l)l.postMessage({cmd:"demux",data:t,decryptdata:d,initSegment:e,audioCodec:r,videoCodec:n,timeOffset:f,discontinuity:p,trackSwitch:g,contiguous:y,duration:o,accurateTimeOffset:a,defaultInitPTS:s},t instanceof ArrayBuffer?[t]:[]);else{var m=this.demuxer;m&&m.push(t,d,e,r,n,f,p,g,y,o,a,s)}},e.onWorkerMessage=function(t){var e=t.data,r=this.hls;switch(e.event){case"init":$.URL.revokeObjectURL(this.w.objectURL);break;case l.default.FRAG_PARSING_DATA:e.data.data1=new Uint8Array(e.data1),e.data2&&(e.data.data2=new Uint8Array(e.data2));default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},t}();function Z(t,e,r){switch(e){case"audio":t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds.push(r);break;case"text":t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds.push(r)}}function tt(t,e,r){var n=t[e],i=t[r],o=i.startPTS;if(Object(u.isFiniteNumber)(o))r>e?(n.duration=o-n.start,n.duration<0&&c.logger.warn("negative duration computed for frag "+n.sn+",level "+n.level+", there should be some duration drift between playlist and fragment!")):(i.duration=n.start-o,i.duration<0&&c.logger.warn("negative duration computed for frag "+i.sn+",level "+i.level+", there should be some duration drift between playlist and fragment!"));else if(r>e){var a=n.cc===i.cc;i.start=n.start+(a&&n.minEndPTS?n.minEndPTS-n.start:n.duration)}else i.start=Math.max(n.start-i.duration,0)}function et(t,e,r,n,i,o){var a=r,s=n;if(Object(u.isFiniteNumber)(e.startPTS)){var l=Math.abs(e.startPTS-r);Object(u.isFiniteNumber)(e.deltaPTS)?e.deltaPTS=Math.max(l,e.deltaPTS):e.deltaPTS=l,a=Math.max(r,e.startPTS),r=Math.min(r,e.startPTS),s=Math.min(n,e.endPTS),n=Math.max(n,e.endPTS),i=Math.min(i,e.startDTS),o=Math.max(o,e.endDTS)}var c=r-e.start;e.start=e.startPTS=r,e.maxStartPTS=a,e.endPTS=n,e.minEndPTS=s,e.startDTS=i,e.endDTS=o,e.duration=n-r;var f,d,h,p=e.sn;if(!t||p<t.startSN||p>t.endSN)return 0;for(f=p-t.startSN,(d=t.fragments)[f]=e,h=f;h>0;h--)tt(d,h,h-1);for(h=f;h<d.length-1;h++)tt(d,h,h+1);return t.PTSKnown=!0,c}function rt(t,e){e.initSegment&&t.initSegment&&(e.initSegment=t.initSegment);var r,n=0;if(nt(t,e,(function(t,i){n=t.cc-i.cc,Object(u.isFiniteNumber)(t.startPTS)&&(i.start=i.startPTS=t.startPTS,i.endPTS=t.endPTS,i.duration=t.duration,i.backtracked=t.backtracked,i.dropped=t.dropped,r=i),e.PTSKnown=!0})),e.PTSKnown){if(n){c.logger.log("discontinuity sliding from playlist, take drift into account");for(var i=e.fragments,o=0;o<i.length;o++)i[o].cc+=n}r?et(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):function(t,e){var r=e.startSN-t.startSN,n=t.fragments,i=e.fragments;if(!(r<0||r>n.length))for(var o=0;o<i.length;o++)i[o].start+=n[r].start}(t,e),e.PTSKnown=t.PTSKnown}}function nt(t,e,r){if(t&&e)for(var n=Math.max(t.startSN,e.startSN)-e.startSN,i=Math.min(t.endSN,e.endSN)-e.startSN,o=e.startSN-t.startSN,a=n;a<=i;a++){var s=t.fragments[o+a],u=e.fragments[a];if(!s||!u)break;r(s,u,a)}}function it(t,e,r){var n=1e3*(e.averagetargetduration?e.averagetargetduration:e.targetduration),i=n/2;return t&&e.endSN===t.endSN&&(n=i),r&&(n=Math.max(i,n-(window.performance.now()-r))),Math.round(n)}var ot={toString:function(t){for(var e="",r=t.length,n=0;n<r;n++)e+="["+t.start(n).toFixed(3)+","+t.end(n).toFixed(3)+"]";return e}};function at(t,e){e.fragments.forEach((function(e){if(e){var r=e.start+t;e.start=e.startPTS=r,e.endPTS=r+e.duration}})),e.PTSKnown=!0}function st(t,e,r){!function(t,e,r){if(function(t,e,r){var n=!1;return e&&e.details&&r&&(r.endCC>r.startCC||t&&t.cc<r.startCC)&&(n=!0),n}(t,r,e)){var n=function(t,e){var r=t.fragments,n=e.fragments;if(n.length&&r.length){var i=function(t,e){for(var r=null,n=0;n<t.length;n+=1){var i=t[n];if(i&&i.cc===e){r=i;break}}return r}(r,n[0].cc);if(i&&(!i||i.startPTS))return i;c.logger.log("No frag in previous level to align on")}else c.logger.log("No fragments to align")}(r.details,e);n&&(c.logger.log("Adjusting PTS using last level due to CC increase within current level"),at(n.start,e))}}(t,r,e),!r.PTSKnown&&e&&function(t,e){if(e&&e.fragments.length){if(!t.hasProgramDateTime||!e.hasProgramDateTime)return;var r=e.fragments[0].programDateTime,n=(t.fragments[0].programDateTime-r)/1e3+e.fragments[0].start;Object(u.isFiniteNumber)(n)&&(c.logger.log("adjusting PTS using programDateTime delta, sliding:"+n.toFixed(3)),at(n,t))}}(r,e.details)}function ut(t,e,r){if(null===e||!Array.isArray(t)||!t.length||!Object(u.isFiniteNumber)(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;r=r||0;for(var n=0;n<t.length;++n){var i=t[n];if(ft(e,r,i))return i}return null}function lt(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var i=null;if(t?i=e[t.sn-e[0].sn+1]:0===r&&0===e[0].start&&(i=e[0]),i&&0===ct(r,n,i))return i;var o=V.search(e,ct.bind(null,r,n));return o||i}function ct(t,e,r){void 0===t&&(t=0),void 0===e&&(e=0);var n=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-n<=t?1:r.start-n>t&&r.start?-1:0}function ft(t,e,r){var n=1e3*Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-n>t}var dt=function(){function t(t,e,r,n){this.config=t,this.media=e,this.fragmentTracker=r,this.hls=n,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1}var e=t.prototype;return e.poll=function(t){var e=this.config,r=this.media,n=this.stalled,i=r.currentTime,o=r.seeking,a=this.seeking&&!o,s=!this.seeking&&o;if(this.seeking=o,i===t){if((s||a)&&(this.stalled=null),!r.paused&&!r.ended&&0!==r.playbackRate&&r.buffered.length){var u=z.bufferInfo(r,i,0),l=u.len>0,f=u.nextStart||0;if(l||f){if(o){var d=u.len>2,h=!f||f-i>2&&!this.fragmentTracker.getPartialFragment(i);if(d||h)return;this.moved=!1}if(!this.moved&&this.stalled){var p=Math.max(f,u.start||0)-i;if(p>0&&p<=2)return void this._trySkipBufferHole(null)}var g=self.performance.now();if(null!==n){var v=g-n;!o&&v>=250&&this._reportStall(u.len);var y=z.bufferInfo(r,i,e.maxBufferHole);this._tryFixBufferStall(y,v)}else this.stalled=g}}}else if(this.moved=!0,null!==n){if(this.stallReported){var m=self.performance.now()-n;c.logger.warn("playback not stuck anymore @"+i+", after "+Math.round(m)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}},e._tryFixBufferStall=function(t,e){var r=this.config,n=this.fragmentTracker,i=this.media.currentTime,o=n.getPartialFragment(i);o&&this._trySkipBufferHole(o)||t.len>r.maxBufferHole&&e>1e3*r.highBufferWatchdogPeriod&&(c.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},e._reportStall=function(t){var e=this.hls,r=this.media;this.stallReported||(this.stallReported=!0,c.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+t+")"),e.trigger(l.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:t}))},e._trySkipBufferHole=function(t){for(var e=this.config,r=this.hls,n=this.media,i=n.currentTime,o=0,a=0;a<n.buffered.length;a++){var u=n.buffered.start(a);if(i+e.maxBufferHole>=o&&i<u){var f=Math.max(u+.05,n.currentTime+.1);return c.logger.warn("skipping hole, adjusting currentTime from "+i+" to "+f),this.moved=!0,this.stalled=null,n.currentTime=f,t&&r.trigger(l.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+i+" to "+f,frag:t}),f}o=n.buffered.end(a)}return 0},e._tryNudgeBuffer=function(){var t=this.config,e=this.hls,r=this.media,n=r.currentTime,i=(this.nudgeRetry||0)+1;if(this.nudgeRetry=i,i<t.nudgeMaxRetry){var o=n+i*t.nudgeOffset;c.logger.warn("Nudging 'currentTime' from "+n+" to "+o),r.currentTime=o,e.trigger(l.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else c.logger.error("Playhead still not moving while enough data buffered @"+n+" after "+t.nudgeMaxRetry+" nudges"),e.trigger(l.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},t}();function ht(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var pt=function(t){var e,r;function n(e){for(var r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(r=t.call.apply(t,[this,e].concat(i))||this)._boundTick=void 0,r._tickTimer=null,r._tickInterval=null,r._tickCallCount=0,r._boundTick=r.tick.bind(ht(r)),r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},i.hasInterval=function(){return!!this._tickInterval},i.hasNextTick=function(){return!!this._tickTimer},i.setInterval=function(t){return!this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,t),!0)},i.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},i.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},i.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&(this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)),this._tickCallCount=0)},i.doTick=function(){},n}(d),gt="STOPPED",vt="STARTING",yt="IDLE",mt="PAUSED",bt="KEY_LOADING",Et="FRAG_LOADING",Tt="FRAG_LOADING_WAITING_RETRY",wt="WAITING_TRACK",St="PARSING",_t="PARSED",kt="BUFFER_FLUSHING",xt="ENDED",At="ERROR",Ot="WAITING_INIT_PTS",Pt="WAITING_LEVEL",Ct=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.doTick=function(){},i.startLoad=function(){},i.stopLoad=function(){var t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragmentTracker.removeFragment(t)),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=gt},i._streamEnded=function(t,e){var r=this.fragCurrent,n=this.fragmentTracker;if(!e.live&&r&&!r.backtracked&&r.sn===e.endSN&&!t.nextStart){var i=n.getState(r);return i===F||i===U}return!1},i.onMediaSeeking=function(){var t=this.config,e=this.media,r=this.mediaBuffer,n=this.state,i=e?e.currentTime:null,o=z.bufferInfo(r||e,i,this.config.maxBufferHole);if(c.logger.log("media seeking to "+(Object(u.isFiniteNumber)(i)?i.toFixed(3):i)),n===Et){var a=this.fragCurrent;if(0===o.len&&a){var s=t.maxFragLookUpTolerance,l=a.start-s,f=a.start+a.duration+s;i<l||i>f?(a.loader&&(c.logger.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),a.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=yt):c.logger.log("seeking outside of buffer but within currently loaded fragment range")}}else n===xt&&(0===o.len&&(this.fragPrevious=null,this.fragCurrent=null),this.state=yt);e&&(this.lastCurrentTime=i),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=i),this.tick()},i.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},i.onHandlerDestroying=function(){this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},i.onHandlerDestroyed=function(){this.state=gt,this.fragmentTracker=null},i.computeLivePosition=function(t,e){var r=void 0!==this.config.liveSyncDuration?this.config.liveSyncDuration:this.config.liveSyncDurationCount*e.targetduration;return t+Math.max(0,e.totalduration-r)},n}(pt);function Rt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Dt,Lt=function(t){var e,r;function n(e,r){var n;return(n=t.call(this,e,l.default.MEDIA_ATTACHED,l.default.MEDIA_DETACHING,l.default.MANIFEST_LOADING,l.default.MANIFEST_PARSED,l.default.LEVEL_LOADED,l.default.LEVELS_UPDATED,l.default.KEY_LOADED,l.default.FRAG_LOADED,l.default.FRAG_LOAD_EMERGENCY_ABORTED,l.default.FRAG_PARSING_INIT_SEGMENT,l.default.FRAG_PARSING_DATA,l.default.FRAG_PARSED,l.default.ERROR,l.default.AUDIO_TRACK_SWITCHING,l.default.AUDIO_TRACK_SWITCHED,l.default.BUFFER_CREATED,l.default.BUFFER_APPENDED,l.default.BUFFER_FLUSHED)||this).fragmentTracker=r,n.config=e.config,n.audioCodecSwap=!1,n._state=gt,n.stallReported=!1,n.gapController=null,n.altAudio=!1,n.audioOnly=!1,n.bitrateTest=!1,n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,a,f,d=n.prototype;return d.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var n=r.startLevel;-1===n&&(r.config.testBandwidth?(n=0,this.bitrateTest=!0):n=r.nextAutoLevel),this.level=r.nextLoadLevel=n,this.loadedmetadata=!1}e>0&&-1===t&&(c.logger.log("override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=yt,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this.forceStartLoad=!0,this.state=gt},d.stopLoad=function(){this.forceStartLoad=!1,t.prototype.stopLoad.call(this)},d.doTick=function(){switch(this.state){case kt:this.fragLoadError=0;break;case yt:this._doTickIdle();break;case Pt:var t=this.levels[this.level];t&&t.details&&(this.state=yt);break;case Tt:var e=window.performance.now(),r=this.retryDate;(!r||e>=r||this.media&&this.media.seeking)&&(c.logger.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=yt)}this._checkBuffer(),this._checkFragmentChanged()},d._doTickIdle=function(){var t=this.hls,e=t.config,r=this.media;if(void 0!==this.levelLastLoaded&&(r||!this.startFragRequested&&e.startFragPrefetch))if(this.altAudio&&this.audioOnly)this.demuxer.frag=null;else{var n;n=this.loadedmetadata?r.currentTime:this.nextLoadPosition;var i=t.nextLoadLevel,o=this.levels[i];if(o){var a,s=o.bitrate;a=s?Math.max(8*e.maxBufferSize/s,e.maxBufferLength):e.maxBufferLength,a=Math.min(a,e.maxMaxBufferLength);var u=n<e.maxBufferHole?Math.max(2,e.maxBufferHole):e.maxBufferHole,f=z.bufferInfo(this.mediaBuffer?this.mediaBuffer:r,n,u),d=f.len;if(!(d>=a)){c.logger.trace("buffer length of "+d.toFixed(3)+" is below max of "+a.toFixed(3)+". checking for more payload ..."),this.level=t.nextLoadLevel=i;var h=o.details;if(!h||h.live&&this.levelLastLoaded!==i)this.state=Pt;else{if(this._streamEnded(f,h)){var p={};return this.altAudio&&(p.type="video"),this.hls.trigger(l.default.BUFFER_EOS,p),void(this.state=xt)}this._fetchPayloadOrEos(n,f,h)}}}}},d._fetchPayloadOrEos=function(t,e,r){var n=this.fragPrevious,i=(this.level,r.fragments),o=i.length;if(0!==o){var a,s=i[0].start,u=i[o-1].start+i[o-1].duration,l=e.end;if(r.initSegment&&!r.initSegment.data)a=r.initSegment;else if(r.live){var f=this.config.initialLiveManifestSize;if(o<f)return void c.logger.warn("Can not start playback of a level, reason: not enough fragments "+o+" < "+f);if(null===(a=this._ensureFragmentAtLivePoint(r,l,s,u,n,i)))return}else l<s&&(a=i[0]);a||(a=this._findFragment(s,n,o,i,l,u,r)),a&&(a.encrypted?this._loadKey(a,r):this._loadFragment(a,r,t,l))}},d._ensureFragmentAtLivePoint=function(t,e,r,n,i,o){var a,s=this.hls.config,l=this.media,f=1/0;if(void 0!==s.liveMaxLatencyDuration?f=s.liveMaxLatencyDuration:Object(u.isFiniteNumber)(s.liveMaxLatencyDurationCount)&&(f=s.liveMaxLatencyDurationCount*t.targetduration),e<Math.max(r-s.maxFragLookUpTolerance,n-f)){var d=this.liveSyncPosition=this.computeLivePosition(r,t);e=d,l&&!l.paused&&l.readyState&&l.duration>d&&d>l.currentTime&&(c.logger.log("buffer end: "+e.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+d.toFixed(3)),l.currentTime=d),this.nextLoadPosition=d}if(t.PTSKnown&&e>n&&l&&l.readyState)return null;if(this.startFragRequested&&!t.PTSKnown&&i)if(t.hasProgramDateTime)c.logger.log("live playlist, switching playlist, load frag with same PDT: "+i.programDateTime),a=ut(o,i.endProgramDateTime,s.maxFragLookUpTolerance);else{var h=i.sn+1;if(h>=t.startSN&&h<=t.endSN){var p=o[h-t.startSN];i.cc===p.cc&&(a=p,c.logger.log("live playlist, switching playlist, load frag with next SN: "+a.sn))}a||(a=V.search(o,(function(t){return i.cc-t.cc})))&&c.logger.log("live playlist, switching playlist, load frag with same CC: "+a.sn)}return a},d._findFragment=function(t,e,r,n,i,o,a){var s,u=this.hls.config;if(s=i<o?lt(e,n,i,i>o-u.maxFragLookUpTolerance?0:u.maxFragLookUpTolerance):n[r-1]){var l=s.sn-a.startSN,f=e&&s.level===e.level,d=n[l-1],h=n[l+1];if(e&&s.sn===e.sn)if(f&&!s.backtracked)if(s.sn<a.endSN){var p=e.deltaPTS;p&&p>u.maxBufferHole&&e.dropped&&l?(s=d,c.logger.warn("Previous fragment was dropped with large PTS gap between audio and video. Maybe fragment is not starting with a keyframe? Loading previous one to try to overcome this")):(s=h,this.fragmentTracker.getState(s)!==U&&c.logger.log("Re-loading fragment with SN: "+s.sn))}else s=null;else s.backtracked&&(h&&h.backtracked?(c.logger.warn("Already backtracked from fragment "+h.sn+", will not backtrack to fragment "+s.sn+". Loading fragment "+h.sn),s=h):(c.logger.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),s.dropped=0,d?(s=d).backtracked=!0:l&&(s=null)))}return s},d._loadKey=function(t,e){c.logger.log("Loading key for "+t.sn+" of ["+e.startSN+"-"+e.endSN+"], level "+this.level),this.state=bt,this.hls.trigger(l.default.KEY_LOADING,{frag:t})},d._loadFragment=function(t,e,r,n){var i=this.fragmentTracker.getState(t);this.fragCurrent=t,"initSegment"!==t.sn&&(this.startFragRequested=!0),Object(u.isFiniteNumber)(t.sn)&&!t.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),t.backtracked||i===j||i===F?(t.autoLevel=this.hls.autoLevelEnabled,t.bitrateTest=this.bitrateTest,c.logger.log("Loading "+t.sn+" of ["+e.startSN+"-"+e.endSN+"], level "+this.level+", "+(this.loadedmetadata?"currentTime":"nextLoadPosition")+": "+parseFloat(r.toFixed(3))+", bufferEnd: "+parseFloat(n.toFixed(3))),this.hls.trigger(l.default.FRAG_LOADING,{frag:t}),this.demuxer||(this.demuxer=new J(this.hls,"main")),this.state=Et):i===B&&this._reduceMaxBufferLength(t.duration)&&this.fragmentTracker.removeFragment(t)},d.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,o.MAIN)},d.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.endPTS+.5):null},d._checkFragmentChanged=function(){var t,e,r=this.media;if(r&&r.readyState&&!1===r.seeking&&((e=r.currentTime)>this.lastCurrentTime&&(this.lastCurrentTime=e),z.isBuffered(r,e)?t=this.getBufferedFrag(e):z.isBuffered(r,e+.1)&&(t=this.getBufferedFrag(e+.1)),t)){var n=t;if(n!==this.fragPlaying){this.hls.trigger(l.default.FRAG_CHANGED,{frag:n});var i=n.level;this.fragPlaying&&this.fragPlaying.level===i||this.hls.trigger(l.default.LEVEL_SWITCHED,{level:i}),this.fragPlaying=n}}},d.immediateLevelSwitch=function(){if(c.logger.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;var t,e=this.media;e?(t=e.paused)||e.pause():t=!0,this.previouslyPaused=t}var r=this.fragCurrent;r&&r.loader&&r.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},d.immediateLevelSwitchEnd=function(){var t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!1,t.currentTime>0&&z.isBuffered(t,t.currentTime)&&(t.currentTime-=1e-4),this.previouslyPaused||t.play())},d.nextLevelSwitch=function(){var t=this.media;if(t&&t.readyState){var e,r=this.getBufferedFrag(t.currentTime);if(r&&r.startPTS>1&&this.flushMainBuffer(0,r.startPTS-1),t.paused)e=0;else{var n=this.hls.nextLoadLevel,i=this.levels[n],o=this.fragLastKbps;e=o&&this.fragCurrent?this.fragCurrent.duration*i.bitrate/(1e3*o)+1:0}var a=this.getBufferedFrag(t.currentTime+e);if(a){var s=this.followingBufferedFrag(a);if(s){var u=this.fragCurrent;u&&u.loader&&u.loader.abort(),this.fragCurrent=null;var l=Math.max(a.endPTS,s.maxStartPTS+Math.min(this.config.maxFragLookUpTolerance,s.duration));this.flushMainBuffer(l,Number.POSITIVE_INFINITY)}}}},d.flushMainBuffer=function(t,e){this.state=kt;var r={startOffset:t,endOffset:e};this.altAudio&&(r.type="video"),this.hls.trigger(l.default.BUFFER_FLUSHING,r)},d.onMediaAttached=function(t){var e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),e.addEventListener("seeking",this.onvseeking),e.addEventListener("seeked",this.onvseeked),e.addEventListener("ended",this.onvended);var r=this.config;this.levels&&r.autoStartLoad&&this.hls.startLoad(r.startPosition),this.gapController=new dt(r,e,this.fragmentTracker,this.hls)},d.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(c.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var e=this.levels;e&&e.forEach((function(t){t.details&&t.details.fragments.forEach((function(t){t.backtracked=void 0}))})),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("seeked",this.onvseeked),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.fragmentTracker.removeAllFragments(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},d.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:void 0;Object(u.isFiniteNumber)(e)&&c.logger.log("media seeked to "+e.toFixed(3)),this.tick()},d.onManifestLoading=function(){c.logger.log("trigger BUFFER_RESET"),this.hls.trigger(l.default.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0},d.onManifestParsed=function(t){var e,r=!1,n=!1;t.levels.forEach((function(t){(e=t.audioCodec)&&(-1!==e.indexOf("mp4a.40.2")&&(r=!0),-1!==e.indexOf("mp4a.40.5")&&(n=!0))})),this.audioCodecSwitch=r&&n,this.audioCodecSwitch&&c.logger.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.altAudio=t.altAudio,this.levels=t.levels,this.startFragRequested=!1;var i=this.config;(i.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(i.startPosition)},d.onLevelLoaded=function(t){var e=t.details,r=t.level,n=this.levels[this.levelLastLoaded],i=this.levels[r],o=e.totalduration,a=0;if(c.logger.log("level "+r+" loaded ["+e.startSN+","+e.endSN+"],duration:"+o),e.live||i.details&&i.details.live){var s=i.details;s&&e.fragments.length>0?(rt(s,e),a=e.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(a,s),e.PTSKnown&&Object(u.isFiniteNumber)(a)?c.logger.log("live playlist sliding:"+a.toFixed(3)):(c.logger.log("live playlist - outdated PTS, unknown sliding"),st(this.fragPrevious,n,e))):(c.logger.log("live playlist - first load, unknown sliding"),e.PTSKnown=!1,st(this.fragPrevious,n,e))}else e.PTSKnown=!1;if(i.details=e,this.levelLastLoaded=r,this.hls.trigger(l.default.LEVEL_UPDATED,{details:e,level:r}),!1===this.startFragRequested){if(-1===this.startPosition||-1===this.lastCurrentTime){var f=e.startTimeOffset;Object(u.isFiniteNumber)(f)?(f<0&&(c.logger.log("negative start time offset "+f+", count from end of last fragment"),f=a+o+f),c.logger.log("start time offset found in playlist, adjust startPosition to "+f),this.startPosition=f):e.live?(this.startPosition=this.computeLivePosition(a,e),c.logger.log("configure startPosition to "+this.startPosition)):this.startPosition=0,this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===Pt&&(this.state=yt),this.tick()},d.onKeyLoaded=function(){this.state===bt&&(this.state=yt,this.tick())},d.onFragLoaded=function(t){var e=this.fragCurrent,r=this.hls,n=this.levels,i=this.media,o=t.frag;if(this.state===Et&&e&&"main"===o.type&&o.level===e.level&&o.sn===e.sn){var a=t.stats,s=n[e.level],u=s.details;if(this.bitrateTest=!1,this.stats=a,c.logger.log("Loaded "+e.sn+" of ["+u.startSN+" ,"+u.endSN+"],level "+e.level),o.bitrateTest&&r.nextLoadLevel)this.state=yt,this.startFragRequested=!1,a.tparsed=a.tbuffered=window.performance.now(),r.trigger(l.default.FRAG_BUFFERED,{stats:a,frag:e,id:"main"}),this.tick();else if("initSegment"===o.sn)this.state=yt,a.tparsed=a.tbuffered=window.performance.now(),u.initSegment.data=t.payload,r.trigger(l.default.FRAG_BUFFERED,{stats:a,frag:e,id:"main"}),this.tick();else{c.logger.log("Parsing "+e.sn+" of ["+u.startSN+" ,"+u.endSN+"],level "+e.level+", cc "+e.cc),this.state=St,this.pendingBuffering=!0,this.appended=!1,o.bitrateTest&&(o.bitrateTest=!1,this.fragmentTracker.onFragLoaded({frag:o}));var f=!(i&&i.seeking)&&(u.PTSKnown||!u.live),d=u.initSegment?u.initSegment.data:[],h=this._getAudioCodec(s);(this.demuxer=this.demuxer||new J(this.hls,"main")).push(t.payload,d,h,s.videoCodec,e,u.totalduration,f)}}this.fragLoadError=0},d.onFragParsingInitSegment=function(t){var e=this.fragCurrent,r=t.frag;if(e&&"main"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===St){var n,i,o=t.tracks;if(this.audioOnly=o.audio&&!o.video,this.altAudio&&!this.audioOnly&&delete o.audio,i=o.audio){var a=this.levels[this.level].audioCodec,s=navigator.userAgent.toLowerCase();a&&this.audioCodecSwap&&(c.logger.log("swapping playlist audio codec"),a=-1!==a.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&1!==i.metadata.channelCount&&-1===s.indexOf("firefox")&&(a="mp4a.40.5"),-1!==s.indexOf("android")&&"audio/mpeg"!==i.container&&(a="mp4a.40.2",c.logger.log("Android: force audio codec to "+a)),i.levelCodec=a,i.id=t.id}for(n in(i=o.video)&&(i.levelCodec=this.levels[this.level].videoCodec,i.id=t.id),this.hls.trigger(l.default.BUFFER_CODECS,o),o){i=o[n],c.logger.log("main track:"+n+",container:"+i.container+",codecs[level/parsed]=["+i.levelCodec+"/"+i.codec+"]");var u=i.initSegment;u&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(l.default.BUFFER_APPENDING,{type:n,data:u,parent:"main",content:"initSegment"}))}this.tick()}},d.onFragParsingData=function(t){var e=this,r=this.fragCurrent,n=t.frag;if(r&&"main"===t.id&&n.sn===r.sn&&n.level===r.level&&("audio"!==t.type||!this.altAudio)&&this.state===St){var i=this.levels[this.level],o=r;if(Object(u.isFiniteNumber)(t.endPTS)||(t.endPTS=t.startPTS+r.duration,t.endDTS=t.startDTS+r.duration),!0===t.hasAudio&&o.addElementaryStream(g.AUDIO),!0===t.hasVideo&&o.addElementaryStream(g.VIDEO),c.logger.log("Parsed "+t.type+",PTS:["+t.startPTS.toFixed(3)+","+t.endPTS.toFixed(3)+"],DTS:["+t.startDTS.toFixed(3)+"/"+t.endDTS.toFixed(3)+"],nb:"+t.nb+",dropped:"+(t.dropped||0)),"video"===t.type)if(o.dropped=t.dropped,o.dropped)if(o.backtracked)c.logger.warn("Already backtracked on this fragment, appending with the gap",o.sn);else{var a=i.details;if(!a||o.sn!==a.startSN)return c.logger.warn("missing video frame(s), backtracking fragment",o.sn),this.fragmentTracker.removeFragment(o),o.backtracked=!0,this.nextLoadPosition=t.startPTS,this.state=yt,this.fragPrevious=o,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),void this.tick();c.logger.warn("missing video frame(s) on first frag, appending with gap",o.sn)}else o.backtracked=!1;var s=et(i.details,o,t.startPTS,t.endPTS,t.startDTS,t.endDTS),f=this.hls;f.trigger(l.default.LEVEL_PTS_UPDATED,{details:i.details,level:this.level,drift:s,type:t.type,start:t.startPTS,end:t.endPTS}),[t.data1,t.data2].forEach((function(r){r&&r.length&&e.state===St&&(e.appended=!0,e.pendingBuffering=!0,f.trigger(l.default.BUFFER_APPENDING,{type:t.type,data:r,parent:"main",content:"data"}))})),this.tick()}},d.onFragParsed=function(t){var e=this.fragCurrent,r=t.frag;e&&"main"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===St&&(this.stats.tparsed=window.performance.now(),this.state=_t,this._checkAppendedParsed())},d.onAudioTrackSwitching=function(t){var e=this.altAudio,r=!!t.url,n=t.id;if(!r){if(this.mediaBuffer!==this.media){c.logger.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var i=this.fragCurrent;i.loader&&(c.logger.log("switching to main audio track, cancel main fragment load"),i.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=yt}var o=this.hls;e&&o.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),o.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:n})}},d.onAudioTrackSwitched=function(t){var e=t.id,r=!!this.hls.audioTracks[e].url;if(r){var n=this.videoBuffer;n&&this.mediaBuffer!==n&&(c.logger.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=n)}this.altAudio=r,this.tick()},d.onBufferCreated=function(t){var e,r,n=t.tracks,i=!1;for(var o in n){var a=n[o];"main"===a.id?(r=o,e=a,"video"===o&&(this.videoBuffer=n[o].buffer)):i=!0}i&&e?(c.logger.log("alternate track found, use "+r+".buffered to schedule main fragment loading"),this.mediaBuffer=e.buffer):this.mediaBuffer=this.media},d.onBufferAppended=function(t){if("main"===t.parent){var e=this.state;e!==St&&e!==_t||(this.pendingBuffering=t.pending>0,this._checkAppendedParsed())}},d._checkAppendedParsed=function(){if(!(this.state!==_t||this.appended&&this.pendingBuffering)){var t=this.fragCurrent;if(t){var e=this.mediaBuffer?this.mediaBuffer:this.media;c.logger.log("main buffered : "+ot.toString(e.buffered)),this.fragPrevious=t;var r=this.stats;r.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*r.total/(r.tbuffered-r.tfirst)),this.hls.trigger(l.default.FRAG_BUFFERED,{stats:r,frag:t,id:"main"}),this.state=yt}(this.loadedmetadata||this.startPosition<=0)&&this.tick()}},d.onError=function(t){var e=t.frag||this.fragCurrent;if(!e||"main"===e.type){var r=!!this.media&&z.isBuffered(this.media,this.media.currentTime)&&z.isBuffered(this.media,this.media.currentTime+.5);switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:if(!t.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var n=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);c.logger.warn("mediaController: frag loading failed, retry in "+n+" ms"),this.retryDate=window.performance.now()+n,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=Tt}else c.logger.error("mediaController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=At;break;case s.ErrorDetails.LEVEL_LOAD_ERROR:case s.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==At&&(t.fatal?(this.state=At,c.logger.warn("streamController: "+t.details+",switch to "+this.state+" state ...")):t.levelRetry||this.state!==Pt||(this.state=yt));break;case s.ErrorDetails.BUFFER_FULL_ERROR:"main"!==t.parent||this.state!==St&&this.state!==_t||(r?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=yt):(c.logger.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)))}}},d._reduceMaxBufferLength=function(t){var e=this.config;return e.maxMaxBufferLength>=t&&(e.maxMaxBufferLength/=2,c.logger.warn("main:reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},d._checkBuffer=function(){var t=this.media;if(t&&0!==t.readyState){var e=(this.mediaBuffer?this.mediaBuffer:t).buffered;!this.loadedmetadata&&e.length?(this.loadedmetadata=!0,this._seekToStartPos()):this.immediateSwitch?this.immediateLevelSwitchEnd():this.gapController.poll(this.lastCurrentTime,e)}},d.onFragLoadEmergencyAborted=function(){this.state=yt,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},d.onBufferFlushed=function(){var t=this.mediaBuffer?this.mediaBuffer:this.media;if(t){var e=this.audioOnly?g.AUDIO:g.VIDEO;this.fragmentTracker.detectEvictedFragments(e,t.buffered)}this.state=yt,this.fragPrevious=null},d.onLevelsUpdated=function(t){this.levels=t.levels},d.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},d._seekToStartPos=function(){var t=this.media,e=t.currentTime,r=this.startPosition;if(e!==r&&r>=0){if(t.seeking)return void c.logger.log("could not seek to "+r+", already seeking at "+e);var n=(t.buffered.length?t.buffered.start(0):0)-r;n>0&&n<this.config.maxBufferHole&&(c.logger.log("adjusting start position by "+n+" to match buffer start"),r+=n,this.startPosition=r),c.logger.log("seek to target start position "+r+" from current time "+e+". ready state "+t.readyState),t.currentTime=r}},d._getAudioCodec=function(t){var e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&(c.logger.log("swapping playlist audio codec"),e&&(e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5")),e},i=n,(a=[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,c.logger.log("main stream-controller: "+e+"->"+t),this.hls.trigger(l.default.STREAM_STATE_TRANSITION,{previousState:e,nextState:t})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var t=this.media;if(t){var e=this.getBufferedFrag(t.currentTime);if(e)return e.level}return-1}},{key:"nextBufferedFrag",get:function(){var t=this.media;return t?this.followingBufferedFrag(this.getBufferedFrag(t.currentTime)):null}},{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(t){this._liveSyncPosition=t}}])&&Rt(i.prototype,a),f&&Rt(i,f),n}(Ct);function It(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Mt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.MANIFEST_LOADED,l.default.LEVEL_LOADED,l.default.AUDIO_TRACK_SWITCHED,l.default.FRAG_LOADED,l.default.ERROR)||this).canload=!1,r.currentLevelIndex=null,r.manualLevelIndex=-1,r.timer=null,Dt=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,o,a,u=n.prototype;return u.onHandlerDestroying=function(){this.clearTimer(),this.manualLevelIndex=-1},u.clearTimer=function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)},u.startLoad=function(){var t=this._levels;this.canload=!0,this.levelRetryCount=0,t&&t.forEach((function(t){t.loadError=0;var e=t.details;e&&e.live&&(t.details=void 0)})),null!==this.timer&&this.loadLevel()},u.stopLoad=function(){this.canload=!1},u.onManifestLoaded=function(t){var e,r=[],n=[],i={},o=null,a=!1,u=!1;if(t.levels.forEach((function(t){var e=t.attrs;t.loadError=0,t.fragmentError=!1,a=a||!!t.videoCodec,u=u||!!t.audioCodec,Dt&&t.audioCodec&&-1!==t.audioCodec.indexOf("mp4a.40.34")&&(t.audioCodec=void 0),(o=i[t.bitrate])?o.url.push(t.url):(t.url=[t.url],t.urlId=0,i[t.bitrate]=t,r.push(t)),e&&(e.AUDIO&&Z(o||t,"audio",e.AUDIO),e.SUBTITLES&&Z(o||t,"text",e.SUBTITLES))})),a&&u&&(r=r.filter((function(t){return!!t.videoCodec}))),r=r.filter((function(t){var e=t.audioCodec,r=t.videoCodec;return(!e||k(e,"audio"))&&(!r||k(r,"video"))})),t.audioTracks&&(n=t.audioTracks.filter((function(t){return!t.audioCodec||k(t.audioCodec,"audio")}))).forEach((function(t,e){t.id=e})),r.length>0){e=r[0].bitrate,r.sort((function(t,e){return t.bitrate-e.bitrate})),this._levels=r;for(var f=0;f<r.length;f++)if(r[f].bitrate===e){this._firstLevel=f,c.logger.log("manifest loaded,"+r.length+" level(s) found, first bitrate:"+e);break}var d=u&&!a;this.hls.trigger(l.default.MANIFEST_PARSED,{levels:r,audioTracks:n,firstLevel:this._firstLevel,stats:t.stats,audio:u,video:a,altAudio:!d&&n.some((function(t){return!!t.url}))})}else this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in manifest"})},u.setLevelInternal=function(t){var e=this._levels,r=this.hls;if(t>=0&&t<e.length){if(this.clearTimer(),this.currentLevelIndex!==t){c.logger.log("switching to level "+t),this.currentLevelIndex=t;var n=e[t];n.level=t,r.trigger(l.default.LEVEL_SWITCHING,n)}var i=e[t],o=i.details;if(!o||o.live){var a=i.urlId;r.trigger(l.default.LEVEL_LOADING,{url:i.url[a],level:t,id:a})}}else r.trigger(l.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.LEVEL_SWITCH_ERROR,level:t,fatal:!1,reason:"invalid level idx"})},u.onError=function(t){if(t.fatal)t.type===s.ErrorTypes.NETWORK_ERROR&&this.clearTimer();else{var e,r=!1,n=!1;switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:e=t.frag.level,n=!0;break;case s.ErrorDetails.LEVEL_LOAD_ERROR:case s.ErrorDetails.LEVEL_LOAD_TIMEOUT:e=t.context.level,r=!0;break;case s.ErrorDetails.REMUX_ALLOC_ERROR:e=t.level,r=!0}void 0!==e&&this.recoverLevel(t,e,r,n)}},u.recoverLevel=function(t,e,r,n){var i,o,a,s=this,u=this.hls.config,l=t.details,f=this._levels[e];if(f.loadError++,f.fragmentError=n,r){if(!(this.levelRetryCount+1<=u.levelLoadingMaxRetry))return c.logger.error("level controller, cannot recover from "+l+" error"),this.currentLevelIndex=null,this.clearTimer(),void(t.fatal=!0);o=Math.min(Math.pow(2,this.levelRetryCount)*u.levelLoadingRetryDelay,u.levelLoadingMaxRetryTimeout),this.timer=setTimeout((function(){return s.loadLevel()}),o),t.levelRetry=!0,this.levelRetryCount++,c.logger.warn("level controller, "+l+", retry in "+o+" ms, current retry count is "+this.levelRetryCount)}(r||n)&&((i=f.url.length)>1&&f.loadError<i?(f.urlId=(f.urlId+1)%i,f.details=void 0,c.logger.warn("level controller, "+l+" for level "+e+": switching to redundant URL-id "+f.urlId)):-1===this.manualLevelIndex?(a=0===e?this._levels.length-1:e-1,c.logger.warn("level controller, "+l+": switch to "+a),this.hls.nextAutoLevel=this.currentLevelIndex=a):n&&(c.logger.warn("level controller, "+l+": reload a fragment"),this.currentLevelIndex=null))},u.onFragLoaded=function(t){var e=t.frag;if(void 0!==e&&"main"===e.type){var r=this._levels[e.level];void 0!==r&&(r.fragmentError=!1,r.loadError=0,this.levelRetryCount=0)}},u.onLevelLoaded=function(t){var e=this,r=t.level,n=t.details;if(r===this.currentLevelIndex){var i=this._levels[r];if(i.fragmentError||(i.loadError=0,this.levelRetryCount=0),n.live){var o=it(i.details,n,t.stats.trequest);c.logger.log("live playlist, reload in "+Math.round(o)+" ms"),this.timer=setTimeout((function(){return e.loadLevel()}),o)}else this.clearTimer()}},u.onAudioTrackSwitched=function(t){var e=this.hls.audioTracks[t.id].groupId,r=this.hls.levels[this.currentLevelIndex];if(r&&r.audioGroupIds){for(var n=-1,i=0;i<r.audioGroupIds.length;i++)if(r.audioGroupIds[i]===e){n=i;break}n!==r.urlId&&(r.urlId=n,this.startLoad())}},u.loadLevel=function(){if(c.logger.debug("call to loadLevel"),null!==this.currentLevelIndex&&this.canload){var t=this._levels[this.currentLevelIndex];if("object"==typeof t&&t.url.length>0){var e=this.currentLevelIndex,r=t.urlId,n=t.url[r];c.logger.log("Attempt loading level index "+e+" with URL-id "+r),this.hls.trigger(l.default.LEVEL_LOADING,{url:n,level:e,id:r})}}},u.removeLevel=function(t,e){var r=this.levels.filter((function(r,n){return n!==t||r.url.length>1&&void 0!==e&&(r.url=r.url.filter((function(t,r){return r!==e})),r.urlId=0,!0)})).map((function(t,e){var r=t.details;return r&&r.fragments&&r.fragments.forEach((function(t){t.level=e})),t}));this._levels=r,this.hls.trigger(l.default.LEVELS_UPDATED,{levels:r})},i=n,(o=[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;e&&(t=Math.min(t,e.length-1),this.currentLevelIndex===t&&e[t].details||this.setLevelInternal(t))}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}])&&It(i.prototype,o),a&&It(i,a),n}(d),Nt=r("./src/demux/id3.js");function jt(t,e){var r;try{r=new Event("addtrack")}catch(t){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=t,e.dispatchEvent(r)}function Bt(t){if(null==t?void 0:t.cues)for(;t.cues.length>0;)t.removeCue(t.cues[0])}var Ft=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.MEDIA_ATTACHED,l.default.MEDIA_DETACHING,l.default.FRAG_PARSING_METADATA,l.default.LIVE_BACK_BUFFER_REACHED)||this).id3Track=void 0,r.media=void 0,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.destroy=function(){d.prototype.destroy.call(this)},i.onMediaAttached=function(t){this.media=t.media,this.media},i.onMediaDetaching=function(){Bt(this.id3Track),this.id3Track=void 0,this.media=void 0},i.getID3Track=function(t){for(var e=0;e<t.length;e++){var r=t[e];if("metadata"===r.kind&&"id3"===r.label)return jt(r,this.media),r}return this.media.addTextTrack("metadata","id3")},i.onFragParsingMetadata=function(t){var e=t.frag,r=t.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var n=window.WebKitDataCue||window.VTTCue||window.TextTrackCue,i=0;i<r.length;i++){var o=Nt.default.getID3Frames(r[i].data);if(o){var a=Math.max(r[i].pts,0),s=i<r.length-1?r[i+1].pts:e.endPTS;s||(s=e.start+e.duration),s-a<=0&&(s=a+.25);for(var u=0;u<o.length;u++){var l=o[u];if(!Nt.default.isTimeStampFrame(l)){var c=new n(a,s,"");c.value=l,this.id3Track.addCue(c)}}}}},i.onLiveBackBufferReached=function(t){var e=t.bufferEnd,r=this.id3Track;if(r&&r.cues&&r.cues.length){var n=function(t,e){if(e<t[0].endTime)return t[0];if(e>t[t.length-1].endTime)return t[t.length-1];for(var r=0,n=t.length-1;r<=n;){var i=Math.floor((n+r)/2);if(e<t[i].endTime)n=i-1;else{if(!(e>t[i].endTime))return t[i];r=i+1}}return t[r].endTime-e<e-t[n].endTime?t[r]:t[n]}(r.cues,e);if(n)for(;r.cues[0]!==n;)r.removeCue(r.cues[0])}},n}(d),Ut=function(){function t(t){this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=0,this.totalWeight_=0}var e=t.prototype;return e.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/t}return this.estimate_},t}(),Ht=function(){function t(t,e,r,n){this.hls=void 0,this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.hls=t,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Ut(e),this.fast_=new Ut(r)}var e=t.prototype;return e.sample=function(t,e){var r=(t=Math.max(t,this.minDelayMs_))/1e3,n=8*e/r;this.fast_.sample(r,n),this.slow_.sample(r,n)},e.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.destroy=function(){},t}();function Vt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var zt=window.performance,Gt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.FRAG_LOADING,l.default.FRAG_LOADED,l.default.FRAG_BUFFERED,l.default.ERROR)||this).lastLoadedFragLevel=0,r._nextAutoLevel=-1,r.hls=e,r.timer=null,r._bwEstimator=null,r.onCheck=r._abandonRulesCheck.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r)),r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,o,a,f=n.prototype;return f.destroy=function(){this.clearTimer(),d.prototype.destroy.call(this)},f.onFragLoading=function(t){var e=t.frag;if("main"===e.type&&(this.timer||(this.fragCurrent=e,this.timer=setInterval(this.onCheck,100)),!this._bwEstimator)){var r,n,i=this.hls,o=i.config,a=e.level;i.levels[a].details.live?(r=o.abrEwmaFastLive,n=o.abrEwmaSlowLive):(r=o.abrEwmaFastVoD,n=o.abrEwmaSlowVoD),this._bwEstimator=new Ht(i,n,r,o.abrEwmaDefaultEstimate)}},f._abandonRulesCheck=function(){var t=this.hls,e=t.media,r=this.fragCurrent;if(r){var n=r.loader;if(!n||n.stats&&n.stats.aborted)return c.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),void(this._nextAutoLevel=-1);var i=n.stats;if(e&&i&&(!e.paused&&0!==e.playbackRate||!e.readyState)&&r.autoLevel&&r.level){var o=zt.now()-i.trequest,a=Math.abs(e.playbackRate);if(o>500*r.duration/a){var s=t.levels,u=Math.max(1,i.bw?i.bw/8:1e3*i.loaded/o),f=s[r.level];if(!f)return;var d=f.realBitrate?Math.max(f.realBitrate,f.bitrate):f.bitrate,h=i.total?i.total:Math.max(i.loaded,Math.round(r.duration*d/8)),p=e.currentTime,g=(h-i.loaded)/u,v=(z.bufferInfo(e,p,t.config.maxBufferHole).end-p)/a;if(v<2*r.duration/a&&g>v){var y,m=t.minAutoLevel;for(y=r.level-1;y>m;y--){var b=s[y].realBitrate?Math.max(s[y].realBitrate,s[y].bitrate):s[y].bitrate;if(r.duration*b/(6.4*u)<v)break}void 0<g&&(c.logger.warn("loading too slow, abort fragment loading and switch to level "+y+":fragLoadedDelay["+y+"]<fragLoadedDelay["+(r.level-1)+"];bufferStarvationDelay:"+(void 0).toFixed(1)+"<"+g.toFixed(1)+":"+v.toFixed(1)),t.nextLoadLevel=y,this._bwEstimator.sample(o,i.loaded),n.abort(),this.clearTimer(),t.trigger(l.default.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,stats:i}))}}}}},f.onFragLoaded=function(t){var e=t.frag;if("main"===e.type&&Object(u.isFiniteNumber)(e.sn)){if(this.clearTimer(),this.lastLoadedFragLevel=e.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var r=this.hls.levels[e.level],n=(r.loaded?r.loaded.bytes:0)+t.stats.loaded,i=(r.loaded?r.loaded.duration:0)+t.frag.duration;r.loaded={bytes:n,duration:i},r.realBitrate=Math.round(8*n/i)}if(t.frag.bitrateTest){var o=t.stats;o.tparsed=o.tbuffered=o.tload,this.onFragBuffered(t)}}},f.onFragBuffered=function(t){var e=t.stats,r=t.frag;if(!0!==e.aborted&&"main"===r.type&&Object(u.isFiniteNumber)(r.sn)&&(!r.bitrateTest||e.tload===e.tbuffered)){var n=e.tparsed-e.trequest;c.logger.log("latency/loading/parsing/append/kbps:"+Math.round(e.tfirst-e.trequest)+"/"+Math.round(e.tload-e.tfirst)+"/"+Math.round(e.tparsed-e.tload)+"/"+Math.round(e.tbuffered-e.tparsed)+"/"+Math.round(8*e.loaded/(e.tbuffered-e.trequest))),this._bwEstimator.sample(n,e.loaded),e.bwEstimate=this._bwEstimator.getEstimate(),r.bitrateTest?this.bitrateTestDelay=n/1e3:this.bitrateTestDelay=0}},f.onError=function(t){switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer()}},f.clearTimer=function(){clearInterval(this.timer),this.timer=null},f._findBestLevel=function(t,e,r,n,i,o,a,s,u){for(var l=i;l>=n;l--){var f=u[l];if(f){var d=f.details,h=d?d.totalduration/d.fragments.length:e,p=!!d&&d.live,g=void 0;g=l<=t?a*r:s*r;var v=u[l].realBitrate?Math.max(u[l].realBitrate,u[l].bitrate):u[l].bitrate,y=v*h/g;if(c.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+l+"/"+Math.round(g)+"/"+v+"/"+h+"/"+o+"/"+y),g>v&&(!y||p&&!this.bitrateTestDelay||y<o))return l}}return-1},i=n,(o=[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this._bwEstimator;if(!(-1===t||e&&e.canEstimate()))return t;var r=this._nextABRAutoLevel;return-1!==t&&(r=Math.min(t,r)),r},set:function(t){this._nextAutoLevel=t}},{key:"_nextABRAutoLevel",get:function(){var t=this.hls,e=t.maxAutoLevel,r=t.levels,n=t.config,i=t.minAutoLevel,o=t.media,a=this.lastLoadedFragLevel,s=this.fragCurrent?this.fragCurrent.duration:0,u=o?o.currentTime:0,l=o&&0!==o.playbackRate?Math.abs(o.playbackRate):1,f=this._bwEstimator?this._bwEstimator.getEstimate():n.abrEwmaDefaultEstimate,d=(z.bufferInfo(o,u,n.maxBufferHole).end-u)/l,h=this._findBestLevel(a,s,f,i,e,d,n.abrBandWidthFactor,n.abrBandWidthUpFactor,r);if(h>=0)return h;c.logger.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var p=s?Math.min(s,n.maxStarvationDelay):n.maxStarvationDelay,g=n.abrBandWidthFactor,v=n.abrBandWidthUpFactor;if(0===d){var y=this.bitrateTestDelay;y&&(p=(s?Math.min(s,n.maxLoadingDelay):n.maxLoadingDelay)-y,c.logger.trace("bitrate test took "+Math.round(1e3*y)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*p)+" ms"),g=v=1)}return h=this._findBestLevel(a,s,f,i,e,d+p,g,v,r),Math.max(h,0)}}])&&Vt(i.prototype,o),a&&Vt(i,a),n}(d),Wt=Y(),Kt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.MEDIA_ATTACHING,l.default.MEDIA_DETACHING,l.default.MANIFEST_PARSED,l.default.BUFFER_RESET,l.default.BUFFER_APPENDING,l.default.BUFFER_CODECS,l.default.BUFFER_EOS,l.default.BUFFER_FLUSHING,l.default.LEVEL_PTS_UPDATED,l.default.LEVEL_UPDATED)||this)._msDuration=null,r._levelDuration=null,r._levelTargetDuration=10,r._live=null,r._objectUrl=null,r._needsFlush=!1,r._needsEos=!1,r.config=void 0,r.audioTimestampOffset=void 0,r.bufferCodecEventsExpected=0,r._bufferCodecEventsTotal=0,r.media=null,r.mediaSource=null,r.segments=[],r.parent=void 0,r.appending=!1,r.appended=0,r.appendError=0,r.flushBufferCounter=0,r.tracks={},r.pendingTracks={},r.sourceBuffer={},r.flushRange=[],r._onMediaSourceOpen=function(){c.logger.log("media source opened"),r.hls.trigger(l.default.MEDIA_ATTACHED,{media:r.media});var t=r.mediaSource;t&&t.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},r._onMediaSourceClose=function(){c.logger.log("media source closed")},r._onMediaSourceEnded=function(){c.logger.log("media source ended")},r._onSBUpdateEnd=function(){if(r.audioTimestampOffset&&r.sourceBuffer.audio){var t=r.sourceBuffer.audio;c.logger.warn("change mpeg audio timestamp offset from "+t.timestampOffset+" to "+r.audioTimestampOffset),t.timestampOffset=r.audioTimestampOffset,delete r.audioTimestampOffset}r._needsFlush&&r.doFlush(),r._needsEos&&r.checkEos(),r.appending=!1;var e=r.parent,n=r.segments.reduce((function(t,r){return r.parent===e?t+1:t}),0),i={},o=r.sourceBuffer;for(var a in o){var s=o[a];if(!s)throw Error("handling source buffer update end error: source buffer for "+a+" uninitilized and unable to update buffered TimeRanges.");i[a]=s.buffered}r.hls.trigger(l.default.BUFFER_APPENDED,{parent:e,pending:n,timeRanges:i}),r._needsFlush||r.doAppending(),r.updateMediaElementDuration(),0===n&&r.flushLiveBackBuffer()},r._onSBUpdateError=function(t){c.logger.error("sourceBuffer error:",t),r.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1})},r.config=e.config,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.destroy=function(){d.prototype.destroy.call(this)},i.onLevelPtsUpdated=function(t){var e=t.type,r=this.tracks.audio;if("audio"===e&&r&&"audio/mpeg"===r.container){var n=this.sourceBuffer.audio;if(!n)throw Error("Level PTS Updated and source buffer for audio uninitalized");if(Math.abs(n.timestampOffset-t.start)>.1){var i=n.updating;try{n.abort()}catch(t){c.logger.warn("can not abort audio buffer: "+t)}i?this.audioTimestampOffset=t.start:(c.logger.warn("change mpeg audio timestamp offset from "+n.timestampOffset+" to "+t.start),n.timestampOffset=t.start)}}},i.onManifestParsed=function(t){var e=2;(t.audio&&!t.video||!t.altAudio)&&(e=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=e,c.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},i.onMediaAttaching=function(t){var e=this.media=t.media;if(e&&Wt){var r=this.mediaSource=new Wt;r.addEventListener("sourceopen",this._onMediaSourceOpen),r.addEventListener("sourceended",this._onMediaSourceEnded),r.addEventListener("sourceclose",this._onMediaSourceClose),e.src=window.URL.createObjectURL(r),this._objectUrl=e.src}},i.onMediaDetaching=function(){c.logger.log("media source detaching");var t=this.mediaSource;if(t){if("open"===t.readyState)try{t.endOfStream()}catch(t){c.logger.warn("onMediaDetaching:"+t.message+" while calling endOfStream")}t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.media&&(this._objectUrl&&window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):c.logger.warn("media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.hls.trigger(l.default.MEDIA_DETACHED)},i.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.pendingTracks,r=Object.keys(e).length;(r&&!t||2===r)&&(this.createSourceBuffers(e),this.pendingTracks={},this.doAppending())},i.onBufferReset=function(){var t=this.sourceBuffer;for(var e in t){var r=t[e];try{r&&(this.mediaSource&&this.mediaSource.removeSourceBuffer(r),r.removeEventListener("updateend",this._onSBUpdateEnd),r.removeEventListener("error",this._onSBUpdateError))}catch(t){}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},i.onBufferCodecs=function(t){var e=this;Object.keys(this.sourceBuffer).length||(Object.keys(t).forEach((function(r){e.pendingTracks[r]=t[r]})),this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},i.createSourceBuffers=function(t){var e=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(var n in t)if(!e[n]){var i=t[n];if(!i)throw Error("source buffer exists for track "+n+", however track does not");var o=i.levelCodec||i.codec,a=i.container+";codecs="+o;c.logger.log("creating sourceBuffer("+a+")");try{var u=e[n]=r.addSourceBuffer(a);u.addEventListener("updateend",this._onSBUpdateEnd),u.addEventListener("error",this._onSBUpdateError),this.tracks[n]={buffer:u,codec:o,id:i.id,container:i.container,levelCodec:i.levelCodec}}catch(t){c.logger.error("error while trying to add sourceBuffer:"+t.message),this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:t,mimeType:a})}}this.hls.trigger(l.default.BUFFER_CREATED,{tracks:this.tracks})},i.onBufferAppending=function(t){this._needsFlush||(this.segments?this.segments.push(t):this.segments=[t],this.doAppending())},i.onBufferEos=function(t){for(var e in this.sourceBuffer)if(!t.type||t.type===e){var r=this.sourceBuffer[e];r&&!r.ended&&(r.ended=!0,c.logger.log(e+" sourceBuffer now EOS"))}this.checkEos()},i.checkEos=function(){var t=this.sourceBuffer,e=this.mediaSource;if(e&&"open"===e.readyState){for(var r in t){var n=t[r];if(n){if(!n.ended)return;if(n.updating)return void(this._needsEos=!0)}}c.logger.log("all media data are available, signal endOfStream() to MediaSource and stop loading fragment");try{e.endOfStream()}catch(t){c.logger.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1}else this._needsEos=!1},i.onBufferFlushing=function(t){t.type?this.flushRange.push({start:t.startOffset,end:t.endOffset,type:t.type}):(this.flushRange.push({start:t.startOffset,end:t.endOffset,type:"video"}),this.flushRange.push({start:t.startOffset,end:t.endOffset,type:"audio"})),this.flushBufferCounter=0,this.doFlush()},i.flushLiveBackBuffer=function(){if(this._live){var t=this.config.liveBackBufferLength;if(isFinite(t)&&!(t<0))if(this.media)for(var e=this.media.currentTime,r=this.sourceBuffer,n=Object.keys(r),i=e-Math.max(t,this._levelTargetDuration),o=n.length-1;o>=0;o--){var a=n[o],s=r[a];if(s){var u=s.buffered;u.length>0&&i>u.start(0)&&this.removeBufferRange(a,s,0,i)&&this.hls.trigger(l.default.LIVE_BACK_BUFFER_REACHED,{bufferEnd:i})}}else c.logger.error("flushLiveBackBuffer called without attaching media")}},i.onLevelUpdated=function(t){var e=t.details;e.fragments.length>0&&(this._levelDuration=e.totalduration+e.fragments[0].start,this._levelTargetDuration=e.averagetargetduration||e.targetduration||10,this._live=e.live,this.updateMediaElementDuration())},i.updateMediaElementDuration=function(){var t,e=this.config;if(null!==this._levelDuration&&this.media&&this.mediaSource&&this.sourceBuffer&&0!==this.media.readyState&&"open"===this.mediaSource.readyState){for(var r in this.sourceBuffer){var n=this.sourceBuffer[r];if(n&&!0===n.updating)return}t=this.media.duration,null===this._msDuration&&(this._msDuration=this.mediaSource.duration),!0===this._live&&!0===e.liveDurationInfinity?(c.logger.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>t||!Object(u.isFiniteNumber)(t))&&(c.logger.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},i.doFlush=function(){for(;this.flushRange.length;){var t=this.flushRange[0];if(!this.flushBuffer(t.start,t.end,t.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var e=0,r=this.sourceBuffer;try{for(var n in r){var i=r[n];i&&(e+=i.buffered.length)}}catch(t){c.logger.error("error while accessing sourceBuffer.buffered")}this.appended=e,this.hls.trigger(l.default.BUFFER_FLUSHED)}},i.doAppending=function(){var t=this.config,e=this.hls,r=this.segments,n=this.sourceBuffer;if(Object.keys(n).length){if(!this.media||this.media.error)return this.segments=[],void c.logger.error("trying to append although a media error occured, flush segment and abort");if(!this.appending){var i=r.shift();if(i)try{var o=n[i.type];if(!o)return void this._onSBUpdateEnd();if(o.updating)return void r.unshift(i);o.ended=!1,this.parent=i.parent,o.appendBuffer(i.data),this.appendError=0,this.appended++,this.appending=!0}catch(n){c.logger.error("error while trying to append buffer:"+n.message),r.unshift(i);var a={type:s.ErrorTypes.MEDIA_ERROR,parent:i.parent,details:"",fatal:!1};22===n.code?(this.segments=[],a.details=s.ErrorDetails.BUFFER_FULL_ERROR):(this.appendError++,a.details=s.ErrorDetails.BUFFER_APPEND_ERROR,this.appendError>t.appendErrorMaxRetry&&(c.logger.log("fail "+t.appendErrorMaxRetry+" times to append segment in sourceBuffer"),this.segments=[],a.fatal=!0)),e.trigger(l.default.ERROR,a)}}}},i.flushBuffer=function(t,e,r){var n=this.sourceBuffer;if(!Object.keys(n).length)return!0;var i="null";if(this.media&&(i=this.media.currentTime.toFixed(3)),c.logger.log("flushBuffer,pos/start/end: "+i+"/"+t+"/"+e),this.flushBufferCounter>=this.appended)return c.logger.warn("abort flushing too many retries"),!0;var o=n[r];if(o){if(o.ended=!1,o.updating)return c.logger.warn("cannot flush, sb updating in progress"),!1;if(this.removeBufferRange(r,o,t,e))return this.flushBufferCounter++,!1}return c.logger.log("buffer flushed"),!0},i.removeBufferRange=function(t,e,r,n){try{for(var i=0;i<e.buffered.length;i++){var o=e.buffered.start(i),a=e.buffered.end(i),s=Math.max(o,r),u=Math.min(a,n);if(Math.min(u,a)-s>.5){var l="null";return this.media&&(l=this.media.currentTime.toString()),c.logger.log("sb remove "+t+" ["+s+","+u+"], of ["+o+","+a+"], pos:"+l),e.remove(s,u),!0}}}catch(t){c.logger.warn("removeBufferRange failed",t)}return!1},n}(d);function Yt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Xt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.FPS_DROP_LEVEL_CAPPING,l.default.MEDIA_ATTACHING,l.default.MANIFEST_PARSED,l.default.LEVELS_UPDATED,l.default.BUFFER_CODECS,l.default.MEDIA_DETACHING)||this).autoLevelCapping=Number.POSITIVE_INFINITY,r.firstLevel=null,r.levels=[],r.media=null,r.restrictedLevels=[],r.timer=null,r.clientRect=null,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,o,a,s=n.prototype;return s.destroy=function(){this.hls.config.capLevelToPlayerSize&&(this.media=null,this.clientRect=null,this.stopCapping())},s.onFpsDropLevelCapping=function(t){n.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(t.droppedLevel)},s.onMediaAttaching=function(t){this.media=t.media instanceof window.HTMLVideoElement?t.media:null},s.onManifestParsed=function(t){var e=this.hls;this.restrictedLevels=[],this.levels=t.levels,this.firstLevel=t.firstLevel,e.config.capLevelToPlayerSize&&t.video&&this.startCapping()},s.onBufferCodecs=function(t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()},s.onLevelsUpdated=function(t){this.levels=t.levels},s.onMediaDetaching=function(){this.stopCapping()},s.detectPlayerSize=function(){if(this.media){var t=this.levels?this.levels.length:0;if(t){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t-1),e.autoLevelCapping>this.autoLevelCapping&&e.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},s.getMaxLevel=function(t){var e=this;if(!this.levels)return-1;var r=this.levels.filter((function(r,i){return n.isLevelAllowed(i,e.restrictedLevels)&&i<=t}));return this.clientRect=null,n.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)},s.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},s.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},s.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var r=t.getBoundingClientRect();e.width=r.width,e.height=r.height,e.width||e.height||(e.width=r.right-r.left||t.width||0,e.height=r.bottom-r.top||t.height||0)}return this.clientRect=e,e},n.isLevelAllowed=function(t,e){return void 0===e&&(e=[]),-1===e.indexOf(t)},n.getMaxLevelByMediaSize=function(t,e,r){if(!t||t&&!t.length)return-1;for(var n,i,o=t.length-1,a=0;a<t.length;a+=1){var s=t[a];if((s.width>=e||s.height>=r)&&(n=s,!(i=t[a+1])||n.width!==i.width||n.height!==i.height)){o=a;break}}return o},i=n,a=[{key:"contentScaleFactor",get:function(){var t=1;try{t=window.devicePixelRatio}catch(t){}return t}}],(o=[{key:"mediaWidth",get:function(){return this.getDimensions().width*n.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*n.contentScaleFactor}}])&&Yt(i.prototype,o),a&&Yt(i,a),n}(d),qt=window.performance,$t=function(t){var e,r;function n(e){return t.call(this,e,l.default.MEDIA_ATTACHING)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},i.onMediaAttaching=function(t){var e=this.hls.config;e.capLevelOnFPSDrop&&("function"==typeof(this.video=t.media instanceof window.HTMLVideoElement?t.media:null).getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod))},i.checkFPS=function(t,e,r){var n=qt.now();if(e){if(this.lastTime){var i=n-this.lastTime,o=r-this.lastDroppedFrames,a=e-this.lastDecodedFrames,s=1e3*o/i,u=this.hls;if(u.trigger(l.default.FPS_DROP,{currentDropped:o,currentDecoded:a,totalDroppedFrames:r}),s>0&&o>u.config.fpsDroppedMonitoringThreshold*a){var f=u.currentLevel;c.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+f),f>0&&(-1===u.autoLevelCapping||u.autoLevelCapping>=f)&&(f-=1,u.trigger(l.default.FPS_DROP_LEVEL_CAPPING,{level:f,droppedLevel:u.currentLevel}),u.autoLevelCapping=f,u.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=r,this.lastDecodedFrames=e}},i.checkFPSInterval=function(){var t=this.video;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},n}(d),Qt=function(){function t(t){t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}var e=t.prototype;return e.destroy=function(){this.abort(),this.loader=null},e.abort=function(){var t=this.loader;t&&4!==t.readyState&&(this.stats.aborted=!0,t.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},e.load=function(t,e,r){this.context=t,this.config=e,this.callbacks=r,this.stats={trequest:window.performance.now(),retry:0},this.retryDelay=e.retryDelay,this.loadInternal()},e.loadInternal=function(){var t,e=this.context;t=this.loader=new window.XMLHttpRequest;var r=this.stats;r.tfirst=0,r.loaded=0;var n=this.xhrSetup;try{if(n)try{n(t,e.url)}catch(r){t.open("GET",e.url,!0),n(t,e.url)}t.readyState||t.open("GET",e.url,!0)}catch(r){return void this.callbacks.onError({code:t.status,text:r.message},e,t)}e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),t.send()},e.readystatechange=function(t){var e=t.currentTarget,r=e.readyState,n=this.stats,i=this.context,o=this.config;if(!n.aborted&&r>=2)if(window.clearTimeout(this.requestTimeout),0===n.tfirst&&(n.tfirst=Math.max(window.performance.now(),n.trequest)),4===r){var a=e.status;if(a>=200&&a<300){var s,u;n.tload=Math.max(n.tfirst,window.performance.now()),u="arraybuffer"===i.responseType?(s=e.response).byteLength:(s=e.responseText).length,n.loaded=n.total=u;var l={url:e.responseURL,data:s};this.callbacks.onSuccess(l,n,i,e)}else n.retry>=o.maxRetry||a>=400&&a<499?(c.logger.error(a+" while loading "+i.url),this.callbacks.onError({code:a,text:e.statusText},i,e)):(c.logger.warn(a+" while loading "+i.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,o.maxRetryDelay),n.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),o.timeout)},e.loadtimeout=function(){c.logger.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},e.loadprogress=function(t){var e=t.currentTarget,r=this.stats;r.loaded=t.loaded,t.lengthComputable&&(r.total=t.total);var n=this.callbacks.onProgress;n&&n(r,this.context,null,e)},t}();function Jt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Zt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.MANIFEST_LOADING,l.default.MANIFEST_PARSED,l.default.AUDIO_TRACK_LOADED,l.default.AUDIO_TRACK_SWITCHED,l.default.LEVEL_LOADED,l.default.ERROR)||this)._trackId=-1,r._selectDefaultTrack=!0,r.tracks=[],r.trackIdBlacklist=Object.create(null),r.audioGroupId=null,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,o,a,u=n.prototype;return u.onManifestLoading=function(){this.tracks=[],this._trackId=-1,this._selectDefaultTrack=!0},u.onManifestParsed=function(t){var e=this.tracks=t.audioTracks||[];this.hls.trigger(l.default.AUDIO_TRACKS_UPDATED,{audioTracks:e}),this._selectAudioGroup(this.hls.nextLoadLevel)},u.onAudioTrackLoaded=function(t){if(t.id>=this.tracks.length)c.logger.warn("Invalid audio track id:",t.id);else{if(c.logger.log("audioTrack "+t.id+" loaded"),this.tracks[t.id].details=t.details,t.details.live&&!this.hasInterval()){var e=1e3*t.details.targetduration;this.setInterval(e)}!t.details.live&&this.hasInterval()&&this.clearInterval()}},u.onAudioTrackSwitched=function(t){var e=this.tracks[t.id].groupId;e&&this.audioGroupId!==e&&(this.audioGroupId=e)},u.onLevelLoaded=function(t){this._selectAudioGroup(t.level)},u.onError=function(t){t.type===s.ErrorTypes.NETWORK_ERROR&&(t.fatal&&this.clearInterval(),t.details===s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&(c.logger.warn("Network failure on audio-track id:",t.context.id),this._handleLoadError()))},u._setAudioTrack=function(t){if(this._trackId===t&&this.tracks[this._trackId].details)c.logger.debug("Same id as current audio-track passed, and track details available -> no-op");else if(t<0||t>=this.tracks.length)c.logger.warn("Invalid id passed to audio-track controller");else{var e=this.tracks[t];c.logger.log("Now switching to audio-track index "+t),this.clearInterval(),this._trackId=t;var r=e.url,n=e.type,i=e.id;this.hls.trigger(l.default.AUDIO_TRACK_SWITCHING,{id:i,type:n,url:r}),this._loadTrackDetailsIfNeeded(e)}},u.doTick=function(){this._updateTrack(this._trackId)},u._selectAudioGroup=function(t){var e=this.hls.levels[t];if(e&&e.audioGroupIds){var r=e.audioGroupIds[e.urlId];this.audioGroupId!==r&&(this.audioGroupId=r,this._selectInitialAudioTrack())}},u._selectInitialAudioTrack=function(){var t=this,e=this.tracks;if(e.length){var r=this.tracks[this._trackId],n=null;if(r&&(n=r.name),this._selectDefaultTrack){var i=e.filter((function(t){return t.default}));i.length?e=i:c.logger.warn("No default audio tracks defined")}var o=!1,a=function(){e.forEach((function(e){o||t.audioGroupId&&e.groupId!==t.audioGroupId||n&&n!==e.name||(t._setAudioTrack(e.id),o=!0)}))};a(),o||(n=null,a()),o||(c.logger.error("No track found for running audio group-ID: "+this.audioGroupId),this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))}},u._needsTrackLoading=function(t){var e=t.details,r=t.url;return!(e&&!e.live||!r)},u._loadTrackDetailsIfNeeded=function(t){if(this._needsTrackLoading(t)){var e=t.url,r=t.id;c.logger.log("loading audio-track playlist for id: "+r),this.hls.trigger(l.default.AUDIO_TRACK_LOADING,{url:e,id:r})}},u._updateTrack=function(t){if(!(t<0||t>=this.tracks.length)){this.clearInterval(),this._trackId=t,c.logger.log("trying to update audio-track "+t);var e=this.tracks[t];this._loadTrackDetailsIfNeeded(e)}},u._handleLoadError=function(){this.trackIdBlacklist[this._trackId]=!0;var t=this._trackId,e=this.tracks[t],r=e.name,n=e.language,i=e.groupId;c.logger.warn("Loading failed on audio track id: "+t+", group-id: "+i+', name/language: "'+r+'" / "'+n+'"');for(var o=t,a=0;a<this.tracks.length;a++)if(!this.trackIdBlacklist[a]&&this.tracks[a].name===r){o=a;break}o!==t?(c.logger.log("Attempting audio-track fallback id:",o,"group-id:",this.tracks[o].groupId),this._setAudioTrack(o)):c.logger.warn('No fallback audio-track found for name/language: "'+r+'" / "'+n+'"')},i=n,(o=[{key:"audioTracks",get:function(){return this.tracks}},{key:"audioTrack",get:function(){return this._trackId},set:function(t){this._setAudioTrack(t),this._selectDefaultTrack=!1}}])&&Jt(i.prototype,o),a&&Jt(i,a),n}(pt);function te(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var ee=window.performance,re=function(t){var e,r;function n(e,r){var n;return(n=t.call(this,e,l.default.MEDIA_ATTACHED,l.default.MEDIA_DETACHING,l.default.AUDIO_TRACKS_UPDATED,l.default.AUDIO_TRACK_SWITCHING,l.default.AUDIO_TRACK_LOADED,l.default.KEY_LOADED,l.default.FRAG_LOADED,l.default.FRAG_PARSING_INIT_SEGMENT,l.default.FRAG_PARSING_DATA,l.default.FRAG_PARSED,l.default.ERROR,l.default.BUFFER_RESET,l.default.BUFFER_CREATED,l.default.BUFFER_APPENDED,l.default.BUFFER_FLUSHED,l.default.INIT_PTS_FOUND)||this).fragmentTracker=r,n.config=e.config,n.audioCodecSwap=!1,n._state=gt,n.initPTS=[],n.waitingFragment=null,n.videoTrackCC=null,n.waitingVideoCC=null,n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,o,a,f=n.prototype;return f.onInitPtsFound=function(t){var e=t.id,r=t.frag.cc,n=t.initPTS;"main"===e&&(this.initPTS[r]=n,this.videoTrackCC=r,c.logger.log("InitPTS for cc: "+r+" found from main: "+n),this.state===Ot&&this.tick())},f.startLoad=function(t){if(this.tracks){var e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),this.fragLoadError=0,e>0&&-1===t?(c.logger.log("audio:override startPosition with lastCurrentTime @"+e.toFixed(3)),this.state=yt):(this.lastCurrentTime=this.startPosition?this.startPosition:t,this.state=vt),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else this.startPosition=t,this.state=gt},f.doTick=function(){var t,e,r,n=this.hls,i=n.config;switch(this.state){case At:case mt:case kt:break;case vt:this.state=wt,this.loadedmetadata=!1;break;case yt:var o=this.tracks;if(!o)break;if(!this.media&&(this.startFragRequested||!i.startFragPrefetch))break;if(this.loadedmetadata)t=this.media.currentTime;else if(void 0===(t=this.nextLoadPosition))break;var a=this.mediaBuffer?this.mediaBuffer:this.media,s=this.videoBuffer?this.videoBuffer:this.media,f=t<i.maxBufferHole?Math.max(2,i.maxBufferHole):i.maxBufferHole,d=z.bufferInfo(a,t,f),h=z.bufferInfo(s,t,f),p=d.len,g=d.end,v=this.fragPrevious,y=Math.min(i.maxBufferLength,i.maxMaxBufferLength),m=Math.max(y,h.len),b=this.audioSwitch,E=this.trackId;if((p<m||b)&&E<o.length){if(void 0===(r=o[E].details)){this.state=wt;break}if(!b&&this._streamEnded(d,r))return this.hls.trigger(l.default.BUFFER_EOS,{type:"audio"}),void(this.state=xt);var T,w=r.fragments,S=w.length,_=w[0].start,k=w[S-1].start+w[S-1].duration;if(b)if(r.live&&!r.PTSKnown)c.logger.log("switching audiotrack, live stream, unknown PTS,load first fragment"),g=0;else if(g=t,r.PTSKnown&&t<_){if(!(d.end>_||d.nextStart))return;c.logger.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=_+.05}if(r.initSegment&&!r.initSegment.data)T=r.initSegment;else if(g<=_){if(T=w[0],null!==this.videoTrackCC&&T.cc!==this.videoTrackCC&&(T=function(t,e){return V.search(t,(function(t){return t.cc<e?1:t.cc>e?-1:0}))}(w,this.videoTrackCC)),r.live&&T.loadIdx&&T.loadIdx===this.fragLoadIdx){var x=d.nextStart?d.nextStart:_;return c.logger.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(x+.05)),void(this.media.currentTime=x+.05)}}else{var A,O=i.maxFragLookUpTolerance,P=v?w[v.sn-w[0].sn+1]:void 0;g<k?(g>k-O&&(O=0),A=P&&!ct(g,O,P)?P:V.search(w,(function(t){return ct(g,O,t)}))):A=w[S-1],A&&(T=A,_=A.start,v&&T.level===v.level&&T.sn===v.sn&&(T.sn<r.endSN?(T=w[T.sn+1-r.startSN],this.fragmentTracker.getState(T)!==U&&c.logger.log("SN just loaded, load next one: "+T.sn)):T=null))}T&&(T.encrypted?(c.logger.log("Loading key for "+T.sn+" of ["+r.startSN+" ,"+r.endSN+"],track "+E),this.state=bt,n.trigger(l.default.KEY_LOADING,{frag:T})):(this.fragCurrent=T,(b||this.fragmentTracker.getState(T)===j)&&(c.logger.log("Loading "+T.sn+", cc: "+T.cc+" of ["+r.startSN+" ,"+r.endSN+"],track "+E+", "+(this.loadedmetadata?"currentTime":"nextLoadPosition")+": "+t+", bufferEnd: "+g.toFixed(3)),"initSegment"!==T.sn&&(this.startFragRequested=!0),Object(u.isFiniteNumber)(T.sn)&&(this.nextLoadPosition=T.start+T.duration),n.trigger(l.default.FRAG_LOADING,{frag:T}),this.state=Et)))}break;case wt:(e=this.tracks[this.trackId])&&e.details&&(this.state=yt);break;case Tt:var C=ee.now(),R=this.retryDate,D=(a=this.media)&&a.seeking;(!R||C>=R||D)&&(c.logger.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=yt);break;case Ot:var L=this.waitingFragment;if(L){var I=L.frag.cc;if(void 0!==this.initPTS[I])this.waitingFragment=null,this.state=Et,this.onFragLoaded(L);else if(this.videoTrackCC!==this.waitingVideoCC)c.logger.log("Waiting fragment cc ("+I+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var M=z.bufferInfo(this.mediaBuffer,this.media.currentTime,i.maxBufferHole);ct(M.end,i.maxFragLookUpTolerance,L.frag)<0&&(c.logger.log("Waiting fragment cc ("+I+") @ "+L.frag.start+" cancelled because another fragment at "+M.end+" is needed"),this.clearWaitingFragment())}}else this.state=yt}},f.clearWaitingFragment=function(){var t=this.waitingFragment;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingFragment=null,this.waitingVideoCC=null,this.state=yt)},f.onMediaAttached=function(t){var e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),e.addEventListener("seeking",this.onvseeking),e.addEventListener("ended",this.onvended);var r=this.config;this.tracks&&r.autoStartLoad&&this.startLoad(r.startPosition)},f.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(c.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},f.onAudioTracksUpdated=function(t){c.logger.log("audio tracks updated"),this.tracks=t.audioTracks},f.onAudioTrackSwitching=function(t){var e=!!t.url;this.trackId=t.id,this.fragCurrent=null,this.clearWaitingFragment(),this.state=mt,e?this.setInterval(100):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),e&&(this.audioSwitch=!0,this.state=yt),this.tick()},f.onAudioTrackLoaded=function(t){var e=t.details,r=t.id,n=this.tracks[r],i=n.details,o=e.totalduration,a=0;if(c.logger.log("track "+r+" loaded ["+e.startSN+","+e.endSN+"],duration:"+o),e.live||i&&i.live?i&&e.fragments.length>0?(rt(i,e),a=e.fragments[0].start,e.PTSKnown?c.logger.log("live audio playlist sliding:"+a.toFixed(3)):c.logger.log("live audio playlist - outdated PTS, unknown sliding")):(e.PTSKnown=!1,c.logger.log("live audio playlist - first load, unknown sliding")):e.PTSKnown=!1,n.details=e,!this.startFragRequested){if(-1===this.startPosition){var s=e.startTimeOffset;Object(u.isFiniteNumber)(s)?(c.logger.log("start time offset found in playlist, adjust startPosition to "+s),this.startPosition=s):e.live?(this.startPosition=this.computeLivePosition(a,e),c.logger.log("compute startPosition for audio-track to "+this.startPosition)):this.startPosition=0}this.nextLoadPosition=this.startPosition}this.state===wt&&(this.state=yt),this.tick()},f.onKeyLoaded=function(){this.state===bt&&(this.state=yt,this.tick())},f.onFragLoaded=function(t){var e=this.fragCurrent,r=t.frag;if(this.state===Et&&e&&"audio"===r.type&&r.level===e.level&&r.sn===e.sn){var n=this.tracks[this.trackId],i=n.details,o=i.totalduration,a=e.level,s=e.sn,u=e.cc,f=this.config.defaultAudioCodec||n.audioCodec||"mp4a.40.2",d=this.stats=t.stats;if("initSegment"===s)this.state=yt,d.tparsed=d.tbuffered=ee.now(),i.initSegment.data=t.payload,this.hls.trigger(l.default.FRAG_BUFFERED,{stats:d,frag:e,id:"audio"}),this.tick();else{this.state=St,this.appended=!1,this.demuxer||(this.demuxer=new J(this.hls,"audio"));var h=this.initPTS[u],p=i.initSegment?i.initSegment.data:[];void 0!==h?(this.pendingBuffering=!0,c.logger.log("Demuxing "+s+" of ["+i.startSN+" ,"+i.endSN+"],track "+a),this.demuxer.push(t.payload,p,f,null,e,o,!1,h)):(c.logger.log("Unknown video PTS for cc "+u+", waiting for video PTS before demuxing audio frag "+s+" of ["+i.startSN+" ,"+i.endSN+"],track "+a),this.waitingFragment=t,this.waitingVideoCC=this.videoTrackCC,this.state=Ot)}}this.fragLoadError=0},f.onFragParsingInitSegment=function(t){var e=this.fragCurrent,r=t.frag;if(e&&"audio"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===St){var n,i=t.tracks;if(i.video&&delete i.video,n=i.audio){n.levelCodec=n.codec,n.id=t.id,this.hls.trigger(l.default.BUFFER_CODECS,i),c.logger.log("audio track:audio,container:"+n.container+",codecs[level/parsed]=["+n.levelCodec+"/"+n.codec+"]");var o=n.initSegment;if(o){var a={type:"audio",data:o,parent:"audio",content:"initSegment"};this.audioSwitch?this.pendingData=[a]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(l.default.BUFFER_APPENDING,a))}this.tick()}}},f.onFragParsingData=function(t){var e=this,r=this.fragCurrent,n=t.frag;if(r&&"audio"===t.id&&"audio"===t.type&&n.sn===r.sn&&n.level===r.level&&this.state===St){var i=this.trackId,o=this.tracks[i],a=this.hls;Object(u.isFiniteNumber)(t.endPTS)||(t.endPTS=t.startPTS+r.duration,t.endDTS=t.startDTS+r.duration),r.addElementaryStream(g.AUDIO),c.logger.log("parsed "+t.type+",PTS:["+t.startPTS.toFixed(3)+","+t.endPTS.toFixed(3)+"],DTS:["+t.startDTS.toFixed(3)+"/"+t.endDTS.toFixed(3)+"],nb:"+t.nb),et(o.details,r,t.startPTS,t.endPTS);var f=this.media,d=!1;if(this.audioSwitch)if(f&&f.readyState){var h=f.currentTime;c.logger.log("switching audio track : currentTime:"+h),h>=t.startPTS&&(c.logger.log("switching audio track : flushing all audio"),this.state=kt,a.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),d=!0,this.audioSwitch=!1,a.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:i}))}else this.audioSwitch=!1,a.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:i});var p=this.pendingData;if(!p)return c.logger.warn("Apparently attempt to enqueue media payload without codec initialization data upfront"),void a.trigger(l.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:null,fatal:!0});this.audioSwitch||([t.data1,t.data2].forEach((function(e){e&&e.length&&p.push({type:t.type,data:e,parent:"audio",content:"data"})})),!d&&p.length&&(p.forEach((function(t){e.state===St&&(e.pendingBuffering=!0,e.hls.trigger(l.default.BUFFER_APPENDING,t))})),this.pendingData=[],this.appended=!0)),this.tick()}},f.onFragParsed=function(t){var e=this.fragCurrent,r=t.frag;e&&"audio"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===St&&(this.stats.tparsed=ee.now(),this.state=_t,this._checkAppendedParsed())},f.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},f.onBufferCreated=function(t){var e=t.tracks.audio;e&&(this.mediaBuffer=e.buffer,this.loadedmetadata=!0),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer)},f.onBufferAppended=function(t){if("audio"===t.parent){var e=this.state;e!==St&&e!==_t||(this.pendingBuffering=t.pending>0,this._checkAppendedParsed())}},f._checkAppendedParsed=function(){if(!(this.state!==_t||this.appended&&this.pendingBuffering)){var t=this.fragCurrent,e=this.stats,r=this.hls;if(t){this.fragPrevious=t,e.tbuffered=ee.now(),r.trigger(l.default.FRAG_BUFFERED,{stats:e,frag:t,id:"audio"});var n=this.mediaBuffer?this.mediaBuffer:this.media;n&&c.logger.log("audio buffered : "+ot.toString(n.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,r.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=yt}this.tick()}},f.onError=function(t){var e=t.frag;if(!e||"audio"===e.type)switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:var r=t.frag;if(r&&"audio"!==r.type)break;if(!t.fatal){var n=this.fragLoadError;n?n++:n=1;var i=this.config;if(n<=i.fragLoadingMaxRetry){this.fragLoadError=n;var o=Math.min(Math.pow(2,n-1)*i.fragLoadingRetryDelay,i.fragLoadingMaxRetryTimeout);c.logger.warn("AudioStreamController: frag loading failed, retry in "+o+" ms"),this.retryDate=ee.now()+o,this.state=Tt}else c.logger.error("AudioStreamController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=At}break;case s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.state!==At&&(this.state=t.fatal?At:yt,c.logger.warn("AudioStreamController: "+t.details+" while loading frag, now switching to "+this.state+" state ..."));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if("audio"===t.parent&&(this.state===St||this.state===_t)){var a=this.mediaBuffer,u=this.media.currentTime;if(a&&z.isBuffered(a,u)&&z.isBuffered(a,u+.5)){var f=this.config;f.maxMaxBufferLength>=f.maxBufferLength&&(f.maxMaxBufferLength/=2,c.logger.warn("AudioStreamController: reduce max buffer length to "+f.maxMaxBufferLength+"s")),this.state=yt}else c.logger.warn("AudioStreamController: buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=kt,this.hls.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}}},f.onBufferFlushed=function(){var t=this,e=this.pendingData;e&&e.length?(c.logger.log("AudioStreamController: appending pending audio data after buffer flushed"),e.forEach((function(e){t.hls.trigger(l.default.BUFFER_APPENDING,e)})),this.appended=!0,this.pendingData=[],this.state=_t):(this.state=yt,this.fragPrevious=null,this.tick())},i=n,(o=[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,c.logger.log("audio stream:"+e+"->"+t)}},get:function(){return this._state}}])&&te(i.prototype,o),a&&te(i,a),n}(Ct),ne=function(){if("undefined"!=typeof window&&window.VTTCue)return window.VTTCue;var t={"":!0,lr:!0,rl:!0},e={start:!0,middle:!0,end:!0,left:!0,right:!0};function r(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}function n(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function i(e,i,o){var a=this,s={enumerable:!0};a.hasBeenReset=!1;var u="",l=!1,c=e,f=i,d=o,h=null,p="",g=!0,v="auto",y="start",m=50,b="middle",E=50,T="middle";Object.defineProperty(a,"id",n({},s,{get:function(){return u},set:function(t){u=""+t}})),Object.defineProperty(a,"pauseOnExit",n({},s,{get:function(){return l},set:function(t){l=!!t}})),Object.defineProperty(a,"startTime",n({},s,{get:function(){return c},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");c=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",n({},s,{get:function(){return f},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",n({},s,{get:function(){return d},set:function(t){d=""+t,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",n({},s,{get:function(){return h},set:function(t){h=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",n({},s,{get:function(){return p},set:function(e){var r=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===r)throw new SyntaxError("An invalid or illegal string was specified.");p=r,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",n({},s,{get:function(){return g},set:function(t){g=!!t,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",n({},s,{get:function(){return v},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",n({},s,{get:function(){return y},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",n({},s,{get:function(){return m},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",n({},s,{get:function(){return b},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",n({},s,{get:function(){return E},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");E=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",n({},s,{get:function(){return T},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");T=e,this.hasBeenReset=!0}})),a.displayState=void 0}return i.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)},i}(),ie=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}};function oe(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new ie,this.regionList=[]}function ae(){this.values=Object.create(null)}function se(t,e,r,n){var i=n?t.split(n):[t];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(r);2===a.length&&e(a[0],a[1])}}ae.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n<r.length;++n)if(e===r[n]){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 ue=new ne(0,0,0),le="middle"===ue.align?"middle":"center";function ce(t,e,r){var n=t;function i(){var e=function(t){function e(t,e,r,n){return 3600*(0|t)+60*(0|e)+(0|r)+(0|n)/1e3}var r=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return r?r[3]?e(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}(t);if(null===e)throw new Error("Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function o(){t=t.replace(/^\s+/,"")}if(o(),e.startTime=i(),o(),"--\x3e"!==t.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),o(),e.endTime=i(),o(),function(t,e){var n=new ae;se(t,(function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),a=o[0];n.integer(t,a),n.percent(t,a)&&n.set("snapToLines",!1),n.alt(t,a,["auto"]),2===o.length&&n.alt("lineAlign",o[1],["start",le,"end"]);break;case"position":o=e.split(","),n.percent(t,o[0]),2===o.length&&n.alt("positionAlign",o[1],["start",le,"end","line-left","line-right","auto"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start",le,"end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");var i=n.get("line","auto");"auto"===i&&-1===ue.line&&(i=-1),e.line=i,e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align",le);var o=n.get("position","auto");"auto"===o&&50===ue.position&&(o="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=o}(t,e)}function fe(t){return t.replace(/<br(?: \/)?>/gi,"\n")}oe.prototype={parse:function(t){var e=this;function r(){var t=e.buffer,r=0;for(t=fe(t);r<t.length&&"\r"!==t[r]&&"\n"!==t[r];)++r;var n=t.substr(0,r);return"\r"===t[r]&&++r,"\n"===t[r]&&++r,e.buffer=t.substr(r),n}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var n;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var i=(n=r()).match(/^()?WEBVTT([ \t].*)?$/);if(!i||!i[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}for(var o=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(o?o=!1:n=r(),e.state){case"HEADER":/:/.test(n)?se(n,(function(t,e){}),/:/):n||(e.state="ID");continue;case"NOTE":n||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){e.state="NOTE";break}if(!n)continue;if(e.cue=new ne(0,0,""),e.state="CUE",-1===n.indexOf("--\x3e")){e.cue.id=n;continue}case"CUE":try{ce(n,e.cue,e.regionList)}catch(t){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var a=-1!==n.indexOf("--\x3e");if(!n||a&&(o=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=n;continue;case"BADCUE":n||(e.state="ID");continue}}}catch(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 Error("Malformed WebVTT signature.")}catch(t){throw t}return this.onflush&&this.onflush(),this}};var de=oe;function he(t,e,r,n){for(var i,o,a,s,u,l=[],c=window.VTTCue||TextTrackCue,f=0;f<n.rows.length;f++)if(a=!0,s=0,u="",!(i=n.rows[f]).isEmpty()){for(var d=0;d<i.chars.length;d++)i.chars[d].uchar.match(/\s/)&&a?s++:(u+=i.chars[d].uchar,a=!1);i.cueStartTime=e,e===r&&(r+=1e-4),o=new c(e,r,fe(u.trim())),s>=16?s--:s++,navigator.userAgent.match(/Firefox\//)?o.line=f+1:o.line=f>7?f-2:f+1,o.align="left",o.position=Math.max(0,Math.min(100,s/32*100)),l.push(o),t&&t.addCue(o)}return l}var pe,ge={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},ve=function(t){var e=t;return ge.hasOwnProperty(t)&&(e=ge[t]),String.fromCharCode(e)},ye={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},me={17:2,18:4,21:6,22:8,23:10,19:13,20:15},be={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Ee={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Te=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];!function(t){t[t.ERROR=0]="ERROR",t[t.TEXT=1]="TEXT",t[t.WARNING=2]="WARNING",t[t.INFO=2]="INFO",t[t.DEBUG=3]="DEBUG",t[t.DATA=3]="DATA"}(pe||(pe={}));var we=function(){function t(){this.time=null,this.verboseLevel=pe.ERROR}return t.prototype.log=function(t,e){this.verboseLevel>=t&&c.logger.log(this.time+" ["+t+"] "+e)},t}(),Se=function(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].toString(16));return e},_e=function(){function t(t,e,r,n,i){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=t||"white",this.underline=e||!1,this.italics=r||!1,this.background=n||"black",this.flash=i||!1}var e=t.prototype;return e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],r=0;r<e.length;r++){var n=e[r];t.hasOwnProperty(n)&&(this[n]=t[n])}},e.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},e.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),ke=function(){function t(t,e,r,n,i,o){this.uchar=void 0,this.penState=void 0,this.uchar=t||" ",this.penState=new _e(e,r,n,i,o)}var e=t.prototype;return e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},e.setPenState=function(t){this.penState.copy(t)},e.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},t}(),xe=function(){function t(t){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var e=0;e<100;e++)this.chars.push(new ke);this.logger=t,this.pos=0,this.currPenState=new _e}var e=t.prototype;return e.equals=function(t){for(var e=!0,r=0;r<100;r++)if(!this.chars[r].equals(t.chars[r])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<100;e++)this.chars[e].copy(t.chars[e])},e.isEmpty=function(){for(var t=!0,e=0;e<100;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(pe.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>100&&(this.logger.log(pe.DEBUG,"Too large cursor position "+this.pos),this.pos=100)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var r=this.pos+1;r<e+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},e.insertChar=function(t){t>=144&&this.backSpace();var e=ve(t);this.pos>=100?this.logger.log(pe.ERROR,"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;for(e=t;e<100;e++)this.chars[e].reset()},e.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=function(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!0,r=0;r<100;r++){var n=this.chars[r].uchar;" "!==n&&(e=!1),t.push(n)}return e?"":t.join("")},e.setPenStyles=function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)},t}(),Ae=function(){function t(t){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var e=0;e<15;e++)this.rows.push(new xe(t));this.logger=t,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var e=t.prototype;return e.reset=function(){for(var t=0;t<15;t++)this.rows[t].clear();this.currRow=14},e.equals=function(t){for(var e=!0,r=0;r<15;r++)if(!this.rows[r].equals(t.rows[r])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<15;e++)this.rows[e].copy(t.rows[e])},e.isEmpty=function(){for(var t=!0,e=0;e<15;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},e.backSpace=function(){this.rows[this.currRow].backSpace()},e.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},e.insertChar=function(t){this.rows[this.currRow].insertChar(t)},e.setPen=function(t){this.rows[this.currRow].setPenStyles(t)},e.moveCursor=function(t){this.rows[this.currRow].moveCursor(t)},e.setCursor=function(t){this.logger.log(pe.INFO,"setCursor: "+t),this.rows[this.currRow].setCursor(t)},e.setPAC=function(t){this.logger.log(pe.INFO,"pacData = "+JSON.stringify(t));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var r=0;r<15;r++)this.rows[r].clear();var n=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var o=i.rows[n].cueStartTime,a=this.logger.time;if(o&&null!==a&&o<a)for(var s=0;s<this.nrRollUpRows;s++)this.rows[e-this.nrRollUpRows+s+1].copy(i.rows[n+s])}}this.currRow=e;var u=this.rows[this.currRow];if(null!==t.indent){var l=t.indent,c=Math.max(l-1,0);u.setCursor(t.indent),t.color=u.chars[c].penState.foreground}var f={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(f)},e.setBkgData=function(t){this.logger.log(pe.INFO,"bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRollUpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){if(null!==this.nrRollUpRows){this.logger.log(pe.TEXT,this.getDisplayText());var t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(pe.INFO,"Rolling up")}else this.logger.log(pe.DEBUG,"roll_up but nrRollUpRows not set yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],r="",n=-1,i=0;i<15;i++){var o=this.rows[i].getTextString();o&&(n=i+1,t?e.push("Row "+n+": '"+o+"'"):e.push(o.trim()))}return e.length>0&&(r=t?"["+e.join(" | ")+"]":e.join("\n")),r},e.getTextAndFormat=function(){return this.rows},t}(),Oe=function(){function t(t,e,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new Ae(r),this.nonDisplayedMemory=new Ae(r),this.lastOutputScreen=new Ae(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(pe.INFO,"MODE="+t),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);var r=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(pe.INFO,r+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(pe.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},e.ccRCL=function(){this.logger.log(pe.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){this.logger.log(pe.INFO,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function(){},e.ccDER=function(){this.logger.log(pe.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t){this.logger.log(pe.INFO,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){this.logger.log(pe.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function(){this.logger.log(pe.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},e.ccTR=function(){this.logger.log(pe.INFO,"TR"),this.setMode("MODE_TEXT")},e.ccRTD=function(){this.logger.log(pe.INFO,"RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function(){this.logger.log(pe.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function(){this.logger.log(pe.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function(){this.logger.log(pe.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){if(this.logger.log(pe.INFO,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(pe.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},e.ccTO=function(t){this.logger.log(pe.INFO,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{var r=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(pe.INFO,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}();function Pe(t,e,r){r.a=t,r.b=e}function Ce(t,e,r){return r.a===t&&r.b===e}var Re=function(){function t(t,e,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var n=new we;this.channels=[null,new Oe(t,e,n),new Oe(t+1,r,n)],this.cmdHistory={a:null,b:null},this.logger=n}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var r,n,i,o=!1;this.logger.time=t;for(var a=0;a<e.length;a+=2)if(n=127&e[a],i=127&e[a+1],0!==n||0!==i){if(this.logger.log(pe.DATA,"["+Se([e[a],e[a+1]])+"] -> ("+Se([n,i])+")"),(r=this.parseCmd(n,i))||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i)),!r&&(o=this.parseChars(n,i))){var s=this.currentChannel;s&&s>0?this.channels[s].insertChars(o):this.logger.log(pe.WARNING,"No channel found yet. TEXT-MODE?")}r||o||this.logger.log(pe.WARNING,"Couldn't parse cleaned data "+Se([n,i])+" orig: "+Se([e[a],e[a+1]]))}},e.parseCmd=function(t,e){var r=this.cmdHistory;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=33&&e<=35))return!1;if(Ce(t,e,r))return Pe(null,null,r),this.logger.log(pe.DEBUG,"Repeated command ("+Se([t,e])+") is dropped"),!0;var n=20===t||21===t||23===t?1:2,i=this.channels[n];return 20===t||21===t||28===t||29===t?32===e?i.ccRCL():33===e?i.ccBS():34===e?i.ccAOF():35===e?i.ccAON():36===e?i.ccDER():37===e?i.ccRU(2):38===e?i.ccRU(3):39===e?i.ccRU(4):40===e?i.ccFON():41===e?i.ccRDC():42===e?i.ccTR():43===e?i.ccRTD():44===e?i.ccEDM():45===e?i.ccCR():46===e?i.ccENM():47===e&&i.ccEOC():i.ccTO(e-32),Pe(t,e,r),this.currentChannel=n,!0},e.parseMidrow=function(t,e){var r=0;if((17===t||25===t)&&e>=32&&e<=47){if((r=17===t?1:2)!==this.currentChannel)return this.logger.log(pe.ERROR,"Mismatch channel in midrow parsing"),!1;var n=this.channels[r];return!!n&&(n.ccMIDROW(e),this.logger.log(pe.DEBUG,"MIDROW ("+Se([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var r,n=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127||(16===t||24===t)&&e>=64&&e<=95))return!1;if(Ce(t,e,n))return Pe(null,null,n),!0;var i=t<=23?1:2;r=e>=64&&e<=95?1===i?ye[t]:be[t]:1===i?me[t]:Ee[t];var o=this.channels[i];return!!o&&(o.setPAC(this.interpretPAC(r,e)),Pe(t,e,n),this.currentChannel=i,!0)},e.interpretPAC=function(t,e){var r=e,n={color:null,italics:!1,indent:null,underline:!1,row:t};return r=e>95?e-96:e-64,n.underline=1==(1&r),r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((r-16)/2),n},e.parseChars=function(t,e){var r,n=null,i=null;if(t>=25?(r=2,i=t-8):(r=1,i=t),i>=17&&i<=19){var o=e;o=17===i?e+80:18===i?e+112:e+144,this.logger.log(pe.INFO,"Special char '"+ve(o)+"' in channel "+r),n=[o]}else t>=32&&t<=127&&(n=0===e?[t]:[t,e]);if(n){var a=Se(n);this.logger.log(pe.DEBUG,"Char codes = "+a.join(",")),Pe(t,e,this.cmdHistory)}return n},e.parseBackgroundAttributes=function(t,e){var r;if(!((16===t||24===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=45&&e<=47))return!1;var n={};16===t||24===t?(r=Math.floor((e-32)/2),n.background=Te[r],e%2==1&&(n.background=n.background+"_semi")):45===e?n.background="transparent":(n.foreground="black",47===e&&(n.underline=!0));var i=t<=23?1:2;return this.channels[i].setBkgData(n),Pe(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;t<Object.keys(this.channels).length;t++){var e=this.channels[t];e&&e.reset()}this.cmdHistory={a:null,b:null}},e.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++){var r=this.channels[e];r&&r.cueSplitAtTime(t)}},t}(),De=function(){function t(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}var e=t.prototype;return e.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},e.newCue=function(t,e,r){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[]},t}(),Le=function(t,e,r){return t.substr(r||0,e.length)===e},Ie=function(t){for(var e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return(e>>>0).toString()},Me={parse:function(t,e,r,n,i,o){var a,s=Object(Nt.utf8ArrayToStr)(new Uint8Array(t)).trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),l="00:00.000",c=0,f=0,d=0,h=[],p=!0,g=!1,v=new de;v.oncue=function(t){var e=r[n],i=r.ccOffset;e&&e.new&&(void 0!==f?i=r.ccOffset=e.start:function(t,e,r){var n=t[e],i=t[n.prevCC];if(!i||!i.new&&n.new)return t.ccOffset=t.presentationOffset=n.start,void(n.new=!1);for(;i&&i.new;)t.ccOffset+=n.start-i.start,n.new=!1,i=t[(n=i).prevCC];t.presentationOffset=r}(r,n,d)),d&&(i=d-r.presentationOffset),g&&(t.startTime+=i-f,t.endTime+=i-f),t.id=Ie(t.startTime.toString())+Ie(t.endTime.toString())+Ie(t.text),t.text=decodeURIComponent(encodeURIComponent(t.text)),t.endTime>0&&h.push(t)},v.onparsingerror=function(t){a=t},v.onflush=function(){a&&o?o(a):i(h)},s.forEach((function(t){if(p){if(Le(t,"X-TIMESTAMP-MAP=")){p=!1,g=!0,t.substr(16).split(",").forEach((function(t){Le(t,"LOCAL:")?l=t.substr(6):Le(t,"MPEGTS:")&&(c=parseInt(t.substr(7)))}));try{e+(9e4*r[n].start||0)<0&&(e+=8589934592),c-=e,f=function(t){var e=parseInt(t.substr(-3)),r=parseInt(t.substr(-6,2)),n=parseInt(t.substr(-9,2)),i=t.length>9?parseInt(t.substr(0,t.indexOf(":"))):0;if(!(Object(u.isFiniteNumber)(e)&&Object(u.isFiniteNumber)(r)&&Object(u.isFiniteNumber)(n)&&Object(u.isFiniteNumber)(i)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*r,e+=6e4*n,e+=36e5*i}(l)/1e3,d=c/9e4}catch(t){g=!1,a=t}return}""===t&&(p=!1)}v.parse(t+"\n")})),v.flush()}};function Ne(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function je(t,e){return t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}var Be=function(t){var e,r;function n(e){var r;if((r=t.call(this,e,l.default.MEDIA_ATTACHING,l.default.MEDIA_DETACHING,l.default.FRAG_PARSING_USERDATA,l.default.FRAG_DECRYPTED,l.default.MANIFEST_LOADING,l.default.MANIFEST_LOADED,l.default.FRAG_LOADED,l.default.INIT_PTS_FOUND)||this).media=null,r.config=void 0,r.enabled=!0,r.Cues=void 0,r.textTracks=[],r.tracks=[],r.initPTS=[],r.unparsedVttFrags=[],r.captionsTracks={},r.nonNativeCaptionsTracks={},r.captionsProperties=void 0,r.cea608Parser1=void 0,r.cea608Parser2=void 0,r.lastSn=-1,r.prevCC=-1,r.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},r.hls=e,r.config=e.config,r.Cues=e.config.cueHandler,r.captionsProperties={textTrack1:{label:r.config.captionsTextTrack1Label,languageCode:r.config.captionsTextTrack1LanguageCode},textTrack2:{label:r.config.captionsTextTrack2Label,languageCode:r.config.captionsTextTrack2LanguageCode},textTrack3:{label:r.config.captionsTextTrack3Label,languageCode:r.config.captionsTextTrack3LanguageCode},textTrack4:{label:r.config.captionsTextTrack4Label,languageCode:r.config.captionsTextTrack4LanguageCode}},r.config.enableCEA708Captions){var n=new De(Ne(r),"textTrack1"),i=new De(Ne(r),"textTrack2"),o=new De(Ne(r),"textTrack3"),a=new De(Ne(r),"textTrack4");r.cea608Parser1=new Re(1,n,i),r.cea608Parser2=new Re(3,o,a)}return r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.addCues=function(t,e,r,n,i){for(var o,a,s,u,c=!1,f=i.length;f--;){var d=i[f],h=(o=d[0],a=d[1],s=e,u=r,Math.min(a,u)-Math.max(o,s));if(h>=0&&(d[0]=Math.min(d[0],e),d[1]=Math.max(d[1],r),c=!0,h/(r-e)>.5))return}if(c||i.push([e,r]),this.config.renderTextTracksNatively)this.Cues.newCue(this.captionsTracks[t],e,r,n);else{var p=this.Cues.newCue(null,e,r,n);this.hls.trigger(l.default.CUES_PARSED,{type:"captions",cues:p,track:t})}},i.onInitPtsFound=function(t){var e=this,r=t.frag,n=t.id,i=t.initPTS,o=this.unparsedVttFrags;"main"===n&&(this.initPTS[r.cc]=i),o.length&&(this.unparsedVttFrags=[],o.forEach((function(t){e.onFragLoaded(t)})))},i.getExistingTrack=function(t){var e=this.media;if(e)for(var r=0;r<e.textTracks.length;r++){var n=e.textTracks[r];if(n[t])return n}return null},i.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},i.createNativeTrack=function(t){if(!this.captionsTracks[t]){var e=this.captionsProperties,r=this.captionsTracks,n=this.media,i=e[t],o=i.label,a=i.languageCode,s=this.getExistingTrack(t);if(s)r[t]=s,Bt(r[t]),jt(r[t],n);else{var u=this.createTextTrack("captions",o,a);u&&(u[t]=!0,r[t]=u)}}},i.createNonNativeTrack=function(t){if(!this.nonNativeCaptionsTracks[t]){var e=this.captionsProperties[t];if(e){var r={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=r,this.hls.trigger(l.default.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}}},i.createTextTrack=function(t,e,r){var n=this.media;if(n)return n.addTextTrack(t,e,r)},i.destroy=function(){t.prototype.destroy.call(this)},i.onMediaAttaching=function(t){this.media=t.media,this._cleanTracks()},i.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach((function(e){Bt(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}},i.onManifestLoading=function(){this.lastSn=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={}},i._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var r=0;r<e.length;r++)Bt(e[r])}},i.onManifestLoaded=function(t){var e=this;if(this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset()),this.config.enableWebVTT){var r=t.subtitles||[],n=this.tracks&&r&&this.tracks.length===r.length;if(this.tracks=t.subtitles||[],this.config.renderTextTracksNatively){var i=this.media?this.media.textTracks:[];this.tracks.forEach((function(t,r){var n;if(r<i.length){for(var o=null,a=0;a<i.length;a++)if(je(i[a],t)){o=i[a];break}o&&(n=o)}n||(n=e.createTextTrack("subtitles",t.name,t.lang)),t.default?n.mode=e.hls.subtitleDisplay?"showing":"hidden":n.mode="disabled",e.textTracks.push(n)}))}else if(!n&&this.tracks&&this.tracks.length){var o=this.tracks.map((function(t){return{label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t}}));this.hls.trigger(l.default.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:o})}}this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((function(t){var r=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(r){var n="textTrack"+r[1],i=e.captionsProperties[n];i&&(i.label=t.name,t.lang&&(i.languageCode=t.lang),i.media=t)}}))},i.onFragLoaded=function(t){var e=t.frag,r=t.payload,n=this.cea608Parser1,i=this.cea608Parser2,o=this.initPTS,a=this.lastSn,s=this.unparsedVttFrags;if("main"===e.type){var c=e.sn;e.sn!==a+1&&n&&i&&(n.reset(),i.reset()),this.lastSn=c}else if("subtitle"===e.type)if(r.byteLength){if(!Object(u.isFiniteNumber)(o[e.cc]))return s.push(t),void(o.length&&this.hls.trigger(l.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e}));var f=e.decryptdata;null!=f&&null!=f.key&&"AES-128"===f.method||this._parseVTTs(e,r)}else this.hls.trigger(l.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e})},i._parseVTTs=function(t,e){var r=this,n=this.hls,i=this.prevCC,o=this.textTracks,a=this.vttCCs;a[t.cc]||(a[t.cc]={start:t.start,prevCC:i,new:!0},this.prevCC=t.cc),Me.parse(e,this.initPTS[t.cc],a,t.cc,(function(e){if(r.config.renderTextTracksNatively){var i=o[t.level];if("disabled"===i.mode)return void n.trigger(l.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t});e.forEach((function(t){if(!i.cues.getCueById(t.id))try{if(i.addCue(t),!i.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(r){c.logger.debug("Failed occurred on adding cues: "+r);var e=new window.TextTrackCue(t.startTime,t.endTime,t.text);e.id=t.id,i.addCue(e)}}))}else{var a=r.tracks[t.level].default?"default":"subtitles"+t.level;n.trigger(l.default.CUES_PARSED,{type:"subtitles",cues:e,track:a})}n.trigger(l.default.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(e){c.logger.log("Failed to parse VTT cue: "+e),n.trigger(l.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t})}))},i.onFragDecrypted=function(t){var e=t.frag,r=t.payload;if("subtitle"===e.type){if(!Object(u.isFiniteNumber)(this.initPTS[e.cc]))return void this.unparsedVttFrags.push(t);this._parseVTTs(e,r)}},i.onFragParsingUserdata=function(t){var e=this.cea608Parser1,r=this.cea608Parser2;if(this.enabled&&e&&r)for(var n=0;n<t.samples.length;n++){var i=t.samples[n].bytes;if(i){var o=this.extractCea608Data(i);e.addData(t.samples[n].pts,o[0]),r.addData(t.samples[n].pts,o[1])}}},i.extractCea608Data=function(t){for(var e=31&t[0],r=2,n=[[],[]],i=0;i<e;i++){var o=t[r++],a=127&t[r++],s=127&t[r++],u=3&o;0===a&&0===s||0!=(4&o)&&(0!==u&&1!==u||(n[u].push(a),n[u].push(s)))}return n},n}(d);function Fe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ue(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];"subtitles"===n.kind&&n.label&&e.push(t[r])}return e}var He,Ve=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.MEDIA_ATTACHED,l.default.MEDIA_DETACHING,l.default.MANIFEST_LOADED,l.default.SUBTITLE_TRACK_LOADED)||this).tracks=[],r.trackId=-1,r.media=null,r.stopped=!0,r.subtitleDisplay=!0,r.queuedDefaultTrack=null,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,o,a,s=n.prototype;return s.destroy=function(){d.prototype.destroy.call(this)},s.onMediaAttached=function(t){var e=this;this.media=t.media,this.media&&(Object(u.isFiniteNumber)(this.queuedDefaultTrack)&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=null),this.trackChangeListener=this._onTextTracksChanged.bind(this),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.subtitlePollingInterval=setInterval((function(){e.trackChangeListener()}),500):this.media.textTracks.addEventListener("change",this.trackChangeListener))},s.onMediaDetaching=function(){this.media&&(this.useTextTrackPolling?clearInterval(this.subtitlePollingInterval):this.media.textTracks.removeEventListener("change",this.trackChangeListener),Object(u.isFiniteNumber)(this.subtitleTrack)&&(this.queuedDefaultTrack=this.subtitleTrack),Ue(this.media.textTracks).forEach((function(t){Bt(t)})),this.subtitleTrack=-1,this.media=null)},s.onManifestLoaded=function(t){var e=this,r=t.subtitles||[];this.tracks=r,this.hls.trigger(l.default.SUBTITLE_TRACKS_UPDATED,{subtitleTracks:r}),r.forEach((function(t){t.default&&(e.media?e.subtitleTrack=t.id:e.queuedDefaultTrack=t.id)}))},s.onSubtitleTrackLoaded=function(t){var e=this,r=t.id,n=t.details,i=this.trackId,o=this.tracks,a=o[i];if(r>=o.length||r!==i||!a||this.stopped)this._clearReloadTimer();else if(c.logger.log("subtitle track "+r+" loaded"),n.live){var s=it(a.details,n,t.stats.trequest);c.logger.log("Reloading live subtitle playlist in "+s+"ms"),this.timer=setTimeout((function(){e._loadCurrentTrack()}),s)}else this._clearReloadTimer()},s.startLoad=function(){this.stopped=!1,this._loadCurrentTrack()},s.stopLoad=function(){this.stopped=!0,this._clearReloadTimer()},s._clearReloadTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},s._loadCurrentTrack=function(){var t=this.trackId,e=this.tracks,r=this.hls,n=e[t];t<0||!n||n.details&&!n.details.live||(c.logger.log("Loading subtitle track "+t),r.trigger(l.default.SUBTITLE_TRACK_LOADING,{url:n.url,id:t}))},s._toggleTrackModes=function(t){var e=this.media,r=this.subtitleDisplay,n=this.trackId;if(e){var i=Ue(e.textTracks);if(-1===t)[].slice.call(i).forEach((function(t){t.mode="disabled"}));else{var o=i[n];o&&(o.mode="disabled")}var a=i[t];a&&(a.mode=r?"showing":"hidden")}},s._setSubtitleTrackInternal=function(t){var e=this.hls,r=this.tracks;!Object(u.isFiniteNumber)(t)||t<-1||t>=r.length||(this.trackId=t,c.logger.log("Switching to subtitle track "+t),e.trigger(l.default.SUBTITLE_TRACK_SWITCH,{id:t}),this._loadCurrentTrack())},s._onTextTracksChanged=function(){if(this.media&&this.hls.config.renderTextTracksNatively){for(var t=-1,e=Ue(this.media.textTracks),r=0;r<e.length;r++)if("hidden"===e[r].mode)t=r;else if("showing"===e[r].mode){t=r;break}this.subtitleTrack=t}},i=n,(o=[{key:"subtitleTracks",get:function(){return this.tracks}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.trackId!==t&&(this._toggleTrackModes(t),this._setSubtitleTrackInternal(t))}}])&&Fe(i.prototype,o),a&&Fe(i,a),n}(d),ze=r("./src/crypt/decrypter.js"),Ge=window.performance,We=function(t){var e,r;function n(e,r){var n;return(n=t.call(this,e,l.default.MEDIA_ATTACHED,l.default.MEDIA_DETACHING,l.default.ERROR,l.default.KEY_LOADED,l.default.FRAG_LOADED,l.default.SUBTITLE_TRACKS_UPDATED,l.default.SUBTITLE_TRACK_SWITCH,l.default.SUBTITLE_TRACK_LOADED,l.default.SUBTITLE_FRAG_PROCESSED,l.default.LEVEL_UPDATED)||this).fragmentTracker=r,n.config=e.config,n.state=gt,n.tracks=[],n.tracksBuffered=[],n.currentTrackId=-1,n.decrypter=new ze.default(e,e.config),n.lastAVStart=0,n._onMediaSeeking=n.onMediaSeeking.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)),n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.startLoad=function(){this.stopLoad(),this.state=yt;var t=this.tracks[this.currentTrackId];t&&t.details&&(this.setInterval(500),this.tick())},i.onSubtitleFragProcessed=function(t){var e=t.frag,r=t.success;if(this.fragPrevious=e,this.state=yt,r){var n=this.tracksBuffered[this.currentTrackId];if(n){for(var i,o=e.start,a=0;a<n.length;a++)if(o>=n[a].start&&o<=n[a].end){i=n[a];break}var s=e.start+e.duration;i?i.end=s:(i={start:o,end:s},n.push(i))}}},i.onMediaAttached=function(t){var e=t.media;this.media=e,e.addEventListener("seeking",this._onMediaSeeking),this.state=yt},i.onMediaDetaching=function(){var t=this;this.media&&(this.media.removeEventListener("seeking",this._onMediaSeeking),this.fragmentTracker.removeAllFragments(),this.currentTrackId=-1,this.tracks.forEach((function(e){t.tracksBuffered[e.id]=[]})),this.media=null,this.state=gt)},i.onError=function(t){var e=t.frag;e&&"subtitle"===e.type&&(this.fragCurrent&&this.fragCurrent.loader&&this.fragCurrent.loader.abort(),this.state=yt)},i.onSubtitleTracksUpdated=function(t){var e=this;c.logger.log("subtitle tracks updated"),this.tracksBuffered=[],this.tracks=t.subtitleTracks,this.tracks.forEach((function(t){e.tracksBuffered[t.id]=[]}))},i.onSubtitleTrackSwitch=function(t){if(this.currentTrackId=t.id,this.tracks&&this.tracks.length&&-1!==this.currentTrackId){var e=this.tracks[this.currentTrackId];e&&e.details&&this.setInterval(500)}else this.clearInterval()},i.onSubtitleTrackLoaded=function(t){var e=t.id,r=t.details,n=this.currentTrackId,i=this.tracks,o=i[n];e>=i.length||e!==n||!o||(r.live&&function(t,e,r){void 0===r&&(r=0);var n=-1;nt(t,e,(function(t,e,r){e.start=t.start,n=r}));var i=e.fragments;if(n<0)i.forEach((function(t){t.start+=r}));else for(var o=n+1;o<i.length;o++)i[o].start=i[o-1].start+i[o-1].duration}(o.details,r,this.lastAVStart),o.details=r,this.setInterval(500))},i.onKeyLoaded=function(){this.state===bt&&(this.state=yt)},i.onFragLoaded=function(t){var e=this.fragCurrent,r=t.frag.decryptdata,n=t.frag,i=this.hls;if(this.state===Et&&e&&"subtitle"===t.frag.type&&e.sn===t.frag.sn&&t.payload.byteLength>0&&r&&r.key&&"AES-128"===r.method){var o=Ge.now();this.decrypter.decrypt(t.payload,r.key.buffer,r.iv.buffer,(function(t){var e=Ge.now();i.trigger(l.default.FRAG_DECRYPTED,{frag:n,payload:t,stats:{tstart:o,tdecrypt:e}})}))}},i.onLevelUpdated=function(t){var e=t.details.fragments;this.lastAVStart=e.length?e[0].start:0},i.doTick=function(){if(this.media)switch(this.state){case yt:var t=this.config,e=this.currentTrackId,r=this.fragmentTracker,n=this.media,i=this.tracks;if(!i||!i[e]||!i[e].details)break;var o,a=t.maxBufferHole,s=t.maxFragLookUpTolerance,u=Math.min(t.maxBufferLength,t.maxMaxBufferLength),f=z.bufferedInfo(this._getBuffered(),n.currentTime,a),d=f.end,h=f.len,p=i[e].details,g=p.fragments,v=g.length,y=g[v-1].start+g[v-1].duration;if(h>u)return;var m=this.fragPrevious;d<y?(m&&p.hasProgramDateTime&&(o=ut(g,m.endProgramDateTime,s)),o||(o=lt(m,g,d,s))):o=g[v-1],o&&o.encrypted?(c.logger.log("Loading key for "+o.sn),this.state=bt,this.hls.trigger(l.default.KEY_LOADING,{frag:o})):o&&r.getState(o)===j&&(this.fragCurrent=o,this.state=Et,this.hls.trigger(l.default.FRAG_LOADING,{frag:o}))}else this.state=yt},i.stopLoad=function(){this.lastAVStart=0,this.fragPrevious=null,t.prototype.stopLoad.call(this)},i._getBuffered=function(){return this.tracksBuffered[this.currentTrackId]||[]},i.onMediaSeeking=function(){if(this.fragCurrent){var t=this.media?this.media.currentTime:0,e=this.config.maxFragLookUpTolerance,r=this.fragCurrent.start-e,n=this.fragCurrent.start+this.fragCurrent.duration+e;(t<r||t>n)&&(this.fragCurrent.loader&&this.fragCurrent.loader.abort(),this.fragmentTracker.removeFragment(this.fragCurrent),this.fragCurrent=null,this.fragPrevious=null,this.state=yt,this.tick())}},n}(Ct);!function(t){t.WIDEVINE="com.widevine.alpha",t.PLAYREADY="com.microsoft.playready"}(He||(He={}));var Ke="undefined"!=typeof window&&window.navigator&&window.navigator.requestMediaKeySystemAccess?window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null;function Ye(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Xe=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,l.default.MEDIA_ATTACHED,l.default.MEDIA_DETACHED,l.default.MANIFEST_PARSED)||this)._widevineLicenseUrl=void 0,r._licenseXhrSetup=void 0,r._emeEnabled=void 0,r._requestMediaKeySystemAccess=void 0,r._drmSystemOptions=void 0,r._config=void 0,r._mediaKeysList=[],r._media=null,r._hasSetMediaKeys=!1,r._requestLicenseFailureCount=0,r.mediaKeysPromise=null,r._onMediaEncrypted=function(t){if(c.logger.log('Media is encrypted using "'+t.initDataType+'" init data type'),!r.mediaKeysPromise)return c.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),void r.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});var e=function(e){r._media&&(r._attemptSetMediaKeys(e),r._generateRequestWithPreferredKeySession(t.initDataType,t.initData))};r.mediaKeysPromise.then(e).catch(e)},r._config=e.config,r._widevineLicenseUrl=r._config.widevineLicenseUrl,r._licenseXhrSetup=r._config.licenseXhrSetup,r._emeEnabled=r._config.emeEnabled,r._requestMediaKeySystemAccess=r._config.requestMediaKeySystemAccessFunc,r._drmSystemOptions=e.config.drmSystemOptions,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,o,a,u=n.prototype;return u.getLicenseServerUrl=function(t){switch(t){case He.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+t+'"')},u._attemptKeySystemAccess=function(t,e,r){var n=this,i=function(t,e,r,n){switch(t){case He.WIDEVINE:return function(t,e,r){var n={audioCapabilities:[],videoCapabilities:[]};return t.forEach((function(t){n.audioCapabilities.push({contentType:'audio/mp4; codecs="'+t+'"',robustness:r.audioRobustness||""})})),e.forEach((function(t){n.videoCapabilities.push({contentType:'video/mp4; codecs="'+t+'"',robustness:r.videoRobustness||""})})),[n]}(e,r,n);default:throw new Error("Unknown key-system: "+t)}}(t,e,r,this._drmSystemOptions);c.logger.log("Requesting encrypted media key-system access");var o=this.requestMediaKeySystemAccess(t,i);this.mediaKeysPromise=o.then((function(e){return n._onMediaKeySystemAccessObtained(t,e)})),o.catch((function(e){c.logger.error('Failed to obtain key-system "'+t+'" access:',e)}))},u._onMediaKeySystemAccessObtained=function(t,e){var r=this;c.logger.log('Access for key-system "'+t+'" obtained');var n={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:e,mediaKeySystemDomain:t};this._mediaKeysList.push(n);var i=Promise.resolve().then((function(){return e.createMediaKeys()})).then((function(e){return n.mediaKeys=e,c.logger.log('Media-keys created for key-system "'+t+'"'),r._onMediaKeysCreated(),e}));return i.catch((function(t){c.logger.error("Failed to create media-keys:",t)})),i},u._onMediaKeysCreated=function(){var t=this;this._mediaKeysList.forEach((function(e){e.mediaKeysSession||(e.mediaKeysSession=e.mediaKeys.createSession(),t._onNewMediaKeySession(e.mediaKeysSession))}))},u._onNewMediaKeySession=function(t){var e=this;c.logger.log("New key-system session "+t.sessionId),t.addEventListener("message",(function(r){e._onKeySessionMessage(t,r.message)}),!1)},u._onKeySessionMessage=function(t,e){c.logger.log("Got EME message event, creating license request"),this._requestLicense(e,(function(e){c.logger.log("Received license data (length: "+(e?e.byteLength:e)+"), updating key-session"),t.update(e)}))},u._attemptSetMediaKeys=function(t){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var e=this._mediaKeysList[0];if(!e||!e.mediaKeys)return c.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),void this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});c.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(e.mediaKeys),this._hasSetMediaKeys=!0}},u._generateRequestWithPreferredKeySession=function(t,e){var r=this,n=this._mediaKeysList[0];if(!n)return c.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),void this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});if(n.mediaKeysSessionInitialized)c.logger.warn("Key-Session already initialized but requested again");else{var i=n.mediaKeysSession;if(!i)return c.logger.error("Fatal: Media is encrypted but no key-session existing"),void this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});if(!e)return c.logger.warn("Fatal: initData required for generating a key session is null"),void this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});c.logger.log('Generating key-session request for "'+t+'" init data type'),n.mediaKeysSessionInitialized=!0,i.generateRequest(t,e).then((function(){c.logger.debug("Key-session generation succeeded")})).catch((function(t){c.logger.error("Error generating key-session request:",t),r.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})}))}},u._createLicenseXhr=function(t,e,r){var n=new XMLHttpRequest,i=this._licenseXhrSetup;try{if(i)try{i(n,t)}catch(e){n.open("POST",t,!0),i(n,t)}n.readyState||n.open("POST",t,!0)}catch(t){throw new Error("issue setting up KeySystem license XHR "+t)}return n.responseType="arraybuffer",n.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,n,t,e,r),n},u._onLicenseRequestReadyStageChange=function(t,e,r,n){switch(t.readyState){case 4:if(200===t.status)this._requestLicenseFailureCount=0,c.logger.log("License request succeeded"),"arraybuffer"!==t.responseType&&c.logger.warn("xhr response type was not set to the expected arraybuffer for license request"),n(t.response);else{if(c.logger.error("License Request XHR failed ("+e+"). Status: "+t.status+" ("+t.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>3)return void this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});var i=3-this._requestLicenseFailureCount+1;c.logger.warn("Retrying license request, "+i+" attempts left"),this._requestLicense(r,n)}}},u._generateLicenseRequestChallenge=function(t,e){switch(t.mediaKeySystemDomain){case He.WIDEVINE:return e}throw new Error("unsupported key-system: "+t.mediaKeySystemDomain)},u._requestLicense=function(t,e){c.logger.log("Requesting content license for key-system");var r=this._mediaKeysList[0];if(!r)return c.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),void this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});try{var n=this.getLicenseServerUrl(r.mediaKeySystemDomain),i=this._createLicenseXhr(n,t,e);c.logger.log("Sending license request to URL: "+n);var o=this._generateLicenseRequestChallenge(r,t);i.send(o)}catch(t){c.logger.error("Failure requesting DRM license: "+t),this.hls.trigger(l.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},u.onMediaAttached=function(t){if(this._emeEnabled){var e=t.media;this._media=e,e.addEventListener("encrypted",this._onMediaEncrypted)}},u.onMediaDetached=function(){var t=this._media,e=this._mediaKeysList;t&&(t.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(e.map((function(t){if(t.mediaKeysSession)return t.mediaKeysSession.close().catch((function(){}))}))).then((function(){return t.setMediaKeys(null)})).catch((function(){})))},u.onManifestParsed=function(t){if(this._emeEnabled){var e=t.levels.map((function(t){return t.audioCodec})),r=t.levels.map((function(t){return t.videoCodec}));this._attemptKeySystemAccess(He.WIDEVINE,e,r)}},i=n,(o=[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}])&&Ye(i.prototype,o),a&&Ye(i,a),n}(d);function qe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $e(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(r),!0).forEach((function(e){Qe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Je=$e($e({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,liveDurationInfinity:!1,liveBackBufferLength:1/0,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Qt,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,abrController:Gt,bufferController:Kt,capLevelController:Xt,fpsController:$t,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:Ke,testBandwidth:!0},{cueHandler:n,enableCEA708Captions:!0,enableWebVTT:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:We,subtitleTrackController:Ve,timelineController:Be,audioStreamController:re,audioTrackController:Zt,emeController:Xe});function Ze(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(r),!0).forEach((function(e){er(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function er(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ir(t,e,r){return e&&nr(t.prototype,e),r&&nr(t,r),t}var or=function(t){var e,r;function n(e){var r;void 0===e&&(e={}),(r=t.call(this)||this).config=void 0,r._autoLevelCapping=void 0,r.abrController=void 0,r.capLevelController=void 0,r.levelController=void 0,r.streamController=void 0,r.networkControllers=void 0,r.audioTrackController=void 0,r.subtitleTrackController=void 0,r.emeController=void 0,r.coreComponents=void 0,r.media=null,r.url=null;var i=n.DefaultConfig;if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");r.config=tr(tr({},i),e);var o=rr(r).config;if(void 0!==o.liveMaxLatencyDurationCount&&o.liveMaxLatencyDurationCount<=o.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(void 0!==o.liveMaxLatencyDuration&&(void 0===o.liveSyncDuration||o.liveMaxLatencyDuration<=o.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');Object(c.enableLogs)(o.debug),r._autoLevelCapping=-1;var a=r.abrController=new o.abrController(rr(r)),s=new o.bufferController(rr(r)),u=r.capLevelController=new o.capLevelController(rr(r)),l=new o.fpsController(rr(r)),f=new I(rr(r)),d=new M(rr(r)),h=new N(rr(r)),p=new Ft(rr(r)),g=r.levelController=new Mt(rr(r)),v=new H(rr(r)),y=[g,r.streamController=new Lt(rr(r),v)],m=o.audioStreamController;m&&y.push(new m(rr(r),v)),r.networkControllers=y;var b=[f,d,h,a,s,u,l,p,v];if(m=o.audioTrackController){var E=new m(rr(r));r.audioTrackController=E,b.push(E)}if(m=o.subtitleTrackController){var T=new m(rr(r));r.subtitleTrackController=T,y.push(T)}if(m=o.emeController){var w=new m(rr(r));r.emeController=w,b.push(w)}return(m=o.subtitleStreamController)&&y.push(new m(rr(r),v)),(m=o.timelineController)&&b.push(new m(rr(r))),r.coreComponents=b,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.isSupported=function(){return function(){var t=Y();if(!t)return!1;var e=self.SourceBuffer||self.WebKitSourceBuffer,r=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove;return!!r&&!!n}()},ir(n,null,[{key:"version",get:function(){return"0.14.16"}},{key:"Events",get:function(){return l.default}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return n.defaultConfig?n.defaultConfig:Je},set:function(t){n.defaultConfig=t}}]);var i=n.prototype;return i.destroy=function(){c.logger.log("destroy"),this.trigger(l.default.DESTROYING),this.detachMedia(),this.coreComponents.concat(this.networkControllers).forEach((function(t){t.destroy()})),this.url=null,this.removeAllListeners(),this._autoLevelCapping=-1},i.attachMedia=function(t){c.logger.log("attachMedia"),this.media=t,this.trigger(l.default.MEDIA_ATTACHING,{media:t})},i.detachMedia=function(){c.logger.log("detachMedia"),this.trigger(l.default.MEDIA_DETACHING),this.media=null},i.loadSource=function(t){t=a.buildAbsoluteURL(window.location.href,t,{alwaysNormalize:!0}),c.logger.log("loadSource:"+t),this.url=t,this.trigger(l.default.MANIFEST_LOADING,{url:t})},i.startLoad=function(t){void 0===t&&(t=-1),c.logger.log("startLoad("+t+")"),this.networkControllers.forEach((function(e){e.startLoad(t)}))},i.stopLoad=function(){c.logger.log("stopLoad"),this.networkControllers.forEach((function(t){t.stopLoad()}))},i.swapAudioCodec=function(){c.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},i.recoverMediaError=function(){c.logger.log("recoverMediaError");var t=this.media;this.detachMedia(),t&&this.attachMedia(t)},i.removeLevel=function(t,e){void 0===e&&(e=0),this.levelController.removeLevel(t,e)},ir(n,[{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){c.logger.log("set currentLevel:"+t),this.loadLevel=t,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){c.logger.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){c.logger.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){c.logger.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){c.logger.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){c.logger.log("set autoLevelCapping:"+t),this._autoLevelCapping=t}},{key:"bandwidthEstimate",get:function(){var t=this.abrController._bwEstimator;return t?t.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var t=this.levels,e=this.config.minAutoBitrate,r=t?t.length:0,n=0;n<r;n++)if((t[n].realBitrate?Math.max(t[n].realBitrate,t[n].bitrate):t[n].bitrate)>e)return n;return 0}},{key:"maxAutoLevel",get:function(){var t=this.levels,e=this.autoLevelCapping;return-1===e&&t&&t.length?t.length-1:e}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}}]),n}(q);or.defaultConfig=void 0},"./src/polyfills/number.js":
/*!*********************************!*\
!*** ./src/polyfills/number.js ***!
\*********************************/
/*! exports provided: isFiniteNumber, MAX_SAFE_INTEGER */function(t,e,r){"use strict";r.r(e),r.d(e,"isFiniteNumber",(function(){return n})),r.d(e,"MAX_SAFE_INTEGER",(function(){return i}));var n=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},i=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/utils/get-self-scope.js":
/*!*************************************!*\
!*** ./src/utils/get-self-scope.js ***!
\*************************************/
/*! exports provided: getSelfScope */function(t,e,r){"use strict";function n(){return"undefined"==typeof window?self:window}r.r(e),r.d(e,"getSelfScope",(function(){return n}))},"./src/utils/logger.js":
/*!*****************************!*\
!*** ./src/utils/logger.js ***!
\*****************************/
/*! exports provided: enableLogs, logger */function(t,e,r){"use strict";r.r(e),r.d(e,"enableLogs",(function(){return c})),r.d(e,"logger",(function(){return f}));var n=r(/*! ./get-self-scope */"./src/utils/get-self-scope.js");function i(){}var o={trace:i,debug:i,log:i,warn:i,info:i,error:i},a=o;function s(t,e){return e="["+t+"] > "+e}var u=Object(n.getSelfScope)();function l(t){var e=u.console[t];return e?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];n[0]&&(n[0]=s(t,n[0])),e.apply(u.console,n)}:i}var c=function(t){if(u.console&&!0===t||"object"==typeof t){!function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];r.forEach((function(e){a[e]=t[e]?t[e].bind(t):l(e)}))}(t,"debug","log","info","warn","error");try{a.log()}catch(t){a=o}}else a=o},f=a}}).default},t.exports=n())},function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},function(t,e){t.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},function(t,e){t.exports={L:1,M:0,Q:3,H:2}},function(t,e,r){var n=r(166);function i(t,e){if(null==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var n=0;n<t.length-r;n++)this.num[n]=t[n+r]}i.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),r=0;r<this.getLength();r++)for(var o=0;o<t.getLength();o++)e[r+o]^=n.gexp(n.glog(this.get(r))+n.glog(t.get(o)));return new i(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=n.glog(this.get(0))-n.glog(t.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(o=0;o<t.getLength();o++)r[o]^=n.gexp(n.glog(t.get(o))+e);return new i(r,0).mod(t)}},t.exports=i},function(t,e){for(var r={glog:function(t){if(t<1)throw new Error("glog("+t+")");return r.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return r.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)r.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)r.EXP_TABLE[n]=r.EXP_TABLE[n-4]^r.EXP_TABLE[n-5]^r.EXP_TABLE[n-6]^r.EXP_TABLE[n-8];for(n=0;n<255;n++)r.LOG_TABLE[r.EXP_TABLE[n]]=n;t.exports=r},function(t,e,r){"use strict";var n=String.prototype.replace,i=/%20/g,o=r(87),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=o.assign({default:a.RFC3986,formatters:{RFC1738:function(t){return n.call(t,i,"+")},RFC3986:function(t){return String(t)}}},a)},function(t,e,r){var n=r(352);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){t.exports=!r(26)&&!r(48)((function(){return 7!=Object.defineProperty(r(170)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(39),i=r(24).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,r){var n=r(32),i=r(40),o=r(354)(!1),a=r(91)("IE_PROTO");t.exports=function(t,e){var r,s=i(t),u=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~o(l,r)||l.push(r));return l}},function(t,e,r){var n=r(173);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){"use strict";var n=r(64),i=r(37),o=r(175),a=r(38),s=r(96),u=r(361),l=r(98),c=r(364),f=r(41)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,r,p,g,v,y){u(r,e,p);var m,b,E,T=function(t){if(!d&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=e+" Iterator",S="values"==g,_=!1,k=t.prototype,x=k[f]||k["@@iterator"]||g&&k[g],A=x||T(g),O=g?S?T("entries"):A:void 0,P="Array"==e&&k.entries||x;if(P&&(E=c(P.call(new t)))!==Object.prototype&&E.next&&(l(E,w,!0),n||"function"==typeof E[f]||a(E,f,h)),S&&x&&"values"!==x.name&&(_=!0,A=function(){return x.call(this)}),n&&!y||!d&&!_&&k[f]||a(k,f,A),s[e]=A,s[w]=h,g)if(m={values:S?A:T("values"),keys:v?A:T("keys"),entries:O},y)for(b in m)b in k||o(k,b,m[b]);else i(i.P+i.F*(d||_),e,m);return m}},function(t,e,r){t.exports=r(38)},function(t,e,r){var n=r(171),i=r(93).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(66),i=r(62),o=r(40),a=r(88),s=r(32),u=r(169),l=Object.getOwnPropertyDescriptor;e.f=r(26)?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e,r){t.exports={default:r(388),__esModule:!0}},function(t,e){t.exports=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,r){"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}(r(0)),i=s(r(1)),o=s(r(5)),a=r(68);r(181);function s(t){return t&&t.__esModule?t:{default:t}}e.UNMOUNTED="unmounted";e.EXITED="exited";e.ENTERING="entering";e.ENTERED="entered";e.EXITING="exiting";var u=function(t){var e,r;function n(e,r){var n;n=t.call(this,e,r)||this;var i,o=r.transitionGroup,a=o&&!o.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?a?(i="exited",n.appearStatus="entering"):i="entered":i=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",n.state={status:i},n.nextCallback=null,n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?"entering"!==r&&"entered"!==r&&(e="entering"):"entering"!==r&&"entered"!==r||(e="exiting")}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!=typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var r=o.default.findDOMNode(this);"entering"===e?this.performEnter(r,t):this.performExit(r)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(t,e){var r=this,n=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,o=this.getTimeouts(),a=i?o.appear:o.enter;e||n?(this.props.onEnter(t,i),this.safeSetState({status:"entering"},(function(){r.props.onEntering(t,i),r.onTransitionEnd(t,a,(function(){r.safeSetState({status:"entered"},(function(){r.props.onEntered(t,i)}))}))}))):this.safeSetState({status:"entered"},(function(){r.props.onEntered(t)}))},a.performExit=function(t){var e=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(t),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(t),e.onTransitionEnd(t,n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},a.onTransitionEnd=function(t,e,r){this.setNextCallback(r);var n=null==e&&!this.props.addEndListener;t&&!n?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,r=e.children,n=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(e,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(t,n);var o=i.default.Children.only(r);return i.default.cloneElement(o,n)},n}(i.default.Component);function l(){}u.contextTypes={transitionGroup:n.object},u.childContextTypes={transitionGroup:function(){}},u.propTypes={},u.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:l,onEntering:l,onEntered:l,onExit:l,onExiting:l,onExited:l},u.UNMOUNTED=0,u.EXITED=1,u.ENTERING=2,u.ENTERED=3,u.EXITING=4;var c=(0,a.polyfill)(u);e.default=c},function(t,e,r){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var n;(n=r(0))&&n.__esModule;e.timeoutsShape=null;e.classNamesShape=null},function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=s(r(0)),i=s(r(1)),o=r(68),a=r(398);function s(t){return t&&t.__esModule?t:{default:t}}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var c=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},f=function(t){var e,r;function n(e,r){var n,i=(n=t.call(this,e,r)||this).handleExited.bind(l(l(n)));return n.state={handleExited:i,firstRender:!0},n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,e){var r=e.children,n=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,n):(0,a.getNextChildMapping)(t,r,n),firstRender:!1}},o.handleExited=function(t,e){var r=(0,a.getChildMapping)(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var r=u({},e.children);return delete r[t.key],{children:r}})))},o.render=function(){var t=this.props,e=t.component,r=t.childFactory,n=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,["component","childFactory"]),o=c(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===e?o:i.default.createElement(e,n,o)},n}(i.default.Component);f.childContextTypes={transitionGroup:n.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var d=(0,o.polyfill)(f);e.default=d,t.exports=e.default},function(t,e,r){"use strict";r.r(e);var n=r(13),i=r.n(n),o=r(69),a=r.n(o),s=r(8),u=r.n(s),l=r(7),c=r.n(l),f=r(9),d=r.n(f),h=r(1),p=r.n(h),g=r(0),v=r.n(g),y=r(184),m=r(194),b=function(t){function e(){var r,n,i;u()(this,e);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=n=c()(this,t.call.apply(t,[this].concat(a))),n.getPopupElement=function(){var t=n.props,e=t.arrowContent,r=t.overlay,i=t.prefixCls,o=t.id;return[p.a.createElement("div",{className:i+"-arrow",key:"arrow"},e),p.a.createElement("div",{className:i+"-inner",key:"content",id:o},"function"==typeof r?r():r)]},n.saveTrigger=function(t){n.trigger=t},i=r,c()(n,i)}return d()(e,t),e.prototype.getPopupDomNode=function(){return this.trigger.getPopupDomNode()},e.prototype.render=function(){var t=this.props,e=t.overlayClassName,r=t.trigger,n=t.mouseEnterDelay,o=t.mouseLeaveDelay,s=t.overlayStyle,u=t.prefixCls,l=t.children,c=t.onVisibleChange,f=t.afterVisibleChange,d=t.transitionName,h=t.animation,g=t.placement,v=t.align,b=t.destroyTooltipOnHide,E=t.defaultVisible,T=t.getTooltipContainer,w=a()(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),S=i()({},w);return"visible"in this.props&&(S.popupVisible=this.props.visible),p.a.createElement(y.default,i()({popupClassName:e,ref:this.saveTrigger,prefixCls:u,popup:this.getPopupElement,action:r,builtinPlacements:m.placements,popupPlacement:g,popupAlign:v,getPopupContainer:T,onPopupVisibleChange:c,afterPopupVisibleChange:f,popupTransitionName:d,popupAnimation:h,defaultPopupVisible:E,destroyPopupOnHide:b,mouseLeaveDelay:o,popupStyle:s,mouseEnterDelay:n},S),l)},e}(h.Component);b.propTypes={trigger:v.a.any,children:v.a.any,defaultVisible:v.a.bool,visible:v.a.bool,placement:v.a.string,transitionName:v.a.oneOfType([v.a.string,v.a.object]),animation:v.a.any,onVisibleChange:v.a.func,afterVisibleChange:v.a.func,overlay:v.a.oneOfType([v.a.node,v.a.func]).isRequired,overlayStyle:v.a.object,overlayClassName:v.a.string,prefixCls:v.a.string,mouseEnterDelay:v.a.number,mouseLeaveDelay:v.a.number,getTooltipContainer:v.a.func,destroyTooltipOnHide:v.a.bool,align:v.a.object,arrowContent:v.a.any,id:v.a.string},b.defaultProps={prefixCls:"rc-tooltip",mouseEnterDelay:0,destroyTooltipOnHide:!1,mouseLeaveDelay:.1,align:{},placement:"right",trigger:["hover"],arrowContent:null},e.default=b},function(t,e,r){"use strict";r.r(e);var n=r(13),i=r.n(n),o=r(8),a=r.n(o),s=r(7),u=r.n(s),l=r(9),c=r.n(l),f=r(1),d=r.n(f),h=r(0),p=r.n(h),g=r(5),v=r(68),y=r(49),m=r(33),b=r(186),E=r(187),T=r(102),w=r.n(T),S=r(43),_=r(188);function k(){}var x=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],A=!!g.createPortal,O={rcTrigger:p.a.shape({onPopupMouseDown:p.a.func})},P=function(t){function e(r){a()(this,e);var n=u()(this,t.call(this,r));C.call(n);var i=void 0;return i="popupVisible"in r?!!r.popupVisible:!!r.defaultPopupVisible,n.state={prevPopupVisible:i,popupVisible:i},x.forEach((function(t){n["fire"+t]=function(e){n.fireEvents(t,e)}})),n}return c()(e,t),e.prototype.getChildContext=function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}},e.prototype.componentDidMount=function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},e.prototype.componentDidUpdate=function(t,e){var r=this.props,n=this.state;if(A||this.renderComponent(null,(function(){e.popupVisible!==n.popupVisible&&r.afterPopupVisibleChange(n.popupVisible)})),n.popupVisible){var i=void 0;return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(i=r.getDocument(),this.clickOutsideHandler=Object(m.default)(i,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(i=i||r.getDocument(),this.touchOutsideHandler=Object(m.default)(i,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(i=i||r.getDocument(),this.contextMenuOutsideHandler1=Object(m.default)(i,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(m.default)(window,"blur",this.onContextMenuClose)))}this.clearOutsideHandler()},e.prototype.componentWillUnmount=function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},e.getDerivedStateFromProps=function(t,e){var r=t.popupVisible,n={};return void 0!==r&&e.popupVisible!==r&&(n.popupVisible=r,n.prevPopupVisible=e.popupVisible),n},e.prototype.getPopupDomNode=function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},e.prototype.getPopupAlign=function(){var t=this.props,e=t.popupPlacement,r=t.popupAlign,n=t.builtinPlacements;return e&&n?Object(S.getAlignFromPlacement)(n,e,r):r},e.prototype.setPopupVisible=function(t,e){var r=this.props.alignPoint,n=this.state.popupVisible;this.clearDelayTimer(),n!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:n}),this.props.onPopupVisibleChange(t)),r&&e&&this.setPoint(e)},e.prototype.delaySetPopupVisible=function(t,e,r){var n=this,i=1e3*e;if(this.clearDelayTimer(),i){var o=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=setTimeout((function(){n.setPopupVisible(t,o),n.clearDelayTimer()}),i)}else this.setPopupVisible(t,r)},e.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},e.prototype.clearOutsideHandler=function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},e.prototype.createTwoChains=function(t){var e=this.props.children.props,r=this.props;return e[t]&&r[t]?this["fire"+t]:e[t]||r[t]},e.prototype.isClickToShow=function(){var t=this.props,e=t.action,r=t.showAction;return-1!==e.indexOf("click")||-1!==r.indexOf("click")},e.prototype.isContextMenuToShow=function(){var t=this.props,e=t.action,r=t.showAction;return-1!==e.indexOf("contextMenu")||-1!==r.indexOf("contextMenu")},e.prototype.isClickToHide=function(){var t=this.props,e=t.action,r=t.hideAction;return-1!==e.indexOf("click")||-1!==r.indexOf("click")},e.prototype.isMouseEnterToShow=function(){var t=this.props,e=t.action,r=t.showAction;return-1!==e.indexOf("hover")||-1!==r.indexOf("mouseEnter")},e.prototype.isMouseLeaveToHide=function(){var t=this.props,e=t.action,r=t.hideAction;return-1!==e.indexOf("hover")||-1!==r.indexOf("mouseLeave")},e.prototype.isFocusToShow=function(){var t=this.props,e=t.action,r=t.showAction;return-1!==e.indexOf("focus")||-1!==r.indexOf("focus")},e.prototype.isBlurToHide=function(){var t=this.props,e=t.action,r=t.hideAction;return-1!==e.indexOf("focus")||-1!==r.indexOf("blur")},e.prototype.forcePopupAlign=function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},e.prototype.fireEvents=function(t,e){var r=this.props.children.props[t];r&&r(e);var n=this.props[t];n&&n(e)},e.prototype.close=function(){this.setPopupVisible(!1)},e.prototype.render=function(){var t=this,e=this.state.popupVisible,r=this.props,n=r.children,i=r.forceRender,o=r.alignPoint,a=r.className,s=d.a.Children.only(n),u={key:"trigger"};this.isContextMenuToShow()?u.onContextMenu=this.onContextMenu:u.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(u.onClick=this.onClick,u.onMouseDown=this.onMouseDown,u.onTouchStart=this.onTouchStart):(u.onClick=this.createTwoChains("onClick"),u.onMouseDown=this.createTwoChains("onMouseDown"),u.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(u.onMouseEnter=this.onMouseEnter,o&&(u.onMouseMove=this.onMouseMove)):u.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?u.onMouseLeave=this.onMouseLeave:u.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(u.onFocus=this.onFocus,u.onBlur=this.onBlur):(u.onFocus=this.createTwoChains("onFocus"),u.onBlur=this.createTwoChains("onBlur"));var l=w()(s&&s.props&&s.props.className,a);l&&(u.className=l);var c=d.a.cloneElement(s,u);if(!A)return d.a.createElement(b.default,{parent:this,visible:e,autoMount:!1,forceRender:i,getComponent:this.getComponent,getContainer:this.getContainer},(function(e){var r=e.renderComponent;return t.renderComponent=r,c}));var f=void 0;return(e||this._component||i)&&(f=d.a.createElement(E.default,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[c,f]},e}(d.a.Component);P.propTypes={children:p.a.any,action:p.a.oneOfType([p.a.string,p.a.arrayOf(p.a.string)]),showAction:p.a.any,hideAction:p.a.any,getPopupClassNameFromAlign:p.a.any,onPopupVisibleChange:p.a.func,afterPopupVisibleChange:p.a.func,popup:p.a.oneOfType([p.a.node,p.a.func]).isRequired,popupStyle:p.a.object,prefixCls:p.a.string,popupClassName:p.a.string,className:p.a.string,popupPlacement:p.a.string,builtinPlacements:p.a.object,popupTransitionName:p.a.oneOfType([p.a.string,p.a.object]),popupAnimation:p.a.any,mouseEnterDelay:p.a.number,mouseLeaveDelay:p.a.number,zIndex:p.a.number,focusDelay:p.a.number,blurDelay:p.a.number,getPopupContainer:p.a.func,getDocument:p.a.func,forceRender:p.a.bool,destroyPopupOnHide:p.a.bool,mask:p.a.bool,maskClosable:p.a.bool,onPopupAlign:p.a.func,popupAlign:p.a.object,popupVisible:p.a.bool,defaultPopupVisible:p.a.bool,maskTransitionName:p.a.oneOfType([p.a.string,p.a.object]),maskAnimation:p.a.string,stretch:p.a.string,alignPoint:p.a.bool},P.contextTypes=O,P.childContextTypes=O,P.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(){return window.document},onPopupVisibleChange:k,afterPopupVisibleChange:k,onPopupAlign:k,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};var C=function(){var t=this;this.onMouseEnter=function(e){var r=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,r,r?null:e)},this.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},this.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},this.onPopupMouseEnter=function(){t.clearDelayTimer()},this.onPopupMouseLeave=function(e){e.relatedTarget&&!e.relatedTarget.setTimeout&&t._component&&t._component.getPopupDomNode&&Object(y.default)(t._component.getPopupDomNode(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},this.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},this.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},this.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},this.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},this.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},this.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},this.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var r=void 0;if(t.preClickTime&&t.preTouchTime?r=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?r=t.preClickTime:t.preTouchTime&&(r=t.preTouchTime),Math.abs(r-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!t.state.popupVisible;(t.isClickToHide()&&!n||n&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},this.onPopupMouseDown=function(){var e=t.context.rcTrigger,r=void 0===e?{}:e;t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=setTimeout((function(){t.hasPopupMouseDown=!1}),0),r.onPopupMouseDown&&r.onPopupMouseDown.apply(r,arguments)},this.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var r=e.target,n=Object(g.findDOMNode)(t);Object(y.default)(n,r)||t.hasPopupMouseDown||t.close()}},this.getRootDomNode=function(){return Object(g.findDOMNode)(t)},this.getPopupClassNameFromAlign=function(e){var r=[],n=t.props,i=n.popupPlacement,o=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,u=n.getPopupClassNameFromAlign;return i&&o&&r.push(Object(S.getAlignPopupClassName)(o,a,e,s)),u&&r.push(u(e)),r.join(" ")},this.getComponent=function(){var e=t.props,r=e.prefixCls,n=e.destroyPopupOnHide,o=e.popupClassName,a=e.action,s=e.onPopupAlign,u=e.popupAnimation,l=e.popupTransitionName,c=e.popupStyle,f=e.mask,h=e.maskAnimation,p=e.maskTransitionName,g=e.zIndex,v=e.popup,y=e.stretch,m=e.alignPoint,b=t.state,E=b.popupVisible,T=b.point,w=t.getPopupAlign(),S={};return t.isMouseEnterToShow()&&(S.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(S.onMouseLeave=t.onPopupMouseLeave),S.onMouseDown=t.onPopupMouseDown,S.onTouchStart=t.onPopupMouseDown,d.a.createElement(_.default,i()({prefixCls:r,destroyPopupOnHide:n,visible:E,point:m&&T,className:o,action:a,align:w,onAlign:s,animation:u,getClassNameFromAlign:t.getPopupClassNameFromAlign},S,{stretch:y,getRootDomNode:t.getRootDomNode,style:c,mask:f,zIndex:g,transitionName:l,maskAnimation:h,maskTransitionName:p,ref:t.savePopup}),"function"==typeof v?v():v)},this.getContainer=function(){var e=t.props,r=document.createElement("div");return r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",(e.getPopupContainer?e.getPopupContainer(Object(g.findDOMNode)(t)):e.getDocument().body).appendChild(r),r},this.setPoint=function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},this.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},this.savePopup=function(e){t._component=e}};Object(v.polyfill)(P),e.default=P},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,n){function i(e){var n=new o.default(e);r.call(t,n)}if(t.addEventListener){var a=(s=!1,"object"==typeof n?s=n.capture||!1:"boolean"==typeof n&&(s=n),t.addEventListener(e,i,n||!1),{v:{remove:function(){t.removeEventListener(e,i,s)}}});if("object"==typeof a)return a.v}else if(t.attachEvent)return t.attachEvent("on"+e,i),{remove:function(){t.detachEvent("on"+e,i)}};var s};var n,i=r(386),o=(n=i)&&n.__esModule?n:{default:n};t.exports=e.default},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return v}));var n=r(1),i=r.n(n),o=r(5),a=r.n(o),s=r(0),u=r.n(s);function l(t){return(l="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 c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(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 r,n=g(t);if(e){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!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&&d(t,e)}(o,t);var e,r,n,i=h(o);function o(){var t;c(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=i.call.apply(i,[this].concat(r))).removeContainer=function(){t.container&&(a.a.unmountComponentAtNode(t.container),t.container.parentNode.removeChild(t.container),t.container=null)},t.renderComponent=function(e,r){var n=t.props,i=n.visible,o=n.getComponent,s=n.forceRender,u=n.getContainer,l=n.parent;(i||l._component||s)&&(t.container||(t.container=u()),a.a.unstable_renderSubtreeIntoContainer(l,o(e),t.container,(function(){r&&r.call(this)})))},t}return e=o,(r=[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}])&&f(e.prototype,r),n&&f(e,n),o}(i.a.Component);v.propTypes={autoMount:u.a.bool,autoDestroy:u.a.bool,visible:u.a.bool,forceRender:u.a.bool,parent:u.a.any,getComponent:u.a.func.isRequired,getContainer:u.a.func.isRequired,children:u.a.func.isRequired},v.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1}},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return v}));var n=r(1),i=r.n(n),o=r(5),a=r.n(o),s=r(0),u=r.n(s);function l(t){return(l="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 c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(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 r,n=g(t);if(e){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!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&&d(t,e)}(o,t);var e,r,n,i=h(o);function o(){return c(this,o),i.apply(this,arguments)}return e=o,(r=[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(t){var e=this.props.didUpdate;e&&e(t)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?a.a.createPortal(this.props.children,this._container):null}}])&&f(e.prototype,r),n&&f(e,n),o}(i.a.Component);v.propTypes={getContainer:u.a.func.isRequired,children:u.a.node.isRequired,didUpdate:u.a.func}},function(t,e,r){"use strict";r.r(e);var n=r(13),i=r.n(n),o=r(8),a=r.n(o),s=r(7),u=r.n(s),l=r(9),c=r.n(l),f=r(1),d=r.n(f),h=r(0),p=r.n(h),g=r(5),v=r.n(g),y=r(103),m=r(71),b=r(106),E=r(70),T=r(43),w=function(t){function e(r){a()(this,e);var n=u()(this,t.call(this,r));return S.call(n),n.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},n.savePopupRef=T.saveRef.bind(n,"popupInstance"),n.saveAlignRef=T.saveRef.bind(n,"alignInstance"),n}return c()(e,t),e.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},e.prototype.componentDidUpdate=function(){this.setStretchSize()},e.prototype.getPopupDomNode=function(){return v.a.findDOMNode(this.popupInstance)},e.prototype.getMaskTransitionName=function(){var t=this.props,e=t.maskTransitionName,r=t.maskAnimation;return!e&&r&&(e=t.prefixCls+"-"+r),e},e.prototype.getTransitionName=function(){var t=this.props,e=t.transitionName;return!e&&t.animation&&(e=t.prefixCls+"-"+t.animation),e},e.prototype.getClassName=function(t){return this.props.prefixCls+" "+this.props.className+" "+t},e.prototype.getPopupElement=function(){var t=this,e=this.savePopupRef,r=this.state,n=r.stretchChecked,o=r.targetHeight,a=r.targetWidth,s=this.props,u=s.align,l=s.visible,c=s.prefixCls,f=s.style,h=s.getClassNameFromAlign,p=s.destroyPopupOnHide,g=s.stretch,v=s.children,E=s.onMouseEnter,T=s.onMouseLeave,w=s.onMouseDown,S=s.onTouchStart,_=this.getClassName(this.currentAlignClassName||h(u)),k=c+"-hidden";l||(this.currentAlignClassName=null);var x={};g&&(-1!==g.indexOf("height")?x.height=o:-1!==g.indexOf("minHeight")&&(x.minHeight=o),-1!==g.indexOf("width")?x.width=a:-1!==g.indexOf("minWidth")&&(x.minWidth=a),n||(x.visibility="hidden",setTimeout((function(){t.alignInstance&&t.alignInstance.forceAlign()}),0)));var A={className:_,prefixCls:c,ref:e,onMouseEnter:E,onMouseLeave:T,onMouseDown:w,onTouchStart:S,style:i()({},x,f,this.getZIndexStyle())};return p?d.a.createElement(m.default,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},l?d.a.createElement(y.default,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:u,onAlign:this.onAlign},d.a.createElement(b.default,i()({visible:!0},A),v)):null):d.a.createElement(m.default,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},d.a.createElement(y.default,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:l,childrenProps:{visible:"xVisible"},disabled:!l,align:u,onAlign:this.onAlign},d.a.createElement(b.default,i()({hiddenClassName:k},A),v)))},e.prototype.getZIndexStyle=function(){var t={},e=this.props;return void 0!==e.zIndex&&(t.zIndex=e.zIndex),t},e.prototype.getMaskElement=function(){var t=this.props,e=void 0;if(t.mask){var r=this.getMaskTransitionName();e=d.a.createElement(E.default,{style:this.getZIndexStyle(),key:"mask",className:t.prefixCls+"-mask",hiddenClassName:t.prefixCls+"-mask-hidden",visible:t.visible}),r&&(e=d.a.createElement(m.default,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:r},e))}return e},e.prototype.render=function(){return d.a.createElement("div",null,this.getMaskElement(),this.getPopupElement())},e}(f.Component);w.propTypes={visible:p.a.bool,style:p.a.object,getClassNameFromAlign:p.a.func,onAlign:p.a.func,getRootDomNode:p.a.func,align:p.a.any,destroyPopupOnHide:p.a.bool,className:p.a.string,prefixCls:p.a.string,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onMouseDown:p.a.func,onTouchStart:p.a.func,stretch:p.a.string,children:p.a.node,point:p.a.shape({pageX:p.a.number,pageY:p.a.number})};var S=function(){var t=this;this.onAlign=function(e,r){var n=t.props,i=n.getClassNameFromAlign(r);t.currentAlignClassName!==i&&(t.currentAlignClassName=i,e.className=t.getClassName(i)),n.onAlign(e,r)},this.setStretchSize=function(){var e=t.props,r=e.stretch,n=e.getRootDomNode,i=e.visible,o=t.state,a=o.stretchChecked,s=o.targetHeight,u=o.targetWidth;if(r&&i){var l=n();if(l){var c=l.offsetHeight,f=l.offsetWidth;s===c&&u===f&&a||t.setState({stretchChecked:!0,targetHeight:c,targetWidth:f})}}else a&&t.setState({stretchChecked:!1})},this.getTargetElement=function(){return t.props.getRootDomNode()},this.getAlignTarget=function(){var e=t.props.point;return e||t.getTargetElement}};e.default=w},function(t,e,r){"use strict";r.r(e);var n=r(8),i=r.n(n),o=r(42),a=r.n(o),s=r(7),u=r.n(s),l=r(9),c=r.n(l),f=r(1),d=r.n(f),h=r(0),p=r.n(h),g=r(5),v=r.n(g),y=r(104),m=r(33),b=r(28);function E(t){return"function"==typeof t&&t?t():null}function T(t){return"object"==typeof t&&t?t:null}var w=function(t){function e(){var t,r,n,o;i()(this,e);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return r=n=u()(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),n.forceAlign=function(){var t=n.props,e=t.disabled,r=t.target,i=t.align,o=t.onAlign;if(!e&&r){var a=v.a.findDOMNode(n),s=void 0,u=E(r),l=T(r),c=document.activeElement;u?s=Object(y.alignElement)(a,u,i):l&&(s=Object(y.alignPoint)(a,l,i)),Object(b.restoreFocus)(c,a),o&&o(a,s)}},o=r,u()(n,o)}return c()(e,t),a()(e,[{key:"componentDidMount",value:function(){var t=this.props;this.forceAlign(),!t.disabled&&t.monitorWindowResize&&this.startMonitorWindowResize()}},{key:"componentDidUpdate",value:function(t){var e=!1,r=this.props;if(!r.disabled){var n=v.a.findDOMNode(this),i=n?n.getBoundingClientRect():null;if(t.disabled)e=!0;else{var o=E(t.target),a=E(r.target),s=T(t.target),u=T(r.target);Object(b.isWindow)(o)&&Object(b.isWindow)(a)?e=!1:(o!==a||o&&!a&&u||s&&u&&a||u&&!Object(b.isSamePoint)(s,u))&&(e=!0);var l=this.sourceRect||{};e||!n||Object(b.isSimilarValue)(l.width,i.width)&&Object(b.isSimilarValue)(l.height,i.height)||(e=!0)}this.sourceRect=i}e&&this.forceAlign(),r.monitorWindowResize&&!r.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()}},{key:"componentWillUnmount",value:function(){this.stopMonitorWindowResize()}},{key:"startMonitorWindowResize",value:function(){this.resizeHandler||(this.bufferMonitor=Object(b.buffer)(this.forceAlign,this.props.monitorBufferTime),this.resizeHandler=Object(m.default)(window,"resize",this.bufferMonitor))}},{key:"stopMonitorWindowResize",value:function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)}},{key:"render",value:function(){var t=this,e=this.props,r=e.childrenProps,n=e.children,i=d.a.Children.only(n);if(r){var o={};return Object.keys(r).forEach((function(e){o[e]=t.props[r[e]]})),d.a.cloneElement(i,o)}return i}}]),e}(f.Component);w.propTypes={childrenProps:p.a.object,align:p.a.object.isRequired,target:p.a.oneOfType([p.a.func,p.a.shape({clientX:p.a.number,clientY:p.a.number,pageX:p.a.number,pageY:p.a.number})]),onAlign:p.a.func,monitorBufferTime:p.a.number,monitorWindowResize:p.a.bool,disabled:p.a.bool,children:p.a.any},w.defaultProps={target:function(){return window},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1},e.default=w},function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(178),o=(n=i)&&n.__esModule?n:{default:n};e.default=function(t,e,r){return e in t?(0,o.default)(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";r.r(e);var n=r(1),i=r.n(n);e.default=function(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");return"function"!=typeof e.componentWillReceiveProps?t:i.a.Profiler?(e.UNSAFE_componentWillReceiveProps=e.componentWillReceiveProps,delete e.componentWillReceiveProps,t):t}},function(t,e,r){"use strict";r.r(e);var n=r(8),i=r.n(n),o=r(42),a=r.n(o),s=r(7),u=r.n(s),l=r(9),c=r.n(l),f=r(1),d=r.n(f),h=r(5),p=r.n(h),g=r(0),v=r.n(g),y=r(105),m=r(27),b={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},E=function(t){function e(){return i()(this,e),u()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c()(e,t),a()(e,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(t){m.default.isEnterSupported(this.props)?this.transition("enter",t):t()}},{key:"componentWillAppear",value:function(t){m.default.isAppearSupported(this.props)?this.transition("appear",t):t()}},{key:"componentWillLeave",value:function(t){m.default.isLeaveSupported(this.props)?this.transition("leave",t):t()}},{key:"transition",value:function(t,e){var r=this,n=p.a.findDOMNode(this),i=this.props,o=i.transitionName,a="object"==typeof o;this.stop();var s=function(){r.stopper=null,e()};if((y.isCssAnimationSupported||!i.animation[t])&&o&&i[b[t]]){var u=a?o[t]:o+"-"+t,l=u+"-active";a&&o[t+"Active"]&&(l=o[t+"Active"]),this.stopper=Object(y.default)(n,{name:u,active:l},s)}else this.stopper=i.animation[t](n,s)}},{key:"stop",value:function(){var t=this.stopper;t&&(this.stopper=null,t.stop())}},{key:"render",value:function(){return this.props.children}}]),e}(d.a.Component);E.propTypes={children:v.a.any,animation:v.a.any,transitionName:v.a.any},e.default=E},function(t,e,r){try{var n=r(179)}catch(t){n=r(179)}var i=/\s+/,o=Object.prototype.toString;function a(t){if(!t||!t.nodeType)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}t.exports=function(t){return new a(t)},a.prototype.add=function(t){if(this.list)return this.list.add(t),this;var e=this.array();return~n(e,t)||e.push(t),this.el.className=e.join(" "),this},a.prototype.remove=function(t){if("[object RegExp]"==o.call(t))return this.removeMatching(t);if(this.list)return this.list.remove(t),this;var e=this.array(),r=n(e,t);return~r&&e.splice(r,1),this.el.className=e.join(" "),this},a.prototype.removeMatching=function(t){for(var e=this.array(),r=0;r<e.length;r++)t.test(e[r])&&this.remove(e[r]);return this},a.prototype.toggle=function(t,e){return this.list?(void 0!==e?e!==this.list.toggle(t,e)&&this.list.toggle(t):this.list.toggle(t),this):(void 0!==e?e?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},a.prototype.array=function(){var t=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(i);return""===t[0]&&t.shift(),t},a.prototype.has=a.prototype.contains=function(t){return this.list?this.list.contains(t):!!~n(this.array(),t)}},function(t,e,r){"use strict";r.r(e),r.d(e,"placements",(function(){return o}));var n={adjustX:1,adjustY:1},i=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:i},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:i},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:i},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:i},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:i},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:i},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:i},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:i},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:i},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:i},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:i},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:i}};e.default=o},function(t,e,r){"use strict";function n(t){return"/"===t.charAt(0)}function i(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}r.r(e),e.default=function(t,e){void 0===e&&(e="");var r,o=t&&t.split("/")||[],a=e&&e.split("/")||[],s=t&&n(t),u=e&&n(e),l=s||u;if(t&&n(t)?a=o:o.length&&(a.pop(),a=a.concat(o)),!a.length)return"/";if(a.length){var c=a[a.length-1];r="."===c||".."===c||""===c}else r=!1;for(var f=0,d=a.length;d>=0;d--){var h=a[d];"."===h?i(a,d):".."===h?(i(a,d),f++):f&&(i(a,d),f--)}if(!l)for(;f--;f)a.unshift("..");!l||""===a[0]||a[0]&&n(a[0])||a.unshift("");var p=a.join("/");return r&&"/"!==p.substr(-1)&&(p+="/"),p}},function(t,e,r){"use strict";function n(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}r.r(e),e.default=function t(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return Array.isArray(r)&&e.length===r.length&&e.every((function(e,n){return t(e,r[n])}));if("object"==typeof e||"object"==typeof r){var i=n(e),o=n(r);return i!==e||o!==r?t(i,o):Object.keys(Object.assign({},e,r)).every((function(n){return t(e[n],r[n])}))}return!1}},function(t,e,r){t.exports=r},function(t,e,r){"use strict";
/** @license React v16.12.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=r(50),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113;i&&Symbol.for("react.suspense_list");var p=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116;i&&Symbol.for("react.fundamental"),i&&Symbol.for("react.responder"),i&&Symbol.for("react.scope");var v="function"==typeof Symbol&&Symbol.iterator;function y(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function E(t,e,r){this.props=t,this.context=e,this.refs=b,this.updater=r||m}function T(){}function w(t,e,r){this.props=t,this.context=e,this.refs=b,this.updater=r||m}E.prototype.isReactComponent={},E.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(y(85));this.updater.enqueueSetState(this,t,e,"setState")},E.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},T.prototype=E.prototype;var S=w.prototype=new T;S.constructor=w,n(S,E.prototype),S.isPureReactComponent=!0;var _={current:null},k={current:null},x=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function O(t,e,r){var n,i={},a=null,s=null;if(null!=e)for(n in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)x.call(e,n)&&!A.hasOwnProperty(n)&&(i[n]=e[n]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(n in u=t.defaultProps)void 0===i[n]&&(i[n]=u[n]);return{$$typeof:o,type:t,key:a,ref:s,props:i,_owner:k.current}}function P(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var C=/\/+/g,R=[];function D(t,e,r,n){if(R.length){var i=R.pop();return i.result=t,i.keyPrefix=e,i.func=r,i.context=n,i.count=0,i}return{result:t,keyPrefix:e,func:r,context:n,count:0}}function L(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>R.length&&R.push(t)}function I(t,e,r){return null==t?0:function t(e,r,n,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case a:u=!0}}if(u)return n(i,e,""===r?"."+M(e,0):r),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+M(s=e[l],l);u+=t(s,c,n,i)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=v&&e[v]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=t(s=s.value,c=r+M(s,l++),n,i);else if("object"===s)throw n=""+e,Error(y(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return u}(t,"",e,r)}function M(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function N(t,e){t.func.call(t.context,e,t.count++)}function j(t,e,r){var n=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?B(t,n,r,(function(t){return t})):null!=t&&(P(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(C,"$&/")+"/")+r)),n.push(t))}function B(t,e,r,n,i){var o="";null!=r&&(o=(""+r).replace(C,"$&/")+"/"),I(t,j,e=D(e,o,n,i)),L(e)}function F(){var t=_.current;if(null===t)throw Error(y(321));return t}var U={Children:{map:function(t,e,r){if(null==t)return t;var n=[];return B(t,n,null,e,r),n},forEach:function(t,e,r){if(null==t)return t;I(t,N,e=D(null,null,e,r)),L(e)},count:function(t){return I(t,(function(){return null}),null)},toArray:function(t){var e=[];return B(t,e,null,(function(t){return t})),e},only:function(t){if(!P(t))throw Error(y(143));return t}},createRef:function(){return{current:null}},Component:E,PureComponent:w,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:d,render:t}},lazy:function(t){return{$$typeof:g,_ctor:t,_status:-1,_result:null}},memo:function(t,e){return{$$typeof:p,type:t,compare:void 0===e?null:e}},useCallback:function(t,e){return F().useCallback(t,e)},useContext:function(t,e){return F().useContext(t,e)},useEffect:function(t,e){return F().useEffect(t,e)},useImperativeHandle:function(t,e,r){return F().useImperativeHandle(t,e,r)},useDebugValue:function(){},useLayoutEffect:function(t,e){return F().useLayoutEffect(t,e)},useMemo:function(t,e){return F().useMemo(t,e)},useReducer:function(t,e,r){return F().useReducer(t,e,r)},useRef:function(t){return F().useRef(t)},useState:function(t){return F().useState(t)},Fragment:s,Profiler:l,StrictMode:u,Suspense:h,createElement:O,cloneElement:function(t,e,r){if(null==t)throw Error(y(267,t));var i=n({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,u=k.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)x.call(e,c)&&!A.hasOwnProperty(c)&&(i[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:t.type,key:a,ref:s,props:i,_owner:u}},createFactory:function(t){var e=O.bind(null,t);return e.type=t,e},isValidElement:P,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:_,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:n}},H={default:U},V=H&&U||H;t.exports=V.default||V},function(t,e,r){"use strict";
/** @license React v16.12.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=r(1),i=r(50),o=r(200);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(a(227));var s=null,u={};function l(){if(s)for(var t in u){var e=u[t],r=s.indexOf(t);if(!(-1<r))throw Error(a(96,t));if(!f[r]){if(!e.extractEvents)throw Error(a(97,t));for(var n in f[r]=e,r=e.eventTypes){var i=void 0,o=r[n],l=e,h=n;if(d.hasOwnProperty(h))throw Error(a(99,h));d[h]=o;var p=o.phasedRegistrationNames;if(p){for(i in p)p.hasOwnProperty(i)&&c(p[i],l,h);i=!0}else o.registrationName?(c(o.registrationName,l,h),i=!0):i=!1;if(!i)throw Error(a(98,n,t))}}}}function c(t,e,r){if(h[t])throw Error(a(100,t));h[t]=e,p[t]=e.eventTypes[r].dependencies}var f=[],d={},h={},p={};function g(t,e,r,n,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{e.apply(r,l)}catch(t){this.onError(t)}}var v=!1,y=null,m=!1,b=null,E={onError:function(t){v=!0,y=t}};function T(t,e,r,n,i,o,a,s,u){v=!1,y=null,g.apply(E,arguments)}var w=null,S=null,_=null;function k(t,e,r){var n=t.type||"unknown-event";t.currentTarget=_(r),function(t,e,r,n,i,o,s,u,l){if(T.apply(this,arguments),v){if(!v)throw Error(a(198));var c=y;v=!1,y=null,m||(m=!0,b=c)}}(n,e,void 0,t),t.currentTarget=null}function x(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function A(t,e,r){Array.isArray(t)?t.forEach(e,r):t&&e.call(r,t)}var O=null;function P(t){if(t){var e=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(e))for(var n=0;n<e.length&&!t.isPropagationStopped();n++)k(t,e[n],r[n]);else e&&k(t,e,r);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function C(t){if(null!==t&&(O=x(O,t)),t=O,O=null,t){if(A(t,P),O)throw Error(a(95));if(m)throw t=b,m=!1,b=null,t}}var R={injectEventPluginOrder:function(t){if(s)throw Error(a(101));s=Array.prototype.slice.call(t),l()},injectEventPluginsByName:function(t){var e,r=!1;for(e in t)if(t.hasOwnProperty(e)){var n=t[e];if(!u.hasOwnProperty(e)||u[e]!==n){if(u[e])throw Error(a(102,e));u[e]=n,r=!0}}r&&l()}};function D(t,e){var r=t.stateNode;if(!r)return null;var n=w(r);if(!n)return null;r=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(n=!n.disabled)||(n=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!n;break t;default:t=!1}if(t)return null;if(r&&"function"!=typeof r)throw Error(a(231,e,typeof r));return r}var L=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;L.hasOwnProperty("ReactCurrentDispatcher")||(L.ReactCurrentDispatcher={current:null}),L.hasOwnProperty("ReactCurrentBatchConfig")||(L.ReactCurrentBatchConfig={suspense:null});var I=/^(.*)[\\\/]/,M="function"==typeof Symbol&&Symbol.for,N=M?Symbol.for("react.element"):60103,j=M?Symbol.for("react.portal"):60106,B=M?Symbol.for("react.fragment"):60107,F=M?Symbol.for("react.strict_mode"):60108,U=M?Symbol.for("react.profiler"):60114,H=M?Symbol.for("react.provider"):60109,V=M?Symbol.for("react.context"):60110,z=M?Symbol.for("react.concurrent_mode"):60111,G=M?Symbol.for("react.forward_ref"):60112,W=M?Symbol.for("react.suspense"):60113,K=M?Symbol.for("react.suspense_list"):60120,Y=M?Symbol.for("react.memo"):60115,X=M?Symbol.for("react.lazy"):60116;M&&Symbol.for("react.fundamental"),M&&Symbol.for("react.responder"),M&&Symbol.for("react.scope");var q="function"==typeof Symbol&&Symbol.iterator;function $(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=q&&t[q]||t["@@iterator"])?t:null}function Q(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case B:return"Fragment";case j:return"Portal";case U:return"Profiler";case F:return"StrictMode";case W:return"Suspense";case K:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case V:return"Context.Consumer";case H:return"Context.Provider";case G:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case Y:return Q(t.type);case X:if(t=1===t._status?t._result:null)return Q(t)}return null}function J(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break t;default:var n=t._debugOwner,i=t._debugSource,o=Q(t.type);r=null,n&&(r=Q(n.type)),n=o,o="",i?o=" (at "+i.fileName.replace(I,"")+":"+i.lineNumber+")":r&&(o=" (created by "+r+")"),r="\n in "+(n||"Unknown")+o}e+=r,t=t.return}while(t);return e}var Z=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),tt=null,et=null,rt=null;function nt(t){if(t=S(t)){if("function"!=typeof tt)throw Error(a(280));var e=w(t.stateNode);tt(t.stateNode,t.type,e)}}function it(t){et?rt?rt.push(t):rt=[t]:et=t}function ot(){if(et){var t=et,e=rt;if(rt=et=null,nt(t),e)for(t=0;t<e.length;t++)nt(e[t])}}function at(t,e){return t(e)}function st(t,e,r,n){return t(e,r,n)}function ut(){}var lt=at,ct=!1,ft=!1;function dt(){null===et&&null===rt||(ut(),ot())}new Map;var ht=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pt=Object.prototype.hasOwnProperty,gt={},vt={};function yt(t,e,r,n,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=o}var mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){mt[t]=new yt(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];mt[e]=new yt(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){mt[t]=new yt(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){mt[t]=new yt(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){mt[t]=new yt(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){mt[t]=new yt(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){mt[t]=new yt(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){mt[t]=new yt(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){mt[t]=new yt(t,5,!1,t.toLowerCase(),null,!1)}));var bt=/[\-:]([a-z])/g;function Et(t){return t[1].toUpperCase()}function Tt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function wt(t,e,r,n){var i=mt.hasOwnProperty(e)?mt[e]:null;(null!==i?0===i.type:!n&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,r,n){if(null==e||function(t,e,r,n){if(null!==r&&0===r.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,r,i,n)&&(r=null),n||null===i?function(t){return!!pt.call(vt,t)||!pt.call(gt,t)&&(ht.test(t)?vt[t]=!0:(gt[t]=!0,!1))}(e)&&(null===r?t.removeAttribute(e):t.setAttribute(e,""+r)):i.mustUseProperty?t[i.propertyName]=null===r?3!==i.type&&"":r:(e=i.attributeName,n=i.attributeNamespace,null===r?t.removeAttribute(e):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}function St(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function _t(t){t._valueTracker||(t._valueTracker=function(t){var e=St(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){n=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(t){n=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function kt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=St(t)?t.checked?"true":"false":t.value),(t=n)!==r&&(e.setValue(t),!0)}function xt(t,e){var r=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:t._wrapperState.initialChecked})}function At(t,e){var r=null==e.defaultValue?"":e.defaultValue,n=null!=e.checked?e.checked:e.defaultChecked;r=Tt(null!=e.value?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Ot(t,e){null!=(e=e.checked)&&wt(t,"checked",e,!1)}function Pt(t,e){Ot(t,e);var r=Tt(e.value),n=e.type;if(null!=r)"number"===n?(0===r&&""===t.value||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if("submit"===n||"reset"===n)return void t.removeAttribute("value");e.hasOwnProperty("value")?Rt(t,e.type,r):e.hasOwnProperty("defaultValue")&&Rt(t,e.type,Tt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Ct(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!("submit"!==n&&"reset"!==n||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}""!==(r=t.name)&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!!t._wrapperState.initialChecked,""!==r&&(t.name=r)}function Rt(t,e,r){"number"===e&&t.ownerDocument.activeElement===t||(null==r?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}function Dt(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return n.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function Lt(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Tt(r),e=null,i=0;i<t.length;i++){if(t[i].value===r)return t[i].selected=!0,void(n&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function It(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Mt(t,e){var r=e.value;if(null==r){if(r=e.defaultValue,null!=(e=e.children)){if(null!=r)throw Error(a(92));if(Array.isArray(e)){if(!(1>=e.length))throw Error(a(93));e=e[0]}r=e}null==r&&(r="")}t._wrapperState={initialValue:Tt(r)}}function Nt(t,e){var r=Tt(e.value),n=Tt(e.defaultValue);null!=r&&((r=""+r)!==t.value&&(t.value=r),null==e.defaultValue&&t.defaultValue!==r&&(t.defaultValue=r)),null!=n&&(t.defaultValue=""+n)}function jt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(bt,Et);mt[e]=new yt(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(bt,Et);mt[e]=new yt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(bt,Et);mt[e]=new yt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){mt[t]=new yt(t,1,!1,t.toLowerCase(),null,!1)})),mt.xlinkHref=new yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){mt[t]=new yt(t,1,!1,t.toLowerCase(),null,!0)}));var Bt="http://www.w3.org/1999/xhtml",Ft="http://www.w3.org/2000/svg";function Ut(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ht(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Ut(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Vt,zt=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,r,n,i){MSApp.execUnsafeLocalFunction((function(){return t(e,r)}))}:t}((function(t,e){if(t.namespaceURI!==Ft||"innerHTML"in t)t.innerHTML=e;else{for((Vt=Vt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Vt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function Gt(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&3===r.nodeType)return void(r.nodeValue=e)}t.textContent=e}function Wt(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Kt={animationend:Wt("Animation","AnimationEnd"),animationiteration:Wt("Animation","AnimationIteration"),animationstart:Wt("Animation","AnimationStart"),transitionend:Wt("Transition","TransitionEnd")},Yt={},Xt={};function qt(t){if(Yt[t])return Yt[t];if(!Kt[t])return t;var e,r=Kt[t];for(e in r)if(r.hasOwnProperty(e)&&e in Xt)return Yt[t]=r[e];return t}Z&&(Xt=document.createElement("div").style,"AnimationEvent"in window||(delete Kt.animationend.animation,delete Kt.animationiteration.animation,delete Kt.animationstart.animation),"TransitionEvent"in window||delete Kt.transitionend.transition);var $t=qt("animationend"),Qt=qt("animationiteration"),Jt=qt("animationstart"),Zt=qt("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");function ee(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(1026&(e=t).effectTag)&&(r=e.return),t=e.return}while(t)}return 3===e.tag?r:null}function re(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ne(t){if(ee(t)!==t)throw Error(a(188))}function ie(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=ee(t)))throw Error(a(188));return e!==t?null:t}for(var r=t,n=e;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(n=i.return)){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return ne(i),t;if(o===n)return ne(i),e;o=o.sibling}throw Error(a(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,u=i.child;u;){if(u===r){s=!0,r=i,n=o;break}if(u===n){s=!0,n=i,r=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===r){s=!0,r=o,n=i;break}if(u===n){s=!0,n=o,r=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}var oe,ae,se,ue=!1,le=[],ce=null,fe=null,de=null,he=new Map,pe=new Map,ge=[],ve="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),ye="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function me(t,e,r,n){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|r,nativeEvent:n}}function be(t,e){switch(t){case"focus":case"blur":ce=null;break;case"dragenter":case"dragleave":fe=null;break;case"mouseover":case"mouseout":de=null;break;case"pointerover":case"pointerout":he.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":pe.delete(e.pointerId)}}function Ee(t,e,r,n,i){return null===t||t.nativeEvent!==i?(t=me(e,r,n,i),null!==e&&(null!==(e=ln(e))&&ae(e)),t):(t.eventSystemFlags|=n,t)}function Te(t){var e=un(t.target);if(null!==e){var r=ee(e);if(null!==r)if(13===(e=r.tag)){if(null!==(e=re(r)))return t.blockedOn=e,void o.unstable_runWithPriority(t.priority,(function(){se(r)}))}else if(3===e&&r.stateNode.hydrate)return void(t.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}t.blockedOn=null}function we(t){if(null!==t.blockedOn)return!1;var e=Cr(t.topLevelType,t.eventSystemFlags,t.nativeEvent);if(null!==e){var r=ln(e);return null!==r&&ae(r),t.blockedOn=e,!1}return!0}function Se(t,e,r){we(t)&&r.delete(e)}function _e(){for(ue=!1;0<le.length;){var t=le[0];if(null!==t.blockedOn){null!==(t=ln(t.blockedOn))&&oe(t);break}var e=Cr(t.topLevelType,t.eventSystemFlags,t.nativeEvent);null!==e?t.blockedOn=e:le.shift()}null!==ce&&we(ce)&&(ce=null),null!==fe&&we(fe)&&(fe=null),null!==de&&we(de)&&(de=null),he.forEach(Se),pe.forEach(Se)}function ke(t,e){t.blockedOn===e&&(t.blockedOn=null,ue||(ue=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,_e)))}function xe(t){function e(e){return ke(e,t)}if(0<le.length){ke(le[0],t);for(var r=1;r<le.length;r++){var n=le[r];n.blockedOn===t&&(n.blockedOn=null)}}for(null!==ce&&ke(ce,t),null!==fe&&ke(fe,t),null!==de&&ke(de,t),he.forEach(e),pe.forEach(e),r=0;r<ge.length;r++)(n=ge[r]).blockedOn===t&&(n.blockedOn=null);for(;0<ge.length&&null===(r=ge[0]).blockedOn;)Te(r),null===r.blockedOn&&ge.shift()}function Ae(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function Oe(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function Pe(t,e,r){(e=D(t,r.dispatchConfig.phasedRegistrationNames[e]))&&(r._dispatchListeners=x(r._dispatchListeners,e),r._dispatchInstances=x(r._dispatchInstances,t))}function Ce(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,r=[];e;)r.push(e),e=Oe(e);for(e=r.length;0<e--;)Pe(r[e],"captured",t);for(e=0;e<r.length;e++)Pe(r[e],"bubbled",t)}}function Re(t,e,r){t&&r&&r.dispatchConfig.registrationName&&(e=D(t,r.dispatchConfig.registrationName))&&(r._dispatchListeners=x(r._dispatchListeners,e),r._dispatchInstances=x(r._dispatchInstances,t))}function De(t){t&&t.dispatchConfig.registrationName&&Re(t._targetInst,null,t)}function Le(t){A(t,Ce)}function Ie(){return!0}function Me(){return!1}function Ne(t,e,r,n){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=r,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(r):"target"===i?this.target=n:this[i]=r[i]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Ie:Me,this.isPropagationStopped=Me,this}function je(t,e,r,n){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,r,n),i}return new this(t,e,r,n)}function Be(t){if(!(t instanceof this))throw Error(a(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Fe(t){t.eventPool=[],t.getPooled=je,t.release=Be}i(Ne.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Ie)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Ie)},persist:function(){this.isPersistent=Ie},isPersistent:Me,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Me,this._dispatchInstances=this._dispatchListeners=null}}),Ne.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Ne.extend=function(t){function e(){}function r(){return n.apply(this,arguments)}var n=this;e.prototype=n.prototype;var o=new e;return i(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=i({},n.Interface,t),r.extend=n.extend,Fe(r),r},Fe(Ne);var Ue=Ne.extend({animationName:null,elapsedTime:null,pseudoElement:null}),He=Ne.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ve=Ne.extend({view:null,detail:null}),ze=Ve.extend({relatedTarget:null});function Ge(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var We={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ke={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ye={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xe(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Ye[t])&&!!e[t]}function qe(){return Xe}for(var $e=Ve.extend({key:function(t){if(t.key){var e=We[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Ge(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?Ke[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:qe,charCode:function(t){return"keypress"===t.type?Ge(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Ge(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Qe=0,Je=0,Ze=!1,tr=!1,er=Ve.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:qe,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Qe;return Qe=t.screenX,Ze?"mousemove"===t.type?t.screenX-e:0:(Ze=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Je;return Je=t.screenY,tr?"mousemove"===t.type?t.screenY-e:0:(tr=!0,0)}}),rr=er.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),nr=er.extend({dataTransfer:null}),ir=Ve.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:qe}),or=Ne.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ar=er.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),sr=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[$t,"animationEnd",2],[Qt,"animationIteration",2],[Jt,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Zt,"transitionEnd",2],["waiting","waiting",2]],ur={},lr={},cr=0;cr<sr.length;cr++){var fr=sr[cr],dr=fr[0],hr=fr[1],pr=fr[2],gr="on"+(hr[0].toUpperCase()+hr.slice(1)),vr={phasedRegistrationNames:{bubbled:gr,captured:gr+"Capture"},dependencies:[dr],eventPriority:pr};ur[hr]=vr,lr[dr]=vr}var yr={eventTypes:ur,getEventPriority:function(t){return void 0!==(t=lr[t])?t.eventPriority:2},extractEvents:function(t,e,r,n){var i=lr[t];if(!i)return null;switch(t){case"keypress":if(0===Ge(r))return null;case"keydown":case"keyup":t=$e;break;case"blur":case"focus":t=ze;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=er;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=nr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ir;break;case $t:case Qt:case Jt:t=Ue;break;case Zt:t=or;break;case"scroll":t=Ve;break;case"wheel":t=ar;break;case"copy":case"cut":case"paste":t=He;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=rr;break;default:t=Ne}return Le(e=t.getPooled(i,e,r,n)),e}},mr=o.unstable_UserBlockingPriority,br=o.unstable_runWithPriority,Er=yr.getEventPriority,Tr=[];function wr(t){var e=t.targetInst,r=e;do{if(!r){t.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(e=r.tag)&&6!==e||t.ancestors.push(r),r=un(n)}while(r);for(r=0;r<t.ancestors.length;r++){e=t.ancestors[r];var i=Ae(t.nativeEvent);n=t.topLevelType;for(var o=t.nativeEvent,a=t.eventSystemFlags,s=null,u=0;u<f.length;u++){var l=f[u];l&&(l=l.extractEvents(n,e,o,i,a))&&(s=x(s,l))}C(s)}}var Sr=!0;function _r(t,e){kr(e,t,!1)}function kr(t,e,r){switch(Er(e)){case 0:var n=xr.bind(null,e,1);break;case 1:n=Ar.bind(null,e,1);break;default:n=Pr.bind(null,e,1)}r?t.addEventListener(e,n,!0):t.addEventListener(e,n,!1)}function xr(t,e,r){ct||ut();var n=Pr,i=ct;ct=!0;try{st(n,t,e,r)}finally{(ct=i)||dt()}}function Ar(t,e,r){br(mr,Pr.bind(null,t,e,r))}function Or(t,e,r,n){if(Tr.length){var i=Tr.pop();i.topLevelType=t,i.eventSystemFlags=e,i.nativeEvent=r,i.targetInst=n,t=i}else t={topLevelType:t,eventSystemFlags:e,nativeEvent:r,targetInst:n,ancestors:[]};try{if(e=wr,r=t,ft)e(r,void 0);else{ft=!0;try{lt(e,r,void 0)}finally{ft=!1,dt()}}}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,Tr.length<10&&Tr.push(t)}}function Pr(t,e,r){if(Sr)if(0<le.length&&-1<ve.indexOf(t))t=me(null,t,e,r),le.push(t);else{var n=Cr(t,e,r);null===n?be(t,r):-1<ve.indexOf(t)?(t=me(n,t,e,r),le.push(t)):function(t,e,r,n){switch(e){case"focus":return ce=Ee(ce,t,e,r,n),!0;case"dragenter":return fe=Ee(fe,t,e,r,n),!0;case"mouseover":return de=Ee(de,t,e,r,n),!0;case"pointerover":var i=n.pointerId;return he.set(i,Ee(he.get(i)||null,t,e,r,n)),!0;case"gotpointercapture":return i=n.pointerId,pe.set(i,Ee(pe.get(i)||null,t,e,r,n)),!0}return!1}(n,t,e,r)||(be(t,r),Or(t,e,r,null))}}function Cr(t,e,r){var n=Ae(r);if(null!==(n=un(n))){var i=ee(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=re(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Or(t,e,r,n),null}function Rr(t){if(!Z)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}var Dr=new("function"==typeof WeakMap?WeakMap:Map);function Lr(t){var e=Dr.get(t);return void 0===e&&(e=new Set,Dr.set(t,e)),e}function Ir(t,e,r){if(!r.has(t)){switch(t){case"scroll":kr(e,"scroll",!0);break;case"focus":case"blur":kr(e,"focus",!0),kr(e,"blur",!0),r.add("blur"),r.add("focus");break;case"cancel":case"close":Rr(t)&&kr(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(t)&&_r(t,e)}r.add(t)}}var Mr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nr=["Webkit","ms","Moz","O"];function jr(t,e,r){return null==e||"boolean"==typeof e||""===e?"":r||"number"!=typeof e||0===e||Mr.hasOwnProperty(t)&&Mr[t]?(""+e).trim():e+"px"}function Br(t,e){for(var r in t=t.style,e)if(e.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=jr(r,e[r],n);"float"===r&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}Object.keys(Mr).forEach((function(t){Nr.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Mr[e]=Mr[t]}))}));var Fr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ur(t,e){if(e){if(Fr[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62,""))}}function Hr(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Vr(t,e){var r=Lr(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=p[e];for(var n=0;n<e.length;n++)Ir(e[n],t,r)}function zr(){}function Gr(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Wr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Kr(t,e){var r,n=Wr(t);for(t=0;n;){if(3===n.nodeType){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Wr(n)}}function Yr(){for(var t=window,e=Gr();e instanceof t.HTMLIFrameElement;){try{var r="string"==typeof e.contentWindow.location.href}catch(t){r=!1}if(!r)break;e=Gr((t=e.contentWindow).document)}return e}function Xr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var qr=null,$r=null;function Qr(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function Jr(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var Zr="function"==typeof setTimeout?setTimeout:void 0,tn="function"==typeof clearTimeout?clearTimeout:void 0;function en(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function rn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var r=t.data;if("$"===r||"$!"===r||"$?"===r){if(0===e)return t;e--}else"/$"===r&&e++}t=t.previousSibling}return null}var nn=Math.random().toString(36).slice(2),on="__reactInternalInstance$"+nn,an="__reactEventHandlers$"+nn,sn="__reactContainere$"+nn;function un(t){var e=t[on];if(e)return e;for(var r=t.parentNode;r;){if(e=r[sn]||r[on]){if(r=e.alternate,null!==e.child||null!==r&&null!==r.child)for(t=rn(t);null!==t;){if(r=t[on])return r;t=rn(t)}return e}r=(t=r).parentNode}return null}function ln(t){return!(t=t[on]||t[sn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function cn(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function fn(t){return t[an]||null}var dn=null,hn=null,pn=null;function gn(){if(pn)return pn;var t,e,r=hn,n=r.length,i="value"in dn?dn.value:dn.textContent,o=i.length;for(t=0;t<n&&r[t]===i[t];t++);var a=n-t;for(e=1;e<=a&&r[n-e]===i[o-e];e++);return pn=i.slice(t,1<e?1-e:void 0)}var vn=Ne.extend({data:null}),yn=Ne.extend({data:null}),mn=[9,13,27,32],bn=Z&&"CompositionEvent"in window,En=null;Z&&"documentMode"in document&&(En=document.documentMode);var Tn=Z&&"TextEvent"in window&&!En,wn=Z&&(!bn||En&&8<En&&11>=En),Sn=String.fromCharCode(32),_n={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},kn=!1;function xn(t,e){switch(t){case"keyup":return-1!==mn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function An(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var On=!1;var Pn={eventTypes:_n,extractEvents:function(t,e,r,n){var i;if(bn)t:{switch(t){case"compositionstart":var o=_n.compositionStart;break t;case"compositionend":o=_n.compositionEnd;break t;case"compositionupdate":o=_n.compositionUpdate;break t}o=void 0}else On?xn(t,r)&&(o=_n.compositionEnd):"keydown"===t&&229===r.keyCode&&(o=_n.compositionStart);return o?(wn&&"ko"!==r.locale&&(On||o!==_n.compositionStart?o===_n.compositionEnd&&On&&(i=gn()):(hn="value"in(dn=n)?dn.value:dn.textContent,On=!0)),o=vn.getPooled(o,e,r,n),i?o.data=i:null!==(i=An(r))&&(o.data=i),Le(o),i=o):i=null,(t=Tn?function(t,e){switch(t){case"compositionend":return An(e);case"keypress":return 32!==e.which?null:(kn=!0,Sn);case"textInput":return(t=e.data)===Sn&&kn?null:t;default:return null}}(t,r):function(t,e){if(On)return"compositionend"===t||!bn&&xn(t,e)?(t=gn(),pn=hn=dn=null,On=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return wn&&"ko"!==e.locale?null:e.data;default:return null}}(t,r))?((e=yn.getPooled(_n.beforeInput,e,r,n)).data=t,Le(e)):e=null,null===i?e:null===e?i:[i,e]}},Cn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Cn[t.type]:"textarea"===e}var Dn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Ln(t,e,r){return(t=Ne.getPooled(Dn.change,t,e,r)).type="change",it(r),Le(t),t}var In=null,Mn=null;function Nn(t){C(t)}function jn(t){if(kt(cn(t)))return t}function Bn(t,e){if("change"===t)return e}var Fn=!1;function Un(){In&&(In.detachEvent("onpropertychange",Hn),Mn=In=null)}function Hn(t){if("value"===t.propertyName&&jn(Mn))if(t=Ln(Mn,t,Ae(t)),ct)C(t);else{ct=!0;try{at(Nn,t)}finally{ct=!1,dt()}}}function Vn(t,e,r){"focus"===t?(Un(),Mn=r,(In=e).attachEvent("onpropertychange",Hn)):"blur"===t&&Un()}function zn(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return jn(Mn)}function Gn(t,e){if("click"===t)return jn(e)}function Wn(t,e){if("input"===t||"change"===t)return jn(e)}Z&&(Fn=Rr("input")&&(!document.documentMode||9<document.documentMode));var Kn,Yn={eventTypes:Dn,_isInputEventSupported:Fn,extractEvents:function(t,e,r,n){var i=e?cn(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=Bn;else if(Rn(i))if(Fn)a=Wn;else{a=zn;var s=Vn}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Gn);if(a&&(a=a(t,e)))return Ln(a,r,n);s&&s(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Rt(i,"number",i.value)}},Xn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},qn={eventTypes:Xn,extractEvents:function(t,e,r,n,i){var o="mouseover"===t||"pointerover"===t,a="mouseout"===t||"pointerout"===t;if(o&&0==(32&i)&&(r.relatedTarget||r.fromElement)||!a&&!o)return null;if(i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window,a?(a=e,null!==(e=(e=r.relatedTarget||r.toElement)?un(e):null)&&(e!==(o=ee(e))||5!==e.tag&&6!==e.tag)&&(e=null)):a=null,a===e)return null;if("mouseout"===t||"mouseover"===t)var s=er,u=Xn.mouseLeave,l=Xn.mouseEnter,c="mouse";else"pointerout"!==t&&"pointerover"!==t||(s=rr,u=Xn.pointerLeave,l=Xn.pointerEnter,c="pointer");if(t=null==a?i:cn(a),i=null==e?i:cn(e),(u=s.getPooled(u,a,r,n)).type=c+"leave",u.target=t,u.relatedTarget=i,(n=s.getPooled(l,e,r,n)).type=c+"enter",n.target=i,n.relatedTarget=t,c=e,(s=a)&&c)t:{for(t=c,a=0,e=l=s;e;e=Oe(e))a++;for(e=0,i=t;i;i=Oe(i))e++;for(;0<a-e;)l=Oe(l),a--;for(;0<e-a;)t=Oe(t),e--;for(;a--;){if(l===t||l===t.alternate)break t;l=Oe(l),t=Oe(t)}l=null}else l=null;for(t=l,l=[];s&&s!==t&&(null===(a=s.alternate)||a!==t);)l.push(s),s=Oe(s);for(s=[];c&&c!==t&&(null===(a=c.alternate)||a!==t);)s.push(c),c=Oe(c);for(c=0;c<l.length;c++)Re(l[c],"bubbled",u);for(c=s.length;0<c--;)Re(s[c],"captured",n);return r===Kn?(Kn=null,[u]):(Kn=r,[u,n])}};var $n="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},Qn=Object.prototype.hasOwnProperty;function Jn(t,e){if($n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!Qn.call(e,r[n])||!$n(t[r[n]],e[r[n]]))return!1;return!0}var Zn=Z&&"documentMode"in document&&11>=document.documentMode,ti={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ei=null,ri=null,ni=null,ii=!1;function oi(t,e){var r=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return ii||null==ei||ei!==Gr(r)?null:("selectionStart"in(r=ei)&&Xr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ni&&Jn(ni,r)?null:(ni=r,(t=Ne.getPooled(ti.select,ri,t,e)).type="select",t.target=ei,Le(t),t))}var ai={eventTypes:ti,extractEvents:function(t,e,r,n){var i,o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;if(!(i=!o)){t:{o=Lr(o),i=p.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break t}o=!0}i=!o}if(i)return null;switch(o=e?cn(e):window,t){case"focus":(Rn(o)||"true"===o.contentEditable)&&(ei=o,ri=e,ni=null);break;case"blur":ni=ri=ei=null;break;case"mousedown":ii=!0;break;case"contextmenu":case"mouseup":case"dragend":return ii=!1,oi(r,n);case"selectionchange":if(Zn)break;case"keydown":case"keyup":return oi(r,n)}return null}};R.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w=fn,S=ln,_=cn,R.injectEventPluginsByName({SimpleEventPlugin:yr,EnterLeaveEventPlugin:qn,ChangeEventPlugin:Yn,SelectEventPlugin:ai,BeforeInputEventPlugin:Pn}),new Set;var si=[],ui=-1;function li(t){0>ui||(t.current=si[ui],si[ui]=null,ui--)}function ci(t,e){ui++,si[ui]=t.current,t.current=e}var fi={},di={current:fi},hi={current:!1},pi=fi;function gi(t,e){var r=t.type.contextTypes;if(!r)return fi;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=e[i];return n&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function vi(t){return null!=(t=t.childContextTypes)}function yi(t){li(hi),li(di)}function mi(t){li(hi),li(di)}function bi(t,e,r){if(di.current!==fi)throw Error(a(168));ci(di,e),ci(hi,r)}function Ei(t,e,r){var n=t.stateNode;if(t=e.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(a(108,Q(e)||"Unknown",o));return i({},r,{},n)}function Ti(t){var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||fi,pi=di.current,ci(di,e),ci(hi,hi.current),!0}function wi(t,e,r){var n=t.stateNode;if(!n)throw Error(a(169));r?(e=Ei(t,e,pi),n.__reactInternalMemoizedMergedChildContext=e,li(hi),li(di),ci(di,e)):li(hi),ci(hi,r)}var Si=o.unstable_runWithPriority,_i=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,xi=o.unstable_shouldYield,Ai=o.unstable_requestPaint,Oi=o.unstable_now,Pi=o.unstable_getCurrentPriorityLevel,Ci=o.unstable_ImmediatePriority,Ri=o.unstable_UserBlockingPriority,Di=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Ii=o.unstable_IdlePriority,Mi={},Ni=void 0!==Ai?Ai:function(){},ji=null,Bi=null,Fi=!1,Ui=Oi(),Hi=1e4>Ui?Oi:function(){return Oi()-Ui};function Vi(){switch(Pi()){case Ci:return 99;case Ri:return 98;case Di:return 97;case Li:return 96;case Ii:return 95;default:throw Error(a(332))}}function zi(t){switch(t){case 99:return Ci;case 98:return Ri;case 97:return Di;case 96:return Li;case 95:return Ii;default:throw Error(a(332))}}function Gi(t,e){return t=zi(t),Si(t,e)}function Wi(t,e,r){return t=zi(t),_i(t,e,r)}function Ki(t){return null===ji?(ji=[t],Bi=_i(Ci,Xi)):ji.push(t),Mi}function Yi(){if(null!==Bi){var t=Bi;Bi=null,ki(t)}Xi()}function Xi(){if(!Fi&&null!==ji){Fi=!0;var t=0;try{var e=ji;Gi(99,(function(){for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}})),ji=null}catch(e){throw null!==ji&&(ji=ji.slice(t+1)),_i(Ci,Yi),e}finally{Fi=!1}}}var qi=3;function $i(t,e,r){return 1073741821-(1+((1073741821-t+e/10)/(r/=10)|0))*r}function Qi(t,e){if(t&&t.defaultProps)for(var r in e=i({},e),t=t.defaultProps)void 0===e[r]&&(e[r]=t[r]);return e}var Ji={current:null},Zi=null,to=null,eo=null;function ro(){eo=to=Zi=null}function no(t,e){var r=t.type._context;ci(Ji,r._currentValue),r._currentValue=e}function io(t){var e=Ji.current;li(Ji),t.type._context._currentValue=e}function oo(t,e){for(;null!==t;){var r=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==r&&r.childExpirationTime<e&&(r.childExpirationTime=e);else{if(!(null!==r&&r.childExpirationTime<e))break;r.childExpirationTime=e}t=t.return}}function ao(t,e){Zi=t,eo=to=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Ha=!0),t.firstContext=null)}function so(t,e){if(eo!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(eo=t,e=1073741823),e={context:t,observedBits:e,next:null},null===to){if(null===Zi)throw Error(a(308));to=e,Zi.dependencies={expirationTime:0,firstContext:e,responders:null}}else to=to.next=e;return t._currentValue}var uo=!1;function lo(t){return{baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function co(t){return{baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function fo(t,e){return{expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ho(t,e){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e)}function po(t,e){var r=t.alternate;if(null===r){var n=t.updateQueue,i=null;null===n&&(n=t.updateQueue=lo(t.memoizedState))}else n=t.updateQueue,i=r.updateQueue,null===n?null===i?(n=t.updateQueue=lo(t.memoizedState),i=r.updateQueue=lo(r.memoizedState)):n=t.updateQueue=co(i):null===i&&(i=r.updateQueue=co(n));null===i||n===i?ho(n,e):null===n.lastUpdate||null===i.lastUpdate?(ho(n,e),ho(i,e)):(ho(n,e),i.lastUpdate=e)}function go(t,e){var r=t.updateQueue;null===(r=null===r?t.updateQueue=lo(t.memoizedState):vo(t,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=e:(r.lastCapturedUpdate.next=e,r.lastCapturedUpdate=e)}function vo(t,e){var r=t.alternate;return null!==r&&e===r.updateQueue&&(e=t.updateQueue=co(e)),e}function yo(t,e,r,n,o,a){switch(r.tag){case 1:return"function"==typeof(t=r.payload)?t.call(a,n,o):t;case 3:t.effectTag=-4097&t.effectTag|64;case 0:if(null==(o="function"==typeof(t=r.payload)?t.call(a,n,o):t))break;return i({},n,o);case 2:uo=!0}return n}function mo(t,e,r,n,i){uo=!1;for(var o=(e=vo(t,e)).baseState,a=null,s=0,u=e.firstUpdate,l=o;null!==u;){var c=u.expirationTime;c<i?(null===a&&(a=u,o=l),s<c&&(s=c)):(fu(c,u.suspenseConfig),l=yo(t,0,u,l,r,n),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,null===e.lastEffect?e.firstEffect=e.lastEffect=u:(e.lastEffect.nextEffect=u,e.lastEffect=u))),u=u.next}for(c=null,u=e.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<i?(null===c&&(c=u,null===a&&(o=l)),s<f&&(s=f)):(l=yo(t,0,u,l,r,n),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,null===e.lastCapturedEffect?e.firstCapturedEffect=e.lastCapturedEffect=u:(e.lastCapturedEffect.nextEffect=u,e.lastCapturedEffect=u))),u=u.next}null===a&&(e.lastUpdate=null),null===c?e.lastCapturedUpdate=null:t.effectTag|=32,null===a&&null===c&&(o=l),e.baseState=o,e.firstUpdate=a,e.firstCapturedUpdate=c,du(s),t.expirationTime=s,t.memoizedState=l}function bo(t,e,r){null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),Eo(e.firstEffect,r),e.firstEffect=e.lastEffect=null,Eo(e.firstCapturedEffect,r),e.firstCapturedEffect=e.lastCapturedEffect=null}function Eo(t,e){for(;null!==t;){var r=t.callback;if(null!==r){t.callback=null;var n=e;if("function"!=typeof r)throw Error(a(191,r));r.call(n)}t=t.nextEffect}}var To=L.ReactCurrentBatchConfig,wo=(new n.Component).refs;function So(t,e,r,n){r=null==(r=r(n,e=t.memoizedState))?e:i({},e,r),t.memoizedState=r,null!==(n=t.updateQueue)&&0===t.expirationTime&&(n.baseState=r)}var _o={isMounted:function(t){return!!(t=t._reactInternalFiber)&&ee(t)===t},enqueueSetState:function(t,e,r){t=t._reactInternalFiber;var n=Js(),i=To.suspense;(i=fo(n=Zs(n,t,i),i)).payload=e,null!=r&&(i.callback=r),po(t,i),tu(t,n)},enqueueReplaceState:function(t,e,r){t=t._reactInternalFiber;var n=Js(),i=To.suspense;(i=fo(n=Zs(n,t,i),i)).tag=1,i.payload=e,null!=r&&(i.callback=r),po(t,i),tu(t,n)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var r=Js(),n=To.suspense;(n=fo(r=Zs(r,t,n),n)).tag=2,null!=e&&(n.callback=e),po(t,n),tu(t,r)}};function ko(t,e,r,n,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(n,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!Jn(r,n)||!Jn(i,o))}function xo(t,e,r){var n=!1,i=fi,o=e.contextType;return"object"==typeof o&&null!==o?o=so(o):(i=vi(e)?pi:di.current,o=(n=null!=(n=e.contextTypes))?gi(t,i):fi),e=new e(r,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=_o,t.stateNode=e,e._reactInternalFiber=t,n&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function Ao(t,e,r,n){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(r,n),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&_o.enqueueReplaceState(e,e.state,null)}function Oo(t,e,r,n){var i=t.stateNode;i.props=r,i.state=t.memoizedState,i.refs=wo;var o=e.contextType;"object"==typeof o&&null!==o?i.context=so(o):(o=vi(e)?pi:di.current,i.context=gi(t,o)),null!==(o=t.updateQueue)&&(mo(t,o,r,i,n),i.state=t.memoizedState),"function"==typeof(o=e.getDerivedStateFromProps)&&(So(t,e,o,r),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&_o.enqueueReplaceState(i,i.state,null),null!==(o=t.updateQueue)&&(mo(t,o,r,i,n),i.state=t.memoizedState)),"function"==typeof i.componentDidMount&&(t.effectTag|=4)}var Po=Array.isArray;function Co(t,e,r){if(null!==(t=r.ref)&&"function"!=typeof t&&"object"!=typeof t){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,t));var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=n.refs;e===wo&&(e=n.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}if("string"!=typeof t)throw Error(a(284));if(!r._owner)throw Error(a(290,t))}return t}function Ro(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function Do(t){function e(e,r){if(t){var n=e.lastEffect;null!==n?(n.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!t)return null;for(;null!==n;)e(r,n),n=n.sibling;return null}function n(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e,r){return(t=Du(t,e)).index=0,t.sibling=null,t}function o(e,r,n){return e.index=n,t?null!==(n=e.alternate)?(n=n.index)<r?(e.effectTag=2,r):n:(e.effectTag=2,r):r}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,r,n){return null===e||6!==e.tag?((e=Mu(r,t.mode,n)).return=t,e):((e=i(e,r)).return=t,e)}function l(t,e,r,n){return null!==e&&e.elementType===r.type?((n=i(e,r.props)).ref=Co(t,e,r),n.return=t,n):((n=Lu(r.type,r.key,r.props,null,t.mode,n)).ref=Co(t,e,r),n.return=t,n)}function c(t,e,r,n){return null===e||4!==e.tag||e.stateNode.containerInfo!==r.containerInfo||e.stateNode.implementation!==r.implementation?((e=Nu(r,t.mode,n)).return=t,e):((e=i(e,r.children||[])).return=t,e)}function f(t,e,r,n,o){return null===e||7!==e.tag?((e=Iu(r,t.mode,n,o)).return=t,e):((e=i(e,r)).return=t,e)}function d(t,e,r){if("string"==typeof e||"number"==typeof e)return(e=Mu(""+e,t.mode,r)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case N:return(r=Lu(e.type,e.key,e.props,null,t.mode,r)).ref=Co(t,null,e),r.return=t,r;case j:return(e=Nu(e,t.mode,r)).return=t,e}if(Po(e)||$(e))return(e=Iu(e,t.mode,r,null)).return=t,e;Ro(t,e)}return null}function h(t,e,r,n){var i=null!==e?e.key:null;if("string"==typeof r||"number"==typeof r)return null!==i?null:u(t,e,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case N:return r.key===i?r.type===B?f(t,e,r.props.children,n,i):l(t,e,r,n):null;case j:return r.key===i?c(t,e,r,n):null}if(Po(r)||$(r))return null!==i?null:f(t,e,r,n,null);Ro(t,r)}return null}function p(t,e,r,n,i){if("string"==typeof n||"number"==typeof n)return u(e,t=t.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case N:return t=t.get(null===n.key?r:n.key)||null,n.type===B?f(e,t,n.props.children,i,n.key):l(e,t,n,i);case j:return c(e,t=t.get(null===n.key?r:n.key)||null,n,i)}if(Po(n)||$(n))return f(e,t=t.get(r)||null,n,i,null);Ro(e,n)}return null}function g(i,a,s,u){for(var l=null,c=null,f=a,g=a=0,v=null;null!==f&&g<s.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var y=h(i,f,s[g],u);if(null===y){null===f&&(f=v);break}t&&f&&null===y.alternate&&e(i,f),a=o(y,a,g),null===c?l=y:c.sibling=y,c=y,f=v}if(g===s.length)return r(i,f),l;if(null===f){for(;g<s.length;g++)null!==(f=d(i,s[g],u))&&(a=o(f,a,g),null===c?l=f:c.sibling=f,c=f);return l}for(f=n(i,f);g<s.length;g++)null!==(v=p(f,i,g,s[g],u))&&(t&&null!==v.alternate&&f.delete(null===v.key?g:v.key),a=o(v,a,g),null===c?l=v:c.sibling=v,c=v);return t&&f.forEach((function(t){return e(i,t)})),l}function v(i,s,u,l){var c=$(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,g=s,v=s=0,y=null,m=u.next();null!==g&&!m.done;v++,m=u.next()){g.index>v?(y=g,g=null):y=g.sibling;var b=h(i,g,m.value,l);if(null===b){null===g&&(g=y);break}t&&g&&null===b.alternate&&e(i,g),s=o(b,s,v),null===f?c=b:f.sibling=b,f=b,g=y}if(m.done)return r(i,g),c;if(null===g){for(;!m.done;v++,m=u.next())null!==(m=d(i,m.value,l))&&(s=o(m,s,v),null===f?c=m:f.sibling=m,f=m);return c}for(g=n(i,g);!m.done;v++,m=u.next())null!==(m=p(g,i,v,m.value,l))&&(t&&null!==m.alternate&&g.delete(null===m.key?v:m.key),s=o(m,s,v),null===f?c=m:f.sibling=m,f=m);return t&&g.forEach((function(t){return e(i,t)})),c}return function(t,n,o,u){var l="object"==typeof o&&null!==o&&o.type===B&&null===o.key;l&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case N:t:{for(c=o.key,l=n;null!==l;){if(l.key===c){if(7===l.tag?o.type===B:l.elementType===o.type){r(t,l.sibling),(n=i(l,o.type===B?o.props.children:o.props)).ref=Co(t,l,o),n.return=t,t=n;break t}r(t,l);break}e(t,l),l=l.sibling}o.type===B?((n=Iu(o.props.children,t.mode,u,o.key)).return=t,t=n):((u=Lu(o.type,o.key,o.props,null,t.mode,u)).ref=Co(t,n,o),u.return=t,t=u)}return s(t);case j:t:{for(l=o.key;null!==n;){if(n.key===l){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){r(t,n.sibling),(n=i(n,o.children||[])).return=t,t=n;break t}r(t,n);break}e(t,n),n=n.sibling}(n=Nu(o,t.mode,u)).return=t,t=n}return s(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==n&&6===n.tag?(r(t,n.sibling),(n=i(n,o)).return=t,t=n):(r(t,n),(n=Mu(o,t.mode,u)).return=t,t=n),s(t);if(Po(o))return g(t,n,o,u);if($(o))return v(t,n,o,u);if(c&&Ro(t,o),void 0===o&&!l)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return r(t,n)}}var Lo=Do(!0),Io=Do(!1),Mo={},No={current:Mo},jo={current:Mo},Bo={current:Mo};function Fo(t){if(t===Mo)throw Error(a(174));return t}function Uo(t,e){ci(Bo,e),ci(jo,t),ci(No,Mo);var r=e.nodeType;switch(r){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ht(null,"");break;default:e=Ht(e=(r=8===r?e.parentNode:e).namespaceURI||null,r=r.tagName)}li(No),ci(No,e)}function Ho(t){li(No),li(jo),li(Bo)}function Vo(t){Fo(Bo.current);var e=Fo(No.current),r=Ht(e,t.type);e!==r&&(ci(jo,t),ci(No,r))}function zo(t){jo.current===t&&(li(No),li(jo))}var Go={current:0};function Wo(t){for(var e=t;null!==e;){if(13===e.tag){var r=e.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Ko(t,e){return{responder:t,props:e}}var Yo=L.ReactCurrentDispatcher,Xo=L.ReactCurrentBatchConfig,qo=0,$o=null,Qo=null,Jo=null,Zo=null,ta=null,ea=null,ra=0,na=null,ia=0,oa=!1,aa=null,sa=0;function ua(){throw Error(a(321))}function la(t,e){if(null===e)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!$n(t[r],e[r]))return!1;return!0}function ca(t,e,r,n,i,o){if(qo=o,$o=e,Jo=null!==t?t.memoizedState:null,Yo.current=null===Jo?Pa:Ca,e=r(n,i),oa){do{oa=!1,sa+=1,Jo=null!==t?t.memoizedState:null,ea=Zo,na=ta=Qo=null,Yo.current=Ca,e=r(n,i)}while(oa);aa=null,sa=0}if(Yo.current=Oa,(t=$o).memoizedState=Zo,t.expirationTime=ra,t.updateQueue=na,t.effectTag|=ia,t=null!==Qo&&null!==Qo.next,qo=0,ea=ta=Zo=Jo=Qo=$o=null,ra=0,na=null,ia=0,t)throw Error(a(300));return e}function fa(){Yo.current=Oa,qo=0,ea=ta=Zo=Jo=Qo=$o=null,ra=0,na=null,ia=0,oa=!1,aa=null,sa=0}function da(){var t={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===ta?Zo=ta=t:ta=ta.next=t,ta}function ha(){if(null!==ea)ea=(ta=ea).next,Jo=null!==(Qo=Jo)?Qo.next:null;else{if(null===Jo)throw Error(a(310));var t={memoizedState:(Qo=Jo).memoizedState,baseState:Qo.baseState,queue:Qo.queue,baseUpdate:Qo.baseUpdate,next:null};ta=null===ta?Zo=t:ta.next=t,Jo=Qo.next}return ta}function pa(t,e){return"function"==typeof e?e(t):e}function ga(t){var e=ha(),r=e.queue;if(null===r)throw Error(a(311));if(r.lastRenderedReducer=t,0<sa){var n=r.dispatch;if(null!==aa){var i=aa.get(r);if(void 0!==i){aa.delete(r);var o=e.memoizedState;do{o=t(o,i.action),i=i.next}while(null!==i);return $n(o,e.memoizedState)||(Ha=!0),e.memoizedState=o,e.baseUpdate===r.last&&(e.baseState=o),r.lastRenderedState=o,[o,n]}}return[e.memoizedState,n]}n=r.last;var s=e.baseUpdate;if(o=e.baseState,null!==s?(null!==n&&(n.next=null),n=s.next):n=null!==n?n.next:null,null!==n){var u=i=null,l=n,c=!1;do{var f=l.expirationTime;f<qo?(c||(c=!0,u=s,i=o),f>ra&&du(ra=f)):(fu(f,l.suspenseConfig),o=l.eagerReducer===t?l.eagerState:t(o,l.action)),s=l,l=l.next}while(null!==l&&l!==n);c||(u=s,i=o),$n(o,e.memoizedState)||(Ha=!0),e.memoizedState=o,e.baseUpdate=u,e.baseState=i,r.lastRenderedState=o}return[e.memoizedState,r.dispatch]}function va(t){var e=da();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={last:null,dispatch:null,lastRenderedReducer:pa,lastRenderedState:t}).dispatch=Aa.bind(null,$o,t),[e.memoizedState,t]}function ya(t){return ga(pa)}function ma(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},null===na?(na={lastEffect:null}).lastEffect=t.next=t:null===(e=na.lastEffect)?na.lastEffect=t.next=t:(r=e.next,e.next=t,t.next=r,na.lastEffect=t),t}function ba(t,e,r,n){var i=da();ia|=t,i.memoizedState=ma(e,r,void 0,void 0===n?null:n)}function Ea(t,e,r,n){var i=ha();n=void 0===n?null:n;var o=void 0;if(null!==Qo){var a=Qo.memoizedState;if(o=a.destroy,null!==n&&la(n,a.deps))return void ma(0,r,o,n)}ia|=t,i.memoizedState=ma(e,r,o,n)}function Ta(t,e){return ba(516,192,t,e)}function wa(t,e){return Ea(516,192,t,e)}function Sa(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function _a(){}function ka(t,e){return da().memoizedState=[t,void 0===e?null:e],t}function xa(t,e){var r=ha();e=void 0===e?null:e;var n=r.memoizedState;return null!==n&&null!==e&&la(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Aa(t,e,r){if(!(25>sa))throw Error(a(301));var n=t.alternate;if(t===$o||null!==n&&n===$o)if(oa=!0,t={expirationTime:qo,suspenseConfig:null,action:r,eagerReducer:null,eagerState:null,next:null},null===aa&&(aa=new Map),void 0===(r=aa.get(e)))aa.set(e,t);else{for(e=r;null!==e.next;)e=e.next;e.next=t}else{var i=Js(),o=To.suspense;o={expirationTime:i=Zs(i,t,o),suspenseConfig:o,action:r,eagerReducer:null,eagerState:null,next:null};var s=e.last;if(null===s)o.next=o;else{var u=s.next;null!==u&&(o.next=u),s.next=o}if(e.last=o,0===t.expirationTime&&(null===n||0===n.expirationTime)&&null!==(n=e.lastRenderedReducer))try{var l=e.lastRenderedState,c=n(l,r);if(o.eagerReducer=n,o.eagerState=c,$n(c,l))return}catch(t){}tu(t,i)}}var Oa={readContext:so,useCallback:ua,useContext:ua,useEffect:ua,useImperativeHandle:ua,useLayoutEffect:ua,useMemo:ua,useReducer:ua,useRef:ua,useState:ua,useDebugValue:ua,useResponder:ua,useDeferredValue:ua,useTransition:ua},Pa={readContext:so,useCallback:ka,useContext:so,useEffect:Ta,useImperativeHandle:function(t,e,r){return r=null!=r?r.concat([t]):null,ba(4,36,Sa.bind(null,e,t),r)},useLayoutEffect:function(t,e){return ba(4,36,t,e)},useMemo:function(t,e){var r=da();return e=void 0===e?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=da();return e=void 0!==r?r(e):e,n.memoizedState=n.baseState=e,t=(t=n.queue={last:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=Aa.bind(null,$o,t),[n.memoizedState,t]},useRef:function(t){return t={current:t},da().memoizedState=t},useState:va,useDebugValue:_a,useResponder:Ko,useDeferredValue:function(t,e){var r=va(t),n=r[0],i=r[1];return Ta((function(){o.unstable_next((function(){var r=Xo.suspense;Xo.suspense=void 0===e?null:e;try{i(t)}finally{Xo.suspense=r}}))}),[t,e]),n},useTransition:function(t){var e=va(!1),r=e[0],n=e[1];return[ka((function(e){n(!0),o.unstable_next((function(){var r=Xo.suspense;Xo.suspense=void 0===t?null:t;try{n(!1),e()}finally{Xo.suspense=r}}))}),[t,r]),r]}},Ca={readContext:so,useCallback:xa,useContext:so,useEffect:wa,useImperativeHandle:function(t,e,r){return r=null!=r?r.concat([t]):null,Ea(4,36,Sa.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Ea(4,36,t,e)},useMemo:function(t,e){var r=ha();e=void 0===e?null:e;var n=r.memoizedState;return null!==n&&null!==e&&la(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)},useReducer:ga,useRef:function(){return ha().memoizedState},useState:ya,useDebugValue:_a,useResponder:Ko,useDeferredValue:function(t,e){var r=ya(),n=r[0],i=r[1];return wa((function(){o.unstable_next((function(){var r=Xo.suspense;Xo.suspense=void 0===e?null:e;try{i(t)}finally{Xo.suspense=r}}))}),[t,e]),n},useTransition:function(t){var e=ya(),r=e[0],n=e[1];return[xa((function(e){n(!0),o.unstable_next((function(){var r=Xo.suspense;Xo.suspense=void 0===t?null:t;try{n(!1),e()}finally{Xo.suspense=r}}))}),[t,r]),r]}},Ra=null,Da=null,La=!1;function Ia(t,e){var r=Cu(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=e,r.return=t,r.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r}function Ma(t,e){switch(t.tag){case 5:var r=t.type;return null!==(e=1!==e.nodeType||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function Na(t){if(La){var e=Da;if(e){var r=e;if(!Ma(t,e)){if(!(e=en(r.nextSibling))||!Ma(t,e))return t.effectTag=-1025&t.effectTag|2,La=!1,void(Ra=t);Ia(Ra,r)}Ra=t,Da=en(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,La=!1,Ra=t}}function ja(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;Ra=t}function Ba(t){if(t!==Ra)return!1;if(!La)return ja(t),La=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!Jr(e,t.memoizedProps))for(e=Da;e;)Ia(t,e),e=en(e.nextSibling);if(ja(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var r=t.data;if("/$"===r){if(0===e){Da=en(t.nextSibling);break t}e--}else"$"!==r&&"$!"!==r&&"$?"!==r||e++}t=t.nextSibling}Da=null}}else Da=Ra?en(t.stateNode.nextSibling):null;return!0}function Fa(){Da=Ra=null,La=!1}var Ua=L.ReactCurrentOwner,Ha=!1;function Va(t,e,r,n){e.child=null===t?Io(e,null,r,n):Lo(e,t.child,r,n)}function za(t,e,r,n,i){r=r.render;var o=e.ref;return ao(e,i),n=ca(t,e,r,n,o,i),null===t||Ha?(e.effectTag|=1,Va(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),os(t,e,i))}function Ga(t,e,r,n,i,o){if(null===t){var a=r.type;return"function"!=typeof a||Ru(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((t=Lu(r.type,null,n,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Wa(t,e,a,n,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(r=null!==(r=r.compare)?r:Jn)(i,n)&&t.ref===e.ref)?os(t,e,o):(e.effectTag|=1,(t=Du(a,n)).ref=e.ref,t.return=e,e.child=t)}function Wa(t,e,r,n,i,o){return null!==t&&Jn(t.memoizedProps,n)&&t.ref===e.ref&&(Ha=!1,i<o)?os(t,e,o):Ya(t,e,r,n,o)}function Ka(t,e){var r=e.ref;(null===t&&null!==r||null!==t&&t.ref!==r)&&(e.effectTag|=128)}function Ya(t,e,r,n,i){var o=vi(r)?pi:di.current;return o=gi(e,o),ao(e,i),r=ca(t,e,r,n,o,i),null===t||Ha?(e.effectTag|=1,Va(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),os(t,e,i))}function Xa(t,e,r,n,i){if(vi(r)){var o=!0;Ti(e)}else o=!1;if(ao(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),xo(e,r,n),Oo(e,r,n,i),n=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var u=a.context,l=r.contextType;"object"==typeof l&&null!==l?l=so(l):l=gi(e,l=vi(r)?pi:di.current);var c=r.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||u!==l)&&Ao(e,a,n,l),uo=!1;var d=e.memoizedState;u=a.state=d;var h=e.updateQueue;null!==h&&(mo(e,h,n,a,i),u=e.memoizedState),s!==n||d!==u||hi.current||uo?("function"==typeof c&&(So(e,r,c,n),u=e.memoizedState),(s=uo||ko(e,r,s,n,d,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=n,e.memoizedState=u),a.props=n,a.state=u,a.context=l,n=s):("function"==typeof a.componentDidMount&&(e.effectTag|=4),n=!1)}else a=e.stateNode,s=e.memoizedProps,a.props=e.type===e.elementType?s:Qi(e.type,s),u=a.context,"object"==typeof(l=r.contextType)&&null!==l?l=so(l):l=gi(e,l=vi(r)?pi:di.current),(f="function"==typeof(c=r.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||u!==l)&&Ao(e,a,n,l),uo=!1,u=e.memoizedState,d=a.state=u,null!==(h=e.updateQueue)&&(mo(e,h,n,a,i),d=e.memoizedState),s!==n||u!==d||hi.current||uo?("function"==typeof c&&(So(e,r,c,n),d=e.memoizedState),(c=uo||ko(e,r,s,n,u,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,d,l)),"function"==typeof a.componentDidUpdate&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),e.memoizedProps=n,e.memoizedState=d),a.props=n,a.state=d,a.context=l,n=c):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),n=!1);return qa(t,e,r,n,o,i)}function qa(t,e,r,n,i,o){Ka(t,e);var a=0!=(64&e.effectTag);if(!n&&!a)return i&&wi(e,r,!1),os(t,e,o);n=e.stateNode,Ua.current=e;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return e.effectTag|=1,null!==t&&a?(e.child=Lo(e,t.child,null,o),e.child=Lo(e,null,s,o)):Va(t,e,s,o),e.memoizedState=n.state,i&&wi(e,r,!0),e.child}function $a(t){var e=t.stateNode;e.pendingContext?bi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&bi(0,e.context,!1),Uo(t,e.containerInfo)}var Qa,Ja,Za,ts={dehydrated:null,retryTime:0};function es(t,e,r){var n,i=e.mode,o=e.pendingProps,a=Go.current,s=!1;if((n=0!=(64&e.effectTag))||(n=0!=(2&a)&&(null===t||null!==t.memoizedState)),n?(s=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),ci(Go,1&a),null===t){if(void 0!==o.fallback&&Na(e),s){if(s=o.fallback,(o=Iu(null,i,0,null)).return=e,0==(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(r=Iu(s,i,r,null)).return=e,o.sibling=r,e.memoizedState=ts,e.child=o,r}return i=o.children,e.memoizedState=null,e.child=Io(e,null,i,r)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,s){if(o=o.fallback,(r=Du(t,t.pendingProps)).return=e,0==(2&e.mode)&&(s=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(r.child=s;null!==s;)s.return=r,s=s.sibling;return(i=Du(i,o,i.expirationTime)).return=e,r.sibling=i,r.childExpirationTime=0,e.memoizedState=ts,e.child=r,i}return r=Lo(e,t.child,o.children,r),e.memoizedState=null,e.child=r}if(t=t.child,s){if(s=o.fallback,(o=Iu(null,i,0,null)).return=e,o.child=t,null!==t&&(t.return=o),0==(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(r=Iu(s,i,r,null)).return=e,o.sibling=r,r.effectTag|=2,o.childExpirationTime=0,e.memoizedState=ts,e.child=o,r}return e.memoizedState=null,e.child=Lo(e,t,o.children,r)}function rs(t,e){t.expirationTime<e&&(t.expirationTime=e);var r=t.alternate;null!==r&&r.expirationTime<e&&(r.expirationTime=e),oo(t.return,e)}function ns(t,e,r,n,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,last:n,tail:r,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.last=n,a.tail=r,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function is(t,e,r){var n=e.pendingProps,i=n.revealOrder,o=n.tail;if(Va(t,e,n.children,r),0!=(2&(n=Go.current)))n=1&n|2,e.effectTag|=64;else{if(null!==t&&0!=(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&rs(t,r);else if(19===t.tag)rs(t,r);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(ci(Go,n),0==(2&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;null!==r;)null!==(t=r.alternate)&&null===Wo(t)&&(i=r),r=r.sibling;null===(r=i)?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),ns(e,!1,i,r,o,e.lastEffect);break;case"backwards":for(r=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Wo(t)){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}ns(e,!0,r,null,o,e.lastEffect);break;case"together":ns(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function os(t,e,r){null!==t&&(e.dependencies=t.dependencies);var n=e.expirationTime;if(0!==n&&du(n),e.childExpirationTime<r)return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(r=Du(t=e.child,t.pendingProps,t.expirationTime),e.child=r,r.return=e;null!==t.sibling;)t=t.sibling,(r=r.sibling=Du(t,t.pendingProps,t.expirationTime)).return=e;r.sibling=null}return e.child}function as(t){t.effectTag|=4}function ss(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;null!==e;)null!==e.alternate&&(r=e),e=e.sibling;null===r?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?e||null===t.tail?t.tail=null:t.tail.sibling=null:n.sibling=null}}function us(t){switch(t.tag){case 1:vi(t.type)&&yi();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Ho(),mi(),0!=(64&(e=t.effectTag)))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return zo(t),null;case 13:return li(Go),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return li(Go),null;case 4:return Ho(),null;case 10:return io(t),null;default:return null}}function ls(t,e){return{value:t,source:e,stack:J(e)}}Qa=function(t,e){for(var r=e.child;null!==r;){if(5===r.tag||6===r.tag)t.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ja=function(t,e,r,n,o){var a=t.memoizedProps;if(a!==n){var s,u,l=e.stateNode;switch(Fo(No.current),t=null,r){case"input":a=xt(l,a),n=xt(l,n),t=[];break;case"option":a=Dt(l,a),n=Dt(l,n),t=[];break;case"select":a=i({},a,{value:void 0}),n=i({},n,{value:void 0}),t=[];break;case"textarea":a=It(l,a),n=It(l,n),t=[];break;default:"function"!=typeof a.onClick&&"function"==typeof n.onClick&&(l.onclick=zr)}for(s in Ur(r,n),r=null,a)if(!n.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in l=a[s])l.hasOwnProperty(u)&&(r||(r={}),r[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(h.hasOwnProperty(s)?t||(t=[]):(t=t||[]).push(s,null));for(s in n){var c=n[s];if(l=null!=a?a[s]:void 0,n.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(r||(r={}),r[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(r||(r={}),r[u]=c[u])}else r||(t||(t=[]),t.push(s,r)),r=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(t=t||[]).push(s,""+c)):"children"===s?l===c||"string"!=typeof c&&"number"!=typeof c||(t=t||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(h.hasOwnProperty(s)?(null!=c&&Vr(o,s),t||l===c||(t=[])):(t=t||[]).push(s,c))}r&&(t=t||[]).push("style",r),o=t,(e.updateQueue=o)&&as(e)}},Za=function(t,e,r,n){r!==n&&as(e)};var cs="function"==typeof WeakSet?WeakSet:Set;function fs(t,e){var r=e.source,n=e.stack;null===n&&null!==r&&(n=J(r)),null!==r&&Q(r.type),e=e.value,null!==t&&1===t.tag&&Q(t.type);try{console.error(e)}catch(t){setTimeout((function(){throw t}))}}function ds(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){_u(t,e)}else e.current=null}function hs(t,e){switch(e.tag){case 0:case 11:case 15:ps(2,0,e);break;case 1:if(256&e.effectTag&&null!==t){var r=t.memoizedProps,n=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?r:Qi(e.type,r),n),t.__reactInternalSnapshotBeforeUpdate=e}break;case 3:case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}function ps(t,e,r){if(null!==(r=null!==(r=r.updateQueue)?r.lastEffect:null)){var n=r=r.next;do{if(0!=(n.tag&t)){var i=n.destroy;n.destroy=void 0,void 0!==i&&i()}0!=(n.tag&e)&&(i=n.create,n.destroy=i()),n=n.next}while(n!==r)}}function gs(t,e,r){switch("function"==typeof Ou&&Ou(e),e.tag){case 0:case 11:case 14:case 15:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var n=t.next;Gi(97<r?97:r,(function(){var t=n;do{var r=t.destroy;if(void 0!==r){var i=e;try{r()}catch(t){_u(i,t)}}t=t.next}while(t!==n)}))}break;case 1:ds(e),"function"==typeof(r=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){_u(t,e)}}(e,r);break;case 5:ds(e);break;case 4:bs(t,e,r)}}function vs(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,null!==e&&vs(e)}function ys(t){return 5===t.tag||3===t.tag||4===t.tag}function ms(t){t:{for(var e=t.return;null!==e;){if(ys(e)){var r=e;break t}e=e.return}throw Error(a(160))}switch(e=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:e=e.containerInfo,n=!0;break;default:throw Error(a(161))}16&r.effectTag&&(Gt(e,""),r.effectTag&=-17);t:e:for(r=t;;){for(;null===r.sibling;){if(null===r.return||ys(r.return)){r=null;break t}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue e;if(null===r.child||4===r.tag)continue e;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break t}}for(var i=t;;){var o=5===i.tag||6===i.tag;if(o){var s=o?i.stateNode:i.stateNode.instance;if(r)if(n){var u=s;s=r,8===(o=e).nodeType?o.parentNode.insertBefore(u,s):o.insertBefore(u,s)}else e.insertBefore(s,r);else n?(8===(u=e).nodeType?(o=u.parentNode).insertBefore(s,u):(o=u).appendChild(s),null!=(u=u._reactRootContainer)||null!==o.onclick||(o.onclick=zr)):e.appendChild(s)}else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function bs(t,e,r){for(var n,i,o=e,s=!1;;){if(!s){s=o.return;t:for(;;){if(null===s)throw Error(a(160));switch(n=s.stateNode,s.tag){case 5:i=!1;break t;case 3:case 4:n=n.containerInfo,i=!0;break t}s=s.return}s=!0}if(5===o.tag||6===o.tag){t:for(var u=t,l=o,c=r,f=l;;)if(gs(u,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break;for(;null===f.sibling;){if(null===f.return||f.return===l)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=n,l=o.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(gs(t,o,r),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function Es(t,e){switch(e.tag){case 0:case 11:case 14:case 15:ps(4,8,e);break;case 1:break;case 5:var r=e.stateNode;if(null!=r){var n=e.memoizedProps,i=null!==t?t.memoizedProps:n;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(r[an]=n,"input"===t&&"radio"===n.type&&null!=n.name&&Ot(r,n),Hr(t,i),e=Hr(t,n),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?Br(r,u):"dangerouslySetInnerHTML"===s?zt(r,u):"children"===s?Gt(r,u):wt(r,s,u,e)}switch(t){case"input":Pt(r,n);break;case"textarea":Nt(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(t=n.value)?Lt(r,!!n.multiple,t,!1):e!==!!n.multiple&&(null!=n.defaultValue?Lt(r,!!n.multiple,n.defaultValue,!0):Lt(r,!!n.multiple,n.multiple?[]:"",!1))}}}break;case 6:if(null===e.stateNode)throw Error(a(162));e.stateNode.nodeValue=e.memoizedProps;break;case 3:(e=e.stateNode).hydrate&&(e.hydrate=!1,xe(e.containerInfo));break;case 12:break;case 13:if(r=e,null===e.memoizedState?n=!1:(n=!0,r=e.child,Us=Hi()),null!==r)t:for(t=r;;){if(5===t.tag)o=t.stateNode,n?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,i=null!=(i=t.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=jr("display",i));else if(6===t.tag)t.stateNode.nodeValue=n?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===r)break t;for(;null===t.sibling;){if(null===t.return||t.return===r)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}Ts(e);break;case 19:Ts(e);break;case 17:case 20:case 21:break;default:throw Error(a(163))}}function Ts(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var r=t.stateNode;null===r&&(r=t.stateNode=new cs),e.forEach((function(e){var n=xu.bind(null,t,e);r.has(e)||(r.add(e),e.then(n,n))}))}}var ws="function"==typeof WeakMap?WeakMap:Map;function Ss(t,e,r){(r=fo(r,null)).tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){Vs||(Vs=!0,zs=n),fs(t,e)},r}function _s(t,e,r){(r=fo(r,null)).tag=3;var n=t.type.getDerivedStateFromError;if("function"==typeof n){var i=e.value;r.payload=function(){return fs(t,e),n(i)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Gs?Gs=new Set([this]):Gs.add(this),fs(t,e));var r=e.stack;this.componentDidCatch(e.value,{componentStack:null!==r?r:""})}),r}var ks,xs=Math.ceil,As=L.ReactCurrentDispatcher,Os=L.ReactCurrentOwner,Ps=0,Cs=null,Rs=null,Ds=0,Ls=0,Is=null,Ms=1073741823,Ns=1073741823,js=null,Bs=0,Fs=!1,Us=0,Hs=null,Vs=!1,zs=null,Gs=null,Ws=!1,Ks=null,Ys=90,Xs=null,qs=0,$s=null,Qs=0;function Js(){return 0!=(48&Ps)?1073741821-(Hi()/10|0):0!==Qs?Qs:Qs=1073741821-(Hi()/10|0)}function Zs(t,e,r){if(0==(2&(e=e.mode)))return 1073741823;var n=Vi();if(0==(4&e))return 99===n?1073741823:1073741822;if(0!=(16&Ps))return Ds;if(null!==r)t=$i(t,0|r.timeoutMs||5e3,250);else switch(n){case 99:t=1073741823;break;case 98:t=$i(t,150,100);break;case 97:case 96:t=$i(t,5e3,250);break;case 95:t=2;break;default:throw Error(a(326))}return null!==Cs&&t===Ds&&--t,t}function tu(t,e){if(50<qs)throw qs=0,$s=null,Error(a(185));if(null!==(t=eu(t,e))){var r=Vi();1073741823===e?0!=(8&Ps)&&0==(48&Ps)?ou(t):(nu(t),0===Ps&&Yi()):nu(t),0==(4&Ps)||98!==r&&99!==r||(null===Xs?Xs=new Map([[t,e]]):(void 0===(r=Xs.get(t))||r>e)&&Xs.set(t,e))}}function eu(t,e){t.expirationTime<e&&(t.expirationTime=e);var r=t.alternate;null!==r&&r.expirationTime<e&&(r.expirationTime=e);var n=t.return,i=null;if(null===n&&3===t.tag)i=t.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<e&&(n.childExpirationTime=e),null!==r&&r.childExpirationTime<e&&(r.childExpirationTime=e),null===n.return&&3===n.tag){i=n.stateNode;break}n=n.return}return null!==i&&(Cs===i&&(du(e),4===Ls&&Fu(i,Ds)),Uu(i,e)),i}function ru(t){var e=t.lastExpiredTime;return 0!==e?e:Bu(t,e=t.firstPendingTime)?(e=t.lastPingedTime)>(t=t.nextKnownPendingLevel)?e:t:e}function nu(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Ki(ou.bind(null,t));else{var e=ru(t),r=t.callbackNode;if(0===e)null!==r&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var n=Js();if(1073741823===e?n=99:1===e||2===e?n=95:n=0>=(n=10*(1073741821-e)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=n)return;r!==Mi&&ki(r)}t.callbackExpirationTime=e,t.callbackPriority=n,e=1073741823===e?Ki(ou.bind(null,t)):Wi(n,iu.bind(null,t),{timeout:10*(1073741821-e)-Hi()}),t.callbackNode=e}}}function iu(t,e){if(Qs=0,e)return Hu(t,e=Js()),nu(t),null;var r=ru(t);if(0!==r){if(e=t.callbackNode,0!=(48&Ps))throw Error(a(327));if(Tu(),t===Cs&&r===Ds||uu(t,r),null!==Rs){var n=Ps;Ps|=16;for(var i=cu();;)try{pu();break}catch(e){lu(t,e)}if(ro(),Ps=n,As.current=i,1===Ls)throw e=Is,uu(t,r),Fu(t,r),nu(t),e;if(null===Rs)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=r,n=Ls,Cs=null,n){case 0:case 1:throw Error(a(345));case 2:Hu(t,2<r?2:r);break;case 3:if(Fu(t,r),r===(n=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=yu(i)),1073741823===Ms&&10<(i=Us+500-Hi())){if(Fs){var o=t.lastPingedTime;if(0===o||o>=r){t.lastPingedTime=r,uu(t,r);break}}if(0!==(o=ru(t))&&o!==r)break;if(0!==n&&n!==r){t.lastPingedTime=n;break}t.timeoutHandle=Zr(mu.bind(null,t),i);break}mu(t);break;case 4:if(Fu(t,r),r===(n=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=yu(i)),Fs&&(0===(i=t.lastPingedTime)||i>=r)){t.lastPingedTime=r,uu(t,r);break}if(0!==(i=ru(t))&&i!==r)break;if(0!==n&&n!==r){t.lastPingedTime=n;break}if(1073741823!==Ns?n=10*(1073741821-Ns)-Hi():1073741823===Ms?n=0:(n=10*(1073741821-Ms)-5e3,0>(n=(i=Hi())-n)&&(n=0),(r=10*(1073741821-r)-i)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*xs(n/1960))-n)&&(n=r)),10<n){t.timeoutHandle=Zr(mu.bind(null,t),n);break}mu(t);break;case 5:if(1073741823!==Ms&&null!==js){o=Ms;var s=js;if(0>=(n=0|s.busyMinDurationMs)?n=0:(i=0|s.busyDelayMs,n=(o=Hi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+n-o),10<n){Fu(t,r),t.timeoutHandle=Zr(mu.bind(null,t),n);break}}mu(t);break;default:throw Error(a(329))}if(nu(t),t.callbackNode===e)return iu.bind(null,t)}}return null}function ou(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,t.finishedExpirationTime===e)mu(t);else{if(0!=(48&Ps))throw Error(a(327));if(Tu(),t===Cs&&e===Ds||uu(t,e),null!==Rs){var r=Ps;Ps|=16;for(var n=cu();;)try{hu();break}catch(e){lu(t,e)}if(ro(),Ps=r,As.current=n,1===Ls)throw r=Is,uu(t,e),Fu(t,e),nu(t),r;if(null!==Rs)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,Cs=null,mu(t),nu(t)}}return null}function au(t,e){var r=Ps;Ps|=1;try{return t(e)}finally{0===(Ps=r)&&Yi()}}function su(t,e){var r=Ps;Ps&=-2,Ps|=8;try{return t(e)}finally{0===(Ps=r)&&Yi()}}function uu(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var r=t.timeoutHandle;if(-1!==r&&(t.timeoutHandle=-1,tn(r)),null!==Rs)for(r=Rs.return;null!==r;){var n=r;switch(n.tag){case 1:var i=n.type.childContextTypes;null!=i&&yi();break;case 3:Ho(),mi();break;case 5:zo(n);break;case 4:Ho();break;case 13:case 19:li(Go);break;case 10:io(n)}r=r.return}Cs=t,Rs=Du(t.current,null),Ds=e,Ls=0,Is=null,Ns=Ms=1073741823,js=null,Bs=0,Fs=!1}function lu(t,e){for(;;){try{if(ro(),fa(),null===Rs||null===Rs.return)return Ls=1,Is=e,null;t:{var r=t,n=Rs.return,i=Rs,o=e;if(e=Ds,i.effectTag|=2048,i.firstEffect=i.lastEffect=null,null!==o&&"object"==typeof o&&"function"==typeof o.then){var a=o,s=0!=(1&Go.current),u=n;do{var l;if(l=13===u.tag){var c=u.memoizedState;if(null!==c)l=null!==c.dehydrated;else{var f=u.memoizedProps;l=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!s)}}if(l){var d=u.updateQueue;if(null===d){var h=new Set;h.add(a),u.updateQueue=h}else d.add(a);if(0==(2&u.mode)){if(u.effectTag|=64,i.effectTag&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var p=fo(1073741823,null);p.tag=2,po(i,p)}i.expirationTime=1073741823;break t}o=void 0,i=e;var g=r.pingCache;if(null===g?(g=r.pingCache=new ws,o=new Set,g.set(a,o)):void 0===(o=g.get(a))&&(o=new Set,g.set(a,o)),!o.has(i)){o.add(i);var v=ku.bind(null,r,a,i);a.then(v,v)}u.effectTag|=4096,u.expirationTime=e;break t}u=u.return}while(null!==u);o=Error((Q(i.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+J(i))}5!==Ls&&(Ls=2),o=ls(o,i),u=n;do{switch(u.tag){case 3:a=o,u.effectTag|=4096,u.expirationTime=e,go(u,Ss(u,a,e));break t;case 1:a=o;var y=u.type,m=u.stateNode;if(0==(64&u.effectTag)&&("function"==typeof y.getDerivedStateFromError||null!==m&&"function"==typeof m.componentDidCatch&&(null===Gs||!Gs.has(m)))){u.effectTag|=4096,u.expirationTime=e,go(u,_s(u,a,e));break t}}u=u.return}while(null!==u)}Rs=vu(Rs)}catch(t){e=t;continue}break}}function cu(){var t=As.current;return As.current=Oa,null===t?Oa:t}function fu(t,e){t<Ms&&2<t&&(Ms=t),null!==e&&t<Ns&&2<t&&(Ns=t,js=e)}function du(t){t>Bs&&(Bs=t)}function hu(){for(;null!==Rs;)Rs=gu(Rs)}function pu(){for(;null!==Rs&&!xi();)Rs=gu(Rs)}function gu(t){var e=ks(t.alternate,t,Ds);return t.memoizedProps=t.pendingProps,null===e&&(e=vu(t)),Os.current=null,e}function vu(t){Rs=t;do{var e=Rs.alternate;if(t=Rs.return,0==(2048&Rs.effectTag)){t:{var r=e,n=Ds,o=(e=Rs).pendingProps;switch(e.tag){case 2:case 16:break;case 15:case 0:break;case 1:vi(e.type)&&yi();break;case 3:Ho(),mi(),(o=e.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(null===r||null===r.child)&&Ba(e)&&as(e);break;case 5:zo(e),n=Fo(Bo.current);var s=e.type;if(null!==r&&null!=e.stateNode)Ja(r,e,s,o,n),r.ref!==e.ref&&(e.effectTag|=128);else if(o){var u=Fo(No.current);if(Ba(e)){var l=(o=e).stateNode;r=o.type;var c=o.memoizedProps,f=n;switch(l[on]=o,l[an]=c,s=void 0,n=l,r){case"iframe":case"object":case"embed":_r("load",n);break;case"video":case"audio":for(l=0;l<te.length;l++)_r(te[l],n);break;case"source":_r("error",n);break;case"img":case"image":case"link":_r("error",n),_r("load",n);break;case"form":_r("reset",n),_r("submit",n);break;case"details":_r("toggle",n);break;case"input":At(n,c),_r("invalid",n),Vr(f,"onChange");break;case"select":n._wrapperState={wasMultiple:!!c.multiple},_r("invalid",n),Vr(f,"onChange");break;case"textarea":Mt(n,c),_r("invalid",n),Vr(f,"onChange")}for(s in Ur(r,c),l=null,c)c.hasOwnProperty(s)&&(u=c[s],"children"===s?"string"==typeof u?n.textContent!==u&&(l=["children",u]):"number"==typeof u&&n.textContent!==""+u&&(l=["children",""+u]):h.hasOwnProperty(s)&&null!=u&&Vr(f,s));switch(r){case"input":_t(n),Ct(n,c,!0);break;case"textarea":_t(n),jt(n);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(n.onclick=zr)}s=l,o.updateQueue=s,(o=null!==s)&&as(e)}else{r=e,f=s,c=o,l=9===n.nodeType?n:n.ownerDocument,u===Bt&&(u=Ut(f)),u===Bt?"script"===f?((c=l.createElement("div")).innerHTML="<script><\/script>",l=c.removeChild(c.firstChild)):"string"==typeof c.is?l=l.createElement(f,{is:c.is}):(l=l.createElement(f),"select"===f&&(f=l,c.multiple?f.multiple=!0:c.size&&(f.size=c.size))):l=l.createElementNS(u,f),(c=l)[on]=r,c[an]=o,Qa(c,e),e.stateNode=c;var d=n,p=Hr(f=s,r=o);switch(f){case"iframe":case"object":case"embed":_r("load",c),n=r;break;case"video":case"audio":for(n=0;n<te.length;n++)_r(te[n],c);n=r;break;case"source":_r("error",c),n=r;break;case"img":case"image":case"link":_r("error",c),_r("load",c),n=r;break;case"form":_r("reset",c),_r("submit",c),n=r;break;case"details":_r("toggle",c),n=r;break;case"input":At(c,r),n=xt(c,r),_r("invalid",c),Vr(d,"onChange");break;case"option":n=Dt(c,r);break;case"select":c._wrapperState={wasMultiple:!!r.multiple},n=i({},r,{value:void 0}),_r("invalid",c),Vr(d,"onChange");break;case"textarea":Mt(c,r),n=It(c,r),_r("invalid",c),Vr(d,"onChange");break;default:n=r}Ur(f,n),l=void 0,u=f;var g=c,v=n;for(l in v)if(v.hasOwnProperty(l)){var y=v[l];"style"===l?Br(g,y):"dangerouslySetInnerHTML"===l?null!=(y=y?y.__html:void 0)&&zt(g,y):"children"===l?"string"==typeof y?("textarea"!==u||""!==y)&&Gt(g,y):"number"==typeof y&&Gt(g,""+y):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(h.hasOwnProperty(l)?null!=y&&Vr(d,l):null!=y&&wt(g,l,y,p))}switch(f){case"input":_t(c),Ct(c,r,!1);break;case"textarea":_t(c),jt(c);break;case"option":null!=r.value&&c.setAttribute("value",""+Tt(r.value));break;case"select":(n=c).multiple=!!r.multiple,null!=(c=r.value)?Lt(n,!!r.multiple,c,!1):null!=r.defaultValue&&Lt(n,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof n.onClick&&(c.onclick=zr)}(o=Qr(s,o))&&as(e)}null!==e.ref&&(e.effectTag|=128)}else if(null===e.stateNode)throw Error(a(166));break;case 6:if(r&&null!=e.stateNode)Za(0,e,r.memoizedProps,o);else{if("string"!=typeof o&&null===e.stateNode)throw Error(a(166));n=Fo(Bo.current),Fo(No.current),Ba(e)?(s=(o=e).stateNode,n=o.memoizedProps,s[on]=o,(o=s.nodeValue!==n)&&as(e)):(s=e,(o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[on]=s,e.stateNode=o)}break;case 11:break;case 13:if(li(Go),o=e.memoizedState,0!=(64&e.effectTag)){e.expirationTime=n;break t}o=null!==o,s=!1,null===r?void 0!==e.memoizedProps.fallback&&Ba(e):(s=null!==(n=r.memoizedState),o||null===n||null!==(n=r.child.sibling)&&(null!==(c=e.firstEffect)?(e.firstEffect=n,n.nextEffect=c):(e.firstEffect=e.lastEffect=n,n.nextEffect=null),n.effectTag=8)),o&&!s&&0!=(2&e.mode)&&(null===r&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!=(1&Go.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),0!==Bs&&null!==Cs&&(Fu(Cs,Ds),Uu(Cs,Bs)))),(o||s)&&(e.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Ho();break;case 10:io(e);break;case 9:case 14:break;case 17:vi(e.type)&&yi();break;case 19:if(li(Go),null===(o=e.memoizedState))break;if(s=0!=(64&e.effectTag),null===(c=o.rendering)){if(s)ss(o,!1);else if(0!==Ls||null!==r&&0!=(64&r.effectTag))for(r=e.child;null!==r;){if(null!==(c=Wo(r))){for(e.effectTag|=64,ss(o,!1),null!==(s=c.updateQueue)&&(e.updateQueue=s,e.effectTag|=4),null===o.lastEffect&&(e.firstEffect=null),e.lastEffect=o.lastEffect,o=n,s=e.child;null!==s;)r=o,(n=s).effectTag&=2,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null,null===(c=n.alternate)?(n.childExpirationTime=0,n.expirationTime=r,n.child=null,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null):(n.childExpirationTime=c.childExpirationTime,n.expirationTime=c.expirationTime,n.child=c.child,n.memoizedProps=c.memoizedProps,n.memoizedState=c.memoizedState,n.updateQueue=c.updateQueue,r=c.dependencies,n.dependencies=null===r?null:{expirationTime:r.expirationTime,firstContext:r.firstContext,responders:r.responders}),s=s.sibling;ci(Go,1&Go.current|2),e=e.child;break t}r=r.sibling}}else{if(!s)if(null!==(r=Wo(c))){if(e.effectTag|=64,s=!0,null!==(n=r.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),ss(o,!0),null===o.tail&&"hidden"===o.tailMode&&!c.alternate){null!==(e=e.lastEffect=o.lastEffect)&&(e.nextEffect=null);break}}else Hi()>o.tailExpiration&&1<n&&(e.effectTag|=64,s=!0,ss(o,!1),e.expirationTime=e.childExpirationTime=n-1);o.isBackwards?(c.sibling=e.child,e.child=c):(null!==(n=o.last)?n.sibling=c:e.child=c,o.last=c)}if(null!==o.tail){0===o.tailExpiration&&(o.tailExpiration=Hi()+500),n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=e.lastEffect,n.sibling=null,o=Go.current,ci(Go,o=s?1&o|2:1&o),e=n;break t}break;case 20:case 21:break;default:throw Error(a(156,e.tag))}e=null}if(o=Rs,1===Ds||1!==o.childExpirationTime){for(s=0,n=o.child;null!==n;)(r=n.expirationTime)>s&&(s=r),(c=n.childExpirationTime)>s&&(s=c),n=n.sibling;o.childExpirationTime=s}if(null!==e)return e;null!==t&&0==(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Rs.firstEffect),null!==Rs.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Rs.firstEffect),t.lastEffect=Rs.lastEffect),1<Rs.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=Rs:t.firstEffect=Rs,t.lastEffect=Rs))}else{if(null!==(e=us(Rs)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=Rs.sibling))return e;Rs=t}while(null!==Rs);return 0===Ls&&(Ls=5),null}function yu(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function mu(t){var e=Vi();return Gi(99,bu.bind(null,t,e)),null}function bu(t,e){do{Tu()}while(null!==Ks);if(0!=(48&Ps))throw Error(a(327));var r=t.finishedWork,n=t.finishedExpirationTime;if(null===r)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,r===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=yu(r);if(t.firstPendingTime=i,n<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:n<=t.firstSuspendedTime&&(t.firstSuspendedTime=n-1),n<=t.lastPingedTime&&(t.lastPingedTime=0),n<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===Cs&&(Rs=Cs=null,Ds=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,i=r.firstEffect):i=r:i=r.firstEffect,null!==i){var o=Ps;Ps|=32,Os.current=null,qr=Sr;var s=Yr();if(Xr(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else t:{var l=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{u.nodeType,f.nodeType}catch(t){u=null;break t}var d=0,h=-1,p=-1,g=0,v=0,y=s,m=null;e:for(;;){for(var b;y!==u||0!==c&&3!==y.nodeType||(h=d+c),y!==f||0!==l&&3!==y.nodeType||(p=d+l),3===y.nodeType&&(d+=y.nodeValue.length),null!==(b=y.firstChild);)m=y,y=b;for(;;){if(y===s)break e;if(m===u&&++g===c&&(h=d),m===f&&++v===l&&(p=d),null!==(b=y.nextSibling))break;m=(y=m).parentNode}y=b}u=-1===h||-1===p?null:{start:h,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;$r={focusedElem:s,selectionRange:u},Sr=!1,Hs=i;do{try{Eu()}catch(t){if(null===Hs)throw Error(a(330));_u(Hs,t),Hs=Hs.nextEffect}}while(null!==Hs);Hs=i;do{try{for(s=t,u=e;null!==Hs;){var E=Hs.effectTag;if(16&E&&Gt(Hs.stateNode,""),128&E){var T=Hs.alternate;if(null!==T){var w=T.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&E){case 2:ms(Hs),Hs.effectTag&=-3;break;case 6:ms(Hs),Hs.effectTag&=-3,Es(Hs.alternate,Hs);break;case 1024:Hs.effectTag&=-1025;break;case 1028:Hs.effectTag&=-1025,Es(Hs.alternate,Hs);break;case 4:Es(Hs.alternate,Hs);break;case 8:bs(s,c=Hs,u),vs(c)}Hs=Hs.nextEffect}}catch(t){if(null===Hs)throw Error(a(330));_u(Hs,t),Hs=Hs.nextEffect}}while(null!==Hs);if(w=$r,T=Yr(),E=w.focusedElem,u=w.selectionRange,T!==E&&E&&E.ownerDocument&&function t(e,r){return!(!e||!r)&&(e===r||(!e||3!==e.nodeType)&&(r&&3===r.nodeType?t(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}(E.ownerDocument.documentElement,E)){null!==u&&Xr(E)&&(T=u.start,void 0===(w=u.end)&&(w=T),"selectionStart"in E?(E.selectionStart=T,E.selectionEnd=Math.min(w,E.value.length)):(w=(T=E.ownerDocument||document)&&T.defaultView||window).getSelection&&(w=w.getSelection(),c=E.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!w.extend&&s>u&&(c=u,u=s,s=c),c=Kr(E,s),f=Kr(E,u),c&&f&&(1!==w.rangeCount||w.anchorNode!==c.node||w.anchorOffset!==c.offset||w.focusNode!==f.node||w.focusOffset!==f.offset)&&((T=T.createRange()).setStart(c.node,c.offset),w.removeAllRanges(),s>u?(w.addRange(T),w.extend(f.node,f.offset)):(T.setEnd(f.node,f.offset),w.addRange(T))))),T=[];for(w=E;w=w.parentNode;)1===w.nodeType&&T.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<T.length;E++)(w=T[E]).element.scrollLeft=w.left,w.element.scrollTop=w.top}$r=null,Sr=!!qr,qr=null,t.current=r,Hs=i;do{try{for(E=n;null!==Hs;){var S=Hs.effectTag;if(36&S){var _=Hs.alternate;switch(w=E,(T=Hs).tag){case 0:case 11:case 15:ps(16,32,T);break;case 1:var k=T.stateNode;if(4&T.effectTag)if(null===_)k.componentDidMount();else{var x=T.elementType===T.type?_.memoizedProps:Qi(T.type,_.memoizedProps);k.componentDidUpdate(x,_.memoizedState,k.__reactInternalSnapshotBeforeUpdate)}var A=T.updateQueue;null!==A&&bo(0,A,k);break;case 3:var O=T.updateQueue;if(null!==O){if(s=null,null!==T.child)switch(T.child.tag){case 5:s=T.child.stateNode;break;case 1:s=T.child.stateNode}bo(0,O,s)}break;case 5:var P=T.stateNode;null===_&&4&T.effectTag&&Qr(T.type,T.memoizedProps)&&P.focus();break;case 6:case 4:case 12:break;case 13:if(null===T.memoizedState){var C=T.alternate;if(null!==C){var R=C.memoizedState;if(null!==R){var D=R.dehydrated;null!==D&&xe(D)}}}break;case 19:case 17:case 20:case 21:break;default:throw Error(a(163))}}if(128&S){T=void 0;var L=Hs.ref;if(null!==L){var I=Hs.stateNode;switch(Hs.tag){case 5:T=I;break;default:T=I}"function"==typeof L?L(T):L.current=T}}Hs=Hs.nextEffect}}catch(t){if(null===Hs)throw Error(a(330));_u(Hs,t),Hs=Hs.nextEffect}}while(null!==Hs);Hs=null,Ni(),Ps=o}else t.current=r;if(Ws)Ws=!1,Ks=t,Ys=e;else for(Hs=i;null!==Hs;)e=Hs.nextEffect,Hs.nextEffect=null,Hs=e;if(0===(e=t.firstPendingTime)&&(Gs=null),1073741823===e?t===$s?qs++:(qs=0,$s=t):qs=0,"function"==typeof Au&&Au(r.stateNode,n),nu(t),Vs)throw Vs=!1,t=zs,zs=null,t;return 0!=(8&Ps)||Yi(),null}function Eu(){for(;null!==Hs;){var t=Hs.effectTag;0!=(256&t)&&hs(Hs.alternate,Hs),0==(512&t)||Ws||(Ws=!0,Wi(97,(function(){return Tu(),null}))),Hs=Hs.nextEffect}}function Tu(){if(90!==Ys){var t=97<Ys?97:Ys;return Ys=90,Gi(t,wu)}}function wu(){if(null===Ks)return!1;var t=Ks;if(Ks=null,0!=(48&Ps))throw Error(a(331));var e=Ps;for(Ps|=32,t=t.current.firstEffect;null!==t;){try{var r=t;if(0!=(512&r.effectTag))switch(r.tag){case 0:case 11:case 15:ps(128,0,r),ps(0,64,r)}}catch(e){if(null===t)throw Error(a(330));_u(t,e)}r=t.nextEffect,t.nextEffect=null,t=r}return Ps=e,Yi(),!0}function Su(t,e,r){po(t,e=Ss(t,e=ls(r,e),1073741823)),null!==(t=eu(t,1073741823))&&nu(t)}function _u(t,e){if(3===t.tag)Su(t,t,e);else for(var r=t.return;null!==r;){if(3===r.tag){Su(r,t,e);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Gs||!Gs.has(n))){po(r,t=_s(r,t=ls(e,t),1073741823)),null!==(r=eu(r,1073741823))&&nu(r);break}}r=r.return}}function ku(t,e,r){var n=t.pingCache;null!==n&&n.delete(e),Cs===t&&Ds===r?4===Ls||3===Ls&&1073741823===Ms&&Hi()-Us<500?uu(t,Ds):Fs=!0:Bu(t,r)&&(0!==(e=t.lastPingedTime)&&e<r||(t.lastPingedTime=r,t.finishedExpirationTime===r&&(t.finishedExpirationTime=0,t.finishedWork=null),nu(t)))}function xu(t,e){var r=t.stateNode;null!==r&&r.delete(e),0===(e=0)&&(e=Zs(e=Js(),t,null)),null!==(t=eu(t,e))&&nu(t)}ks=function(t,e,r){var n=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||hi.current)Ha=!0;else{if(n<r){switch(Ha=!1,e.tag){case 3:$a(e),Fa();break;case 5:if(Vo(e),4&e.mode&&1!==r&&i.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:vi(e.type)&&Ti(e);break;case 4:Uo(e,e.stateNode.containerInfo);break;case 10:no(e,e.memoizedProps.value);break;case 13:if(null!==e.memoizedState)return 0!==(n=e.child.childExpirationTime)&&n>=r?es(t,e,r):(ci(Go,1&Go.current),null!==(e=os(t,e,r))?e.sibling:null);ci(Go,1&Go.current);break;case 19:if(n=e.childExpirationTime>=r,0!=(64&t.effectTag)){if(n)return is(t,e,r);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),ci(Go,Go.current),!n)return null}return os(t,e,r)}Ha=!1}}else Ha=!1;switch(e.expirationTime=0,e.tag){case 2:if(n=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=gi(e,di.current),ao(e,r),i=ca(null,e,n,t,i,r),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,fa(),vi(n)){var o=!0;Ti(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var s=n.getDerivedStateFromProps;"function"==typeof s&&So(e,n,s,t),i.updater=_o,e.stateNode=i,i._reactInternalFiber=e,Oo(e,n,t,r),e=qa(null,e,n,!0,o,r)}else e.tag=0,Va(null,e,i,r),e=e.child;return e;case 16:if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"==typeof t)return Ru(t)?1:0;if(null!=t){if((t=t.$$typeof)===G)return 11;if(t===Y)return 14}return 2}(i),t=Qi(i,t),o){case 0:e=Ya(null,e,i,t,r);break;case 1:e=Xa(null,e,i,t,r);break;case 11:e=za(null,e,i,t,r);break;case 14:e=Ga(null,e,i,Qi(i.type,t),n,r);break;default:throw Error(a(306,i,""))}return e;case 0:return n=e.type,i=e.pendingProps,Ya(t,e,n,i=e.elementType===n?i:Qi(n,i),r);case 1:return n=e.type,i=e.pendingProps,Xa(t,e,n,i=e.elementType===n?i:Qi(n,i),r);case 3:if($a(e),null===(n=e.updateQueue))throw Error(a(282));if(i=null!==(i=e.memoizedState)?i.element:null,mo(e,n,e.pendingProps,null,r),(n=e.memoizedState.element)===i)Fa(),e=os(t,e,r);else{if((i=e.stateNode.hydrate)&&(Da=en(e.stateNode.containerInfo.firstChild),Ra=e,i=La=!0),i)for(r=Io(e,null,n,r),e.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Va(t,e,n,r),Fa();e=e.child}return e;case 5:return Vo(e),null===t&&Na(e),n=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,Jr(n,i)?s=null:null!==o&&Jr(n,o)&&(e.effectTag|=16),Ka(t,e),4&e.mode&&1!==r&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Va(t,e,s,r),e=e.child),e;case 6:return null===t&&Na(e),null;case 13:return es(t,e,r);case 4:return Uo(e,e.stateNode.containerInfo),n=e.pendingProps,null===t?e.child=Lo(e,null,n,r):Va(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,za(t,e,n,i=e.elementType===n?i:Qi(n,i),r);case 7:return Va(t,e,e.pendingProps,r),e.child;case 8:case 12:return Va(t,e,e.pendingProps.children,r),e.child;case 10:t:{if(n=e.type._context,i=e.pendingProps,s=e.memoizedProps,no(e,o=i.value),null!==s){var u=s.value;if(0===(o=$n(u,o)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!hi.current){e=os(t,e,r);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===n&&0!=(c.observedBits&o)){1===u.tag&&((c=fo(r,null)).tag=2,po(u,c)),u.expirationTime<r&&(u.expirationTime=r),null!==(c=u.alternate)&&c.expirationTime<r&&(c.expirationTime=r),oo(u.return,r),l.expirationTime<r&&(l.expirationTime=r);break}c=c.next}}else s=10===u.tag&&u.type===e.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===e){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}}Va(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=(o=e.pendingProps).children,ao(e,r),n=n(i=so(i,o.unstable_observedBits)),e.effectTag|=1,Va(t,e,n,r),e.child;case 14:return o=Qi(i=e.type,e.pendingProps),Ga(t,e,i,o=Qi(i.type,o),n,r);case 15:return Wa(t,e,e.type,e.pendingProps,n,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Qi(n,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,vi(n)?(t=!0,Ti(e)):t=!1,ao(e,r),xo(e,n,i),Oo(e,n,i,r),qa(null,e,n,!0,t,r);case 19:return is(t,e,r)}throw Error(a(156,e.tag))};var Au=null,Ou=null;function Pu(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Cu(t,e,r,n){return new Pu(t,e,r,n)}function Ru(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Du(t,e){var r=t.alternate;return null===r?((r=Cu(t.tag,e,t.key,t.mode)).elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=t.childExpirationTime,r.expirationTime=t.expirationTime,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Lu(t,e,r,n,i,o){var s=2;if(n=t,"function"==typeof t)Ru(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case B:return Iu(r.children,i,o,e);case z:s=8,i|=7;break;case F:s=8,i|=1;break;case U:return(t=Cu(12,r,e,8|i)).elementType=U,t.type=U,t.expirationTime=o,t;case W:return(t=Cu(13,r,e,i)).type=W,t.elementType=W,t.expirationTime=o,t;case K:return(t=Cu(19,r,e,i)).elementType=K,t.expirationTime=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case H:s=10;break t;case V:s=9;break t;case G:s=11;break t;case Y:s=14;break t;case X:s=16,n=null;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=Cu(s,r,e,i)).elementType=t,e.type=n,e.expirationTime=o,e}function Iu(t,e,r,n){return(t=Cu(7,t,n,e)).expirationTime=r,t}function Mu(t,e,r){return(t=Cu(6,t,null,e)).expirationTime=r,t}function Nu(t,e,r){return(e=Cu(4,null!==t.children?t.children:[],t.key,e)).expirationTime=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ju(t,e,r){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Bu(t,e){var r=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==r&&r>=e&&t<=e}function Fu(t,e){var r=t.firstSuspendedTime,n=t.lastSuspendedTime;r<e&&(t.firstSuspendedTime=e),(n>e||0===r)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Uu(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var r=t.firstSuspendedTime;0!==r&&(e>=r?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Hu(t,e){var r=t.lastExpiredTime;(0===r||r>e)&&(t.lastExpiredTime=e)}function Vu(t,e,r,n){var i=e.current,o=Js(),s=To.suspense;o=Zs(o,i,s);t:if(r){e:{if(ee(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(a(170));var u=r;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(vi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(null!==u);throw Error(a(171))}if(1===r.tag){var l=r.type;if(vi(l)){r=Ei(r,l,u);break t}}r=u}else r=fi;return null===e.context?e.context=r:e.pendingContext=r,(e=fo(o,s)).payload={element:t},null!==(n=void 0===n?null:n)&&(e.callback=n),po(i,e),tu(i,o),o}function zu(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Gu(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Wu(t,e){Gu(t,e),(t=t.alternate)&&Gu(t,e)}function Ku(t,e,r){var n=new ju(t,e,r=null!=r&&!0===r.hydrate),i=Cu(3,null,null,2===e?7:1===e?3:0);n.current=i,i.stateNode=n,t[sn]=n.current,r&&0!==e&&function(t){var e=Lr(t);ve.forEach((function(r){Ir(r,t,e)})),ye.forEach((function(r){Ir(r,t,e)}))}(9===t.nodeType?t:t.ownerDocument),this._internalRoot=n}function Yu(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Xu(t,e,r,n,i){var o=r._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var t=zu(a);s.call(t)}}Vu(e,a,t,i)}else{if(o=r._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var r;r=t.lastChild;)t.removeChild(r);return new Ku(t,0,e?{hydrate:!0}:void 0)}(r,n),a=o._internalRoot,"function"==typeof i){var u=i;i=function(){var t=zu(a);u.call(t)}}su((function(){Vu(e,a,t,i)}))}return zu(a)}function qu(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:j,key:null==n?null:""+n,children:t,containerInfo:e,implementation:r}}function $u(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(e))throw Error(a(200));return qu(t,e,null,r)}Ku.prototype.render=function(t,e){Vu(t,this._internalRoot,null,void 0===e?null:e)},Ku.prototype.unmount=function(t){var e=this._internalRoot,r=void 0===t?null:t,n=e.containerInfo;Vu(null,e,null,(function(){n[sn]=null,null!==r&&r()}))},oe=function(t){if(13===t.tag){var e=$i(Js(),150,100);tu(t,e),Wu(t,e)}},ae=function(t){if(13===t.tag){Js();var e=qi++;tu(t,e),Wu(t,e)}},se=function(t){if(13===t.tag){var e=Js();tu(t,e=Zs(e,t,null)),Wu(t,e)}},tt=function(t,e,r){switch(e){case"input":if(Pt(t,r),e=r.name,"radio"===r.type&&null!=e){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var i=fn(n);if(!i)throw Error(a(90));kt(n),Pt(n,i)}}}break;case"textarea":Nt(t,r);break;case"select":null!=(e=r.value)&&Lt(t,!!r.multiple,e,!1)}},at=au,st=function(t,e,r,n){var i=Ps;Ps|=4;try{return Gi(98,t.bind(null,e,r,n))}finally{0===(Ps=i)&&Yi()}},ut=function(){0==(49&Ps)&&(function(){if(null!==Xs){var t=Xs;Xs=null,t.forEach((function(t,e){Hu(e,t),nu(e)})),Yi()}}(),Tu())},lt=function(t,e){var r=Ps;Ps|=2;try{return t(e)}finally{0===(Ps=r)&&Yi()}};var Qu,Ju,Zu={createPortal:$u,findDOMNode:function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=ie(e))?null:t.stateNode},hydrate:function(t,e,r){if(!Yu(e))throw Error(a(200));return Xu(null,t,e,!0,r)},render:function(t,e,r){if(!Yu(e))throw Error(a(200));return Xu(null,t,e,!1,r)},unstable_renderSubtreeIntoContainer:function(t,e,r,n){if(!Yu(r))throw Error(a(200));if(null==t||void 0===t._reactInternalFiber)throw Error(a(38));return Xu(t,e,r,!1,n)},unmountComponentAtNode:function(t){if(!Yu(t))throw Error(a(40));return!!t._reactRootContainer&&(su((function(){Xu(null,null,t,!1,(function(){t._reactRootContainer=null,t[sn]=null}))})),!0)},unstable_createPortal:function(){return $u.apply(void 0,arguments)},unstable_batchedUpdates:au,flushSync:function(t,e){if(0!=(48&Ps))throw Error(a(187));var r=Ps;Ps|=1;try{return Gi(99,t.bind(null,e))}finally{Ps=r,Yi()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[ln,cn,fn,R.injectEventPluginsByName,d,Le,function(t){A(t,De)},it,ot,Pr,C,Tu,{current:!1}]}};Ju=(Qu={findFiberByHostInstance:un,bundleType:0,version:"16.12.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var r=e.inject(t);Au=function(t){try{e.onCommitFiberRoot(r,t,void 0,64==(64&t.current.effectTag))}catch(t){}},Ou=function(t){try{e.onCommitFiberUnmount(r,t)}catch(t){}}}catch(t){}}(i({},Qu,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=ie(t))?null:t.stateNode},findFiberByHostInstance:function(t){return Ju?Ju(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var tl={default:Zu},el=tl&&Zu||tl;t.exports=el.default||el},function(t,e,r){"use strict";t.exports=r(201)},function(t,e,r){"use strict";
/** @license React v0.18.0
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n,i,o,a,s;if(Object.defineProperty(e,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,l=null,c=function(){if(null!==u)try{var t=e.unstable_now();u(!0,t),u=null}catch(t){throw setTimeout(c,0),t}},f=Date.now();e.unstable_now=function(){return Date.now()-f},n=function(t){null!==u?setTimeout(n,0,t):(u=t,setTimeout(c,0))},i=function(t,e){l=setTimeout(t,e)},o=function(){clearTimeout(l)},a=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,p=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)e.unstable_now=function(){return d.now()};else{var y=h.now();e.unstable_now=function(){return h.now()-y}}var m=!1,b=null,E=-1,T=5,w=0;a=function(){return e.unstable_now()>=w},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):T=0<t?Math.floor(1e3/t):5};var S=new MessageChannel,_=S.port2;S.port1.onmessage=function(){if(null!==b){var t=e.unstable_now();w=t+T;try{b(!0,t)?_.postMessage(null):(m=!1,b=null)}catch(t){throw _.postMessage(null),t}}else m=!1},n=function(t){b=t,m||(m=!0,_.postMessage(null))},i=function(t,r){E=p((function(){t(e.unstable_now())}),r)},o=function(){g(E),E=-1}}function k(t,e){var r=t.length;t.push(e);t:for(;;){var n=Math.floor((r-1)/2),i=t[n];if(!(void 0!==i&&0<O(i,e)))break t;t[n]=e,t[r]=i,r=n}}function x(t){return void 0===(t=t[0])?null:t}function A(t){var e=t[0];if(void 0!==e){var r=t.pop();if(r!==e){t[0]=r;t:for(var n=0,i=t.length;n<i;){var o=2*(n+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>O(a,r))void 0!==u&&0>O(u,a)?(t[n]=u,t[s]=r,n=s):(t[n]=a,t[o]=r,n=o);else{if(!(void 0!==u&&0>O(u,r)))break t;t[n]=u,t[s]=r,n=s}}}return e}return null}function O(t,e){var r=t.sortIndex-e.sortIndex;return 0!==r?r:t.id-e.id}var P=[],C=[],R=1,D=null,L=3,I=!1,M=!1,N=!1;function j(t){for(var e=x(C);null!==e;){if(null===e.callback)A(C);else{if(!(e.startTime<=t))break;A(C),e.sortIndex=e.expirationTime,k(P,e)}e=x(C)}}function B(t){if(N=!1,j(t),!M)if(null!==x(P))M=!0,n(F);else{var e=x(C);null!==e&&i(B,e.startTime-t)}}function F(t,r){M=!1,N&&(N=!1,o()),I=!0;var n=L;try{for(j(r),D=x(P);null!==D&&(!(D.expirationTime>r)||t&&!a());){var s=D.callback;if(null!==s){D.callback=null,L=D.priorityLevel;var u=s(D.expirationTime<=r);r=e.unstable_now(),"function"==typeof u?D.callback=u:D===x(P)&&A(P),j(r)}else A(P);D=x(P)}if(null!==D)var l=!0;else{var c=x(C);null!==c&&i(B,c.startTime-r),l=!1}return l}finally{D=null,L=n,I=!1}}function U(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=s;e.unstable_ImmediatePriority=1,e.unstable_UserBlockingPriority=2,e.unstable_NormalPriority=3,e.unstable_IdlePriority=5,e.unstable_LowPriority=4,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=L;L=t;try{return e()}finally{L=r}},e.unstable_next=function(t){switch(L){case 1:case 2:case 3:var e=3;break;default:e=L}var r=L;L=e;try{return t()}finally{L=r}},e.unstable_scheduleCallback=function(t,r,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?s+u:s,a="number"==typeof a.timeout?a.timeout:U(t)}else a=U(t),u=s;return t={id:R++,callback:r,priorityLevel:t,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(t.sortIndex=u,k(C,t),null===x(P)&&t===x(C)&&(N?o():N=!0,i(B,u-s))):(t.sortIndex=a,k(P,t),M||I||(M=!0,n(F))),t},e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_wrapCallback=function(t){var e=L;return function(){var r=L;L=e;try{return t.apply(this,arguments)}finally{L=r}}},e.unstable_getCurrentPriorityLevel=function(){return L},e.unstable_shouldYield=function(){var t=e.unstable_now();j(t);var r=x(P);return r!==D&&null!==D&&null!==r&&null!==r.callback&&r.startTime<=t&&r.expirationTime<D.expirationTime||a()},e.unstable_requestPaint=H,e.unstable_continueExecution=function(){M||I||(M=!0,n(F))},e.unstable_pauseExecution=function(){},e.unstable_getFirstCallbackNode=function(){return x(P)},e.unstable_Profiling=null},function(t,e,r){e.__esModule=!0,e.Helmet=void 0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=f(r(1)),a=f(r(0)),s=f(r(205)),u=f(r(207)),l=r(208),c=r(109);function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var g,v,y,m=(0,s.default)(l.reducePropsToState,l.handleClientStateChange,l.mapStateOnServer)((function(){return null})),b=(g=m,y=v=function(t){function e(){return h(this,e),p(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return!(0,u.default)(this.props,t)},e.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case c.TAG_NAMES.SCRIPT:case c.TAG_NAMES.NOSCRIPT:return{innerHTML:e};case c.TAG_NAMES.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},e.prototype.flattenArrayTypeChildren=function(t){var e,r=t.child,i=t.arrayTypeChildren,o=t.newChildProps,a=t.nestedChildren;return n({},i,((e={})[r.type]=[].concat(i[r.type]||[],[n({},o,this.mapNestedChildrenToProps(r,a))]),e))},e.prototype.mapObjectTypeChildren=function(t){var e,r,i=t.child,o=t.newProps,a=t.newChildProps,s=t.nestedChildren;switch(i.type){case c.TAG_NAMES.TITLE:return n({},o,((e={})[i.type]=s,e.titleAttributes=n({},a),e));case c.TAG_NAMES.BODY:return n({},o,{bodyAttributes:n({},a)});case c.TAG_NAMES.HTML:return n({},o,{htmlAttributes:n({},a)})}return n({},o,((r={})[i.type]=n({},a),r))},e.prototype.mapArrayTypeChildrenToProps=function(t,e){var r=n({},e);return Object.keys(t).forEach((function(e){var i;r=n({},r,((i={})[e]=t[e],i))})),r},e.prototype.warnOnInvalidChildren=function(t,e){return!0},e.prototype.mapChildrenToProps=function(t,e){var r=this,n={};return o.default.Children.forEach(t,(function(t){if(t&&t.props){var i=t.props,o=i.children,a=d(i,["children"]),s=(0,l.convertReactPropstoHtmlAttributes)(a);switch(r.warnOnInvalidChildren(t,o),t.type){case c.TAG_NAMES.LINK:case c.TAG_NAMES.META:case c.TAG_NAMES.NOSCRIPT:case c.TAG_NAMES.SCRIPT:case c.TAG_NAMES.STYLE:n=r.flattenArrayTypeChildren({child:t,arrayTypeChildren:n,newChildProps:s,nestedChildren:o});break;default:e=r.mapObjectTypeChildren({child:t,newProps:e,newChildProps:s,nestedChildren:o})}}})),e=this.mapArrayTypeChildrenToProps(n,e)},e.prototype.render=function(){var t=this.props,e=t.children,r=d(t,["children"]),i=n({},r);return e&&(i=this.mapChildrenToProps(e,i)),o.default.createElement(g,i)},i(e,null,[{key:"canUseDOM",set:function(t){g.canUseDOM=t}}]),e}(o.default.Component),v.propTypes={base:a.default.object,bodyAttributes:a.default.object,children:a.default.oneOfType([a.default.arrayOf(a.default.node),a.default.node]),defaultTitle:a.default.string,defer:a.default.bool,encodeSpecialCharacters:a.default.bool,htmlAttributes:a.default.object,link:a.default.arrayOf(a.default.object),meta:a.default.arrayOf(a.default.object),noscript:a.default.arrayOf(a.default.object),onChangeClientState:a.default.func,script:a.default.arrayOf(a.default.object),style:a.default.arrayOf(a.default.object),title:a.default.string,titleAttributes:a.default.object,titleTemplate:a.default.string},v.defaultProps={defer:!0,encodeSpecialCharacters:!0},v.peek=g.peek,v.rewind=function(){var t=g.rewind();return t||(t=(0,l.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},y);b.renderStatic=b.rewind,e.Helmet=b,e.default=b},function(t,e,r){"use strict";var n=r(204);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,r){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var i=r(1),o=n(i),a=n(r(206));function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,r){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function f(){l=t(c.map((function(t){return t.props}))),d.canUseDOM?e(l):r&&(l=r(l))}var d=function(t){var e,r;function i(){return t.apply(this,arguments)||this}r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,i.peek=function(){return l},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=l;return l=void 0,c=[],t};var s=i.prototype;return s.shouldComponentUpdate=function(t){return!a(t,this.props)},s.componentWillMount=function(){c.push(this),f()},s.componentDidUpdate=function(){f()},s.componentWillUnmount=function(){var t=c.indexOf(this);c.splice(t,1),f()},s.render=function(){return o.createElement(n,this.props)},i}(i.Component);return s(d,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(n)+")"),s(d,"canUseDOM",u),d}}},function(t,e){t.exports=function(t,e,r,n){var i=r?r.call(n,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),u=0;u<o.length;u++){var l=o[u];if(!s(l))return!1;var c=t[l],f=e[l];if(!1===(i=r?r.call(n,c,f,l):void 0)||void 0===i&&c!==f)return!1}return!0}},function(t,e,r){"use strict";var n=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;t.exports=function(t,e){try{return function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){var s,u,l,c=n(e),f=n(r);if(c&&f){if((u=e.length)!=r.length)return!1;for(s=u;0!=s--;)if(!t(e[s],r[s]))return!1;return!0}if(c!=f)return!1;var d=e instanceof Date,h=r instanceof Date;if(d!=h)return!1;if(d&&h)return e.getTime()==r.getTime();var p=e instanceof RegExp,g=r instanceof RegExp;if(p!=g)return!1;if(p&&g)return e.toString()==r.toString();var v=i(e);if((u=v.length)!==i(r).length)return!1;for(s=u;0!=s--;)if(!o.call(r,v[s]))return!1;if(a&&e instanceof Element&&r instanceof Element)return e===r;for(s=u;0!=s--;)if(!("_owner"===(l=v[s])&&e.$$typeof||t(e[l],r[l])))return!1;return!0}return e!=e&&r!=r}(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}},function(t,e,r){(function(t){e.__esModule=!0,e.warn=e.requestAnimationFrame=e.reducePropsToState=e.mapStateOnServer=e.handleClientStateChange=e.convertReactPropstoHtmlAttributes=void 0;var n="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},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=u(r(1)),a=u(r(50)),s=r(109);function u(t){return t&&t.__esModule?t:{default:t}}var l,c=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},f=function(t){var e=v(t,s.TAG_NAMES.TITLE),r=v(t,s.HELMET_PROPS.TITLE_TEMPLATE);if(r&&e)return r.replace(/%s/g,(function(){return e}));var n=v(t,s.HELMET_PROPS.DEFAULT_TITLE);return e||n||void 0},d=function(t){return v(t,s.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},h=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return i({},t,e)}),{})},p=function(t,e){return e.filter((function(t){return void 0!==t[s.TAG_NAMES.BASE]})).map((function(t){return t[s.TAG_NAMES.BASE]})).reverse().reduce((function(e,r){if(!e.length)for(var n=Object.keys(r),i=0;i<n.length;i++){var o=n[i].toLowerCase();if(-1!==t.indexOf(o)&&r[o])return e.concat(r)}return e}),[])},g=function(t,e,r){var i={};return r.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&T("Helmet: "+t+' should be of type "Array". Instead found type "'+n(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,r){var n={};r.filter((function(t){for(var r=void 0,o=Object.keys(t),a=0;a<o.length;a++){var u=o[a],l=u.toLowerCase();-1===e.indexOf(l)||r===s.TAG_PROPERTIES.REL&&"canonical"===t[r].toLowerCase()||l===s.TAG_PROPERTIES.REL&&"stylesheet"===t[l].toLowerCase()||(r=l),-1===e.indexOf(u)||u!==s.TAG_PROPERTIES.INNER_HTML&&u!==s.TAG_PROPERTIES.CSS_TEXT&&u!==s.TAG_PROPERTIES.ITEM_PROP||(r=u)}if(!r||!t[r])return!1;var c=t[r].toLowerCase();return i[r]||(i[r]={}),n[r]||(n[r]={}),!i[r][c]&&(n[r][c]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var o=Object.keys(n),u=0;u<o.length;u++){var l=o[u],c=(0,a.default)({},i[l],n[l]);i[l]=c}return t}),[]).reverse()},v=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t[r];if(n.hasOwnProperty(e))return n[e]}return null},y=(l=Date.now(),function(t){var e=Date.now();e-l>16?(l=e,t(e)):setTimeout((function(){y(t)}),0)}),m=function(t){return clearTimeout(t)},b="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||y:t.requestAnimationFrame||y,E="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||m:t.cancelAnimationFrame||m,T=function(t){return console&&"function"==typeof console.warn&&console.warn(t)},w=null,S=function(t,e){var r=t.baseTag,n=t.bodyAttributes,i=t.htmlAttributes,o=t.linkTags,a=t.metaTags,u=t.noscriptTags,l=t.onChangeClientState,c=t.scriptTags,f=t.styleTags,d=t.title,h=t.titleAttributes;x(s.TAG_NAMES.BODY,n),x(s.TAG_NAMES.HTML,i),k(d,h);var p={baseTag:A(s.TAG_NAMES.BASE,r),linkTags:A(s.TAG_NAMES.LINK,o),metaTags:A(s.TAG_NAMES.META,a),noscriptTags:A(s.TAG_NAMES.NOSCRIPT,u),scriptTags:A(s.TAG_NAMES.SCRIPT,c),styleTags:A(s.TAG_NAMES.STYLE,f)},g={},v={};Object.keys(p).forEach((function(t){var e=p[t],r=e.newTags,n=e.oldTags;r.length&&(g[t]=r),n.length&&(v[t]=p[t].oldTags)})),e&&e(),l(t,g,v)},_=function(t){return Array.isArray(t)?t.join(""):t},k=function(t,e){void 0!==t&&document.title!==t&&(document.title=_(t)),x(s.TAG_NAMES.TITLE,e)},x=function(t,e){var r=document.getElementsByTagName(t)[0];if(r){for(var n=r.getAttribute(s.HELMET_ATTRIBUTE),i=n?n.split(","):[],o=[].concat(i),a=Object.keys(e),u=0;u<a.length;u++){var l=a[u],c=e[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),-1===i.indexOf(l)&&i.push(l);var f=o.indexOf(l);-1!==f&&o.splice(f,1)}for(var d=o.length-1;d>=0;d--)r.removeAttribute(o[d]);i.length===o.length?r.removeAttribute(s.HELMET_ATTRIBUTE):r.getAttribute(s.HELMET_ATTRIBUTE)!==a.join(",")&&r.setAttribute(s.HELMET_ATTRIBUTE,a.join(","))}},A=function(t,e){var r=document.head||document.querySelector(s.TAG_NAMES.HEAD),n=r.querySelectorAll(t+"["+s.HELMET_ATTRIBUTE+"]"),i=Array.prototype.slice.call(n),o=[],a=void 0;return e&&e.length&&e.forEach((function(e){var r=document.createElement(t);for(var n in e)if(e.hasOwnProperty(n))if(n===s.TAG_PROPERTIES.INNER_HTML)r.innerHTML=e.innerHTML;else if(n===s.TAG_PROPERTIES.CSS_TEXT)r.styleSheet?r.styleSheet.cssText=e.cssText:r.appendChild(document.createTextNode(e.cssText));else{var u=void 0===e[n]?"":e[n];r.setAttribute(n,u)}r.setAttribute(s.HELMET_ATTRIBUTE,"true"),i.some((function(t,e){return a=e,r.isEqualNode(t)}))?i.splice(a,1):o.push(r)})),i.forEach((function(t){return t.parentNode.removeChild(t)})),o.forEach((function(t){return r.appendChild(t)})),{oldTags:i,newTags:o}},O=function(t){return Object.keys(t).reduce((function(e,r){var n=void 0!==t[r]?r+'="'+t[r]+'"':""+r;return e?e+" "+n:n}),"")},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,r){return e[s.REACT_TAG_MAP[r]||r]=t[r],e}),e)},C=function(t,e,r){switch(t){case s.TAG_NAMES.TITLE:return{toComponent:function(){return t=e.title,r=e.titleAttributes,(n={key:t})[s.HELMET_ATTRIBUTE]=!0,i=P(r,n),[o.default.createElement(s.TAG_NAMES.TITLE,i,t)];var t,r,n,i},toString:function(){return function(t,e,r,n){var i=O(r),o=_(e);return i?"<"+t+" "+s.HELMET_ATTRIBUTE+'="true" '+i+">"+c(o,n)+"</"+t+">":"<"+t+" "+s.HELMET_ATTRIBUTE+'="true">'+c(o,n)+"</"+t+">"}(t,e.title,e.titleAttributes,r)}};case s.ATTRIBUTE_NAMES.BODY:case s.ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return P(e)},toString:function(){return O(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,r){var n,i=((n={key:r})[s.HELMET_ATTRIBUTE]=!0,n);return Object.keys(e).forEach((function(t){var r=s.REACT_TAG_MAP[t]||t;if(r===s.TAG_PROPERTIES.INNER_HTML||r===s.TAG_PROPERTIES.CSS_TEXT){var n=e.innerHTML||e.cssText;i.dangerouslySetInnerHTML={__html:n}}else i[r]=e[t]})),o.default.createElement(t,i)}))}(t,e)},toString:function(){return function(t,e,r){return e.reduce((function(e,n){var i=Object.keys(n).filter((function(t){return!(t===s.TAG_PROPERTIES.INNER_HTML||t===s.TAG_PROPERTIES.CSS_TEXT)})).reduce((function(t,e){var i=void 0===n[e]?e:e+'="'+c(n[e],r)+'"';return t?t+" "+i:i}),""),o=n.innerHTML||n.cssText||"",a=-1===s.SELF_CLOSING_TAGS.indexOf(t);return e+"<"+t+" "+s.HELMET_ATTRIBUTE+'="true" '+i+(a?"/>":">"+o+"</"+t+">")}),"")}(t,e,r)}}}};e.convertReactPropstoHtmlAttributes=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,r){return e[s.HTML_TAG_MAP[r]||r]=t[r],e}),e)},e.handleClientStateChange=function(t){w&&E(w),t.defer?w=b((function(){S(t,(function(){w=null}))})):(S(t),w=null)},e.mapStateOnServer=function(t){var e=t.baseTag,r=t.bodyAttributes,n=t.encode,i=t.htmlAttributes,o=t.linkTags,a=t.metaTags,u=t.noscriptTags,l=t.scriptTags,c=t.styleTags,f=t.title,d=void 0===f?"":f,h=t.titleAttributes;return{base:C(s.TAG_NAMES.BASE,e,n),bodyAttributes:C(s.ATTRIBUTE_NAMES.BODY,r,n),htmlAttributes:C(s.ATTRIBUTE_NAMES.HTML,i,n),link:C(s.TAG_NAMES.LINK,o,n),meta:C(s.TAG_NAMES.META,a,n),noscript:C(s.TAG_NAMES.NOSCRIPT,u,n),script:C(s.TAG_NAMES.SCRIPT,l,n),style:C(s.TAG_NAMES.STYLE,c,n),title:C(s.TAG_NAMES.TITLE,{title:d,titleAttributes:h},n)}},e.reducePropsToState=function(t){return{baseTag:p([s.TAG_PROPERTIES.HREF],t),bodyAttributes:h(s.ATTRIBUTE_NAMES.BODY,t),defer:v(t,s.HELMET_PROPS.DEFER),encode:v(t,s.HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:h(s.ATTRIBUTE_NAMES.HTML,t),linkTags:g(s.TAG_NAMES.LINK,[s.TAG_PROPERTIES.REL,s.TAG_PROPERTIES.HREF],t),metaTags:g(s.TAG_NAMES.META,[s.TAG_PROPERTIES.NAME,s.TAG_PROPERTIES.CHARSET,s.TAG_PROPERTIES.HTTPEQUIV,s.TAG_PROPERTIES.PROPERTY,s.TAG_PROPERTIES.ITEM_PROP],t),noscriptTags:g(s.TAG_NAMES.NOSCRIPT,[s.TAG_PROPERTIES.INNER_HTML],t),onChangeClientState:d(t),scriptTags:g(s.TAG_NAMES.SCRIPT,[s.TAG_PROPERTIES.SRC,s.TAG_PROPERTIES.INNER_HTML],t),styleTags:g(s.TAG_NAMES.STYLE,[s.TAG_PROPERTIES.CSS_TEXT],t),title:f(t),titleAttributes:h(s.ATTRIBUTE_NAMES.TITLE,t)}},e.requestAnimationFrame=b,e.warn=T}).call(this,r(21))},function(t,e,r){"use strict";var n="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};function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=r(1),u=r(0),l=[],c=[];function f(t){var e=t(),r={loading:!0,loaded:null,error:null};return r.promise=e.then((function(t){return r.loading=!1,r.loaded=t,t})).catch((function(t){throw r.loading=!1,r.error=t,t})),r}function d(t){var e={loading:!1,loaded:{},error:null},r=[];try{Object.keys(t).forEach((function(n){var i=f(t[n]);i.loading?e.loading=!0:(e.loaded[n]=i.loaded,e.error=i.error),r.push(i.promise),i.promise.then((function(t){e.loaded[n]=t})).catch((function(t){e.error=t}))}))}catch(t){e.error=t}return e.promise=Promise.all(r).then((function(t){return e.loading=!1,t})).catch((function(t){throw e.loading=!1,t})),e}function h(t,e){return s.createElement((r=t)&&r.__esModule?r.default:r,e);var r}function p(t,e){var f,d;if(!e.loading)throw new Error("react-loadable requires a `loading` component");var p=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:h,webpack:null,modules:null},e),g=null;function v(){return g||(g=t(p.loader)),g.promise}return l.push(v),"function"==typeof p.webpack&&c.push((function(){if(t=p.webpack,"object"===n(r.m)&&t().every((function(t){return void 0!==t&&void 0!==r.m[t]})))return v();var t})),d=f=function(e){function r(n){i(this,r);var a=o(this,e.call(this,n));return a.retry=function(){a.setState({error:null,loading:!0,timedOut:!1}),g=t(p.loader),a._loadModule()},v(),a.state={error:g.error,pastDelay:!1,timedOut:!1,loading:g.loading,loaded:g.loaded},a}return a(r,e),r.preload=function(){return v()},r.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},r.prototype._loadModule=function(){var t=this;if(this.context.loadable&&Array.isArray(p.modules)&&p.modules.forEach((function(e){t.context.loadable.report(e)})),g.loading){"number"==typeof p.delay&&(0===p.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t.setState({pastDelay:!0})}),p.delay)),"number"==typeof p.timeout&&(this._timeout=setTimeout((function(){t.setState({timedOut:!0})}),p.timeout));var e=function(){t._mounted&&(t.setState({error:g.error,loaded:g.loaded,loading:g.loading}),t._clearTimeouts())};g.promise.then((function(){e()})).catch((function(t){e()}))}},r.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},r.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},r.prototype.render=function(){return this.state.loading||this.state.error?s.createElement(p.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?p.render(this.state.loaded,this.props):null},r}(s.Component),f.contextTypes={loadable:u.shape({report:u.func.isRequired})},d}function g(t){return p(f,t)}g.Map=function(t){if("function"!=typeof t.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return p(d,t)};var v=function(t){function e(){return i(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},e.prototype.render=function(){return s.Children.only(this.props.children)},e}(s.Component);function y(t){for(var e=[];t.length;){var r=t.pop();e.push(r())}return Promise.all(e).then((function(){if(t.length)return y(t)}))}v.propTypes={report:u.func.isRequired},v.childContextTypes={loadable:u.shape({report:u.func.isRequired}).isRequired},g.Capture=v,g.preloadAll=function(){return new Promise((function(t,e){y(l).then(t,e)}))},g.preloadReady=function(){return new Promise((function(t,e){y(c).then(t,t)}))},t.exports=g},function(t,e,r){r(211),t.exports=self.fetch.bind(self)},function(t,e,r){"use strict";r.r(e),r.d(e,"Headers",(function(){return p})),r.d(e,"Request",(function(){return T})),r.d(e,"Response",(function(){return S})),r.d(e,"DOMException",(function(){return k})),r.d(e,"fetch",(function(){return x}));var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n&&n,i="URLSearchParams"in n,o="Symbol"in n&&"iterator"in Symbol,a="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in n,u="ArrayBuffer"in n;if(u)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&l.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function d(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function g(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function v(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=v(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:a&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():u&&a&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var t=g(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=g(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(y)}),this.text=function(){var t,e,r,n=g(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=v(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(t,e){t=f(t),e=d(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},p.prototype.delete=function(t){delete this.map[f(t)]},p.prototype.get=function(t){return t=f(t),this.has(t)?this.map[t]:null},p.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},p.prototype.set=function(t,e){this.map[f(t)]=d(e)},p.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},p.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),h(t)},p.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),h(t)},p.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),h(t)},o&&(p.prototype[Symbol.iterator]=p.prototype.entries);var E=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(e=e||{}).body;if(t instanceof T){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new p(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),E.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function S(t,e){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})},b.call(T.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},S.error=function(){var t=new S(null,{status:0,statusText:""});return t.type="error",t};var _=[301,302,303,307,308];S.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError("Invalid status code");return new S(null,{status:e,headers:{location:t}})};var k=n.DOMException;try{new k}catch(t){(k=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),k.prototype.constructor=k}function x(t,e){return new Promise((function(r,i){var o=new T(t,e);if(o.signal&&o.signal.aborted)return i(new k("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){r(new S(i,n))}),0)},s.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){i(new k("Aborted","AbortError"))}),0)},s.open(o.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(a?s.responseType="blob":u&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof p?o.headers.forEach((function(t,e){s.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){s.setRequestHeader(t,d(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",l)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}x.polyfill=!0,n.fetch||(n.fetch=x,n.Headers=p,n.Request=T,n.Response=S)},function(t,e,r){"use strict";
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,E=n?Symbol.for("react.responder"):60118,T=n?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case f:case d:case a:case u:case s:case p:return t;default:switch(t=t&&t.$$typeof){case c:case h:case y:case v:case l:return t;default:return e}}case o:return e}}}function S(t){return w(t)===d}e.AsyncMode=f,e.ConcurrentMode=d,e.ContextConsumer=c,e.ContextProvider=l,e.Element=i,e.ForwardRef=h,e.Fragment=a,e.Lazy=y,e.Memo=v,e.Portal=o,e.Profiler=u,e.StrictMode=s,e.Suspense=p,e.isAsyncMode=function(t){return S(t)||w(t)===f},e.isConcurrentMode=S,e.isContextConsumer=function(t){return w(t)===c},e.isContextProvider=function(t){return w(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return w(t)===h},e.isFragment=function(t){return w(t)===a},e.isLazy=function(t){return w(t)===y},e.isMemo=function(t){return w(t)===v},e.isPortal=function(t){return w(t)===o},e.isProfiler=function(t){return w(t)===u},e.isStrictMode=function(t){return w(t)===s},e.isSuspense=function(t){return w(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===d||t===u||t===s||t===p||t===g||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===l||t.$$typeof===c||t.$$typeof===h||t.$$typeof===b||t.$$typeof===E||t.$$typeof===T||t.$$typeof===m)},e.typeOf=w},function(t,e,r){var n=r(214),i=r(73),o=r(115),a=r(291),s=r(12);t.exports=function(t,e,r){var u=s(t)?n:a,l=arguments.length<3;return u(t,o(e,4),r,l,i)}},function(t,e){t.exports=function(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}},function(t,e,r){var n=r(111),i=r(74);t.exports=function(t,e){return t&&n(t,e,i)}},function(t,e){t.exports=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===r(o[u],u,o))break}return e}}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(29),i=r(22);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},function(t,e,r){var n=r(51),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[s]=r:delete t[s]),i}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(29),i=r(79),o=r(22),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[n(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(113),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&n.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,r(52)(t))},function(t,e,r){var n=r(80),i=r(226),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e,r){var n=r(114)(Object.keys,Object);t.exports=n},function(t,e,r){var n=r(45);t.exports=function(t,e){return function(r,i){if(null==r)return r;if(!n(r))return t(r,i);for(var o=r.length,a=e?o:-1,s=Object(r);(e?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},function(t,e,r){var n=r(229),i=r(276),o=r(122);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(81),i=r(117);t.exports=function(t,e,r,o){var a=r.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var l=r[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<s;){var c=(l=r[a])[0],f=t[c],d=l[1];if(u&&l[2]){if(void 0===f&&!(c in t))return!1}else{var h=new n;if(o)var p=o(f,d,c,t,e,h);if(!(void 0===p?i(d,f,3,o,h):p))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(55),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(55);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(55);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(55);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},function(t,e,r){var n=r(54);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(54),i=r(82),o=r(83);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(53),i=r(241),o=r(20),a=r(116),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?d:s).test(a(t))}},function(t,e,r){var n,i=r(242),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},function(t,e,r){var n=r(19)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(245),i=r(54),o=r(82);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(t,e,r){var n=r(246),i=r(247),o=r(248),a=r(249),s=r(250);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,r){var n=r(56);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(56),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(56),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},function(t,e,r){var n=r(56);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(57);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(57);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(57);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(57);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},function(t,e,r){var n=r(81),i=r(118),o=r(261),a=r(264),s=r(271),u=r(12),l=r(76),c=r(78),f="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,h,p,g){var v=u(t),y=u(e),m=v?"[object Array]":s(t),b=y?"[object Array]":s(e),E=(m="[object Arguments]"==m?f:m)==f,T=(b="[object Arguments]"==b?f:b)==f,w=m==b;if(w&&l(t)){if(!l(e))return!1;v=!0,E=!1}if(w&&!E)return g||(g=new n),v||c(t)?i(t,e,r,h,p,g):o(t,e,m,r,h,p,g);if(!(1&r)){var S=E&&d.call(t,"__wrapped__"),_=T&&d.call(e,"__wrapped__");if(S||_){var k=S?t.value():t,x=_?e.value():e;return g||(g=new n),p(k,x,r,h,g)}}return!!w&&(g||(g=new n),a(t,e,r,h,p,g))}},function(t,e,r){var n=r(83),i=r(258),o=r(259);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(51),i=r(120),o=r(46),a=r(118),s=r(262),u=r(263),l=n?n.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,d){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=s;case"[object Set]":var p=1&n;if(h||(h=u),t.size!=e.size&&!p)return!1;var g=d.get(t);if(g)return g==e;n|=2,d.set(t,e);var v=a(h(t),h(e),n,l,f,d);return d.delete(t),v;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){var n=r(265),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,a,s){var u=1&r,l=n(t),c=l.length;if(c!=n(e).length&&!u)return!1;for(var f=c;f--;){var d=l[f];if(!(u?d in e:i.call(e,d)))return!1}var h=s.get(t),p=s.get(e);if(h&&p)return h==e&&p==t;var g=!0;s.set(t,e),s.set(e,t);for(var v=u;++f<c;){var y=t[d=l[f]],m=e[d];if(o)var b=u?o(m,y,d,e,t,s):o(y,m,d,t,e,s);if(!(void 0===b?y===m||a(y,m,r,o,s):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var E=t.constructor,T=e.constructor;E==T||!("constructor"in t)||!("constructor"in e)||"function"==typeof E&&E instanceof E&&"function"==typeof T&&T instanceof T||(g=!1)}return s.delete(t),s.delete(e),g}},function(t,e,r){var n=r(266),i=r(268),o=r(74);t.exports=function(t){return n(t,o,i)}},function(t,e,r){var n=r(267),i=r(12);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},function(t,e,r){var n=r(269),i=r(270),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(272),i=r(82),o=r(273),a=r(274),s=r(275),u=r(29),l=r(116),c=l(n),f=l(i),d=l(o),h=l(a),p=l(s),g=u;(n&&"[object DataView]"!=g(new n(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case c:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=g},function(t,e,r){var n=r(30)(r(19),"DataView");t.exports=n},function(t,e,r){var n=r(30)(r(19),"Promise");t.exports=n},function(t,e,r){var n=r(30)(r(19),"Set");t.exports=n},function(t,e,r){var n=r(30)(r(19),"WeakMap");t.exports=n},function(t,e,r){var n=r(121),i=r(74);t.exports=function(t){for(var e=i(t),r=e.length;r--;){var o=e[r],a=t[o];e[r]=[o,a,n(a)]}return e}},function(t,e,r){var n=r(117),i=r(278),o=r(285),a=r(84),s=r(121),u=r(122),l=r(58);t.exports=function(t,e){return a(t)&&s(e)?u(l(t),e):function(r){var a=i(r,t);return void 0===a&&a===e?o(r,t):n(e,a,3)}}},function(t,e,r){var n=r(123);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},function(t,e,r){var n=r(280),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)})),e}));t.exports=a},function(t,e,r){var n=r(281);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=r(83);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},function(t,e,r){var n=r(283);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(51),i=r(284),o=r(12),a=r(85),s=n?n.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},function(t,e,r){var n=r(286),i=r(287);t.exports=function(t,e){return null!=t&&i(t,e,n)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(124),i=r(75),o=r(12),a=r(77),s=r(79),u=r(58);t.exports=function(t,e,r){for(var l=-1,c=(e=n(e,t)).length,f=!1;++l<c;){var d=u(e[l]);if(!(f=null!=t&&r(t,d)))break;t=t[d]}return f||++l!=c?f:!!(c=null==t?0:t.length)&&s(c)&&a(d,c)&&(o(t)||i(t))}},function(t,e,r){var n=r(289),i=r(290),o=r(84),a=r(58);t.exports=function(t){return o(t)?n(a(t)):i(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,r){var n=r(123);t.exports=function(t){return function(e){return n(e,t)}}},function(t,e){t.exports=function(t,e,r,n,i){return i(t,(function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)})),r}},function(t,e,r){var n=r(125),i=r(126),o=r(298),a=r(312),s=i((function(t){return t.push(void 0,o),n(a,void 0,t)}));t.exports=s},function(t,e,r){var n=r(125),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=o[a];return l[e]=r(u),n(t,this,l)}}},function(t,e,r){var n=r(295),i=r(297)(n);t.exports=i},function(t,e,r){var n=r(296),i=r(127),o=r(59),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var r=Date.now;t.exports=function(t){var e=0,n=0;return function(){var i=r(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(128),i=r(20);t.exports=function t(e,r,o,a,s,u){return i(e)&&i(r)&&(u.set(r,e),n(e,r,void 0,t,u),u.delete(r)),e}},function(t,e,r){var n=r(129),i=r(300),o=r(301),a=r(303),s=r(304),u=r(75),l=r(12),c=r(306),f=r(76),d=r(53),h=r(20),p=r(131),g=r(78),v=r(132),y=r(307);t.exports=function(t,e,r,m,b,E,T){var w=v(t,r),S=v(e,r),_=T.get(S);if(_)n(t,r,_);else{var k=E?E(w,S,r+"",t,e,T):void 0,x=void 0===k;if(x){var A=l(S),O=!A&&f(S),P=!A&&!O&&g(S);k=S,A||O||P?l(w)?k=w:c(w)?k=a(w):O?(x=!1,k=i(S,!0)):P?(x=!1,k=o(S,!0)):k=[]:p(S)||u(S)?(k=w,u(w)?k=y(w):h(w)&&!d(w)||(k=s(S))):x=!1}x&&(T.set(S,k),b(k,S,m,E,T),T.delete(S)),n(t,r,k)}}},function(t,e,r){(function(t){var n=r(19),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}}).call(this,r(52)(t))},function(t,e,r){var n=r(302);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},function(t,e,r){var n=r(120);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},function(t,e,r){var n=r(305),i=r(130),o=r(80);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:n(i(t))}},function(t,e,r){var n=r(20),i=Object.create,o=function(){function t(){}return function(e){if(!n(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=o},function(t,e,r){var n=r(45),i=r(22);t.exports=function(t){return i(t)&&n(t)}},function(t,e,r){var n=r(308),i=r(133);t.exports=function(t){return n(t,i(t))}},function(t,e,r){var n=r(309),i=r(86);t.exports=function(t,e,r,o){var a=!r;r||(r={});for(var s=-1,u=e.length;++s<u;){var l=e[s],c=o?o(r[l],t[l],l,r,t):void 0;void 0===c&&(c=t[l]),a?i(r,l,c):n(r,l,c)}return r}},function(t,e,r){var n=r(86),i=r(46),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];o.call(t,e)&&i(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(20),i=r(80),o=r(311),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=i(t),r=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&r.push(s);return r}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,e,r){var n=r(128),i=r(313)((function(t,e,r,i){n(t,e,r,i)}));t.exports=i},function(t,e,r){var n=r(126),i=r(134);t.exports=function(t){return n((function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++n<o;){var u=r[n];u&&t(e,u,n,a)}return e}))}},function(t,e,r){var n=r(29),i=r(12),o=r(22);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==n(t)}},function(t,e,r){var n=r(119),i=r(115),o=r(316),a=r(12),s=r(134);t.exports=function(t,e,r){var u=a(t)?n:o;return r&&s(t,e,r)&&(e=void 0),u(t,i(e,3))}},function(t,e,r){var n=r(73);t.exports=function(t,e){var r;return n(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r}},function(t,e,r){var n=r(318),i=r(73),o=r(319),a=r(12);t.exports=function(t,e){return(a(t)?n:i)(t,o(e))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e,r){var n=r(59);t.exports=function(t){return"function"==typeof t?t:n}},function(t,e){t.exports=function(t){return null===t}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,r){var n;"undefined"!=typeof self&&self,t.exports=(n=r(1),function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(r(1));e.default=n.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=u(r(2)),a=u(r(3));r(6);var s=r(7);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var d="_captcha-modal",h="_uploadCaptchaModal",p="www.ximalaya.com",g=function t(e){var r=e.ret,n=e.msg,i=e.result;f(this,t),this.result=i,this.msg=n,this.ret=r},v=function(t){function e(){var t,r,n;f(this,e);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=n=l(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(o))),n.token="",n.state={value:"",imgSrc:"",canSubmit:!0},n.hasInit=!1,n.imgSrcPrefix="",n.success=function(t){n.props.openToast("校验通过,请重新上传",(function(){n.props.onSuccess(new g(t))}))},n.close=function(t){n.setState({value:"",imgSrc:"",canSubmit:!0},(function(){n.props.openToast("校验失败",(function(){n.props.onClose(t)}))}))},n.error=function(t,e){n.setState({canSubmit:!0},(function(){n.getCaptcha(e),n.props.openToast("验证码错误",(function(){n.props.onError(t)}))}))},n.getCaptcha=function(t){(0,s.getCaptcha)(t).then((function(t){n.token=t.token,n.setState({imgSrc:t.background})})).catch((function(t){console.error(t),n.props.openToast("获取验证码失败")}))},n.submitCaptcha=function(t,e){n.setState({canSubmit:!1},(function(){(0,s.submitCaptcha)(n.token,t).then((function(t){console.log(t),0===t.ret&&t.result?n.success(t):n.error(t,e)}))}))},l(n,r)}return c(e,o.default.Component),i(e,[{key:"componentDidMount",value:function(){window.location.hostname===p?this.imgSrcPrefix=window.location.protocol+"//"+p+"/xmcaptcha-service":this.imgSrcPrefix=window.location.protocol+"//test.ximalaya.com/xmcaptcha-service"}},{key:"render",value:function(){var t=this;console.log(this.props);var e=this.state,r=e.value,n=e.imgSrc,i=e.canSubmit,a=this.props,s=a.captchaInfo,u=a.captchaId,l=a.version,c=a.visible,f=a.style,p=void 0===f?{}:f;!this.hasInit&&c&&(this.getCaptcha({captchaId:u,captchaInfo:s,version:l}),this.hasInit=!0);var v=""+this.imgSrcPrefix+n;return c&&o.default.createElement("div",{id:h,className:""+d,onClick:function(e){e.target.id===h&&t.close(new g({result:!1,msg:"未通过校验"}))}},n&&o.default.createElement("div",{className:d+"-box",style:p},o.default.createElement("div",{className:d+"-title"},"验证码"),o.default.createElement("div",{className:d+"-input"},o.default.createElement("input",{placeholder:"请输入验证码",value:r,type:"text",onChange:function(e){t.setState({value:e.target.value})}})),o.default.createElement("div",{className:d+"-captcha"},o.default.createElement("img",{src:""+v,className:d+"-captcha-img"}),o.default.createElement("div",{className:d+"-captcha-refresh",onClick:function(){t.getCaptcha({captchaId:u,captchaInfo:s,version:l})}},"换一张")),o.default.createElement("div",{className:d+"-operation"},o.default.createElement("div",{className:d+"-close",onClick:function(){t.close(new g(!1,"未通过校验","未通过校验"))}},"取消"),o.default.createElement("div",{className:d+"-submit",onClick:function(){t.submitCaptcha(r,{captchaId:u,captchaInfo:s,version:l})}},i?"提交":"校验中..."))))}}]),e}();v.protoTypes={visible:a.default.bool.isRequired,onSuccess:a.default.func,onClose:a.default.func,onError:a.default.func,captchaInfo:a.default.string.isRequired,captchaId:a.default.any.isRequired,version:a.default.any.isRequired},v.defaultProps={onClose:function(){},onSuccess:function(){},onError:function(){}},e.default=function(t){return function(e){function r(){var t,e,n;f(this,r);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=n=l(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(o))),n.state={toastShow:!1,msg:""},n.openToast=function(t,e){n.setState({toastShow:!0,msg:t}),setTimeout((function(){n.closeToast(),e&&e()}),n.props.toastTime||1e3)},n.closeToast=function(){n.setState({toastShow:!1,msg:""})},l(n,e)}return c(r,o.default.Component),i(r,[{key:"render",value:function(){var e=this.props,r=e.visible,i=e.toastStyle,a=this.state,s=a.toastShow,u=a.msg;return r?o.default.createElement(o.default.Fragment,null,o.default.createElement(t,n({},this.props,{openToast:this.openToast})),s&&o.default.createElement("div",{id:h+"Toast",className:d+"-toast"},o.default.createElement("div",{style:i},u))):null}}]),r}()}(v)},function(t,e){t.exports=n},function(t,e,r){t.exports=r(4)()},function(t,e,r){"use strict";var n=r(5);function i(){}t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return r.checkPropTypes=i,r.PropTypes=r,r}},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCaptcha=function(t){var e=t.captchaInfo,r=t.captchaId,n=t.version;return fetch("/xmcaptcha-service/getCaptcha/ts-123?captchaInfo="+e+"&captchaId="+r+"&version="+n,{method:"get"}).then((function(t){return t.json()})).catch((function(t){throw console.log("error",t),new Error(t)}))},e.submitCaptcha=function(t,e){return fetch("/xmcaptcha-service/checkCaptcha/ts-123?token="+t+"&checkCode="+e).then((function(t){return t.json()}))}}]))},function(t,e,r){(function(t){var n,i,o,a,s=["responseText","GET","bytesToString","binary","indexOf","length","toString","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/","endian","exports","XM_SERVER_CLOCK","bytesToHex","floor","call","_blocksize","now","CLOCK_UPDATE_INTERVAL","getSign","random","protocol","asString","amd","pow","https:","_instance","_ff","bytesToWords","https://www.ximalaya.com/revision/time","host","onreadystatechange","encoding","isArray","start","function","URL","charAt","bin","constructor","wordsToBytes","fromCharCode","location","undefined","readyState","rotl","/revision/time","_isBuffer","getServerDate","then","test","substr","updateClock","xmSign","slice","asBytes","object","readFloatLE","Illegal argument ","charCodeAt","send","himalaya-","prototype","replace","join","clockTimer","_gg","isBuffer","initServerTimeUrl","stringToBytes","_hh","INISTAL_TIME","secretKey","_ii","push"];o=s,a=489,function(t){for(;--t;)o.push(o.shift())}(++a);var u,l,c=function(t,e){return s[t-=0]};u=this,l=function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e[c("0x1f")]}var e=t((function(t){var e,r;e=c("0x1d"),r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t[c("0x3b")]==Number)return 16711935&r[c("0x41")](t,8)|4278255360&r[c("0x41")](t,24);for(var e=0;e<t[c("0x1b")];e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e[c("0x15")](Math[c("0x22")](256*Math[c("0x28")]()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t[c("0x1b")];r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t[c("0x1b")];r+=8)e[c("0x15")](t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t[c("0x1b")];r++)e[c("0x15")]((t[r]>>>4)[c("0x1c")](16)),e[c("0x15")]((15&t[r])[c("0x1c")](16));return e[c("0xb")]("")},hexToBytes:function(t){for(var e=[],r=0;r<t[c("0x1b")];r+=2)e[c("0x15")](parseInt(t[c("0x47")](r,2),16));return e},bytesToBase64:function(t){for(var r=[],n=0;n<t[c("0x1b")];n+=3)for(var i=t[n]<<16|t[n+1]<<8|t[n+2],o=0;o<4;o++)8*n+6*o<=8*t[c("0x1b")]?r.push(e[c("0x39")](i>>>6*(3-o)&63)):r[c("0x15")]("=");return r[c("0xb")]("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n<t[c("0x1b")];i=++n%4)0!=i&&r.push((e[c("0x1a")](t.charAt(n-1))&Math[c("0x2c")](2,-2*i+8)-1)<<2*i|e[c("0x1a")](t.charAt(n))>>>6-2*i);return r}},t.exports=r})),r={utf8:{stringToBytes:function(t){return r[c("0x3a")].stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r[c("0x3a")][c("0x18")](t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t[c("0x1b")];r++)e[c("0x15")](255&t[c("0x6")](r));return e},bytesToString:function(t){for(var e=[],r=0;r<t[c("0x1b")];r++)e[c("0x15")](String[c("0x3d")](t[r]));return e[c("0xb")]("")}}},n=r,i=function(t){return null!=t&&(o(t)||typeof(e=t)[c("0x4")]===c("0x37")&&"function"==typeof e[c("0x1")]&&o(e[c("0x1")](0,0))||!!t[c("0x43")]);var e};function o(t){return!!t[c("0x3b")]&&typeof t.constructor[c("0xe")]===c("0x37")&&t[c("0x3b")][c("0xe")](t)}var a=t((function(t){var r,o,a,s,u;r=e,o=n.utf8,a=i,s=n[c("0x3a")],(u=function(t,e){t[c("0x3b")]==String?t=e&&e[c("0x34")]===c("0x19")?s[c("0x10")](t):o.stringToBytes(t):a(t)?t=Array[c("0x9")][c("0x1")][c("0x23")](t,0):Array[c("0x35")](t)||(t=t[c("0x1c")]());for(var n=r[c("0x30")](t),i=8*t[c("0x1b")],l=1732584193,f=-271733879,d=-1732584194,h=271733878,p=0;p<n[c("0x1b")];p++)n[p]=16711935&(n[p]<<8|n[p]>>>24)|4278255360&(n[p]<<24|n[p]>>>8);n[i>>>5]|=128<<i%32,n[14+(i+64>>>9<<4)]=i;var g=u[c("0x2f")],v=u[c("0xd")],y=u[c("0x11")],m=u._ii;for(p=0;p<n[c("0x1b")];p+=16){var b=l,E=f,T=d,w=h;l=g(l,f,d,h,n[p+0],7,-680876936),h=g(h,l,f,d,n[p+1],12,-389564586),d=g(d,h,l,f,n[p+2],17,606105819),f=g(f,d,h,l,n[p+3],22,-1044525330),l=g(l,f,d,h,n[p+4],7,-176418897),h=g(h,l,f,d,n[p+5],12,1200080426),d=g(d,h,l,f,n[p+6],17,-1473231341),f=g(f,d,h,l,n[p+7],22,-45705983),l=g(l,f,d,h,n[p+8],7,1770035416),h=g(h,l,f,d,n[p+9],12,-1958414417),d=g(d,h,l,f,n[p+10],17,-42063),f=g(f,d,h,l,n[p+11],22,-1990404162),l=g(l,f,d,h,n[p+12],7,1804603682),h=g(h,l,f,d,n[p+13],12,-40341101),d=g(d,h,l,f,n[p+14],17,-1502002290),l=v(l,f=g(f,d,h,l,n[p+15],22,1236535329),d,h,n[p+1],5,-165796510),h=v(h,l,f,d,n[p+6],9,-1069501632),d=v(d,h,l,f,n[p+11],14,643717713),f=v(f,d,h,l,n[p+0],20,-373897302),l=v(l,f,d,h,n[p+5],5,-701558691),h=v(h,l,f,d,n[p+10],9,38016083),d=v(d,h,l,f,n[p+15],14,-660478335),f=v(f,d,h,l,n[p+4],20,-405537848),l=v(l,f,d,h,n[p+9],5,568446438),h=v(h,l,f,d,n[p+14],9,-1019803690),d=v(d,h,l,f,n[p+3],14,-187363961),f=v(f,d,h,l,n[p+8],20,1163531501),l=v(l,f,d,h,n[p+13],5,-1444681467),h=v(h,l,f,d,n[p+2],9,-51403784),d=v(d,h,l,f,n[p+7],14,1735328473),l=y(l,f=v(f,d,h,l,n[p+12],20,-1926607734),d,h,n[p+5],4,-378558),h=y(h,l,f,d,n[p+8],11,-2022574463),d=y(d,h,l,f,n[p+11],16,1839030562),f=y(f,d,h,l,n[p+14],23,-35309556),l=y(l,f,d,h,n[p+1],4,-1530992060),h=y(h,l,f,d,n[p+4],11,1272893353),d=y(d,h,l,f,n[p+7],16,-155497632),f=y(f,d,h,l,n[p+10],23,-1094730640),l=y(l,f,d,h,n[p+13],4,681279174),h=y(h,l,f,d,n[p+0],11,-358537222),d=y(d,h,l,f,n[p+3],16,-722521979),f=y(f,d,h,l,n[p+6],23,76029189),l=y(l,f,d,h,n[p+9],4,-640364487),h=y(h,l,f,d,n[p+12],11,-421815835),d=y(d,h,l,f,n[p+15],16,530742520),l=m(l,f=y(f,d,h,l,n[p+2],23,-995338651),d,h,n[p+0],6,-198630844),h=m(h,l,f,d,n[p+7],10,1126891415),d=m(d,h,l,f,n[p+14],15,-1416354905),f=m(f,d,h,l,n[p+5],21,-57434055),l=m(l,f,d,h,n[p+12],6,1700485571),h=m(h,l,f,d,n[p+3],10,-1894986606),d=m(d,h,l,f,n[p+10],15,-1051523),f=m(f,d,h,l,n[p+1],21,-2054922799),l=m(l,f,d,h,n[p+8],6,1873313359),h=m(h,l,f,d,n[p+15],10,-30611744),d=m(d,h,l,f,n[p+6],15,-1560198380),f=m(f,d,h,l,n[p+13],21,1309151649),l=m(l,f,d,h,n[p+4],6,-145523070),h=m(h,l,f,d,n[p+11],10,-1120210379),d=m(d,h,l,f,n[p+2],15,718787259),f=m(f,d,h,l,n[p+9],21,-343485551),l=l+b>>>0,f=f+E>>>0,d=d+T>>>0,h=h+w>>>0}return r[c("0x1e")]([l,f,d,h])})[c("0x2f")]=function(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},u._gg=function(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},u[c("0x11")]=function(t,e,r,n,i,o,a){var s=t+(e^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},u[c("0x14")]=function(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+e},u[c("0x24")]=16,u._digestsize=16,t[c("0x1f")]=function(t,e){if(null==t)throw new Error(c("0x5")+t);var n=r[c("0x3c")](u(t,e));return e&&e[c("0x2")]?n:e&&e[c("0x2a")]?s[c("0x18")](n):r[c("0x21")](n)}})),s=function(){return"undefined"==typeof window},u=function(t){return~~(Math[c("0x28")]()*t)};return function(){function t(e){var r=(void 0===e?{}:e)[c("0x13")],n=void 0===r?c("0x8"):r;if(t[c("0x2e")])return t[c("0x2e")];t[c("0x2e")]=this,this[c("0xc")]=null,this[c("0x13")]=n,this.URL=this.initServerTimeUrl(),this[c("0x12")]=null,this[c("0x26")]=1e3,this[c("0x36")]()}return t[c("0x9")][c("0x36")]=function(t){var e=this;void 0===t&&(t=!1),s()||window.XM_SERVER_CLOCK&&!t||this[c("0x44")]()[c("0x45")]((function(t){e[c("0x12")]=t,window[c("0x20")]=t,e[c("0x48")]()}))},t[c("0x9")][c("0xf")]=function(){var t=c("0x31");return s()?t:t=(/https?:/[c("0x46")](window.location[c("0x29")])?window[c("0x3e")][c("0x29")]:c("0x2d"))+"//"+(/m.(test\.|uat\.)?ximalaya.com/[c("0x46")](window[c("0x3e")][c("0x32")])?window[c("0x3e")][c("0x32")]:"www.ximalaya.com")+c("0x42")},t.prototype[c("0x27")]=function(){var t,e,r,n=0;return n=s()?Date.now():window.XM_SERVER_CLOCK||0,t=this[c("0x13")],e=n,r=Date[c("0x25")](),("{"+t+e+"}("+u(100)+")"+e+"("+u(100)+")"+r)[c("0xa")](/{([\w-]+)}/,(function(t,e){return a(e)}))},t[c("0x9")][c("0x44")]=function(){var t=this;return new Promise((function(e,r){var n=new XMLHttpRequest;n.open(c("0x17"),t[c("0x38")],!0),n[c("0x7")](null),n[c("0x33")]=function(){if(4===n[c("0x40")]){var t=Number(n[c("0x16")]);t=isNaN(t)?Date[c("0x25")]():t,e(t)}}}))},t[c("0x9")].updateClock=function(){var t=this;this[c("0xc")]=setInterval((function(){window.XM_SERVER_CLOCK+=t[c("0x26")]}),this[c("0x26")])},t}()},typeof e===c("0x3")&&typeof t!==c("0x3f")?t[c("0x1f")]=l():"function"===c("0x37")&&r(324)[c("0x2b")]?void 0===(i="function"==typeof(n=l)?n.call(e,r,e,t):n)||(t.exports=i):(u=u||self)[c("0x0")]=l()}).call(this,r(52)(t))},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){},function(t,e,r){t.exports=function(t,e){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;
/*! *****************************************************************************
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 r=function(){return(r=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function n(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))}function i(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var o=function(t){return e.request.get({url:"https://live.ximalaya.com/live-web/v1/radio",data:{radioId:t}}).then((function(t){if(0!==t.ret)throw console.warn("查询电台信息失败"),new Error(t.msg);return t.data}))},a=function(t){return e.request.get({url:"https://live.ximalaya.com/live-web/v1/getProgramSchedules",data:{radioId:t,device:"ios"}}).then((function(t){if("0000"!==t.ret)throw console.warn("查询电台节目单失败"),new Error(t.msg);return t.result}))},s=function(t){var e=t.radioId,r=t.playUrl,n="https://live.xmcdn.com/live/"+e+"/64.m3u8?transcode=ts";return r?r.ts64:n},u=function(){var t=(new Date).getTimezoneOffset(),e=(new Date).getTime();return new Date(e+60*t*1e3+288e5)},l=function(t){return!!(t&&t.endTime&&t.startTime)},c=function(t){var e=t.split(":"),r=e[0],n=e[1];return 60*Number(r)+Number(n)},f=function(t){if(void 0===t||isNaN(t))return"undefined";var e=Math.floor(t/60),r=Math.floor(t%60);return(24===e?"00":("00"+e).slice(-2))+":"+("00"+r).slice(-2)},d=function(t){var e=c(t.startTime),r=c(t.endTime),n=u();return 0===r&&(r=1500),{startTime:e,endTime:r,now:c(n.getHours()+":"+n.getMinutes())}},h=function(t){if(!l(t))return!1;var e=d(t),r=e.startTime,n=e.endTime,i=e.now;return"today"===t.type&&i>=r&&i<=n},p=function(t){if(!l(t))return!1;var e=d(t),r=e.startTime,n=e.now;return"tomorrow"===t.type||"today"===t.type&&n<r},g=function(t,e,r,n){return t+"-"+e+"-"+r+"-"+n};return function(){function e(t){this.hlsOptions=t}return e.prototype.apply=function(e){var r=this,n=e.webPlayer,i=e.webAudio;if(t.isSupported()){var o=i.audio,a=this,u=new t(this.hlsOptions);n.hls=u,n.hls.attachMedia(o),this.playerBindEvents({webPlayer:n,webAudio:i}),this.initRadioData(n),Object.defineProperty(i,"setSrc",{value:function(e){if(e){n.hls.stopLoad(),n.hls.detachMedia(),n.hls.destroy(),i.emit("audio@setSrc");var u=n.currentTrack;h(u)&&(e=s(u)),i._playSrc=e,i._playInfo=[],a.isM3U8(e)?(n.setPlaybackRate(1),n.hls=new t(a.hlsOptions),r.hlsBindEvents(n),n.hls.attachMedia(o),n.hls.loadSource(e),n.emit("player@dangerouslySetState",{isPlayHLS:!0,paginationInfo:null}),n.emit("player@paginationInfo",[null])):(i.audio.src=i._playSrc,n.emit("player@dangerouslySetState",{isPlayHLS:!1}))}else console.warn("设置广播流地址, src: "+e+" 出错")},configurable:!0,enumerable:!0})}},e.prototype.isM3U8=function(t){return t&&t.indexOf(".m3u8")>-1},e.prototype.playerBindEvents=function(t){var e=t.webPlayer;t.webAudio,e.on("player@nextTrack",(function(t,r){var n=t.playMode,i=t.currentTrackId,o=e.getSiblingsTrack().next;p(o)?r("还未到节目播放时间"):r(null,{playMode:n,currentTrackId:i})})),e.on("player@prevTrack",(function(t,r){var n=t.playMode,i=t.currentTrackId,o=e.getSiblingsTrack().prev;p(o)?r("还未到节目播放时间"):r(null,{playMode:n,currentTrackId:i})}));var r=function(t,e){var r,n,i;void 0===e&&(e=1e3);var o=0,a=function(){o=u().getTime(),r=null,t.apply(n,i)};return function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var c=u().getTime(),f=e-(c-o);n=this,i=s,f<=0||f>e?(r&&(clearTimeout(r),r=null),o=c,t.apply(n,i)):r||(r=setTimeout(a,f))}}((function(t){t[0],t[1];var r=e.currentTrack;if(r&&r.src&&r.endMinute){var n=u(),i=60*n.getHours()+n.getMinutes();r.src.indexOf(".m3u8")>-1&&h(r)&&r.endMinute<=i&&e.next()}}),2e3);e.on("player@timeUpdate",r)},e.prototype.hlsBindEvents=function(e){e.hls.on(t.Events.ERROR,(function(r,n){n.details;var i=n.type;n.fatal;try{switch(i){case t.ErrorTypes.NETWORK_ERROR:n.networkDetails&&404===n.networkDetails.status&&e.emit("player@getM3U8Error")}}catch(t){console.warn("hlsBindEvents error",t)}}))},e.prototype.initRadioData=function(t){try{var e=JSON.parse(localStorage.getItem("PLAYER_STATE")).currentTrack;e&&e.radioId&&function(t){return n(void 0,void 0,void 0,(function(){var e,r,n,u,l,d,h,p,v,y,m,b,E,T,w,S,_,k,x;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),[4,o(t)];case 1:return e=i.sent(),r=["yesterday","today","tomorrow"],[4,a(t)];case 2:if(n=i.sent(),u=n.todaySchedules,l=void 0===u?[]:u,d=n.tomorrowSchedules,h=void 0===d?[]:d,p=n.yesterdaySchedules,v=void 0===p?[]:p,y=f(e.start),m=f(e.end),b=g("today",e.programId,y,m),E=l.map((function(t){return t.programUUid=g("today",t.programId,t.startTime,t.endTime),t})),!(T=function(t,e){var r=e.filter((function(e){return e.programUUid===t}));return r.length?r[0]:null}(b,E)||e))throw new Error("暂无节目单");return w={radioId:t,coverLarge:e.coverLarge,radioName:e.name,livePlayUrl:e.playUrl},Object.assign(T,e,w,{src:s(T),programUUid:b}),S=[v,l,h].map((function(t,e){return t.map((function(t){return t.programUUid=g(r[e],t.programId,t.startTime,t.endTime),t.src=t.listenBackUrl,t.type=r[e],t.startMinute=c(t.startTime),t.endMinute=c(t.endTime),Object.assign(t,w),t}))})),_=S[0],k=S[1],x=S[2],[2,{currentProgram:T,schedules:{yesterdaySchedules:_,todaySchedules:k,tomorrowSchedules:x}}];case 3:throw i.sent();case 4:return[2]}}))}))}(e.radioId).then((function(e){var n=e.schedules,i=e.currentProgram;t.emit("player@dangerouslySetState",r(r({},n),{isPlayHLS:!0,currentTrack:i})),t.select(i,n.todaySchedules)})).catch((function(e){t.emit("player@getM3U8Error")}))}catch(e){t.emit("player@getM3U8Error"),console.warn("initRadioData error:",e)}},e}()}(r(161),r(135))},function(t,e,r){(function(r){var n,i,o,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){if(r.get||r.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=r.value)},a.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==r&&null!=r?r:t},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(t){return a.SYMBOL_PREFIX+(t||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var t=a.global.Symbol.iterator;t||(t=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&a.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(t){var e=0;return a.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},a.iteratorPrototype=function(t){return a.initSymbolIterator(),(t={next:t})[a.global.Symbol.iterator]=function(){return this},t},a.array=a.array||{},a.iteratorFromArray=function(t,e){a.initSymbolIterator(),t instanceof String&&(t+="");var r=0,n={next:function(){if(r<t.length){var i=r++;return{value:e(i,t[i]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n},a.polyfill=function(t,e,r,n){if(e){for(r=a.global,t=t.split("."),n=0;n<t.length-1;n++){var i=t[n];i in r||(r[i]={}),r=r[i]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&a.defineProperty(r,t,{configurable:!0,writable:!0,value:e})}},a.polyfill("Array.prototype.keys",(function(t){return t||function(){return a.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var s=this;i=[],void 0===(o="function"==typeof(n=function(){function t(t){if(!C.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var r=t.length,n=2<=arguments.length?arguments[1]:void 0,i=[],o=0;o<r;o++)if(o in t){var a=t[o];e.call(n,a,o,t)&&i.push(a)}return i}function r(t){return t.reduce((function(t,e){return t.concat(C.arr(e)?r(e):e)}),[])}function n(e){return C.arr(e)?e:(C.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function i(t,e){return t.some((function(t){return t===e}))}function o(t){var e,r={};for(e in t)r[e]=t[e];return r}function a(t,e){var r,n=o(t);for(r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function u(t,e){var r,n=o(t);for(r in e)n[r]=C.und(t[r])?e[r]:t[r];return n}function l(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function c(t,e){return C.fnc(t)?t(e.target,e.id,e.total):t}function f(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function d(t,e){return C.dom(t)&&i(P,e)?"transform":C.dom(t)&&(t.getAttribute(e)||C.svg(t)&&t[e])?"attribute":C.dom(t)&&"transform"!==e&&f(t,e)?"css":null!=t[e]?"object":void 0}function h(t,r){switch(d(t,r)){case"transform":return function(t,r){var n=function(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}(r);if(n=-1<r.indexOf("scale")?1:0+n,!(t=t.style.transform))return n;for(var i=[],o=[],a=[],s=/(\w+)\((.+?)\)/g;i=s.exec(t);)o.push(i[1]),a.push(i[2]);return(t=e(a,(function(t,e){return o[e]===r}))).length?t[0]:n}(t,r);case"css":return f(t,r);case"attribute":return t.getAttribute(r)}return t[r]||0}function p(t,e){var r=/^(\*=|\+=|-=)/.exec(t);if(!r)return t;var n=l(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(r[0],"")),r[0][0]){case"+":return e+t+n;case"-":return e-t+n;case"*":return e*t+n}}function g(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function v(t){t=t.points;for(var e,r=0,n=0;n<t.numberOfItems;n++){var i=t.getItem(n);0<n&&(r+=g(e,i)),e=i}return r}function y(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return g({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return v(t);case"polygon":var e=t.points;return v(t)+g(e.getItem(e.numberOfItems-1),e.getItem(0))}}function m(t,e){function r(r){return r=void 0===r?0:r,t.el.getPointAtLength(1<=e+r?e+r:0)}var n=r(),i=r(-1),o=r(1);switch(t.property){case"x":return n.x;case"y":return n.y;case"angle":return 180*Math.atan2(o.y-i.y,o.x-i.x)/Math.PI}}function b(t,e){var r,n=/-?\d*\.?\d+/g;if(r=C.pth(t)?t.totalLength:t,C.col(r))if(C.rgb(r)){var i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(r);r=i?"rgba("+i[1]+",1)":r}else r=C.hex(r)?function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}(r):C.hsl(r)?function(t){function e(t,e,r){return 0>r&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:.5>r?e:r<2/3?t+(e-t)*(2/3-r)*6:t}var r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(r[1])/360;var n=parseInt(r[2])/100,i=parseInt(r[3])/100;if(r=r[4]||1,0==n)i=n=t=i;else{var o=.5>i?i*(1+n):i+n-i*n,a=2*i-o;i=e(a,o,t+1/3),n=e(a,o,t),t=e(a,o,t-1/3)}return"rgba("+255*i+","+255*n+","+255*t+","+r+")"}(r):void 0;else i=(i=l(r))?r.substr(0,r.length-i.length):r,r=e&&!/\s/g.test(r)?i+e:i;return{original:r+="",numbers:r.match(n)?r.match(n).map(Number):[0],strings:C.str(t)||e?r.split(n):[]}}function E(t){return e(t=t?r(C.arr(t)?t.map(n):n(t)):[],(function(t,e,r){return r.indexOf(t)===e}))}function T(t,e){var r=o(e);if(C.arr(t)){var i=t.length;2!==i||C.obj(t[0])?C.fnc(e.duration)||(r.duration=e.duration/i):t={value:t}}return n(t).map((function(t,r){return r=r?0:e.delay,t=C.obj(t)&&!C.pth(t)?t:{value:t},C.und(t.delay)&&(t.delay=r),t})).map((function(t){return u(t,r)}))}function w(t,e){var r;return t.tweens.map((function(n){var i=(n=function(t,e){var r,n={};for(r in t){var i=c(t[r],e);C.arr(i)&&1===(i=i.map((function(t){return c(t,e)}))).length&&(i=i[0]),n[r]=i}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(n,e)).value,o=h(e.target,t.name),a=r?r.to.original:o,s=(a=C.arr(i)?i[0]:a,p(C.arr(i)?i[1]:i,a));return o=l(s)||l(a)||l(o),n.from=b(a,o),n.to=b(s,o),n.start=r?r.end:t.offset,n.end=n.start+n.delay+n.duration,n.easing=function(t){return C.arr(t)?R.apply(this,t):D[t]}(n.easing),n.elasticity=(1e3-Math.min(Math.max(n.elasticity,1),999))/1e3,n.isPath=C.pth(i),n.isColor=C.col(n.from.original),n.isColor&&(n.round=1),r=n}))}function S(t,e,r,n){var i="delay"===t;return e.length?(i?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):i?n.delay:r.offset+n.delay+n.duration}function _(t){var n,i=a(A,t),o=a(O,t),s=function(t){var e=E(t);return e.map((function(t,r){return{target:t,id:r,total:e.length}}))}(t.targets),l=[],c=u(i,o);for(n in t)c.hasOwnProperty(n)||"targets"===n||l.push({name:n,offset:c.offset,tweens:T(t[n],o)});return t=function(t,n){return e(r(t.map((function(t){return n.map((function(e){var r=d(t.target,e.name);if(r){var n=w(e,t);e={type:r,property:e.name,animatable:t,tweens:n,duration:n[n.length-1].end,delay:n[0].delay}}else e=void 0;return e}))}))),(function(t){return!C.und(t)}))}(s,l),u(i,{children:[],animatables:s,animations:t,duration:S("duration",t,i,o),delay:S("delay",t,i,o)})}function k(t){function r(){return window.Promise&&new Promise((function(t){return d=t}))}function n(t){return p.reversed?p.duration-t:t}function i(t){for(var r=0,n={},i=p.animations,o=i.length;r<o;){var a=i[r],s=a.animatable,u=(l=a.tweens)[h=l.length-1];h&&(u=e(l,(function(e){return t<e.end}))[0]||u);for(var l=Math.min(Math.max(t-u.start-u.delay,0),u.duration)/u.duration,c=isNaN(l)?1:u.easing(l,u.elasticity),d=(l=u.to.strings,u.round),h=[],g=void 0,v=(g=u.to.numbers.length,0);v<g;v++){var y=void 0,b=(y=u.to.numbers[v],u.from.numbers[v]);y=u.isPath?m(u.value,c*y):b+c*(y-b),d&&(u.isColor&&2<v||(y=Math.round(y*d)/d)),h.push(y)}if(u=l.length)for(g=l[0],c=0;c<u;c++)d=l[c+1],v=h[c],isNaN(v)||(g=d?g+(v+d):g+(v+" "));else g=h[0];L[a.type](s.target,a.property,g,n,s.id),a.currentValue=g,r++}if(r=Object.keys(n).length)for(i=0;i<r;i++)x||(x=f(document.body,"transform")?"transform":"-webkit-transform"),p.animatables[i].target.style[x]=n[i].join(" ");p.currentTime=t,p.progress=t/p.duration*100}function o(t){p[t]&&p[t](p)}function a(){p.remaining&&!0!==p.remaining&&p.remaining--}function s(t){var e=p.duration,s=p.offset,f=s+p.delay,g=p.currentTime,v=p.reversed,y=n(t);if(p.children.length){var m=p.children,b=m.length;if(y>=p.currentTime)for(var E=0;E<b;E++)m[E].seek(y);else for(;b--;)m[b].seek(y)}(y>=f||!e)&&(p.began||(p.began=!0,o("begin")),o("run")),y>s&&y<e?i(y):(y<=s&&0!==g&&(i(0),v&&a()),(y>=e&&g!==e||!e)&&(i(e),v||a())),o("update"),t>=e&&(p.remaining?(l=u,"alternate"===p.direction&&(p.reversed=!p.reversed)):(p.pause(),p.completed||(p.completed=!0,o("complete"),"Promise"in window&&(d(),h=r()))),c=0)}t=void 0===t?{}:t;var u,l,c=0,d=null,h=r(),p=_(t);return p.reset=function(){var t=p.direction,e=p.loop;for(p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.completed=!1,p.reversed="reverse"===t,p.remaining="alternate"===t&&1===e?2:e,i(0),t=p.children.length;t--;)p.children[t].reset()},p.tick=function(t){u=t,l||(l=u),s((c+u-l)*k.speed)},p.seek=function(t){s(n(t))},p.pause=function(){var t=I.indexOf(p);-1<t&&I.splice(t,1),p.paused=!0},p.play=function(){p.paused&&(p.paused=!1,l=0,c=n(p.currentTime),I.push(p),M||N())},p.reverse=function(){p.reversed=!p.reversed,l=0,c=n(p.currentTime)},p.restart=function(){p.pause(),p.reset(),p.play()},p.finished=h,p.reset(),p.autoplay&&p.play(),p}var x,A={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},O={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},P="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),C={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return C.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||C.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return C.hex(t)||C.rgb(t)||C.hsl(t)}},R=function(){function t(t,e,r){return(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t}return function(e,r,n,i){if(0<=e&&1>=e&&0<=n&&1>=n){var o=new Float32Array(11);if(e!==r||n!==i)for(var a=0;11>a;++a)o[a]=t(.1*a,e,n);return function(a){if(e===r&&n===i)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,u=1;10!==u&&o[u]<=a;++u)s+=.1;--u,u=s+(a-o[u])/(o[u+1]-o[u])*.1;var l=3*(1-3*n+3*e)*u*u+2*(3*n-6*e)*u+3*e;if(.001<=l){for(s=0;4>s&&0!=(l=3*(1-3*n+3*e)*u*u+2*(3*n-6*e)*u+3*e);++s){var c=t(u,e,n)-a;u-=c/l}a=u}else if(0===l)a=u;else{u=s,s+=.1;var f=0;do{0<(l=t(c=u+(s-u)/2,e,n)-a)?s=c:u=c}while(1e-7<Math.abs(l)&&10>++f);a=c}return t(a,r,i)}}}}(),D=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,r="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),n={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,r){return 1-t(1-e,r)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,r){return.5>e?t(2*e,r)/2:1-t(-2*e+2,r)/2}]},i={linear:R(.25,.25,.75,.75)},o={};for(e in n)o.type=e,n[o.type].forEach(function(t){return function(e,n){i["ease"+t.type+r[n]]=C.fnc(e)?e:R.apply(s,e)}}(o)),o={type:o.type};return i}(),L={css:function(t,e,r){return t.style[e]=r},attribute:function(t,e,r){return t.setAttribute(e,r)},object:function(t,e,r){return t[e]=r},transform:function(t,e,r,n,i){n[i]||(n[i]=[]),n[i].push(e+"("+r+")")}},I=[],M=0,N=function(){function t(){M=requestAnimationFrame(e)}function e(e){var r=I.length;if(r){for(var n=0;n<r;)I[n]&&I[n].tick(e),n++;t()}else cancelAnimationFrame(M),M=0}return t}();return k.version="2.2.0",k.speed=1,k.running=I,k.remove=function(t){t=E(t);for(var e=I.length;e--;)for(var r=I[e],n=r.animations,o=n.length;o--;)i(t,n[o].animatable.target)&&(n.splice(o,1),n.length||r.pause())},k.getValue=h,k.path=function(e,r){var n=C.str(e)?t(e)[0]:e,i=r||100;return function(t){return{el:n,property:t,totalLength:y(n)*(i/100)}}},k.setDashoffset=function(t){var e=y(t);return t.setAttribute("stroke-dasharray",e),e},k.bezier=R,k.easings=D,k.timeline=function(t){var e=k(t);return e.pause(),e.duration=0,e.add=function(r){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),n(r).forEach((function(r){var n=u(r,a(O,t||{}));n.targets=n.targets||t.targets,r=e.duration;var i=n.offset;n.autoplay=!1,n.direction=e.direction,n.offset=C.und(i)?r:p(i,r),e.began=!0,e.completed=!0,e.seek(n.offset),(n=k(n)).began=!0,n.completed=!0,n.duration>r&&(e.duration=n.duration),e.children.push(n)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},k.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},k})?n.apply(e,i):n)||(t.exports=o)}).call(this,r(21))},function(t,e,r){var n,i;
/*!
* JavaScript Cookie v2.2.1
* https://github.com/js-cookie/js-cookie
*
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
* Released under the MIT license
*/!function(o){if(void 0===(i="function"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i),!0,t.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function i(){}function o(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(r);/^[\{\[]/.test(a)&&(r=a)}catch(t){}r=n.write?n.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in o)o[u]&&(s+="; "+u,!0!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=e+"="+r+s}}function a(t,r){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),u=s.slice(1).join("=");r||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=e(s[0]);if(u=(n.read||n)(u,l)||e(u),r)try{u=JSON.parse(u)}catch(t){}if(i[l]=u,t===l)break}catch(t){}}return t?i[t]:i}}return i.set=o,i.get=function(t){return a(t,!1)},i.getJSON=function(t){return a(t,!0)},i.remove=function(e,r){o(e,"",t(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}((function(){}))}))},function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;
/*
* [js-sha1]{@link https://github.com/emn178/js-sha1}
*
* @version 0.6.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/!function(){"use strict";var root="object"==typeof window?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS&&(root=global);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(331),HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(t){return function(e){return new Sha1(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Sha1},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var r=OUTPUT_TYPES[e];t[r]=createOutputMethod(r)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"==typeof t)return crypto.createHash("sha1").update(t,"utf8").digest("hex");if(t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(void 0===t.length)return method(t);return crypto.createHash("sha1").update(new Buffer(t)).digest("hex")};return nodeMethod};function Sha1(t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(t){if(!this.finalized){var e="string"!=typeof t;e&&t.constructor===root.ArrayBuffer&&(t=new Uint8Array(t));for(var r,n,i=0,o=t.length||0,a=this.blocks;i<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),e)for(n=this.start;i<o&&n<64;++i)a[n>>2]|=t[i]<<SHIFT[3&n++];else for(n=this.start;i<o&&n<64;++i)(r=t.charCodeAt(i))<128?a[n>>2]|=r<<SHIFT[3&n++]:r<2048?(a[n>>2]|=(192|r>>6)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):r<55296||r>=57344?(a[n>>2]|=(224|r>>12)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++i)),a[n>>2]|=(240|r>>18)<<SHIFT[3&n++],a[n>>2]|=(128|r>>12&63)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var t,e,r=this.h0,n=this.h1,i=this.h2,o=this.h3,a=this.h4,s=this.blocks;for(t=16;t<80;++t)e=s[t-3]^s[t-8]^s[t-14]^s[t-16],s[t]=e<<1|e>>>31;for(t=0;t<20;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(a=(e=r<<5|r>>>27)+(n&i|~n&o)+a+1518500249+s[t]<<0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|~r&i)+o+1518500249+s[t+1]<<0)<<5|o>>>27)+(a&(r=r<<30|r>>>2)|~a&n)+i+1518500249+s[t+2]<<0)<<5|i>>>27)+(o&(a=a<<30|a>>>2)|~o&r)+n+1518500249+s[t+3]<<0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|~i&a)+r+1518500249+s[t+4]<<0,i=i<<30|i>>>2;for(;t<40;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(a=(e=r<<5|r>>>27)+(n^i^o)+a+1859775393+s[t]<<0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^i)+o+1859775393+s[t+1]<<0)<<5|o>>>27)+(a^(r=r<<30|r>>>2)^n)+i+1859775393+s[t+2]<<0)<<5|i>>>27)+(o^(a=a<<30|a>>>2)^r)+n+1859775393+s[t+3]<<0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^a)+r+1859775393+s[t+4]<<0,i=i<<30|i>>>2;for(;t<60;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(a=(e=r<<5|r>>>27)+(n&i|n&o|i&o)+a-1894007588+s[t]<<0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|r&i|n&i)+o-1894007588+s[t+1]<<0)<<5|o>>>27)+(a&(r=r<<30|r>>>2)|a&n|r&n)+i-1894007588+s[t+2]<<0)<<5|i>>>27)+(o&(a=a<<30|a>>>2)|o&r|a&r)+n-1894007588+s[t+3]<<0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|i&a|o&a)+r-1894007588+s[t+4]<<0,i=i<<30|i>>>2;for(;t<80;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(a=(e=r<<5|r>>>27)+(n^i^o)+a-899497514+s[t]<<0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^i)+o-899497514+s[t+1]<<0)<<5|o>>>27)+(a^(r=r<<30|r>>>2)^n)+i-899497514+s[t+2]<<0)<<5|i>>>27)+(o^(a=a<<30|a>>>2)^r)+n-899497514+s[t+3]<<0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^a)+r-899497514+s[t+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+r<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+o<<0,this.h4=this.h4+a<<0},Sha1.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4;return HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4;return[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(20),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),t};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(330),__webpack_require__(21))},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&h())}function h(){if(!c){var t=s(d);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f<e;)u&&u[f].run();f=-1,e=l.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new p(t,e)),1!==l.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,r){!function(t){"use strict";function e(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function r(t,e){return t&e}function n(t,e){return t|e}function i(t,e){return t^e}function o(t,e){return t&~e}function a(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function s(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function l(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=u.charAt(r>>6)+u.charAt(63&r);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=u.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=u.charAt(r>>2)+u.charAt((3&r)<<4));(3&n.length)>0;)n+="=";return n}function c(t){var r,n="",i=0,o=0;for(r=0;r<t.length&&"="!=t.charAt(r);++r){var a=u.indexOf(t.charAt(r));a<0||(0==i?(n+=e(a>>2),o=3&a,i=1):1==i?(n+=e(o<<2|a>>4),o=15&a,i=2):2==i?(n+=e(o),n+=e(a>>2),o=3&a,i=3):(n+=e(o<<2|a>>4),n+=e(15&a),i=0))}return 1==i&&(n+=e(o<<2)),n}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var f,d,h=function(t,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},p=function(t){var e;if(void 0===f){var r="0123456789ABCDEF";for(f={},e=0;e<16;++e)f[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)f[r.charAt(e)]=e;for(e=0;e<" \f\n\r\t \u2028\u2029".length;++e)f[" \f\n\r\t \u2028\u2029".charAt(e)]=-1}var n=[],i=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=f[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);i|=a,++o>=2?(n[n.length]=i,i=0,o=0):i<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return n},g={decode:function(t){var e;if(void 0===d){for(d=Object.create(null),e=0;e<64;++e)d["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(e=0;e<"= \f\n\r\t \u2028\u2029".length;++e)d["= \f\n\r\t \u2028\u2029".charAt(e)]=-1}var r=[],n=0,i=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=d[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);n|=o,++i>=4?(r[r.length]=n>>16,r[r.length]=n>>8&255,r[r.length]=255&n,n=0,i=0):n<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=n>>10;break;case 3:r[r.length]=n>>16,r[r.length]=n>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=g.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return g.decode(t)}},v=1e13,y=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var r,n,i=this.buf,o=i.length;for(r=0;r<o;++r)(n=i[r]*t+e)<v?e=0:n-=(e=0|n/v)*v,i[r]=n;e>0&&(i[r]=e)},t.prototype.sub=function(t){var e,r,n=this.buf,i=n.length;for(e=0;e<i;++e)(r=n[e]-t)<0?(r+=v,t=1):t=0,n[e]=r;for(;0===n[n.length-1];)n.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,r=e[e.length-1].toString(),n=e.length-2;n>=0;--n)r+=(v+e[n]).toString().substring(1);return r},t.prototype.valueOf=function(){for(var t=this.buf,e=0,r=t.length-1;r>=0;--r)e=e*v+t[r];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),m=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,b=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function E(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var T,w=function(){function t(e,r){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=r)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,r){for(var n="",i=t;i<e;++i)if(n+=this.hexByte(this.get(i)),!0!==r)switch(15&i){case 7:n+=" ";break;case 15:n+="\n";break;default:n+=" "}return n},t.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var n=this.get(r);if(n<32||n>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var r="",n=t;n<e;++n)r+=String.fromCharCode(this.get(n));return r},t.prototype.parseStringUTF=function(t,e){for(var r="",n=t;n<e;){var i=this.get(n++);r+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(n++)):String.fromCharCode((15&i)<<12|(63&this.get(n++))<<6|63&this.get(n++))}return r},t.prototype.parseStringBMP=function(t,e){for(var r,n,i="",o=t;o<e;)r=this.get(o++),n=this.get(o++),i+=String.fromCharCode(r<<8|n);return i},t.prototype.parseTime=function(t,e,r){var n=this.parseStringISO(t,e),i=(r?m:b).exec(n);return i?(r&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),n=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(n+=":"+i[5],i[6]&&(n+=":"+i[6],i[7]&&(n+="."+i[7]))),i[8]&&(n+=" UTC","Z"!=i[8]&&(n+=i[8],i[9]&&(n+=":"+i[9]))),n):"Unrecognized time: "+n},t.prototype.parseInteger=function(t,e){for(var r,n=this.get(t),i=n>127,o=i?255:0,a="";n==o&&++t<e;)n=this.get(t);if(0==(r=e-t))return i?-1:0;if(r>4){for(a=n,r<<=3;0==(128&(+a^o));)a=+a<<1,--r;a="("+r+" bit)\n"}i&&(n-=256);for(var s=new y(n),u=t+1;u<e;++u)s.mulAdd(256,this.get(u));return a+s.toString()},t.prototype.parseBitString=function(t,e,r){for(var n=this.get(t),i="("+((e-t-1<<3)-n)+" bit)\n",o="",a=t+1;a<e;++a){for(var s=this.get(a),u=a==e-1?n:0,l=7;l>=u;--l)o+=s>>l&1?"1":"0";if(o.length>r)return i+E(o,r)}return i+o},t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return E(this.parseStringISO(t,e),r);var n=e-t,i="("+n+" byte)\n";n>(r/=2)&&(e=t+r);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return n>r&&(i+="…"),i},t.prototype.parseOID=function(t,e,r){for(var n="",i=new y,o=0,a=t;a<e;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===n)if((i=i.simplify())instanceof y)i.sub(80),n="2."+i.toString();else{var u=i<80?i<40?0:1:2;n=u+"."+(i-40*u)}else n+="."+i.toString();if(n.length>r)return E(n,r);i=new y,o=0}}return o>0&&(n+=".incomplete"),n},t}(),S=function(){function t(t,e,r,n,i){if(!(n instanceof _))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=r,this.tag=n,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return E(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return E(this.stream.parseStringISO(e,e+r),t);case 30:return E(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var r=0,n=this.sub.length;r<n;++r)e+=this.sub[r].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var n=0;n<r;++n)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,r=2*this.length;return t.substr(e,r)},t.decode=function(e){var r;r=e instanceof w?e:new w(e,0);var n=new w(r),i=new _(r),o=t.decodeLength(r),a=r.pos,s=a-n.pos,u=null,l=function(){var e=[];if(null!==o){for(var n=a+o;r.pos<n;)e[e.length]=t.decode(r);if(r.pos!=n)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=t.decode(r);if(i.tag.isEOC())break;e[e.length]=i}o=a-r.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)u=l();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=l();for(var c=0;c<u.length;++c)if(u[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null}if(null===u){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(o)}return new t(n,s,o,i,u)},t}(),_=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var r=new y;do{e=t.get(),r.mulAdd(128,127&e)}while(128&e);this.tagNumber=r.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),k=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],x=(1<<26)/k[k.length-1],A=function(){function t(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(16==t)r=4;else if(8==t)r=3;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return this.toRadix(t);r=2}var n,i=(1<<r)-1,o=!1,a="",s=this.t,u=this.DB-s*this.DB%r;if(s-- >0)for(u<this.DB&&(n=this[s]>>u)>0&&(o=!0,a=e(n));s>=0;)u<r?(n=(this[s]&(1<<u)-1)<<r-u,n|=this[--s]>>(u+=this.DB-r)):(n=this[s]>>(u-=r)&i,u<=0&&(u+=this.DB,--s)),n>0&&(o=!0),o&&(a+=e(n));return o?a:"0"},t.prototype.negate=function(){var e=D();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+F(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=D();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new P(e):new C(e),this.exp(t,r)},t.prototype.clone=function(){var t=D();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&r)&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=D();return this.bitwiseTo(t,r,e),e},t.prototype.or=function(t){var e=D();return this.bitwiseTo(t,n,e),e},t.prototype.xor=function(t){var e=D();return this.bitwiseTo(t,i,e),e},t.prototype.andNot=function(t){var e=D();return this.bitwiseTo(t,o,e),e},t.prototype.not=function(){for(var t=D(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=D();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=D();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+a(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=s(this[r]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,n)},t.prototype.clearBit=function(t){return this.changeBit(t,o)},t.prototype.flipBit=function(t){return this.changeBit(t,i)},t.prototype.add=function(t){var e=D();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=D();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=D();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=D();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=D();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=D(),r=D();return this.divRemTo(t,e,r),[e,r]},t.prototype.modPow=function(t,e){var r,n,i=t.bitLength(),o=B(1);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new P(e):e.isEven()?new R(e):new C(e);var a=[],s=3,u=r-1,l=(1<<r)-1;if(a[1]=n.convert(this),r>1){var c=D();for(n.sqrTo(a[1],c);s<=l;)a[s]=D(),n.mulTo(c,a[s-2],a[s]),s+=2}var f,d,h=t.t-1,p=!0,g=D();for(i=F(t[h])-1;h>=0;){for(i>=u?f=t[h]>>i-u&l:(f=(t[h]&(1<<i+1)-1)<<u-i,h>0&&(f|=t[h-1]>>this.DB+i-u)),s=r;0==(1&f);)f>>=1,--s;if((i-=s)<0&&(i+=this.DB,--h),p)a[f].copyTo(o),p=!1;else{for(;s>1;)n.sqrTo(o,g),n.sqrTo(g,o),s-=2;s>0?n.sqrTo(o,g):(d=o,o=g,g=d),n.mulTo(g,a[f],o)}for(;h>=0&&0==(t[h]&1<<i);)n.sqrTo(o,g),d=o,o=g,g=d,--i<0&&(i=this.DB-1,--h)}return n.revert(o)},t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||0==e.signum())return t.ZERO;for(var n=e.clone(),i=this.clone(),o=B(1),a=B(0),s=B(0),u=B(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),r?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),r?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(e,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),r&&o.subTo(s,o),a.subTo(u,a)):(i.subTo(n,i),r&&s.subTo(o,s),u.subTo(a,u))}return 0!=i.compareTo(t.ONE)?t.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},t.prototype.pow=function(t){return this.exp(t,new O)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},t.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=k[k.length-1]){for(e=0;e<k.length;++e)if(r[0]==k[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<k.length;){for(var n=k[e],i=e+1;i<k.length&&n<x;)n*=k[i++];for(n=r.modInt(n);e<i;)if(n%k[e++]==0)return!1}return r.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,r){var n;if(16==r)n=4;else if(8==r)n=3;else if(256==r)n=8;else if(2==r)n=1;else if(32==r)n=5;else{if(4!=r)return void this.fromRadix(e,r);n=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==n?255&+e[i]:j(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=n)>=this.DB&&(a-=this.DB))}8==n&&0!=(128&+e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,n=this.DB-r,i=(1<<n)-1,o=Math.floor(t/this.DB),a=this.s<<r&this.DM,s=this.t-1;s>=0;--s)e[s+o+1]=this[s]>>n|a,a=(this[s]&i)<<r;for(s=o-1;s>=0;--s)e[s]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var a=r+1;a<this.t;++a)e[a-r-1]|=(this[a]&o)<<i,e[a-r]=this[a]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},t.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},t.prototype.multiplyTo=function(e,r){var n=this.abs(),i=e.abs(),o=n.t;for(r.t=o+i.t;--o>=0;)r[o]=0;for(o=0;o<i.t;++o)r[o+n.t]=n.am(0,i[o],r,o,0,n.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,r,n){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=r&&r.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=D());var a=D(),s=this.s,u=e.s,l=this.DB-F(i[i.t-1]);l>0?(i.lShiftTo(l,a),o.lShiftTo(l,n)):(i.copyTo(a),o.copyTo(n));var c=a.t,f=a[c-1];if(0!=f){var d=f*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,g=1<<this.F2,v=n.t,y=v-c,m=null==r?D():r;for(a.dlShiftTo(y,m),n.compareTo(m)>=0&&(n[n.t++]=1,n.subTo(m,n)),t.ONE.dlShiftTo(c,m),m.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--y>=0;){var b=n[--v]==f?this.DM:Math.floor(n[v]*h+(n[v-1]+g)*p);if((n[v]+=a.am(0,b,n,y,0,c))<b)for(a.dlShiftTo(y,m),n.subTo(m,n);n[v]<--b;)n.subTo(m,n)}null!=r&&(n.drShiftTo(c,r),s!=u&&t.ZERO.subTo(r,r)),n.t=c,n.clamp(),l>0&&n.rShiftTo(l,n),s<0&&t.ZERO.subTo(n,n)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var n=D(),i=D(),o=r.convert(this),a=F(e)-1;for(o.copyTo(n);--a>=0;)if(r.sqrTo(n,i),(e&1<<a)>0)r.mulTo(i,o,n);else{var s=n;n=i,i=s}return r.revert(n)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),n=B(r),i=D(),o=D(),a="";for(this.divRemTo(n,i,o);i.signum()>0;)a=(r+o.intValue()).toString(t).substr(1)+a,i.divRemTo(n,i,o);return o.intValue().toString(t)+a},t.prototype.fromRadix=function(e,r){this.fromInt(0),null==r&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),o=!1,a=0,s=0,u=0;u<e.length;++u){var l=j(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(o=!0):(s=r*s+l,++a>=n&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(r,a)),this.dAddOffset(s,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,r,i){if("number"==typeof r)if(e<2)this.fromInt(1);else for(this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),n,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var o=[],a=7&e;o.length=1+(e>>3),r.nextBytes(o),a>0?o[0]&=(1<<a)-1:o[0]=0,this.fromString(o,256)}},t.prototype.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},t.prototype.changeBit=function(e,r){var n=t.ONE.shiftLeft(e);return this.bitwiseTo(n,r,n),n},t.prototype.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,r){var n=Math.min(this.t+t.t,e);for(r.s=0,r.t=n;n>0;)r[--n]=0;for(var i=r.t-this.t;n<i;++n)r[n+this.t]=this.am(0,t[n],r,n,0,this.t);for(i=Math.min(t.t,e);n<i;++n)this.am(0,t[n],r,n,0,e-n);r.clamp()},t.prototype.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);(e=e+1>>1)>k.length&&(e=k.length);for(var o=D(),a=0;a<e;++a){o.fromInt(k[Math.floor(Math.random()*k.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(r)){for(var u=1;u++<n&&0!=s.compareTo(r);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(r))return!1}}return!0},t.prototype.square=function(){var t=D();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var o=r.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)e(r);else{o<a&&(a=o),a>0&&(r.rShiftTo(a,r),n.rShiftTo(a,n));var s=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n)),r.signum()>0?setTimeout(s,0):(a>0&&n.lShiftTo(a,n),setTimeout((function(){e(n)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,r,i,o){if("number"==typeof r)if(e<2)this.fromInt(1);else{this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),n,this),this.isEven()&&this.dAddOffset(1,0);var a=this,s=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(r)?setTimeout((function(){o()}),0):setTimeout(s,0)};setTimeout(s,0)}else{var u=[],l=7&e;u.length=1+(e>>3),r.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},t}(),O=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),P=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),C=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=D();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(A.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=D();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),R=function(){function t(t){this.m=t,this.r2=D(),this.q3=D(),A.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=D();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function D(){return new A(null)}function L(t,e){return new A(t,e)}"Microsoft Internet Explorer"==navigator.appName?(A.prototype.am=function(t,e,r,n,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var u=32767&this[t],l=this[t++]>>15,c=s*u+l*a;i=((u=a*u+((32767&c)<<15)+r[n]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),r[n++]=1073741823&u}return i},T=30):"Netscape"!=navigator.appName?(A.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var a=e*this[t++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},T=26):(A.prototype.am=function(t,e,r,n,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var u=16383&this[t],l=this[t++]>>14,c=s*u+l*a;i=((u=a*u+((16383&c)<<14)+r[n]+i)>>28)+(c>>14)+s*l,r[n++]=268435455&u}return i},T=28),A.prototype.DB=T,A.prototype.DM=(1<<T)-1,A.prototype.DV=1<<T,A.prototype.FV=Math.pow(2,52),A.prototype.F1=52-T,A.prototype.F2=2*T-52;var I,M,N=[];for(I="0".charCodeAt(0),M=0;M<=9;++M)N[I++]=M;for(I="a".charCodeAt(0),M=10;M<36;++M)N[I++]=M;for(I="A".charCodeAt(0),M=10;M<36;++M)N[I++]=M;function j(t,e){var r=N[t.charCodeAt(e)];return null==r?-1:r}function B(t){var e=D();return e.fromInt(t),e}function F(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}A.ZERO=B(0),A.ONE=B(1);var U,H,V=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[r],this.S[r]=n;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),z=null;if(null==z){z=[],H=0;var G=void 0;if(window.crypto&&window.crypto.getRandomValues){var W=new Uint32Array(256);for(window.crypto.getRandomValues(W),G=0;G<W.length;++G)z[H++]=255&W[G]}var K=function(t){if(this.count=this.count||0,this.count>=256||H>=256)window.removeEventListener?window.removeEventListener("mousemove",K,!1):window.detachEvent&&window.detachEvent("onmousemove",K);else try{var e=t.x+t.y;z[H++]=255&e,this.count+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",K,!1):window.attachEvent&&window.attachEvent("onmousemove",K)}function Y(){if(null==U){for(U=new V;H<256;){var t=Math.floor(65536*Math.random());z[H++]=255&t}for(U.init(z),H=0;H<z.length;++H)z[H]=0;H=0}return U.next()}var X=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Y()},t}(),q=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(r)<0;)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=L(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=t.length-1;n>=0&&e>0;){var i=t.charCodeAt(n--);i<128?r[--e]=i:i>127&&i<2048?(r[--e]=63&i|128,r[--e]=i>>6|192):(r[--e]=63&i|128,r[--e]=i>>6&63|128,r[--e]=i>>12|224)}r[--e]=0;for(var o=new X,a=[];e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);r[--e]=a[0]}return r[--e]=2,r[--e]=0,new A(r)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var r=this.doPublic(e);if(null==r)return null;var n=r.toString(16);return 0==(1&n.length)?n:"0"+n},t.prototype.setPrivate=function(t,e,r){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=L(t,16),this.e=parseInt(e,16),this.d=L(r,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,r,n,i,o,a,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=L(t,16),this.e=parseInt(e,16),this.d=L(r,16),this.p=L(n,16),this.q=L(i,16),this.dmp1=L(o,16),this.dmq1=L(a,16),this.coeff=L(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var r=new X,n=t>>1;this.e=parseInt(e,16);for(var i=new A(e,16);;){for(;this.p=new A(t-n,1,r),0!=this.p.subtract(A.ONE).gcd(i).compareTo(A.ONE)||!this.p.isProbablePrime(10););for(;this.q=new A(n,1,r),0!=this.q.subtract(A.ONE).gcd(i).compareTo(A.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(A.ONE),s=this.q.subtract(A.ONE),u=a.multiply(s);if(0==u.gcd(i).compareTo(A.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=L(t,16),r=this.doPrivate(e);return null==r?null:function(t,e){for(var r=t.toByteArray(),n=0;n<r.length&&0==r[n];)++n;if(r.length-n!=e-1||2!=r[n])return null;for(++n;0!=r[n];)if(++n>=r.length)return null;for(var i="";++n<r.length;){var o=255&r[n];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&r[n+1]),++n):(i+=String.fromCharCode((15&o)<<12|(63&r[n+1])<<6|63&r[n+2]),n+=2)}return i}(r,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,r){var n=new X,i=t>>1;this.e=parseInt(e,16);var o=new A(e,16),a=this,s=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q,a.q=t}var e=a.p.subtract(A.ONE),n=a.q.subtract(A.ONE),i=e.multiply(n);0==i.gcd(o).compareTo(A.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(e),a.dmq1=a.d.mod(n),a.coeff=a.q.modInverse(a.p),setTimeout((function(){r()}),0)):setTimeout(s,0)},u=function(){a.q=D(),a.q.fromNumberAsync(i,1,n,(function(){a.q.subtract(A.ONE).gcda(o,(function(t){0==t.compareTo(A.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},l=function(){a.p=D(),a.p.fromNumberAsync(t-i,1,n,(function(){a.p.subtract(A.ONE).gcda(o,(function(t){0==t.compareTo(A.ONE)&&a.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,r){var n=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var r=e-t.length-6,n="",i=0;i<r;i+=2)n+="ff";return L("0001"+n+"00"+t,16)}(($[r]||"")+e(t).toString(),this.n.bitLength()/4);if(null==n)return null;var i=this.doPrivate(n);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,r){var n=L(e,16),i=this.doPublic(n);return null==i?null:function(t){for(var e in $)if($.hasOwnProperty(e)){var r=$[e],n=r.length;if(t.substr(0,n)==r)return t.substr(n)}return t}
/*!
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/(i.toString(16).replace(/^1f+00/,""))==r(t).toString()},t}(),$={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Q={};Q.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),r){var i;for(i in r)t.prototype[i]=r[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<a.length;i+=1){var r=a[i],n=e[r];"function"==typeof n&&n!=Object.prototype[r]&&(t[r]=n)}})}catch(t){}o(t.prototype,r)}}};
/**
* @fileOverview
* @name asn1-1.0.js
* @author Kenji Urushima kenji.urushima@gmail.com
* @version asn1 1.0.13 (2017-Jun-02)
* @since jsrsasign 2.1
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
*/
var J={};void 0!==J.asn1&&J.asn1||(J.asn1={}),J.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substr(1).length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var n="",i=0;i<r;i++)n+="f";e=new A(n,16).xor(t).add(A.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=J.asn1,r=e.DERBoolean,n=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,u=e.DEREnumerated,l=e.DERUTF8String,c=e.DERNumericString,f=e.DERPrintableString,d=e.DERTeletexString,h=e.DERIA5String,p=e.DERUTCTime,g=e.DERGeneralizedTime,v=e.DERSequence,y=e.DERSet,m=e.DERTaggedObject,b=e.ASN1Util.newObject,E=Object.keys(t);if(1!=E.length)throw"key of param shall be only one.";var T=E[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":"))throw"undefined key: "+T;if("bool"==T)return new r(t[T]);if("int"==T)return new n(t[T]);if("bitstr"==T)return new i(t[T]);if("octstr"==T)return new o(t[T]);if("null"==T)return new a(t[T]);if("oid"==T)return new s(t[T]);if("enum"==T)return new u(t[T]);if("utf8str"==T)return new l(t[T]);if("numstr"==T)return new c(t[T]);if("prnstr"==T)return new f(t[T]);if("telstr"==T)return new d(t[T]);if("ia5str"==T)return new h(t[T]);if("utctime"==T)return new p(t[T]);if("gentime"==T)return new g(t[T]);if("seq"==T){for(var w=t[T],S=[],_=0;_<w.length;_++){var k=b(w[_]);S.push(k)}return new v({array:S})}if("set"==T){for(w=t[T],S=[],_=0;_<w.length;_++)k=b(w[_]),S.push(k);return new y({array:S})}if("tag"==T){var x=t[T];if("[object Array]"===Object.prototype.toString.call(x)&&3==x.length){var A=b(x[2]);return new m({tag:x[0],explicit:x[1],obj:A})}var O={};if(void 0!==x.explicit&&(O.explicit=x.explicit),void 0!==x.tag&&(O.tag=x.tag),void 0===x.obj)throw"obj shall be specified for 'tag'.";return O.obj=b(x.obj),new m(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},J.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",r=parseInt(t.substr(0,2),16),n=(e=Math.floor(r/40)+"."+r%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);n+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new A(n,2).toString(10),n="")}return e},J.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new A(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(n=o+n,a=0;a<n.length-1;a+=7){var s=n.substr(a,7);a!=n.length-7&&(s="1"+s),r+=e(parseInt(s,2))}return r};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)n+=r(i[a]);return n},J.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var r=e.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+r).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},J.asn1.DERAbstractString=function(t){J.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Q.lang.extend(J.asn1.DERAbstractString,J.asn1.ASN1Object),J.asn1.DERAbstractTime=function(t){J.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,r){var n=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+n(String(i.getMonth()+1),2)+n(String(i.getDate()),2)+n(String(i.getHours()),2)+n(String(i.getMinutes()),2)+n(String(i.getSeconds()),2);if(!0===r){var s=i.getMilliseconds();if(0!=s){var u=n(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,r,n,i,o){var a=new Date(Date.UTC(t,e-1,r,n,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Q.lang.extend(J.asn1.DERAbstractTime,J.asn1.ASN1Object),J.asn1.DERAbstractStructured=function(t){J.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Q.lang.extend(J.asn1.DERAbstractStructured,J.asn1.ASN1Object),J.asn1.DERBoolean=function(){J.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Q.lang.extend(J.asn1.DERBoolean,J.asn1.ASN1Object),J.asn1.DERInteger=function(t){J.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=J.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new A(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Q.lang.extend(J.asn1.DERInteger,J.asn1.ASN1Object),J.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=J.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}J.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var r=0;r<=e;r++)t+="0";var n="";for(r=0;r<t.length-1;r+=8){var i=t.substr(r,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),n+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+n},this.setByBooleanArray=function(t){for(var e="",r=0;r<t.length;r++)1==t[r]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Q.lang.extend(J.asn1.DERBitString,J.asn1.ASN1Object),J.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=J.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}J.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Q.lang.extend(J.asn1.DEROctetString,J.asn1.DERAbstractString),J.asn1.DERNull=function(){J.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Q.lang.extend(J.asn1.DERNull,J.asn1.ASN1Object),J.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new A(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(n=o+n,a=0;a<n.length-1;a+=7){var s=n.substr(a,7);a!=n.length-7&&(s="1"+s),r+=e(parseInt(s,2))}return r};J.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)n+=r(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueName=function(t){var e=J.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Q.lang.extend(J.asn1.DERObjectIdentifier,J.asn1.ASN1Object),J.asn1.DEREnumerated=function(t){J.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=J.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new A(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Q.lang.extend(J.asn1.DEREnumerated,J.asn1.ASN1Object),J.asn1.DERUTF8String=function(t){J.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Q.lang.extend(J.asn1.DERUTF8String,J.asn1.DERAbstractString),J.asn1.DERNumericString=function(t){J.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Q.lang.extend(J.asn1.DERNumericString,J.asn1.DERAbstractString),J.asn1.DERPrintableString=function(t){J.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Q.lang.extend(J.asn1.DERPrintableString,J.asn1.DERAbstractString),J.asn1.DERTeletexString=function(t){J.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Q.lang.extend(J.asn1.DERTeletexString,J.asn1.DERAbstractString),J.asn1.DERIA5String=function(t){J.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Q.lang.extend(J.asn1.DERIA5String,J.asn1.DERAbstractString),J.asn1.DERUTCTime=function(t){J.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Q.lang.extend(J.asn1.DERUTCTime,J.asn1.DERAbstractTime),J.asn1.DERGeneralizedTime=function(t){J.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Q.lang.extend(J.asn1.DERGeneralizedTime,J.asn1.DERAbstractTime),J.asn1.DERSequence=function(t){J.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},Q.lang.extend(J.asn1.DERSequence,J.asn1.DERAbstractStructured),J.asn1.DERSet=function(t){J.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Q.lang.extend(J.asn1.DERSet,J.asn1.DERAbstractStructured),J.asn1.DERTaggedObject=function(t){J.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Q.lang.extend(J.asn1.DERTaggedObject,J.asn1.ASN1Object);var Z=function(t){function e(r){var n=t.call(this)||this;return r&&("string"==typeof r?n.parseKey(r):(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return function(t,e){function r(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.parseKey=function(t){try{var e=0,r=0,n=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?p(t):g.unarmor(t),i=S.decode(n);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=L(e,16),r=i.sub[2].getHexStringValue(),this.e=parseInt(r,16);var o=i.sub[3].getHexStringValue();this.d=L(o,16);var a=i.sub[4].getHexStringValue();this.p=L(a,16);var s=i.sub[5].getHexStringValue();this.q=L(s,16);var u=i.sub[6].getHexStringValue();this.dmp1=L(u,16);var l=i.sub[7].getHexStringValue();this.dmq1=L(l,16);var c=i.sub[8].getHexStringValue();this.coeff=L(c,16)}else{if(2!==i.sub.length)return!1;var f=i.sub[1].sub[0];e=f.sub[0].getHexStringValue(),this.n=L(e,16),r=f.sub[1].getHexStringValue(),this.e=parseInt(r,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new J.asn1.DERInteger({int:0}),new J.asn1.DERInteger({bigint:this.n}),new J.asn1.DERInteger({int:this.e}),new J.asn1.DERInteger({bigint:this.d}),new J.asn1.DERInteger({bigint:this.p}),new J.asn1.DERInteger({bigint:this.q}),new J.asn1.DERInteger({bigint:this.dmp1}),new J.asn1.DERInteger({bigint:this.dmq1}),new J.asn1.DERInteger({bigint:this.coeff})]};return new J.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return l(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new J.asn1.DERSequence({array:[new J.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new J.asn1.DERNull]}),e=new J.asn1.DERSequence({array:[new J.asn1.DERInteger({bigint:this.n}),new J.asn1.DERInteger({int:this.e})]}),r=new J.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new J.asn1.DERSequence({array:[t,r]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return l(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var r="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(q),tt=function(){function t(t){t=t||{},this.default_key_size=parseInt(t.default_key_size,10)||1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Z(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(c(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return l(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,r){try{return l(this.getKey().sign(t,e,r))}catch(t){return!1}},t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,c(e),r)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Z,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.0.0-rc.1",t}();window.JSEncrypt=tt,t.JSEncrypt=tt,t.default=tt,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,r){var n,i,o,a,s;n=r(334),i=r(162).utf8,o=r(335),a=r(162).bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?a.stringToBytes(t):i.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var r=n.bytesToWords(t),u=8*t.length,l=1732584193,c=-271733879,f=-1732584194,d=271733878,h=0;h<r.length;h++)r[h]=16711935&(r[h]<<8|r[h]>>>24)|4278255360&(r[h]<<24|r[h]>>>8);r[u>>>5]|=128<<u%32,r[14+(u+64>>>9<<4)]=u;var p=s._ff,g=s._gg,v=s._hh,y=s._ii;for(h=0;h<r.length;h+=16){var m=l,b=c,E=f,T=d;l=p(l,c,f,d,r[h+0],7,-680876936),d=p(d,l,c,f,r[h+1],12,-389564586),f=p(f,d,l,c,r[h+2],17,606105819),c=p(c,f,d,l,r[h+3],22,-1044525330),l=p(l,c,f,d,r[h+4],7,-176418897),d=p(d,l,c,f,r[h+5],12,1200080426),f=p(f,d,l,c,r[h+6],17,-1473231341),c=p(c,f,d,l,r[h+7],22,-45705983),l=p(l,c,f,d,r[h+8],7,1770035416),d=p(d,l,c,f,r[h+9],12,-1958414417),f=p(f,d,l,c,r[h+10],17,-42063),c=p(c,f,d,l,r[h+11],22,-1990404162),l=p(l,c,f,d,r[h+12],7,1804603682),d=p(d,l,c,f,r[h+13],12,-40341101),f=p(f,d,l,c,r[h+14],17,-1502002290),l=g(l,c=p(c,f,d,l,r[h+15],22,1236535329),f,d,r[h+1],5,-165796510),d=g(d,l,c,f,r[h+6],9,-1069501632),f=g(f,d,l,c,r[h+11],14,643717713),c=g(c,f,d,l,r[h+0],20,-373897302),l=g(l,c,f,d,r[h+5],5,-701558691),d=g(d,l,c,f,r[h+10],9,38016083),f=g(f,d,l,c,r[h+15],14,-660478335),c=g(c,f,d,l,r[h+4],20,-405537848),l=g(l,c,f,d,r[h+9],5,568446438),d=g(d,l,c,f,r[h+14],9,-1019803690),f=g(f,d,l,c,r[h+3],14,-187363961),c=g(c,f,d,l,r[h+8],20,1163531501),l=g(l,c,f,d,r[h+13],5,-1444681467),d=g(d,l,c,f,r[h+2],9,-51403784),f=g(f,d,l,c,r[h+7],14,1735328473),l=v(l,c=g(c,f,d,l,r[h+12],20,-1926607734),f,d,r[h+5],4,-378558),d=v(d,l,c,f,r[h+8],11,-2022574463),f=v(f,d,l,c,r[h+11],16,1839030562),c=v(c,f,d,l,r[h+14],23,-35309556),l=v(l,c,f,d,r[h+1],4,-1530992060),d=v(d,l,c,f,r[h+4],11,1272893353),f=v(f,d,l,c,r[h+7],16,-155497632),c=v(c,f,d,l,r[h+10],23,-1094730640),l=v(l,c,f,d,r[h+13],4,681279174),d=v(d,l,c,f,r[h+0],11,-358537222),f=v(f,d,l,c,r[h+3],16,-722521979),c=v(c,f,d,l,r[h+6],23,76029189),l=v(l,c,f,d,r[h+9],4,-640364487),d=v(d,l,c,f,r[h+12],11,-421815835),f=v(f,d,l,c,r[h+15],16,530742520),l=y(l,c=v(c,f,d,l,r[h+2],23,-995338651),f,d,r[h+0],6,-198630844),d=y(d,l,c,f,r[h+7],10,1126891415),f=y(f,d,l,c,r[h+14],15,-1416354905),c=y(c,f,d,l,r[h+5],21,-57434055),l=y(l,c,f,d,r[h+12],6,1700485571),d=y(d,l,c,f,r[h+3],10,-1894986606),f=y(f,d,l,c,r[h+10],15,-1051523),c=y(c,f,d,l,r[h+1],21,-2054922799),l=y(l,c,f,d,r[h+8],6,1873313359),d=y(d,l,c,f,r[h+15],10,-30611744),f=y(f,d,l,c,r[h+6],15,-1560198380),c=y(c,f,d,l,r[h+13],21,1309151649),l=y(l,c,f,d,r[h+4],6,-145523070),d=y(d,l,c,f,r[h+11],10,-1120210379),f=y(f,d,l,c,r[h+2],15,718787259),c=y(c,f,d,l,r[h+9],21,-343485551),l=l+m>>>0,c=c+b>>>0,f=f+E>>>0,d=d+T>>>0}return n.endian([l,c,f,d])})._ff=function(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._gg=function(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._hh=function(t,e,r,n,i,o,a){var s=t+(e^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._ii=function(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?a.bytesToString(r):n.bytesToHex(r)}},function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var i=t[n]<<16|t[n+1]<<8|t[n+2],o=0;o<4;o++)8*n+6*o<=8*t.length?e.push(r.charAt(i>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,i=0;n<t.length;i=++n%4)0!=i&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|r.indexOf(t.charAt(n))>>>6-2*i);return e}},t.exports=n},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function s(t){return!(!t||"function"!=typeof t.hasOwnProperty||!(t.hasOwnProperty("__ownerID")||t._map&&t._map.hasOwnProperty("__ownerID")))}function u(t,e,r){return Object.keys(t).reduce((function(e,n){var i=""+n;return e.has(i)?e.set(i,r(e.get(i),t[i])):e}),e)}r.r(e),r.d(e,"denormalize",(function(){return k})),r.d(e,"normalize",(function(){return w})),r.d(e,"schema",(function(){return T}));var l=function(){function t(t,e,r){if(void 0===e&&(e={}),void 0===r&&(r={}),!t||"string"!=typeof t)throw new Error("Expected a string key for Entity, but found "+t+".");var n=r,i=n.idAttribute,a=void 0===i?"id":i,u=n.mergeStrategy,l=void 0===u?function(t,e){return o({},t,e)}:u,c=n.processStrategy,f=void 0===c?function(t){return o({},t)}:c,d=n.fallbackStrategy,h=void 0===d?function(t,e){}:d;this._key=t,this._getId="function"==typeof a?a:function(t){return function(e){return s(e)?e.get(t):e[t]}}(a),this._idAttribute=a,this._mergeStrategy=l,this._processStrategy=f,this._fallbackStrategy=h,this.define(e)}var e=t.prototype;return e.define=function(t){this.schema=Object.keys(t).reduce((function(e,r){var n,i=t[r];return o({},e,((n={})[r]=i,n))}),this.schema||{})},e.getId=function(t,e,r){return this._getId(t,e,r)},e.merge=function(t,e){return this._mergeStrategy(t,e)},e.fallback=function(t,e){return this._fallbackStrategy(t,e)},e.normalize=function(t,e,r,n,i,o){var a=this,s=this.getId(t,e,r),u=this.key;if(u in o||(o[u]={}),s in o[u]||(o[u][s]=[]),o[u][s].some((function(e){return e===t})))return s;o[u][s].push(t);var l=this._processStrategy(t,e,r);return Object.keys(this.schema).forEach((function(e){if(l.hasOwnProperty(e)&&"object"==typeof l[e]){var r=a.schema[e],s="function"==typeof r?r(t):r;l[e]=n(l[e],l,e,s,i,o)}})),i(this,l,t,e,r),s},e.denormalize=function(t,e){var r=this;return s(t)?u(this.schema,t,e):(Object.keys(this.schema).forEach((function(n){if(t.hasOwnProperty(n)){var i=r.schema[n];t[n]=e(t[n],i)}})),t)},i(t,[{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),t}(),c=function(){function t(t,e){e&&(this._schemaAttribute="string"==typeof e?function(t){return t[e]}:e),this.define(t)}var e=t.prototype;return e.define=function(t){this.schema=t},e.getSchemaAttribute=function(t,e,r){return!this.isSingleSchema&&this._schemaAttribute(t,e,r)},e.inferSchema=function(t,e,r){if(this.isSingleSchema)return this.schema;var n=this.getSchemaAttribute(t,e,r);return this.schema[n]},e.normalizeValue=function(t,e,r,n,i,o){var a=this.inferSchema(t,e,r);if(!a)return t;var s=n(t,e,r,a,i,o);return this.isSingleSchema||null==s?s:{id:s,schema:this.getSchemaAttribute(t,e,r)}},e.denormalizeValue=function(t,e){var r=s(t)?t.get("schema"):t.schema;return this.isSingleSchema||r?e((this.isSingleSchema?void 0:s(t)?t.get("id"):t.id)||t,this.isSingleSchema?this.schema:this.schema[r]):t},i(t,[{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),t}(),f=function(t){function e(e,r){if(!r)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');return t.call(this,e,r)||this}a(e,t);var r=e.prototype;return r.normalize=function(t,e,r,n,i,o){return this.normalizeValue(t,e,r,n,i,o)},r.denormalize=function(t,e){return this.denormalizeValue(t,e)},e}(c),d=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var r=e.prototype;return r.normalize=function(t,e,r,n,i,a){var s=this;return Object.keys(t).reduce((function(e,r,u){var l,c=t[r];return null!=c?o({},e,((l={})[r]=s.normalizeValue(c,t,r,n,i,a),l)):e}),{})},r.denormalize=function(t,e){var r=this;return Object.keys(t).reduce((function(n,i){var a,s=t[i];return o({},n,((a={})[i]=r.denormalizeValue(s,e),a))}),{})},e}(c),h=function(t){if(Array.isArray(t)&&t.length>1)throw new Error("Expected schema definition to be a single schema, but found "+t.length+".");return t[0]},p=function(t){return Array.isArray(t)?t:Object.keys(t).map((function(e){return t[e]}))},g=function(t,e,r,n,i,o,a){return t=h(t),p(e).map((function(e,s){return i(e,r,n,t,o,a)}))},v=function(t,e,r){return t=h(t),e&&e.map?e.map((function(e){return r(e,t)})):e},y=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var r=e.prototype;return r.normalize=function(t,e,r,n,i,o){var a=this;return p(t).map((function(t,s){return a.normalizeValue(t,e,r,n,i,o)})).filter((function(t){return null!=t}))},r.denormalize=function(t,e){var r=this;return t&&t.map?t.map((function(t){return r.denormalizeValue(t,e)})):t},e}(c),m=function(t,e,r,n,i,a,s){var u=o({},e);return Object.keys(t).forEach((function(r){var n=t[r],o="function"==typeof n?n(e):n,l=i(e[r],e,r,o,a,s);null==l?delete u[r]:u[r]=l})),u},b=function(t,e,r){if(s(e))return u(t,e,r);var n=o({},e);return Object.keys(t).forEach((function(e){null!=n[e]&&(n[e]=r(n[e],t[e]))})),n},E=function t(e,r,n,i,o,a){return"object"==typeof e&&e?"object"!=typeof i||i.normalize&&"function"==typeof i.normalize?i.normalize(e,r,n,t,o,a):(Array.isArray(i)?g:m)(i,e,r,n,t,o,a):e},T={Array:y,Entity:l,Object:function(){function t(t){this.define(t)}var e=t.prototype;return e.define=function(t){this.schema=Object.keys(t).reduce((function(e,r){var n,i=t[r];return o({},e,((n={})[r]=i,n))}),this.schema||{})},e.normalize=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return m.apply(void 0,[this.schema].concat(e))},e.denormalize=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return b.apply(void 0,[this.schema].concat(e))},t}(),Union:f,Values:d},w=function(t,e){if(!t||"object"!=typeof t)throw new Error('Unexpected input given to normalize. Expected type to be "object", found "'+(null===t?"null":typeof t)+'".');var r={},n=function(t){return function(e,r,n,i,o){var a=e.key,s=e.getId(n,i,o);a in t||(t[a]={});var u=t[a][s];t[a][s]=u?e.merge(u,r):r}}(r);return{entities:r,result:E(t,t,null,e,n,{})}},S=function(t){var e={},r=_(t);return function t(n,i){return"object"!=typeof i||i.denormalize&&"function"==typeof i.denormalize?null==n?n:i instanceof l?function(t,e,r,n,i){var a=n(t,e);if(void 0===a&&e instanceof l&&(a=e.fallback(t,e)),"object"!=typeof a||null===a)return a;if(i[e.key]||(i[e.key]={}),!i[e.key][t]){var u=s(a)?a:o({},a);i[e.key][t]=u,i[e.key][t]=e.denormalize(u,r)}return i[e.key][t]}(n,i,t,r,e):i.denormalize(n,t):(Array.isArray(i)?v:b)(i,n,t)}},_=function(t){var e=s(t);return function(r,n){var i=n.key;return"object"==typeof r?r:e?t.getIn([i,r.toString()]):t[i]&&t[i][r]}},k=function(t,e,r){if(void 0!==t)return S(r)(t,e)}},function(t,e,r){var n,i;
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */void 0===(i="function"==typeof(n=function(){var t,e,r={version:"0.2.0"},n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(t,e,r){return t<e?e:t>r?r:t}function o(t){return 100*(-1+t)}r.configure=function(t){var e,r;for(e in t)void 0!==(r=t[e])&&t.hasOwnProperty(e)&&(n[e]=r);return this},r.status=null,r.set=function(t){var e=r.isStarted();t=i(t,n.minimum,1),r.status=1===t?null:t;var u=r.render(!e),l=u.querySelector(n.barSelector),c=n.speed,f=n.easing;return u.offsetWidth,a((function(e){""===n.positionUsing&&(n.positionUsing=r.getPositioningCSS()),s(l,function(t,e,r){var i;return(i="translate3d"===n.positionUsing?{transform:"translate3d("+o(t)+"%,0,0)"}:"translate"===n.positionUsing?{transform:"translate("+o(t)+"%,0)"}:{"margin-left":o(t)+"%"}).transition="all "+e+"ms "+r,i}(t,c,f)),1===t?(s(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout((function(){s(u,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){r.remove(),e()}),c)}),c)):setTimeout(e,c)})),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var t=function(){setTimeout((function(){r.status&&(r.trickle(),t())}),n.trickleSpeed)};return n.trickle&&t(),this},r.done=function(t){return t||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(t){var e=r.status;return e?("number"!=typeof t&&(t=(1-e)*i(Math.random()*e,.1,.95)),e=i(e+t,0,.994),r.set(e)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},t=0,e=0,r.promise=function(n){return n&&"resolved"!==n.state()?(0===e&&r.start(),t++,e++,n.always((function(){0==--e?(t=0,r.done()):r.set((t-e)/t)})),this):this},r.render=function(t){if(r.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=n.template;var i,a=e.querySelector(n.barSelector),u=t?"-100":o(r.status||0),c=document.querySelector(n.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),n.showSpinner||(i=e.querySelector(n.spinnerSelector))&&d(i),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(e),e},r.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(n.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&d(t)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var r=t.shift();r&&r(e)}return function(r){t.push(r),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function r(r){return r=r.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()})),e[r]||(e[r]=function(e){var r=document.body.style;if(e in r)return e;for(var n,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((n=t[i]+o)in r)return n;return e}(r))}function n(t,e,n){e=r(e),t.style[e]=n}return function(t,e){var r,i,o=arguments;if(2==o.length)for(r in e)void 0!==(i=e[r])&&e.hasOwnProperty(r)&&n(t,r,i);else n(t,o[1],o[2])}}();function u(t,e){return("string"==typeof t?t:f(t)).indexOf(" "+e+" ")>=0}function l(t,e){var r=f(t),n=r+e;u(r,e)||(t.className=n.substring(1))}function c(t,e){var r,n=f(t);u(t,e)&&(r=n.replace(" "+e+" "," "),t.className=r.substring(1,r.length-1))}function f(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function d(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return r})?n.call(e,r,e,t):n)||(t.exports=i)},function(t,e,r){"use strict";
/*!
* perfect-scrollbar v1.5.0
* Copyright 2020 Hyunje Jun, MDBootstrap and Contributors
* Licensed under MIT
*/
function n(t){return getComputedStyle(t)}function i(t,e){for(var r in e){var n=e[r];"number"==typeof n&&(n+="px"),t.style[r]=n}return t}function o(t){var e=document.createElement("div");return e.className=t,e}r.r(e);var a="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function s(t,e){if(!a)throw new Error("No element matching method supported");return a.call(t,e)}function u(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function l(t,e){return Array.prototype.filter.call(t.children,(function(t){return s(t,e)}))}var c="ps",f="ps__rtl",d={thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},h={focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}},p={x:null,y:null};function g(t,e){var r=t.element.classList,n=h.scrolling(e);r.contains(n)?clearTimeout(p[e]):r.add(n)}function v(t,e){p[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(h.scrolling(e))}),t.settings.scrollingThreshold)}var y=function(t){this.element=t,this.handlers={}},m={isEmpty:{configurable:!0}};y.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},y.prototype.unbind=function(t,e){var r=this;this.handlers[t]=this.handlers[t].filter((function(n){return!(!e||n===e)||(r.element.removeEventListener(t,n,!1),!1)}))},y.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},m.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(y.prototype,m);var b=function(){this.eventElements=[]};function E(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function T(t,e,r,n,i){var o;if(void 0===n&&(n=!0),void 0===i&&(i=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,r,n,i){var o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5];void 0===n&&(n=!0);void 0===i&&(i=!1);var f=t.element;t.reach[u]=null,f[s]<1&&(t.reach[u]="start");f[s]>t[o]-t[a]-1&&(t.reach[u]="end");e&&(f.dispatchEvent(E("ps-scroll-"+u)),e<0?f.dispatchEvent(E("ps-scroll-"+l)):e>0&&f.dispatchEvent(E("ps-scroll-"+c)),n&&function(t,e){g(t,e),v(t,e)}(t,u));t.reach[u]&&(e||i)&&f.dispatchEvent(E("ps-"+u+"-reach-"+t.reach[u]))}(t,r,o,n,i)}function w(t){return parseInt(t,10)||0}b.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new y(t),this.eventElements.push(e)),e},b.prototype.bind=function(t,e,r){this.eventElement(t).bind(e,r)},b.prototype.unbind=function(t,e,r){var n=this.eventElement(t);n.unbind(e,r),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},b.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},b.prototype.once=function(t,e,r){var n=this.eventElement(t),i=function(t){n.unbind(e,i),r(t)};n.bind(e,i)};var S={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function _(t){var e=t.element,r=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(l(e,d.rail("x")).forEach((function(t){return u(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(l(e,d.rail("y")).forEach((function(t){return u(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=k(t,w(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=w((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=k(t,w(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=w(r*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var r={width:e.railXWidth},n=Math.floor(t.scrollTop);e.isRtl?r.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:r.left=t.scrollLeft;e.isScrollbarXUsingBottom?r.bottom=e.scrollbarXBottom-n:r.top=e.scrollbarXTop+n;i(e.scrollbarXRail,r);var o={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?o.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:o.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?o.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:o.left=e.scrollbarYLeft+t.scrollLeft;i(e.scrollbarYRail,o),i(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),i(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(h.active("x")):(e.classList.remove(h.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(h.active("y")):(e.classList.remove(h.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function k(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function x(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],f=t.element,d=null,p=null,y=null;function m(e){e.touches&&e.touches[0]&&(e[i]=e.touches[0].pageY),f[u]=d+y*(e[i]-p),g(t,l),_(t),e.stopPropagation(),e.preventDefault()}function b(){v(t,l),t[c].classList.remove(h.clicking),t.event.unbind(t.ownerDocument,"mousemove",m)}function E(e,a){d=f[u],a&&e.touches&&(e[i]=e.touches[0].pageY),p=e[i],y=(t[n]-t[r])/(t[o]-t[s]),a?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",b),e.preventDefault()),t[c].classList.add(h.clicking),e.stopPropagation()}t.event.bind(t[a],"mousedown",(function(t){E(t)})),t.event.bind(t[a],"touchstart",(function(t){E(t,!0)}))}var A={"click-rail":function(t){t.element,t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var r=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=r*t.containerHeight,_(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var r=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=r*t.containerWidth,_(t),e.stopPropagation()}))},"drag-thumb":function(t){x(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),x(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(s(e,":hover")||s(t.scrollbarX,":focus")||s(t.scrollbarY,":focus"))){var n,i=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(s(n=i,"input,[contenteditable]")||s(n,"select,[contenteditable]")||s(n,"textarea,[contenteditable]")||s(n,"button,[contenteditable]"))return}var o=0,a=0;switch(r.which){case 37:o=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:a=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:o=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:a=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:a=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==a||(e.scrollTop-=a,e.scrollLeft+=o,_(t),function(r,n){var i=Math.floor(e.scrollTop);if(0===r){if(!t.scrollbarYActive)return!1;if(0===i&&n>0||i>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&r<0||o>=t.contentWidth-t.containerWidth&&r>0)return!t.settings.wheelPropagation}return!0}(o,a)&&r.preventDefault())}}))},wheel:function(t){var e=t.element;function r(r){var i=function(t){var e=t.deltaX,r=-1*t.deltaY;return void 0!==e&&void 0!==r||(e=-1*t.wheelDeltaX/6,r=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,r*=10),e!=e&&r!=r&&(e=0,r=t.wheelDelta),t.shiftKey?[-r,-e]:[e,r]}(r),o=i[0],a=i[1];if(!function(t,r,i){if(!S.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var o=t;o&&o!==e;){if(o.classList.contains(d.consuming))return!0;var a=n(o);if(i&&a.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&(o.scrollTop>0&&i<0||o.scrollTop<s&&i>0))return!0}if(r&&a.overflowX.match(/(scroll|auto)/)){var u=o.scrollWidth-o.clientWidth;if(u>0&&(o.scrollLeft>0&&r<0||o.scrollLeft<u&&r>0))return!0}o=o.parentNode}return!1}(r.target,o,a)){var s=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(a?e.scrollTop-=a*t.settings.wheelSpeed:e.scrollTop+=o*t.settings.wheelSpeed,s=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(o?e.scrollLeft+=o*t.settings.wheelSpeed:e.scrollLeft-=a*t.settings.wheelSpeed,s=!0):(e.scrollTop-=a*t.settings.wheelSpeed,e.scrollLeft+=o*t.settings.wheelSpeed),_(t),(s=s||function(r,n){var i=Math.floor(e.scrollTop),o=0===e.scrollTop,a=i+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,u=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(r)?o||a:s||u)||!t.settings.wheelPropagation}(o,a))&&!r.ctrlKey&&(r.stopPropagation(),r.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",r):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",r)},touch:function(t){if(S.supportsTouch||S.supportsIePointer){var e=t.element,r={},i=0,o={},a=null;S.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",f),t.event.bind(e,"touchend",h)):S.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",f),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",f),t.event.bind(e,"MSPointerUp",h)))}function s(r,n){e.scrollTop-=n,e.scrollLeft-=r,_(t)}function u(t){return t.targetTouches?t.targetTouches[0]:t}function l(t){return(!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function c(t){if(l(t)){var e=u(t);r.pageX=e.pageX,r.pageY=e.pageY,i=(new Date).getTime(),null!==a&&clearInterval(a)}}function f(a){if(l(a)){var c=u(a),f={pageX:c.pageX,pageY:c.pageY},h=f.pageX-r.pageX,p=f.pageY-r.pageY;if(function(t,r,i){if(!e.contains(t))return!1;for(var o=t;o&&o!==e;){if(o.classList.contains(d.consuming))return!0;var a=n(o);if(i&&a.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&(o.scrollTop>0&&i<0||o.scrollTop<s&&i>0))return!0}if(r&&a.overflowX.match(/(scroll|auto)/)){var u=o.scrollWidth-o.clientWidth;if(u>0&&(o.scrollLeft>0&&r<0||o.scrollLeft<u&&r>0))return!0}o=o.parentNode}return!1}(a.target,h,p))return;s(h,p),r=f;var g=(new Date).getTime(),v=g-i;v>0&&(o.x=h/v,o.y=p/v,i=g),function(r,n){var i=Math.floor(e.scrollTop),o=e.scrollLeft,a=Math.abs(r),s=Math.abs(n);if(s>a){if(n<0&&i===t.contentHeight-t.containerHeight||n>0&&0===i)return 0===window.scrollY&&n>0&&S.isChrome}else if(a>s&&(r<0&&o===t.contentWidth-t.containerWidth||r>0&&0===o))return!0;return!0}(h,p)&&a.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(a),a=setInterval((function(){t.isInitialized?clearInterval(a):o.x||o.y?Math.abs(o.x)<.01&&Math.abs(o.y)<.01?clearInterval(a):(s(30*o.x,30*o.y),o.x*=.8,o.y*=.8):clearInterval(a)}),10))}}},O=function(t,e){var r=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var a in this.element=t,t.classList.add(c),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[a]=e[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,u,l=function(){return t.classList.add(h.focus)},p=function(){return t.classList.remove(h.focus)};this.isRtl="rtl"===n(t).direction,!0===this.isRtl&&t.classList.add(f),this.isNegativeScroll=(u=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=u,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new b,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=o(d.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=o(d.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",l),this.event.bind(this.scrollbarX,"blur",p),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var g=n(this.scrollbarXRail);this.scrollbarXBottom=parseInt(g.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=w(g.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=w(g.borderLeftWidth)+w(g.borderRightWidth),i(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=w(g.marginLeft)+w(g.marginRight),i(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=o(d.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=o(d.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",l),this.event.bind(this.scrollbarY,"blur",p),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var v=n(this.scrollbarYRail);this.scrollbarYRight=parseInt(v.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=w(v.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=n(t);return w(e.width)+w(e.paddingLeft)+w(e.paddingRight)+w(e.borderLeftWidth)+w(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=w(v.borderTopWidth)+w(v.borderBottomWidth),i(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=w(v.marginTop)+w(v.marginBottom),i(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return A[t](r)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return r.onScroll(t)})),_(this)};O.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,i(this.scrollbarXRail,{display:"block"}),i(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=w(n(this.scrollbarXRail).marginLeft)+w(n(this.scrollbarXRail).marginRight),this.railYMarginHeight=w(n(this.scrollbarYRail).marginTop)+w(n(this.scrollbarYRail).marginBottom),i(this.scrollbarXRail,{display:"none"}),i(this.scrollbarYRail,{display:"none"}),_(this),T(this,"top",0,!1,!0),T(this,"left",0,!1,!0),i(this.scrollbarXRail,{display:""}),i(this.scrollbarYRail,{display:""}))},O.prototype.onScroll=function(t){this.isAlive&&(_(this),T(this,"top",this.element.scrollTop-this.lastScrollTop),T(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},O.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),u(this.scrollbarX),u(this.scrollbarY),u(this.scrollbarXRail),u(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},O.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")},e.default=O},function(t,e,r){"use strict";function n(t){return(n="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 i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function o(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),t}function l(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(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,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var d=r(1),h=r(0),p=r(340),g=r(164);function v(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e+=String.fromCharCode(n):n<2048?(e+=String.fromCharCode(192|n>>6),e+=String.fromCharCode(128|63&n)):n<55296||n>=57344?(e+=String.fromCharCode(224|n>>12),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|63&n)):(r++,n=65536+((1023&n)<<10|1023&t.charCodeAt(r)),e+=String.fromCharCode(240|n>>18),e+=String.fromCharCode(128|n>>12&63),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|63&n))}return e}var y={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000"},m={value:h.string.isRequired,size:h.number,level:h.oneOf(["L","M","Q","H"]),bgColor:h.string,fgColor:h.string},b=function(t){function e(){var t,r,n;a(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return l(n,(r=n=l(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(o))),Object.defineProperty(f(n),"_canvas",{configurable:!0,enumerable:!0,writable:!0,value:void 0}),r))}return c(e,t),u(e,[{key:"shouldComponentUpdate",value:function(t){var r=this;return Object.keys(e.propTypes).some((function(e){return r.props[e]!==t[e]}))}},{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var t=this.props,e=t.value,r=t.size,n=t.level,i=t.bgColor,o=t.fgColor,a=new p(-1,g[n]);if(a.addData(v(e)),a.make(),null!=this._canvas){var s=this._canvas,u=s.getContext("2d");if(!u)return;var l=a.modules;if(null===l)return;var c=r/l.length,f=r/l.length,d=(window.devicePixelRatio||1)/function(t){return t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1}(u);s.height=s.width=r*d,u.scale(d,d),l.forEach((function(t,e){t.forEach((function(t,r){u&&(u.fillStyle=t?o:i);var n=Math.ceil((r+1)*c)-Math.floor(r*c),a=Math.ceil((e+1)*f)-Math.floor(e*f);u&&u.fillRect(Math.round(r*c),Math.round(e*f),n,a)}))}))}}},{key:"render",value:function(){var t=this,e=this.props,r=(e.value,e.size),n=(e.level,e.bgColor,e.fgColor,e.style),a=o(e,["value","size","level","bgColor","fgColor","style"]),s=i({height:r,width:r},n);return d.createElement("canvas",i({style:s,height:r,width:r,ref:function(e){return t._canvas=e}},a))}}]),e}(d.Component);Object.defineProperty(b,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:y}),Object.defineProperty(b,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:m});var E=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),u(e,[{key:"shouldComponentUpdate",value:function(t){var e=this;return Object.keys(b.propTypes).some((function(r){return e.props[r]!==t[r]}))}},{key:"render",value:function(){var t=this.props,e=t.value,r=t.size,n=t.level,a=t.bgColor,s=t.fgColor,u=o(t,["value","size","level","bgColor","fgColor"]),l=new p(-1,g[n]);l.addData(v(e)),l.make();var c=l.modules;if(null!==c){var f=[];return c.forEach((function(t,e){var r=null;t.forEach((function(n,i){if(!n&&null!==r)return f.push("M".concat(r," ").concat(e,"h").concat(i-r,"v1H").concat(r,"z")),void(r=null);if(i!==t.length-1)n&&null===r&&(r=i);else{if(!n)return;null===r?f.push("M".concat(i,",").concat(e," h1v1H").concat(i,"z")):f.push("M".concat(r,",").concat(e," h").concat(i+1-r,"v1H").concat(r,"z"))}}))})),d.createElement("svg",i({shapeRendering:"crispEdges",height:r,width:r,viewBox:"0 0 ".concat(c.length," ").concat(c.length)},u),d.createElement("path",{fill:a,d:"M0,0 h".concat(c.length,"v").concat(c.length,"H0z")}),d.createElement("path",{fill:s,d:f.join("")}))}}}]),e}(d.Component);Object.defineProperty(E,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:y}),Object.defineProperty(E,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:m});var T=function(t){var e=t.renderAs,r=o(t,["renderAs"]),n="svg"===e?E:b;return d.createElement(n,r)};T.defaultProps=i({renderAs:"canvas"},y),t.exports=T},function(t,e,r){var n=r(341),i=r(342),o=r(343),a=r(344),s=r(165);function u(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var l=u.prototype;l.addData=function(t){var e=new n(t);this.dataList.push(e),this.dataCache=null},l.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]},l.getModuleCount=function(){return this.moduleCount},l.make=function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),r=new o,n=0,s=0;s<e.length;s++)n+=e[s].dataCount;for(s=0;s<this.dataList.length;s++){var u=this.dataList[s];r.put(u.mode,4),r.put(u.getLength(),a.getLengthInBits(u.mode,t)),u.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},l.makeImpl=function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=u.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},l.setupPositionProbePattern=function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},l.getBestMaskPattern=function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},l.createMovieClip=function(t,e,r){var n=t.createEmptyMovieClip(e,r);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,a=0;a<this.modules[i].length;a++){var s=1*a;this.modules[i][a]&&(n.beginFill(0,100),n.moveTo(s,o),n.lineTo(s+1,o),n.lineTo(s+1,o+1),n.lineTo(s,o+1),n.endFill())}return n},l.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)},l.setupPositionAdjustPattern=function(){for(var t=a.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],i=t[r];if(null==this.modules[n][i])for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)this.modules[n+o][i+s]=-2==o||2==o||-2==s||2==s||0==o&&0==s}},l.setupTypeNumber=function(t){for(var e=a.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},l.setupTypeInfo=function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!t&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!t&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!t},l.mapData=function(t,e){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[n][s-u]){var l=!1;o<t.length&&(l=1==(t[o]>>>i&1)),a.getMask(e,n,s-u)&&(l=!l),this.modules[n][s-u]=l,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},u.PAD0=236,u.PAD1=17,u.createData=function(t,e,r){for(var n=i.getRSBlocks(t,e),s=new o,l=0;l<r.length;l++){var c=r[l];s.put(c.mode,4),s.put(c.getLength(),a.getLengthInBits(c.mode,t)),c.write(s)}var f=0;for(l=0;l<n.length;l++)f+=n[l].dataCount;if(s.getLengthInBits()>8*f)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*f+")");for(s.getLengthInBits()+4<=8*f&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*f||(s.put(u.PAD0,8),s.getLengthInBits()>=8*f));)s.put(u.PAD1,8);return u.createBytes(s,n)},u.createBytes=function(t,e){for(var r=0,n=0,i=0,o=new Array(e.length),u=new Array(e.length),l=0;l<e.length;l++){var c=e[l].dataCount,f=e[l].totalCount-c;n=Math.max(n,c),i=Math.max(i,f),o[l]=new Array(c);for(var d=0;d<o[l].length;d++)o[l][d]=255&t.buffer[d+r];r+=c;var h=a.getErrorCorrectPolynomial(f),p=new s(o[l],h.getLength()-1).mod(h);u[l]=new Array(h.getLength()-1);for(d=0;d<u[l].length;d++){var g=d+p.getLength()-u[l].length;u[l][d]=g>=0?p.get(g):0}}var v=0;for(d=0;d<e.length;d++)v+=e[d].totalCount;var y=new Array(v),m=0;for(d=0;d<n;d++)for(l=0;l<e.length;l++)d<o[l].length&&(y[m++]=o[l][d]);for(d=0;d<i;d++)for(l=0;l<e.length;l++)d<u[l].length&&(y[m++]=u[l][d]);return y},t.exports=u},function(t,e,r){var n=r(163);function i(t){this.mode=n.MODE_8BIT_BYTE,this.data=t}i.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},t.exports=i},function(t,e,r){var n=r(164);function i(t,e){this.totalCount=t,this.dataCount=e}i.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]],i.getRSBlocks=function(t,e){var r=i.getRsBlockTable(t,e);if(null==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var n=r.length/3,o=new Array,a=0;a<n;a++)for(var s=r[3*a+0],u=r[3*a+1],l=r[3*a+2],c=0;c<s;c++)o.push(new i(u,l));return o},i.getRsBlockTable=function(t,e){switch(e){case n.L:return i.RS_BLOCK_TABLE[4*(t-1)+0];case n.M:return i.RS_BLOCK_TABLE[4*(t-1)+1];case n.Q:return i.RS_BLOCK_TABLE[4*(t-1)+2];case n.H:return i.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},t.exports=i},function(t,e){function r(){this.buffer=new Array,this.length=0}r.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 r=0;r<e;r++)this.putBit(1==(t>>>e-r-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++}},t.exports=r},function(t,e,r){var n=r(163),i=r(165),o=r(166),a=0,s=1,u=2,l=3,c=4,f=5,d=6,h=7,p={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;p.getBCHDigit(e)-p.getBCHDigit(p.G15)>=0;)e^=p.G15<<p.getBCHDigit(e)-p.getBCHDigit(p.G15);return(t<<10|e)^p.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;p.getBCHDigit(e)-p.getBCHDigit(p.G18)>=0;)e^=p.G18<<p.getBCHDigit(e)-p.getBCHDigit(p.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return p.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case a:return(e+r)%2==0;case s:return e%2==0;case u:return r%3==0;case l:return(e+r)%3==0;case c:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case f:return e*r%2+e*r%3==0;case d:return(e*r%2+e*r%3)%2==0;case h:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new i([1],0),r=0;r<t;r++)e=e.multiply(new i([1,o.gexp(r)],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(),r=0,n=0;n<e;n++)for(var i=0;i<e;i++){for(var o=0,a=t.isDark(n,i),s=-1;s<=1;s++)if(!(n+s<0||e<=n+s))for(var u=-1;u<=1;u++)i+u<0||e<=i+u||0==s&&0==u||a==t.isDark(n+s,i+u)&&o++;o>5&&(r+=3+o-5)}for(n=0;n<e-1;n++)for(i=0;i<e-1;i++){var l=0;t.isDark(n,i)&&l++,t.isDark(n+1,i)&&l++,t.isDark(n,i+1)&&l++,t.isDark(n+1,i+1)&&l++,0!=l&&4!=l||(r+=3)}for(n=0;n<e;n++)for(i=0;i<e-6;i++)t.isDark(n,i)&&!t.isDark(n,i+1)&&t.isDark(n,i+2)&&t.isDark(n,i+3)&&t.isDark(n,i+4)&&!t.isDark(n,i+5)&&t.isDark(n,i+6)&&(r+=40);for(i=0;i<e;i++)for(n=0;n<e-6;n++)t.isDark(n,i)&&!t.isDark(n+1,i)&&t.isDark(n+2,i)&&t.isDark(n+3,i)&&t.isDark(n+4,i)&&!t.isDark(n+5,i)&&t.isDark(n+6,i)&&(r+=40);var c=0;for(i=0;i<e;i++)for(n=0;n<e;n++)t.isDark(n,i)&&c++;return r+=10*(Math.abs(100*c/e/e-50)/5)}};t.exports=p},function(t,e,r){"use strict";var n=r(346),i=r(347),o=r(167);t.exports={formats:o,parse:i,stringify:n}},function(t,e,r){"use strict";var n=r(87),i=r(167),o=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,u=Array.prototype.push,l=function(t,e){u.apply(t,s(e)?e:[e])},c=Date.prototype.toISOString,f=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return c.call(t)},skipNulls:!1,strictNullHandling:!1},h=function t(e,r,i,o,a,u,c,f,h,p,g,v,y){var m,b=e;if("function"==typeof c?b=c(r,b):b instanceof Date?b=p(b):"comma"===i&&s(b)&&(b=n.maybeMap(b,(function(t){return t instanceof Date?p(t):t})).join(",")),null===b){if(o)return u&&!v?u(r,d.encoder,y,"key"):r;b=""}if("string"==typeof(m=b)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||n.isBuffer(b))return u?[g(v?r:u(r,d.encoder,y,"key"))+"="+g(u(b,d.encoder,y,"value"))]:[g(r)+"="+g(String(b))];var E,T=[];if(void 0===b)return T;if(s(c))E=c;else{var w=Object.keys(b);E=f?w.sort(f):w}for(var S=0;S<E.length;++S){var _=E[S],k=b[_];if(!a||null!==k){var x=s(b)?"function"==typeof i?i(r,_):r:r+(h?"."+_:"["+_+"]");l(T,t(k,x,i,o,a,u,c,f,h,p,g,v,y))}}return T};t.exports=function(t,e){var r,n=t,u=function(t){if(!t)return d;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||d.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!o.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=i.formatters[r],a=d.filter;return("function"==typeof t.filter||s(t.filter))&&(a=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===t.allowDots?d.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:d.charsetSentinel,delimiter:void 0===t.delimiter?d.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:d.encode,encoder:"function"==typeof t.encoder?t.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:d.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:d.strictNullHandling}}(e);"function"==typeof u.filter?n=(0,u.filter)("",n):s(u.filter)&&(r=u.filter);var c,f=[];if("object"!=typeof n||null===n)return"";c=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var p=a[c];r||(r=Object.keys(n)),u.sort&&r.sort(u.sort);for(var g=0;g<r.length;++g){var v=r[g];u.skipNulls&&null===n[v]||l(f,h(n[v],v,p,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var y=f.join(u.delimiter),m=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),y.length>0?m+y:""}},function(t,e,r){"use strict";var n=r(87),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,c=[];if(l){if(!r.plainObjects&&i.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var f=0;r.depth>0&&null!==(s=a.exec(o))&&f<r.depth;){if(f+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(t,e,r,n){for(var i=n?e:u(e,r),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=i:a[l]=i:a={0:i}}i=a}return i}(c,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var r,l={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,d=c.split(e.delimiter,f),h=-1,p=e.charset;if(e.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?p="utf-8":"utf8=%26%2310003%3B"===d[r]&&(p="iso-8859-1"),h=r,r=d.length);for(r=0;r<d.length;++r)if(r!==h){var g,v,y=d[r],m=y.indexOf("]="),b=-1===m?y.indexOf("="):m+1;-1===b?(g=e.decoder(y,a.decoder,p,"key"),v=e.strictNullHandling?null:""):(g=e.decoder(y.slice(0,b),a.decoder,p,"key"),v=n.maybeMap(u(y.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,p,"value")}))),v&&e.interpretNumericEntities&&"iso-8859-1"===p&&(v=s(v)),y.indexOf("[]=")>-1&&(v=o(v)?[v]:v),i.call(l,g)?l[g]=n.combine(l[g],v):l[g]=v}return l}(t,r):t,f=r.plainObjects?Object.create(null):{},d=Object.keys(c),h=0;h<d.length;++h){var p=d[h],g=l(p,c[p],r,"string"==typeof t);f=n.merge(f,g,r)}return n.compact(f)}},function(t,e,r){"use strict";r.r(e);var n=r(183);e.default=n.default},function(t,e,r){t.exports={default:r(350),__esModule:!0}},function(t,e,r){r(351),t.exports=r(25).Object.assign},function(t,e,r){var n=r(37);n(n.S+n.F,"Object",{assign:r(353)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){"use strict";var n=r(26),i=r(63),o=r(94),a=r(66),s=r(95),u=r(172),l=Object.assign;t.exports=!l||r(48)((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=l({},t)[r]||Object.keys(l({},e)).join("")!=n}))?function(t,e){for(var r=s(t),l=arguments.length,c=1,f=o.f,d=a.f;l>c;)for(var h,p=u(arguments[c++]),g=f?i(p).concat(f(p)):i(p),v=g.length,y=0;v>y;)h=g[y++],n&&!d.call(p,h)||(r[h]=p[h]);return r}:l},function(t,e,r){var n=r(40),i=r(355),o=r(356);t.exports=function(t){return function(e,r,a){var s,u=n(e),l=i(u.length),c=o(a,l);if(t&&r!=r){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===r)return t||c||0;return!t&&-1}}},function(t,e,r){var n=r(90),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){var n=r(90),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},function(t,e,r){t.exports={default:r(358),__esModule:!0}},function(t,e,r){r(359),r(365),t.exports=r(99).f("iterator")},function(t,e,r){"use strict";var n=r(360)(!0);r(174)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){var n=r(90),i=r(89);t.exports=function(t){return function(e,r){var o,a,s=String(i(e)),u=n(r),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(t,e,r){"use strict";var n=r(97),i=r(62),o=r(98),a={};r(38)(a,r(41)("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(31),i=r(47),o=r(63);t.exports=r(26)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),s=a.length,u=0;s>u;)n.f(t,r=a[u++],e[r]);return t}},function(t,e,r){var n=r(24).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(32),i=r(95),o=r(91)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){r(366);for(var n=r(24),i=r(38),o=r(96),a=r(41)("toStringTag"),s="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(","),u=0;u<s.length;u++){var l=s[u],c=n[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(t,e,r){"use strict";var n=r(367),i=r(368),o=r(96),a=r(40);t.exports=r(174)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){t.exports={default:r(370),__esModule:!0}},function(t,e,r){r(371),r(376),r(377),r(378),t.exports=r(25).Symbol},function(t,e,r){"use strict";var n=r(24),i=r(32),o=r(26),a=r(37),s=r(175),u=r(372).KEY,l=r(48),c=r(92),f=r(98),d=r(65),h=r(41),p=r(99),g=r(100),v=r(373),y=r(374),m=r(47),b=r(39),E=r(95),T=r(40),w=r(88),S=r(62),_=r(97),k=r(375),x=r(177),A=r(94),O=r(31),P=r(63),C=x.f,R=O.f,D=k.f,L=n.Symbol,I=n.JSON,M=I&&I.stringify,N=h("_hidden"),j=h("toPrimitive"),B={}.propertyIsEnumerable,F=c("symbol-registry"),U=c("symbols"),H=c("op-symbols"),V=Object.prototype,z="function"==typeof L&&!!A.f,G=n.QObject,W=!G||!G.prototype||!G.prototype.findChild,K=o&&l((function(){return 7!=_(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=C(V,e);n&&delete V[e],R(t,e,r),n&&t!==V&&R(V,e,n)}:R,Y=function(t){var e=U[t]=_(L.prototype);return e._k=t,e},X=z&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},q=function(t,e,r){return t===V&&q(H,e,r),m(t),e=w(e,!0),m(r),i(U,e)?(r.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),r=_(r,{enumerable:S(0,!1)})):(i(t,N)||R(t,N,S(1,{})),t[N][e]=!0),K(t,e,r)):R(t,e,r)},$=function(t,e){m(t);for(var r,n=v(e=T(e)),i=0,o=n.length;o>i;)q(t,r=n[i++],e[r]);return t},Q=function(t){var e=B.call(this,t=w(t,!0));return!(this===V&&i(U,t)&&!i(H,t))&&(!(e||!i(this,t)||!i(U,t)||i(this,N)&&this[N][t])||e)},J=function(t,e){if(t=T(t),e=w(e,!0),t!==V||!i(U,e)||i(H,e)){var r=C(t,e);return!r||!i(U,e)||i(t,N)&&t[N][e]||(r.enumerable=!0),r}},Z=function(t){for(var e,r=D(T(t)),n=[],o=0;r.length>o;)i(U,e=r[o++])||e==N||e==u||n.push(e);return n},tt=function(t){for(var e,r=t===V,n=D(r?H:T(t)),o=[],a=0;n.length>a;)!i(U,e=n[a++])||r&&!i(V,e)||o.push(U[e]);return o};z||(s((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(r){this===V&&e.call(H,r),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),K(this,t,S(1,r))};return o&&W&&K(V,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),x.f=J,O.f=q,r(176).f=k.f=Z,r(66).f=Q,A.f=tt,o&&!r(64)&&s(V,"propertyIsEnumerable",Q,!0),p.f=function(t){return Y(h(t))}),a(a.G+a.W+a.F*!z,{Symbol:L});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)h(et[rt++]);for(var nt=P(h.store),it=0;nt.length>it;)g(nt[it++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!z,"Object",{create:function(t,e){return void 0===e?_(t):$(_(t),e)},defineProperty:q,defineProperties:$,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var ot=l((function(){A.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return A.f(E(t))}}),I&&a(a.S+a.F*(!z||l((function(){var t=L();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!X(t))return y(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!X(e))return e}),n[1]=e,M.apply(I,n)}}),L.prototype[j]||r(38)(L.prototype,j,L.prototype.valueOf),f(L,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},function(t,e,r){var n=r(65)("meta"),i=r(39),o=r(32),a=r(31).f,s=0,u=Object.isExtensible||function(){return!0},l=!r(48)((function(){return u(Object.preventExtensions({}))})),c=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[n].w},onFreeze:function(t){return l&&f.NEED&&u(t)&&!o(t,n)&&c(t),t}}},function(t,e,r){var n=r(63),i=r(94),o=r(66);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,s=r(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,r){var n=r(173);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(40),i=r(176).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},function(t,e){},function(t,e,r){r(100)("asyncIterator")},function(t,e,r){r(100)("observable")},function(t,e,r){t.exports={default:r(380),__esModule:!0}},function(t,e,r){r(381),t.exports=r(25).Object.setPrototypeOf},function(t,e,r){var n=r(37);n(n.S,"Object",{setPrototypeOf:r(382).set})},function(t,e,r){var n=r(39),i=r(47),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=r(168)(Function.call,r(177).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},function(t,e,r){t.exports={default:r(384),__esModule:!0}},function(t,e,r){r(385);var n=r(25).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){var n=r(37);n(n.S,"Object",{create:r(97)})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(387)),o=n(r(50)),a=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"];function s(t){return null==t}var u=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(t,e){s(t.which)&&(t.which=s(e.charCode)?e.keyCode:e.charCode),void 0===t.metaKey&&(t.metaKey=t.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(t,e){var r=void 0,n=void 0,i=void 0,o=e.wheelDelta,a=e.axis,s=e.wheelDeltaY,u=e.wheelDeltaX,l=e.detail;o&&(i=o/120),l&&(i=0-(l%3==0?l/3:l)),void 0!==a&&(a===t.HORIZONTAL_AXIS?(n=0,r=0-i):a===t.VERTICAL_AXIS&&(r=0,n=i)),void 0!==s&&(n=s/120),void 0!==u&&(r=-1*u/120),r||n||(n=i),void 0!==r&&(t.deltaX=r),void 0!==n&&(t.deltaY=n),void 0!==i&&(t.delta=i)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(t,e){var r=void 0,n=void 0,i=void 0,o=t.target,a=e.button;return o&&s(t.pageX)&&!s(e.clientX)&&(n=(r=o.ownerDocument||document).documentElement,i=r.body,t.pageX=e.clientX+(n&&n.scrollLeft||i&&i.scrollLeft||0)-(n&&n.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||i&&i.scrollTop||0)-(n&&n.clientTop||i&&i.clientTop||0)),t.which||void 0===a||(t.which=1&a?1:2&a?3:4&a?2:0),!t.relatedTarget&&t.fromElement&&(t.relatedTarget=t.fromElement===o?t.toElement:t.fromElement),t}}];function l(){return!0}function c(){return!1}function f(t){var e=t.type,r="function"==typeof t.stopPropagation||"boolean"==typeof t.cancelBubble;i.default.call(this),this.nativeEvent=t;var n=c;"defaultPrevented"in t?n=t.defaultPrevented?l:c:"getPreventDefault"in t?n=t.getPreventDefault()?l:c:"returnValue"in t&&(n=!1===t.returnValue?l:c),this.isDefaultPrevented=n;var o=[],s=void 0,f=void 0,d=a.concat();for(u.forEach((function(t){e.match(t.reg)&&(d=d.concat(t.props),t.fix&&o.push(t.fix))})),s=d.length;s;)this[f=d[--s]]=t[f];for(!this.target&&r&&(this.target=t.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),s=o.length;s;)(0,o[--s])(this,t);this.timeStamp=t.timeStamp||Date.now()}var d=i.default.prototype;(0,o.default)(f.prototype,d,{constructor:f,preventDefault:function(){var t=this.nativeEvent;t.preventDefault?t.preventDefault():t.returnValue=!1,d.preventDefault.call(this)},stopPropagation:function(){var t=this.nativeEvent;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,d.stopPropagation.call(this)}}),e.default=f,t.exports=e.default},function(t,e,r){"use strict";function n(){return!1}function i(){return!0}function o(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(e,"__esModule",{value:!0}),o.prototype={isEventObject:1,constructor:o,isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n,preventDefault:function(){this.isDefaultPrevented=i},stopPropagation:function(){this.isPropagationStopped=i},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i,this.stopPropagation()},halt:function(t){t?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},e.default=o,t.exports=e.default},function(t,e,r){r(389);var n=r(25).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){var n=r(37);n(n.S+n.F*!r(26),"Object",{defineProperty:r(31).f})},function(t,e,r){"use strict";r.r(e),r.d(e,"Facebook",(function(){return c})),r.d(e,"Instagram",(function(){return f})),r.d(e,"Code",(function(){return d})),r.d(e,"List",(function(){return h})),r.d(e,"BulletList",(function(){return p}));var n=r(1);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=function(){return Math.random().toString(36).substring(2)},a=function(t){var e=t.animate,r=t.ariaLabel,a=t.children,s=t.className,u=t.height,l=t.preserveAspectRatio,c=t.primaryColor,f=t.primaryOpacity,d=t.rtl,h=t.secondaryColor,p=t.secondaryOpacity,g=t.speed,v=t.style,y=t.uniquekey,m=t.width,b=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,["animate","ariaLabel","children","className","height","preserveAspectRatio","primaryColor","primaryOpacity","rtl","secondaryColor","secondaryOpacity","speed","style","uniquekey","width"]),E=y?y+"-idClip":o(),T=y?y+"-idGradient":o(),w=d?["1; -3","2; -2","3; -1"]:["-3; 1","-2; 2","-1; 3"];return Object(n.createElement)("svg",i({role:"img",style:v,className:s,"aria-labelledby":r||null,viewBox:"0 0 "+m+" "+u,preserveAspectRatio:l},b),r?Object(n.createElement)("title",null,r):null,Object(n.createElement)("rect",{x:"0",y:"0",width:m,height:u,clipPath:"url(#"+E+")",style:{fill:"url(#"+T+")"}}),Object(n.createElement)("defs",null,Object(n.createElement)("clipPath",{id:E},a),Object(n.createElement)("linearGradient",{id:T},Object(n.createElement)("stop",{offset:"0%",stopColor:c,stopOpacity:f},e&&Object(n.createElement)("animate",{attributeName:"offset",values:w[0],dur:g+"s",repeatCount:"indefinite"})),Object(n.createElement)("stop",{offset:"50%",stopColor:h,stopOpacity:p},e&&Object(n.createElement)("animate",{attributeName:"offset",values:w[1],dur:g+"s",repeatCount:"indefinite"})),Object(n.createElement)("stop",{offset:"100%",stopColor:c,stopOpacity:f},e&&Object(n.createElement)("animate",{attributeName:"offset",values:w[2],dur:g+"s",repeatCount:"indefinite"})))))},s={animate:!0,ariaLabel:"Loading interface...",height:130,preserveAspectRatio:"xMidYMid meet",primaryColor:"#f0f0f0",primaryOpacity:1,rtl:!1,secondaryColor:"#e0e0e0",secondaryOpacity:1,speed:2,width:400},u=function(t){return Object(n.createElement)("rect",{x:"0",y:"0",rx:"5",ry:"5",width:t.width,height:t.height})},l=function(t){var e=i({},s,t),r=t.children?t.children:Object(n.createElement)(u,e);return Object(n.createElement)(a,e,r)},c=function(t){return Object(n.createElement)(l,t,Object(n.createElement)("rect",{x:"70",y:"15",rx:"4",ry:"4",width:"117",height:"6.4"}),Object(n.createElement)("rect",{x:"70",y:"35",rx:"3",ry:"3",width:"85",height:"6.4"}),Object(n.createElement)("rect",{x:"0",y:"80",rx:"3",ry:"3",width:"350",height:"6.4"}),Object(n.createElement)("rect",{x:"0",y:"100",rx:"3",ry:"3",width:"380",height:"6.4"}),Object(n.createElement)("rect",{x:"0",y:"120",rx:"3",ry:"3",width:"201",height:"6.4"}),Object(n.createElement)("circle",{cx:"30",cy:"30",r:"30"}))},f=function(t){return Object(n.createElement)(l,i({},t,{height:480}),Object(n.createElement)("circle",{cx:"30",cy:"30",r:"30"}),Object(n.createElement)("rect",{x:"75",y:"13",rx:"4",ry:"4",width:"100",height:"13"}),Object(n.createElement)("rect",{x:"75",y:"37",rx:"4",ry:"4",width:"50",height:"8"}),Object(n.createElement)("rect",{x:"0",y:"70",rx:"5",ry:"5",width:"400",height:"400"}))},d=function(t){return Object(n.createElement)(l,t,Object(n.createElement)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"70",height:"10"}),Object(n.createElement)("rect",{x:"80",y:"0",rx:"3",ry:"3",width:"100",height:"10"}),Object(n.createElement)("rect",{x:"190",y:"0",rx:"3",ry:"3",width:"10",height:"10"}),Object(n.createElement)("rect",{x:"15",y:"20",rx:"3",ry:"3",width:"130",height:"10"}),Object(n.createElement)("rect",{x:"155",y:"20",rx:"3",ry:"3",width:"130",height:"10"}),Object(n.createElement)("rect",{x:"15",y:"40",rx:"3",ry:"3",width:"90",height:"10"}),Object(n.createElement)("rect",{x:"115",y:"40",rx:"3",ry:"3",width:"60",height:"10"}),Object(n.createElement)("rect",{x:"185",y:"40",rx:"3",ry:"3",width:"60",height:"10"}),Object(n.createElement)("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"30",height:"10"}))},h=function(t){return Object(n.createElement)(l,t,Object(n.createElement)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}),Object(n.createElement)("rect",{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}),Object(n.createElement)("rect",{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}),Object(n.createElement)("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}),Object(n.createElement)("rect",{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}),Object(n.createElement)("rect",{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}))},p=function(t){return Object(n.createElement)(l,t,Object(n.createElement)("circle",{cx:"10",cy:"20",r:"8"}),Object(n.createElement)("rect",{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}),Object(n.createElement)("circle",{cx:"10",cy:"50",r:"8"}),Object(n.createElement)("rect",{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}),Object(n.createElement)("circle",{cx:"10",cy:"80",r:"8"}),Object(n.createElement)("rect",{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}),Object(n.createElement)("circle",{cx:"10",cy:"110",r:"8"}),Object(n.createElement)("rect",{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}))};e.default=l},function(t,e,r){"use strict";var n=s(r(392)),i=s(r(397)),o=s(r(182)),a=s(r(180));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:n.default}},function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}e.default=t}(r(0));var n=s(r(393)),i=s(r(396)),o=s(r(1)),a=s(r(180));r(181);function s(t){return t&&t.__esModule?t:{default:t}}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var l=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,n.default)(t,e)}))},c=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,i.default)(t,e)}))},f=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).onEnter=function(t,r){var n=e.getClassNames(r?"appear":"enter").className;e.removeClasses(t,"exit"),l(t,n),e.props.onEnter&&e.props.onEnter(t,r)},e.onEntering=function(t,r){var n=e.getClassNames(r?"appear":"enter").activeClassName;e.reflowAndAddClass(t,n),e.props.onEntering&&e.props.onEntering(t,r)},e.onEntered=function(t,r){var n=e.getClassNames("appear").doneClassName,i=e.getClassNames("enter").doneClassName,o=r?n+" "+i:i;e.removeClasses(t,r?"appear":"enter"),l(t,o),e.props.onEntered&&e.props.onEntered(t,r)},e.onExit=function(t){var r=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),l(t,r),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var r=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,r),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var r=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),l(t,r),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var r=e.props.classNames,n="string"==typeof r,i=n?(n&&r?r+"-":"")+t:r[t];return{className:i,activeClassName:n?i+"-active":r[t+"Active"],doneClassName:n?i+"-done":r[t+"Done"]}},e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.removeClasses=function(t,e){var r=this.getClassNames(e),n=r.className,i=r.activeClassName,o=r.doneClassName;n&&c(t,n),i&&c(t,i),o&&c(t,o)},i.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,l(t,e))},i.render=function(){var t=u({},this.props);return delete t.classNames,o.default.createElement(a.default,u({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(o.default.Component);f.defaultProps={classNames:""},f.propTypes={};var d=f;e.default=d,t.exports=e.default},function(t,e,r){"use strict";var n=r(394);e.__esModule=!0,e.default=function(t,e){t.classList?t.classList.add(e):(0,i.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var i=n(r(395));t.exports=e.default},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},function(t,e,r){"use strict";function n(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=n(t.className,e):t.setAttribute("class",n(t.className&&t.className.baseVal||"",e))}},function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;a(r(0));var n=a(r(1)),i=r(5),o=a(r(182));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e,r;function a(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).handleEnter=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onEnter",0,r)},e.handleEntering=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onEntering",0,r)},e.handleEntered=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onEntered",0,r)},e.handleExit=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onExit",1,r)},e.handleExiting=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onExiting",1,r)},e.handleExited=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onExited",1,r)},e}r=t,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var s=a.prototype;return s.handleLifecycle=function(t,e,r){var o,a=this.props.children,s=n.default.Children.toArray(a)[e];s.props[t]&&(o=s.props)[t].apply(o,r),this.props[t]&&this.props[t]((0,i.findDOMNode)(this))},s.render=function(){var t=this.props,e=t.children,r=t.in,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,["children","in"]),a=n.default.Children.toArray(e),s=a[0],u=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,n.default.createElement(o.default,i,r?n.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(n.default.Component);s.propTypes={};var u=s;e.default=u,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0,e.getChildMapping=i,e.mergeChildMappings=o,e.getInitialChildMapping=function(t,e){return i(t.children,(function(r){return(0,n.cloneElement)(r,{onExited:e.bind(null,r),in:!0,appear:a(r,"appear",t),enter:a(r,"enter",t),exit:a(r,"exit",t)})}))},e.getNextChildMapping=function(t,e,r){var s=i(t.children),u=o(e,s);return Object.keys(u).forEach((function(i){var o=u[i];if((0,n.isValidElement)(o)){var l=i in e,c=i in s,f=e[i],d=(0,n.isValidElement)(f)&&!f.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,n.isValidElement)(f)&&(u[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:f.props.in,exit:a(o,"exit",t),enter:a(o,"enter",t)})):u[i]=(0,n.cloneElement)(o,{in:!1}):u[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:!0,exit:a(o,"exit",t),enter:a(o,"enter",t)})}})),u};var n=r(1);function i(t,e){var r=Object.create(null);return t&&n.Children.map(t,(function(t){return t})).forEach((function(t){r[t.key]=function(t){return e&&(0,n.isValidElement)(t)?e(t):t}(t)})),r}function o(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,i=Object.create(null),o=[];for(var a in t)a in e?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in e){if(i[u])for(n=0;n<i[u].length;n++){var l=i[u][n];s[i[u][n]]=r(l)}s[u]=r(u)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}function a(t,e,r){return null!=r[e]?r[e]:t.props[e]}},function(t,e,r){var n;
/*!
* EventEmitter v5.2.9 - git.io/ee
* Unlicense - http://unlicense.org/
* Oliver Caldwell - https://oli.me.uk/
* @preserve
*/!function(e){"use strict";function i(){}var o=i.prototype,a=e.EventEmitter;function s(t,e){for(var r=t.length;r--;)if(t[r].listener===e)return r;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}o.getListeners=function(t){var e,r,n=this._getEvents();if(t instanceof RegExp)for(r in e={},n)n.hasOwnProperty(r)&&t.test(r)&&(e[r]=n[r]);else e=n[t]||(n[t]=[]);return e},o.flattenListeners=function(t){var e,r=[];for(e=0;e<t.length;e+=1)r.push(t[e].listener);return r},o.getListenersAsObject=function(t){var e,r=this.getListeners(t);return r instanceof Array&&((e={})[t]=r),e||r},o.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var r,n=this.getListenersAsObject(t),i="object"==typeof e;for(r in n)n.hasOwnProperty(r)&&-1===s(n[r],e)&&n[r].push(i?e:{listener:e,once:!1});return this},o.on=u("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=u("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,e){var r,n,i=this.getListenersAsObject(t);for(n in i)i.hasOwnProperty(n)&&-1!==(r=s(i[n],e))&&i[n].splice(r,1);return this},o.off=u("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,r){var n,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=r.length;n--;)o.call(this,e,r[n]);else for(n in e)e.hasOwnProperty(n)&&(i=e[n])&&("function"==typeof i?o.call(this,n,i):a.call(this,n,i));return this},o.removeEvent=function(t){var e,r=typeof t,n=this._getEvents();if("string"===r)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},o.removeAllListeners=u("removeEvent"),o.emitEvent=function(t,e){var r,n,i,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(r=a[o].slice(0),i=0;i<r.length;i++)!0===(n=r[i]).once&&this.removeListener(t,n.listener),n.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,n.listener);return this},o.trigger=u("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=a,i},void 0===(n=function(){return i}.call(e,r,e,t))||(t.exports=n)}("undefined"!=typeof window?window:this||{})},function(t,e,r){"use strict";var n=r(401),i=r(402),o=r(403),a=r(404);function s(t,e,r){var n=t;return i(e)?(r=e,"string"==typeof t&&(n={uri:t})):n=a(e,{uri:t}),n.callback=r,n}function u(t,e,r){return l(e=s(t,e,r))}function l(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.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}(c),y)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,m)}function a(){if(!l){var e;clearTimeout(f),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=m,a=null;return 0!==e?(i={body:n(),statusCode:e,method:h,headers:{},url:d,rawRequest:c},c.getAllResponseHeaders&&(i.headers=o(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),r(a,i,i.body)}}var s,l,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var f,d=c.url=t.uri||t.url,h=c.method=t.method||"GET",p=t.body||t.data,g=c.headers=t.headers||{},v=!!t.sync,y=!1,m={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:c};if("json"in t&&!1!==t.json&&(y=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=i,c.onprogress=function(){},c.onabort=function(){l=!0},c.ontimeout=i,c.open(h,d,!v,t.username,t.password),v||(c.withCredentials=!!t.withCredentials),!v&&t.timeout>0&&(f=setTimeout((function(){if(!l){l=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(s in g)g.hasOwnProperty(s)&&c.setRequestHeader(s,g[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&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}(["get","put","post","patch","head","delete"],(function(t){u["delete"===t?"del":t]=function(e,r,n){return(r=s(e,r,n)).method=t.toUpperCase(),l(r)}}))},function(t,e,r){(function(e){var r;r="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=r}).call(this,r(21))},function(t,e){t.exports=function(t){if(!t)return!1;var e=r.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 r=Object.prototype.toString},function(t,e){var r=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var e,n={},i=r(t).split("\n"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(":"),u=r(a.slice(0,s)).toLowerCase(),l=r(a.slice(s+1));void 0===n[u]?n[u]=l:(e=n[u],"[object Array]"===Object.prototype.toString.call(e)?n[u].push(l):n[u]=[n[u],l])}return n}},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t};var r=Object.prototype.hasOwnProperty},function(t,e,r){"use strict";r.r(e),r.d(e,"BrowserRouter",(function(){return f})),r.d(e,"HashRouter",(function(){return d})),r.d(e,"Link",(function(){return m})),r.d(e,"NavLink",(function(){return T}));var n=r(4);r.d(e,"MemoryRouter",(function(){return n.MemoryRouter})),r.d(e,"Prompt",(function(){return n.Prompt})),r.d(e,"Redirect",(function(){return n.Redirect})),r.d(e,"Route",(function(){return n.Route})),r.d(e,"Router",(function(){return n.Router})),r.d(e,"StaticRouter",(function(){return n.StaticRouter})),r.d(e,"Switch",(function(){return n.Switch})),r.d(e,"generatePath",(function(){return n.generatePath})),r.d(e,"matchPath",(function(){return n.matchPath})),r.d(e,"useHistory",(function(){return n.useHistory})),r.d(e,"useLocation",(function(){return n.useLocation})),r.d(e,"useParams",(function(){return n.useParams})),r.d(e,"useRouteMatch",(function(){return n.useRouteMatch})),r.d(e,"withRouter",(function(){return n.withRouter}));var i=r(14),o=r(1),a=r.n(o),s=r(18),u=(r(0),r(6)),l=r(34),c=r(15),f=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).history=Object(s.createBrowserHistory)(e.props),e}return Object(i.default)(e,t),e.prototype.render=function(){return a.a.createElement(n.Router,{history:this.history,children:this.props.children})},e}(a.a.Component);var d=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).history=Object(s.createHashHistory)(e.props),e}return Object(i.default)(e,t),e.prototype.render=function(){return a.a.createElement(n.Router,{history:this.history,children:this.props.children})},e}(a.a.Component);var h=function(t,e){return"function"==typeof t?t(e):t},p=function(t,e){return"string"==typeof t?Object(s.createLocation)(t,null,null,e):t},g=function(t){return t},v=a.a.forwardRef;void 0===v&&(v=g);var y=v((function(t,e){var r=t.innerRef,n=t.navigate,i=t.onClick,o=Object(l.default)(t,["innerRef","navigate","onClick"]),s=o.target,c=Object(u.default)({},o,{onClick:function(t){try{i&&i(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||s&&"_self"!==s||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),n())}});return c.ref=g!==v&&e||r,a.a.createElement("a",c)}));var m=v((function(t,e){var r=t.component,i=void 0===r?y:r,o=t.replace,s=t.to,f=t.innerRef,d=Object(l.default)(t,["component","replace","to","innerRef"]);return a.a.createElement(n.__RouterContext.Consumer,null,(function(t){t||Object(c.default)(!1);var r=t.history,n=p(h(s,t.location),t.location),l=n?r.createHref(n):"",y=Object(u.default)({},d,{href:l,navigate:function(){var e=h(s,t.location);(o?r.replace:r.push)(e)}});return g!==v?y.ref=e||f:y.innerRef=f,a.a.createElement(i,y)}))})),b=function(t){return t},E=a.a.forwardRef;void 0===E&&(E=b);var T=E((function(t,e){var r=t["aria-current"],i=void 0===r?"page":r,o=t.activeClassName,s=void 0===o?"active":o,f=t.activeStyle,d=t.className,g=t.exact,v=t.isActive,y=t.location,T=t.sensitive,w=t.strict,S=t.style,_=t.to,k=t.innerRef,x=Object(l.default)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(n.__RouterContext.Consumer,null,(function(t){t||Object(c.default)(!1);var r=y||t.location,o=p(h(_,r),r),l=o.pathname,A=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),O=A?Object(n.matchPath)(r.pathname,{path:A,exact:g,sensitive:T,strict:w}):null,P=!!(v?v(O,r):O),C=P?function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.filter((function(t){return t})).join(" ")}(d,s):d,R=P?Object(u.default)({},S,{},f):S,D=Object(u.default)({"aria-current":P&&i||null,className:C,style:R,to:o},x);return b!==E?D.ref=e||k:D.innerRef=k,a.a.createElement(m,D)}))}))},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,r){"use strict";r.r(e),r.d(e,"matchRoutes",(function(){return s})),r.d(e,"renderRoutes",(function(){return u}));var n=r(4),i=r(6),o=r(1),a=r.n(o);function s(t,e,r){return void 0===r&&(r=[]),t.some((function(t){var i=t.path?Object(n.matchPath)(e,t):r.length?r[r.length-1].match:n.Router.computeRootMatch(e);return i&&(r.push({route:t,match:i}),t.routes&&s(t.routes,e,r)),i})),r}function u(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),t?a.a.createElement(n.Switch,r,t.map((function(t,r){return a.a.createElement(n.Route,{key:t.key||r,path:t.path,exact:t.exact,strict:t.strict,render:function(r){return t.render?t.render(Object(i.default)({},r,{},e,{route:t})):a.a.createElement(t.component,Object(i.default)({},r,e,{route:t}))}})}))):null}}]);
//# sourceMappingURL=http://sourcemap.ximalaya.com/ximalaya-web/dist/common.js.map