3 lines
2.6 MiB
3 lines
2.6 MiB
/*! For license information please see 4.d272848c.chunk.js.LICENSE.txt */
|
|
(this["webpackJsonp@uniswap/interface"]=this["webpackJsonp@uniswap/interface"]||[]).push([[4],[function(e,t,n){"use strict";e.exports=n(356)},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createGlobalStyle",(function(){return nt})),n.d(t,"css",(function(){return be})),n.d(t,"isStyledComponent",(function(){return C})),n.d(t,"keyframes",(function(){return it})),n.d(t,"ServerStyleSheet",(function(){return We})),n.d(t,"StyleSheetConsumer",(function(){return Ze})),n.d(t,"StyleSheetContext",(function(){return qe})),n.d(t,"StyleSheetManager",(function(){return Ke})),n.d(t,"ThemeConsumer",(function(){return Je})),n.d(t,"ThemeContext",(function(){return Ge})),n.d(t,"ThemeProvider",(function(){return Xe})),n.d(t,"withTheme",(function(){return ot})),n.d(t,"__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS",(function(){return at}));var r=n(223),i=n.n(r),o=n(305),a=n.n(o),s=n(0),u=n.n(s),l=n(178),c=n(110),f=n(86),d=(n(18),n(122)),h=n(335),p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},w=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},x=function(e){return"object"===("undefined"===typeof e?"undefined":g(e))&&e.constructor===Object},_=Object.freeze([]),k=Object.freeze({});function S(e){return"function"===typeof e}function T(e){return e.displayName||e.name||"Component"}function C(e){return e&&"string"===typeof e.styledComponentId}var A="undefined"!==typeof e&&(Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_CHAIN_ID:"4",REACT_APP_API_URL:"/api"}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_CHAIN_ID:"4",REACT_APP_API_URL:"/api"}).SC_ATTR)||"data-styled",O="undefined"!==typeof window&&"HTMLElement"in window,M="boolean"===typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!==typeof e&&(Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_CHAIN_ID:"4",REACT_APP_API_URL:"/api"}).REACT_APP_SC_DISABLE_SPEEDY||Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_CHAIN_ID:"4",REACT_APP_API_URL:"/api"}).SC_DISABLE_SPEEDY)||!1,E={};var P=function(e){function t(n){y(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=w(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+n+" for more information."+(i.length>0?" Additional arguments: "+i.join(", "):"")));return w(a)}return b(t,e),t}(Error),I=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,D=function(e){var t=""+(e||""),n=[];return t.replace(I,(function(e,t,r){return n.push({componentId:t,matchIndex:r}),e})),n.map((function(e,r){var i=e.componentId,o=e.matchIndex,a=n[r+1];return{componentId:i,cssFromDOM:a?t.slice(o,a.matchIndex):t.slice(o)}}))},L=/^\s*\/\/.*$/gm,R=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),N=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),j=[],B=function(e){if(-2===e){var t=j;return j=[],t}},F=a()((function(e){j.push(e)})),z=void 0,V=void 0,H=void 0,U=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(V)&&n.slice(t-V.length,t)!==V?"."+z:e};N.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(V)>0&&(n[0]=n[0].replace(H,U))},F,B]),R.use([F,B]);var G=function(e){return R("",e)};function J(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",i=e.join("").replace(L,""),o=t&&n?n+" "+t+" { "+i+" }":i;return z=r,V=t,H=new RegExp("\\"+V+"\\b","g"),N(n||!t?"":t,o)}var X=function(){return n.nc},W=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},q=function(e,t){e[t]=Object.create(null)},Z=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},K=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},Y=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n<t;n+=1){var r=e.ownerDocument.styleSheets[n];if(r.ownerNode===e)return r}throw new P(10)},$=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(i){return!1}return!0},Q=function(e){return"\n/* sc-component-id: "+e+" */\n"},ee=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},te=function(e,t){return function(n){var r=X();return"<style "+[r&&'nonce="'+r+'"',A+'="'+K(t)+'"','data-styled-version="4.4.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},ne=function(e,t){return function(){var n,r=((n={})[A]=K(t),n["data-styled-version"]="4.4.1",n),i=X();return i&&(r.nonce=i),u.a.createElement("style",m({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},ie=function(e,t){return e.createTextNode(Q(t))},oe=function e(t,n){var r=void 0===t?Object.create(null):t,i=void 0===n?Object.create(null):n,o=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},a=function(){var e="";for(var t in i){var n=i[t][0];n&&(e+=Q(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=m({},e[n]);return t}(r),n=Object.create(null);for(var o in i)n[o]=[i[o][0]];return e(t,n)},css:a,getIds:re(i),hasNameForId:Z(r),insertMarker:o,insertRules:function(e,t,n){o(e)[0]+=t.join(" "),W(r,e,n)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",q(r,e))},sealed:!1,styleTag:null,toElement:ne(a,r),toHTML:te(a,r)}},ae=function(e,t,n,r,i){if(O&&!n){var o=function(e,t,n){var r=document;e?r=e.ownerDocument:t&&(r=t.ownerDocument);var i=r.createElement("style");i.setAttribute(A,""),i.setAttribute("data-styled-version","4.4.1");var o=X();if(o&&i.setAttribute("nonce",o),i.appendChild(r.createTextNode("")),e&&!t)e.appendChild(i);else{if(!t||!e||!t.parentNode)throw new P(6);t.parentNode.insertBefore(i,n?t:t.nextSibling)}return i}(e,t,r);return M?function(e,t){var n=Object.create(null),r=Object.create(null),i=void 0!==t,o=!1,a=function(t){var i=r[t];return void 0!==i?i:(r[t]=ie(e.ownerDocument,t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new P(5)},css:s,getIds:re(r),hasNameForId:Z(n),insertMarker:a,insertRules:function(e,r,s){for(var u=a(e),l=[],c=r.length,f=0;f<c;f+=1){var d=r[f],h=i;if(h&&-1!==d.indexOf("@import"))l.push(d);else{h=!1;var p=f===c-1?"":" ";u.appendData(""+d+p)}}W(n,e,s),i&&l.length>0&&(o=!0,t().insertRules(e+"-import",l))},removeRules:function(a){var s=r[a];if(void 0!==s){var u=ie(e.ownerDocument,a);e.replaceChild(u,s),r[a]=u,q(n,a),i&&o&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:ne(s,n),toHTML:te(s,n)}}(o,i):function(e,t){var n=Object.create(null),r=Object.create(null),i=[],o=void 0!==t,a=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=i.length,i.push(0),q(n,e),r[e])},u=function(){var t=Y(e).cssRules,n="";for(var o in r){n+=Q(o);for(var a=r[o],s=ee(i,a),u=s-i[a];u<s;u+=1){var l=t[u];void 0!==l&&(n+=l.cssText)}}return n};return{clone:function(){throw new P(5)},css:u,getIds:re(r),hasNameForId:Z(n),insertMarker:s,insertRules:function(r,u,l){for(var c=s(r),f=Y(e),d=ee(i,c),h=0,p=[],g=u.length,y=0;y<g;y+=1){var v=u[y],m=o;m&&-1!==v.indexOf("@import")?p.push(v):$(f,v,d+h)&&(m=!1,h+=1)}o&&p.length>0&&(a=!0,t().insertRules(r+"-import",p)),i[c]+=h,W(n,r,l)},removeRules:function(s){var u=r[s];if(void 0!==u&&!1!==e.isConnected){var l=i[u];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}(Y(e),ee(i,u)-1,l),i[u]=0,q(n,s),o&&a&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ne(u,n),toHTML:te(u,n)}}(o,i)}return oe()},se=/\s+/,ue=void 0;ue=O?M?40:1e3:-1;var le=0,ce=void 0,fe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=ae(t.target,n?n.styleTag:null,t.forceServer,!0)},le+=1,this.id=le,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!O||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+A+'][data-styled-version="4.4.1"]'),i=r.length;if(!i)return this;for(var o=0;o<i;o+=1){var a=r[o];n||(n=!!a.getAttribute("data-styled-streamed"));for(var s,u=(a.getAttribute(A)||"").trim().split(se),l=u.length,c=0;c<l;c+=1)s=u[c],this.rehydratedNames[s]=!0;t.push.apply(t,D(a.textContent)),e.push(a)}var f=t.length;if(!f)return this;var d=this.makeTag(null);!function(e,t,n){for(var r=0,i=n.length;r<i;r+=1){var o=n[r],a=o.componentId,s=o.cssFromDOM,u=G(s);e.insertRules(a,u)}for(var l=0,c=t.length;l<c;l+=1){var f=t[l];f.parentNode&&f.parentNode.removeChild(f)}}(d,e,t),this.capacity=Math.max(1,ue-f),this.tags.push(d);for(var h=0;h<f;h+=1)this.tagMap[t[h].componentId]=d;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ce=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),r=e.clone(),i=0;i<n.length;i+=1)t.tagMap[n[i]]=r;return r})),t.rehydratedNames=m({},this.rehydratedNames),t.deferred=m({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach((function(e){e.sealed=!0}))},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return ae(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=ue,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,i=0;i<r.length;i+=1)r[i].inject(e,t,n);var o=this.getTagForId(e);if(void 0!==this.deferred[e]){var a=this.deferred[e].concat(t);o.insertRules(e,a,n),this.deferred[e]=void 0}else o.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map((function(e){return e.toHTML()})).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map((function(t,n){var r="sc-"+e+"-"+n;return Object(s.cloneElement)(t.toElement(),{key:r})}))},v(e,null,[{key:"master",get:function(){return ce||(ce=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),de=function(){function e(t,n){var r=this;y(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new P(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),he=/([A-Z])/g,pe=/^ms-/;function ge(e){return e.replace(he,"-$1").toLowerCase().replace(pe,"-ms-")}var ye=function(e){return void 0===e||null===e||!1===e||""===e},ve=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!ye(t[n])){if(x(t[n]))return r.push.apply(r,e(t[n],n)),r;if(S(t[n]))return r.push(ge(n)+":",t[n],";"),r;r.push(ge(n)+": "+function(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||e in l.a?String(t).trim():t+"px"}(n,t[n])+";")}return r})),n?[n+" {"].concat(r,["}"]):r};function me(e,t,n){if(Array.isArray(e)){for(var r,i=[],o=0,a=e.length;o<a;o+=1)null!==(r=me(e[o],t,n))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return ye(e)?null:C(e)?"."+e.styledComponentId:S(e)?"function"!==typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:me(e(t),t,n):e instanceof de?n?(e.inject(n),e.getName()):e:x(e)?ve(e):e.toString();var s}function be(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return S(e)||x(e)?me(p(_,[e].concat(n))):me(p(e,n))}function we(e){for(var t,n=0|e.length,r=0|n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var xe=function(e){return String.fromCharCode(e+(e>25?39:97))};function _e(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=xe(n%52)+t;return xe(n%52)+t}function ke(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!ke(r,t))return!1;if(S(r)&&!C(r))return!1}return!t.some((function(e){return S(e)||function(e){for(var t in e)if(S(e[t]))return!0;return!1}(e)}))}var Se,Te=function(e){return _e(we(e))},Ce=function(){function e(t,n,r){y(this,e),this.rules=t,this.isStatic=ke(t,n),this.componentId=r,fe.master.hasId(r)||fe.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,i=this.lastClassName;if(O&&n&&"string"===typeof i&&t.hasNameForId(r,i))return i;var o=me(this.rules,e,t),a=Te(this.componentId+o.join(""));return t.hasNameForId(r,a)||t.inject(this.componentId,J(o,"."+a,void 0,r),a),this.lastClassName=a,a},e.generateName=function(e){return Te(e)},e}(),Ae=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k,r=!!n&&e.theme===n.theme,i=e.theme&&!r?e.theme:t||n.theme;return i},Oe=/[[\].#*$><+~=|^:(),"'`-]+/g,Me=/(^-|-$)/g;function Ee(e){return e.replace(Oe,"-").replace(Me,"")}function Pe(e){return"string"===typeof e&&!0}var Ie={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},De={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Le=((Se={})[c.ForwardRef]={$$typeof:!0,render:!0},Se),Re=Object.defineProperty,Ne=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,Be=void 0===je?function(){return[]}:je,Fe=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,Ve=Object.prototype,He=Array.prototype;function Ue(e,t,n){if("string"!==typeof t){var r=ze(t);r&&r!==Ve&&Ue(e,r,n);for(var i=He.concat(Ne(t),Be(t)),o=Le[e.$$typeof]||Ie,a=Le[t.$$typeof]||Ie,s=i.length,u=void 0,l=void 0;s--;)if(l=i[s],!De[l]&&(!n||!n[l])&&(!a||!a[l])&&(!o||!o[l])&&(u=Fe(t,l)))try{Re(e,l,u)}catch(c){}return e}return e}var Ge=Object(s.createContext)(),Je=Ge.Consumer,Xe=function(e){function t(n){y(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return b(t,e),t.prototype.render=function(){return this.props.children?u.a.createElement(Ge.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return u.a.createElement(Ge.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(S(e))return e(t);if(null===e||Array.isArray(e)||"object"!==("undefined"===typeof e?"undefined":g(e)))throw new P(8);return m({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),We=function(){function e(){y(this,e),this.masterSheet=fe.master,this.instance=this.masterSheet.clone(),this.sealed=!1}return e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new P(2);return u.a.createElement(Ke,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new P(3)},e}(),qe=Object(s.createContext)(),Ze=qe.Consumer,Ke=function(e){function t(n){y(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext),r}return b(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new fe(t);throw new P(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return u.a.createElement(qe.Provider,{value:this.getContext(n,r)},t)},t}(s.Component),Ye={};var $e=function(e){function t(){y(this,t);var n=w(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return b(t,e),t.prototype.render=function(){return u.a.createElement(Ze,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():u.a.createElement(Je,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,i=(t.displayName,t.foldedComponentIds),o=t.styledComponentId,a=t.target,u=void 0;u=n.isStatic?this.generateAndInjectStyles(k,this.props):this.generateAndInjectStyles(Ae(this.props,e,r)||k,this.props);var l=this.props.as||this.attrs.as||a,c=Pe(l),f={},h=m({},this.props,this.attrs),p=void 0;for(p in h)"forwardedComponent"!==p&&"as"!==p&&("forwardedRef"===p?f.ref=h[p]:"forwardedAs"===p?f.as=h[p]:c&&!Object(d.a)(p)||(f[p]=h[p]));return this.props.style&&this.attrs.style&&(f.style=m({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(i,o,u!==o?u:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(l,f)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,i=m({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,o=!1,a=void 0,s=void 0;for(s in S(n)&&(n=n(i),o=!0),n)a=n[s],o||!S(a)||(t=a)&&t.prototype&&t.prototype.isReactComponent||C(a)||(a=a(i)),r.attrs[s]=a,i[s]=a})),i):i},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,i=n.componentStyle;n.warnTooManyClasses;return i.isStatic&&!r.length?i.generateAndInjectStyles(k,this.styleSheet):i.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(s.Component);function Qe(e,t,n){var r=C(e),i=!Pe(e),o=t.displayName,a=void 0===o?function(e){return Pe(e)?"styled."+e:"Styled("+T(e)+")"}(e):o,s=t.componentId,l=void 0===s?function(e,t,n){var r="string"!==typeof t?"sc":Ee(t),i=(Ye[r]||0)+1;Ye[r]=i;var o=r+"-"+e.generateName(r+i);return n?n+"-"+o:o}(Ce,t.displayName,t.parentComponentId):s,c=t.ParentComponent,f=void 0===c?$e:c,d=t.attrs,p=void 0===d?_:d,g=t.displayName&&t.componentId?Ee(t.displayName)+"-"+t.componentId:t.componentId||l,y=r&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,v=new Ce(r?e.componentStyle.rules.concat(n):n,y,g),b=void 0,w=function(e,t){return u.a.createElement(f,m({},e,{forwardedComponent:b,forwardedRef:t}))};return w.displayName=a,(b=u.a.forwardRef(w)).displayName=a,b.attrs=y,b.componentStyle=v,b.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_,b.styledComponentId=g,b.target=r?e.target:e,b.withComponent=function(e){var r=t.componentId,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["componentId"]),o=r&&r+"-"+(Pe(e)?e:Ee(T(e)));return Qe(e,m({},i,{attrs:y,componentId:o,ParentComponent:f}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Object(h.a)(e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},i&&Ue(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var et=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(!Object(c.isValidElementType)(n))throw new P(1,String(n));var i=function(){return t(n,r,be.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,m({},r,i))},i.attrs=function(i){return e(t,n,m({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Qe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){et[e]=et(e)}));var tt=function(){function e(t,n){y(this,e),this.rules=t,this.componentId=n,this.isStatic=ke(t,_),fe.master.hasId(n)||fe.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=J(me(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function nt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=be.apply(void 0,[e].concat(n)),o="sc-global-"+we(JSON.stringify(i)),a=new tt(i,o),s=function(e){function t(n){y(this,t);var r=w(this,e.call(this,n)),i=r.constructor,o=i.globalStyle,a=i.styledComponentId;return O&&(window.scCGSHMRCache[a]=(window.scCGSHMRCache[a]||0)+1),r.state={globalStyle:o,styledComponentId:a},r}return b(t,e),t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return u.a.createElement(Ze,null,(function(t){e.styleSheet=t||fe.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(E,e.styleSheet),null):u.a.createElement(Je,null,(function(t){var r=e.constructor.defaultProps,i=m({},e.props);return"undefined"!==typeof t&&(i.theme=Ae(e.props,t,r)),n.renderStyles(i,e.styleSheet),null}))}))},t}(u.a.Component);return s.globalStyle=a,s.styledComponentId=o,s}O&&(window.scCGSHMRCache={});var rt=function(e){return e.replace(/\s|\\n/g,"")};function it(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=be.apply(void 0,[e].concat(n)),o=_e(we(rt(JSON.stringify(i))));return new de(o,J(i,o,"@keyframes"))}var ot=function(e){var t=u.a.forwardRef((function(t,n){return u.a.createElement(Je,null,(function(r){var i=e.defaultProps,o=Ae(t,r,i);return u.a.createElement(e,m({},t,{theme:o,ref:n}))}))}));return Ue(t,e),t.displayName="WithTheme("+T(e)+")",t},at={StyleSheet:fe};t.default=et}.call(this,n(130))},function(e,t,n){"use strict";e.exports=n(365)},function(e,t,n){e.exports=n(377)},function(e,t,n){"use strict";n.r(t),n.d(t,"isBytesLike",(function(){return a})),n.d(t,"isBytes",(function(){return s})),n.d(t,"arrayify",(function(){return u})),n.d(t,"concat",(function(){return l})),n.d(t,"stripZeros",(function(){return c})),n.d(t,"zeroPad",(function(){return f})),n.d(t,"isHexString",(function(){return d})),n.d(t,"hexlify",(function(){return h})),n.d(t,"hexDataLength",(function(){return p})),n.d(t,"hexDataSlice",(function(){return g})),n.d(t,"hexConcat",(function(){return y})),n.d(t,"hexValue",(function(){return v})),n.d(t,"hexStripZeros",(function(){return m})),n.d(t,"hexZeroPad",(function(){return b})),n.d(t,"splitSignature",(function(){return w})),n.d(t,"joinSignature",(function(){return x}));var r=new(n(8).Logger)("bytes/5.1.0");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return d(e)&&!(e.length%2)||s(e)}function s(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(null==e.length)return!1;for(var t=0;t<e.length;t++){var n=e[t];if("number"!==typeof n||n<0||n>=256||n%1)return!1}return!0}function u(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid arrayify value");for(var n=[];e;)n.unshift(255&e),e=parseInt(String(e/256));return 0===n.length&&n.push(0),o(new Uint8Array(n))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),d(e)){var a=e.substring(2);a.length%2&&("left"===t.hexPad?a="0x0"+a.substring(2):"right"===t.hexPad?a+="0":r.throwArgumentError("hex data is odd-length","value",e));for(var u=[],l=0;l<a.length;l+=2)u.push(parseInt(a.substring(l,l+2),16));return o(new Uint8Array(u))}return s(e)?o(new Uint8Array(e)):r.throwArgumentError("invalid arrayify value","value",e)}function l(e){var t=e.map((function(e){return u(e)})),n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n);return t.reduce((function(e,t){return r.set(t,e),e+t.length}),0),o(r)}function c(e){var t=u(e);if(0===t.length)return t;for(var n=0;n<t.length&&0===t[n];)n++;return n&&(t=t.slice(n)),t}function f(e,t){(e=u(e)).length>t&&r.throwArgumentError("value out of range","value",arguments[0]);var n=new Uint8Array(t);return n.set(e,t-e.length),o(n)}function d(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function h(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid hexlify value");for(var n="";e;)n="0123456789abcdef"[15&e]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(d(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(s(e)){for(var o="0x",a=0;a<e.length;a++){var u=e[a];o+="0123456789abcdef"[(240&u)>>4]+"0123456789abcdef"[15&u]}return o}return r.throwArgumentError("invalid hexlify value","value",e)}function p(e){if("string"!==typeof e)e=h(e);else if(!d(e)||e.length%2)return null;return(e.length-2)/2}function g(e,t,n){return"string"!==typeof e?e=h(e):(!d(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function y(e){var t="0x";return e.forEach((function(e){t+=h(e).substring(2)})),t}function v(e){var t=m(h(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function m(e){"string"!==typeof e&&(e=h(e)),d(e)||r.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function b(e,t){for("string"!==typeof e?e=h(e):d(e)||r.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function w(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(a(e)){var n=u(e);65!==n.length&&r.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=h(n.slice(0,32)),t.s=h(n.slice(32,64)),t.v=n[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=h(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var i=f(u(t._vs),32);t._vs=h(i);var o=i[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),i[0]&=127;var s=h(i);null==t.s?t.s=s:t.s!==s&&r.throwArgumentError("signature v mismatch _vs","signature",e)}null==t.recoveryParam?null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==1-t.v%2&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e),null!=t.r&&d(t.r)?t.r=b(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&d(t.s)?t.s=b(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);var l=u(t.s);l[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(l[0]|=128);var c=h(l);t._vs&&(d(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=b(t._vs,32)),null==t._vs?t._vs=c:t._vs!==c&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}function x(e){return h(l([(e=w(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(120);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.r(t),n.d(t,"defineReadOnly",(function(){return l})),n.d(t,"getStatic",(function(){return c})),n.d(t,"resolveProperties",(function(){return f})),n.d(t,"checkProperties",(function(){return d})),n.d(t,"shallowCopy",(function(){return h})),n.d(t,"deepCopy",(function(){return y})),n.d(t,"Description",(function(){return v}));var r=n(11),i=n(4),o=n.n(i),a=n(8),s=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},u=new a.Logger("properties/5.1.0");function l(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}function c(e,t){for(var n=0;n<32;n++){if(e[t])return e[t];if(!e.prototype||"object"!==typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function f(e){return s(this,void 0,void 0,o.a.mark((function t(){var n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Object.keys(e).map((function(t){var n=e[t];return Promise.resolve(n).then((function(e){return{key:t,value:e}}))})),t.next=3,Promise.all(n);case 3:return r=t.sent,t.abrupt("return",r.reduce((function(e,t){return e[t.key]=t.value,e}),{}));case 5:case"end":return t.stop()}}),t)})))}function d(e,t){e&&"object"===typeof e||u.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((function(n){t[n]||u.throwArgumentError("invalid object key - "+n,"transaction:"+n,e)}))}function h(e){var t={};for(var n in e)t[n]=e[n];return t}var p={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function g(e){if(function e(t){if(void 0===t||null===t||p[typeof t])return!0;if(Array.isArray(t)||"object"===typeof t){if(!Object.isFrozen(t))return!1;for(var n=Object.keys(t),r=0;r<n.length;r++)if(!e(t[n[r]]))return!1;return!0}return u.throwArgumentError("Cannot deepCopy ".concat(typeof t),"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map((function(e){return y(e)})));if("object"===typeof e){var t={};for(var n in e){var r=e[n];void 0!==r&&l(t,n,y(r))}return t}return u.throwArgumentError("Cannot deepCopy ".concat(typeof e),"object",e)}function y(e){return g(e)}var v=function e(t){for(var n in Object(r.a)(this,e),t)this[n]=y(t[n])}},function(e,t,n){"use strict";n.r(t),n.d(t,"LogLevel",(function(){return l})),n.d(t,"ErrorCode",(function(){return c})),n.d(t,"Logger",(function(){return d}));var r=n(11),i=n(13),o=!1,a=!1,s={debug:1,default:2,info:2,warning:3,error:4,off:5},u=null;var l,c,f=function(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(l||(l={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT"}(c||(c={}));var d=function(){function e(t){Object(r.a)(this,e),Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return Object(i.a)(e,[{key:"_log",value:function(e,t){var n=e.toLowerCase();null==s[n]&&this.throwArgumentError("invalid log level name","logLevel",e)}},{key:"debug",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this._log(e.levels.DEBUG,n)}},{key:"info",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this._log(e.levels.INFO,n)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this._log(e.levels.WARNING,n)}},{key:"makeError",value:function(t,n,r){if(a)return this.makeError("censored error",n,{});n||(n=e.errors.UNKNOWN_ERROR),r||(r={});var i=[];Object.keys(r).forEach((function(e){try{i.push(e+"="+JSON.stringify(r[e]))}catch(s){i.push(e+"="+JSON.stringify(r[e].toString()))}})),i.push("code=".concat(n)),i.push("version=".concat(this.version));var o=t;i.length&&(t+=" ("+i.join(", ")+")");var s=new Error(t);return s.reason=o,s.code=n,Object.keys(r).forEach((function(e){s[e]=r[e]})),s}},{key:"throwError",value:function(e,t,n){throw this.makeError(e,t,n)}},{key:"throwArgumentError",value:function(t,n,r){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:n,value:r})}},{key:"assert",value:function(e,t,n,r){e||this.throwError(t,n,r)}},{key:"assertArgument",value:function(e,t,n,r){e||this.throwArgumentError(t,n,r)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),f&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:f})}},{key:"checkSafeUint53",value:function(t,n){"number"===typeof t&&(null==n&&(n="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,n,r){r=r?": "+r:"",t<n&&this.throwError("missing argument"+r,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:n}),t>n&&this.throwError("too many arguments"+r,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}},{key:"checkNew",value:function(t,n){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}},{key:"checkAbstract",value:function(t,n){t===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}}],[{key:"globalLogger",value:function(){return u||(u=new e("logger/5.1.0")),u}},{key:"setCensorship",value:function(t,n){if(!t&&n&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}a=!!t,o=!!n}},{key:"setLogLevel",value:function(t){var n=s[t.toLowerCase()];null!=n?n:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();d.errors=c,d.levels=l},function(e,t,n){"use strict";n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return x}));n(100);var r=n(68),i=n.n(r),o=(n(62),n(0)),a=n.n(o),s=(n(295),n(49)),u=n.n(s),l=n(50),c=n.n(l);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h,p,g={bindI18n:"languageChanging languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},y=a.a.createContext();function v(){return p}function m(){return g}var b=function(){function e(){u()(this,e),this.usedNamespaces={}}return c()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function w(){return h}var x={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g=d({},g,{},e)}(e.options.react),function(e){h=e}(e)}};function _(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"===typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var k={};function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"===typeof t[0]&&k[t[0]]||("string"===typeof t[0]&&(k[t[0]]=new Date),_.apply(void 0,t))}function T(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function C(e,t){if(!t.languages||!t.languages.length)return S("i18n.languages were undefined or empty",t.languages),!0;var n=t.languages[0],r=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!!t.hasResourceBundle(n,e)||(!t.services.backendConnector.backend||!(!o(n,e)||r&&!o(i,e)))}var A=n(92),O=n.n(A);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(n,!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(o.useContext)(y),i=v()&&r||{},a=i.i18n,s=i.defaultNS,u=n||a||w();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new b),!u){S("You will need pass in an i18next instance by using initReactI18next");var l=[function(e){return e},{},!1];return l.t=function(e){return e},l.i18n={},l.ready=!1,l}var c=E({},m(),{},u.options.react),f=t.useSuspense,d=void 0===f?c.useSuspense:f,h=e||s||u.options&&u.options.defaultNS;h="string"===typeof h?[h]:h||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(h);var p=(u.isInitialized||u.initializedStoreOnce)&&h.every((function(e){return C(e,u)}));function g(){return{t:u.getFixedT(null,"fallback"===c.nsMode?h:h[0])}}var x=Object(o.useState)(g()),_=O()(x,2),k=_[0],A=_[1];Object(o.useEffect)((function(){var e=!0,t=c.bindI18n,n=c.bindI18nStore;function r(){e&&A(g())}return p||d||T(u,h,(function(){e&&A(g())})),t&&u&&u.on(t,r),n&&u&&u.store.on(n,r),function(){e=!1,t&&u&&t.split(" ").forEach((function(e){return u.off(e,r)})),n&&u&&n.split(" ").forEach((function(e){return u.store.off(e,r)}))}}),[h.join()]);var M=[k.t,u,p];if(M.t=k.t,M.i18n=u,M.ready=p,p)return M;if(!p&&!d)return M;throw new Promise((function(e){T(u,h,(function(){A(g()),e()}))}))}n(296)},function(e,t,n){var r;!function(i){"use strict";var o,a="[big.js] ",s=a+"Invalid ",u=s+"decimal places",l={},c=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function f(e,t,n,r){var i=e.c;if(void 0===n&&(n=e.constructor.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error("[big.js] Invalid rounding mode");if(t<1)r=3===n&&(r||!!i[0])||0===t&&(1===n&&i[0]>=5||2===n&&(i[0]>5||5===i[0]&&(r||void 0!==i[1]))),i.length=1,r?(e.e=e.e-t+1,i[0]=1):i[0]=e.e=0;else if(t<i.length){if(r=1===n&&i[t]>=5||2===n&&(i[t]>5||5===i[t]&&(r||void 0!==i[t+1]||1&i[t-1]))||3===n&&(r||!!i[0]),i.length=t--,r)for(;++i[t]>9;)i[t]=0,t--||(++e.e,i.unshift(1));for(t=i.length;!i[--t];)i.pop()}return e}function d(e,t,n){var r=e.e,i=e.c.join(""),o=i.length;if(t)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)i="0"+i;i="0."+i}else if(r>0)if(++r>o)for(r-=o;r--;)i+="0";else r<o&&(i=i.slice(0,r)+"."+i.slice(r));else o>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&n?"-"+i:i}l.abs=function(){var e=new this.constructor(this);return e.s=1,e},l.cmp=function(e){var t,n=this,r=n.c,i=(e=new n.constructor(e)).c,o=n.s,a=e.s,s=n.e,u=e.e;if(!r[0]||!i[0])return r[0]?o:i[0]?-a:0;if(o!=a)return o;if(t=o<0,s!=u)return s>u^t?1:-1;for(a=(s=r.length)<(u=i.length)?s:u,o=-1;++o<a;)if(r[o]!=i[o])return r[o]>i[o]^t?1:-1;return s==u?0:s>u^t?1:-1},l.div=function(e){var t=this,n=t.constructor,r=t.c,i=(e=new n(e)).c,o=t.s==e.s?1:-1,a=n.DP;if(a!==~~a||a<0||a>1e6)throw Error(u);if(!i[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=o,e.c=[e.e=0],e;var s,l,c,d,h,p=i.slice(),g=s=i.length,y=r.length,v=r.slice(0,s),m=v.length,b=e,w=b.c=[],x=0,_=a+(b.e=t.e-e.e)+1;for(b.s=o,o=_<0?0:_,p.unshift(0);m++<s;)v.push(0);do{for(c=0;c<10;c++){if(s!=(m=v.length))d=s>m?1:-1;else for(h=-1,d=0;++h<s;)if(i[h]!=v[h]){d=i[h]>v[h]?1:-1;break}if(!(d<0))break;for(l=m==s?i:p;m;){if(v[--m]<l[m]){for(h=m;h&&!v[--h];)v[h]=9;--v[h],v[m]+=10}v[m]-=l[m]}for(;!v[0];)v.shift()}w[x++]=d?c:++c,v[0]&&d?v[m]=r[g]||0:v=[r[g]]}while((g++<y||void 0!==v[0])&&o--);return w[0]||1==x||(w.shift(),b.e--,_--),x>_&&f(b,_,n.RM,void 0!==v[0]),b},l.eq=function(e){return 0===this.cmp(e)},l.gt=function(e){return this.cmp(e)>0},l.gte=function(e){return this.cmp(e)>-1},l.lt=function(e){return this.cmp(e)<0},l.lte=function(e){return this.cmp(e)<1},l.minus=l.sub=function(e){var t,n,r,i,o=this,a=o.constructor,s=o.s,u=(e=new a(e)).s;if(s!=u)return e.s=-u,o.plus(e);var l=o.c.slice(),c=o.e,f=e.c,d=e.e;if(!l[0]||!f[0])return f[0]?e.s=-u:l[0]?e=new a(o):e.s=1,e;if(s=c-d){for((i=s<0)?(s=-s,r=l):(d=c,r=f),r.reverse(),u=s;u--;)r.push(0);r.reverse()}else for(n=((i=l.length<f.length)?l:f).length,s=u=0;u<n;u++)if(l[u]!=f[u]){i=l[u]<f[u];break}if(i&&(r=l,l=f,f=r,e.s=-e.s),(u=(n=f.length)-(t=l.length))>0)for(;u--;)l[t++]=0;for(u=t;n>s;){if(l[--n]<f[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=f[n]}for(;0===l[--u];)l.pop();for(;0===l[0];)l.shift(),--d;return l[0]||(e.s=1,l=[d=0]),e.c=l,e.e=d,e},l.mod=function(e){var t,n=this,r=n.constructor,i=n.s,o=(e=new r(e)).s;if(!e.c[0])throw Error("[big.js] Division by zero");return n.s=e.s=1,t=1==e.cmp(n),n.s=i,e.s=o,t?new r(n):(i=r.DP,o=r.RM,r.DP=r.RM=0,n=n.div(e),r.DP=i,r.RM=o,this.minus(n.times(e)))},l.plus=l.add=function(e){var t,n,r,i=this,o=i.constructor;if(e=new o(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var a=i.e,s=i.c,u=e.e,l=e.c;if(!s[0]||!l[0])return l[0]||(s[0]?e=new o(i):e.s=i.s),e;if(s=s.slice(),t=a-u){for(t>0?(u=a,r=l):(t=-t,r=s),r.reverse();t--;)r.push(0);r.reverse()}for(s.length-l.length<0&&(r=l,l=s,s=r),t=l.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+l[t]+n)/10|0;for(n&&(s.unshift(n),++u),t=s.length;0===s[--t];)s.pop();return e.c=s,e.e=u,e},l.pow=function(e){var t=this,n=new t.constructor("1"),r=n,i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(s+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?n.div(r):r},l.prec=function(e,t){if(e!==~~e||e<1||e>1e6)throw Error(s+"precision");return f(new this.constructor(this),e,t)},l.round=function(e,t){if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(u);return f(new this.constructor(this),e+this.e+1,t)},l.sqrt=function(){var e,t,n,r=this,i=r.constructor,o=r.s,s=r.e,u=new i("0.5");if(!r.c[0])return new i(r);if(o<0)throw Error(a+"No square root");0===(o=Math.sqrt(r+""))||o===1/0?((t=r.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new i(((o=Math.sqrt(t))==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+s)):e=new i(o+""),s=e.e+(i.DP+=4);do{n=e,e=u.times(n.plus(r.div(n)))}while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return f(e,(i.DP-=4)+e.e+1,i.RM)},l.times=l.mul=function(e){var t,n=this,r=n.constructor,i=n.c,o=(e=new r(e)).c,a=i.length,s=o.length,u=n.e,l=e.e;if(e.s=n.s==e.s?1:-1,!i[0]||!o[0])return e.c=[e.e=0],e;for(e.e=u+l,a<s&&(t=i,i=o,o=t,l=a,a=s,s=l),t=new Array(l=a+s);l--;)t[l]=0;for(u=s;u--;){for(s=0,l=a+u;l>u;)s=t[l]+o[u]*i[l-u-1]+s,t[l--]=s%10,s=s/10|0;t[l]=s}for(s?++e.e:t.shift(),u=t.length;!t[--u];)t.pop();return e.c=t,e},l.toExponential=function(e,t){var n=this,r=n.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(u);for(n=f(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return d(n,!0,!!r)},l.toFixed=function(e,t){var n=this,r=n.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(u);for(e=e+(n=f(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return d(n,!1,!!r)},l.toJSON=l.toString=function(){var e=this,t=e.constructor;return d(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},l.toNumber=function(){var e=Number(d(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(a+"Imprecise conversion");return e},l.toPrecision=function(e,t){var n=this,r=n.constructor,i=n.c[0];if(void 0!==e){if(e!==~~e||e<1||e>1e6)throw Error(s+"precision");for(n=f(new r(n),e,t);n.c.length<e;)n.c.push(0)}return d(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!i)},l.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(a+"valueOf disallowed");return d(e,e.e<=t.NE||e.e>=t.PE,!0)},(o=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice();else{if("string"!==typeof n){if(!0===t.strict)throw TypeError(s+"number");n=0===n&&1/n<0?"-0":String(n)}!function(e,t){var n,r,i;if(!c.test(t))throw Error(s+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".",""));(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length);for(i=t.length,r=0;r<i&&"0"==t.charAt(r);)++r;if(r==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=n-r-1,e.c=[],n=0;r<=i;)e.c[n++]=+t.charAt(r++)}}(r,n)}r.constructor=t}return t.prototype=l,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=!1,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}()).default=o.Big=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(0),i=n.n(r),o=n(94);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o.Flex}));var s=Object(r.forwardRef)((function(e,t){return i.a.createElement(o.Box,a({ref:t,tx:"text"},e))}));Object(r.forwardRef)((function(e,t){return i.a.createElement(o.Box,a({ref:t,as:"h2",tx:"text",variant:"heading"},e,{__css:{fontSize:4,fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"}}))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(o.Box,a({ref:t,as:"a",variant:"link"},e))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(o.Box,a({ref:t,as:"button",tx:"buttons",variant:"primary"},e,{__css:{appearance:"none",display:"inline-block",textAlign:"center",lineHeight:"inherit",textDecoration:"none",fontSize:"inherit",px:3,py:2,color:"white",bg:"primary",border:0,borderRadius:4}}))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(o.Box,a({ref:t,as:"img"},e,{__css:{maxWidth:"100%",height:"auto"}}))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(o.Box,a({ref:t,variant:"card"},e))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(121);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(42),i=n(159);function o(e){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=n(24);function s(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?Object(a.a)(e):t}function u(e){return function(){var t,n=Object(r.a)(e);if(Object(i.a)()){var o=Object(r.a)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return s(this,t)}}},function(e,t,n){e.exports=n(362)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(12);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return F})),n.d(t,"b",(function(){return V})),n.d(t,"c",(function(){return U}));var r=n(20),i=n(78),o=n(47);function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=n(123);function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,n){return(l=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Object(s.a)(i,n.prototype),i}).apply(null,arguments)}function c(e){var t="function"===typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object(s.a)(r,e)})(e)}var f=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,Object(i.a)(n)}return Object(o.a)(t,e),t}(c(Error));function d(e){return Math.round(255*e)}function h(e,t,n){return d(e)+","+d(t)+","+d(n)}function p(e,t,n,r){if(void 0===r&&(r=h),0===t)return r(n,n,n);var i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(i%2-1)),s=0,u=0,l=0;i>=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,l=a):i>=3&&i<4?(u=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);var c=n-o/2;return r(s+c,u+c,l+c)}var g={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var y=/^#[a-fA-F0-9]{6}$/,v=/^#[a-fA-F0-9]{8}$/,m=/^#[a-fA-F0-9]{3}$/,b=/^#[a-fA-F0-9]{4}$/,w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,x=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,k=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function S(e){if("string"!==typeof e)throw new f(3);var t=function(e){if("string"!==typeof e)return e;var t=e.toLowerCase();return g[t]?"#"+g[t]:e}(e);if(t.match(y))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(v)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(m))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=w.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=x.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var a=_.exec(t);if(a){var s="rgb("+p(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=w.exec(s);if(!u)throw new f(4,t,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=k.exec(t);if(l){var c="rgb("+p(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",d=w.exec(c);if(!d)throw new f(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+l[4])}}throw new f(5)}function T(e){return function(e){var t,n=e.red/255,r=e.green/255,i=e.blue/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;if(o===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u=o-a,l=s>.5?u/(2-o-a):u/(o+a);switch(o){case n:t=(r-i)/u+(r<i?6:0);break;case r:t=(i-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:s,alpha:e.alpha}:{hue:t,saturation:l,lightness:s}}(S(e))}var C=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function A(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function O(e){return A(Math.round(255*e))}function M(e,t,n){return C("#"+O(e)+O(t)+O(n))}function E(e,t,n){return p(e,t,n,M)}function P(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return E(e,t,n);if("object"===typeof e&&void 0===t&&void 0===n)return E(e.hue,e.saturation,e.lightness);throw new f(1)}function I(e,t,n,r){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?E(e,t,n):"rgba("+p(e,t,n)+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?E(e.hue,e.saturation,e.lightness):"rgba("+p(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new f(2)}function D(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return C("#"+A(e)+A(t)+A(n));if("object"===typeof e&&void 0===t&&void 0===n)return C("#"+A(e.red)+A(e.green)+A(e.blue));throw new f(6)}function L(e,t,n,r){if("string"===typeof e&&"number"===typeof t){var i=S(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?D(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?D(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new f(7)}function R(e){if("object"!==typeof e)throw new f(8);if(function(e){return"number"===typeof e.red&&"number"===typeof e.green&&"number"===typeof e.blue&&"number"===typeof e.alpha}(e))return L(e);if(function(e){return"number"===typeof e.red&&"number"===typeof e.green&&"number"===typeof e.blue&&("number"!==typeof e.alpha||"undefined"===typeof e.alpha)}(e))return D(e);if(function(e){return"number"===typeof e.hue&&"number"===typeof e.saturation&&"number"===typeof e.lightness&&"number"===typeof e.alpha}(e))return I(e);if(function(e){return"number"===typeof e.hue&&"number"===typeof e.saturation&&"number"===typeof e.lightness&&("number"!==typeof e.alpha||"undefined"===typeof e.alpha)}(e))return P(e);throw new f(8)}function N(e){return function e(t,n,r){return function(){var i=r.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):e(t,n,i)}}(e,e.length,[])}function j(e,t,n){return Math.max(e,Math.min(t,n))}function B(e,t){if("transparent"===t)return t;var n=T(t);return R(Object(r.a)({},n,{lightness:j(0,1,n.lightness-parseFloat(e))}))}var F=N(B);function z(e,t){if("transparent"===t)return t;var n=T(t);return R(Object(r.a)({},n,{lightness:j(0,1,n.lightness+parseFloat(e))}))}var V=N(z);function H(e,t){if("transparent"===t)return t;var n=S(t),i="number"===typeof n.alpha?n.alpha:1;return L(Object(r.a)({},n,{alpha:j(0,1,+(100*i-100*parseFloat(e)).toFixed(2)/100)}))}var U=N(H)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return _})),n.d(t,"b",(function(){return h}));var r=n(0),i=n.n(r),o=(n(18),i.a.createContext(null));var a=function(e){e()},s={notify:function(){}};function u(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var l=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}(),c="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var f=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)((function(){var e=new l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=s.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,u]);var f=n||o;return i.a.createElement(f.Provider,{value:s},a)};n(20),n(35),n(141),n(110);function d(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t){if(d(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!d(e[n[i]],t[n[i]]))return!1;return!0}function p(){return Object(r.useContext)(o)}function g(e){void 0===e&&(e=o);var t=e===o?p:function(){return Object(r.useContext)(e)};return function(){return t().store}}var y=g();function v(e){void 0===e&&(e=o);var t=e===o?y:g(e);return function(){return t().dispatch}}var m=v(),b=function(e,t){return e===t};function w(e){void 0===e&&(e=o);var t=e===o?p:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=b);var i=t(),o=function(e,t,n,i){var o,a=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return new l(n,i)}),[n,i]),u=Object(r.useRef)(),f=Object(r.useRef)(),d=Object(r.useRef)(),h=Object(r.useRef)(),p=n.getState();try{if(e!==f.current||p!==d.current||u.current){var g=e(p);o=void 0!==h.current&&t(g,h.current)?h.current:g}else o=h.current}catch(y){throw u.current&&(y.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),y}return c((function(){f.current=e,d.current=p,h.current=o,u.current=void 0})),c((function(){function e(){try{var e=n.getState(),r=f.current(e);if(t(r,h.current))return;h.current=r,d.current=e}catch(y){u.current=y}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(o),o}}var x,_=w(),k=n(117);x=k.unstable_batchedUpdates,a=x},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[W]}function o(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Function.toString.call(n)===q}(e)||Array.isArray(e)||!!e[X]||!!e.constructor[X]||d(e)||h(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:Z)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[W];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:h(e)?3:0}function u(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===s(e)?e.get(t):e[t]}function c(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return H&&e instanceof Map}function h(e){return U&&e instanceof Set}function p(e){return e.o||e.t}function g(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[W];for(var n=Z(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function y(e,t){return void 0===t&&(t=!1),m(e)||i(e)||!o(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,(function(e,t){return y(t,!0)}),!0)),e}function v(){r(2)}function m(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=Y[e];return t||r(18,e),t}function w(e,t){Y[e]||(Y[e]=t)}function x(){return z}function _(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function k(e){S(e),e.p.forEach(C),e.p=null}function S(e){e===z&&(z=e.l)}function T(e){return z={p:[],l:z,h:e,m:!0,_:0}}function C(e){var t=e[W];0===t.i||1===t.i?t.j():t.g=!0}function A(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||b("ES5").S(t,e,i),i?(n[W].P&&(k(t),r(4)),o(e)&&(e=O(t,e),t.l||E(t,e)),t.u&&b("Patches").M(n[W],e,t.u,t.s)):e=O(t,n,[]),k(t),t.u&&t.v(t.u,t.s),e!==J?e:void 0}function O(e,t,n){if(m(t))return t;var r=t[W];if(!r)return a(t,(function(i,o){return M(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return E(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=g(r.k):r.o;a(3===r.i?new Set(i):i,(function(t,o){return M(e,r,i,t,o,n)})),E(e,i,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function M(e,t,n,r,a,s){if(i(a)){var l=O(e,a,s&&t&&3!==t.i&&!u(t.D,r)?s.concat(r):void 0);if(c(n,r,l),!i(l))return;e.m=!1}if(o(a)&&!m(a)){if(!e.h.F&&e._<1)return;O(e,a),t&&t.A.l||E(e,a)}}function E(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&y(t,n)}function P(e,t){var n=e[W];return(n?p(n):e)[t]}function I(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function D(e){e.P||(e.P=!0,e.l&&D(e.l))}function L(e){e.o||(e.o=g(e.t))}function R(e,t,n){var r=d(t)?b("MapSet").N(t,n):h(t)?b("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=$;n&&(i=[r],o=Q);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(t,n):b("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function N(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[W],i=s(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=j(t,i),r.I=!1}else n=j(t,i);return a(n,(function(t,i){r&&l(r.t,t)===i||c(n,t,e(i))})),3===i?new Set(n):n}(e)}function j(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return g(e)}function B(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[W];return $.get(t,e)},set:function(t){var n=this[W];$.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][W];if(!i.P)switch(i.i){case 5:r(i)&&D(i);break;case 4:n(i)&&D(i)}}}function n(e){for(var t=e.t,n=e.k,r=Z(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==W){var a=t[o];if(void 0===a&&!u(t,o))return!0;var s=n[o],l=s&&s[W];if(l?l.t!==a:!f(s,a))return!0}}var c=!!t[W];return r.length!==Z(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var o={};w("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=K(n);delete o[W];for(var a=Z(o),s=0;s<a.length;s++){var u=a[s];o[u]=e(u,t||!!o[u].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:x(),P:!1,I:!1,D:{},l:n,t:t,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,W,{value:o,writable:!0}),i},S:function(e,n,o){o?i(n)&&n[W].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[W];if(n){var i=n.t,o=n.k,s=n.D,l=n.i;if(4===l)a(o,(function(t){t!==W&&(void 0!==i[t]||u(i,t)?s[t]||e(o[t]):(s[t]=!0,D(n)))})),a(i,(function(e){void 0!==o[e]||u(o,e)||(s[e]=!1,D(n))}));else if(5===l){if(r(n)&&(D(n),s.length=!0),o.length<i.length)for(var c=o.length;c<i.length;c++)s[c]=!1;else for(var f=i.length;f<o.length;f++)s[f]=!0;for(var d=Math.min(o.length,i.length),h=0;h<d;h++)void 0===s[h]&&e(o[h])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,"a",(function(){return Pe})),n.d(t,"b",(function(){return Ie})),n.d(t,"c",(function(){return Le})),n.d(t,"d",(function(){return Ee})),n.d(t,"e",(function(){return Re}));var F,z,V="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),H="undefined"!=typeof Map,U="undefined"!=typeof Set,G="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,J=V?Symbol.for("immer-nothing"):((F={})["immer-nothing"]=!0,F),X=V?Symbol.for("immer-draftable"):"__$immer_draftable",W=V?Symbol.for("immer-state"):"__$immer_state",q=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Z="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return Z(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Y={},$={get:function(e,t){if(t===W)return e;var n=p(e);if(!u(n,t))return function(e,t,n){var r,i=I(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===P(e.t,t)?(L(e),e.o[t]=R(e.A.h,r,e)):r},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,n){var r=I(p(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=P(p(e),t),o=null==i?void 0:i[W];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(f(n,i)&&(void 0!==n||u(e.t,t)))return!0;L(e),D(e)}return e.o[t]===n&&"number"!=typeof n||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==P(e.t,t)||t in e.t?(e.D[t]=!1,L(e),D(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Q={};a($,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return $.deleteProperty.call(this,e[0],t)},Q.set=function(e,t,n){return $.set.call(this,e[0],t,n,e[0])};var ee=new(function(){function e(e){var t=this;this.O=G,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var u;if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),o(e)){var l=T(t),c=R(t,e,void 0),f=!0;try{u=n(c),f=!1}finally{f?k(l):S(l)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then((function(e){return _(l,i),A(e,l)}),(function(e){throw k(l),e})):(_(l,i),A(u,l))}if(!e||"object"!=typeof e){if((u=n(e))===J)return;return void 0===u&&(u=e),t.F&&y(u,!0),u}r(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){o(e)||r(8),i(e)&&(e=N(e));var t=T(this),n=R(this,e,void 0);return n[W].C=!0,S(t),n},t.finishDraft=function(e,t){var n=(e&&e[W]).A;return _(n,t),A(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!G&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=b("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),te=ee.produce,ne=(ee.produceWithPatches.bind(ee),ee.setAutoFreeze.bind(ee),ee.setUseProxies.bind(ee),ee.applyPatches.bind(ee),ee.createDraft.bind(ee),ee.finishDraft.bind(ee),te),re=n(180);function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){Object(re.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var se="function"===typeof Symbol&&Symbol.observable||"@@observable",ue=function(){return Math.random().toString(36).substring(7).split("").join(".")},le={INIT:"@@redux/INIT"+ue(),REPLACE:"@@redux/REPLACE"+ue(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ue()}};function ce(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function fe(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(ae(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(ae(1));return n(fe)(e,t)}if("function"!==typeof e)throw new Error(ae(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(ae(3));return o}function f(e){if("function"!==typeof e)throw new Error(ae(4));if(u)throw new Error(ae(5));var t=!0;return l(),s.push(e),function(){if(t){if(u)throw new Error(ae(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!ce(e))throw new Error(ae(7));if("undefined"===typeof e.type)throw new Error(ae(8));if(u)throw new Error(ae(9));try{u=!0,o=i(o,e)}finally{u=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!==typeof e)throw new Error(ae(10));i=e,d({type:le.REPLACE})}function p(){var e,t=f;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(ae(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[se]=function(){return this},e}return d({type:le.INIT}),(r={dispatch:d,subscribe:f,getState:c,replaceReducer:h})[se]=p,r}function de(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:le.INIT}))throw new Error(ae(12));if("undefined"===typeof n(void 0,{type:le.PROBE_UNKNOWN_ACTION()}))throw new Error(ae(13))}))}(n)}catch(s){o=s}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var u=a[s],l=n[u],c=e[u],f=l(c,t);if("undefined"===typeof f){t&&t.type;throw new Error(ae(14))}i[u]=f,r=r||f!==c}return(r=r||a.length!==Object.keys(e).length)?i:e}}function he(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function pe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(ae(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=he.apply(void 0,o)(n.dispatch),oe(oe({},n),{},{dispatch:r})}}}function ge(e,t){return e===t}function ye(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function ve(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}!function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]}((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge,n=null,r=null;return function(){return ye(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}));function me(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}var be=me();be.withExtraArgument=me;var we=be;function xe(){return(xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(){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(e){return!1}}function Te(e,t,n){return(Te=Se()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ke(i,n.prototype),i}).apply(null,arguments)}function Ce(e){var t="function"===typeof Map?new Map:void 0;return(Ce=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Te(e,arguments,_e(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ke(n,e)})(e)}var Ae="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?he:he.apply(null,arguments)};function Oe(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var Me=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.concat=function(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return Te(r,(t=e.prototype.concat).call.apply(t,[this].concat(i)))},i.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?Te(r,t[0].concat(this)):Te(r,t.concat(this))},r}(Ce(Array));function Ee(e){void 0===e&&(e={});var t=e,n=t.thunk,r=void 0===n||n,i=(t.immutableCheck,t.serializableCheck,new Me);return r&&(!function(e){return"boolean"===typeof e}(r)?i.push(we.withExtraArgument(r.extraArgument)):i.push(we)),i}function Pe(e){var t,n=function(e){return Ee(e)},r=e||{},i=r.reducer,o=void 0===i?void 0:i,a=r.middleware,s=void 0===a?n():a,u=r.devTools,l=void 0===u||u,c=r.preloadedState,f=void 0===c?void 0:c,d=r.enhancers,h=void 0===d?void 0:d;if("function"===typeof o)t=o;else{if(!Oe(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=de(o)}var p=pe.apply(void 0,"function"===typeof s?s(n):s),g=he;l&&(g=Ae(xe({trace:!1},"object"===typeof l&&l)));var y=[p];return Array.isArray(h)?y=[p].concat(h):"function"===typeof h&&(y=h(y)),fe(t,f,g.apply(void 0,y))}function Ie(e,t){function n(){if(t){var n=t.apply(void 0,arguments);if(!n)throw new Error("prepareAction did not return an object");return xe({type:e,payload:n.payload},"meta"in n&&{meta:n.meta},{},"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function De(e){var t,n={},r=[],i={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function Le(e,t,n,r){void 0===n&&(n=[]);var a="function"===typeof t?De(t):[t,n,r],s=a[0],u=a[1],l=a[2],c=ne(e,(function(){}));return function(e,t){void 0===e&&(e=c);var n=[s[t.type]].concat(u.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[l]),n.reduce((function(e,n){if(n){if(i(e)){var r=n(e,t);return"undefined"===typeof r?e:r}if(o(e))return ne(e,(function(e){return n(e,t)}));var a=n(e,t);if("undefined"===typeof a){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return a}return e}),e)}}"undefined"!==typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!==typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var Re=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t};B()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return x}));var r=n(11),i=n(13),o=n(27),a=n.n(o),s=n(5),u=n(8),l=n(158),c=a.a.BN,f=new u.Logger(l.a),d={};function h(e){return null!=e&&(g.isBigNumber(e)||"number"===typeof e&&e%1===0||"string"===typeof e&&!!e.match(/^-?[0-9]+$/)||Object(s.isHexString)(e)||"bigint"===typeof e||Object(s.isBytes)(e))}var p=!1,g=function(){function e(t,n){Object(r.a)(this,e),f.checkNew(this instanceof e?this.constructor:void 0,e),t!==d&&f.throwError("cannot call constructor directly; use BigNumber.from",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}return Object(i.a)(e,[{key:"fromTwos",value:function(e){return v(m(this).fromTwos(e))}},{key:"toTwos",value:function(e){return v(m(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return v(m(this).add(m(e)))}},{key:"sub",value:function(e){return v(m(this).sub(m(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&b("division by zero","div"),v(m(this).div(m(t)))}},{key:"mul",value:function(e){return v(m(this).mul(m(e)))}},{key:"mod",value:function(e){var t=m(e);return t.isNeg()&&b("cannot modulo negative values","mod"),v(m(this).umod(t))}},{key:"pow",value:function(e){var t=m(e);return t.isNeg()&&b("cannot raise to negative values","pow"),v(m(this).pow(t))}},{key:"and",value:function(e){var t=m(e);return(this.isNegative()||t.isNeg())&&b("cannot 'and' negative values","and"),v(m(this).and(t))}},{key:"or",value:function(e){var t=m(e);return(this.isNegative()||t.isNeg())&&b("cannot 'or' negative values","or"),v(m(this).or(t))}},{key:"xor",value:function(e){var t=m(e);return(this.isNegative()||t.isNeg())&&b("cannot 'xor' negative values","xor"),v(m(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&b("cannot mask negative values","mask"),v(m(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&b("cannot shift negative values","shl"),v(m(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&b("cannot shift negative values","shr"),v(m(this).shrn(e))}},{key:"eq",value:function(e){return m(this).eq(m(e))}},{key:"lt",value:function(e){return m(this).lt(m(e))}},{key:"lte",value:function(e){return m(this).lte(m(e))}},{key:"gt",value:function(e){return m(this).gt(m(e))}},{key:"gte",value:function(e){return m(this).gte(m(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return m(this).isZero()}},{key:"toNumber",value:function(){try{return m(this).toNumber()}catch(e){b("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(e){}return f.throwError("this platform does not support BigInt",u.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?p||(p=!0,f.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?f.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",u.Logger.errors.UNEXPECTED_ARGUMENT,{}):f.throwError("BigNumber.toString does not accept parameters",u.Logger.errors.UNEXPECTED_ARGUMENT,{})),m(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"===typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(d,y(t)):t.match(/^-?[0-9]+$/)?new e(d,y(new c(t))):f.throwArgumentError("invalid BigNumber string","value",t);if("number"===typeof t)return t%1&&b("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&b("overflow","BigNumber.from",t),e.from(String(t));var n=t;if("bigint"===typeof n)return e.from(n.toString());if(Object(s.isBytes)(n))return e.from(Object(s.hexlify)(n));if(n)if(n.toHexString){var r=n.toHexString();if("string"===typeof r)return e.from(r)}else{var i=n._hex;if(null==i&&"BigNumber"===n.type&&(i=n.hex),"string"===typeof i&&(Object(s.isHexString)(i)||"-"===i[0]&&Object(s.isHexString)(i.substring(1))))return e.from(i)}return f.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function y(e){if("string"!==typeof e)return y(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&f.throwArgumentError("invalid hex","value",e),"0x00"===(e=y(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function v(e){return g.from(y(e))}function m(e){var t=g.from(e).toHexString();return"-"===t[0]?new c("-"+t.substring(3),16):new c(t.substring(2),16)}function b(e,t,n){var r={fault:e,operation:t};return null!=n&&(r.value=n),f.throwError(e,u.Logger.errors.NUMERIC_FAULT,r)}function w(e){return new c(e,36).toString(16)}function x(e){return new c(e,16).toString(36)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(142);var i=n(120);function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(367).Buffer}catch(T){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=u(e,t,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2===0?t+1:t;r<e.length;r+=2)i=u(e,t,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,c=n;c<s;c+=r)u=l(e,c,c+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=l(e,c,e.length,t),c=0;c<a;c++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],h=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?g+n:c[l-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,l=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,o,a=e.words,s=t.words,u=n.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,g=h>>>13,y=0|a[2],v=8191&y,m=y>>>13,b=0|a[3],w=8191&b,x=b>>>13,_=0|a[4],k=8191&_,S=_>>>13,T=0|a[5],C=8191&T,A=T>>>13,O=0|a[6],M=8191&O,E=O>>>13,P=0|a[7],I=8191&P,D=P>>>13,L=0|a[8],R=8191&L,N=L>>>13,j=0|a[9],B=8191&j,F=j>>>13,z=0|s[0],V=8191&z,H=z>>>13,U=0|s[1],G=8191&U,J=U>>>13,X=0|s[2],W=8191&X,q=X>>>13,Z=0|s[3],K=8191&Z,Y=Z>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,de=ce>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(l+(r=Math.imul(f,V))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(d,V)|0))<<13)|0;l=((o=Math.imul(d,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,V),i=(i=Math.imul(p,H))+Math.imul(g,V)|0,o=Math.imul(g,H);var ve=(l+(r=r+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,G)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,V),i=(i=Math.imul(v,H))+Math.imul(m,V)|0,o=Math.imul(m,H),r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,J)|0;var me=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,q)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(w,V),i=(i=Math.imul(w,H))+Math.imul(x,V)|0,o=Math.imul(x,H),r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,J)|0,r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,q)|0;var be=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(k,V),i=(i=Math.imul(k,H))+Math.imul(S,V)|0,o=Math.imul(S,H),r=r+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,J)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0;var we=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(C,V),i=(i=Math.imul(C,H))+Math.imul(A,V)|0,o=Math.imul(A,H),r=r+Math.imul(k,G)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,J)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,q)|0,r=r+Math.imul(v,K)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0;var xe=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,V),i=(i=Math.imul(M,H))+Math.imul(E,V)|0,o=Math.imul(E,H),r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0;var _e=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(I,V),i=(i=Math.imul(I,H))+Math.imul(D,V)|0,o=Math.imul(D,H),r=r+Math.imul(M,G)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,J)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var ke=(l+(r=r+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,V),i=(i=Math.imul(R,H))+Math.imul(N,V)|0,o=Math.imul(N,H),r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,q)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(x,ne)|0,o=o+Math.imul(x,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(g,ue)|0,o=o+Math.imul(g,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,V),i=(i=Math.imul(B,H))+Math.imul(F,V)|0,o=Math.imul(F,H),r=r+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,Y)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Te=(l+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ge)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,J))+Math.imul(F,G)|0,o=Math.imul(F,J),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(x,ue)|0,o=o+Math.imul(x,le)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Ce=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;l=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,W),i=(i=Math.imul(B,q))+Math.imul(F,W)|0,o=Math.imul(F,q),r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,r=r+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,le)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,de)|0;var Ae=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,ge)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,ge)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(F,K)|0,o=Math.imul(F,Y),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,r=r+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Oe=(l+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(x,pe)|0))<<13)|0;l=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,de)|0;var Me=(l+(r=r+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,ge)|0)+Math.imul(S,pe)|0))<<13)|0;l=((o=o+Math.imul(S,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,ne),i=(i=Math.imul(B,re))+Math.imul(F,ne)|0,o=Math.imul(F,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,de)|0;var Ee=(l+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ge)|0)+Math.imul(A,pe)|0))<<13)|0;l=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,de)|0;var Pe=(l+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,ge)|0)+Math.imul(E,pe)|0))<<13)|0;l=((o=o+Math.imul(E,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,ue),i=(i=Math.imul(B,le))+Math.imul(F,ue)|0,o=Math.imul(F,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ie=(l+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ge)|0)+Math.imul(D,pe)|0))<<13)|0;l=((o=o+Math.imul(D,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,fe),i=(i=Math.imul(B,de))+Math.imul(F,fe)|0,o=Math.imul(F,de);var De=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,ge)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Le=(l+(r=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,ge))+Math.imul(F,pe)|0))<<13)|0;return l=((o=Math.imul(F,ge))+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,u[0]=ye,u[1]=ve,u[2]=me,u[3]=be,u[4]=we,u[5]=xe,u[6]=_e,u[7]=ke,u[8]=Se,u[9]=Te,u[10]=Ce,u[11]=Ae,u[12]=Oe,u[13]=Me,u[14]=Ee,u[15]=Pe,u[16]=Ie,u[17]=De,u[18]=Le,0!==l&&(u[19]=l,n.length++),n};function g(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,f=(0|e.words[c])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):g(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},y.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},y.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},y.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=n[c+h],g=r[c+h],y=n[c+h+a],v=r[c+h+a],m=f*y-d*v;v=f*v+d*y,y=m,n[c+h]=p+y,r[c+h]=g+v,n[c+h+a]=p-y,r[c+h+a]=g-v,h!==s&&(m=u*f-l*d,d=u*d+l*f,f=m)}},y.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},y.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},y.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},y.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),l=new Array(r),c=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,u,r,i),this.transform(l,o,c,f,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),g(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"===typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"===typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<n;this.words[t]=u|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"===typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;0===(n.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(u)):(n.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(b,m),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,m),i(x,m),i(_,m),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new w;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return v[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,y=0;0!==g.cmp(s);y++)g=g.redSqr();r(y<p);var v=this.pow(f,new o(1).iushln(p-y-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=y}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},i(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(189)(e))},function(e,t,n){"use strict";n.r(t),n.d(t,"getAddress",(function(){return g})),n.d(t,"isAddress",(function(){return y})),n.d(t,"getIcapAddress",(function(){return v})),n.d(t,"getContractAddress",(function(){return m})),n.d(t,"getCreate2Address",(function(){return b}));var r=n(5),i=n(25),o=n(29),a=n(71),s=new(n(8).Logger)("address/5.1.0");function u(e){Object(r.isHexString)(e,20)||s.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),i=0;i<40;i++)n[i]=t[i].charCodeAt(0);for(var a=Object(r.arrayify)(Object(o.keccak256)(n)),u=0;u<40;u+=2)a[u>>1]>>4>=8&&(t[u]=t[u].toUpperCase()),(15&a[u>>1])>=8&&(t[u+1]=t[u+1].toUpperCase());return"0x"+t.join("")}for(var l={},c=0;c<10;c++)l[String(c)]=String(c);for(var f=0;f<26;f++)l[String.fromCharCode(65+f)]=String(10+f);var d,h=Math.floor((d=9007199254740991,Math.log10?Math.log10(d):Math.log(d)/Math.LN10));function p(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return l[e]})).join("");t.length>=h;){var n=t.substring(0,h);t=parseInt(n,10)%97+t.substring(n.length)}for(var r=String(98-parseInt(t,10)%97);r.length<2;)r="0"+r;return r}function g(e){var t=null;if("string"!==typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=u(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==p(e)&&s.throwArgumentError("bad icap checksum","address",e),t=Object(i.c)(e.substring(4));t.length<40;)t="0"+t;t=u("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function y(e){try{return g(e),!0}catch(t){}return!1}function v(e){for(var t=Object(i.b)(g(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+p("XE00"+t)+t}function m(e){var t=null;try{t=g(e.from)}catch(u){s.throwArgumentError("missing from address","transaction",e)}var n=Object(r.stripZeros)(Object(r.arrayify)(i.a.from(e.nonce).toHexString()));return g(Object(r.hexDataSlice)(Object(o.keccak256)(Object(a.encode)([t,n])),12))}function b(e,t,n){return 32!==Object(r.hexDataLength)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(r.hexDataLength)(n)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),g(Object(r.hexDataSlice)(Object(o.keccak256)(Object(r.concat)(["0xff",g(e),t,n])),12))}},function(e,t,n){"use strict";n.r(t),n.d(t,"keccak256",(function(){return a}));var r=n(288),i=n.n(r),o=n(5);function a(e){return"0x"+i.a.keccak_256(Object(o.arrayify)(e))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l}));var r=n(5),i=n(37);function o(e){return"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Object(r.arrayify)(e)}function a(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function s(e){return"string"===typeof e?Object(i.f)(e,i.a.NFKC):Object(r.arrayify)(e)}function u(e,t){for(var n=e,r=t.toLowerCase().split("/"),i=0;i<r.length;i++){var o=null;for(var a in n)if(a.toLowerCase()===r[i]){o=n[a];break}if(null===o)return null;n=o}return n}function l(e){var t=Object(r.arrayify)(e);t[6]=15&t[6]|64,t[8]=63&t[8]|128;var n=Object(r.hexlify)(t);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(11),i=n(13),o=n(93),a=n(7),s=n(8),u=new s.Logger("wordlists/5.1.0"),l=function(){function e(t){Object(r.a)(this,e),u.checkAbstract(this instanceof e?this.constructor:void 0,e),Object(a.defineReadOnly)(this,"locale",t)}return Object(i.a)(e,[{key:"split",value:function(e){return e.toLowerCase().split(/ +/g)}},{key:"join",value:function(e){return e.join(" ")}}],[{key:"check",value:function(e){for(var t=[],n=0;n<2048;n++){var r=e.getWord(n);if(n!==e.getWordIndex(r))return"0x";t.push(r)}return Object(o.a)(t.join("\n")+"\n")}},{key:"register",value:function(e,t){t||(t=e.locale)}}]),e}()},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"initialize",(function(){return B})),n.d(r,"ga",(function(){return F})),n.d(r,"set",(function(){return z})),n.d(r,"send",(function(){return V})),n.d(r,"pageview",(function(){return H})),n.d(r,"modalview",(function(){return U})),n.d(r,"timing",(function(){return G})),n.d(r,"event",(function(){return J})),n.d(r,"exception",(function(){return X})),n.d(r,"plugin",(function(){return W})),n.d(r,"outboundLink",(function(){return q})),n.d(r,"testModeAPI",(function(){return Z})),n.d(r,"default",(function(){return K}));var i=n(0),o=n.n(i),a=n(18),s=n.n(a);function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?g(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){var e,n;f(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return v(g(n=h(this,(e=p(t)).call.apply(e,[this].concat(i)))),"handleClick",(function(e){var r=n.props,i=r.target,o=r.eventLabel,a=r.to,s=r.onClick,u=r.trackerNames,l={label:o},c="_blank"!==i,f=!(e.ctrlKey||e.shiftKey||e.metaKey||1===e.button);c&&f?(e.preventDefault(),t.trackLink(l,(function(){window.location.href=a}),u)):t.trackLink(l,(function(){}),u),s&&s(e)})),n}var n,r,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.to,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},c(e,["to"]),{href:t,onClick:this.handleClick});return"_blank"===this.props.target&&(n.rel="noopener noreferrer"),delete n.eventLabel,delete n.trackerNames,o.a.createElement("a",n)}}])&&d(n.prototype,r),i&&d(n,i),t}(i.Component);function b(e){return e.replace(/^\s+|\s+$/g,"")}v(m,"trackLink",(function(){})),v(m,"propTypes",{eventLabel:s.a.string.isRequired,target:s.a.string,to:s.a.string,onClick:s.a.func,trackerNames:s.a.arrayOf(s.a.string)}),v(m,"defaultProps",{target:null,to:null,onClick:null,trackerNames:null});var w=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function x(e,t){return function(e){return"string"===typeof e&&-1!==e.indexOf("@")}(e)?"REDACTED (Potential Email Address)":t?b(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(w)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})):e}var _=[],k={calls:_,ga:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_.push([].concat(t))},resetCalls:function(){_.length=0}};function S(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return(A="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var M="undefined"===typeof window||"undefined"===typeof document,E=!1,P=!0,I=!1,D=!0,L=function(){var e;return I?k.ga.apply(k,arguments):!M&&(window.ga?(e=window).ga.apply(e,arguments):void 0)};function R(e){return x(e,P)}function N(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0];"string"===typeof i&&(!D&&Array.isArray(e)||L.apply(void 0,n),Array.isArray(e)&&e.forEach((function(e){L.apply(void 0,O(["".concat(e,".").concat(i)].concat(n.slice(1))))})))}function j(e,t){e&&(t&&(t.debug&&!0===t.debug&&(E=!0),!1===t.titleCase&&(P=!1),t.useExistingGa)||(t&&t.gaOptions?L("create",e,t.gaOptions):L("create",e,"auto")))}function B(e,t){if(t&&!0===t.testMode)I=!0;else{if(M)return!1;t&&!0===t.standardImplementation||function(e){var t,n,r,i,o,a,s,u="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?u=e.gaAddress:e&&e.debug&&(u="https://www.google-analytics.com/analytics_debug.js"),t=window,n=document,r="script",i=u,o="ga",t.GoogleAnalyticsObject=o,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,a=n.createElement(r),s=n.getElementsByTagName(r)[0],a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(t)}return D=!t||"boolean"!==typeof t.alwaysSendToDefaultTracker||t.alwaysSendToDefaultTracker,Array.isArray(e)?e.forEach((function(e){"object"===A(e)&&j(e.trackingId,e)})):j(e,t),!0}function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>0&&(L.apply(void 0,t),E&&"with arguments: ".concat(JSON.stringify(t))),window.ga}function z(e,t){e&&"object"===A(e)&&(Object.keys(e).length,N(t,"set",e),E&&"with fieldsObject: ".concat(JSON.stringify(e)))}function V(e,t){N(t,"send",e),E&&("with fieldObject: ".concat(JSON.stringify(e)),"with trackers: ".concat(JSON.stringify(t)))}function H(e,t,n){if(e){var r=b(e);if(""!==r){var i={};if(n&&(i.title=n),N(t,"send",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(n,!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hitType:"pageview",page:r},i)),E){var o="";n&&(o=" and title: ".concat(n)),"with path: ".concat(r).concat(o)}}}}function U(e,t){if(e){var n,r="/"===(n=b(e)).substring(0,1)?n.substring(1):n;if(""!==r){var i="/modal/".concat(r);N(t,"send","pageview",i),E&&"with path: ".concat(i)}}}function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.variable,r=e.value,i=e.label,o=arguments.length>1?arguments[1]:void 0;if(t&&n&&r&&"number"===typeof r){var a={hitType:"timing",timingCategory:R(t),timingVar:R(n),timingValue:r};i&&(a.timingLabel=R(i)),V(a,o)}}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.action,r=e.label,i=e.value,o=e.nonInteraction,a=e.transport,s=S(e,["category","action","label","value","nonInteraction","transport"]),u=arguments.length>1?arguments[1]:void 0;if(t&&n){var l={hitType:"event",eventCategory:R(t),eventAction:R(n)};r&&(l.eventLabel=R(r)),"undefined"!==typeof i&&("number"!==typeof i||(l.eventValue=i)),"undefined"!==typeof o&&("boolean"!==typeof o||(l.nonInteraction=o)),"undefined"!==typeof a&&("string"!==typeof a||(["beacon","xhr","image"].indexOf(a),l.transport=a)),Object.keys(s).filter((function(e){return"dimension"===e.substr(0,"dimension".length)})).forEach((function(e){l[e]=s[e]})),Object.keys(s).filter((function(e){return"metric"===e.substr(0,"metric".length)})).forEach((function(e){l[e]=s[e]})),V(l,u)}}function X(e,t){var n=e.description,r=e.fatal,i={hitType:"exception"};n&&(i.exDescription=R(n)),"undefined"!==typeof r&&("boolean"!==typeof r||(i.exFatal=r)),V(i,t)}var W={require:function(e,t,n){if(e){var r=b(e);if(""!==r){var i=n?"".concat(n,".require"):"require";if(t){if("object"!==A(t))return;Object.keys(t).length,F(i,r,t),E&&"called ga('require', '".concat(r,"', ").concat(JSON.stringify(t))}else F(i,r),E&&"called ga('require', '".concat(r,"');")}}},execute:function(e,t){var n,r;if(1===(arguments.length<=2?0:arguments.length-2)?n=arguments.length<=2?void 0:arguments[2]:(r=arguments.length<=2?void 0:arguments[2],n=arguments.length<=3?void 0:arguments[3]),"string"!==typeof e);else if("string"!==typeof t);else{var i="".concat(e,":").concat(t);n=n||null,r&&n?(F(i,r,n),E&&("called ga('".concat(i,"');"),'actionType: "'.concat(r,'" with payload: ').concat(JSON.stringify(n)))):n?(F(i,n),E&&("called ga('".concat(i,"');"),"with payload: ".concat(JSON.stringify(n)))):(F(i),E&&"called ga('".concat(i,"');"))}}};function q(e,t,n){if("function"===typeof t&&e&&e.label){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:R(e.label)},i=!1,o=setTimeout((function(){i=!0,t()}),250);r.hitCallback=function(){clearTimeout(o),i||t()},V(r,n)}}var Z=k,K={initialize:B,ga:F,set:z,send:V,pageview:H,modalview:U,timing:G,event:J,exception:X,plugin:W,outboundLink:q,testModeAPI:k};function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}m.origTrackLink=m.trackLink,m.trackLink=q;var Q=m;t.a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(n,!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{OutboundLink:Q})},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="providers/5.1.2"},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"computeAddress",(function(){return v})),n.d(t,"recoverAddress",(function(){return m})),n.d(t,"accessListify",(function(){return x})),n.d(t,"serialize",(function(){return k})),n.d(t,"parse",(function(){return S}));var r=n(28),i=n(25),o=n(5),a=n(107),s=n(29),u=n(7),l=n(71),c=n(61),f=n(8),d=new f.Logger("transactions/5.1.1");function h(e){return"0x"===e?null:Object(r.getAddress)(e)}function p(e){return"0x"===e?a.f:i.a.from(e)}var g=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],y={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0};function v(e){var t=Object(c.computePublicKey)(e);return Object(r.getAddress)(Object(o.hexDataSlice)(Object(s.keccak256)(Object(o.hexDataSlice)(t,1)),12))}function m(e,t){return v(Object(c.recoverPublicKey)(Object(o.arrayify)(e),t))}function b(e,t){var n=Object(o.stripZeros)(i.a.from(e).toHexString());return n.length>32&&d.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function w(e,t){return{address:Object(r.getAddress)(e),storageKeys:(t||[]).map((function(t,n){return 32!==Object(o.hexDataLength)(t)&&d.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(n,"]"),t),t.toLowerCase()}))}}function x(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&d.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),w(e[0],e[1])):w(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var n=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return w(t,Object.keys(n).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function _(e,t){var n,i=[b(e.chainId||0,"chainId"),b(e.nonce||0,"nonce"),b(e.gasPrice||0,"gasPrice"),b(e.gasLimit||0,"gasLimit"),null!=e.to?Object(r.getAddress)(e.to):"0x",b(e.value||0,"value"),e.data||"0x",(n=e.accessList||[],x(n).map((function(e){return[e.address,e.storageKeys]})))];if(t){var a=Object(o.splitSignature)(t);i.push(b(a.recoveryParam,"recoveryParam")),i.push(Object(o.stripZeros)(a.r)),i.push(Object(o.stripZeros)(a.s))}return Object(o.hexConcat)(["0x01",l.encode(i)])}function k(e,t){if(null==e.type)return null!=e.accessList&&d.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){Object(u.checkProperties)(e,y);var n=[];g.forEach((function(t){var r=e[t.name]||[],i={};t.numeric&&(i.hexPad="left"),r=Object(o.arrayify)(Object(o.hexlify)(r,i)),t.length&&r.length!==t.length&&r.length>0&&d.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=Object(o.stripZeros)(r)).length>t.maxLength&&d.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),n.push(Object(o.hexlify)(r))}));var r=0;if(null!=e.chainId?"number"!==typeof(r=e.chainId)&&d.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!Object(o.isBytesLike)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push(Object(o.hexlify)(r)),n.push("0x"),n.push("0x")),!t)return l.encode(n);var i=Object(o.splitSignature)(t),a=27+i.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),a+=2*r+8,i.v>28&&i.v!==a&&d.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==a&&d.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),n.push(Object(o.hexlify)(a)),n.push(Object(o.stripZeros)(Object(o.arrayify)(i.r))),n.push(Object(o.stripZeros)(Object(o.arrayify)(i.s))),l.encode(n)}(e,t);switch(e.type){case 1:return _(e,t)}return d.throwError("unsupported transaction type: ".concat(e.type),f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function S(e){var t=Object(o.arrayify)(e);if(t[0]>127)return function(e){var t=l.decode(e);9!==t.length&&6!==t.length&&d.throwArgumentError("invalid raw transaction","rawTransaction",e);var n={nonce:p(t[0]).toNumber(),gasPrice:p(t[1]),gasLimit:p(t[2]),to:h(t[3]),value:p(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=i.a.from(t[6]).toNumber()}catch(c){return n}if(n.r=Object(o.hexZeroPad)(t[7],32),n.s=Object(o.hexZeroPad)(t[8],32),i.a.from(n.r).isZero()&&i.a.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);var r=n.v-27,a=t.slice(0,6);0!==n.chainId&&(a.push(Object(o.hexlify)(n.chainId)),a.push("0x"),a.push("0x"),r-=2*n.chainId+8);var u=Object(s.keccak256)(l.encode(a));try{n.from=m(u,{r:Object(o.hexlify)(n.r),s:Object(o.hexlify)(n.s),recoveryParam:r})}catch(c){}n.hash=Object(s.keccak256)(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){var t=l.decode(e.slice(1));8!==t.length&&11!==t.length&&d.throwArgumentError("invalid component count for transaction type: 1","payload",Object(o.hexlify)(e));var n={type:1,chainId:p(t[0]).toNumber(),nonce:p(t[1]).toNumber(),gasPrice:p(t[2]),gasLimit:p(t[3]),to:h(t[4]),value:p(t[5]),data:t[6],accessList:x(t[7])};if(8===t.length)return n;try{var r=p(t[8]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");n.v=r}catch(a){d.throwArgumentError("invalid v for transaction type: 1","v",t[8])}n.r=Object(o.hexZeroPad)(t[9],32),n.s=Object(o.hexZeroPad)(t[10],32);try{var i=Object(s.keccak256)(_(n));n.from=m(i,{r:n.r,s:n.s,recoveryParam:n.v})}catch(a){}return n.hash=Object(s.keccak256)(e),n}(t)}return d.throwError("unsupported transaction type: ".concat(t[0]),f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return g}));var r,i,o=n(5),a=new(n(8).Logger)("strings/5.1.0");function s(e,t,n,r,o){if(e===i.BAD_PREFIX||e===i.UNEXPECTED_CONTINUE){for(var a=0,s=t+1;s<n.length&&n[s]>>6===2;s++)a++;return a}return e===i.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(r||(r={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(i||(i={}));var u=Object.freeze({error:function(e,t,n,r,i){return a.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",n)},ignore:s,replace:function(e,t,n,r,o){return e===i.OVERLONG?(r.push(o),0):(r.push(65533),s(e,t,n))}});function l(e,t){null==t&&(t=u.error),e=Object(o.arrayify)(e);for(var n=[],r=0;r<e.length;){var a=e[r++];if(a>>7!==0){var s=null,l=null;if(192===(224&a))s=1,l=127;else if(224===(240&a))s=2,l=2047;else{if(240!==(248&a)){r+=t(128===(192&a)?i.UNEXPECTED_CONTINUE:i.BAD_PREFIX,r-1,e,n);continue}s=3,l=65535}if(r-1+s>=e.length)r+=t(i.OVERRUN,r-1,e,n);else{for(var c=a&(1<<8-s-1)-1,f=0;f<s;f++){var d=e[r];if(128!=(192&d)){r+=t(i.MISSING_CONTINUE,r,e,n),c=null;break}c=c<<6|63&d,r++}null!==c&&(c>1114111?r+=t(i.OUT_OF_RANGE,r-1-s,e,n,c):c>=55296&&c<=57343?r+=t(i.UTF16_SURROGATE,r-1-s,e,n,c):c<=l?r+=t(i.OVERLONG,r-1-s,e,n,c):n.push(c))}}else n.push(a)}return n}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;t!=r.current&&(a.checkNormalize(),e=e.normalize(t));for(var n=[],i=0;i<e.length;i++){var s=e.charCodeAt(i);if(s<128)n.push(s);else if(s<2048)n.push(s>>6|192),n.push(63&s|128);else if(55296==(64512&s)){i++;var u=e.charCodeAt(i);if(i>=e.length||56320!==(64512&u))throw new Error("invalid utf-8 string");var l=65536+((1023&s)<<10)+(1023&u);n.push(l>>18|240),n.push(l>>12&63|128),n.push(l>>6&63|128),n.push(63&l|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return Object(o.arrayify)(n)}function f(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function d(e,t){return'"'+l(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?f(e):f(55296+((e-=65536)>>10&1023))+f(56320+(1023&e))})).join("")+'"'}function h(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function p(e,t){return h(l(e,t))}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;return l(c(e,t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return w}));var r=n(39),i=n(47),o=n(0),a=n.n(o),s=n(74),u=(n(18),n(20)),l=n(35),c=n(33);a.a.Component;var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(s.b)(t.props),t}return Object(i.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.c,{history:this.history,children:this.props.children})},t}(a.a.Component);var d=function(e,t){return"function"===typeof e?e(t):e},h=function(e,t){return"string"===typeof e?Object(s.c)(e,null,null,t):e},p=function(e){return e},g=a.a.forwardRef;"undefined"===typeof g&&(g=p);var y=g((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=Object(l.a)(e,["innerRef","navigate","onClick"]),s=o.target,c=Object(u.a)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=p!==g&&t||n,a.a.createElement("a",c)}));var v=g((function(e,t){var n=e.component,i=void 0===n?y:n,o=e.replace,s=e.to,f=e.innerRef,v=Object(l.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(e){e||Object(c.default)(!1);var n=e.history,r=h(d(s,e.location),e.location),l=r?n.createHref(r):"",y=Object(u.a)({},v,{href:l,navigate:function(){var t=d(s,e.location);(o?n.replace:n.push)(t)}});return p!==g?y.ref=t||f:y.innerRef=f,a.a.createElement(i,y)}))})),m=function(e){return e},b=a.a.forwardRef;"undefined"===typeof b&&(b=m);var w=b((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,f=e.activeStyle,p=e.className,g=e.exact,y=e.isActive,w=e.location,x=e.sensitive,_=e.strict,k=e.style,S=e.to,T=e.innerRef,C=Object(l.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(e){e||Object(c.default)(!1);var n=w||e.location,o=h(d(S,n),n),l=o.pathname,A=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),O=A?Object(r.f)(n.pathname,{path:A,exact:g,sensitive:x,strict:_}):null,M=!!(y?y(O,n):O),E=M?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(p,s):p,P=M?Object(u.a)({},k,{},f):k,I=Object(u.a)({"aria-current":M&&i||null,className:E,style:P,to:o},C);return m!==b?I.ref=t||T:I.innerRef=T,a.a.createElement(v,I)}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return k})),n.d(t,"g",(function(){return I})),n.d(t,"h",(function(){return D}));var r=n(47),i=n(0),o=n.n(i),a=(n(18),n(74)),s=n(224),u=n(33),l=n(20),c=n(225),f=n.n(c),d=(n(110),n(35)),h=(n(141),function(e){var t=Object(s.a)();return t.displayName=e,t}("Router-History")),p=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router"),g=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(p.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(h.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;var y=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);var v={},m=0;function b(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(v[e])return v[e];var t=f.a.compile(e);return m<1e4&&(v[e]=t,m++),t}(e)(t,{pretty:!0})}function w(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement(p.Consumer,null,(function(e){e||Object(u.default)(!1);var r=e.history,s=e.staticContext,c=i?r.push:r.replace,f=Object(a.c)(t?"string"===typeof n?b(n,t.params):Object(l.a)({},n,{pathname:b(n.pathname,t.params)}):n);return s?(c(f),null):o.a.createElement(y,{onMount:function(){c(f)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,Object(l.a)({},f,{key:n.key}))||c(f)},to:n})}))}var x={},_=0;function k(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,l=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=x[n]||(x[n]={});if(r[e])return r[e];var i=[],o={regexp:f()(e,i,t),keys:i};return _<1e4&&(r[e]=o,_++),o}(n,{end:o,strict:s,sensitive:l}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var c=u[0],d=u.slice(1),h=e===c;return o&&!h?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:h,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var S=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(p.Consumer,null,(function(t){t||Object(u.default)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?k(n.pathname,e.props):t.match,i=Object(l.a)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,f=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(p.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)}))},t}(o.a.Component);function T(e){return"/"===e.charAt(0)?e:"/"+e}function C(e,t){if(!e)return t;var n=T(e);return 0!==t.pathname.indexOf(n)?t:Object(l.a)({},t,{pathname:t.pathname.substr(n.length)})}function A(e){return"string"===typeof e?e:Object(a.e)(e)}function O(e){return function(){Object(u.default)(!1)}}function M(){}o.a.Component;var E=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(p.Consumer,null,(function(t){t||Object(u.default)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?k(i.pathname,Object(l.a)({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);var P=o.a.useContext;function I(){return P(h)}function D(){return P(p).location}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return p}));var r=n(11),i=n(13),o=n(5),a=n(25),s=n(7),u=n(8),l=n(84),c=new u.Logger(l.a);function f(e){var t=[];return function e(n,r){if(Array.isArray(r))for(var i in r){var o=n.slice();o.push(i);try{e(o,r[i])}catch(a){t.push({path:o,error:a})}}}([],e),t}var d=function(){function e(t,n,i,o){Object(r.a)(this,e),this.name=t,this.type=n,this.localName=i,this.dynamic=o}return Object(i.a)(e,[{key:"_throwError",value:function(e,t){c.throwArgumentError(e,this.localName,t)}}]),e}(),h=function(){function e(t){Object(r.a)(this,e),Object(s.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return Object(i.a)(e,[{key:"data",get:function(){return Object(o.hexConcat)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData(Object(o.concat)(e._data))}},{key:"writeBytes",value:function(e){var t=Object(o.arrayify)(e),n=t.length%this.wordSize;return n&&(t=Object(o.concat)([t,this._padding.slice(n)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=Object(o.arrayify)(a.a.from(e));return t.length>this.wordSize&&c.throwError("value out-of-bounds",u.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(o.concat)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}}}]),e}(),p=function(){function e(t,n,i,a){Object(r.a)(this,e),Object(s.defineReadOnly)(this,"_data",Object(o.arrayify)(t)),Object(s.defineReadOnly)(this,"wordSize",n||32),Object(s.defineReadOnly)(this,"_coerceFunc",i),Object(s.defineReadOnly)(this,"allowLoose",a),this._offset=0}return Object(i.a)(e,[{key:"data",get:function(){return Object(o.hexlify)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,n){return this._coerceFunc?this._coerceFunc(t,n):e.coerce(t,n)}},{key:"_peekBytes",value:function(e,t,n){var r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:c.throwError("data out-of-bounds",u.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}},{key:"readValue",value:function(){return a.a.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}}]),e}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return T})),n.d(t,"d",(function(){return A}));var r=n(0),i=n.n(r),o=n(33),a=n(77),s=n(5),u=n(29);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){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(e){return!1}}function p(e,t,n){return(p=h()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&d(i,n.prototype),i}).apply(null,arguments)}function g(e){var t="function"===typeof Map?new Map:void 0;return(g=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,e)})(e)}"undefined"!==typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!==typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function y(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function v(e){if("string"===typeof e){e=e.replace(/^Ox/,"0x");var t=Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10);return Number.isNaN(t)&&Object(o.default)(!1),t}return Number.isInteger(e)||Object(o.default)(!1),e}function m(e){"string"===typeof e&&e.match(/^(0x)?[0-9a-fA-F]{40}$/)||Object(o.default)(!1);for(var t="0x"===e.substring(0,2)?e:"0x"+e,n=t.toLowerCase().substring(2).split(""),r=new Uint8Array(40),i=0;i<40;i++)r[i]=n[i].charCodeAt(0);for(var a=Object(s.arrayify)(Object(u.keccak256)(r)),l=0;l<40;l+=2)a[l>>1]>>4>=8&&(n[l]=n[l].toUpperCase()),(15&a[l>>1])>=8&&(n[l+1]=n[l+1].toUpperCase());var c="0x"+n.join("");return t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==c&&Object(o.default)(!1),c}var b,w=function(e,t){try{var n=function(n){return Promise.resolve(Promise.all([void 0===t.chainId?e.getChainId():t.chainId,void 0===t.account?e.getAccount():t.account])).then((function(t){var r=t[0],i=t[1],o=v(r);if(e.supportedChainIds&&!e.supportedChainIds.includes(o))throw new _(o,e.supportedChainIds);var a=null===i?i:m(i);return{provider:n,chainId:o,account:a}}))},r=void 0===t.provider;return Promise.resolve(r?Promise.resolve(e.getProvider()).then(n):n(t.provider))}catch(i){return Promise.reject(i)}},x=function(e){function t(){var t;return(t=e.call(this)||this).name=t.constructor.name,t}return c(t,e),t}(g(Error)),_=function(e){function t(t,n){var r;return(r=e.call(this)||this).name=r.constructor.name,r.message="Unsupported chain id: "+t+". Supported chain ids are: "+n+".",r}return c(t,e),t}(g(Error));function k(e,t){var n=t.type,r=t.payload;switch(n){case b.ACTIVATE_CONNECTOR:return{connector:r.connector,provider:r.provider,chainId:r.chainId,account:r.account,onError:r.onError};case b.UPDATE:var i=r.provider,o=r.chainId,a=r.account;return l({},e,void 0===i?{}:{provider:i},void 0===o?{}:{chainId:o},void 0===a?{}:{account:a});case b.UPDATE_FROM_ERROR:var s=r.provider,u=r.chainId,c=r.account;return l({},e,void 0===s?{}:{provider:s},void 0===u?{}:{chainId:u},void 0===c?{}:{account:c},{error:void 0});case b.ERROR:var f=r.error;return{connector:e.connector,error:f,onError:e.onError};case b.ERROR_FROM_ACTIVATION:return{connector:r.connector,error:r.error};case b.DEACTIVATE_CONNECTOR:return{}}}!function(e){e[e.ACTIVATE_CONNECTOR=0]="ACTIVATE_CONNECTOR",e[e.UPDATE=1]="UPDATE",e[e.UPDATE_FROM_ERROR=2]="UPDATE_FROM_ERROR",e[e.ERROR=3]="ERROR",e[e.ERROR_FROM_ACTIVATION=4]="ERROR_FROM_ACTIVATION",e[e.DEACTIVATE_CONNECTOR=5]="DEACTIVATE_CONNECTOR"}(b||(b={}));var S={};function T(e){S[e]&&Object(o.default)(!1),S[e]=Object(r.createContext)({activate:function(){try{return Object(o.default)(!1),Promise.resolve()}catch(e){return Promise.reject(e)}},setError:function(){Object(o.default)(!1)},deactivate:function(){Object(o.default)(!1)},active:!1}),S[e].displayName="Web3ReactContext - "+e;var t=S[e].Provider;return function(e){var n=e.getLibrary,o=e.children,s=function(){var e=Object(r.useReducer)(k,{}),t=e[0],n=e[1],i=t.connector,o=t.provider,s=t.chainId,u=t.account,c=t.onError,f=t.error,d=Object(r.useRef)(-1);d.current+=1;var h=Object(r.useCallback)((function(e,t,r){void 0===r&&(r=!1);try{var i=d.current,o=!1;return Promise.resolve(y((function(){return Promise.resolve(e.activate().then((function(e){return o=!0,e}))).then((function(r){return Promise.resolve(w(e,r)).then((function(r){if(d.current>i)throw new x;n({type:b.ACTIVATE_CONNECTOR,payload:l({connector:e},r,{onError:t})})}))}))}),(function(i){if(i instanceof x)o&&e.deactivate();else{if(r)throw o&&e.deactivate(),i;t?(o&&e.deactivate(),t(i)):n({type:b.ERROR_FROM_ACTIVATION,payload:{connector:e,error:i}})}})))}catch(a){return Promise.reject(a)}}),[]),p=Object(r.useCallback)((function(e){n({type:b.ERROR,payload:{error:e}})}),[]),g=Object(r.useCallback)((function(){n({type:b.DEACTIVATE_CONNECTOR})}),[]),S=Object(r.useCallback)((function(e){try{if(!i)throw Error("This should never happen, it's just so Typescript stops complaining");var t=d.current;return Promise.resolve(function(){if(f)return y((function(){return Promise.resolve(w(i,e)).then((function(e){if(d.current>t)throw new x;n({type:b.UPDATE_FROM_ERROR,payload:e})}))}),(function(e){e instanceof x||(c?c(e):n({type:b.ERROR,payload:{error:e}}))}));var r=void 0===e.chainId?void 0:v(e.chainId);if(void 0!==r&&i.supportedChainIds&&!i.supportedChainIds.includes(r)){var o=new _(r,i.supportedChainIds);c?c(o):n({type:b.ERROR,payload:{error:o}})}else{var a="string"===typeof e.account?m(e.account):e.account;n({type:b.UPDATE,payload:{provider:e.provider,chainId:r,account:a}})}}())}catch(r){return Promise.reject(r)}}),[i,f,c]),T=Object(r.useCallback)((function(e){c?c(e):n({type:b.ERROR,payload:{error:e}})}),[c]),C=Object(r.useCallback)((function(){n({type:b.DEACTIVATE_CONNECTOR})}),[]);return Object(r.useEffect)((function(){return function(){i&&i.deactivate()}}),[i]),Object(r.useEffect)((function(){return i&&i.on(a.a.Update,S).on(a.a.Error,T).on(a.a.Deactivate,C),function(){i&&i.off(a.a.Update,S).off(a.a.Error,T).off(a.a.Deactivate,C)}}),[i,S,T,C]),{connector:i,provider:o,chainId:s,account:u,activate:h,setError:p,deactivate:g,error:f}}(),u=s.connector,c=s.provider,f=s.chainId,d=s.account,h=s.activate,p=s.setError,g=s.deactivate,S=s.error,T=void 0!==u&&void 0!==f&&void 0!==d&&!S,C=Object(r.useMemo)((function(){return T&&void 0!==f&&Number.isInteger(f)&&u?n(c,u):void 0}),[T,n,c,u,f]),A={connector:u,library:C,chainId:f,account:d,activate:h,setError:p,deactivate:g,active:T,error:S};return i.a.createElement(t,{value:A},o)}}var C=T("primary");function A(e){return Object(r.useContext)(function(e){return void 0===e&&(e="primary"),Object.keys(S).includes(e)||Object(o.default)(!1),S[e]}(e))}},,,function(e,t,n){"use strict";n.r(t),n.d(t,"defaultPath",(function(){return S})),n.d(t,"HDNode",(function(){return T})),n.d(t,"mnemonicToSeed",(function(){return C})),n.d(t,"mnemonicToEntropy",(function(){return A})),n.d(t,"entropyToMnemonic",(function(){return O})),n.d(t,"isValidMnemonic",(function(){return M}));var r=n(11),i=n(13),o=n(90),a=n(5),s=n(25),u=n(37),l=n(587),c=n(7),f=n(61),d=n(85),h=n(154),p=n(36),g=n(617),y=new(n(8).Logger)("hdnode/5.1.0"),v=s.a.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),m=Object(u.f)("Bitcoin seed");function b(e){return(1<<e)-1<<8-e}function w(e){return Object(a.hexZeroPad)(Object(a.hexlify)(e),32)}function x(e){return o.Base58.encode(Object(a.concat)([e,Object(a.hexDataSlice)(Object(d.c)(Object(d.c)(e)),0,4)]))}function _(e){if(null==e)return g.a.en;if("string"===typeof e){var t=g.a[e];return null==t&&y.throwArgumentError("unknown locale","wordlist",e),t}return e}var k={},S="m/44'/60'/0'/0/0",T=function(){function e(t,n,i,o,s,u,l,h){if(Object(r.a)(this,e),y.checkNew(this instanceof e?this.constructor:void 0,e),t!==k)throw new Error("HDNode constructor cannot be called directly");if(n){var g=new f.SigningKey(n);Object(c.defineReadOnly)(this,"privateKey",g.privateKey),Object(c.defineReadOnly)(this,"publicKey",g.compressedPublicKey)}else Object(c.defineReadOnly)(this,"privateKey",null),Object(c.defineReadOnly)(this,"publicKey",Object(a.hexlify)(i));Object(c.defineReadOnly)(this,"parentFingerprint",o),Object(c.defineReadOnly)(this,"fingerprint",Object(a.hexDataSlice)(Object(d.b)(Object(d.c)(this.publicKey)),0,4)),Object(c.defineReadOnly)(this,"address",Object(p.computeAddress)(this.publicKey)),Object(c.defineReadOnly)(this,"chainCode",s),Object(c.defineReadOnly)(this,"index",u),Object(c.defineReadOnly)(this,"depth",l),null==h?(Object(c.defineReadOnly)(this,"mnemonic",null),Object(c.defineReadOnly)(this,"path",null)):"string"===typeof h?(Object(c.defineReadOnly)(this,"mnemonic",null),Object(c.defineReadOnly)(this,"path",h)):(Object(c.defineReadOnly)(this,"mnemonic",h),Object(c.defineReadOnly)(this,"path",h.path))}return Object(i.a)(e,[{key:"extendedKey",get:function(){if(this.depth>=256)throw new Error("Depth too large!");return x(Object(a.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(a.hexlify)(this.depth),this.parentFingerprint,Object(a.hexZeroPad)(Object(a.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?Object(a.concat)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(k,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var n=this.path;n&&(n+="/"+(2147483647&t));var r=new Uint8Array(37);if(2147483648&t){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set(Object(a.arrayify)(this.privateKey),1),n&&(n+="'")}else r.set(Object(a.arrayify)(this.publicKey));for(var i=24;i>=0;i-=8)r[33+(i>>3)]=t>>24-i&255;var o=Object(a.arrayify)(Object(d.a)(h.a.sha512,this.chainCode,r)),u=o.slice(0,32),l=o.slice(32),c=null,p=null;this.privateKey?c=w(s.a.from(u).add(this.privateKey).mod(v)):p=new f.SigningKey(Object(a.hexlify)(u))._addPoint(this.publicKey);var g=n,y=this.mnemonic;return y&&(g=Object.freeze({phrase:y.phrase,path:n,locale:y.locale||"en"})),new e(k,c,p,this.fingerprint,w(l),t,this.depth+1,g)}},{key:"derivePath",value:function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var n=this,r=0;r<t.length;r++){var i=t[r];if(i.match(/^[0-9]+'$/)){var o=parseInt(i.substring(0,i.length-1));if(o>=2147483648)throw new Error("invalid path index - "+i);n=n._derive(2147483648+o)}else{if(!i.match(/^[0-9]+$/))throw new Error("invalid path component - "+i);var a=parseInt(i);if(a>=2147483648)throw new Error("invalid path index - "+i);n=n._derive(a)}}return n}}],[{key:"_fromSeed",value:function(t,n){var r=Object(a.arrayify)(t);if(r.length<16||r.length>64)throw new Error("invalid seed");var i=Object(a.arrayify)(Object(d.a)(h.a.sha512,m,r));return new e(k,w(i.slice(0,32)),null,"0x00000000",w(i.slice(32)),0,0,n)}},{key:"fromMnemonic",value:function(t,n,r){return t=O(A(t,r=_(r)),r),e._fromSeed(C(t,n),{phrase:t,path:"m",locale:r.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var n=o.Base58.decode(t);82===n.length&&x(n.slice(0,78))===t||y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var r=n[4],i=Object(a.hexlify)(n.slice(5,9)),s=parseInt(Object(a.hexlify)(n.slice(9,13)).substring(2),16),u=Object(a.hexlify)(n.slice(13,45)),l=n.slice(45,78);switch(Object(a.hexlify)(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(k,null,Object(a.hexlify)(l),i,u,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new e(k,Object(a.hexlify)(l.slice(1)),null,i,u,s,r,null)}return y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}]),e}();function C(e,t){t||(t="");var n=Object(u.f)("mnemonic"+t,u.a.NFKD);return Object(l.a)(Object(u.f)(e,u.a.NFKD),n,2048,64,"sha512")}function A(e,t){t=_(t),y.checkNormalize();var n=t.split(e);if(n.length%3!==0)throw new Error("invalid mnemonic");for(var r=Object(a.arrayify)(new Uint8Array(Math.ceil(11*n.length/8))),i=0,o=0;o<n.length;o++){var s=t.getWordIndex(n[o].normalize("NFKD"));if(-1===s)throw new Error("invalid mnemonic");for(var u=0;u<11;u++)s&1<<10-u&&(r[i>>3]|=1<<7-i%8),i++}var l=32*n.length/3,c=b(n.length/3);if((Object(a.arrayify)(Object(d.c)(r.slice(0,l/8)))[0]&c)!==(r[r.length-1]&c))throw new Error("invalid checksum");return Object(a.hexlify)(r.slice(0,l/8))}function O(e,t){if(t=_(t),(e=Object(a.arrayify)(e)).length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var n=[0],r=11,i=0;i<e.length;i++)r>8?(n[n.length-1]<<=8,n[n.length-1]|=e[i],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[i]>>8-r,n.push(e[i]&(1<<8-r)-1),r+=3);var o=e.length/4,s=Object(a.arrayify)(Object(d.c)(e))[0]&b(o);return n[n.length-1]<<=o,n[n.length-1]|=s>>8-o,t.join(n.map((function(e){return t.getWord(e)})))}function M(e,t){try{return A(e,t),!0}catch(n){}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(123);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";n.r(t);var r=n(192);n.d(t,"formatBytes32String",(function(){return r.a})),n.d(t,"parseBytes32String",(function(){return r.b}));var i=n(162);n.d(t,"nameprep",(function(){return i.a}));var o=n(37);n.d(t,"_toEscapedUtf8String",(function(){return o.d})),n.d(t,"toUtf8Bytes",(function(){return o.f})),n.d(t,"toUtf8CodePoints",(function(){return o.g})),n.d(t,"toUtf8String",(function(){return o.h})),n.d(t,"Utf8ErrorFuncs",(function(){return o.b})),n.d(t,"Utf8ErrorReason",(function(){return o.c})),n.d(t,"UnicodeNormalizationForm",(function(){return o.a}))},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t),n.d(t,"_fetchData",(function(){return y})),n.d(t,"fetchJson",(function(){return v})),n.d(t,"poll",(function(){return m}));var r=n(4),i=n.n(r),o=n(190),a=n(5),s=n(7),u=n(37),l=n(8),c=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};function f(e,t){return c(this,void 0,void 0,i.a.mark((function n(){var r,o,s,u;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t={}),r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0,mode:"cors",cache:"no-cache",credentials:"same-origin",redirect:"follow",referrer:"client"},n.next=4,fetch(e,r);case 4:return o=n.sent,n.next=7,o.arrayBuffer();case 7:return s=n.sent,u={},o.headers.forEach?o.headers.forEach((function(e,t){u[t.toLowerCase()]=e})):o.headers.keys().forEach((function(e){u[e.toLowerCase()]=o.headers.get(e)})),n.abrupt("return",{headers:u,statusCode:o.status,statusMessage:o.statusText,body:Object(a.arrayify)(new Uint8Array(s))});case 11:case"end":return n.stop()}}),n)})))}var d=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},h=new l.Logger("web/5.1.0");function p(e){return new Promise((function(t){setTimeout(t,e)}))}function g(e,t){if(null==e)return null;if("string"===typeof e)return e;if(Object(a.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Object(u.h)(e)}catch(n){}return Object(a.hexlify)(e)}return e}function y(e,t,n){var r="object"===typeof e&&null!=e.throttleLimit?e.throttleLimit:12;h.assertArgument(r>0&&r%1===0,"invalid connection throttle limit","connection.throttleLimit",r);var a="object"===typeof e?e.throttleCallback:null,s="object"===typeof e&&"number"===typeof e.throttleSlotInterval?e.throttleSlotInterval:100;h.assertArgument(s>0&&s%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",s);var c={},y=null,v={method:"GET"},m=!1,b=12e4;if("string"===typeof e)y=e;else if("object"===typeof e){if(null!=e&&null!=e.url||h.throwArgumentError("missing URL","connection.url",e),y=e.url,"number"===typeof e.timeout&&e.timeout>0&&(b=e.timeout),e.headers)for(var w in e.headers)c[w.toLowerCase()]={key:w,value:String(e.headers[w])},["if-none-match","if-modified-since"].indexOf(w.toLowerCase())>=0&&(m=!0);if(v.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==y.substring(0,6)&&!0!==e.allowInsecureAuthentication&&h.throwError("basic authentication requires a secure https url",l.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:y,user:e.user,password:"[REDACTED]"});var x=e.user+":"+e.password;c.authorization={key:"Authorization",value:"Basic "+Object(o.b)(Object(u.f)(x))}}}t&&(v.method="POST",v.body=t,null==c["content-type"]&&(c["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==c["content-length"]&&(c["content-length"]={key:"Content-Length",value:String(t.length)}));var _={};Object.keys(c).forEach((function(e){var t=c[e];_[t.key]=t.value})),v.headers=_;var k=function(){var e=null;return{promise:new Promise((function(t,n){b&&(e=setTimeout((function(){null!=e&&(e=null,n(h.makeError("timeout",l.Logger.errors.TIMEOUT,{requestBody:g(v.body,_["content-type"]),requestMethod:v.method,timeout:b,url:y})))}),b))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),S=function(){return d(this,void 0,void 0,i.a.mark((function e(){var t,o,u,c,d,b,w,x,S;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<r)){e.next=57;break}return o=null,e.prev=3,e.next=6,f(y,v);case 6:if(!(429===(o=e.sent).statusCode&&t<r)){e.next=20;break}if(u=!0,!a){e.next=13;break}return e.next=12,a(t,y);case 12:u=e.sent;case 13:if(!u){e.next=20;break}return c=0,d=o.headers["retry-after"],c="string"===typeof d&&d.match(/^[1-9][0-9]*$/)?1e3*parseInt(d):s*parseInt(String(Math.random()*Math.pow(2,t))),e.next=19,p(c);case 19:return e.abrupt("continue",54);case 20:e.next=26;break;case 22:e.prev=22,e.t0=e.catch(3),null==(o=e.t0.response)&&(k.cancel(),h.throwError("missing response",l.Logger.errors.SERVER_ERROR,{requestBody:g(v.body,_["content-type"]),requestMethod:v.method,serverError:e.t0,url:y}));case 26:if(b=o.body,m&&304===o.statusCode?b=null:(o.statusCode<200||o.statusCode>=300)&&(k.cancel(),h.throwError("bad response",l.Logger.errors.SERVER_ERROR,{status:o.statusCode,headers:o.headers,body:g(b,o.headers?o.headers["content-type"]:null),requestBody:g(v.body,_["content-type"]),requestMethod:v.method,url:y})),!n){e.next=52;break}return e.prev=29,e.next=32,n(b,o);case 32:return w=e.sent,k.cancel(),e.abrupt("return",w);case 37:if(e.prev=37,e.t1=e.catch(29),!(e.t1.throttleRetry&&t<r)){e.next=50;break}if(x=!0,!a){e.next=45;break}return e.next=44,a(t,y);case 44:x=e.sent;case 45:if(!x){e.next=50;break}return S=s*parseInt(String(Math.random()*Math.pow(2,t))),e.next=49,p(S);case 49:return e.abrupt("continue",54);case 50:k.cancel(),h.throwError("processing response error",l.Logger.errors.SERVER_ERROR,{body:g(b,o.headers?o.headers["content-type"]:null),error:e.t1,requestBody:g(v.body,_["content-type"]),requestMethod:v.method,url:y});case 52:return k.cancel(),e.abrupt("return",b);case 54:t++,e.next=1;break;case 57:return e.abrupt("return",h.throwError("failed response",l.Logger.errors.SERVER_ERROR,{requestBody:g(v.body,_["content-type"]),requestMethod:v.method,url:y}));case 58:case"end":return e.stop()}}),e,null,[[3,22],[29,37]])})))}();return Promise.race([k.promise,S])}function v(e,t,n){var r=null;if(null!=t){r=Object(u.f)(t);var i="string"===typeof e?{url:e}:Object(s.shallowCopy)(e);if(i.headers)0!==Object.keys(i.headers).filter((function(e){return"content-type"===e.toLowerCase()})).length||(i.headers=Object(s.shallowCopy)(i.headers),i.headers["content-type"]="application/json");else i.headers={"content-type":"application/json"};e=i}return y(e,r,(function(e,t){var r=null;if(null!=e)try{r=JSON.parse(Object(u.h)(e))}catch(i){h.throwError("invalid JSON",l.Logger.errors.SERVER_ERROR,{body:e,error:i})}return n&&(r=n(r,t)),r}))}function m(e,t){return t||(t={}),null==(t=Object(s.shallowCopy)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(n,r){var i=null,o=!1,a=function(){return!o&&(o=!0,i&&clearTimeout(i),!0)};t.timeout&&(i=setTimeout((function(){a()&&r(new Error("timeout"))}),t.timeout));var s=t.retryLimit,u=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&n(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(++u>s)return void(a()&&r(new Error("retry limit reached")));var l=t.interval*parseInt(String(Math.random()*Math.pow(2,u)));l<t.floor&&(l=t.floor),l>t.ceiling&&(l=t.ceiling),setTimeout(i,l)}return null}),(function(e){a()&&r(e)}))}()}))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return b})),n.d(t,"d",(function(){return x})),n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return C})),n.d(t,"e",(function(){return A}));var r=n(16),i=n(17),o=n(11),a=n(13),s=n(25),u=n(7),l=n(8),c=n(84),f=new l.Logger(c.a),d={},h={calldata:!0,memory:!0,storage:!0},p={calldata:!0,memory:!0};function g(e,t){if("bytes"===e||"string"===e){if(h[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&p[t])return!0;return(h[t]||"payable"===t)&&f.throwArgumentError("invalid modifier","name",t),!1}function y(e,t){for(var n in t)Object(u.defineReadOnly)(e,n,t[n])}var v=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),m=new RegExp(/^(.*)\[([0-9]*)\]$/),b=function(){function e(t,n){Object(o.a)(this,e),t!==d&&f.throwError("use fromString",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),y(this,n);var r=this.type.match(m);y(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:e.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return Object(a.a)(e,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var n="";return"array"===this.baseType?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==v.sighash&&(n+=this.type),n+="("+this.components.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+")"):n+=this.type,e!==v.sighash&&(!0===this.indexed&&(n+=" indexed"),e===v.full&&this.name&&(n+=" "+this.name)),n}}],[{key:"from",value:function(t,n){return"string"===typeof t?e.fromString(t,n):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(d,{name:t.name||null,type:O(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,n){return function(t){return e.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(e,t){var n=e;function r(t){f.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){var n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s<e.length;s++){var u=e[s];switch(u){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||r(s),a.state.allowType=!1,a.type=O(a.type),a.components=[i(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(t||r(s),a.indexed=!0,a.name=""),g(a.type,a.name)&&(a.name=""),a.type=O(a.type);var l=a;(a=a.parent)||r(s),delete l.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(t||r(s),a.indexed=!0,a.name=""),g(a.type,a.name)&&(a.name=""),a.type=O(a.type);var c=i(a.parent);a.parent.components.push(c),delete a.parent,a=c;break;case" ":a.state.allowType&&""!==a.type&&(a.type=O(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(t||r(s),a.indexed&&r(s),a.indexed=!0,a.name=""):g(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||r(s),a.type+=u,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||r(s),a.type+=u,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=u,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=u,delete a.state.allowArray):a.state.readArray?a.type+=u:r(s)}}return a.parent&&f.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===a.name?(t||r(n.length-7),a.indexed&&r(n.length-7),a.indexed=!0,a.name=""):g(a.type,a.name)&&(a.name=""),o.type=O(o.type),o}(t,!!n))}},{key:"isParamType",value:function(e){return!(null==e||!e._isParamType)}}]),e}();function w(e,t){return function(e){e=e.trim();for(var t=[],n="",r=0,i=0;i<e.length;i++){var o=e[i];","===o&&0===r?(t.push(n),n=""):(n+=o,"("===o?r++:")"===o&&-1===--r&&f.throwArgumentError("unbalanced parenthesis","value",e))}n&&t.push(n);return t}(e).map((function(e){return b.fromString(e,t)}))}var x=function(){function e(t,n){Object(o.a)(this,e),t!==d&&f.throwError("use a static from method",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),y(this,n),this._isFragment=!0,Object.freeze(this)}return Object(a.a)(e,null,[{key:"from",value:function(t){return e.isFragment(t)?t:"string"===typeof t?e.fromString(t):e.fromObject(t)}},{key:"fromObject",value:function(t){if(e.isFragment(t))return t;switch(t.type){case"function":return A.fromObject(t);case"event":return _.fromObject(t);case"constructor":return C.fromObject(t);case"error":case"fallback":case"receive":return null}return f.throwArgumentError("invalid fragment object","value",t)}},{key:"fromString",value:function(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?_.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?A.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?C.fromString(e.trim()):f.throwArgumentError("unsupported fragment","value",e)}},{key:"isFragment",value:function(e){return!(!e||!e._isFragment)}}]),e}(),_=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==v.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ",e!==v.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isEventFragment(e))return e;"event"!==e.type&&f.throwArgumentError("invalid event object","value",e);var t={name:E(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(b.fromObject):[],type:"event"};return new n(d,t)}},{key:"fromString",value:function(e){var t=e.match(P);t||f.throwArgumentError("invalid event string","value",e);var r=!1;return t[3].split(" ").forEach((function(e){switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:f.warn("unknown modifier: "+e)}})),n.fromObject({name:t[1].trim(),anonymous:r,inputs:w(t[2],!0),type:"event"})}},{key:"isEventFragment",value:function(e){return e&&e._isFragment&&"event"===e.type}}]),n}(x);function k(e,t){t.gas=null;var n=e.split("@");return 1!==n.length?(n.length>2&&f.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=s.a.from(n[1]),n[0]):e}function S(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view"}}))}function T(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&f.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&f.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||f.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&f.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&f.throwArgumentError("unable to determine stateMutability","value",e),t}var C=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===v.sighash&&f.throwError("cannot format a constructor for sighash",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isConstructorFragment(e))return e;"constructor"!==e.type&&f.throwArgumentError("invalid constructor object","value",e);var t=T(e);t.constant&&f.throwArgumentError("constructor cannot be constant","value",e);var r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.a.from(e.gas):null};return new n(d,r)}},{key:"fromString",value:function(e){var t={type:"constructor"},r=(e=k(e,t)).match(P);return r&&"constructor"===r[1].trim()||f.throwArgumentError("invalid constructor string","value",e),t.inputs=w(r[2].trim(),!1),S(r[3].trim(),t),n.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),n}(x),A=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==v.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ",e!==v.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isFunctionFragment(e))return e;"function"!==e.type&&f.throwArgumentError("invalid function object","value",e);var t=T(e),r={type:e.type,name:E(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(b.fromObject):[],outputs:e.outputs?e.outputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.a.from(e.gas):null};return new n(d,r)}},{key:"fromString",value:function(e){var t={type:"function"},r=(e=k(e,t)).split(" returns ");r.length>2&&f.throwArgumentError("invalid function string","value",e);var i=r[0].match(P);if(i||f.throwArgumentError("invalid function signature","value",e),t.name=i[1].trim(),t.name&&E(t.name),t.inputs=w(i[2],!1),S(i[3].trim(),t),r.length>1){var o=r[1].match(P);""==o[1].trim()&&""==o[3].trim()||f.throwArgumentError("unexpected tokens","value",e),t.outputs=w(o[2],!1)}else t.outputs=[];return n.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),n}(C);function O(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var M=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function E(e){return e&&e.match(M)||f.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var P=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},function(e,t,n){"use strict";n.r(t),n.d(t,"get",(function(){return l})),n.d(t,"createParser",(function(){return c})),n.d(t,"createStyleFunction",(function(){return h})),n.d(t,"compose",(function(){return g})),n.d(t,"system",(function(){return p})),n.d(t,"margin",(function(){return V})),n.d(t,"padding",(function(){return H})),n.d(t,"space",(function(){return U})),n.d(t,"color",(function(){return b})),n.d(t,"layout",(function(){return y})),n.d(t,"typography",(function(){return x})),n.d(t,"flexbox",(function(){return k})),n.d(t,"border",(function(){return M})),n.d(t,"background",(function(){return I})),n.d(t,"position",(function(){return R})),n.d(t,"grid",(function(){return C})),n.d(t,"shadow",(function(){return G})),n.d(t,"boxShadow",(function(){return J})),n.d(t,"textShadow",(function(){return J})),n.d(t,"variant",(function(){return W})),n.d(t,"buttonStyle",(function(){return q})),n.d(t,"textStyle",(function(){return Z})),n.d(t,"colorStyle",(function(){return K})),n.d(t,"borders",(function(){return E})),n.d(t,"width",(function(){return Y})),n.d(t,"height",(function(){return $})),n.d(t,"minWidth",(function(){return Q})),n.d(t,"minHeight",(function(){return ee})),n.d(t,"maxWidth",(function(){return te})),n.d(t,"maxHeight",(function(){return ne})),n.d(t,"size",(function(){return re})),n.d(t,"verticalAlign",(function(){return ie})),n.d(t,"display",(function(){return oe})),n.d(t,"overflow",(function(){return ae})),n.d(t,"overflowX",(function(){return se})),n.d(t,"overflowY",(function(){return ue})),n.d(t,"opacity",(function(){return le})),n.d(t,"fontSize",(function(){return ce})),n.d(t,"fontFamily",(function(){return fe})),n.d(t,"fontWeight",(function(){return de})),n.d(t,"lineHeight",(function(){return he})),n.d(t,"textAlign",(function(){return pe})),n.d(t,"fontStyle",(function(){return ge})),n.d(t,"letterSpacing",(function(){return ye})),n.d(t,"alignItems",(function(){return ve})),n.d(t,"alignContent",(function(){return me})),n.d(t,"justifyItems",(function(){return be})),n.d(t,"justifyContent",(function(){return we})),n.d(t,"flexWrap",(function(){return xe})),n.d(t,"flexDirection",(function(){return _e})),n.d(t,"flex",(function(){return ke})),n.d(t,"flexGrow",(function(){return Se})),n.d(t,"flexShrink",(function(){return Te})),n.d(t,"flexBasis",(function(){return Ce})),n.d(t,"justifySelf",(function(){return Ae})),n.d(t,"alignSelf",(function(){return Oe})),n.d(t,"order",(function(){return Me})),n.d(t,"gridGap",(function(){return Ee})),n.d(t,"gridColumnGap",(function(){return Pe})),n.d(t,"gridRowGap",(function(){return Ie})),n.d(t,"gridColumn",(function(){return De})),n.d(t,"gridRow",(function(){return Le})),n.d(t,"gridAutoFlow",(function(){return Re})),n.d(t,"gridAutoColumns",(function(){return Ne})),n.d(t,"gridAutoRows",(function(){return je})),n.d(t,"gridTemplateColumns",(function(){return Be})),n.d(t,"gridTemplateRows",(function(){return Fe})),n.d(t,"gridTemplateAreas",(function(){return ze})),n.d(t,"gridArea",(function(){return Ve})),n.d(t,"borderWidth",(function(){return He})),n.d(t,"borderStyle",(function(){return Ue})),n.d(t,"borderColor",(function(){return Ge})),n.d(t,"borderTop",(function(){return Je})),n.d(t,"borderRight",(function(){return Xe})),n.d(t,"borderBottom",(function(){return We})),n.d(t,"borderLeft",(function(){return qe})),n.d(t,"borderRadius",(function(){return Ze})),n.d(t,"backgroundImage",(function(){return Ke})),n.d(t,"backgroundSize",(function(){return Ye})),n.d(t,"backgroundPosition",(function(){return $e})),n.d(t,"backgroundRepeat",(function(){return Qe})),n.d(t,"zIndex",(function(){return et})),n.d(t,"top",(function(){return tt})),n.d(t,"right",(function(){return nt})),n.d(t,"bottom",(function(){return rt})),n.d(t,"left",(function(){return it})),n.d(t,"style",(function(){return ot}));var r=n(63),i=n.n(r),o=function(e,t){var n=i()({},e,t);for(var r in e){var o;e[r]&&"object"===typeof t[r]&&i()(n,((o={})[r]=i()(e[r],t[r]),o))}return n},a={breakpoints:[40,52,64].map((function(e){return e+"em"}))},s=function(e){return"@media screen and (min-width: "+e+")"},u=function(e,t){return l(t,e,e)},l=function(e,t,n,r,i){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e},c=function e(t){var n={},r=function(e){var r={},u=!1,c=e.theme&&e.theme.disableStyledSystemCache;for(var h in e)if(t[h]){var p=t[h],g=e[h],y=l(e.theme,p.scale,p.defaults);if("object"!==typeof g)i()(r,p(g,y,e));else{if(n.breakpoints=!c&&n.breakpoints||l(e.theme,"breakpoints",a.breakpoints),Array.isArray(g)){n.media=!c&&n.media||[null].concat(n.breakpoints.map(s)),r=o(r,f(n.media,p,y,g,e));continue}null!==g&&(r=o(r,d(n.breakpoints,p,y,g,e)),u=!0)}}return u&&(r=function(e){var t={};return Object.keys(e).sort((function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(n){t[n]=e[n]})),t}(r)),r};r.config=t,r.propNames=Object.keys(t),r.cache=n;var u=Object.keys(t).filter((function(e){return"config"!==e}));return u.length>1&&u.forEach((function(n){var i;r[n]=e(((i={})[n]=t[n],i))})),r},f=function(e,t,n,r,o){var a={};return r.slice(0,e.length).forEach((function(r,s){var u,l=e[s],c=t(r,n,o);l?i()(a,((u={})[l]=i()({},a[l],c),u)):i()(a,c)})),a},d=function(e,t,n,r,o){var a={};for(var u in r){var l=e[u],c=t(r[u],n,o);if(l){var f,d=s(l);i()(a,((f={})[d]=i()({},a[d],c),f))}else i()(a,c)}return a},h=function(e){var t=e.properties,n=e.property,r=e.scale,i=e.transform,o=void 0===i?u:i,a=e.defaultScale;t=t||[n];var s=function(e,n,r){var i={},a=o(e,n,r);if(null!==a)return t.forEach((function(e){i[e]=a})),i};return s.scale=r,s.defaults=a,s},p=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]=!0!==r?"function"!==typeof r?h(r):r:h({property:n,scale:n})})),c(t)},g=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){t&&t.config&&i()(e,t.config)}));var o=c(e);return o},y=p({width:{property:"width",scale:"sizes",transform:function(e,t){return l(t,e,!function(e){return"number"===typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),v=y,m={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};m.bg=m.backgroundColor;var b=p(m),w=b,x=p({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),_=x,k=p({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),S=k,T={space:[0,4,8,16,32,64,128,256,512]},C=p({gridGap:{property:"gridGap",scale:"space",defaultScale:T.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:T.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:T.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),A=C,O={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};O.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},O.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},O.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},O.borderBottomColor={property:"borderBottomColor",scale:"colors"},O.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},O.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},O.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},O.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},O.borderLeftColor={property:"borderLeftColor",scale:"colors"},O.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},O.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},O.borderRightColor={property:"borderRightColor",scale:"colors"},O.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var M=p(O),E=M,P={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};P.bgImage=P.backgroundImage,P.bgSize=P.backgroundSize,P.bgPosition=P.backgroundPosition,P.bgRepeat=P.backgroundRepeat;var I=p(P),D=I,L={space:[0,4,8,16,32,64,128,256,512]},R=p({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:L.space},right:{property:"right",scale:"space",defaultScale:L.space},bottom:{property:"bottom",scale:"space",defaultScale:L.space},left:{property:"left",scale:"space",defaultScale:L.space}}),N=R,j={space:[0,4,8,16,32,64,128,256,512]},B=function(e){return"number"===typeof e&&!isNaN(e)},F=function(e,t){if(!B(e))return l(t,e,e);var n=e<0,r=Math.abs(e),i=l(t,r,r);return B(i)?i*(n?-1:1):n?"-"+i:i},z={};z.margin={margin:{property:"margin",scale:"space",transform:F,defaultScale:j.space},marginTop:{property:"marginTop",scale:"space",transform:F,defaultScale:j.space},marginRight:{property:"marginRight",scale:"space",transform:F,defaultScale:j.space},marginBottom:{property:"marginBottom",scale:"space",transform:F,defaultScale:j.space},marginLeft:{property:"marginLeft",scale:"space",transform:F,defaultScale:j.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:F,defaultScale:j.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:F,defaultScale:j.space}},z.margin.m=z.margin.margin,z.margin.mt=z.margin.marginTop,z.margin.mr=z.margin.marginRight,z.margin.mb=z.margin.marginBottom,z.margin.ml=z.margin.marginLeft,z.margin.mx=z.margin.marginX,z.margin.my=z.margin.marginY,z.padding={padding:{property:"padding",scale:"space",defaultScale:j.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:j.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:j.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:j.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:j.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:j.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:j.space}},z.padding.p=z.padding.padding,z.padding.pt=z.padding.paddingTop,z.padding.pr=z.padding.paddingRight,z.padding.pb=z.padding.paddingBottom,z.padding.pl=z.padding.paddingLeft,z.padding.px=z.padding.paddingX,z.padding.py=z.padding.paddingY;var V=p(z.margin),H=p(z.padding),U=g(V,H),G=p({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}}),J=G,X=n(155),W=function(e){var t,n,r=e.scale,i=e.prop,o=void 0===i?"variant":i,a=e.variants,s=void 0===a?{}:a,u=e.key;(n=Object.keys(s).length?function(e,t,n){return Object(X.default)(l(t,e,null))(n.theme)}:function(e,t){return l(t,e,null)}).scale=r||u,n.defaults=s;var f=((t={})[o]=n,t);return c(f)},q=W({key:"buttons"}),Z=W({key:"textStyles",prop:"textStyle"}),K=W({key:"colorStyles",prop:"colors"}),Y=v.width,$=v.height,Q=v.minWidth,ee=v.minHeight,te=v.maxWidth,ne=v.maxHeight,re=v.size,ie=v.verticalAlign,oe=v.display,ae=v.overflow,se=v.overflowX,ue=v.overflowY,le=w.opacity,ce=_.fontSize,fe=_.fontFamily,de=_.fontWeight,he=_.lineHeight,pe=_.textAlign,ge=_.fontStyle,ye=_.letterSpacing,ve=S.alignItems,me=S.alignContent,be=S.justifyItems,we=S.justifyContent,xe=S.flexWrap,_e=S.flexDirection,ke=S.flex,Se=S.flexGrow,Te=S.flexShrink,Ce=S.flexBasis,Ae=S.justifySelf,Oe=S.alignSelf,Me=S.order,Ee=A.gridGap,Pe=A.gridColumnGap,Ie=A.gridRowGap,De=A.gridColumn,Le=A.gridRow,Re=A.gridAutoFlow,Ne=A.gridAutoColumns,je=A.gridAutoRows,Be=A.gridTemplateColumns,Fe=A.gridTemplateRows,ze=A.gridTemplateAreas,Ve=A.gridArea,He=E.borderWidth,Ue=E.borderStyle,Ge=E.borderColor,Je=E.borderTop,Xe=E.borderRight,We=E.borderBottom,qe=E.borderLeft,Ze=E.borderRadius,Ke=D.backgroundImage,Ye=D.backgroundSize,$e=D.backgroundPosition,Qe=D.backgroundRepeat,et=N.zIndex,tt=N.top,nt=N.right,rt=N.bottom,it=N.left,ot=function(e){var t=e.prop,n=e.cssProperty,r=e.alias,i=e.key,o=e.transformValue,a=e.scale,s=e.properties,u={};return u[t]=h({properties:s,property:n||t,scale:i,defaultScale:a,transform:o}),r&&(u[r]=u[t]),c(u)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(42);function i(e,t,n){return(i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}},function(e,t,n){var r=n(68);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return m}));var r=n(11),i=n(13),o=n(28),a=n(25),s=n(5),u=n(207),l=n(7),c=n(36),f=n(8),d=n(34),h=new f.Logger(d.a),p=function(){function e(){Object(r.a)(this,e),h.checkNew(this instanceof e?this.constructor:void 0,e),this.formats=this.getDefaultFormats()}return Object(i.a)(e,[{key:"getDefaultFormats",value:function(){var t=this,n={},r=this.address.bind(this),i=this.bigNumber.bind(this),o=this.blockTag.bind(this),a=this.data.bind(this),s=this.hash.bind(this),u=this.hex.bind(this),c=this.number.bind(this);return n.transaction={hash:s,type:e.allowNull(c,null),accessList:e.allowNull(this.accessList.bind(this),null),blockHash:e.allowNull(s,null),blockNumber:e.allowNull(c,null),transactionIndex:e.allowNull(c,null),confirmations:e.allowNull(c,null),from:r,gasPrice:i,gasLimit:i,to:e.allowNull(r,null),value:i,nonce:c,data:a,r:e.allowNull(this.uint256),s:e.allowNull(this.uint256),v:e.allowNull(c),creates:e.allowNull(r,null),raw:e.allowNull(a)},n.transactionRequest={from:e.allowNull(r),nonce:e.allowNull(c),gasLimit:e.allowNull(i),gasPrice:e.allowNull(i),to:e.allowNull(r),value:e.allowNull(i),data:e.allowNull((function(e){return t.data(e,!0)})),type:e.allowNull(c),accessList:e.allowNull(this.accessList.bind(this),null)},n.receiptLog={transactionIndex:c,blockNumber:c,transactionHash:s,address:r,topics:e.arrayOf(s),data:a,logIndex:c,blockHash:s},n.receipt={to:e.allowNull(this.address,null),from:e.allowNull(this.address,null),contractAddress:e.allowNull(r,null),transactionIndex:c,root:e.allowNull(u),gasUsed:i,logsBloom:e.allowNull(a),blockHash:s,transactionHash:s,logs:e.arrayOf(this.receiptLog.bind(this)),blockNumber:c,confirmations:e.allowNull(c,null),cumulativeGasUsed:i,status:e.allowNull(c)},n.block={hash:s,parentHash:s,number:c,timestamp:c,nonce:e.allowNull(u),difficulty:this.difficulty.bind(this),gasLimit:i,gasUsed:i,miner:r,extraData:a,transactions:e.allowNull(e.arrayOf(s))},n.blockWithTransactions=Object(l.shallowCopy)(n.block),n.blockWithTransactions.transactions=e.allowNull(e.arrayOf(this.transactionResponse.bind(this))),n.filter={fromBlock:e.allowNull(o,void 0),toBlock:e.allowNull(o,void 0),blockHash:e.allowNull(s,void 0),address:e.allowNull(r,void 0),topics:e.allowNull(this.topics.bind(this),void 0)},n.filterLog={blockNumber:e.allowNull(c),blockHash:e.allowNull(s),transactionIndex:c,removed:e.allowNull(this.boolean.bind(this)),address:r,data:e.allowFalsish(a,"0x"),topics:e.arrayOf(s),transactionHash:s,logIndex:c},n}},{key:"accessList",value:function(e){return Object(c.accessListify)(e||[])}},{key:"number",value:function(e){return"0x"===e?0:a.a.from(e).toNumber()}},{key:"bigNumber",value:function(e){return a.a.from(e)}},{key:"boolean",value:function(e){if("boolean"===typeof e)return e;if("string"===typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}},{key:"hex",value:function(e,t){return"string"===typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),Object(s.isHexString)(e))?e.toLowerCase():h.throwArgumentError("invalid hash","value",e)}},{key:"data",value:function(e,t){var n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}},{key:"address",value:function(e){return Object(o.getAddress)(e)}},{key:"callAddress",value:function(e){if(!Object(s.isHexString)(e,32))return null;var t=Object(o.getAddress)(Object(s.hexDataSlice)(e,12));return t===u.a?null:t}},{key:"contractAddress",value:function(e){return Object(o.getContractAddress)(e)}},{key:"blockTag",value:function(e){if(null==e)return"latest";if("earliest"===e)return"0x0";if("latest"===e||"pending"===e)return e;if("number"===typeof e||Object(s.isHexString)(e))return Object(s.hexValue)(e);throw new Error("invalid blockTag")}},{key:"hash",value:function(e,t){var n=this.hex(e,t);return 32!==Object(s.hexDataLength)(n)?h.throwArgumentError("invalid hash","value",e):n}},{key:"difficulty",value:function(e){if(null==e)return null;var t=a.a.from(e);try{return t.toNumber()}catch(n){}return null}},{key:"uint256",value:function(e){if(!Object(s.isHexString)(e))throw new Error("invalid uint256");return Object(s.hexZeroPad)(e,32)}},{key:"_block",value:function(t,n){return null!=t.author&&null==t.miner&&(t.miner=t.author),e.check(n,t)}},{key:"block",value:function(e){return this._block(e,this.formats.block)}},{key:"blockWithTransactions",value:function(e){return this._block(e,this.formats.blockWithTransactions)}},{key:"transactionRequest",value:function(t){return e.check(this.formats.transactionRequest,t)}},{key:"transactionResponse",value:function(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&a.a.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1===t.type&&null==t.accessList&&(t.accessList=[]);var n=e.check(this.formats.transaction,t);if(null!=t.chainId){var r=t.chainId;Object(s.isHexString)(r)&&(r=a.a.from(r).toNumber()),n.chainId=r}else{var i=t.networkId;null==i&&null==n.v&&(i=t.chainId),Object(s.isHexString)(i)&&(i=a.a.from(i).toNumber()),"number"!==typeof i&&null!=n.v&&((i=(n.v-35)/2)<0&&(i=0),i=parseInt(i)),"number"!==typeof i&&(i=0),n.chainId=i}return n.blockHash&&"x"===n.blockHash.replace(/0/g,"")&&(n.blockHash=null),n}},{key:"transaction",value:function(e){return Object(c.parse)(e)}},{key:"receiptLog",value:function(t){return e.check(this.formats.receiptLog,t)}},{key:"receipt",value:function(t){var n=e.check(this.formats.receipt,t);if(null!=n.root)if(n.root.length<=4){var r=a.a.from(n.root).toNumber();0===r||1===r?(null!=n.status&&n.status!==r&&h.throwArgumentError("alt-root-status/status mismatch","value",{root:n.root,status:n.status}),n.status=r,delete n.root):h.throwArgumentError("invalid alt-root-status","value.root",n.root)}else 66!==n.root.length&&h.throwArgumentError("invalid root hash","value.root",n.root);return null!=n.status&&(n.byzantium=!0),n}},{key:"topics",value:function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.topics(e)})):null!=e?this.hash(e,!0):null}},{key:"filter",value:function(t){return e.check(this.formats.filter,t)}},{key:"filterLog",value:function(t){return e.check(this.formats.filterLog,t)}}],[{key:"check",value:function(e,t){var n={};for(var r in e)try{var i=e[r](t[r]);void 0!==i&&(n[r]=i)}catch(o){throw o.checkKey=r,o.checkValue=t[r],o}return n}},{key:"allowNull",value:function(e,t){return function(n){return null==n?t:e(n)}}},{key:"allowFalsish",value:function(e,t){return function(n){return n?e(n):t}}},{key:"arrayOf",value:function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach((function(t){n.push(e(t))})),n}}}]),e}();function g(e){return e&&"function"===typeof e.isCommunityResource}function y(e){return g(e)&&e.isCommunityResource()}var v=!1;function m(){v||(v=!0)}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e){e.exports=JSON.parse('{"a":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"reserve0","type":"uint112"},{"internalType":"uint112","name":"reserve1","type":"uint112"},{"internalType":"uint32","name":"blockTimestampLast","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"kLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[],"name":"sync","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]}')},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r,a=new(n(358)),s=a.getBrowser(),u=(a.getCPU(),a.getDevice()),l=a.getEngine(),c=a.getOS(),f=a.getUA(),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},h=function(){return!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},p=function(e){var t=h();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)};function g(e){return(g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var S="mobile",T="tablet",C="smarttv",A="console",O="wearable",M=void 0,E={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},P={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},I={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},D=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(n,!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:d(t.vendor),model:d(t.model),os:d(n.name),osVersion:d(n.version),ua:d(r)})},L=function(e){switch(e){case S:return{isMobile:!0};case T:return{isTablet:!0};case C:return{isSmartTV:!0};case A:return{isConsole:!0};case O:return{isWearable:!0};case M:return{isBrowser:!0};default:return I}}(u.type);var R=function(){return"string"===typeof f&&-1!==f.indexOf("Edg/")},N=function(){return u.type===M},j=function(){return s.name===E.Edge},B=function(){return p("iPad")},F=u.type===C,z=u.type===A,V=u.type===O,H=s.name===E.MobileSafari||B(),U=s.name===E.Chromium,G=function(){switch(u.type){case S:case T:return!0;default:return!1}}()||B(),J=u.type===S,X=u.type===T||B(),W=N(),q=N(),Z=c.name===P.Android,K=c.name===P.WindowsPhone,Y=c.name===P.IOS||B(),$=s.name===E.Chrome,Q=s.name===E.Firefox,ee=s.name===E.Safari||s.name===E.MobileSafari,te=s.name===E.Opera,ne=s.name===E.InternetExplorer||s.name===E.Ie,re=d(c.version),ie=d(c.name),oe=d(s.version),ae=d(s.major),se=d(s.name),ue=d(u.vendor),le=d(u.model),ce=d(l.name),fe=d(l.version),de=d(f),he=j()||R(),pe=s.name===E.Yandex,ge=d(u.type,"browser"),ye=function(){var e=h();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream}(),ve=B(),me=p("iPhone"),be=p("iPod"),we=function(){var e=h(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"===typeof t&&/electron/.test(t)}(),xe=R(),_e=j()&&!R(),ke=c.name===P.Windows,Se=c.name===P.MAC_OS,Te=s.name===E.MIUI,Ce=s.name===E.SamsungBrowser;t.AndroidView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return Z?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.BrowserTypes=E,t.BrowserView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return W?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.ConsoleView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return z?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.CustomView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=e.condition,u=_(e,["renderWithFragment","children","viewClassName","style","condition"]);return s?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},u),n):null},t.IEView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return ne?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.IOSView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return Y?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.MobileOnlyView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return J?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.MobileView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return G?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.OsTypes=P,t.SmartTVView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return F?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.TabletView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return X?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.WearableView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return V?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.WinPhoneView=function(e){var t=e.renderWithFragment,n=e.children,r=e.viewClassName,a=e.style,s=_(e,["renderWithFragment","children","viewClassName","style"]);return K?t?o.createElement(i.Fragment,null,n):o.createElement("div",m({className:r,style:a},s),n):null},t.browserName=se,t.browserVersion=ae,t.deviceDetect=function(){var e=L.isBrowser,t=L.isMobile,n=L.isTablet,r=L.isSmartTV,i=L.isConsole,o=L.isWearable;return e?function(e,t,n,r,i){return{isBrowser:e,browserMajorVersion:d(t.major),browserFullVersion:d(t.version),browserName:d(t.name),engineName:d(n.name),engineVersion:d(n.version),osName:d(r.name),osVersion:d(r.version),userAgent:d(i)}}(e,s,l,c,f):r?function(e,t,n,r){return{isSmartTV:e,engineName:d(t.name),engineVersion:d(t.version),osName:d(n.name),osVersion:d(n.version),userAgent:d(r)}}(r,l,c,f):i?function(e,t,n,r){return{isConsole:e,engineName:d(t.name),engineVersion:d(t.version),osName:d(n.name),osVersion:d(n.version),userAgent:d(r)}}(i,l,c,f):t||n?D(L,u,c,f):o?function(e,t,n,r){return{isWearable:e,engineName:d(t.name),engineVersion:d(t.version),osName:d(n.name),osVersion:d(n.version),userAgent:d(r)}}(o,l,c,f):void 0},t.deviceType=ge,t.engineName=ce,t.engineVersion=fe,t.fullBrowserVersion=oe,t.getUA=de,t.isAndroid=Z,t.isBrowser=W,t.isChrome=$,t.isChromium=U,t.isConsole=z,t.isDesktop=q,t.isEdge=he,t.isEdgeChromium=xe,t.isElectron=we,t.isFirefox=Q,t.isIE=ne,t.isIOS=Y,t.isIOS13=ye,t.isIPad13=ve,t.isIPhone13=me,t.isIPod13=be,t.isLegacyEdge=_e,t.isMIUI=Te,t.isMacOs=Se,t.isMobile=G,t.isMobileOnly=J,t.isMobileSafari=H,t.isOpera=te,t.isSafari=ee,t.isSamsungBrowser=Ce,t.isSmartTV=F,t.isTablet=X,t.isWearable=V,t.isWinPhone=K,t.isWindows=ke,t.isYandex=pe,t.mobileModel=le,t.mobileVendor=ue,t.osName=ie,t.osVersion=re,t.withOrientationChange=function(e){return function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?k(e):t}(this,w(n).call(this,e))).isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(k(t)),t.onOrientationChange=t.onOrientationChange.bind(k(t)),t.onPageLoad=t.onPageLoad.bind(k(t)),t.state={isLandscape:!1,isPortrait:!1},t}var r,i,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(n,t),r=n,(i=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){void 0!==("undefined"===typeof window?"undefined":g(window))&&G&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return o.createElement(e,m({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}])&&y(r.prototype,i),a&&y(r,a),n}(o.Component)}},function(e,t,n){"use strict";n.r(t),n.d(t,"SigningKey",(function(){return f})),n.d(t,"recoverPublicKey",(function(){return d})),n.d(t,"computePublicKey",(function(){return h}));var r=n(11),i=n(13),o=n(289),a=n(5),s=n(7),u=new(n(8).Logger)("signing-key/5.1.0"),l=null;function c(){return l||(l=new o.a("secp256k1")),l}var f=function(){function e(t){Object(r.a)(this,e),Object(s.defineReadOnly)(this,"curve","secp256k1"),Object(s.defineReadOnly)(this,"privateKey",Object(a.hexlify)(t));var n=c().keyFromPrivate(Object(a.arrayify)(this.privateKey));Object(s.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),Object(s.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),Object(s.defineReadOnly)(this,"_isSigningKey",!0)}return Object(i.a)(e,[{key:"_addPoint",value:function(e){var t=c().keyFromPublic(Object(a.arrayify)(this.publicKey)),n=c().keyFromPublic(Object(a.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=c().keyFromPrivate(Object(a.arrayify)(this.privateKey)),n=Object(a.arrayify)(e);32!==n.length&&u.throwArgumentError("bad digest length","digest",e);var r=t.sign(n,{canonical:!0});return Object(a.splitSignature)({recoveryParam:r.recoveryParam,r:Object(a.hexZeroPad)("0x"+r.r.toString(16),32),s:Object(a.hexZeroPad)("0x"+r.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=c().keyFromPrivate(Object(a.arrayify)(this.privateKey)),n=c().keyFromPublic(Object(a.arrayify)(h(e)));return Object(a.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function d(e,t){var n=Object(a.splitSignature)(t),r={r:Object(a.arrayify)(n.r),s:Object(a.arrayify)(n.s)};return"0x"+c().recoverPubKey(Object(a.arrayify)(e),r,n.recoveryParam).encode("hex",!1)}function h(e,t){var n=Object(a.arrayify)(e);if(32===n.length){var r=new f(n);return t?"0x"+c().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}return 33===n.length?t?Object(a.hexlify)(n):"0x"+c().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+c().keyFromPublic(n).getPublic(!0,"hex"):Object(a.hexlify)(n):u.throwArgumentError("invalid public or private key","key","[REDACTED]")}},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))i.call(n,c)&&(u[c]=n[c]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return p}));var r=n(0),i=n.n(r),o=(n(194),u()?i.a.useLayoutEffect:i.a.useEffect),a=d;"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math&&self;function s(e,t){if(null!=e)if(c(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function u(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function l(e){return e&&e.ownerDocument?e.ownerDocument:u()?document:null}function c(e){return!(!e||"[object Function]"!={}.toString.call(e))}function f(e){return"string"===typeof e}function d(){}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.useMemo)((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){s(t,e)}))}}),[].concat(t))}function p(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}},function(e,t,n){"use strict";var r=n(275),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"AddressZero",(function(){return r.a})),n.d(t,"NegativeOne",(function(){return i.b})),n.d(t,"Zero",(function(){return i.f})),n.d(t,"One",(function(){return i.c})),n.d(t,"Two",(function(){return i.d})),n.d(t,"WeiPerEther",(function(){return i.e})),n.d(t,"MaxUint256",(function(){return i.a})),n.d(t,"HashZero",(function(){return o.a})),n.d(t,"EtherSymbol",(function(){return a}));var r=n(207),i=n(107),o=n(163),a="\u039e"},function(e,t,n){"use strict";n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return L}));var r=n(54),i=n(42),o=n(4),a=n.n(o),s=n(11),u=n(13),l=n(24),c=n(16),f=n(17),d=n(76),h=n(25),p=n(5),g=n(160),y=n(7),v=n(37),m=n(36),b=n(51),w=n(8),x=n(34),_=n(89),k=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},S=new w.Logger(x.a),T=["call","estimateGas"];function C(e,t,n){if("call"===e&&t.code===w.Logger.errors.SERVER_ERROR){var r=t.error;if(r&&r.message.match("reverted")&&Object(p.isHexString)(r.data))return r.data}var i=t.message;t.code===w.Logger.errors.SERVER_ERROR&&t.error&&"string"===typeof t.error.message?i=t.error.message:"string"===typeof t.body?i=t.body:"string"===typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase();var o=n.transaction||n.signedTransaction;throw i.match(/insufficient funds/)&&S.throwError("insufficient funds for intrinsic transaction cost",w.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:o}),i.match(/nonce too low/)&&S.throwError("nonce has already been used",w.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:o}),i.match(/replacement transaction underpriced/)&&S.throwError("replacement fee too low",w.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:o}),i.match(/only replay-protected/)&&S.throwError("legacy pre-eip-155 transactions not supported",w.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:o}),T.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&S.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",w.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:o}),t}function A(e){return new Promise((function(t){setTimeout(t,e)}))}function O(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function M(e){return e?e.toLowerCase():e}var E={},P=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e,r,i){var o;if(Object(s.a)(this,n),S.checkNew(this instanceof n?this.constructor:void 0,n),o=t.call(this),e!==E)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return Object(y.defineReadOnly)(Object(l.a)(o),"provider",r),null==i&&(i=0),"string"===typeof i?(Object(y.defineReadOnly)(Object(l.a)(o),"_address",o.provider.formatter.address(i)),Object(y.defineReadOnly)(Object(l.a)(o),"_index",null)):"number"===typeof i?(Object(y.defineReadOnly)(Object(l.a)(o),"_index",i),Object(y.defineReadOnly)(Object(l.a)(o),"_address",null)):S.throwArgumentError("invalid address or index","addressOrIndex",i),o}return Object(u.a)(n,[{key:"connect",value:function(e){return S.throwError("cannot alter JSON-RPC Signer connection",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new I(E,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&S.throwError("unknown account #"+e._index,w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this;e=Object(y.shallowCopy)(e);var n=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var r=Object(y.shallowCopy)(e);r.from=n,e.gasLimit=this.provider.estimateGas(r)}return Object(y.resolveProperties)({tx:Object(y.resolveProperties)(e),sender:n}).then((function(n){var r=n.tx,i=n.sender;null!=r.from?r.from.toLowerCase()!==i&&S.throwArgumentError("from address mismatch","transaction",e):r.from=i;var o=t.provider.constructor.hexlifyTransaction(r,{from:!0});return t.provider.send("eth_sendTransaction",[o]).then((function(e){return e}),(function(e){return C("sendTransaction",e,o)}))}))}},{key:"signTransaction",value:function(e){return S.throwError("signing transactions is unsupported",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return Object(b.poll)((function(){return t.provider.getTransaction(e).then((function(n){if(null!==n)return t.provider._wrapTransaction(n,e)}))}),{onceBlock:t.provider}).catch((function(t){throw t.transactionHash=e,t}))}))}},{key:"signMessage",value:function(e){return k(this,void 0,void 0,a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="string"===typeof e?Object(v.f)(e):e,t.next=3,this.getAddress();case 3:return r=t.sent,t.next=6,this.provider.send("eth_sign",[r.toLowerCase(),Object(p.hexlify)(n)]);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,n){return k(this,void 0,void 0,a.a.mark((function r(){var i,o,s=this;return a.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,g.a.resolveNames(e,t,n,(function(e){return s.provider.resolveName(e)}));case 2:return i=r.sent,r.next=5,this.getAddress();case 5:return o=r.sent,r.next=8,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(g.a.getPayload(i.domain,t,i.value))]);case 8:return r.abrupt("return",r.sent);case 9:case"end":return r.stop()}}),r,this)})))}},{key:"unlock",value:function(e){return k(this,void 0,void 0,a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.provider,t.next=3,this.getAddress();case 3:return r=t.sent,t.abrupt("return",n.send("personal_unlockAccount",[r.toLowerCase(),e,null]));case 5:case"end":return t.stop()}}),t,this)})))}}]),n}(d.a),I=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(u.a)(n,[{key:"sendTransaction",value:function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(n){return t.provider.waitForTransaction(e,n)}}}))}}]),n}(P),D={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0},L=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e,r){var i;Object(s.a)(this,n),S.checkNew(this instanceof n?this.constructor:void 0,n);var o=r;return null==o&&(o=new Promise((function(e,t){setTimeout((function(){i.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),i=t.call(this,o),e||(e=Object(y.getStatic)(i.constructor,"defaultUrl")()),"string"===typeof e?Object(y.defineReadOnly)(Object(l.a)(i),"connection",Object.freeze({url:e})):Object(y.defineReadOnly)(Object(l.a)(i),"connection",Object.freeze(Object(y.shallowCopy)(e))),i._nextId=42,i}return Object(u.a)(n,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return k(this,void 0,void 0,a.a.mark((function e(){var t,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A(0);case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]);case 6:t=e.sent,e.next=19;break;case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]);case 14:t=e.sent,e.next=19;break;case 17:e.prev=17,e.t1=e.catch(11);case 19:if(null==t){e.next=28;break}return n=Object(y.getStatic)(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",n(h.a.from(t).toNumber()));case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",S.throwError("could not detect network",w.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2}));case 28:return e.abrupt("return",S.throwError("could not detect network",w.Logger.errors.NETWORK_ERROR,{event:"noNetwork"}));case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new P(E,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var n=this,r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Object(y.deepCopy)(r),provider:this});var i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];var o=Object(b.fetchJson)(this.connection,JSON.stringify(r),O).then((function(e){return n.emit("debug",{action:"response",request:r,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",error:e,request:r,provider:n}),e}));return i&&(this._cache[e]=o,setTimeout((function(){n._cache[e]=null}),0)),o}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[M(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[M(t.address),t.blockTag]];case"getCode":return["eth_getCode",[M(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[M(t.address),t.position,t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[Object(y.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[Object(y.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=M(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return k(this,void 0,void 0,a.a.mark((function n(){var r;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==(r=this.prepareRequest(e,t))&&S.throwError(e+" not implemented",w.Logger.errors.NOT_IMPLEMENTED,{operation:e}),n.prev=2,n.next=5,this.send(r[0],r[1]);case 5:return n.abrupt("return",n.sent);case 8:return n.prev=8,n.t0=n.catch(2),n.abrupt("return",C(e,n.t0,t));case 11:case"end":return n.stop()}}),n,this,[[2,8]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),Object(r.a)(Object(i.a)(n.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;var r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return A(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch((function(e){}))}(),n})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),Object(r.a)(Object(i.a)(n.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var n=Object(y.shallowCopy)(D);if(t)for(var r in t)t[r]&&(n[r]=!0);Object(y.checkProperties)(e,n);var i={};return["gasLimit","gasPrice","type","nonce","value"].forEach((function(t){if(null!=e[t]){var n=Object(p.hexValue)(e[t]);"gasLimit"===t&&(t="gas"),i[t]=n}})),["from","to","data"].forEach((function(t){null!=e[t]&&(i[t]=Object(p.hexlify)(e[t]))})),e.accessList&&(i.accessList=Object(m.accessListify)(e.accessList)),i}}]),n}(_.a)},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(235),i=n(77);var o=function(e){var t,n;function r(t){var n,r=(void 0===t?{}:t).supportedChainIds;return(n=e.call(this)||this).supportedChainIds=r,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.emitUpdate=function(e){this.emit(i.a.Update,e)},o.emitError=function(e){this.emit(i.a.Error,e)},o.emitDeactivate=function(){this.emit(i.a.Deactivate)},r}(r.EventEmitter)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n(11),i=n(13),o=n(16),a=n(17),s=(n(5),n(7)),u=new(n(8).Logger)("abstract-provider/5.1.0"),l=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,null,[{key:"isForkEvent",value:function(e){return!(!e||!e._isForkEvent)}}]),n}(s.Description),c=function(){function e(){Object(r.a)(this,e),u.checkAbstract(this instanceof e?this.constructor:void 0,e),Object(s.defineReadOnly)(this,"_isProvider",!0)}return Object(i.a)(e,[{key:"addListener",value:function(e,t){return this.on(e,t)}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"isProvider",value:function(e){return!(!e||!e._isProvider)}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"encode",(function(){return u})),n.d(t,"decode",(function(){return f}));var r=n(5),i=n(8),o=new i.Logger("rlp/5.1.0");function a(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function s(e,t,n){for(var r=0,i=0;i<n;i++)r=256*r+e[t+i];return r}function u(e){return Object(r.hexlify)(function e(t){if(Array.isArray(t)){var n=[];if(t.forEach((function(t){n=n.concat(e(t))})),n.length<=55)return n.unshift(192+n.length),n;var i=a(n.length);return i.unshift(247+i.length),i.concat(n)}Object(r.isBytesLike)(t)||o.throwArgumentError("RLP object must be BytesLike","object",t);var s=Array.prototype.slice.call(Object(r.arrayify)(t));if(1===s.length&&s[0]<=127)return s;if(s.length<=55)return s.unshift(128+s.length),s;var u=a(s.length);return u.unshift(183+u.length),u.concat(s)}(e))}function l(e,t,n,r){for(var a=[];n<t+1+r;){var s=c(e,n);a.push(s.result),(n+=s.consumed)>t+1+r&&o.throwError("child data too short",i.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:a}}function c(e,t){if(0===e.length&&o.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var n=e[t]-247;t+1+n>e.length&&o.throwError("data short segment too short",i.Logger.errors.BUFFER_OVERRUN,{});var a=s(e,t+1,n);return t+1+n+a>e.length&&o.throwError("data long segment too short",i.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1+n,n+a)}if(e[t]>=192){var u=e[t]-192;return t+1+u>e.length&&o.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1,u)}if(e[t]>=184){var c=e[t]-183;t+1+c>e.length&&o.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{});var f=s(e,t+1,c);return t+1+c+f>e.length&&o.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+c+f,result:Object(r.hexlify)(e.slice(t+1+c,t+1+c+f))}}if(e[t]>=128){var d=e[t]-128;return t+1+d>e.length&&o.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+d,result:Object(r.hexlify)(e.slice(t+1,t+1+d))}}return{consumed:1,result:Object(r.hexlify)(e[t])}}function f(e){var t=Object(r.arrayify)(e),n=c(t,0);return n.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),n.result}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a}));var r;function i(e,t){return t.major>e.major?r.MAJOR:t.major<e.major?r.NONE:t.minor>e.minor?r.MINOR:t.minor<e.minor?r.NONE:t.patch>e.patch?r.PATCH:r.NONE}function o(e,t){var n=e.reduce((function(e,t){return e[t.chainId]||(e[t.chainId]={}),e[t.chainId][t.address]=t,e}),{}),r=t.reduce((function(e,t){var r,i,o=null==(r=n[t.chainId])?void 0:r[t.address];if(o){var a=Object.keys(t).filter((function(e){return"address"!==e&&"chainId"!==e})).filter((function(e){return n=t[e],r=o[e],!(n===r||typeof n===typeof r&&Array.isArray(n)&&Array.isArray(r)&&n.every((function(e,t){return r[t]===e})));var n,r}));a.length>0&&(e.changed[t.chainId]||(e.changed[t.chainId]={}),e.changed[t.chainId][t.address]=a)}else e.added.push(t);e.index[t.chainId]?e.index[t.chainId][t.address]=!0:e.index[t.chainId]=((i={})[t.address]=!0,i);return e}),{added:[],changed:{},index:{}}),i=e.reduce((function(e,t){return r.index[t.chainId]&&r.index[t.chainId][t.address]||e.push(t),e}),[]);return{added:r.added,changed:r.changed,removed:i}}function a(e,t){var n=o(e,t);return n.removed.length>0?r.MAJOR:n.added.length>0?r.MINOR:Object.keys(n.changed).length>0?r.PATCH:r.NONE}!function(e){e[e.NONE=0]="NONE",e[e.PATCH=1]="PATCH",e[e.MINOR=2]="MINOR",e[e.MAJOR=3]="MAJOR"}(r||(r={}))},function(e,t,n){"use strict";!function(t){function n(e){return parseInt(e)===e}function r(e){if(!n(e.length))return!1;for(var t=0;t<e.length;t++)if(!n(e[t])||e[t]<0||e[t]>255)return!1;return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,n,r,i){null==r&&null==i||(e=e.slice?e.slice(r,i):Array.prototype.slice.call(e,r,i)),t.set(e,n)}var s={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return i(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},u=function(){var e="0123456789abcdef";return{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];n.push(e[(240&i)>>4]+e[15&i])}return n.join("")}}}(),l={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],f=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],d=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],v=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],m=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],b=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],x=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],_=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function T(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var C=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(t,!0)}),this._prepare()};C.prototype._prepare=function(){var e=l[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),i=this.key.length/4,o=T(this.key);for(t=0;t<i;t++)n=t>>2,this._Ke[n][t%4]=o[t],this._Kd[e-n][t%4]=o[t];for(var a,s=0,u=i;u<r;){if(a=o[i-1],o[0]^=f[a>>16&255]<<24^f[a>>8&255]<<16^f[255&a]<<8^f[a>>24&255]^c[s]<<24,s+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];a=o[i/2-1],o[i/2]^=f[255&a]^f[a>>8&255]<<8^f[a>>16&255]<<16^f[a>>24&255]<<24;for(t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&u<r;)d=u>>2,h=u%4,this._Ke[d][h]=o[t],this._Kd[e-d][h]=o[t++],u++}for(var d=1;d<e;d++)for(var h=0;h<4;h++)a=this._Kd[d][h],this._Kd[d][h]=x[a>>24&255]^_[a>>16&255]^k[a>>8&255]^S[255&a]},C.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=T(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=h[r[i]>>24&255]^p[r[(i+1)%4]>>16&255]^g[r[(i+2)%4]>>8&255]^y[255&r[(i+3)%4]]^this._Ke[a][i];r=n.slice()}var s,u=o(16);for(i=0;i<4;i++)s=this._Ke[t][i],u[4*i]=255&(f[r[i]>>24&255]^s>>24),u[4*i+1]=255&(f[r[(i+1)%4]>>16&255]^s>>16),u[4*i+2]=255&(f[r[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(f[255&r[(i+3)%4]]^s);return u},C.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=T(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=v[r[i]>>24&255]^m[r[(i+3)%4]>>16&255]^b[r[(i+2)%4]>>8&255]^w[255&r[(i+1)%4]]^this._Kd[a][i];r=n.slice()}var s,u=o(16);for(i=0;i<4;i++)s=this._Kd[t][i],u[4*i]=255&(d[r[i]>>24&255]^s>>24),u[4*i+1]=255&(d[r[(i+3)%4]>>16&255]^s>>16),u[4*i+2]=255&(d[r[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(d[255&r[(i+1)%4]]^s);return u};var A=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new C(t)};A.prototype.encrypt=function(e){if((e=i(e)).length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.encrypt(n),t,r);return t},A.prototype.decrypt=function(e){if((e=i(e)).length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.decrypt(n),t,r);return t};var O=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=o(16);this._lastCipherblock=i(n,!0),this._aes=new C(t)};O.prototype.encrypt=function(e){if((e=i(e)).length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16);for(var s=0;s<16;s++)n[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(n),a(this._lastCipherblock,t,r)}return t},O.prototype.decrypt=function(e){if((e=i(e)).length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var s=0;s<16;s++)t[r+s]=n[s]^this._lastCipherblock[s];a(e,this._lastCipherblock,0,r,r+16)}return t};var M=function e(t,n,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 size)")}else n=o(16);r||(r=1),this.segmentSize=r,this._shiftRegister=i(n,!0),this._aes=new C(t)};M.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=i(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n},M.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=i(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n};var E=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=o(16);this._lastPrecipher=i(n,!0),this._lastPrecipherIndex=16,this._aes=new C(t)};E.prototype.encrypt=function(e){for(var t=i(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},E.prototype.decrypt=E.prototype.encrypt;var P=function e(t){if(!(this instanceof e))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"===typeof t?(this._counter=o(16),this.setValue(t)):this.setBytes(t)};P.prototype.setValue=function(e){if("number"!==typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");for(var t=15;t>=0;--t)this._counter[t]=e%256,e>>=8},P.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},P.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var I=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof P||(n=new P(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new C(t)};I.prototype.encrypt=function(e){for(var t=i(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t},I.prototype.decrypt=I.prototype.encrypt;var D={AES:C,Counter:P,ModeOfOperation:{ecb:A,cbc:O,cfb:M,ofb:E,ctr:I},utils:{hex:u,utf8:s},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,n=o(e.length+t);a(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=i(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var s=o(n);return a(e,s,0,0,n),s}}},_arrayTest:{coerceArray:i,createArray:o,copyArray:a}};e.exports=D}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return p}));var r=n(20);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),u=t&&i(t),l=s||u;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var f=0,d=a.length;d>=0;d--){var h=a[d];"."===h?o(a,d):".."===h?(o(a,d),f++):f&&(o(a,d),f--)}if(!l)for(;f--;f)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},l=n(33);function c(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var m=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}function w(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),m||Object(l.default)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.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)}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,f=void 0===u?b:u,y=o.keyLength,x=void 0===y?6:y,_=e.basename?h(c(e.basename)):"";function k(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return _&&(o=d(o,_)),g(o,r,n)}function S(){return Math.random().toString(36).substr(2,x)}var T=v();function C(e){Object(r.a)(B,e),B.length=t.length,T.notifyListeners(B.location,B.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||E(k(e.state))}function O(){E(k(w()))}var M=!1;function E(e){if(M)M=!1,C();else{T.confirmTransitionTo(e,"POP",f,(function(t){t?C({action:"POP",location:e}):function(e){var t=B.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(M=!0,L(i))}(e)}))}}var P=k(w()),I=[P.key];function D(e){return _+p(e)}function L(e){t.go(e)}var R=0;function N(e){1===(R+=e)&&1===e?(window.addEventListener("popstate",A),i&&window.addEventListener("hashchange",O)):0===R&&(window.removeEventListener("popstate",A),i&&window.removeEventListener("hashchange",O))}var j=!1;var B={length:t.length,action:"POP",location:P,createHref:D,push:function(e,r){var i=g(e,r,S(),B.location);T.confirmTransitionTo(i,"PUSH",f,(function(e){if(e){var r=D(i),o=i.key,a=i.state;if(n)if(t.pushState({key:o,state:a},null,r),s)window.location.href=r;else{var u=I.indexOf(B.location.key),l=I.slice(0,u+1);l.push(i.key),I=l,C({action:"PUSH",location:i})}else window.location.href=r}}))},replace:function(e,r){var i=g(e,r,S(),B.location);T.confirmTransitionTo(i,"REPLACE",f,(function(e){if(e){var r=D(i),o=i.key,a=i.state;if(n)if(t.replaceState({key:o,state:a},null,r),s)window.location.replace(r);else{var u=I.indexOf(B.location.key);-1!==u&&(I[u]=i.key),C({action:"REPLACE",location:i})}else window.location.replace(r)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return j||(N(1),j=!0),function(){return j&&(j=!1,N(-1)),t()}},listen:function(e){var t=T.appendListener(e);return N(1),function(){N(-1),t()}}};return B}var _={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:c},slash:{encodePath:c,decodePath:c}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(k(window.location.href)+"#"+e)}function C(e){void 0===e&&(e={}),m||Object(l.default)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,u=e.basename?h(c(e.basename)):"",f=_[s],y=f.encodePath,w=f.decodePath;function x(){var e=w(S());return u&&(e=d(e,u)),g(e)}var C=v();function A(e){Object(r.a)(F,e),F.length=t.length,C.notifyListeners(F.location,F.action)}var O=!1,M=null;function E(){var e,t,n=S(),r=y(n);if(n!==r)T(r);else{var i=x(),a=F.location;if(!O&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(M===p(i))return;M=null,function(e){if(O)O=!1,A();else{C.confirmTransitionTo(e,"POP",o,(function(t){t?A({action:"POP",location:e}):function(e){var t=F.location,n=L.lastIndexOf(p(t));-1===n&&(n=0);var r=L.lastIndexOf(p(e));-1===r&&(r=0);var i=n-r;i&&(O=!0,R(i))}(e)}))}}(i)}}var P=S(),I=y(P);P!==I&&T(I);var D=x(),L=[p(D)];function R(e){t.go(e)}var N=0;function j(e){1===(N+=e)&&1===e?window.addEventListener("hashchange",E):0===N&&window.removeEventListener("hashchange",E)}var B=!1;var F={length:t.length,action:"POP",location:D,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+y(u+p(e))},push:function(e,t){var n=g(e,void 0,void 0,F.location);C.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=p(n),r=y(u+t);if(S()!==r){M=t,function(e){window.location.hash=e}(r);var i=L.lastIndexOf(p(F.location)),o=L.slice(0,i+1);o.push(t),L=o,A({action:"PUSH",location:n})}else A()}}))},replace:function(e,t){var n=g(e,void 0,void 0,F.location);C.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=p(n),r=y(u+t);S()!==r&&(M=t,T(r));var i=L.indexOf(p(F.location));-1!==i&&(L[i]=t),A({action:"REPLACE",location:n})}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return B||(j(1),B=!0),function(){return B&&(B=!1,j(-1)),t()}},listen:function(e){var t=C.appendListener(e);return j(1),function(){j(-1),t()}}};return F}function A(e,t,n){return Math.min(Math.max(e,t),n)}function O(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,u=t.keyLength,l=void 0===u?6:u,c=v();function f(e){Object(r.a)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function d(){return Math.random().toString(36).substr(2,l)}var h=A(s,0,o.length-1),y=o.map((function(e){return g(e,void 0,"string"===typeof e?d():e.key||d())})),m=p;function b(e){var t=A(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:y.length,action:"POP",location:y[h],index:h,entries:y,createHref:m,push:function(e,t){var r=g(e,t,d(),w.location);c.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=g(e,t,d(),w.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},function(e,t,n){"use strict";n.r(t),n.d(t,"BaseContract",(function(){return N})),n.d(t,"Contract",(function(){return j})),n.d(t,"ContractFactory",(function(){return B}));var r=n(26),i=n(24),o=n(54),a=n(42),s=n(16),u=n(17),l=n(11),c=n(13),f=n(4),d=n.n(f),h=n(41),p=n(133),g=n(70),y=n(76),v=n(28),m=n(25),b=n(5),w=n(7),x=n(36),_=n(8),k=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},S=new _.Logger("contracts/5.1.1"),T={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0};function C(e,t){return k(this,void 0,void 0,d.a.mark((function n(){var r,i;return d.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t;case 2:return r=n.sent,n.prev=3,n.abrupt("return",Object(v.getAddress)(r));case 7:n.prev=7,n.t0=n.catch(3);case 9:return e||S.throwError("a provider or signer is needed to resolve ENS names",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),n.next=12,e.resolveName(r);case 12:return null==(i=n.sent)&&S.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n.abrupt("return",i);case 15:case"end":return n.stop()}}),n,null,[[3,7]])})))}function A(e,t,n){return k(this,void 0,void 0,d.a.mark((function r(){return d.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Array.isArray(n)){r.next=4;break}return r.next=3,Promise.all(n.map((function(n,r){return A(e,Array.isArray(t)?t[r]:t[n.name],n)})));case 3:return r.abrupt("return",r.sent);case 4:if("address"!==n.type){r.next=8;break}return r.next=7,C(e,t);case 7:return r.abrupt("return",r.sent);case 8:if("tuple"!==n.type){r.next=12;break}return r.next=11,A(e,t,n.components);case 11:return r.abrupt("return",r.sent);case 12:if("array"!==n.baseType){r.next=18;break}if(Array.isArray(t)){r.next=15;break}return r.abrupt("return",Promise.reject(new Error("invalid value for array")));case 15:return r.next=17,Promise.all(t.map((function(t){return A(e,t,n.arrayChildren)})));case 17:return r.abrupt("return",r.sent);case 18:return r.abrupt("return",t);case 19:case"end":return r.stop()}}),r)})))}function O(e,t,n){return k(this,void 0,void 0,d.a.mark((function r(){var i,o,a,s,u,l,c,f,h,p,g=this;return d.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i={},n.length===t.inputs.length+1&&"object"===typeof n[n.length-1]&&(i=Object(w.shallowCopy)(n.pop())),S.checkArgumentCount(n.length,t.inputs.length,"passed to contract"),e.signer?i.from?i.from=Object(w.resolveProperties)({override:C(e.signer,i.from),signer:e.signer.getAddress()}).then((function(e){return k(g,void 0,void 0,d.a.mark((function t(){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Object(v.getAddress)(e.signer)!==e.override&&S.throwError("Contract with a Signer cannot override from",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.abrupt("return",e.override);case 2:case"end":return t.stop()}}),t)})))})):i.from=e.signer.getAddress():i.from&&(i.from=C(e.provider,i.from)),r.next=6,Object(w.resolveProperties)({args:A(e.signer||e.provider,n,t.inputs),address:e.resolvedAddress,overrides:Object(w.resolveProperties)(i)||{}});case 6:if(o=r.sent,a=e.interface.encodeFunctionData(t,o.args),s={data:a,to:o.address},null!=(u=o.overrides).nonce&&(s.nonce=m.a.from(u.nonce).toNumber()),null!=u.gasLimit&&(s.gasLimit=m.a.from(u.gasLimit)),null!=u.gasPrice&&(s.gasPrice=m.a.from(u.gasPrice)),null!=u.from&&(s.from=u.from),null!=u.type&&(s.type=u.type),null!=u.accessList&&(s.accessList=Object(x.accessListify)(u.accessList)),null==s.gasLimit&&null!=t.gas){for(l=21e3,c=Object(b.arrayify)(a),f=0;f<c.length;f++)l+=4,c[f]&&(l+=64);s.gasLimit=m.a.from(t.gas).add(l)}return u.value&&((h=m.a.from(u.value)).isZero()||t.payable||S.throwError("non-payable method cannot override value",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:i.value}),s.value=h),delete i.nonce,delete i.gasLimit,delete i.gasPrice,delete i.from,delete i.value,delete i.type,delete i.accessList,(p=Object.keys(i).filter((function(e){return null!=i[e]}))).length&&S.throwError("cannot override ".concat(p.map((function(e){return JSON.stringify(e)})).join(",")),_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:p}),r.abrupt("return",s);case 28:case"end":return r.stop()}}),r)})))}function M(e,t,n){var r=e.signer||e.provider;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return k(this,void 0,void 0,d.a.mark((function i(){var a,s,u,l,c;return d.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=void 0,o.length!==t.inputs.length+1||"object"!==typeof o[o.length-1]){i.next=9;break}if(null==(s=Object(w.shallowCopy)(o.pop())).blockTag){i.next=7;break}return i.next=6,s.blockTag;case 6:a=i.sent;case 7:delete s.blockTag,o.push(s);case 9:if(null==e.deployTransaction){i.next=12;break}return i.next=12,e._deployed(a);case 12:return i.next=14,O(e,t,o);case 14:return u=i.sent,i.next=17,r.call(u,a);case 17:return l=i.sent,i.prev=18,c=e.interface.decodeFunctionResult(t,l),n&&1===t.outputs.length&&(c=c[0]),i.abrupt("return",c);case 24:throw i.prev=24,i.t0=i.catch(18),i.t0.code===_.Logger.errors.CALL_EXCEPTION&&(i.t0.address=e.address,i.t0.args=o,i.t0.transaction=u),i.t0;case 28:case"end":return i.stop()}}),i,null,[[18,24]])})))}}function E(e,t,n){return t.constant?M(e,t,n):function(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return k(this,void 0,void 0,d.a.mark((function n(){var i,o,a;return d.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.signer||S.throwError("sending a transaction requires a signer",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null==e.deployTransaction){n.next=4;break}return n.next=4,e._deployed();case 4:return n.next=6,O(e,t,r);case 6:return i=n.sent,n.next=9,e.signer.sendTransaction(i);case 9:return o=n.sent,a=o.wait.bind(o),o.wait=function(t){return a(t).then((function(t){return t.events=t.logs.map((function(n){var r=Object(w.deepCopy)(n),i=null;try{i=e.interface.parseLog(n)}catch(o){}return i&&(r.args=i.args,r.decode=function(t,n){return e.interface.decodeEventLog(i.eventFragment,t,n)},r.event=i.name,r.eventSignature=i.signature),r.removeListener=function(){return e.provider},r.getBlock=function(){return e.provider.getBlock(t.blockHash)},r.getTransaction=function(){return e.provider.getTransaction(t.transactionHash)},r.getTransactionReceipt=function(){return Promise.resolve(t)},r})),t}))},n.abrupt("return",o);case 13:case"end":return n.stop()}}),n)})))}}(e,t)}function P(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((function(e){return Array.isArray(e)?e.join("|"):e})).join(":"):""):"*"}var I=function(){function e(t,n){Object(l.a)(this,e),Object(w.defineReadOnly)(this,"tag",t),Object(w.defineReadOnly)(this,"filter",n),this._listeners=[]}return Object(c.a)(e,[{key:"addListener",value:function(e,t){this._listeners.push({listener:e,once:t})}},{key:"removeListener",value:function(e){var t=!1;this._listeners=this._listeners.filter((function(n){return!(!t&&n.listener===e)||(t=!0,!1)}))}},{key:"removeAllListeners",value:function(){this._listeners=[]}},{key:"listeners",value:function(){return this._listeners.map((function(e){return e.listener}))}},{key:"listenerCount",value:function(){return this._listeners.length}},{key:"run",value:function(e){var t=this,n=this.listenerCount();return this._listeners=this._listeners.filter((function(n){var r=e.slice();return setTimeout((function(){n.listener.apply(t,r)}),0),!n.once})),n}},{key:"prepareEvent",value:function(e){}},{key:"getEmit",value:function(e){return[e]}}]),e}(),D=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){return Object(l.a)(this,n),t.call(this,"error",null)}return n}(I),L=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(e,r,o,a){var s;Object(l.a)(this,n);var u={address:e},c=r.getEventTopic(o);return a?(c!==a[0]&&S.throwArgumentError("topic mismatch","topics",a),u.topics=a.slice()):u.topics=[c],s=t.call(this,P(u),u),Object(w.defineReadOnly)(Object(i.a)(s),"address",e),Object(w.defineReadOnly)(Object(i.a)(s),"interface",r),Object(w.defineReadOnly)(Object(i.a)(s),"fragment",o),s}return Object(c.a)(n,[{key:"prepareEvent",value:function(e){var t=this;Object(o.a)(Object(a.a)(n.prototype),"prepareEvent",this).call(this,e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=function(e,n){return t.interface.decodeEventLog(t.fragment,e,n)};try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(r){e.args=null,e.decodeError=r}}},{key:"getEmit",value:function(e){var t=Object(h.d)(e.args);if(t.length)throw t[0].error;var n=(e.args||[]).slice();return n.push(e),n}}]),n}(I),R=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(e,r){var o;return Object(l.a)(this,n),o=t.call(this,"*",{address:e}),Object(w.defineReadOnly)(Object(i.a)(o),"address",e),Object(w.defineReadOnly)(Object(i.a)(o),"interface",r),o}return Object(c.a)(n,[{key:"prepareEvent",value:function(e){var t=this;Object(o.a)(Object(a.a)(n.prototype),"prepareEvent",this).call(this,e);try{var r=this.interface.parseLog(e);e.event=r.name,e.eventSignature=r.signature,e.decode=function(e,n){return t.interface.decodeEventLog(r.eventFragment,e,n)},e.args=r.args}catch(i){}}}]),n}(I),N=function(){function e(t,n,r){var i=this;Object(l.a)(this,e),S.checkNew(this instanceof e?this.constructor:void 0,j),Object(w.defineReadOnly)(this,"interface",Object(w.getStatic)(this instanceof e?this.constructor:void 0,"getInterface")(n)),null==r?(Object(w.defineReadOnly)(this,"provider",null),Object(w.defineReadOnly)(this,"signer",null)):y.a.isSigner(r)?(Object(w.defineReadOnly)(this,"provider",r.provider||null),Object(w.defineReadOnly)(this,"signer",r)):g.b.isProvider(r)?(Object(w.defineReadOnly)(this,"provider",r),Object(w.defineReadOnly)(this,"signer",null)):S.throwArgumentError("invalid signer or provider","signerOrProvider",r),Object(w.defineReadOnly)(this,"callStatic",{}),Object(w.defineReadOnly)(this,"estimateGas",{}),Object(w.defineReadOnly)(this,"functions",{}),Object(w.defineReadOnly)(this,"populateTransaction",{}),Object(w.defineReadOnly)(this,"filters",{});var o={};if(Object.keys(this.interface.events).forEach((function(e){var t=i.interface.events[e];Object(w.defineReadOnly)(i.filters,e,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return{address:i.address,topics:i.interface.encodeFilterTopics(t,n)}})),o[t.name]||(o[t.name]=[]),o[t.name].push(e)})),Object.keys(o).forEach((function(e){var t=o[e];1===t.length?Object(w.defineReadOnly)(i.filters,e,i.filters[t[0]]):S.warn("Duplicate definition of ".concat(e," (").concat(t.join(", "),")"))})),Object(w.defineReadOnly)(this,"_runningEvents",{}),Object(w.defineReadOnly)(this,"_wrappedEmits",{}),null==t&&S.throwArgumentError("invalid contract address or ENS name","addressOrName",t),Object(w.defineReadOnly)(this,"address",t),this.provider)Object(w.defineReadOnly)(this,"resolvedAddress",C(this.provider,t));else try{Object(w.defineReadOnly)(this,"resolvedAddress",Promise.resolve(Object(v.getAddress)(t)))}catch(u){S.throwError("provider is required to use ENS name as contract address",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}var a={},s={};Object.keys(this.interface.functions).forEach((function(e){var t=i.interface.functions[e];if(s[e])S.warn("Duplicate ABI entry for ".concat(JSON.stringify(name)));else{s[e]=!0;var n=t.name;a[n]||(a[n]=[]),a[n].push(e),null==i[e]&&Object(w.defineReadOnly)(i,e,E(i,t,!0)),null==i.functions[e]&&Object(w.defineReadOnly)(i.functions,e,E(i,t,!1)),null==i.callStatic[e]&&Object(w.defineReadOnly)(i.callStatic,e,M(i,t,!0)),null==i.populateTransaction[e]&&Object(w.defineReadOnly)(i.populateTransaction,e,function(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return O(e,t,r)}}(i,t)),null==i.estimateGas[e]&&Object(w.defineReadOnly)(i.estimateGas,e,function(e,t){var n=e.signer||e.provider;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return k(this,void 0,void 0,d.a.mark((function r(){var o;return d.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n||S.throwError("estimate require a provider or signer",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"}),r.next=3,O(e,t,i);case 3:return o=r.sent,r.next=6,n.estimateGas(o);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))}}(i,t))}})),Object.keys(a).forEach((function(e){var t=a[e];if(!(t.length>1)){var n=t[0];try{null==i[e]&&Object(w.defineReadOnly)(i,e,i[n])}catch(r){}null==i.functions[e]&&Object(w.defineReadOnly)(i.functions,e,i.functions[n]),null==i.callStatic[e]&&Object(w.defineReadOnly)(i.callStatic,e,i.callStatic[n]),null==i.populateTransaction[e]&&Object(w.defineReadOnly)(i.populateTransaction,e,i.populateTransaction[n]),null==i.estimateGas[e]&&Object(w.defineReadOnly)(i.estimateGas,e,i.estimateGas[n])}}))}return Object(c.a)(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&S.throwError("contract not deployed",_.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this;this.signer||S.throwError("sending a transactions require a signer",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=Object(w.shallowCopy)(e||{});return["from","to"].forEach((function(e){null!=n[e]&&S.throwError("cannot override "+e,_.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})})),n.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(n)}))}},{key:"connect",value:function(e){"string"===typeof e&&(e=new y.b(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&Object(w.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"===typeof e){if("error"===e)return this._normalizeRunningEvent(new D);if("event"===e)return this._normalizeRunningEvent(new I("event",null));if("*"===e)return this._normalizeRunningEvent(new R(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new L(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if("string"!==typeof n)throw new Error("invalid topic");var r=this.interface.getEvent(n);return this._normalizeRunningEvent(new L(this.address,this.interface,r,e.topics))}catch(o){}var i={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new I(P(i),i))}return this._normalizeRunningEvent(new R(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,n){var r=this,i=Object(w.deepCopy)(t);return i.removeListener=function(){n&&(e.removeListener(n),r._checkRunningEvents(e))},i.getBlock=function(){return r.provider.getBlock(t.blockHash)},i.getTransaction=function(){return r.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return r.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i}},{key:"_addEventListener",value:function(e,t,n){var i=this;if(this.provider||S.throwError("events require a provider or a signer with a provider",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var o=function(n){var o=i._wrapEvent(e,n,t);if(null==o.decodeError)try{var a=e.getEmit(o);i.emit.apply(i,[e.filter].concat(Object(r.a)(a)))}catch(s){o.decodeError=s.error}null!=e.filter&&i.emit("event",o),null!=o.decodeError&&i.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=o,null!=e.filter&&this.provider.on(e.filter,o)}}},{key:"queryFilter",value:function(e,t,n){var r=this,i=this._getRunningEvent(e),o=Object(w.shallowCopy)(i.filter);return"string"===typeof t&&Object(b.isHexString)(t,32)?(null!=n&&S.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),o.blockHash=t):(o.fromBlock=null!=t?t:0,o.toBlock=null!=n?n:"latest"),this.provider.getLogs(o).then((function(e){return e.map((function(e){return r._wrapEvent(i,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1;for(var t=this._getRunningEvent(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=t.run(r)>0;return this._checkRunningEvents(t),o}},{key:"listenerCount",value:function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,n){return e+t._runningEvents[n].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){var t=this;if(!this.provider)return[];if(null==e){var n=function(){var e=[];for(var n in t._runningEvents)t._runningEvents[n].listeners().forEach((function(t){e.push(t)}));return{v:e}}();if("object"===typeof n)return n.v}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}},{key:"off",value:function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return Object(v.getContractAddress)(e)}},{key:"getInterface",value:function(e){return p.b.isInterface(e)?e:new p.b(e)}},{key:"isIndexed",value:function(e){return p.a.isIndexed(e)}}]),e}(),j=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){return Object(l.a)(this,n),t.apply(this,arguments)}return n}(N),B=function(){function e(t,n,r){Object(l.a)(this,e);var i=null;"0x"!==(i="string"===typeof n?n:Object(b.isBytes)(n)?Object(b.hexlify)(n):n&&"string"===typeof n.object?n.object:"!").substring(0,2)&&(i="0x"+i),(!Object(b.isHexString)(i)||i.length%2)&&S.throwArgumentError("invalid bytecode","bytecode",n),r&&!y.a.isSigner(r)&&S.throwArgumentError("invalid signer","signer",r),Object(w.defineReadOnly)(this,"bytecode",i),Object(w.defineReadOnly)(this,"interface",Object(w.getStatic)(this instanceof e?this.constructor:void 0,"getInterface")(t)),Object(w.defineReadOnly)(this,"signer",r||null)}return Object(c.a)(e,[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===this.interface.deploy.inputs.length+1&&"object"===typeof n[n.length-1])for(var i in e=Object(w.shallowCopy)(n.pop()))if(!T[i])throw new Error("unknown transaction override "+i);return["data","from","to"].forEach((function(t){null!=e[t]&&S.throwError("cannot override "+t,_.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})})),S.checkArgumentCount(n.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=Object(b.hexlify)(Object(b.concat)([this.bytecode,this.interface.encodeDeploy(n)])),e}},{key:"deploy",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return k(this,void 0,void 0,d.a.mark((function e(){var n,i,o,a,s,u;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},t.length===this.interface.deploy.inputs.length+1&&(n=t.pop()),S.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),e.next=5,A(this.signer,t,this.interface.deploy.inputs);case 5:return(i=e.sent).push(n),o=this.getDeployTransaction.apply(this,Object(r.a)(i)),e.next=10,this.signer.sendTransaction(o);case 10:return a=e.sent,s=Object(w.getStatic)(this.constructor,"getContractAddress")(a),u=Object(w.getStatic)(this.constructor,"getContract")(s,this.interface,this.signer),Object(w.defineReadOnly)(u,"deployTransaction",a),e.abrupt("return",u);case 15:case"end":return e.stop()}}),e,this)})))}},{key:"attach",value:function(e){return this.constructor.getContract(e,this.interface,this.signer)}},{key:"connect",value:function(e){return new this.constructor(this.interface,this.bytecode,e)}}],[{key:"fromSolidity",value:function(e,t){null==e&&S.throwError("missing compiler output",_.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"===typeof e&&(e=JSON.parse(e));var n=e.abi,r=null;return e.bytecode?r=e.bytecode:e.evm&&e.evm.bytecode&&(r=e.evm.bytecode),new this(n,r,t)}},{key:"getInterface",value:function(e){return j.getInterface(e)}},{key:"getContractAddress",value:function(e){return Object(v.getContractAddress)(e)}},{key:"getContract",value:function(e,t,n){return new j(e,t,n)}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return v}));var r=n(24),i=n(16),o=n(17),a=n(4),s=n.n(a),u=n(11),l=n(13),c=n(7),f=n(8),d=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},h=new f.Logger("abstract-signer/5.1.0"),p=["accessList","chainId","data","from","gasLimit","gasPrice","nonce","to","type","value"],g=[f.Logger.errors.INSUFFICIENT_FUNDS,f.Logger.errors.NONCE_EXPIRED,f.Logger.errors.REPLACEMENT_UNDERPRICED],y=function(){function e(){Object(u.a)(this,e),h.checkAbstract(this instanceof e?this.constructor:void 0,e),Object(c.defineReadOnly)(this,"_isSigner",!0)}return Object(l.a)(e,[{key:"getBalance",value:function(e){return d(this,void 0,void 0,s.a.mark((function t(){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getBalance"),t.next=3,this.provider.getBalance(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionCount",value:function(e){return d(this,void 0,void 0,s.a.mark((function t(){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getTransactionCount"),t.next=3,this.provider.getTransactionCount(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"estimateGas",value:function(e){return d(this,void 0,void 0,s.a.mark((function t(){var n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("estimateGas"),t.next=3,Object(c.resolveProperties)(this.checkTransaction(e));case 3:return n=t.sent,t.next=6,this.provider.estimateGas(n);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"call",value:function(e,t){return d(this,void 0,void 0,s.a.mark((function n(){var r;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this._checkProvider("call"),n.next=3,Object(c.resolveProperties)(this.checkTransaction(e));case 3:return r=n.sent,n.next=6,this.provider.call(r,t);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n,this)})))}},{key:"sendTransaction",value:function(e){var t=this;return this._checkProvider("sendTransaction"),this.populateTransaction(e).then((function(e){return t.signTransaction(e).then((function(e){return t.provider.sendTransaction(e)}))}))}},{key:"getChainId",value:function(){return d(this,void 0,void 0,s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getChainId"),e.next=3,this.provider.getNetwork();case 3:return t=e.sent,e.abrupt("return",t.chainId);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return d(this,void 0,void 0,s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getGasPrice"),e.next=3,this.provider.getGasPrice();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"resolveName",value:function(e){return d(this,void 0,void 0,s.a.mark((function t(){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("resolveName"),t.next=3,this.provider.resolveName(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"checkTransaction",value:function(e){for(var t in e)-1===p.indexOf(t)&&h.throwArgumentError("invalid transaction key: "+t,"transaction",e);var n=Object(c.shallowCopy)(e);return null==n.from?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then((function(t){return t[0].toLowerCase()!==t[1].toLowerCase()&&h.throwArgumentError("from address mismatch","transaction",e),t[0]})),n}},{key:"populateTransaction",value:function(e){return d(this,void 0,void 0,s.a.mark((function t(){var n,r=this;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.resolveProperties)(this.checkTransaction(e));case 2:return null!=(n=t.sent).to&&(n.to=Promise.resolve(n.to).then((function(e){return d(r,void 0,void 0,s.a.mark((function t(){var n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.resolveName(e);case 4:return null==(n=t.sent)&&h.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})))}))),null==n.gasPrice&&(n.gasPrice=this.getGasPrice()),null==n.nonce&&(n.nonce=this.getTransactionCount("pending")),null==n.gasLimit&&(n.gasLimit=this.estimateGas(n).catch((function(e){if(g.indexOf(e.code)>=0)throw e;return h.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",f.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:n})}))),null==n.chainId?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&h.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=10,Object(c.resolveProperties)(n);case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||h.throwError("missing provider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),v=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e,i){var o;return Object(u.a)(this,n),h.checkNew(this instanceof n?this.constructor:void 0,n),o=t.call(this),Object(c.defineReadOnly)(Object(r.a)(o),"address",e),Object(c.defineReadOnly)(Object(r.a)(o),"provider",i||null),o}return Object(l.a)(n,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){h.throwError(e,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new n(this.address,e)}}]),n}(y)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Update="Web3ReactUpdate",e.Error="Web3ReactError",e.Deactivate="Web3ReactDeactivate"}(r||(r={}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=n(80),i=n(234);function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=s(i.toString(16))}return n},t.zero2=a,t.zero8=s,t.join32=function(e,t,n,i){var o=n-t;r(o%4===0);for(var a=new Array(o/4),s=0,u=t;s<a.length;s++,u+=4){var l;l="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=l>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var u=0,l=t;return u+=(l=l+r>>>0)<t?1:0,u+=(l=l+o>>>0)<o?1:0,e+n+i+a+(u+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,u,l){var c=0,f=t;return c+=(f=f+r>>>0)<t?1:0,c+=(f=f+o>>>0)<o?1:0,c+=(f=f+s>>>0)<s?1:0,e+n+i+a+u+(c+=(f=f+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,u,l){return t+r+o+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";var r=n(80),i=n(234);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=u(i.toString(16))}return n},t.zero2=s,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4===0);for(var a=new Array(o/4),s=0,u=t;s<a.length;s++,u+=4){var l;l="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=l>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var u=0,l=t;return u+=(l=l+r>>>0)<t?1:0,u+=(l=l+o>>>0)<o?1:0,e+n+i+a+(u+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,u,l){var c=0,f=t;return c+=(f=f+r>>>0)<t?1:0,c+=(f=f+o>>>0)<o?1:0,c+=(f=f+s>>>0)<s?1:0,e+n+i+a+u+(c+=(f=f+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,u,l){return t+r+o+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){var r=t;r.utils=n(82),r.common=n(132),r.sha=n(378),r.ripemd=n(382),r.hmac=n(383),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="abi/5.1.2"},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return d}));var r=n(128),i=n.n(r),o=n(5),a=n(154),s=n(8),u=new s.Logger("sha2/5.1.0");function l(e){return"0x"+i.a.ripemd160().update(Object(o.arrayify)(e)).digest("hex")}function c(e){return"0x"+i.a.sha256().update(Object(o.arrayify)(e)).digest("hex")}function f(e){return"0x"+i.a.sha512().update(Object(o.arrayify)(e)).digest("hex")}function d(e,t,n){return a.a[e]||u.throwError("unsupported algorithm "+e,s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+i.a.hmac(i.a[e],Object(o.arrayify)(t)).update(Object(o.arrayify)(n)).digest("hex")}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||r(i)&&r(o)))return!1;var i,o;return!0}t.a=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={};n.r(r),n.d(r,"AbiCoder",(function(){return p.a})),n.d(r,"defaultAbiCoder",(function(){return p.b})),n.d(r,"Fragment",(function(){return g.d})),n.d(r,"EventFragment",(function(){return g.b})),n.d(r,"FunctionFragment",(function(){return g.e})),n.d(r,"ParamType",(function(){return g.f})),n.d(r,"FormatTypes",(function(){return g.c})),n.d(r,"checkResultErrors",(function(){return y.d})),n.d(r,"Logger",(function(){return M.Logger})),n.d(r,"RLP",(function(){return R})),n.d(r,"_fetchData",(function(){return H._fetchData})),n.d(r,"fetchJson",(function(){return H.fetchJson})),n.d(r,"poll",(function(){return H.poll})),n.d(r,"checkProperties",(function(){return L.checkProperties})),n.d(r,"deepCopy",(function(){return L.deepCopy})),n.d(r,"defineReadOnly",(function(){return L.defineReadOnly})),n.d(r,"getStatic",(function(){return L.getStatic})),n.d(r,"resolveProperties",(function(){return L.resolveProperties})),n.d(r,"shallowCopy",(function(){return L.shallowCopy})),n.d(r,"arrayify",(function(){return x.arrayify})),n.d(r,"concat",(function(){return x.concat})),n.d(r,"stripZeros",(function(){return x.stripZeros})),n.d(r,"zeroPad",(function(){return x.zeroPad})),n.d(r,"isBytes",(function(){return x.isBytes})),n.d(r,"isBytesLike",(function(){return x.isBytesLike})),n.d(r,"defaultPath",(function(){return C.defaultPath})),n.d(r,"HDNode",(function(){return C.HDNode})),n.d(r,"SigningKey",(function(){return N.SigningKey})),n.d(r,"Interface",(function(){return v.b})),n.d(r,"LogDescription",(function(){return v.c})),n.d(r,"TransactionDescription",(function(){return v.d})),n.d(r,"base58",(function(){return w.Base58})),n.d(r,"base64",(function(){return b})),n.d(r,"hexlify",(function(){return x.hexlify})),n.d(r,"isHexString",(function(){return x.isHexString})),n.d(r,"hexConcat",(function(){return x.hexConcat})),n.d(r,"hexStripZeros",(function(){return x.hexStripZeros})),n.d(r,"hexValue",(function(){return x.hexValue})),n.d(r,"hexZeroPad",(function(){return x.hexZeroPad})),n.d(r,"hexDataLength",(function(){return x.hexDataLength})),n.d(r,"hexDataSlice",(function(){return x.hexDataSlice})),n.d(r,"nameprep",(function(){return j.a})),n.d(r,"_toEscapedUtf8String",(function(){return B.d})),n.d(r,"toUtf8Bytes",(function(){return B.f})),n.d(r,"toUtf8CodePoints",(function(){return B.g})),n.d(r,"toUtf8String",(function(){return B.h})),n.d(r,"Utf8ErrorFuncs",(function(){return B.b})),n.d(r,"formatBytes32String",(function(){return F.a})),n.d(r,"parseBytes32String",(function(){return F.b})),n.d(r,"hashMessage",(function(){return _.a})),n.d(r,"namehash",(function(){return k.b})),n.d(r,"isValidName",(function(){return k.a})),n.d(r,"id",(function(){return S.a})),n.d(r,"_TypedDataEncoder",(function(){return T.a})),n.d(r,"getAddress",(function(){return m.getAddress})),n.d(r,"getIcapAddress",(function(){return m.getIcapAddress})),n.d(r,"getContractAddress",(function(){return m.getContractAddress})),n.d(r,"getCreate2Address",(function(){return m.getCreate2Address})),n.d(r,"isAddress",(function(){return m.isAddress})),n.d(r,"formatEther",(function(){return V.formatEther})),n.d(r,"parseEther",(function(){return V.parseEther})),n.d(r,"formatUnits",(function(){return V.formatUnits})),n.d(r,"parseUnits",(function(){return V.parseUnits})),n.d(r,"commify",(function(){return V.commify})),n.d(r,"computeHmac",(function(){return E.a})),n.d(r,"keccak256",(function(){return O.keccak256})),n.d(r,"ripemd160",(function(){return E.b})),n.d(r,"sha256",(function(){return E.c})),n.d(r,"sha512",(function(){return E.d})),n.d(r,"randomBytes",(function(){return I.a})),n.d(r,"shuffled",(function(){return D.a})),n.d(r,"solidityPack",(function(){return P.pack})),n.d(r,"solidityKeccak256",(function(){return P.keccak256})),n.d(r,"soliditySha256",(function(){return P.sha256})),n.d(r,"splitSignature",(function(){return x.splitSignature})),n.d(r,"joinSignature",(function(){return x.joinSignature})),n.d(r,"accessListify",(function(){return z.accessListify})),n.d(r,"parseTransaction",(function(){return z.parse})),n.d(r,"serializeTransaction",(function(){return z.serialize})),n.d(r,"getJsonWalletAddress",(function(){return A.a})),n.d(r,"computeAddress",(function(){return z.computeAddress})),n.d(r,"recoverAddress",(function(){return z.recoverAddress})),n.d(r,"computePublicKey",(function(){return N.computePublicKey})),n.d(r,"recoverPublicKey",(function(){return N.recoverPublicKey})),n.d(r,"verifyMessage",(function(){return l.verifyMessage})),n.d(r,"verifyTypedData",(function(){return l.verifyTypedData})),n.d(r,"mnemonicToEntropy",(function(){return C.mnemonicToEntropy})),n.d(r,"entropyToMnemonic",(function(){return C.entropyToMnemonic})),n.d(r,"isValidMnemonic",(function(){return C.isValidMnemonic})),n.d(r,"mnemonicToSeed",(function(){return C.mnemonicToSeed})),n.d(r,"SupportedAlgorithm",(function(){return U.a})),n.d(r,"UnicodeNormalizationForm",(function(){return B.a})),n.d(r,"Utf8ErrorReason",(function(){return B.c})),n.d(r,"Indexed",(function(){return v.a}));var i={};n.r(i),n.d(i,"Signer",(function(){return u.a})),n.d(i,"Wallet",(function(){return l.Wallet})),n.d(i,"VoidSigner",(function(){return u.b})),n.d(i,"getDefaultProvider",(function(){return f.getDefaultProvider})),n.d(i,"providers",(function(){return f})),n.d(i,"BaseContract",(function(){return o.BaseContract})),n.d(i,"Contract",(function(){return o.Contract})),n.d(i,"ContractFactory",(function(){return o.ContractFactory})),n.d(i,"BigNumber",(function(){return a.a})),n.d(i,"FixedNumber",(function(){return s.a})),n.d(i,"constants",(function(){return c})),n.d(i,"errors",(function(){return M.ErrorCode})),n.d(i,"logger",(function(){return J})),n.d(i,"utils",(function(){return r})),n.d(i,"wordlists",(function(){return d.a})),n.d(i,"version",(function(){return G})),n.d(i,"Wordlist",(function(){return h.a}));var o=n(75),a=n(25),s=n(603),u=n(76),l=n(116),c=n(66),f=n(109),d=n(617),h=n(31),p=n(135),g=n(52),y=n(41),v=n(133),m=n(28),b=n(147),w=n(90),x=n(5),_=n(193),k=n(111),S=n(93),T=n(160),C=n(46),A=n(103),O=n(29),M=n(8),E=n(85),P=n(113),I=n(127),D=n(249),L=n(7),R=n(71),N=n(61),j=n(162),B=n(37),F=n(192),z=n(36),V=n(88),H=n(51),U=n(154),G="ethers/5.1.4",J=new M.Logger(G);try{var X=window;null==X._ethers&&(X._ethers=i)}catch(W){}},function(e,t,n){"use strict";n.r(t),n.d(t,"commify",(function(){return a})),n.d(t,"formatUnits",(function(){return s})),n.d(t,"parseUnits",(function(){return u})),n.d(t,"formatEther",(function(){return l})),n.d(t,"parseEther",(function(){return c}));var r=n(603),i=new(n(8).Logger)("units/5.1.0"),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function a(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&i.throwArgumentError("invalid value","value",e);var n=t[0],r="";for("-"===n.substring(0,1)&&(r="-",n=n.substring(1));"0"===n.substring(0,1);)n=n.substring(1);""===n&&(n="0");var o="";for(2===t.length&&(o="."+(t[1]||"0"));o.length>2&&"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(var a=[];n.length;){if(n.length<=3){a.unshift(n);break}var s=n.length-3;a.unshift(n.substring(s)),n=n.substring(0,s)}return r+a.join(",")+o}function s(e,t){if("string"===typeof t){var n=o.indexOf(t);-1!==n&&(t=3*n)}return Object(r.b)(e,null!=t?t:18)}function u(e,t){if("string"!==typeof e&&i.throwArgumentError("value must be a string","value",e),"string"===typeof t){var n=o.indexOf(t);-1!==n&&(t=3*n)}return Object(r.c)(e,null!=t?t:18)}function l(e){return s(e,18)}function c(e){return u(e,18)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return B})),n.d(t,"a",(function(){return V}));var r=n(24),i=n(16),o=n(17),a=n(4),s=n.n(a),u=n(11),l=n(13),c=n(70),f=n(90),d=n(25),h=n(5),p=n(163),g=n(111),y=n(119),v=n(7),m=n(85),b=n(37),w=n(51),x=n(222),_=n.n(x),k=n(8),S=n(34),T=n(56),C=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},A=new k.Logger(S.a);function O(e){return null==e?"null":(32!==Object(h.hexDataLength)(e)&&A.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function M(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((function(e){if(Array.isArray(e)){var t={};e.forEach((function(e){t[O(e)]=!0}));var n=Object.keys(t);return n.sort(),n.join("|")}return O(e)})).join("&")}function E(e){if("string"===typeof e){if(e=e.toLowerCase(),32===Object(h.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+M(e);if(c.a.isForkEvent(e))throw A.warn("not implemented"),new Error("not implemented");if(e&&"object"===typeof e)return"filter:"+(e.address||"*")+":"+M(e.topics||[])}throw new Error("invalid event - "+e)}function P(){return(new Date).getTime()}function I(e){return new Promise((function(t){setTimeout(t,e)}))}var D=["block","network","pending","poll"],L=function(){function e(t,n,r){Object(u.a)(this,e),Object(v.defineReadOnly)(this,"tag",t),Object(v.defineReadOnly)(this,"listener",n),Object(v.defineReadOnly)(this,"once",r)}return Object(l.a)(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":");if("filter"!==e[0])return null;var t,n=e[1],r=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[];var t=e.split("|").map((function(e){return"null"===e?null:e}));return 1===t.length?t[0]:t})),i={};return r.length>0&&(i.topics=r),n&&"*"!==n&&(i.address=n),i}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||D.indexOf(this.tag)>=0}}]),e}(),R={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function N(e){return Object(h.hexZeroPad)(d.a.from(e).toHexString(),32)}function j(e){return f.Base58.encode(Object(h.concat)([e,Object(h.hexDataSlice)(Object(m.c)(Object(m.c)(e)),0,4)]))}var B=function(){function e(t,n,r){Object(u.a)(this,e),Object(v.defineReadOnly)(this,"provider",t),Object(v.defineReadOnly)(this,"name",r),Object(v.defineReadOnly)(this,"address",t.formatter.address(n))}return Object(l.a)(e,[{key:"_fetchBytes",value:function(e,t){return C(this,void 0,void 0,s.a.mark((function n(){var r,i,o,a;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={to:this.address,data:Object(h.hexConcat)([e,Object(g.b)(this.name),t||"0x"])},n.next=3,this.provider.call(r);case 3:if("0x"!==(i=n.sent)){n.next=6;break}return n.abrupt("return",null);case 6:return o=d.a.from(Object(h.hexDataSlice)(i,0,32)).toNumber(),a=d.a.from(Object(h.hexDataSlice)(i,o,o+32)).toNumber(),n.abrupt("return",Object(h.hexDataSlice)(i,o+32,o+32+a));case 9:case"end":return n.stop()}}),n,this)})))}},{key:"_getAddress",value:function(e,t){var n=R[String(e)];if(null==n&&A.throwError("unsupported coin type: ".concat(e),k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")")}),"eth"===n.ilk)return this.provider.formatter.address(t);var r=Object(h.arrayify)(t);if(null!=n.p2pkh){var i=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){var o=parseInt(i[1],16);if(i[2].length===2*o&&o>=1&&o<=75)return j(Object(h.concat)([[n.p2pkh],"0x"+i[2]]))}}if(null!=n.p2sh){var a=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(a){var s=parseInt(a[1],16);if(a[2].length===2*s&&s>=1&&s<=75)return j(Object(h.concat)([[n.p2sh],"0x"+a[2]]))}}if(null!=n.prefix){var u=r[1],l=r[0];if(0===l?20!==u&&32!==u&&(l=-1):l=-1,l>=0&&r.length===2+u&&u>=1&&u<=75){var c=_.a.toWords(r.slice(2));return c.unshift(l),_.a.encode(n.prefix,c)}}return null}},{key:"getAddress",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r,i,o;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=9;break}return n={to:this.address,data:"0x3b3b57de"+Object(g.b)(this.name).substring(2)},t.next=5,this.provider.call(n);case 5:if("0x"!==(r=t.sent)&&r!==p.a){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",this.provider.formatter.callAddress(r));case 9:return t.next=11,this._fetchBytes("0xf1cb7e06",N(e));case 11:if(null!=(i=t.sent)&&"0x"!==i){t.next=14;break}return t.abrupt("return",null);case 14:return null==(o=this._getAddress(e,i))&&A.throwError("invalid or unsupported coin data",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:i}),t.abrupt("return",o);case 17:case"end":return t.stop()}}),t,this)})))}},{key:"getContentHash",value:function(){return C(this,void 0,void 0,s.a.mark((function e(){var t,n,r,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchBytes("0xbc1c58d1");case 2:if(null!=(t=e.sent)&&"0x"!==t){e.next=5;break}return e.abrupt("return",null);case 5:if(!(n=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))){e.next=10;break}if(r=parseInt(n[3],16),n[4].length!==2*r){e.next=10;break}return e.abrupt("return","ipfs://"+f.Base58.encode("0x"+n[1]));case 10:if(!(i=t.match(/^0xe40101fa011b20([0-9a-f]*)$/))){e.next=14;break}if(64!==i[1].length){e.next=14;break}return e.abrupt("return","bzz://"+i[1]);case 14:return e.abrupt("return",A.throwError("invalid or unsupported content hash data",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t}));case 15:case"end":return e.stop()}}),e,this)})))}},{key:"getText",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Object(b.f)(e),(n=Object(h.concat)([N(64),N(n.length),n])).length%32!==0&&(n=Object(h.concat)([n,Object(h.hexZeroPad)("0x",32-e.length%32)])),t.next=5,this._fetchBytes("0x59d1d43c",Object(h.hexlify)(n));case 5:if(null!=(r=t.sent)&&"0x"!==r){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",Object(b.h)(r));case 9:case"end":return t.stop()}}),t,this)})))}}]),e}(),F=null,z=1,V=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){var i;if(Object(u.a)(this,n),A.checkNew(this instanceof n?this.constructor:void 0,c.b),(i=t.call(this))._events=[],i._emitted={block:-2},i.formatter=(this instanceof n?this.constructor:void 0).getFormatter(),Object(v.defineReadOnly)(Object(r.a)(i),"anyNetwork","any"===e),i.anyNetwork&&(e=i.detectNetwork()),e instanceof Promise)i._networkPromise=e,e.catch((function(e){})),i._ready().catch((function(e){}));else{var o=Object(v.getStatic)(this instanceof n?this.constructor:void 0,"getNetwork")(e);o?(Object(v.defineReadOnly)(Object(r.a)(i),"_network",o),i.emit("network",o,null)):A.throwArgumentError("invalid network","network",e)}return i._maxInternalBlockNumber=-1024,i._lastBlockNumber=-2,i._pollingInterval=4e3,i._fastQueryDate=0,i}return Object(l.a)(n,[{key:"_ready",value:function(){return C(this,void 0,void 0,s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=this._network){e.next=17;break}if(t=null,!this._networkPromise){e.next=11;break}return e.prev=3,e.next=6,this._networkPromise;case 6:t=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:if(null!=t){e.next=15;break}return e.next=14,this.detectNetwork();case 14:t=e.sent;case 15:t||A.throwError("no network detected",k.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:Object(v.defineReadOnly)(this,"_network",t),this.emit("network",t,null));case 17:return e.abrupt("return",this._network);case 18:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"ready",get:function(){var e=this;return Object(w.poll)((function(){return e._ready().then((function(e){return e}),(function(e){if(e.code!==k.Logger.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}))}},{key:"_getInternalBlockNumber",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r,i,o,a=this;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready();case 2:if(!(e>0)){t.next=20;break}case 3:if(!this._internalBlockNumber){t.next=20;break}return n=this._internalBlockNumber,t.prev=5,t.next=8,n;case 8:if(r=t.sent,!(P()-r.respTime<=e)){t.next=11;break}return t.abrupt("return",r.blockNumber);case 11:return t.abrupt("break",20);case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==n){t.next=18;break}return t.abrupt("break",20);case 18:t.next=3;break;case 20:return i=P(),o=Object(v.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,n=e.networkError;if(n)throw a._internalBlockNumber===o&&(a._internalBlockNumber=null),n;var r=P();return(t=d.a.from(t).toNumber())<a._maxInternalBlockNumber&&(t=a._maxInternalBlockNumber),a._maxInternalBlockNumber=t,a._setFastBlockNumber(t),{blockNumber:t,reqTime:i,respTime:r}})),this._internalBlockNumber=o,o.catch((function(e){a._internalBlockNumber===o&&(a._internalBlockNumber=null)})),t.next=26,o;case 26:return t.abrupt("return",t.sent.blockNumber);case 27:case"end":return t.stop()}}),t,this,[[5,14]])})))}},{key:"poll",value:function(){return C(this,void 0,void 0,s.a.mark((function e(){var t,n,r,i,o=this;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=z++,n=[],r=null,e.prev=3,e.next=6,this._getInternalBlockNumber(100+this.pollingInterval/2);case 6:r=e.sent,e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),this.emit("error",e.t0),e.abrupt("return");case 13:if(this._setFastBlockNumber(r),this.emit("poll",t,r),r!==this._lastBlockNumber){e.next=18;break}return this.emit("didPoll",t),e.abrupt("return");case 18:if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)A.warn("network block skew detected; skipping block events"),this.emit("error",A.makeError("network block skew detected",k.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(i=this._emitted.block+1;i<=r;i++)this.emit("block",i);return this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=o._emitted[e];"pending"!==t&&r-t>12&&delete o._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,i=o.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(o._emitted["t:"+t]=e.blockNumber,o.emit(t,e),null):null})).catch((function(e){o.emit("error",e)}));n.push(i);break;case"filter":var a=e.filter;a.fromBlock=o._lastBlockNumber+1,a.toBlock=r;var s=o.getLogs(a).then((function(e){0!==e.length&&e.forEach((function(e){o._emitted["b:"+e.blockHash]=e.blockNumber,o._emitted["t:"+e.transactionHash]=e.blockNumber,o.emit(a,e)}))})).catch((function(e){o.emit("error",e)}));n.push(s)}})),this._lastBlockNumber=r,Promise.all(n).then((function(){o.emit("didPoll",t)})).catch((function(e){o.emit("error",e)})),e.abrupt("return");case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return C(this,void 0,void 0,s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",A.throwError("provider does not support network detection",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"}));case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return C(this,void 0,void 0,s.a.mark((function e(){var t,n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready();case 2:return t=e.sent,e.next=5,this.detectNetwork();case 5:if(n=e.sent,t.chainId===n.chainId){e.next=23;break}if(!this.anyNetwork){e.next=20;break}return this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),e.next=19,I(0);case 19:return e.abrupt("return",this._network);case 20:throw r=A.makeError("underlying network changed",k.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",r),r;case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!==typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=P();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=P(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,n){return C(this,void 0,void 0,s.a.mark((function r(){var i,o=this;return s.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t=1),r.next=3,this.getTransactionReceipt(e);case 3:if(!(((i=r.sent)?i.confirmations:0)>=t)){r.next=6;break}return r.abrupt("return",i);case 6:return r.abrupt("return",new Promise((function(r,i){var a=null,s=!1,u=function n(i){i.confirmations<t||(a&&clearTimeout(a),s||(s=!0,o.removeListener(e,n),r(i)))};o.on(e,u),"number"===typeof n&&n>0&&(a=setTimeout((function(){s||(a=null,s=!0,o.removeListener(e,u),i(A.makeError("timeout exceeded",k.Logger.errors.TIMEOUT,{timeout:n})))}),n)).unref&&a.unref()})));case 7:case"end":return r.stop()}}),r,this)})))}},{key:"getBlockNumber",value:function(){return C(this,void 0,void 0,s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return C(this,void 0,void 0,s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,this.perform("getGasPrice",{});case 4:return t=e.sent,e.prev=5,e.abrupt("return",d.a.from(t));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",A.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0}));case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return C(this,void 0,void 0,s.a.mark((function n(){var r,i;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,Object(v.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getBalance",r);case 7:return i=n.sent,n.prev=8,n.abrupt("return",d.a.from(i));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",A.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:i,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return C(this,void 0,void 0,s.a.mark((function n(){var r,i;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,Object(v.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getTransactionCount",r);case 7:return i=n.sent,n.prev=8,n.abrupt("return",d.a.from(i).toNumber());case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",A.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:i,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return C(this,void 0,void 0,s.a.mark((function n(){var r,i;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,Object(v.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getCode",r);case 7:return i=n.sent,n.prev=8,n.abrupt("return",Object(h.hexlify)(i));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",A.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:i,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,n){return C(this,void 0,void 0,s.a.mark((function r(){var i,o;return s.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,Object(v.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(t).then((function(e){return Object(h.hexValue)(e)}))});case 4:return i=r.sent,r.next=7,this.perform("getStorageAt",i);case 7:return o=r.sent,r.prev=8,r.abrupt("return",Object(h.hexlify)(o));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",A.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t){var n=this;if(null!=t&&32!==Object(h.hexDataLength)(t))throw new Error("invalid response - sendTransaction");var r=e;return null!=t&&e.hash!==t&&A.throwError("Transaction hash mismatch from Provider.sendTransaction.",k.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),r.wait=function(t){return C(n,void 0,void 0,s.a.mark((function n(){var r;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return 0!==t&&(this._emitted["t:"+e.hash]="pending"),n.next=3,this.waitForTransaction(e.hash,t);case 3:if(null!=(r=n.sent)||0!==t){n.next=6;break}return n.abrupt("return",null);case 6:return this._emitted["t:"+e.hash]=r.blockNumber,0===r.status&&A.throwError("transaction failed",k.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:r}),n.abrupt("return",r);case 9:case"end":return n.stop()}}),n,this)})))},r}},{key:"sendTransaction",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Promise.resolve(e).then((function(e){return Object(h.hexlify)(e)}));case 4:return n=t.sent,r=this.formatter.transaction(e),t.prev=6,t.next=9,this.perform("sendTransaction",{signedTransaction:n});case 9:return i=t.sent,t.abrupt("return",this._wrapTransaction(r,i));case 13:throw t.prev=13,t.t0=t.catch(6),t.t0.transaction=r,t.t0.transactionHash=r.hash,t.t0;case 18:case"end":return t.stop()}}),t,this,[[6,13]])})))}},{key:"_getTransactionRequest",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r,i=this;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return n=t.sent,r={},["from","to"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?i._getAddress(e):null})))})),["gasLimit","gasPrice","value"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?d.a.from(e):null})))})),["type"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return null!=e?e:null})))})),n.accessList&&(r.accessList=this.formatter.accessList(n.accessList)),["data"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?Object(h.hexlify)(e):null})))})),t.t0=this.formatter,t.next=12,Object(v.resolveProperties)(r);case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1));case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r=this;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,n={},null!=e.address&&(n.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(n[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(n[t]=r._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,Object(v.resolveProperties)(n);case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"call",value:function(e,t){return C(this,void 0,void 0,s.a.mark((function n(){var r,i;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,Object(v.resolveProperties)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("call",r);case 7:return i=n.sent,n.prev=8,n.abrupt("return",Object(h.hexlify)(i));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",A.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"call",params:r,result:i,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"estimateGas",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Object(v.resolveProperties)({transaction:this._getTransactionRequest(e)});case 4:return n=t.sent,t.next=7,this.perform("estimateGas",n);case 7:return r=t.sent,t.prev=8,t.abrupt("return",d.a.from(r));case 12:return t.prev=12,t.t0=t.catch(8),t.abrupt("return",A.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"estimateGas",params:n,result:r,error:t.t0}));case 15:case"end":return t.stop()}}),t,this,[[8,12]])})))}},{key:"_getAddress",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resolveName(e);case 2:return null==(n=t.sent)&&A.throwError("ENS name not configured",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName(".concat(JSON.stringify(e),")")}),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"_getBlock",value:function(e,t){return C(this,void 0,void 0,s.a.mark((function n(){var r,i,o=this;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,e;case 4:if(e=n.sent,r=-128,i={includeTransactions:!!t},!Object(h.isHexString)(e,32)){n.next=11;break}i.blockHash=e,n.next=23;break;case 11:return n.prev=11,n.t0=this.formatter,n.next=15,this._getBlockTag(e);case 15:n.t1=n.sent,i.blockTag=n.t0.blockTag.call(n.t0,n.t1),Object(h.isHexString)(i.blockTag)&&(r=parseInt(i.blockTag.substring(2),16)),n.next=23;break;case 20:n.prev=20,n.t2=n.catch(11),A.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e);case 23:return n.abrupt("return",Object(w.poll)((function(){return C(o,void 0,void 0,s.a.mark((function e(){var n,o,a,u,l;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.perform("getBlock",i);case 2:if(null!=(n=e.sent)){e.next=11;break}if(null==i.blockHash){e.next=7;break}if(null!=this._emitted["b:"+i.blockHash]){e.next=7;break}return e.abrupt("return",null);case 7:if(null==i.blockTag){e.next=10;break}if(!(r>this._emitted.block)){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",void 0);case 11:if(!t){e.next=32;break}o=null,a=0;case 14:if(!(a<n.transactions.length)){e.next=31;break}if(null!=(u=n.transactions[a]).blockNumber){e.next=20;break}u.confirmations=0,e.next=28;break;case 20:if(null!=u.confirmations){e.next=28;break}if(null!=o){e.next=25;break}return e.next=24,this._getInternalBlockNumber(100+2*this.pollingInterval);case 24:o=e.sent;case 25:(l=o-u.blockNumber+1)<=0&&(l=1),u.confirmations=l;case 28:a++,e.next=14;break;case 31:return e.abrupt("return",this.formatter.blockWithTransactions(n));case 32:return e.abrupt("return",this.formatter.block(n));case 33:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this}));case 24:case"end":return n.stop()}}),n,this,[[11,20]])})))}},{key:"getBlock",value:function(e){return this._getBlock(e,!1)}},{key:"getBlockWithTransactions",value:function(e){return this._getBlock(e,!0)}},{key:"getTransaction",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r=this;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,n={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",Object(w.poll)((function(){return C(r,void 0,void 0,s.a.mark((function t(){var r,i,o,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransaction",n);case 2:if(null!=(r=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=(i=this.formatter.transactionResponse(r)).blockNumber){t.next=12;break}i.confirmations=0,t.next=19;break;case 12:if(null!=i.confirmations){t.next=19;break}return t.next=15,this._getInternalBlockNumber(100+2*this.pollingInterval);case 15:o=t.sent,(a=o-i.blockNumber+1)<=0&&(a=1),i.confirmations=a;case 19:return t.abrupt("return",this._wrapTransaction(i));case 20:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionReceipt",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r=this;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,n={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",Object(w.poll)((function(){return C(r,void 0,void 0,s.a.mark((function t(){var r,i,o,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransactionReceipt",n);case 2:if(null!=(r=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=r.blockHash){t.next=9;break}return t.abrupt("return",void 0);case 9:if(null!=(i=this.formatter.receipt(r)).blockNumber){t.next=14;break}i.confirmations=0,t.next=21;break;case 14:if(null!=i.confirmations){t.next=21;break}return t.next=17,this._getInternalBlockNumber(100+2*this.pollingInterval);case 17:o=t.sent,(a=o-i.blockNumber+1)<=0&&(a=1),i.confirmations=a;case 21:return t.abrupt("return",i);case 22:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getLogs",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Object(v.resolveProperties)({filter:this._getFilter(e)});case 4:return n=t.sent,t.next=7,this.perform("getLogs",n);case 7:return(r=t.sent).forEach((function(e){null==e.removed&&(e.removed=!1)})),t.abrupt("return",T.a.arrayOf(this.formatter.filterLog.bind(this.formatter))(r));case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getEtherPrice",value:function(){return C(this,void 0,void 0,s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.abrupt("return",this.perform("getEtherPrice",{}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"_getBlockTag",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:if(!("number"===typeof(e=t.sent)&&e<0)){t.next=11;break}return e%1&&A.throwArgumentError("invalid BlockTag","blockTag",e),t.next=7,this._getInternalBlockNumber(100+2*this.pollingInterval);case 7:return n=t.sent,(n+=e)<0&&(n=0),t.abrupt("return",this.formatter.blockTag(n));case 11:return t.abrupt("return",this.formatter.blockTag(e));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"getResolver",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getResolver(e);case 2:if(null!=(n=t.sent)){t.next=5;break}return t.abrupt("return",null);case 5:return t.abrupt("return",new B(this,n,e));case 6:case"end":return t.stop()}}),t,this)})))}},{key:"_getResolver",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return(n=t.sent).ensAddress||A.throwError("network does not support ENS",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:n.name}),r={to:n.ensAddress,data:"0x0178b8bf"+Object(g.b)(e).substring(2)},t.t0=this.formatter,t.next=8,this.call(r);case 8:return t.t1=t.sent,t.abrupt("return",t.t0.callAddress.call(t.t0,t.t1));case 10:case"end":return t.stop()}}),t,this)})))}},{key:"resolveName",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,t.prev=3,t.abrupt("return",Promise.resolve(this.formatter.address(e)));case 7:if(t.prev=7,t.t0=t.catch(3),!Object(h.isHexString)(e)){t.next=11;break}throw t.t0;case 11:return"string"!==typeof e&&A.throwArgumentError("invalid ENS name","name",e),t.next=14,this.getResolver(e);case 14:if(n=t.sent){t.next=17;break}return t.abrupt("return",null);case 17:return t.next=19,n.getAddress();case 19:return t.abrupt("return",t.sent);case 20:case"end":return t.stop()}}),t,this,[[3,7]])})))}},{key:"lookupAddress",value:function(e){return C(this,void 0,void 0,s.a.mark((function t(){var n,r,i,o,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,e=this.formatter.address(e),n=e.substring(2).toLowerCase()+".addr.reverse",t.next=7,this._getResolver(n);case 7:if(r=t.sent){t.next=10;break}return t.abrupt("return",null);case 10:return t.t0=h.arrayify,t.next=13,this.call({to:r,data:"0x691f3431"+Object(g.b)(n).substring(2)});case 13:if(t.t1=t.sent,!((i=(0,t.t0)(t.t1)).length<32)&&d.a.from(i.slice(0,32)).eq(32)){t.next=17;break}return t.abrupt("return",null);case 17:if(!((i=i.slice(32)).length<32)){t.next=20;break}return t.abrupt("return",null);case 20:if(o=d.a.from(i.slice(0,32)).toNumber(),i=i.slice(32),!(o>i.length)){t.next=24;break}return t.abrupt("return",null);case 24:return a=Object(b.h)(i.slice(0,o)),t.next=27,this.resolveName(a);case 27:if(t.sent==e){t.next=30;break}return t.abrupt("return",null);case 30:return t.abrupt("return",a);case 31:case"end":return t.stop()}}),t,this)})))}},{key:"perform",value:function(e,t){return A.throwError(e+" not implemented",k.Logger.errors.NOT_IMPLEMENTED,{operation:e})}},{key:"_startEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,n){var r=new L(E(e),t,n);return this._events.push(r),this._startEvent(r),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=!1,a=[],s=E(e);return this._events=this._events.filter((function(e){return e.tag!==s||(setTimeout((function(){e.listener.apply(t,r)}),0),o=!0,!e.once||(a.push(e),!1))})),a.forEach((function(e){t._stopEvent(e)})),o}},{key:"listenerCount",value:function(e){if(!e)return this._events.length;var t=E(e);return this._events.filter((function(e){return e.tag===t})).length}},{key:"listeners",value:function(e){if(null==e)return this._events.map((function(e){return e.listener}));var t=E(e);return this._events.filter((function(e){return e.tag===t})).map((function(e){return e.listener}))}},{key:"off",value:function(e,t){var n=this;if(null==t)return this.removeAllListeners(e);var r=[],i=!1,o=E(e);return this._events=this._events.filter((function(e){return e.tag!==o||e.listener!=t||(!!i||(i=!0,r.push(e),!1))})),r.forEach((function(e){n._stopEvent(e)})),this}},{key:"removeAllListeners",value:function(e){var t=this,n=[];if(null==e)n=this._events,this._events=[];else{var r=E(e);this._events=this._events.filter((function(e){return e.tag!==r||(n.push(e),!1)}))}return n.forEach((function(e){t._stopEvent(e)})),this}}],[{key:"getFormatter",value:function(){return null==F&&(F=new T.a),F}},{key:"getNetwork",value:function(e){return Object(y.getNetwork)(null==e?"homestead":e)}}]),n}(c.b)},function(e,t,n){"use strict";n.r(t),n.d(t,"BaseX",(function(){return s})),n.d(t,"Base32",(function(){return u})),n.d(t,"Base58",(function(){return l}));var r=n(11),i=n(13),o=n(5),a=n(7),s=function(){function e(t){Object(r.a)(this,e),Object(a.defineReadOnly)(this,"alphabet",t),Object(a.defineReadOnly)(this,"base",t.length),Object(a.defineReadOnly)(this,"_alphabetMap",{}),Object(a.defineReadOnly)(this,"_leader",t.charAt(0));for(var n=0;n<t.length;n++)this._alphabetMap[t.charAt(n)]=n}return Object(i.a)(e,[{key:"encode",value:function(e){var t=Object(o.arrayify)(e);if(0===t.length)return"";for(var n=[0],r=0;r<t.length;++r){for(var i=t[r],a=0;a<n.length;++a)i+=n[a]<<8,n[a]=i%this.base,i=i/this.base|0;for(;i>0;)n.push(i%this.base),i=i/this.base|0}for(var s="",u=0;0===t[u]&&u<t.length-1;++u)s+=this._leader;for(var l=n.length-1;l>=0;--l)s+=this.alphabet[n[l]];return s}},{key:"decode",value:function(e){if("string"!==typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var n=0;n<e.length;n++){var r=this._alphabetMap[e[n]];if(void 0===r)throw new Error("Non-base"+this.base+" character");for(var i=r,a=0;a<t.length;++a)i+=t[a]*this.base,t[a]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(var s=0;e[s]===this._leader&&s<e.length-1;++s)t.push(0);return Object(o.arrayify)(new Uint8Array(t.reverse()))}}]),e}(),u=new s("abcdefghijklmnopqrstuvwxyz234567"),l=new s("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,n){var r=n(62).default,i=n(57);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?i(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(388),i=n(389),o=n(252),a=n(390);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(29),i=n(37);function o(e){return Object(r.keccak256)(Object(i.f)(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Flex=t.Box=void 0;u(n(0));var r=u(n(586)),i=n(53),o=function(e){if(e&&e.__esModule)return e;var t=s();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}}n.default=e,t&&t.set(e,n);return n}(n(155)),a=u(n(287));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}var l=(0,r.default)("div",{shouldForwardProp:a.default})({boxSizing:"border-box",margin:0,minWidth:0},(function(e){return(0,o.default)(e.__css)(e.theme)}),(function(e){var t=e.theme,n=e.variant,r=e.tx,i=void 0===r?"variants":r;return(0,o.default)((0,o.get)(t,i+"."+n,(0,o.get)(t,n)))(t)}),(function(e){return(0,o.default)(e.sx)(e.theme)}),(function(e){return e.css}),(0,i.compose)(i.space,i.layout,i.typography,i.color,i.flexbox));t.Box=l;var c=(0,r.default)(l)({display:"flex"});t.Flex=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return Oe})),n.d(t,"b",(function(){return q})),n.d(t,"c",(function(){return $}));var r=n(26),i=n(143),o=n(24),a=n(16),s=n(17),u=n(11),l=n(13),c=n(12),f=n(20),d=n(35),h=n(0),p=n.n(h),g={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"===typeof e},str:function(e){return"string"===typeof e},num:function(e){return"number"===typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!==typeof t)return!1;if(g.str(e)||g.num(e))return e===t;if(g.obj(e)&&g.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!g.und(n)||e===t}};function y(){var e=Object(h.useState)(!1)[1];return Object(h.useCallback)((function(){return e((function(e){return!e}))}),[])}function v(e,t){return g.und(e)||g.nul(e)?t:e}function m(e){return g.und(e)?[]:g.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return g.fun(e)?e.apply(void 0,n):e}function w(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Object(d.a)(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(g.und(t))return Object(f.a)({to:t},e);var n=Object.keys(e).reduce((function(n,r){return g.und(t[r])?Object(f.a)({},n,Object(c.a)({},r,e[r])):n}),{});return Object(f.a)({to:t},n)}var x,_,k=function(){function e(){Object(u.a)(this,e),this.payload=void 0,this.children=[]}return Object(l.a)(e,[{key:"getAnimatedValue",value:function(){return this.getValue()}},{key:"getPayload",value:function(){return this.payload||this}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"getChildren",value:function(){return this.children}},{key:"addChild",value:function(e){0===this.children.length&&this.attach(),this.children.push(e)}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}]),e}(),S=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(u.a)(this,n),(e=t.apply(this,arguments)).payload=[],e.attach=function(){return e.payload.forEach((function(t){return t instanceof k&&t.addChild(Object(o.a)(e))}))},e.detach=function(){return e.payload.forEach((function(t){return t instanceof k&&t.removeChild(Object(o.a)(e))}))},e}return n}(k),T=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(u.a)(this,n),(e=t.apply(this,arguments)).payload={},e.attach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof k&&t.addChild(Object(o.a)(e))}))},e.detach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof k&&t.removeChild(Object(o.a)(e))}))},e}return Object(l.a)(n,[{key:"getValue",value:function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof k)&&(t[n]=r instanceof k?r[e?"getAnimatedValue":"getValue"]():r)}return t}},{key:"getAnimatedValue",value:function(){return this.getValue(!0)}}]),n}(k);function C(e,t){x={fn:e,transform:t}}function A(e){_=e}var O,M=function(e){return"undefined"!==typeof window?window.requestAnimationFrame(e):-1};function E(e){O=e}var P=function(){return Date.now()};function I(e){e}var D,L,R=function(e){return e.current};function N(e){D=e}var j=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;return Object(u.a)(this,n),(i=t.call(this)).update=void 0,i.payload=e.style?Object(f.a)({},e,{style:D(e.style)}):e,i.update=r,i.attach(),i}return n}(T),B=!1,F=new Set,z=function e(){if(!B)return!1;var t,n=P(),r=Object(i.a)(F);try{for(r.s();!(t=r.n()).done;){for(var o=t.value,a=!1,s=0;s<o.configs.length;s++){for(var u=o.configs[s],l=void 0,c=void 0,f=0;f<u.animatedValues.length;f++){var d=u.animatedValues[f];if(!d.done){var h=u.fromValues[f],p=u.toValues[f],g=d.lastPosition,y=p instanceof k,v=Array.isArray(u.initialVelocity)?u.initialVelocity[f]:u.initialVelocity;if(y&&(p=p.getValue()),u.immediate)d.setValue(p),d.done=!0;else if("string"!==typeof h&&"string"!==typeof p){if(void 0!==u.duration)g=h+u.easing((n-d.startTime)/u.duration)*(p-h),l=n>=d.startTime+u.duration;else if(u.decay)g=h+v/(1-.998)*(1-Math.exp(-(1-.998)*(n-d.startTime))),(l=Math.abs(d.lastPosition-g)<.1)&&(p=g);else{c=void 0!==d.lastTime?d.lastTime:n,v=void 0!==d.lastVelocity?d.lastVelocity:u.initialVelocity,n>c+64&&(c=n);for(var m=Math.floor(n-c),b=0;b<m;++b){g+=1*(v+=1*((-u.tension*(g-p)+-u.friction*v)/u.mass)/1e3)/1e3}var w=!(!u.clamp||0===u.tension)&&(h<p?g>p:g<p),x=Math.abs(v)<=u.precision,_=0===u.tension||Math.abs(p-g)<=u.precision;l=w||x&&_,d.lastVelocity=v,d.lastTime=n}y&&!u.toValues[f].done&&(l=!1),l?(d.value!==p&&(g=p),d.done=!0):a=!0,d.setValue(g),d.lastPosition=g}else d.setValue(p),d.done=!0}}o.props.onFrame&&(o.values[u.name]=u.interpolation.getValue())}o.props.onFrame&&o.props.onFrame(o.values),a||(F.delete(o),o.stop(!0))}}catch(S){r.e(S)}finally{r.f()}return F.size?L?L():M(e):B=!1,B};function V(e,t,n){if("function"===typeof e)return e;if(Array.isArray(e))return V({range:e,output:t,extrapolate:n});if(O&&"string"===typeof e.output[0])return O(e);var r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,u){var l=u?u(e):e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r;return l}(e,o[t],o[t+1],i[t],i[t+1],u,a,s,r.map)}}var H=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i,o){var a;return Object(u.a)(this,n),(a=t.call(this)).calc=void 0,a.payload=e instanceof S&&!(e instanceof n)?e.getPayload():Array.isArray(e)?e:[e],a.calc=V(r,i,o),a}return Object(l.a)(n,[{key:"getValue",value:function(){return this.calc.apply(this,Object(r.a)(this.payload.map((function(e){return e.getValue()}))))}},{key:"updateConfig",value:function(e,t,n){this.calc=V(e,t,n)}},{key:"interpolate",value:function(e,t,r){return new n(this,e,t,r)}}]),n}(S);var U=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var r,i;return Object(u.a)(this,n),r=t.call(this),i=Object(o.a)(r),r.animatedStyles=new Set,r.value=void 0,r.startPosition=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.startTime=void 0,r.lastTime=void 0,r.done=!1,r.setValue=function(e,t){void 0===t&&(t=!0),i.value=e,t&&i.flush()},r.value=e,r.startPosition=e,r.lastPosition=e,r}return Object(l.a)(n,[{key:"flush",value:function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,n){return new H(this,e,t,n)}}]),n}(k),G=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this)).payload=e.map((function(e){return new U(e)})),r}return Object(l.a)(n,[{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))}},{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"interpolate",value:function(e,t){return new H(this,e,t)}}]),n}(S),J=0,X=function(){function e(){var t=this;Object(u.a)(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=J++}return Object(l.a)(e,[{key:"update",value:function(e){if(!e)return this;var t=w(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=Object(d.a)(t,["delay","to"]);if(g.arr(i)||g.fun(i))this.queue.push(Object(f.a)({},o,{delay:r,to:i}));else if(i){var a={};Object.entries(i).forEach((function(e){var t=e[0],n=e[1],i=Object(f.a)({to:Object(c.a)({},t,n),delay:b(r,t)},o),s=a[i.delay]&&a[i.delay].to;a[i.delay]=Object(f.a)({},a[i.delay],i,{to:Object(f.a)({},s,i.to)})})),this.queue=Object.values(a)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(o),this}},{key:"start",value:function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,o=void 0===i?{}:i;g.obj(r)&&(n.merged=Object(f.a)({},r,n.merged)),g.obj(o)&&(n.merged=Object(f.a)({},n.merged,o))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var a=t.delay,s=Object(d.a)(t,["delay"]),u=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},l=g.arr(s.to)||g.fun(s.to);a?setTimeout((function(){r===n.guid&&(l?n.runAsync(s,u):n.diff(s).start(u))}),a):l?n.runAsync(s,u):n.diff(s).start(u)}))}else g.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,F.has(t)||F.add(t),B||(B=!0,M(L||z));return this}},{key:"stop",value:function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,F.has(t)&&F.delete(t)),this}},{key:"runAsync",value:function(e,t){var n=this,r=this,i=(e.delay,Object(d.a)(e,["delay"])),o=this.local,a=Promise.resolve(void 0);if(g.arr(i.to))for(var s=function(e){var t=e,r=Object(f.a)({},i,w(i.to[t]));g.arr(r.config)&&(r.config=r.config[t]),a=a.then((function(){if(o===n.guid)return new Promise((function(e){return n.diff(r).start(e)}))}))},u=0;u<i.to.length;u++)s(u);else if(g.fun(i.to)){var l,c=0;a=a.then((function(){return i.to((function(e){var t=Object(f.a)({},i,w(e));if(g.arr(t.config)&&(t.config=t.config[c]),c++,o===n.guid)return l=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),r.stop(e)})).then((function(){return l}))}))}a.then(t)}},{key:"diff",value:function(e){var t=this;this.props=Object(f.a)({},this.props,e);var n=this.props,r=n.from,i=void 0===r?{}:r,o=n.to,a=void 0===o?{}:o,s=n.config,u=void 0===s?{}:s,l=n.reverse,d=n.attach,h=n.reset,p=n.immediate;if(l){var y=[a,i];i=y[0],a=y[1]}this.merged=Object(f.a)({},i,this.merged,a),this.hasChanged=!1;var w=d&&d(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],o=n[1],a=e[r]||{},s=g.num(o),l=g.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!_[o],d=g.arr(o),y=!s&&!d&&!l,x=g.und(i[r])?o:i[r],k=s||d||l?o:1,S=b(u,r);w&&(k=w.animations[r].parent);var T,C=a.parent,A=a.interpolation,M=m(w?k.getPayload():k),E=o;y&&(E=O({range:[0,1],output:[o,o]})(1));var I=A&&A.getValue(),D=!g.und(C)&&a.animatedValues.some((function(e){return!e.done})),L=!g.equ(E,I),R=!g.equ(E,a.previous),N=!g.equ(S,a.config);if(h||R&&L||N){if(s||l)C=A=a.parent||new U(x);else if(d)C=A=a.parent||new G(x);else if(y){var j=a.interpolation&&a.interpolation.calc(a.parent.value);j=void 0===j||h?x:j,a.parent?(C=a.parent).setValue(0,!1):C=new U(0);var B={output:[j,o]};a.interpolation?(A=a.interpolation,a.interpolation.updateConfig(B)):A=C.interpolate(B)}return M=m(w?k.getPayload():k),T=m(C.getPayload()),h&&!y&&C.setValue(x,!1),t.hasChanged=!0,T.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=D?e.lastVelocity:void 0,e.lastTime=D?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),b(p,r)&&C.setValue(y?k:o,!1),Object(f.a)({},e,Object(c.a)({},r,Object(f.a)({},a,{name:r,parent:C,interpolation:A,animatedValues:T,toValues:M,previous:E,config:S,fromValues:m(C.getValue()),immediate:b(p,r),initialVelocity:v(S.velocity,0),clamp:v(S.clamp,!1),precision:v(S.precision,.01),tension:v(S.tension,170),friction:v(S.friction,26),mass:v(S.mass,1),duration:S.duration,easing:v(S.easing,(function(e){return e})),decay:S.decay})))}return L?e:(y&&(C.setValue(1,!1),A.updateConfig({output:[E,E]})),C.done=!0,t.hasChanged=!0,Object(f.a)({},e,Object(c.a)({},r,Object(f.a)({},e[r],{previous:E}))))}),this.animations),this.hasChanged)for(var x in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[x]=this.animations[x].interpolation,this.values[x]=this.animations[x].interpolation.getValue();return this}},{key:"destroy",value:function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}]),e}(),W=function(e,t){var n=Object(h.useRef)(!1),r=Object(h.useRef)(),i=g.fun(t),o=Object(h.useMemo)((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var o=new X,a=i?b(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),a=o[0],s=o[1];r.current=a;Object(h.useImperativeHandle)(s,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var u=Object(h.useMemo)((function(){return function(e){return r.current.map((function(t,n){t.update(i?b(e,n,t):e[n]),s||t.start()}))}}),[e]);Object(h.useEffect)((function(){n.current?i||u(t):s||r.current.forEach((function(e){return e.start()}))})),Object(h.useEffect)((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var l=r.current.map((function(e){return e.getValues()}));return i?[l,u,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:l},q=function(e){var t=g.fun(e),n=W(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r},Z=0,K=function(e,t){return("function"===typeof t?e.map(t):m(t)).map(String)},Y=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=Object(d.a)(e,["items","keys"]);return t=m(void 0!==t?t:null),Object(f.a)({items:t,keys:K(t,r)},i)};function $(e,t,n){var i=Object(f.a)({items:e,keys:t||function(e){return e}},n),o=Y(i),a=o.lazy,s=void 0!==a&&a,u=(o.unique,o.reset),l=void 0!==u&&u,c=(o.enter,o.leave,o.update,o.onDestroyed),p=(o.keys,o.items,o.onFrame),g=o.onRest,v=o.onStart,m=o.ref,w=Object(d.a)(o,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),x=y(),_=Object(h.useRef)(!1),k=Object(h.useRef)({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!i.ref,instances:!_.current&&new Map,forceUpdate:x});return Object(h.useImperativeHandle)(i.ref,(function(){return{start:function(){return Promise.all(Array.from(k.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(k.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(k.current.instances).map((function(e){return e[1]}))}}})),k.current=function(e,t){var n=e.first,i=e.prevProps,o=Object(d.a)(e,["first","prevProps"]),a=Y(t),s=a.items,u=a.keys,l=a.initial,c=a.from,h=a.enter,p=a.leave,g=a.update,y=a.trail,v=void 0===y?0:y,m=a.unique,w=a.config,x=a.order,_=void 0===x?["enter","leave","update"]:x,k=Y(i),S=k.keys,T=k.items,C=Object(f.a)({},o.current),A=Object(r.a)(o.deleted),O=Object.keys(C),M=new Set(O),E=new Set(u),P=u.filter((function(e){return!M.has(e)})),I=o.transitions.filter((function(e){return!e.destroyed&&!E.has(e.originalKey)})).map((function(e){return e.originalKey})),D=u.filter((function(e){return M.has(e)})),L=-v;for(;_.length;){switch(_.shift()){case"enter":P.forEach((function(e,t){m&&A.find((function(t){return t.originalKey===e}))&&(A=A.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),i=s[r],o=n&&void 0!==l?"initial":"enter";C[e]={slot:o,originalKey:e,key:m?String(e):Z++,item:i,trail:L+=v,config:b(w,i,o),from:b(n&&void 0!==l?l||{}:c,i),to:b(h,i)}}));break;case"leave":I.forEach((function(e){var t=S.indexOf(e),n=T[t];A.unshift(Object(f.a)({},C[e],{slot:"leave",destroyed:!0,left:S[Math.max(0,t-1)],right:S[Math.min(S.length,t+1)],trail:L+=v,config:b(w,n,"leave"),to:b(p,n)})),delete C[e]}));break;case"update":D.forEach((function(e){var t=u.indexOf(e),n=s[t];C[e]=Object(f.a)({},C[e],{item:n,slot:"update",trail:L+=v,config:b(w,n,"update"),to:b(g,n)})}))}}var R=u.map((function(e){return C[e]}));return A.forEach((function(e){var t,n=e.left,i=(e.right,Object(d.a)(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(Object(r.a)(R.slice(0,t)),[i],Object(r.a)(R.slice(t)))})),Object(f.a)({},o,{changed:P.length||I.length||D.length,first:n&&0===P.length,transitions:R,current:C,deleted:A,prevProps:t})}(k.current,i),k.current.changed&&k.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,o=e.trail,a=e.key,u=e.item;k.current.instances.has(a)||k.current.instances.set(a,new X);var d=k.current.instances.get(a),h=Object(f.a)({},w,{to:r,from:n,config:i,ref:m,onRest:function(n){k.current.mounted&&(e.destroyed&&(m||s||Q(k,a),c&&c(u)),!Array.from(k.current.instances).some((function(e){return!e[1].idle}))&&(m||s)&&k.current.deleted.length>0&&Q(k),g&&g(u,t,n))},onStart:v&&function(){return v(u,t)},onFrame:p&&function(e){return p(u,t,e)},delay:o,reset:l&&"enter"===t});d.update(h),k.current.paused||d.start()})),Object(h.useEffect)((function(){return k.current.mounted=_.current=!0,function(){k.current.mounted=_.current=!1,Array.from(k.current.instances).map((function(e){return e[1].destroy()})),k.current.instances.clear()}}),[]),k.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:k.current.instances.get(r).getValues()}}))}function Q(e,t){var n,r=e.current.deleted,o=Object(i.a)(r);try{var a=function(){var r=n.value.key,i=function(e){return e.key!==r};(g.und(t)||t===r)&&(e.current.instances.delete(r),e.current.transitions=e.current.transitions.filter(i),e.current.deleted=e.current.deleted.filter(i))};for(o.s();!(n=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}e.current.forceUpdate()}var ee=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(u.a)(this,n),void 0===e&&(e={}),r=t.call(this),!e.transform||e.transform instanceof k||(e=x.transform(e)),r.payload=e,r}return n}(T),te={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ne="[-+]?\\d*\\.?\\d+";function re(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ie=new RegExp("rgb"+re(ne,ne,ne)),oe=new RegExp("rgba"+re(ne,ne,ne,ne)),ae=new RegExp("hsl"+re(ne,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),se=new RegExp("hsla"+re(ne,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ne)),ue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,le=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{6})$/,fe=/^#([0-9a-fA-F]{8})$/;function de(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function he(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=de(i,r,e+1/3),a=de(i,r,e),s=de(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function pe(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function ge(e){return(parseFloat(e)%360+360)%360/360}function ye(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ve(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t=function(e){var t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ce.exec(e))?parseInt(t[1]+"ff",16)>>>0:te.hasOwnProperty(e)?te[e]:(t=ie.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|255)>>>0:(t=oe.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|ye(t[4]))>>>0:(t=ue.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=fe.exec(e))?parseInt(t[1],16)>>>0:(t=le.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ae.exec(e))?(255|he(ge(t[1]),ve(t[2]),ve(t[3])))>>>0:(t=se.exec(e))?(he(ge(t[1]),ve(t[2]),ve(t[3]))|ye(t[4]))>>>0:null}(e);if(null===t)return e;var n=(16711680&(t=t||0))>>>16,r=(65280&t)>>>8,i=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(n,", ").concat(r,", ").concat(i,")")}var be=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,we=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,xe=new RegExp("(".concat(Object.keys(te).join("|"),")"),"g"),_e={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,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},ke=["Webkit","Ms","Moz","O"];function Se(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||_e.hasOwnProperty(e)&&_e[e]?(""+t).trim():t+"px"}_e=Object.keys(_e).reduce((function(e,t){return ke.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),_e);var Te={};N((function(e){return new ee(e)})),I("div"),E((function(e){var t=e.output.map((function(e){return e.replace(we,me)})).map((function(e){return e.replace(xe,me)})),n=t[0].match(be).map((function(){return[]}));t.forEach((function(e){e.match(be).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(be).map((function(t,r){return V(Object(f.a)({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(be,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,i){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(i,")")}))}})),A(te),C((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,i=t.scrollTop,o=t.scrollLeft,a=Object(d.a)(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==i&&(e.scrollTop=i),void 0!==o&&(e.scrollLeft=o),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),c=Se(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,c):e.style[u]=c}for(var f in a){var h=s?f:Te[f]||(Te[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));"undefined"!==typeof e.getAttribute(h)&&e.setAttribute(h,a[f])}}),(function(e){return e}));var Ce,Ae,Oe=(Ce=function(e){return Object(h.forwardRef)((function(t,n){var r=y(),i=Object(h.useRef)(!0),o=Object(h.useRef)(null),a=Object(h.useRef)(null),s=Object(h.useCallback)((function(e){var t=o.current;o.current=new j(e,(function(){var e=!1;a.current&&(e=x.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);Object(h.useEffect)((function(){return function(){i.current=!1,o.current&&o.current.detach()}}),[]),Object(h.useImperativeHandle)(n,(function(){return R(a,i,r)})),s(t);var u,l=o.current.getValue(),c=(l.scrollTop,l.scrollLeft,Object(d.a)(l,["scrollTop","scrollLeft"])),v=(u=e,!g.fun(u)||u.prototype instanceof p.a.Component?function(e){return a.current=function(e,t){return t&&(g.fun(t)?t(e):g.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return p.a.createElement(e,Object(f.a)({},c,{ref:v}))}))},void 0===(Ae=!1)&&(Ae=!0),function(e){return(g.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ae?t[0].toLowerCase()+t.substring(1):t;return e[n]=Ce(n),e}),Ce)})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"])},function(e,t,n){var r=n(238);e.exports=function(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=r(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}},function(e,t,n){"use strict";n.r(t);var r=n(85);n.d(t,"computeHmac",(function(){return r.a})),n.d(t,"ripemd160",(function(){return r.b})),n.d(t,"sha256",(function(){return r.c})),n.d(t,"sha512",(function(){return r.d}));var i=n(154);n.d(t,"SupportedAlgorithm",(function(){return i.a}))},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(250);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(391);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=t.parseBytes32String=t.formatBytes32String=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t._toEscapedUtf8String=t.nameprep=t.hexDataSlice=t.hexDataLength=t.hexZeroPad=t.hexValue=t.hexStripZeros=t.hexConcat=t.isHexString=t.hexlify=t.base64=t.base58=t.TransactionDescription=t.LogDescription=t.Interface=t.SigningKey=t.HDNode=t.defaultPath=t.isBytesLike=t.isBytes=t.zeroPad=t.stripZeros=t.concat=t.arrayify=t.shallowCopy=t.resolveProperties=t.getStatic=t.defineReadOnly=t.deepCopy=t.checkProperties=t.poll=t.fetchJson=t._fetchData=t.RLP=t.Logger=t.checkResultErrors=t.FormatTypes=t.ParamType=t.FunctionFragment=t.EventFragment=t.Fragment=t.defaultAbiCoder=t.AbiCoder=void 0,t.Indexed=t.Utf8ErrorReason=t.UnicodeNormalizationForm=t.SupportedAlgorithm=t.mnemonicToSeed=t.isValidMnemonic=t.entropyToMnemonic=t.mnemonicToEntropy=t.verifyTypedData=t.verifyMessage=t.recoverPublicKey=t.computePublicKey=t.recoverAddress=t.computeAddress=t.getJsonWalletAddress=t.serializeTransaction=t.parseTransaction=t.accessListify=t.joinSignature=t.splitSignature=t.soliditySha256=t.solidityKeccak256=t.solidityPack=t.shuffled=t.randomBytes=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.computeHmac=t.commify=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.isAddress=t.getCreate2Address=t.getContractAddress=t.getIcapAddress=t.getAddress=t._TypedDataEncoder=t.id=t.isValidName=t.namehash=void 0;var a=n(114);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return a.AbiCoder}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(t,"defaultAbiCoder",{enumerable:!0,get:function(){return a.defaultAbiCoder}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return a.EventFragment}}),Object.defineProperty(t,"FormatTypes",{enumerable:!0,get:function(){return a.FormatTypes}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return a.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return a.FunctionFragment}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return a.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return a.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return a.LogDescription}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return a.ParamType}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return a.TransactionDescription}});var s=n(28);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return s.getAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return s.getCreate2Address}}),Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return s.getContractAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return s.getIcapAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return s.isAddress}});var u=o(n(147));t.base64=u;var l=n(90);Object.defineProperty(t,"base58",{enumerable:!0,get:function(){return l.Base58}});var c=n(5);Object.defineProperty(t,"arrayify",{enumerable:!0,get:function(){return c.arrayify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return c.concat}}),Object.defineProperty(t,"hexConcat",{enumerable:!0,get:function(){return c.hexConcat}}),Object.defineProperty(t,"hexDataSlice",{enumerable:!0,get:function(){return c.hexDataSlice}}),Object.defineProperty(t,"hexDataLength",{enumerable:!0,get:function(){return c.hexDataLength}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return c.hexlify}}),Object.defineProperty(t,"hexStripZeros",{enumerable:!0,get:function(){return c.hexStripZeros}}),Object.defineProperty(t,"hexValue",{enumerable:!0,get:function(){return c.hexValue}}),Object.defineProperty(t,"hexZeroPad",{enumerable:!0,get:function(){return c.hexZeroPad}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return c.isBytes}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return c.isBytesLike}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return c.isHexString}}),Object.defineProperty(t,"joinSignature",{enumerable:!0,get:function(){return c.joinSignature}}),Object.defineProperty(t,"zeroPad",{enumerable:!0,get:function(){return c.zeroPad}}),Object.defineProperty(t,"splitSignature",{enumerable:!0,get:function(){return c.splitSignature}}),Object.defineProperty(t,"stripZeros",{enumerable:!0,get:function(){return c.stripZeros}});var f=n(108);Object.defineProperty(t,"_TypedDataEncoder",{enumerable:!0,get:function(){return f._TypedDataEncoder}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return f.hashMessage}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return f.id}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return f.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return f.namehash}});var d=n(46);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return d.defaultPath}}),Object.defineProperty(t,"entropyToMnemonic",{enumerable:!0,get:function(){return d.entropyToMnemonic}}),Object.defineProperty(t,"HDNode",{enumerable:!0,get:function(){return d.HDNode}}),Object.defineProperty(t,"isValidMnemonic",{enumerable:!0,get:function(){return d.isValidMnemonic}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return d.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToSeed",{enumerable:!0,get:function(){return d.mnemonicToSeed}});var h=n(140);Object.defineProperty(t,"getJsonWalletAddress",{enumerable:!0,get:function(){return h.getJsonWalletAddress}});var p=n(29);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return p.keccak256}});var g=n(8);Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return g.Logger}});var y=n(97);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return y.computeHmac}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return y.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return y.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return y.sha512}});var v=n(113);Object.defineProperty(t,"solidityKeccak256",{enumerable:!0,get:function(){return v.keccak256}}),Object.defineProperty(t,"solidityPack",{enumerable:!0,get:function(){return v.pack}}),Object.defineProperty(t,"soliditySha256",{enumerable:!0,get:function(){return v.sha256}});var m=n(134);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return m.randomBytes}}),Object.defineProperty(t,"shuffled",{enumerable:!0,get:function(){return m.shuffled}});var b=n(7);Object.defineProperty(t,"checkProperties",{enumerable:!0,get:function(){return b.checkProperties}}),Object.defineProperty(t,"deepCopy",{enumerable:!0,get:function(){return b.deepCopy}}),Object.defineProperty(t,"defineReadOnly",{enumerable:!0,get:function(){return b.defineReadOnly}}),Object.defineProperty(t,"getStatic",{enumerable:!0,get:function(){return b.getStatic}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return b.resolveProperties}}),Object.defineProperty(t,"shallowCopy",{enumerable:!0,get:function(){return b.shallowCopy}});var w=o(n(71));t.RLP=w;var x=n(61);Object.defineProperty(t,"computePublicKey",{enumerable:!0,get:function(){return x.computePublicKey}}),Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return x.recoverPublicKey}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return x.SigningKey}});var _=n(48);Object.defineProperty(t,"formatBytes32String",{enumerable:!0,get:function(){return _.formatBytes32String}}),Object.defineProperty(t,"nameprep",{enumerable:!0,get:function(){return _.nameprep}}),Object.defineProperty(t,"parseBytes32String",{enumerable:!0,get:function(){return _.parseBytes32String}}),Object.defineProperty(t,"_toEscapedUtf8String",{enumerable:!0,get:function(){return _._toEscapedUtf8String}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return _.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return _.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return _.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return _.Utf8ErrorFuncs}});var k=n(36);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return k.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return k.computeAddress}}),Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return k.parse}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return k.recoverAddress}}),Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return k.serialize}});var S=n(88);Object.defineProperty(t,"commify",{enumerable:!0,get:function(){return S.commify}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return S.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return S.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return S.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return S.parseUnits}});var T=n(116);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return T.verifyMessage}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return T.verifyTypedData}});var C=n(51);Object.defineProperty(t,"_fetchData",{enumerable:!0,get:function(){return C._fetchData}}),Object.defineProperty(t,"fetchJson",{enumerable:!0,get:function(){return C.fetchJson}}),Object.defineProperty(t,"poll",{enumerable:!0,get:function(){return C.poll}});var A=n(97);Object.defineProperty(t,"SupportedAlgorithm",{enumerable:!0,get:function(){return A.SupportedAlgorithm}});var O=n(48);Object.defineProperty(t,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return O.UnicodeNormalizationForm}}),Object.defineProperty(t,"Utf8ErrorReason",{enumerable:!0,get:function(){return O.Utf8ErrorReason}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(28);function i(e){var t=null;try{t=JSON.parse(e)}catch(n){return!1}return t.encseed&&t.ethaddr}function o(e){var t=null;try{t=JSON.parse(e)}catch(n){return!1}return!(!t.version||parseInt(t.version)!==t.version||3!==parseInt(t.version))}function a(e){if(i(e))try{return Object(r.getAddress)(JSON.parse(e).ethaddr)}catch(t){return null}if(o(e))try{return Object(r.getAddress)(JSON.parse(e).address)}catch(t){return null}return null}},function(e,t,n){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",o="week",a="month",s="quarter",u="year",l="date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+h(r,2,"0")+":"+h(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,a),o=n-i<0,s=t.clone().add(r+(o?-1:1),a);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return{M:a,y:u,w:o,d:i,D:l,h:r,m:n,s:t,ms:e,Q:s}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},g="en",y={};y[g]=d;var v=function(e){return e instanceof x},m=function(e,t,n){var r;if(!e)return g;if("string"==typeof e)y[e]&&(r=e),t&&(y[e]=t,r=e);else{var i=e.name;y[i]=e,r=i}return!n&&r&&(g=r),r||!n&&g},b=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},w=p;w.l=m,w.i=v,w.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function d(e){this.$L=m(e.locale,null,!0),this.parse(e)}var h=d.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(c);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return w},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return b(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<b(e)},h.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,s){var c=this,f=!!w.u(s)||s,d=w.p(e),h=function(e,t){var n=w.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return f?n:n.endOf(i)},p=function(e,t){return w.w(c.toDate()[e].apply(c.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},g=this.$W,y=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case u:return f?h(1,0):h(31,11);case a:return f?h(1,y):h(0,y+1);case o:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return h(f?v-x:v+(6-x),y);case i:case l:return p(m+"Hours",0);case r:return p(m+"Minutes",1);case n:return p(m+"Seconds",2);case t:return p(m+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(o,s){var c,f=w.p(o),d="set"+(this.$u?"UTC":""),h=(c={},c[i]=d+"Date",c[l]=d+"Date",c[a]=d+"Month",c[u]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[f],p=f===i?this.$D+(s-this.$W):s;if(f===a||f===u){var g=this.clone().set(l,1);g.$d[h](p),g.init(),this.$d=g.set(l,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[w.p(e)]()},h.add=function(e,s){var l,c=this;e=Number(e);var f=w.p(s),d=function(t){var n=b(c);return w.w(n.date(n.date()+Math.round(t*e)),c)};if(f===a)return this.set(a,this.$M+e);if(f===u)return this.set(u,this.$y+e);if(f===i)return d(1);if(f===o)return d(7);var h=(l={},l[n]=6e4,l[r]=36e5,l[t]=1e3,l)[f]||1,p=this.$d.getTime()+e*h;return w.w(p,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=w.z(this),i=this.$locale(),o=this.$H,a=this.$m,s=this.$M,u=i.weekdays,l=i.months,c=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].substr(0,o)},d=function(e){return w.s(o%12||12,e,"0")},h=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:w.s(s+1,2,"0"),MMM:c(i.monthsShort,s,l,3),MMMM:c(l,s),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:c(i.weekdaysMin,this.$W,u,2),ddd:c(i.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:w.s(o,2,"0"),h:d(1),hh:d(2),a:h(o,a,!0),A:h(o,a,!1),m:String(a),mm:w.s(a,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:r};return n.replace(f,(function(e,t){return t||p[e]||r.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,l,c){var f,d=w.p(l),h=b(e),p=6e4*(h.utcOffset()-this.utcOffset()),g=this-h,y=w.m(this,h);return y=(f={},f[u]=y/12,f[a]=y,f[s]=y/3,f[o]=(g-p)/6048e5,f[i]=(g-p)/864e5,f[r]=g/36e5,f[n]=g/6e4,f[t]=g/1e3,f)[d]||g,c?y:w.a(y)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return y[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=m(e,t,!0);return r&&(n.$L=r),n},h.clone=function(){return w.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}(),_=x.prototype;return b.prototype=_,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W",i],["$M",a],["$y",u],["$D",l]].forEach((function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),b.extend=function(e,t){return e.$i||(e(t,x,b),e.$i=!0),b},b.locale=m,b.isDayjs=v,b.unix=function(e){return b(1e3*e)},b.en=y[g],b.Ls=y,b.p={},b}()},function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(18)),o=n(0),a=r(o),s=r(n(194)),u=r(n(543));function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?g(e):t}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var m=function(e,t){var n=t.decimal,r=t.decimals,i=t.duration,o=t.easingFn,a=t.end,s=t.formattingFn,l=t.prefix,c=t.separator,f=t.start,d=t.suffix,h=t.useEasing;return new u(e,f,a,r,i,{decimal:n,easingFn:o,formattingFn:s,separator:c,prefix:l,suffix:d,useEasing:h,useGrouping:!!c})},b=function(e){function t(){var e,n;l(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return f(g(n=y(this,(e=h(t)).call.apply(e,[this].concat(i)))),"createInstance",(function(){return"function"===typeof n.props.children&&s(n.containerRef.current&&(n.containerRef.current instanceof HTMLElement||n.containerRef.current instanceof SVGTextElement||n.containerRef.current instanceof SVGTSpanElement),'Couldn\'t find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an HTMLElement, eg. <span ref={containerRef} />.'),m(n.containerRef.current,n.props)})),f(g(n),"pauseResume",(function(){var e=g(n),t=e.reset,r=e.restart,i=e.update,o=n.props.onPauseResume;n.instance.pauseResume(),o({reset:t,start:r,update:i})})),f(g(n),"reset",(function(){var e=g(n),t=e.pauseResume,r=e.restart,i=e.update,o=n.props.onReset;n.instance.reset(),o({pauseResume:t,start:r,update:i})})),f(g(n),"restart",(function(){n.reset(),n.start()})),f(g(n),"start",(function(){var e=g(n),t=e.pauseResume,r=e.reset,i=e.restart,o=e.update,a=n.props,s=a.delay,u=a.onEnd,l=a.onStart,c=function(){return n.instance.start((function(){return u({pauseResume:t,reset:r,start:i,update:o})}))};s>0?n.timeoutId=setTimeout(c,1e3*s):c(),l({pauseResume:t,reset:r,update:o})})),f(g(n),"update",(function(e){var t=g(n),r=t.pauseResume,i=t.reset,o=t.restart,a=n.props.onUpdate;n.instance.update(e),a({pauseResume:r,reset:i,start:o})})),f(g(n),"containerRef",a.createRef()),n}var n,r,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.children,n=e.delay;this.instance=this.createInstance(),"function"===typeof t&&0!==n||this.start()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.end,r=t.start,i=t.suffix,o=t.prefix,a=t.redraw,s=t.duration,u=t.separator,l=t.decimals,c=t.decimal;return s!==e.duration||n!==e.end||r!==e.start||i!==e.suffix||o!==e.prefix||u!==e.separator||l!==e.decimals||c!==e.decimal||a}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.end,r=t.start,i=t.suffix,o=t.prefix,a=t.duration,s=t.separator,u=t.decimals,l=t.decimal,c=t.preserveValue;a===e.duration&&r===e.start&&i===e.suffix&&o===e.prefix&&s===e.separator&&u===e.decimals&&l===e.decimal||(this.instance.reset(),this.instance=this.createInstance(),this.start()),n!==e.end&&(c||this.instance.reset(),this.instance.update(n))}},{key:"componentWillUnmount",value:function(){this.timeoutId&&clearTimeout(this.timeoutId),this.instance.reset()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style,i=this.containerRef,o=this.pauseResume,s=this.reset,u=this.restart,l=this.update;return"function"===typeof t?t({countUpRef:i,pauseResume:o,reset:s,start:u,update:l}):a.createElement("span",{className:n,ref:i,style:r})}}])&&c(n.prototype,r),i&&c(n,i),t}(o.Component);f(b,"propTypes",{decimal:i.string,decimals:i.number,delay:i.number,easingFn:i.func,end:i.number.isRequired,formattingFn:i.func,onEnd:i.func,onStart:i.func,prefix:i.string,redraw:i.bool,separator:i.string,start:i.number,startOnMount:i.bool,suffix:i.string,style:i.object,useEasing:i.bool,preserveValue:i.bool}),f(b,"defaultProps",{decimal:".",decimals:0,delay:null,duration:null,easingFn:null,formattingFn:null,onEnd:function(){},onPauseResume:function(){},onReset:function(){},onStart:function(){},onUpdate:function(){},prefix:"",redraw:!1,separator:"",start:0,startOnMount:!0,suffix:"",style:void 0,useEasing:!0,preserveValue:!1});var w={innerHTML:null};t.default=b,t.useCountUp=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b.defaultProps,{},e),n=t.start,r=t.formattingFn,i=v(o.useState("function"===typeof r?r(n):n),2),a=i[0],s=i[1],u=o.useRef(null),l=function(){var e=u.current;if(null!==e)return e;var n=function(){var e=m(w,t),n=e.options.formattingFn;return e.options.formattingFn=function(){var e=n.apply(void 0,arguments);s(e)},e}();return u.current=n,n},c=function(){var e=t.onReset;l().reset(),e({pauseResume:p,start:h,update:g})},h=function e(){var n=t.onStart,r=t.onEnd;l().reset(),l().start((function(){r({pauseResume:p,reset:c,start:e,update:g})})),n({pauseResume:p,reset:c,update:g})},p=function(){var e=t.onPauseResume;l().pauseResume(),e({reset:c,start:h,update:g})},g=function(e){var n=t.onUpdate;l().update(e),n({pauseResume:p,reset:c,start:h})};return o.useEffect((function(){var e=t.delay,n=t.onStart,r=t.onEnd;if(t.startOnMount)var i=setTimeout((function(){n({pauseResume:p,reset:c,update:g}),l().start((function(){clearTimeout(i),r({pauseResume:p,reset:c,start:h,update:g})}))}),1e3*e);return c}),[]),{countUp:a,start:h,pauseResume:p,reset:c,update:g}}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(25),i=r.a.from(-1),o=r.a.from(0),a=r.a.from(1),s=r.a.from(2),u=r.a.from("1000000000000000000"),l=r.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},function(e,t,n){"use strict";n.r(t);var r=n(93);n.d(t,"id",(function(){return r.a}));var i=n(111);n.d(t,"namehash",(function(){return i.b})),n.d(t,"isValidName",(function(){return i.a}));var o=n(193);n.d(t,"messagePrefix",(function(){return o.b})),n.d(t,"hashMessage",(function(){return o.a}));var a=n(160);n.d(t,"_TypedDataEncoder",(function(){return a.a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return r.b})),n.d(t,"BaseProvider",(function(){return o.a})),n.d(t,"Resolver",(function(){return o.b})),n.d(t,"UrlJsonRpcProvider",(function(){return E})),n.d(t,"FallbackProvider",(function(){return ce})),n.d(t,"AlchemyProvider",(function(){return L})),n.d(t,"AlchemyWebSocketProvider",(function(){return D})),n.d(t,"CloudflareProvider",(function(){return j})),n.d(t,"EtherscanProvider",(function(){return q})),n.d(t,"InfuraProvider",(function(){return ge})),n.d(t,"InfuraWebSocketProvider",(function(){return pe})),n.d(t,"JsonRpcProvider",(function(){return m.a})),n.d(t,"JsonRpcBatchProvider",(function(){return ye})),n.d(t,"NodesmithProvider",(function(){return me})),n.d(t,"PocketProvider",(function(){return xe})),n.d(t,"StaticJsonRpcProvider",(function(){return M})),n.d(t,"Web3Provider",(function(){return _e.a})),n.d(t,"WebSocketProvider",(function(){return C})),n.d(t,"IpcProvider",(function(){return fe})),n.d(t,"JsonRpcSigner",(function(){return m.b})),n.d(t,"getDefaultProvider",(function(){return Se})),n.d(t,"getNetwork",(function(){return i.getNetwork})),n.d(t,"isCommunityResource",(function(){return d.c})),n.d(t,"isCommunityResourcable",(function(){return d.b})),n.d(t,"showThrottleMessage",(function(){return d.d})),n.d(t,"Formatter",(function(){return d.a}));var r=n(70),i=n(119),o=n(89),a=n(11),s=n(13),u=n(24),l=n(16),c=n(17),f=n(7),d=n(56),h=n(4),p=n.n(h),g=n(54),y=n(42),v=n(25),m=n(67),b=n(8),w=n(34),x=null;try{if(null==(x=WebSocket))throw new Error("inject please")}catch(Te){var _=new b.Logger(w.a);x=function(){_.throwError("WebSockets not supported in this environment",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var k=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},S=new b.Logger(w.a),T=1,C=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i,o;Object(a.a)(this,n),"any"===r&&S.throwError("WebSocketProvider does not support 'any' network yet",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),(o=t.call(this,e,r))._pollingInterval=-1,o._wsReady=!1,Object(f.defineReadOnly)(Object(u.a)(o),"_websocket",new x(o.connection.url)),Object(f.defineReadOnly)(Object(u.a)(o),"_requests",{}),Object(f.defineReadOnly)(Object(u.a)(o),"_subs",{}),Object(f.defineReadOnly)(Object(u.a)(o),"_subIds",{}),Object(f.defineReadOnly)(Object(u.a)(o),"_detectNetwork",Object(g.a)((i=Object(u.a)(o),Object(y.a)(n.prototype)),"detectNetwork",i).call(i)),o._websocket.onopen=function(){o._wsReady=!0,Object.keys(o._requests).forEach((function(e){o._websocket.send(o._requests[e].payload)}))},o._websocket.onmessage=function(e){var t=e.data,n=JSON.parse(t);if(null!=n.id){var r=String(n.id),i=o._requests[r];if(delete o._requests[r],void 0!==n.result)i.callback(null,n.result),o.emit("debug",{action:"response",request:JSON.parse(i.payload),response:n.result,provider:Object(u.a)(o)});else{var a=null;n.error?(a=new Error(n.error.message||"unknown error"),Object(f.defineReadOnly)(a,"code",n.error.code||null),Object(f.defineReadOnly)(a,"response",t)):a=new Error("unknown error"),i.callback(a,void 0),o.emit("debug",{action:"response",error:a,request:JSON.parse(i.payload),provider:Object(u.a)(o)})}}else if("eth_subscription"===n.method){var s=o._subs[n.params.subscription];s&&s.processFunc(n.params.result)}};var s=setInterval((function(){o.emit("poll")}),1e3);return s.unref&&s.unref(),o}return Object(s.a)(n,[{key:"detectNetwork",value:function(){return this._detectNetwork}},{key:"pollingInterval",get:function(){return 0},set:function(e){S.throwError("cannot set polling interval on WebSocketProvider",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}},{key:"resetEventsBlock",value:function(e){S.throwError("cannot reset events block on WebSocketProvider",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}},{key:"poll",value:function(){return k(this,void 0,void 0,p.a.mark((function e(){return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})))}},{key:"polling",set:function(e){e&&S.throwError("cannot set polling on WebSocketProvider",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}},{key:"send",value:function(e,t){var n=this,r=T++;return new Promise((function(i,o){var a=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});n.emit("debug",{action:"request",request:JSON.parse(a),provider:n}),n._requests[String(r)]={callback:function(e,t){return e?o(e):i(t)},payload:a},n._wsReady&&n._websocket.send(a)}))}},{key:"_subscribe",value:function(e,t,n){return k(this,void 0,void 0,p.a.mark((function r(){var i,o,a=this;return p.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==(i=this._subIds[e])&&(i=Promise.all(t).then((function(e){return a.send("eth_subscribe",e)})),this._subIds[e]=i),r.next=4,i;case 4:o=r.sent,this._subs[o]={tag:e,processFunc:n};case 6:case"end":return r.stop()}}),r,this)})))}},{key:"_startEvent",value:function(e){var t=this;switch(e.type){case"block":this._subscribe("block",["newHeads"],(function(e){var n=v.a.from(e.number).toNumber();t._emitted.block=n,t.emit("block",n)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(function(e){t.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(function(n){null==n.removed&&(n.removed=!1),t.emit(e.filter,t.formatter.filterLog(n))}));break;case"tx":var n=function(e){var n=e.hash;t.getTransactionReceipt(n).then((function(e){e&&t.emit(n,e)}))};n(e),this._subscribe("tx",["newHeads"],(function(e){t._events.filter((function(e){return"tx"===e.type})).forEach(n)}))}}},{key:"_stopEvent",value:function(e){var t=this,n=e.tag;if("tx"===e.type){if(this._events.filter((function(e){return"tx"===e.type})).length)return;n="tx"}else if(this.listenerCount(e.event))return;var r=this._subIds[n];r&&(delete this._subIds[n],r.then((function(e){t._subs[e]&&(delete t._subs[e],t.send("eth_unsubscribe",[e]))})))}},{key:"destroy",value:function(){return k(this,void 0,void 0,p.a.mark((function e(){var t=this;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._websocket.readyState!==x.CONNECTING){e.next=3;break}return e.next=3,new Promise((function(e){t._websocket.onopen=function(){e(!0)},t._websocket.onerror=function(){e(!1)}}));case 3:this._websocket.close(1e3);case 4:case"end":return e.stop()}}),e,this)})))}}],[{key:"defaultUrl",value:function(){return"ws://localhost:8546"}}]),n}(m.a),A=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},O=new b.Logger(w.a),M=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"detectNetwork",value:function(){var e=this,t=Object.create(null,{detectNetwork:{get:function(){return Object(g.a)(Object(y.a)(n.prototype),"detectNetwork",e)}}});return A(this,void 0,void 0,p.a.mark((function e(){var n;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(n=this.network)){e.next=7;break}return e.next=4,t.detectNetwork.call(this);case 4:(n=e.sent)||O.throwError("no network detected",b.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(Object(f.defineReadOnly)(this,"_network",n),this.emit("network",n,null));case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)})))}}]),n}(m.a),E=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;Object(a.a)(this,n),O.checkAbstract(this instanceof n?this.constructor:void 0,n),e=Object(f.getStatic)(this instanceof n?this.constructor:void 0,"getNetwork")(e),r=Object(f.getStatic)(this instanceof n?this.constructor:void 0,"getApiKey")(r);var o=Object(f.getStatic)(this instanceof n?this.constructor:void 0,"getUrl")(e,r);return i=t.call(this,o,e),"string"===typeof r?Object(f.defineReadOnly)(Object(u.a)(i),"apiKey",r):null!=r&&Object.keys(r).forEach((function(e){Object(f.defineReadOnly)(Object(u.a)(i),e,r[e])})),i}return Object(s.a)(n,[{key:"_startPending",value:function(){O.warn("WARNING: API provider does not support pending filters")}},{key:"isCommunityResource",value:function(){return!1}},{key:"getSigner",value:function(e){return O.throwError("API provider does not support signing",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}},{key:"listAccounts",value:function(){return Promise.resolve([])}}],[{key:"getApiKey",value:function(e){return e}},{key:"getUrl",value:function(e,t){return O.throwError("not implemented; sub-classes must override getUrl",b.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}]),n}(M),P=new b.Logger(w.a),I="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",D=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;Object(a.a)(this,n);var o=new L(e,r),s=o.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return i=t.call(this,s,o.network),Object(f.defineReadOnly)(Object(u.a)(i),"apiKey",o.apiKey),i}return Object(s.a)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===I}}]),n}(C),L=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===I}}],[{key:"getWebSocketProvider",value:function(e,t){return new D(e,t)}},{key:"getApiKey",value:function(e){return null==e?I:(e&&"string"!==typeof e&&P.throwArgumentError("invalid apiKey","apiKey",e),e)}},{key:"getUrl",value:function(e,t){var n=null;switch(e.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"ropsten":n="eth-ropsten.alchemyapi.io/v2/";break;case"rinkeby":n="eth-rinkeby.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.alchemyapi.io/v2/";break;case"kovan":n="eth-kovan.alchemyapi.io/v2/";break;default:P.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+n+t,throttleCallback:function(e,n){return t===I&&Object(d.d)(),Promise.resolve(!0)}}}}]),n}(E),R=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},N=new b.Logger(w.a),j=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"perform",value:function(e,t){var r=this,i=Object.create(null,{perform:{get:function(){return Object(g.a)(Object(y.a)(n.prototype),"perform",r)}}});return R(this,void 0,void 0,p.a.mark((function n(){var r;return p.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("getBlockNumber"!==e){n.next=5;break}return n.next=3,i.perform.call(this,"getBlock",{blockTag:"latest"});case 3:return r=n.sent,n.abrupt("return",r.number);case 5:return n.abrupt("return",i.perform.call(this,e,t));case 6:case"end":return n.stop()}}),n,this)})))}}],[{key:"getApiKey",value:function(e){return null!=e&&N.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}},{key:"getUrl",value:function(e,t){var n=null;switch(e.name){case"homestead":n="https://cloudflare-eth.com/";break;default:N.throwArgumentError("unsupported network","network",arguments[0])}return n}}]),n}(E),B=n(5),F=n(36),z=n(51),V=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},H=new b.Logger(w.a);function U(e){var t={};for(var n in e)if(null!=e[n]){var r=e[n];if({type:!0,gasLimit:!0,gasPrice:!0,nonce:!0,value:!0}[n])r=Object(B.hexValue)(Object(B.hexlify)(r));else if("accessList"===n){r="["+Object(F.accessListify)(r).map((function(e){return'{address:"'.concat(e.address,'",storageKeys:["').concat(e.storageKeys.join('","'),'"]}')})).join(",")+"]"}else r=Object(B.hexlify)(r);t[n]=r}return t}function G(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"OK"!=e.message){var t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function J(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var n=new Error("invalid response");throw n.result=JSON.stringify(e),n}if(e.error){var r=new Error(e.error.message||"unknown error");throw e.error.code&&(r.code=e.error.code),e.error.data&&(r.data=e.error.data),r}return e.result}function X(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function W(e,t,n){if("call"===e&&t.code===b.Logger.errors.SERVER_ERROR){var r=t.error;if(r&&r.message.match("reverted")&&Object(B.isHexString)(r.data))return r.data}var i=t.message;throw t.code===b.Logger.errors.SERVER_ERROR&&(t.error&&"string"===typeof t.error.message?i=t.error.message:"string"===typeof t.body?i=t.body:"string"===typeof t.responseText&&(i=t.responseText)),(i=(i||"").toLowerCase()).match(/insufficient funds/)&&H.throwError("insufficient funds for intrinsic transaction cost",b.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/same hash was already imported|transaction nonce is too low/)&&H.throwError("nonce has already been used",b.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/another transaction with same nonce/)&&H.throwError("replacement fee too low",b.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/execution failed due to an exception/)&&H.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}var q=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;Object(a.a)(this,n),H.checkNew(this instanceof n?this.constructor:void 0,n);var o="invalid";(i=t.call(this,e)).network&&(o=i.network.name);var s=null;switch(o){case"homestead":s="https://api.etherscan.io";break;case"ropsten":s="https://api-ropsten.etherscan.io";break;case"rinkeby":s="https://api-rinkeby.etherscan.io";break;case"kovan":s="https://api-kovan.etherscan.io";break;case"goerli":s="https://api-goerli.etherscan.io";break;default:throw new Error("unsupported network")}return Object(f.defineReadOnly)(Object(u.a)(i),"baseUrl",s),Object(f.defineReadOnly)(Object(u.a)(i),"apiKey",r||"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB"),i}return Object(s.a)(n,[{key:"detectNetwork",value:function(){return V(this,void 0,void 0,p.a.mark((function e(){return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network);case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){var r=this,i=Object.create(null,{perform:{get:function(){return Object(g.a)(Object(y.a)(n.prototype),"perform",r)}}});return V(this,void 0,void 0,p.a.mark((function n(){var r,o,a,s,u,l,c,h,g,y,v,m=this;return p.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=this.baseUrl+"/api",o="",this.apiKey&&(o+="&apikey="+this.apiKey),a=function(e,t,n){return V(m,void 0,void 0,p.a.mark((function r(){var i,o,a,s=this;return p.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.emit("debug",{action:"request",request:e,provider:this}),i={url:e,throttleSlotInterval:1e3,throttleCallback:function(e,t){return s.isCommunityResource()&&Object(d.d)(),Promise.resolve(!0)}},o=null,t&&(i.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},o=Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).join("&")),r.next=6,Object(z.fetchJson)(i,o,n||J);case 6:return a=r.sent,this.emit("debug",{action:"response",request:e,response:Object(f.deepCopy)(a),provider:this}),r.abrupt("return",a);case 9:case"end":return r.stop()}}),r,this)})))},n.t0=e,n.next="getBlockNumber"===n.t0?7:"getGasPrice"===n.t0?9:"getBalance"===n.t0?11:"getTransactionCount"===n.t0?14:"getCode"===n.t0?17:"getStorageAt"===n.t0?20:"sendTransaction"===n.t0?24:"getBlock"===n.t0?25:"getTransaction"===n.t0?31:"getTransactionReceipt"===n.t0?34:"call"===n.t0?37:"estimateGas"===n.t0?52:"getLogs"===n.t0?65:"getEtherPrice"===n.t0?90:99;break;case 7:return r+="?module=proxy&action=eth_blockNumber"+o,n.abrupt("return",a(r,null));case 9:return r+="?module=proxy&action=eth_gasPrice"+o,n.abrupt("return",a(r,null));case 11:return r+="?module=account&action=balance&address="+t.address,r+="&tag="+t.blockTag+o,n.abrupt("return",a(r,null,G));case 14:return r+="?module=proxy&action=eth_getTransactionCount&address="+t.address,r+="&tag="+t.blockTag+o,n.abrupt("return",a(r,null));case 17:return r+="?module=proxy&action=eth_getCode&address="+t.address,r+="&tag="+t.blockTag+o,n.abrupt("return",a(r,null));case 20:return r+="?module=proxy&action=eth_getStorageAt&address="+t.address,r+="&position="+t.position,r+="&tag="+t.blockTag+o,n.abrupt("return",a(r,null));case 24:return n.abrupt("return",a(r,{module:"proxy",action:"eth_sendRawTransaction",hex:t.signedTransaction,apikey:this.apiKey}).catch((function(e){return W("sendTransaction",e,t.signedTransaction)})));case 25:if(!t.blockTag){n.next=30;break}return r+="?module=proxy&action=eth_getBlockByNumber&tag="+t.blockTag,t.includeTransactions?r+="&boolean=true":r+="&boolean=false",r+=o,n.abrupt("return",a(r,null));case 30:throw new Error("getBlock by blockHash not implemented");case 31:return r+="?module=proxy&action=eth_getTransactionByHash&txhash="+t.transactionHash,r+=o,n.abrupt("return",a(r,null));case 34:return r+="?module=proxy&action=eth_getTransactionReceipt&txhash="+t.transactionHash,r+=o,n.abrupt("return",a(r,null));case 37:if("latest"===t.blockTag){n.next=39;break}throw new Error("EtherscanProvider does not support blockTag for call");case 39:return(s=U(t.transaction)).module="proxy",s.action="eth_call",s.apikey=this.apiKey,n.prev=43,n.next=46,a(r,s);case 46:return n.abrupt("return",n.sent);case 49:return n.prev=49,n.t1=n.catch(43),n.abrupt("return",W("call",n.t1,t.transaction));case 52:return(u=U(t.transaction)).module="proxy",u.action="eth_estimateGas",u.apikey=this.apiKey,n.prev=56,n.next=59,a(r,u);case 59:return n.abrupt("return",n.sent);case 62:return n.prev=62,n.t2=n.catch(56),n.abrupt("return",W("estimateGas",n.t2,t.transaction));case 65:return r+="?module=logs&action=getLogs",t.filter.fromBlock&&(r+="&fromBlock="+X(t.filter.fromBlock)),t.filter.toBlock&&(r+="&toBlock="+X(t.filter.toBlock)),t.filter.address&&(r+="&address="+t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&H.throwError("unsupported topic count",b.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length&&("string"===typeof(l=t.filter.topics[0])&&66===l.length||H.throwError("unsupported topic format",b.Logger.errors.UNSUPPORTED_OPERATION,{topic0:l}),r+="&topic0="+l)),r+=o,n.next=73,a(r,null,G);case 73:c=n.sent,h={},g=0;case 76:if(!(g<c.length)){n.next=89;break}if(null==(y=c[g]).blockHash){n.next=80;break}return n.abrupt("continue",86);case 80:if(null!=h[y.blockNumber]){n.next=85;break}return n.next=83,this.getBlock(y.blockNumber);case 83:(v=n.sent)&&(h[y.blockNumber]=v.hash);case 85:y.blockHash=h[y.blockNumber];case 86:g++,n.next=76;break;case 89:return n.abrupt("return",c);case 90:if("homestead"===this.network.name){n.next=92;break}return n.abrupt("return",0);case 92:return r+="?module=stats&action=ethprice",r+=o,n.t3=parseFloat,n.next=97,a(r,null,G);case 97:return n.t4=n.sent.ethusd,n.abrupt("return",(0,n.t3)(n.t4));case 99:return n.abrupt("break",100);case 100:return n.abrupt("return",i.perform.call(this,e,t));case 101:case"end":return n.stop()}}),n,this,[[43,49],[56,62]])})))}},{key:"getHistory",value:function(e,t,n){var r=this,i=this.baseUrl,o="";return this.apiKey&&(o+="&apikey="+this.apiKey),null==t&&(t=0),null==n&&(n=99999999),this.resolveName(e).then((function(e){i+="/api?module=account&action=txlist&address="+e,i+="&startblock="+t,i+="&endblock="+n,i+="&sort=asc"+o,r.emit("debug",{action:"request",request:i,provider:r});var a={url:i,throttleSlotInterval:1e3,throttleCallback:function(e,t){return"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB"===r.apiKey&&Object(d.d)(),Promise.resolve(!0)}};return Object(z.fetchJson)(a,null,G).then((function(e){r.emit("debug",{action:"response",request:i,response:Object(f.deepCopy)(e),provider:r});var t=[];return e.forEach((function(e){["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);var n=r.formatter.transactionResponse(e);e.timeStamp&&(n.timestamp=parseInt(e.timeStamp)),t.push(n)})),t}))}))}},{key:"isCommunityResource",value:function(){return"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB"===this.apiKey}}]),n}(o.a),Z=n(249),K=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Y=new b.Logger(w.a);function $(){return(new Date).getTime()}function Q(e){for(var t=null,n=0;n<e.length;n++){var r=e[n];if(null==r)return null;t?t.name===r.name&&t.chainId===r.chainId&&(t.ensAddress===r.ensAddress||null==t.ensAddress&&null==r.ensAddress)||Y.throwArgumentError("provider mismatch","networks",e):t=r}return t}function ee(e,t){e=e.slice().sort();var n=Math.floor(e.length/2);if(e.length%2)return e[n];var r=e[n-1],i=e[n];return null!=t&&Math.abs(r-i)>t?null:(r+i)/2}function te(e){if(null===e)return"null";if("number"===typeof e||"boolean"===typeof e)return JSON.stringify(e);if("string"===typeof e)return e;if(v.a.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((function(e){return te(e)})));if("object"===typeof e){var t=Object.keys(e);return t.sort(),"{"+t.map((function(t){var n=e[t];return n="function"===typeof n?"[function]":te(n),JSON.stringify(t)+":"+n})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}var ne=1;function re(e){var t=null,n=null,r=new Promise((function(r){t=function(){n&&(clearTimeout(n),n=null),r()},n=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return r},wait:function(e){return r=r.then(e)}}}var ie=[b.Logger.errors.CALL_EXCEPTION,b.Logger.errors.INSUFFICIENT_FUNDS,b.Logger.errors.NONCE_EXPIRED,b.Logger.errors.REPLACEMENT_UNDERPRICED,b.Logger.errors.UNPREDICTABLE_GAS_LIMIT],oe=["address","args","errorArgs","errorSignature","method","transaction"];function ae(e,t){var n={weight:e.weight};return Object.defineProperty(n,"provider",{get:function(){return e.provider}}),e.start&&(n.start=e.start),t&&(n.duration=t-e.start),e.done&&(e.error?n.error=e.error:n.result=e.result||null),n}function se(e,t,n){var r=te;switch(t){case"getBlockNumber":return function(t){var n=t.map((function(e){return e.result})),r=ee(t.map((function(e){return e.result})),2);if(null!=r)return r=Math.ceil(r),n.indexOf(r+1)>=0&&r++,r>=e._highestBlockNumber&&(e._highestBlockNumber=r),e._highestBlockNumber};case"getGasPrice":return function(e){var t=e.map((function(e){return e.result}));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return ee(e.map((function(e){return e.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":r=function(e){return null==e?null:((e=Object(f.shallowCopy)(e)).confirmations=-1,te(e))};break;case"getBlock":r=n.includeTransactions?function(e){return null==e?null:((e=Object(f.shallowCopy)(e)).transactions=e.transactions.map((function(e){return(e=Object(f.shallowCopy)(e)).confirmations=-1,e})),te(e))}:function(e){return null==e?null:te(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(n){var r={};n.forEach((function(t){var n=e(t.result);r[n]||(r[n]={count:0,result:t.result}),r[n].count++}));for(var i=Object.keys(r),o=0;o<i.length;o++){var a=r[i[o]];if(a.count>=t)return a.result}}}(r,e.quorum)}function ue(e,t){return K(this,void 0,void 0,p.a.mark((function n(){var r;return p.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null!=(r=e.provider).blockNumber&&r.blockNumber>=t||-1===t)){n.next=3;break}return n.abrupt("return",r);case 3:return n.abrupt("return",Object(z.poll)((function(){return new Promise((function(n,i){setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))}),{oncePoll:r}));case 4:case"end":return n.stop()}}),n)})))}function le(e,t,n,r){return K(this,void 0,void 0,p.a.mark((function i(){var o,a;return p.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=e.provider,i.t0=n,i.next="getBlockNumber"===i.t0||"getGasPrice"===i.t0?4:"getEtherPrice"===i.t0?5:"getBalance"===i.t0||"getTransactionCount"===i.t0||"getCode"===i.t0?8:"getStorageAt"===i.t0?13:"getBlock"===i.t0?18:"call"===i.t0||"estimateGas"===i.t0?23:"getTransaction"===i.t0||"getTransactionReceipt"===i.t0?28:"getLogs"===i.t0?29:35;break;case 4:return i.abrupt("return",o[n]());case 5:if(!o.getEtherPrice){i.next=7;break}return i.abrupt("return",o.getEtherPrice());case 7:return i.abrupt("break",35);case 8:if(!r.blockTag||!Object(B.isHexString)(r.blockTag)){i.next=12;break}return i.next=11,ue(e,t);case 11:o=i.sent;case 12:return i.abrupt("return",o[n](r.address,r.blockTag||"latest"));case 13:if(!r.blockTag||!Object(B.isHexString)(r.blockTag)){i.next=17;break}return i.next=16,ue(e,t);case 16:o=i.sent;case 17:return i.abrupt("return",o.getStorageAt(r.address,r.position,r.blockTag||"latest"));case 18:if(!r.blockTag||!Object(B.isHexString)(r.blockTag)){i.next=22;break}return i.next=21,ue(e,t);case 21:o=i.sent;case 22:return i.abrupt("return",o[r.includeTransactions?"getBlockWithTransactions":"getBlock"](r.blockTag||r.blockHash));case 23:if(!r.blockTag||!Object(B.isHexString)(r.blockTag)){i.next=27;break}return i.next=26,ue(e,t);case 26:o=i.sent;case 27:return i.abrupt("return",o[n](r.transaction));case 28:return i.abrupt("return",o[n](r.transactionHash));case 29:if(!((a=r.filter).fromBlock&&Object(B.isHexString)(a.fromBlock)||a.toBlock&&Object(B.isHexString)(a.toBlock))){i.next=34;break}return i.next=33,ue(e,t);case 33:o=i.sent;case 34:return i.abrupt("return",o.getLogs(a));case 35:return i.abrupt("return",Y.throwError("unknown method error",b.Logger.errors.UNKNOWN_ERROR,{method:n,params:r}));case 36:case"end":return i.stop()}}),i)})))}var ce=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,i){var o;Object(a.a)(this,n),Y.checkNew(this instanceof n?this.constructor:void 0,n),0===e.length&&Y.throwArgumentError("missing providers","providers",e);var s=e.map((function(e,t){if(r.b.isProvider(e)){var n=Object(d.c)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:n,priority:1})}var i=Object(f.shallowCopy)(e);null==i.priority&&(i.priority=1),null==i.stallTimeout&&(i.stallTimeout=Object(d.c)(e)?2e3:750),null==i.weight&&(i.weight=1);var o=i.weight;return(o%1||o>512||o<1)&&Y.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),o),Object.freeze(i)})),l=s.reduce((function(e,t){return e+t.weight}),0);null==i?i=l/2:i>l&&Y.throwArgumentError("quorum will always fail; larger than total weight","quorum",i);var c=Q(s.map((function(e){return e.provider.network})));return null==c&&(c=new Promise((function(e,t){setTimeout((function(){o.detectNetwork().then(e,t)}),0)}))),o=t.call(this,c),Object(f.defineReadOnly)(Object(u.a)(o),"providerConfigs",Object.freeze(s)),Object(f.defineReadOnly)(Object(u.a)(o),"quorum",i),o._highestBlockNumber=-1,o}return Object(s.a)(n,[{key:"detectNetwork",value:function(){return K(this,void 0,void 0,p.a.mark((function e(){var t;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()})));case 2:return t=e.sent,e.abrupt("return",Q(t));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return K(this,void 0,void 0,p.a.mark((function n(){var r,i,o,a,s,u,l,c,d,h,g=this;return p.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("sendTransaction"!==e){n.next=13;break}return n.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))})));case 3:r=n.sent,i=0;case 5:if(!(i<r.length)){n.next=12;break}if("string"!==typeof(o=r[i])){n.next=9;break}return n.abrupt("return",o);case 9:i++,n.next=5;break;case 12:throw r[0];case 13:if(-1!==this._highestBlockNumber||"getBlockNumber"===e){n.next=16;break}return n.next=16,this.getBlockNumber();case 16:a=se(this,e,t),(s=Object(Z.a)(this.providerConfigs.map(f.shallowCopy))).sort((function(e,t){return e.priority-t.priority})),u=this._highestBlockNumber,l=0,c=!0,d=p.a.mark((function n(){var r,i,o,d,h,y,v;return p.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(r=$(),i=s.filter((function(e){return e.runner&&r-e.start<e.stallTimeout})).reduce((function(e,t){return e+t.weight}),0),o=function(){var n=s[l++],r=ne++;n.start=$(),n.staller=re(n.stallTimeout),n.staller.wait((function(){n.staller=null})),n.runner=le(n,u,e,t).then((function(i){n.done=!0,n.result=i,g.listenerCount("debug")&&g.emit("debug",{action:"request",rid:r,backend:ae(n,$()),request:{method:e,params:Object(f.deepCopy)(t)},provider:g})}),(function(i){n.done=!0,n.error=i,g.listenerCount("debug")&&g.emit("debug",{action:"request",rid:r,backend:ae(n,$()),request:{method:e,params:Object(f.deepCopy)(t)},provider:g})})),g.listenerCount("debug")&&g.emit("debug",{action:"request",rid:r,backend:ae(n,null),request:{method:e,params:Object(f.deepCopy)(t)},provider:g}),i+=n.weight};i<g.quorum&&l<s.length;)o();if(d=[],s.forEach((function(e){!e.done&&e.runner&&(d.push(e.runner),e.staller&&d.push(e.staller.getPromise()))})),!d.length){n.next=9;break}return n.next=9,Promise.race(d);case 9:if(!((h=s.filter((function(e){return e.done&&null==e.error}))).length>=g.quorum)){n.next=19;break}if(void 0===(y=a(h))){n.next=15;break}return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),n.abrupt("return",{v:y});case 15:if(c){n.next=18;break}return n.next=18,re(100).getPromise();case 18:c=!1;case 19:if(v=s.reduce((function(e,t){if(!t.done||null==t.error)return e;var n=t.error.code;return ie.indexOf(n)>=0&&(e[n]||(e[n]={error:t.error,weight:0}),e[n].weight+=t.weight),e}),{}),Object.keys(v).forEach((function(e){var t=v[e];if(!(t.weight<g.quorum)){s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0}));var n=t.error,r={};oe.forEach((function(e){null!=n[e]&&(r[e]=n[e])})),Y.throwError(n.reason||n.message,e,r)}})),0!==s.filter((function(e){return!e.done})).length){n.next=23;break}return n.abrupt("return","break");case 23:case"end":return n.stop()}}),n)}));case 23:return n.delegateYield(d(),"t0",25);case 25:if("break"!==(h=n.t0)){n.next=28;break}return n.abrupt("break",32);case 28:if("object"!==typeof h){n.next=30;break}return n.abrupt("return",h.v);case 30:n.next=23;break;case 32:return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),n.abrupt("return",Y.throwError("failed to meet quorum",b.Logger.errors.SERVER_ERROR,{method:e,params:t,results:s.map((function(e){return ae(e)})),provider:this}));case 34:case"end":return n.stop()}}),n,this)})))}}]),n}(o.a),fe=null,de=new b.Logger(w.a),he="84842078b09946638c03157f83405213",pe=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;Object(a.a)(this,n);var o=new ge(e,r),s=o.connection;s.password&&de.throwError("INFURA WebSocket project secrets unsupported",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var l=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return i=t.call(this,l,e),Object(f.defineReadOnly)(Object(u.a)(i),"apiKey",o.projectId),Object(f.defineReadOnly)(Object(u.a)(i),"projectId",o.projectId),Object(f.defineReadOnly)(Object(u.a)(i),"projectSecret",o.projectSecret),i}return Object(s.a)(n,[{key:"isCommunityResource",value:function(){return this.projectId===he}}]),n}(C),ge=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"isCommunityResource",value:function(){return this.projectId===he}}],[{key:"getWebSocketProvider",value:function(e,t){return new pe(e,t)}},{key:"getApiKey",value:function(e){var t={apiKey:he,projectId:he,projectSecret:null};return null==e||("string"===typeof e?t.projectId=e:null!=e.projectSecret?(de.assertArgument("string"===typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),de.assertArgument("string"===typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}},{key:"getUrl",value:function(e,t){var n=null;switch(e?e.name:"unknown"){case"homestead":n="mainnet.infura.io";break;case"ropsten":n="ropsten.infura.io";break;case"rinkeby":n="rinkeby.infura.io";break;case"kovan":n="kovan.infura.io";break;case"goerli":n="goerli.infura.io";break;default:de.throwError("unsupported network",b.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var r={allowGzip:!0,url:"https://"+n+"/v3/"+t.projectId,throttleCallback:function(e,n){return t.projectId===he&&Object(d.d)(),Promise.resolve(!0)}};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}]),n}(E),ye=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"send",value:function(e,t){var n=this,r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);var i={request:r,resolve:null,reject:null},o=new Promise((function(e,t){i.resolve=e,i.reject=t}));return this._pendingBatch.push(i),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((function(){var e=n._pendingBatch;n._pendingBatch=null,n._pendingBatchAggregator=null;var t=e.map((function(e){return e.request}));return n.emit("debug",{action:"requestBatch",request:Object(f.deepCopy)(t),provider:n}),Object(z.fetchJson)(n.connection,JSON.stringify(t)).then((function(r){n.emit("debug",{action:"response",request:t,response:r,provider:n}),e.forEach((function(e,t){var n=r[t];if(n.error){var i=new Error(n.error.message);i.code=n.error.code,i.data=n.error.data,e.reject(i)}else e.resolve(n.result)}))}),(function(r){n.emit("debug",{action:"response",error:r,request:t,provider:n}),e.forEach((function(e){e.reject(r)}))}))}),10)),o}}]),n}(m.a),ve=new b.Logger(w.a),me=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,null,[{key:"getApiKey",value:function(e){return e&&"string"!==typeof e&&ve.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}},{key:"getUrl",value:function(e,t){ve.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var n=null;switch(e.name){case"homestead":n="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":n="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":n="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":n="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":n="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:ve.throwArgumentError("unsupported network","network",arguments[0])}return n+"?apiKey="+t}}]),n}(E),be=new b.Logger(w.a),we={homestead:"6004bcd10040261633ade990",ropsten:"6004bd4d0040261633ade991",rinkeby:"6004bda20040261633ade994",goerli:"6004bd860040261633ade992"},xe=function(e){Object(l.a)(n,e);var t=Object(c.a)(n);function n(e,r){if(Object(a.a)(this,n),null==r){var i=Object(f.getStatic)(this instanceof n?this.constructor:void 0,"getNetwork")(e);if(i){var o=we[i.name];o&&(r={applicationId:o,loadBalancer:!0})}null==r&&be.throwError("unsupported network",b.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}return t.call(this,e,r)}return Object(s.a)(n,[{key:"isCommunityResource",value:function(){return this.applicationId===we[this.network.name]}}],[{key:"getApiKey",value:function(e){null==e&&be.throwArgumentError("PocketProvider.getApiKey does not support null apiKey","apiKey",e);var t={applicationId:null,loadBalancer:!1,applicationSecretKey:null};return"string"===typeof e?t.applicationId=e:null!=e.applicationSecretKey?(be.assertArgument("string"===typeof e.applicationId,"applicationSecretKey requires an applicationId","applicationId",e.applicationId),be.assertArgument("string"===typeof e.applicationSecretKey,"invalid applicationSecretKey","applicationSecretKey","[REDACTED]"),t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey,t.loadBalancer=!!e.loadBalancer):e.applicationId?(be.assertArgument("string"===typeof e.applicationId,"apiKey.applicationId must be a string","apiKey.applicationId",e.applicationId),t.applicationId=e.applicationId,t.loadBalancer=!!e.loadBalancer):be.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}},{key:"getUrl",value:function(e,t){var n=null;switch(e?e.name:"unknown"){case"homestead":n="eth-mainnet.gateway.pokt.network";break;case"ropsten":n="eth-ropsten.gateway.pokt.network";break;case"rinkeby":n="eth-rinkeby.gateway.pokt.network";break;case"goerli":n="eth-goerli.gateway.pokt.network";break;default:be.throwError("unsupported network",b.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var r={url:t.loadBalancer?"https://".concat(n,"/v1/lb/").concat(t.applicationId):"https://".concat(n,"/v1/").concat(t.applicationId),headers:{}};return null!=t.applicationSecretKey&&(r.user="",r.password=t.applicationSecretKey),r}}]),n}(E),_e=n(208),ke=new b.Logger(w.a);function Se(e,t){if(null==e&&(e="homestead"),"string"===typeof e){var n=e.match(/^(ws|http)s?:/i);if(n)switch(n[1]){case"http":return new m.a(e);case"ws":return new C(e);default:ke.throwArgumentError("unsupported URL scheme","network",e)}}var r=Object(i.getNetwork)(e);return r&&r._defaultProvider||ke.throwError("unsupported getDefaultProvider network",b.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:ce,AlchemyProvider:L,CloudflareProvider:j,EtherscanProvider:q,InfuraProvider:ge,JsonRpcProvider:m.a,NodesmithProvider:me,PocketProvider:xe,Web3Provider:_e.a,IpcProvider:fe},t)}},function(e,t,n){"use strict";e.exports=n(364)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n(5),i=n(162),o=n(37),a=n(29),s=n(8),u=n(161),l=new s.Logger(u.a),c=new Uint8Array(32);c.fill(0);var f=new RegExp("^((.*)\\.)?([^.]+)$");function d(e){try{for(var t=e.split("."),n=0;n<t.length;n++)if(0===Object(i.a)(t[n]).length)throw new Error("empty");return!0}catch(r){}return!1}function h(e){"string"!==typeof e&&l.throwArgumentError("invalid address - "+String(e),"name",e);for(var t=c;e.length;){var n=e.match(f),s=Object(o.f)(Object(i.a)(n[3]));t=Object(a.keccak256)(Object(r.concat)([t,Object(a.keccak256)(s)])),e=n[2]||""}return Object(r.hexlify)(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return Nv})),n.d(t,"a",(function(){return i}));var r={};n.r(r),n.d(r,"extendShape",(function(){return rl})),n.d(r,"extendPath",(function(){return ol})),n.d(r,"registerShape",(function(){return al})),n.d(r,"getShapeClass",(function(){return sl})),n.d(r,"makePath",(function(){return ul})),n.d(r,"makeImage",(function(){return ll})),n.d(r,"mergePath",(function(){return fl})),n.d(r,"resizePath",(function(){return dl})),n.d(r,"subPixelOptimizeLine",(function(){return hl})),n.d(r,"subPixelOptimizeRect",(function(){return pl})),n.d(r,"subPixelOptimize",(function(){return gl})),n.d(r,"updateProps",(function(){return vl})),n.d(r,"initProps",(function(){return ml})),n.d(r,"removeElement",(function(){return bl})),n.d(r,"removeElementWithFadeOut",(function(){return xl})),n.d(r,"isElementRemoved",(function(){return _l})),n.d(r,"getTransform",(function(){return kl})),n.d(r,"applyTransform",(function(){return Sl})),n.d(r,"transformDirection",(function(){return Tl})),n.d(r,"groupTransition",(function(){return Al})),n.d(r,"clipPointsByRect",(function(){return Ol})),n.d(r,"clipRectByRect",(function(){return Ml})),n.d(r,"createIcon",(function(){return El})),n.d(r,"linePolygonIntersect",(function(){return Pl})),n.d(r,"lineLineIntersect",(function(){return Il})),n.d(r,"setTooltipConfig",(function(){return Ll})),n.d(r,"Group",(function(){return xr})),n.d(r,"Image",(function(){return Ta})),n.d(r,"Text",(function(){return Ga})),n.d(r,"Circle",(function(){return nu})),n.d(r,"Ellipse",(function(){return ou})),n.d(r,"Sector",(function(){return bu})),n.d(r,"Ring",(function(){return _u})),n.d(r,"Polygon",(function(){return Au})),n.d(r,"Polyline",(function(){return Eu})),n.d(r,"Rect",(function(){return Da})),n.d(r,"Line",(function(){return Lu})),n.d(r,"BezierCurve",(function(){return Fu})),n.d(r,"Arc",(function(){return Hu})),n.d(r,"IncrementalDisplayable",(function(){return Qu})),n.d(r,"CompoundPath",(function(){return Uu})),n.d(r,"LinearGradient",(function(){return Ju})),n.d(r,"RadialGradient",(function(){return Xu})),n.d(r,"BoundingRect",(function(){return _n})),n.d(r,"OrientedBoundingRect",(function(){return Yu})),n.d(r,"Point",(function(){return hn})),n.d(r,"Path",(function(){return ma}));var i={};n.r(i),n.d(i,"extendShape",(function(){return rl})),n.d(i,"extendPath",(function(){return ol})),n.d(i,"makePath",(function(){return ul})),n.d(i,"makeImage",(function(){return ll})),n.d(i,"mergePath",(function(){return fl})),n.d(i,"resizePath",(function(){return dl})),n.d(i,"createIcon",(function(){return El})),n.d(i,"updateProps",(function(){return vl})),n.d(i,"initProps",(function(){return ml})),n.d(i,"getTransform",(function(){return kl})),n.d(i,"clipPointsByRect",(function(){return Ol})),n.d(i,"clipRectByRect",(function(){return Ml})),n.d(i,"registerShape",(function(){return al})),n.d(i,"getShapeClass",(function(){return sl})),n.d(i,"Group",(function(){return xr})),n.d(i,"Image",(function(){return Ta})),n.d(i,"Text",(function(){return Ga})),n.d(i,"Circle",(function(){return nu})),n.d(i,"Ellipse",(function(){return ou})),n.d(i,"Sector",(function(){return bu})),n.d(i,"Ring",(function(){return _u})),n.d(i,"Polygon",(function(){return Au})),n.d(i,"Polyline",(function(){return Eu})),n.d(i,"Rect",(function(){return Da})),n.d(i,"Line",(function(){return Lu})),n.d(i,"BezierCurve",(function(){return Fu})),n.d(i,"Arc",(function(){return Hu})),n.d(i,"IncrementalDisplayable",(function(){return Qu})),n.d(i,"CompoundPath",(function(){return Uu})),n.d(i,"LinearGradient",(function(){return Ju})),n.d(i,"RadialGradient",(function(){return Xu})),n.d(i,"BoundingRect",(function(){return _n}));var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.create;function u(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}Object.create;var l=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},c=new function(){this.browser=new l,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1};"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(c.wxa=!0,c.canvasSupported=!0,c.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?(c.worker=!0,c.canvasSupported=!0):"undefined"===typeof navigator?(c.node=!0,c.canvasSupported=!0,c.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);t.canvasSupported=!!document.createElement("canvas").getContext,t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,c);var f=c,d={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},h={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},p=Object.prototype.toString,g=Array.prototype,y=g.forEach,v=g.filter,m=g.slice,b=g.map,w=function(){}.constructor,x=w?w.prototype:null,_={};var k=2311;function S(){return k++}function T(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function C(e){if(null==e||"object"!==typeof e)return e;var t=e,n=p.call(e);if("[object Array]"===n){if(!ae(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=C(e[r])}}else if(h[n]){if(!ae(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(r=0,i=e.length;r<i;r++)t[r]=C(e[r])}}}else if(!d[n]&&!ae(e)&&!K(e))for(var a in t={},e)e.hasOwnProperty(a)&&(t[a]=C(e[a]));return t}function A(e,t,n){if(!W(t)||!W(e))return n?C(t):e;for(var r in t)if(t.hasOwnProperty(r)){var i=e[r],o=t[r];!W(o)||!W(i)||H(o)||H(i)||K(o)||K(i)||q(o)||q(i)||ae(o)||ae(i)?!n&&r in e||(e[r]=C(t[r])):A(i,o,n)}return e}function O(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=A(n,e[r],t);return n}function M(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function E(e,t,n){for(var r=F(t),i=0;i<r.length;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}var P=function(){return _.createCanvas()};function I(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function D(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else E(e,t,n)}function L(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function R(e,t,n){if(e&&t)if(e.forEach&&e.forEach===y)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function N(e,t,n){if(!e)return[];if(!t)return te(e);if(e.map&&e.map===b)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function j(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function B(e,t,n){if(!e)return[];if(!t)return te(e);if(e.filter&&e.filter===v)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function F(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}_.createCanvas=function(){return document.createElement("canvas")};var z=x&&U(x.bind)?x.call.bind(x.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(m.call(arguments)))}};function V(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(m.call(arguments)))}}function H(e){return Array.isArray?Array.isArray(e):"[object Array]"===p.call(e)}function U(e){return"function"===typeof e}function G(e){return"string"===typeof e}function J(e){return"[object String]"===p.call(e)}function X(e){return"number"===typeof e}function W(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function q(e){return!!d[p.call(e)]}function Z(e){return!!h[p.call(e)]}function K(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function Y(e){return e!==e}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function Q(e,t){return null!=e?e:t}function ee(e,t,n){return null!=e?e:null!=t?t:n}function te(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return m.apply(e,t)}function ne(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function re(e,t){if(!e)throw new Error(t)}function ie(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function oe(e){e.__ec_primitive__=!0}function ae(e){return e.__ec_primitive__}var se=function(){function e(t){this.data={};var n=H(t);this.data={};var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&R(t,i)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return F(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function ue(e){return new se(e)}function le(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function ce(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&M(n,t),n}function fe(e,t){return e.hasOwnProperty(t)}function de(){}var he=function(e,t){return(he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function pe(e,t){function n(){this.constructor=e}he(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;function ge(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function ye(e,t){return e[0]=t[0],e[1]=t[1],e}function ve(e){return[e[0],e[1]]}function me(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function be(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function we(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function xe(e){return Math.sqrt(_e(e))}function _e(e){return e[0]*e[0]+e[1]*e[1]}function ke(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Se(e,t){var n=xe(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Te(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ce=Te;var Ae=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function Oe(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Me(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Ee(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Pe(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Ie=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},De=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ie(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new Ie(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Ie(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new Ie(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ie(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ie(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Le=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,l=i[e][u];return l&&l.callAtLast?i[e].splice(u,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var u=r[s];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){if(!this._$handlers)return this;var t=this._$handlers[e],n=this._$eventProcessor;if(t)for(var r=arguments,i=r.length,o=r[i-1],a=t.length,s=0;s<a;s++){var u=t[s];if(!n||!n.filter||null==u.query||n.filter(e,u.query))switch(i){case 0:u.h.call(o);break;case 1:u.h.call(o,r[0]);break;case 2:u.h.call(o,r[0],r[1]);break;default:u.h.apply(o,r.slice(1,i-1))}}return n&&n.afterTrigger&&n.afterTrigger(e),this},e}(),Re=Math.log(2);function Ne(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var u=Math.round(Math.log((1<<s)-1&~i)/Re);return e[n][u]}for(var l=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var p=1<<d;p&i||(f+=(h%2?-1:1)*e[n][d]*Ne(e,t-1,c,l,i|p,o),h++)}return o[a]=f,f}function je(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Ne(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Ne(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var Be=[];function Fe(e,t,n,r,i){if(t.getBoundingClientRect&&f.domSupported&&!ze(t)){var o=t.___zrEVENTSAVED||(t.___zrEVENTSAVED={}),a=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],u=!0,l=0;l<4;l++){var c=e[l].getBoundingClientRect(),f=2*l,d=c.left,h=c.top;a.push(d,h),u=u&&o&&d===o[f]&&h===o[f+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=a,t[r]=n?je(s,a):je(a,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,u=o%2,l=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[u]+":0",i[l]+":0",r[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),o,i);if(a)return a(e,n,r),!0}return!1}function ze(e){return"CANVAS"===e.nodeName.toUpperCase()}var Ve="undefined"!==typeof window&&!!window.addEventListener,He=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ue=[];function Ge(e,t,n,r){return n=n||{},r||!f.canvasSupported?Je(e,t,n):f.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):Je(e,t,n),n}function Je(e,t,n){if(f.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(ze(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(Fe(Ue,e,r,i))return n.zrX=Ue[0],void(n.zrY=Ue[1])}n.zrX=n.zrY=0}function Xe(e){return e||window.event}function We(e,t,n){if(null!=(t=Xe(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&Ge(e,i,t,n)}else{Ge(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&He.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function qe(e,t,n,r){Ve?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}function Ze(e,t,n,r){Ve?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}var Ke=Ve?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function Ye(e){return 2===e.which||3===e.which}var $e=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],u=Ge(n,s,{});i.points.push([u.zrX,u.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in et)if(et.hasOwnProperty(t)){var n=et[t](this._track,e);if(n)return n}},e}();function Qe(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var et={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=Qe(i)/Qe(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function tt(){Ke(this.event)}var nt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return pe(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Le),rt=function(e,t){this.x=e,this.y=t},it=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ot=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._hovered=new rt(0,0),o.storage=t,o.painter=n,o.painterRoot=i,r=r||new nt,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new De(o),o}return pe(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(it,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=st(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new rt(t,n):this.findHover(t,n),s=a.target,u=this.proxy;u.setCursor&&u.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new rt(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:tt}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){for(var r=this.storage.getDisplayList(),i=new rt(e,t),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=at(r[o],e,t))&&(!i.topTarget&&(i.topTarget=r[o]),"silent"!==a)){i.target=r[o];break}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new $e);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new rt;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(Le);function at(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||"silent"}return!1}function st(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){ot.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=st(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Ce(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var ut=ot;function lt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function ct(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ft(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],u=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=u,e}function dt(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function ht(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],u=t[5],l=Math.sin(n),c=Math.cos(n);return e[0]=r*c+a*l,e[1]=-r*l+a*c,e[2]=i*c+s*l,e[3]=-i*l+c*s,e[4]=c*o+l*u,e[5]=c*u-l*o,e}function pt(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function gt(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],u=n*a-o*r;return u?(u=1/u,e[0]=a*u,e[1]=-o*u,e[2]=-r*u,e[3]=n*u,e[4]=(r*s-a*i)*u,e[5]=(o*i-n*s)*u,e):null}var yt=lt;function vt(e){return e>5e-5||e<-5e-5}var mt=[],bt=[],wt=[1,0,0,1,0,0],xt=Math.abs,_t=function(){function e(){}return e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return vt(this.rotation)||vt(this.x)||vt(this.y)||vt(this.scaleX-1)||vt(this.scaleY-1)},e.prototype.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),r=this.transform;n||t?(r=r||[1,0,0,1,0,0],n?this.getLocalTransform(r):yt(r),t&&(n?ft(r,e.transform,r):ct(r,e.transform)),this.transform=r,this._resolveGlobalScaleRatio(r)):r&&yt(r)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(mt);var n=mt[0]<0?-1:1,r=mt[1]<0?-1:1,i=((mt[0]-n)*t+n)/mt[0]||0,o=((mt[1]-r)*t+r)/mt[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],gt(this.invTransform,e)},e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3];vt(t-1)&&(t=Math.sqrt(t)),vt(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),this.rotation=Math.atan2(-e[1]/n,e[0]/t),t<0&&n<0&&(this.rotation+=Math.PI,t=-t,n=-n),this.x=e[4],this.y=e[5],this.scaleX=t,this.scaleY=n}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(ft(bt,e.invTransform,t),t=bt);var n=this.originX,r=this.originY;(n||r)&&(wt[4]=n,wt[5]=r,ft(bt,t,wt),bt[4]-=n,bt[5]-=r,t=bt),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Me(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Me(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&xt(e[0]-1)>1e-10&&xt(e[3]-1)>1e-10?Math.sqrt(xt(e[0]*e[3]-e[2]*e[1])):1},e.getLocalTransform=function(e,t){yt(t=t||[]);var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.rotation||0,s=e.x,u=e.y;return t[4]-=n,t[5]-=r,t[0]*=i,t[1]*=o,t[2]*=i,t[3]*=o,t[4]*=i,t[5]*=o,a&&ht(t,t,a),t[4]+=n,t[5]+=r,t[4]+=s,t[5]+=u,t},e.initDefaultProps=function(){var t=e.prototype;t.x=0,t.y=0,t.scaleX=1,t.scaleY=1,t.originX=0,t.originY=0,t.rotation=0,t.globalScaleRatio=1}(),e}(),kt={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-kt.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*kt.bounceIn(2*e):.5*kt.bounceOut(2*e-1)+.5}},St=kt,Tt=function(){function e(e){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart}return e.prototype.step=function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),!this._paused){var n=(e-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var r=this.easing,i="string"===typeof r?St[r]:r,o="function"===typeof i?i(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(e),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=t},e.prototype._restart=function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e}(),Ct=function(e){this.value=e},At=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Ct(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ot=function(){function e(e){this._list=new At,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new Ct(t),a.key=e,n.insertEntry(a),r[e]=a}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Mt={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Et(e){return(e=Math.round(e))<0?0:e>255?255:e}function Pt(e){return e<0?0:e>1?1:e}function It(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Et(parseFloat(t)/100*255):Et(parseInt(t,10))}function Dt(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Pt(parseFloat(t)/100):Pt(parseFloat(t))}function Lt(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function Rt(e,t,n){return e+(t-e)*n}function Nt(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function jt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Bt=new Ot(20),Ft=null;function zt(e,t){Ft&&jt(Ft,t),Ft=Bt.put(e,Ft||t.slice())}function Vt(e,t){if(e){t=t||[];var n=Bt.get(e);if(n)return jt(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in Mt)return jt(t,Mt[r]),zt(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Nt(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),zt(e,t),t):void Nt(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Nt(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),zt(e,t),t):void Nt(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var u=r.substr(0,a),l=r.substr(a+1,s-(a+1)).split(","),c=1;switch(u){case"rgba":if(4!==l.length)return 3===l.length?Nt(t,+l[0],+l[1],+l[2],1):Nt(t,0,0,0,1);c=Dt(l.pop());case"rgb":return 3!==l.length?void Nt(t,0,0,0,1):(Nt(t,It(l[0]),It(l[1]),It(l[2]),c),zt(e,t),t);case"hsla":return 4!==l.length?void Nt(t,0,0,0,1):(l[3]=Dt(l[3]),Ht(l,t),zt(e,t),t);case"hsl":return 3!==l.length?void Nt(t,0,0,0,1):(Ht(l,t),zt(e,t),t);default:return}}Nt(t,0,0,0,1)}}function Ht(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Dt(e[1]),i=Dt(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return Nt(t=t||[],Et(255*Lt(a,o,n+1/3)),Et(255*Lt(a,o,n)),Et(255*Lt(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function Ut(e,t){var n=Vt(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return qt(n,4===n.length?"rgba":"rgb")}}function Gt(e){var t=Vt(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Jt(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=t[i],s=t[o],u=r-i;return n[0]=Et(Rt(a[0],s[0],u)),n[1]=Et(Rt(a[1],s[1],u)),n[2]=Et(Rt(a[2],s[2],u)),n[3]=Pt(Rt(a[3],s[3],u)),n}}function Xt(e,t,n,r){var i,o=Vt(e);if(e)return o=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a,l=(s+a)/2;if(0===u)t=0,n=0;else{n=l<.5?u/(s+a):u/(2-s-a);var c=((s-r)/6+u/2)/u,f=((s-i)/6+u/2)/u,d=((s-o)/6+u/2)/u;r===s?t=d-f:i===s?t=1/3+c-d:o===s&&(t=2/3+f-c),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,n,l];return null!=e[3]&&h.push(e[3]),h}}(o),null!=t&&(o[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=Dt(n)),null!=r&&(o[2]=Dt(r)),qt(Ht(o),"rgba")}function Wt(e,t){var n=Vt(e);if(n&&null!=t)return n[3]=Pt(t),qt(n,"rgba")}function qt(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function Zt(e,t){var n=Vt(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Kt=Array.prototype.slice;function Yt(e,t,n){return(t-e)*n+e}function $t(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=Yt(t[o],n[o],r)}function Qt(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function en(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function tn(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:Kt.call(i[s]));var u=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<u;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function nn(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function rn(e,t,n,r,i,o,a){var s=.5*(n-e),u=.5*(r-t);return(2*(t-n)+s+u)*a+(-3*(t-n)-2*s-u)*o+s*i+t}function on(e,t,n,r,i,o,a,s){for(var u=t.length,l=0;l<u;l++)e[l]=rn(t[l],n[l],r[l],i[l],o,a,s)}function an(e){if(L(e)){var t=e.length;if(L(e[0])){for(var n=[],r=0;r<t;r++)n.push(Kt.call(e[r]));return n}return Kt.call(e)}return e}function sn(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}var un,ln,cn=[0,0,0,0],fn=function(){function e(e){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t){e>=this.maxTime?this.maxTime=e:this._needsSort=!0;var n=this.keyframes,r=n.length;if(this.interpolable)if(L(t)){var i=function(e){return L(e&&e[0])?2:1}(t);if(r>0&&this.arrDim!==i)return void(this.interpolable=!1);if(1===i&&"number"!==typeof t[0]||2===i&&"number"!==typeof t[0][0])return void(this.interpolable=!1);if(r>0){var o=n[r-1];this._isAllValueEqual&&(1===i&&nn(t,o.value)||(this._isAllValueEqual=!1))}this.arrDim=i}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"===typeof t){var a=Vt(t);a?(t=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!==typeof t||isNaN(t))return void(this.interpolable=!1);if(this._isAllValueEqual&&r>0){o=n[r-1];(this.isValueColor&&!nn(o.value,t)||o.value!==t)&&(this._isAllValueEqual=!1)}}var s={time:e,value:t,percent:0};return this.keyframes.push(s),s},e.prototype.prepare=function(e){var t=this.keyframes;this._needsSort&&t.sort((function(e,t){return e.time-t.time}));for(var n=this.arrDim,r=t.length,i=t[r-1],o=0;o<r;o++)t[o].percent=t[o].time/this.maxTime,n>0&&o!==r-1&&tn(t[o].value,i.value,n);if(e&&this.needsAnimate()&&e.needsAnimate()&&n===e.arrDim&&this.isValueColor===e.isValueColor&&!e._finished){this._additiveTrack=e;var a=t[0].value;for(o=0;o<r;o++)0===n?this.isValueColor?t[o].additiveValue=Qt([],t[o].value,a,-1):t[o].additiveValue=t[o].value-a:1===n?t[o].additiveValue=Qt([],t[o].value,a,-1):2===n&&(t[o].additiveValue=en([],t[o].value,a,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r=null!=this._additiveTrack,i=r?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,u=this.arrDim,l=this.isValueColor;if(t<0)n=0;else if(t<this._lastFramePercent){for(n=Math.min(this._lastFrame+1,a-1);n>=0&&!(o[n].percent<=t);n--);n=Math.min(n,a-2)}else{for(n=this._lastFrame;n<a&&!(o[n].percent>t);n++);n=Math.min(n-1,a-2)}var c=o[n+1],f=o[n];if(f&&c){this._lastFrame=n,this._lastFramePercent=t;var d=c.percent-f.percent;if(0!==d){var h=(t-f.percent)/d,p=r?this._additiveValue:l?cn:e[s];if((u>0||l)&&!p&&(p=this._additiveValue=[]),this.useSpline){var g=o[n][i],y=o[0===n?n:n-1][i],v=o[n>a-2?a-1:n+1][i],m=o[n>a-3?a-1:n+2][i];if(u>0)1===u?on(p,y,g,v,m,h,h*h,h*h*h):function(e,t,n,r,i,o,a,s){for(var u=t.length,l=t[0].length,c=0;c<u;c++){e[c]||(e[1]=[]);for(var f=0;f<l;f++)e[c][f]=rn(t[c][f],n[c][f],r[c][f],i[c][f],o,a,s)}}(p,y,g,v,m,h,h*h,h*h*h);else if(l)on(p,y,g,v,m,h,h*h,h*h*h),r||(e[s]=sn(p));else{var b=void 0;b=this.interpolable?rn(y,g,v,m,h,h*h,h*h*h):v,r?this._additiveValue=b:e[s]=b}}else if(u>0)1===u?$t(p,f[i],c[i],h):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=Yt(t[a][s],n[a][s],r)}}(p,f[i],c[i],h);else if(l)$t(p,f[i],c[i],h),r||(e[s]=sn(p));else{b=void 0;b=this.interpolable?Yt(f[i],c[i],h):function(e,t,n){return n>.5?t:e}(f[i],c[i],h),r?this._additiveValue=b:e[s]=b}r&&this._addToTarget(e)}}}},e.prototype._addToTarget=function(e){var t=this.arrDim,n=this.propName,r=this._additiveValue;0===t?this.isValueColor?(Vt(e[n],cn),Qt(cn,cn,r,1),e[n]=sn(cn)):e[n]=e[n]+r:1===t?Qt(e[n],e[n],r,1):2===t&&en(e[n],e[n],r,1)},e}(),dn=function(){function e(e,t,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n?T("Can' use additive animation on looped animation."):this._additiveAnimators=n}return e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t){return this.whenWithKeys(e,t,F(t))},e.prototype.whenWithKeys=function(e,t,n){for(var r=this._tracks,i=0;i<n.length;i++){var o=n[i],a=r[o];if(!a){a=r[o]=new fn(o);var s=void 0,u=this._getAdditiveTrack(o);if(u){var l=u.keyframes[u.keyframes.length-1];s=l&&l.value,u.isValueColor&&s&&(s=sn(s))}else s=this._target[o];if(null==s)continue;0!==e&&a.addKeyframe(0,an(s)),this._trackKeys.push(o)}a.addKeyframe(e,an(t[o]))}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneList;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedList;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e,t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),u=a.keyframes;if(a.prepare(s),a.needsAnimate())r.push(a);else if(!a.interpolable){var l=u[u.length-1];l&&(n._target[a.propName]=l.value)}}if(r.length||t){var c=new Tt({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(e){n._started=2;var t=n._additiveAnimators;if(t){for(var i=!1,o=0;o<t.length;o++)if(t[o]._clip){i=!0;break}i||(n._additiveAnimators=null)}for(o=0;o<r.length;o++)r[o].step(n._target,e);var a=n._onframeList;if(a)for(o=0;o<a.length;o++)a[o](n._target,e)},ondestroy:function(){n._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&"spline"!==e&&(c.easing=e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(e)),this},e.prototype.done=function(e){return e&&(this._doneList||(this._doneList=[]),this._doneList.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveFinalToTarget=function(e,t){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i&&!i.isFinished()){var o=i.keyframes,a=o[o.length-1];if(a){var s=an(a.value);i.isValueColor&&(s=sn(s)),e[r]=s}}}}},e.prototype.__changeFinalValue=function(e,t){t=t||F(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(i.getAdditiveTrack())}}}},e}(),hn=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),pn=Math.min,gn=Math.max,yn=new hn,vn=new hn,mn=new hn,bn=new hn,wn=new hn,xn=new hn,_n=function(){function e(e,t,n,r){n<0&&isFinite(n)&&(e+=n,n=-n),r<0&&isFinite(r)&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=pn(e.x,this.x),n=pn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=gn(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=gn(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return dt(i,i,[-t.x,-t.y]),pt(i,i,[n,r]),dt(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,u=t.x,l=t.x+t.width,c=t.y,f=t.y+t.height,d=!(o<u||l<i||s<c||f<a);if(n){var h=1/0,p=0,g=Math.abs(o-u),y=Math.abs(l-i),v=Math.abs(s-c),m=Math.abs(f-a),b=Math.min(g,y),w=Math.min(v,m);o<u||l<i?b>p&&(p=b,g<y?hn.set(xn,-g,0):hn.set(xn,y,0)):b<h&&(h=b,g<y?hn.set(wn,g,0):hn.set(wn,-y,0)),s<c||f<a?w>p&&(p=w,v<m?hn.set(xn,0,-v):hn.set(xn,0,m)):b<h&&(h=b,v<m?hn.set(wn,0,v):hn.set(wn,0,-m))}return n&&hn.copy(n,d?wn:xn),d},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}yn.x=mn.x=n.x,yn.y=bn.y=n.y,vn.x=bn.x=n.x+n.width,vn.y=mn.y=n.y+n.height,yn.transform(r),bn.transform(r),vn.transform(r),mn.transform(r),t.x=pn(yn.x,vn.x,mn.x,bn.x),t.y=pn(yn.y,vn.y,mn.y,bn.y);var u=gn(yn.x,vn.x,mn.x,bn.x),l=gn(yn.y,vn.y,mn.y,bn.y);t.width=u-t.x,t.height=l-t.y}else t!==n&&e.copy(t,n)},e}(),kn={},Sn="12px sans-serif";var Tn={measureText:function(e,t){return un||(un=P().getContext("2d")),ln!==t&&(ln=un.font=t||Sn),un.measureText(e)}};function Cn(e,t){var n=kn[t=t||Sn];n||(n=kn[t]=new Ot(500));var r=n.get(e);return null==r&&(r=Tn.measureText(e,t).width,n.put(e,r)),r}function An(e,t,n,r){var i=Cn(e,t),o=Pn(t),a=Mn(0,i,n),s=En(0,o,r);return new _n(a,s,i,o)}function On(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return An(i[0],t,n,r);for(var o=new _n(0,0,0,0),a=0;a<i.length;a++){var s=An(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function Mn(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function En(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function Pn(e){return Cn("\u56fd",e)}function In(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Dn(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,u=n.x,l=n.y,c="left",f="top";if(r instanceof Array)u+=In(r[0],n.width),l+=In(r[1],n.height),c=null,f=null;else switch(r){case"left":u-=i,l+=s,c="right",f="middle";break;case"right":u+=i+a,l+=s,f="middle";break;case"top":u+=a/2,l-=i,c="center",f="bottom";break;case"bottom":u+=a/2,l+=o+i,c="center";break;case"inside":u+=a/2,l+=s,c="center",f="middle";break;case"insideLeft":u+=i,l+=s,f="middle";break;case"insideRight":u+=a-i,l+=s,c="right",f="middle";break;case"insideTop":u+=a/2,l+=i,c="center";break;case"insideBottom":u+=a/2,l+=o-i,c="center",f="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=a-i,l+=i,c="right";break;case"insideBottomLeft":u+=i,l+=o-i,f="bottom";break;case"insideBottomRight":u+=a-i,l+=o-i,c="right",f="bottom"}return(e=e||{}).x=u,e.y=l,e.align=c,e.verticalAlign=f,e}var Ln=1;"undefined"!==typeof window&&(Ln=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Rn=Ln,Nn=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],jn={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Bn={},Fn=new _n(0,0,0,0),zn=function(){function e(e){this.id=S(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.attachedTransform,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var u=!1;if(i.x=t.x,i.y=t.y,i.originX=t.originX,i.originY=t.originY,i.rotation=t.rotation,i.scaleX=t.scaleX,i.scaleY=t.scaleY,null!=n.position){var l=Fn;n.layoutRect?l.copy(n.layoutRect):l.copy(this.getBoundingRect()),r||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Bn,n,l):Dn(Bn,n,l),i.x=Bn.x,i.y=Bn.y,o=Bn.align,a=Bn.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var f=void 0,d=void 0;"center"===c?(f=.5*l.width,d=.5*l.height):(f=In(c[0],l.width),d=In(c[1],l.height)),u=!0,i.originX=-i.x+f+(r?0:l.x),i.originY=-i.y+d+(r?0:l.y)}}null!=n.rotation&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],u||(i.originX=-h[0],i.originY=-h[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;p&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),s&&t.dirtyStyle(),t.markRedraw()}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?"#ccc":"#333"},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Vt(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,qt(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},M(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(W(e))for(var n=F(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!i||"__zr_normal__"===i){var o=r.targetName,a=o?t[o]:t;r.saveFinalToTarget(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Nn)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState("__zr_normal__",!1,e)},e.prototype.useState=function(t,n,r){var i="__zr_normal__"===t;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(I(o,t)>=0)||!n&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var u=!(!s||!s.hoverLayer);return u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,n,!r&&!this.__inHover&&a&&a.duration>0,a),this._textContent&&this._textContent.useState(t,n),this._textGuide&&this._textGuide.useState(t,n),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT),s}T("State "+t+" not exists.")}}},e.prototype.useStates=function(t,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var u=t[s],l=void 0;this.stateProxy&&(l=this.stateProxy(u,t)),l||(l=this.states[u]),l&&r.push(l)}var c=!(!r[o-1]||!r[o-1].hoverLayer);c&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),d=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!n&&!this.__inHover&&d&&d.duration>0,d),this._textContent&&this._textContent.useStates(t),this._textGuide&&this._textGuide.useStates(t),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=I(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=I(r,e),o=I(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];M(n,i),i.textConfig&&M(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=M({},r?this.textConfig:n.textConfig),M(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,l=0;l<Nn.length;l++){var c=Nn[l],f=i&&jn[c];t&&null!=t[c]?f?(u=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(f?(u=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(l=0;l<this.animators.length;l++){var d=this.animators[l],h=d.targetName;d.__changeFinalValue(h?(t||n)[h]:t||n)}u&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");if(e===this)throw new Error("Recursive component attachment.");var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.attachedTransform=new _t,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),M(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.attachedTransform=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=e.REDARAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)},e.prototype.animate=function(e,t){var n=e?this[e]:this;if(n){var r=new dn(n,t);return this.addAnimator(r,e),r}T('Property "'+e+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=I(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Vn(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Vn(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Vn(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.REDARAW_BIT=1,e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=!1,t.silent=!1,t.isGroup=!1,t.draggable=!1,t.dragging=!1,t.ignoreClip=!1,t.__inHover=!1,t.__dirty=e.REDARAW_BIT;var n={};function r(e,t,r){n[e+t+r]||(n[e+t+r]=!0)}function i(e,n,i,o){function a(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[o]},set:function(t){e[o]=t}})}Object.defineProperty(t,e,{get:function(){(r(e,i,o),this[n])||a(this,this[n]=[]);return this[n]},set:function(t){r(e,i,o),this[i]=t[0],this[o]=t[1],this[n]=t,a(this,t)}})}Object.defineProperty&&(!f.browser.ie||f.browser.version>8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();function Vn(e,t,n,r,i){var o=[];!function e(t,n,r,i,o,a,s,u){for(var l=[],c=[],f=F(i),d=o.duration,h=o.delay,p=o.additive,g=o.setToFinal,y=!W(a),v=0;v<f.length;v++){var m=f[v];if(null!=r[m]&&null!=i[m]&&(y||a[m]))if(W(i[m])&&!L(i[m])){if(n){u||(r[m]=i[m],t.updateDuringAnimation(n));continue}e(t,m,r[m],i[m],o,a&&a[m],s,u)}else l.push(m),c.push(m);else u||(r[m]=i[m],t.updateDuringAnimation(n),c.push(m))}var b=l.length;if(b>0||o.force&&!s.length){for(var w=t.animators,x=[],_=0;_<w.length;_++)w[_].targetName===n&&x.push(w[_]);if(!p&&x.length)for(_=0;_<x.length;_++){if(x[_].stopTracks(c)){var k=I(w,x[_]);w.splice(k,1)}}var S=void 0,T=void 0,C=void 0;if(u){T={},g&&(S={});for(_=0;_<b;_++){m=l[_];T[m]=r[m],g?S[m]=i[m]:r[m]=i[m]}}else if(g){C={};for(_=0;_<b;_++){m=l[_];C[m]=an(r[m]),Un(r,i,m)}}var A=new dn(r,!1,p?x:null);A.targetName=n,o.scope&&(A.scope=o.scope),g&&S&&A.whenWithKeys(0,S,l),C&&A.whenWithKeys(0,C,l),A.whenWithKeys(null==d?500:d,u?T:i,l).delay(h||0),t.addAnimator(A,n),s.push(A)}}(e,"",e,t,n=n||{},r,o,i);var a=o.length,s=!1,u=n.done,l=n.aborted,c=function(){s=!0,--a<=0&&(s?u&&u():l&&l())},f=function(){--a<=0&&(s?u&&u():l&&l())};a||u&&u(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var d=0;d<o.length;d++){var h=o[d];c&&h.done(c),f&&h.aborted(f),h.start(n.easing,n.force)}return o}function Hn(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Un(e,t,n){if(L(t[n]))if(L(e[n])||(e[n]=[]),Z(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Hn(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(L(i[0]))for(var s=i[0].length,u=0;u<a;u++)o[u]?Hn(o[u],i[u],s):o[u]=Array.prototype.slice.call(i[u]);else Hn(o,i,a);o.length=i.length}else e[n]=t[n]}D(zn,Le),D(zn,_t);var Gn=zn;function Jn(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Xn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,u=r;s<u;)i(a,e[o=s+u>>>1])<0?u=o:s=o+1;var l=r-s;switch(l){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;l>0;)e[s+l]=e[s+l-1],l--}e[s]=a}}function Wn(e,t,n,r,i,o){var a=0,s=0,u=1;if(o(e,t[n+i])>0){for(s=r-i;u<s&&o(e,t[n+i+u])>0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}else{for(s=i+1;u<s&&o(e,t[n+i-u])<=0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=a;a=i-u,u=i-l}for(a++;a<u;){var c=a+(u-a>>>1);o(e,t[n+c])>0?a=c+1:u=c}return u}function qn(e,t,n,r,i,o){var a=0,s=0,u=1;if(o(e,t[n+i])<0){for(s=i+1;u<s&&o(e,t[n+i-u])<0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=a;a=i-u,u=i-l}else{for(s=r-i;u<s&&o(e,t[n+i+u])>=0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}for(a++;a<u;){var c=a+(u-a>>>1);o(e,t[n+c])<0?u=c:a=c+1}return u}function Zn(e,t){var n,r,i,o=7,a=0;n=e.length;var s=[];function u(n){var u=r[n],l=i[n],c=r[n+1],f=i[n+1];i[n]=l+f,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var d=qn(e[c],e,u,l,0,t);u+=d,0!==(l-=d)&&0!==(f=Wn(e[u+l-1],e,c,f,f-1,t))&&(l<=f?function(n,r,i,a){var u=0;for(u=0;u<r;u++)s[u]=e[n+u];var l=0,c=i,f=n;if(e[f++]=e[c++],0===--a){for(u=0;u<r;u++)e[f+u]=s[l+u];return}if(1===r){for(u=0;u<a;u++)e[f+u]=e[c+u];return void(e[f+a]=s[l])}var d,h,p,g=o;for(;;){d=0,h=0,p=!1;do{if(t(e[c],s[l])<0){if(e[f++]=e[c++],h++,d=0,0===--a){p=!0;break}}else if(e[f++]=s[l++],d++,h=0,1===--r){p=!0;break}}while((d|h)<g);if(p)break;do{if(0!==(d=qn(e[c],s,l,r,0,t))){for(u=0;u<d;u++)e[f+u]=s[l+u];if(f+=d,l+=d,(r-=d)<=1){p=!0;break}}if(e[f++]=e[c++],0===--a){p=!0;break}if(0!==(h=Wn(s[l],e,c,a,0,t))){for(u=0;u<h;u++)e[f+u]=e[c+u];if(f+=h,c+=h,0===(a-=h)){p=!0;break}}if(e[f++]=s[l++],1===--r){p=!0;break}g--}while(d>=7||h>=7);if(p)break;g<0&&(g=0),g+=2}if((o=g)<1&&(o=1),1===r){for(u=0;u<a;u++)e[f+u]=e[c+u];e[f+a]=s[l]}else{if(0===r)throw new Error;for(u=0;u<r;u++)e[f+u]=s[l+u]}}(u,l,c,f):function(n,r,i,a){var u=0;for(u=0;u<a;u++)s[u]=e[i+u];var l=n+r-1,c=a-1,f=i+a-1,d=0,h=0;if(e[f--]=e[l--],0===--r){for(d=f-(a-1),u=0;u<a;u++)e[d+u]=s[u];return}if(1===a){for(h=(f-=r)+1,d=(l-=r)+1,u=r-1;u>=0;u--)e[h+u]=e[d+u];return void(e[f]=s[c])}var p=o;for(;;){var g=0,y=0,v=!1;do{if(t(s[c],e[l])<0){if(e[f--]=e[l--],g++,y=0,0===--r){v=!0;break}}else if(e[f--]=s[c--],y++,g=0,1===--a){v=!0;break}}while((g|y)<p);if(v)break;do{if(0!==(g=r-qn(s[c],e,n,r,r-1,t))){for(r-=g,h=(f-=g)+1,d=(l-=g)+1,u=g-1;u>=0;u--)e[h+u]=e[d+u];if(0===r){v=!0;break}}if(e[f--]=s[c--],1===--a){v=!0;break}if(0!==(y=a-Wn(e[l],s,0,a,a-1,t))){for(a-=y,h=(f-=y)+1,d=(c-=y)+1,u=0;u<y;u++)e[h+u]=s[d+u];if(a<=1){v=!0;break}}if(e[f--]=e[l--],0===--r){v=!0;break}p--}while(g>=7||y>=7);if(v)break;p<0&&(p=0),p+=2}(o=p)<1&&(o=1);if(1===a){for(h=(f-=r)+1,d=(l-=r)+1,u=r-1;u>=0;u--)e[h+u]=e[d+u];e[f]=s[c]}else{if(0===a)throw new Error;for(d=f-(a-1),u=0;u<a;u++)e[d+u]=s[u]}}(u,l,c,f))}return n<120?5:n<1542?10:n<119151?19:40,r=[],i=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}},pushRun:function(e,t){r[a]=e,i[a]=t,a+=1}}}function Kn(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)Xn(e,n,r,n+(o=Jn(e,n,r,t)),t);else{var a=Zn(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((o=Jn(e,n,r,t))<s){var u=i;u>s&&(u=s),Xn(e,n,n+u,n+o,t),o=u}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var Yn=!1;function $n(){Yn||(Yn=!0)}function Qn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var er=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Qn}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,f.canvasSupported&&Kn(n,Qn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var u=a[s];e.__dirty&&(u.__dirty|=Gn.REDARAW_BIT),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else{var l=e;t&&t.length?l.__clipPaths=t:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&($n(),l.z=0),isNaN(l.z2)&&($n(),l.z2=0),isNaN(l.zlevel)&&($n(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=I(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),tr="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},nr=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n.onframe=t.onframe||function(){},n}return pe(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._clipsHead?(this._clipsTail.next=e,e.prev=this._clipsTail,e.next=null,this._clipsTail=e):this._clipsHead=this._clipsTail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._clipsHead=n,n?n.prev=t:this._clipsTail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=(new Date).getTime()-this._pausedTime,n=t-this._time,r=this._clipsHead;r;){var i=r.next;r.step(t,n)?(r.ondestroy&&r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,tr((function t(){e._running&&(tr(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._clipsHead;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._clipsHead=this._clipsTail=null},t.prototype.isFinished=function(){return null==this._clipsHead},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new dn(e,t.loop);return this.addAnimator(n),n},t}(Le),rr=f.domSupported,ir=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:["touchstart","touchend","touchmove"],pointer:N(e,(function(e){var n=e.replace("mouse","pointer");return t.hasOwnProperty(n)?n:e}))}}(),or=["mousemove","mouseup"],ar=["pointermove","pointerup"],sr=!1;function ur(e){var t=e.pointerType;return"pen"===t||"touch"===t}function lr(e){e&&(e.zrByTouch=!0)}function cr(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var fr=function(e,t){this.stopPropagation=de,this.stopImmediatePropagation=de,this.preventDefault=de,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},dr={mousedown:function(e){e=We(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=We(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=We(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){cr(this,(e=We(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){sr=!0,e=We(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){sr||(e=We(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){lr(e=We(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),dr.mousemove.call(this,e),dr.mousedown.call(this,e)},touchmove:function(e){lr(e=We(this.dom,e)),this.handler.processGesture(e,"change"),dr.mousemove.call(this,e)},touchend:function(e){lr(e=We(this.dom,e)),this.handler.processGesture(e,"end"),dr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&dr.click.call(this,e)},pointerdown:function(e){dr.mousedown.call(this,e)},pointermove:function(e){ur(e)||dr.mousemove.call(this,e)},pointerup:function(e){dr.mouseup.call(this,e)},pointerout:function(e){ur(e)||dr.mouseout.call(this,e)}};R(["click","dblclick","contextmenu"],(function(e){dr[e]=function(t){t=We(this.dom,t),this.trigger(e,t)}}));var hr={pointermove:function(e){ur(e)||hr.mousemove.call(this,e)},pointerup:function(e){hr.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function pr(e,t){var n=t.domHandlers;f.pointerEventsSupported?R(ir.pointer,(function(r){yr(t,r,(function(t){n[r].call(e,t)}))})):(f.touchEventsSupported&&R(ir.touch,(function(r){yr(t,r,(function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),R(ir.mouse,(function(r){yr(t,r,(function(i){i=Xe(i),t.touching||n[r].call(e,i)}))})))}function gr(e,t){function n(n){yr(t,n,(function(r){r=Xe(r),cr(e,r.target)||(r=function(e,t){return We(e.dom,new fr(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}),{capture:!0})}f.pointerEventsSupported?R(ar,n):f.touchEventsSupported||R(or,n)}function yr(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,qe(e.domTarget,t,n,r)}function vr(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Ze(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var mr=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},br=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new mr(t,dr),rr&&(r._globalHandlerScope=new mr(document,hr)),pr(r,r._localHandlerScope),r}return pe(t,e),t.prototype.dispose=function(){vr(this._localHandlerScope),rr&&vr(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,rr&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?gr(this,t):vr(t)}},t}(Le),wr=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return pe(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=I(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new _n(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),u=a.getLocalTransform(r);u?(_n.applyTransform(t,s,u),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(Gn);wr.prototype.type="group";var xr=wr,_r=!f.canvasSupported,kr={},Sr={};var Tr=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new er,o=n.renderer||"canvas";if(_r)throw new Error("IE8 support has been dropped since 5.0");if(kr[o]||(o=F(kr)[0]),!kr[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new kr[o](t,i,n,e);this.storage=i,this.painter=a;var s=f.node||f.worker?null:new br(a.getViewportRoot(),a.root);this.handler=new ut(i,a,s,a.root),this.animation=new nr({stage:{update:function(){return r._flush(!0)}}}),this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"===typeof e)return Zt(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Zt(t[i].color,1);return(n/=r)<.4}return!1}(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=(new Date).getTime();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=(new Date).getTime();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.addHover=function(e){},e.prototype.removeHover=function(e){},e.prototype.clearHover=function(){},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.pathToImage=function(e,t){if(this.painter.pathToImage)return this.painter.pathToImage(e,t)},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof xr&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e=this.id,delete Sr[e]},e}();function Cr(e,t){var n=new Tr(S(),e,t);return Sr[n.id]=n,n}function Ar(e,t,n,r){var i=t[1]-t[0],o=n[1]-n[0];if(0===i)return 0===o?n[0]:(n[0]+n[1])/2;if(r)if(i>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/i*o+n[0]}function Or(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"===typeof e?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function Mr(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function Er(e){return e.sort((function(e,t){return e-t})),e}function Pr(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var r=+t.slice(n+1);return r<0?-r:0}var i=t.indexOf(".");return i<0?0:t.length-1-i}function Ir(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Dr(e){var t=2*Math.PI;return(e%t+t)%t}function Lr(e){return e>-1e-4&&e<1e-4}var Rr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Nr(e){if(e instanceof Date)return e;if("string"===typeof e){var t=Rr.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))}function jr(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Br(e,t){var n=jr(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Fr(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function zr(e){e.sort((function(e,t){return function e(t,n,r){return t.interval[r]<n.interval[r]||t.interval[r]===n.interval[r]&&(t.close[r]-n.close[r]===(r?-1:1)||!r&&e(t,n,1))}(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?e.splice(r,1):r++}return e}function Vr(e){var t=parseFloat(e);return t==e&&(0!==t||"string"!==typeof e||e.indexOf("x")<=0)?t:NaN}function Hr(e){return!isNaN(Vr(e))}function Ur(){return Math.round(9*Math.random())}function Gr(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}function Jr(e){return e instanceof Array?e:null==e?[]:[e]}function Xr(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var Wr=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function qr(e){return!W(e)||H(e)||e instanceof Date?e:e.value}function Zr(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=ue();R(t,(function(e,n){W(e)||(t[n]=null)}));var s=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||ei(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||i)&&function(e,t,n,r){R(r,(function(i,o){if(i&&null!=i.id){var a=Yr(i.id),s=n.get(a);if(null!=s){var u=e[s];re(!u.newOption,'Duplicated option on id "'+a+'".'),u.newOption=i,u.existing=t[s],r[o]=null}}}))}(s,e,a,t),r&&function(e,t){R(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!ei(n)&&!ei(o)&&Kr("name",o,n))return e[i].newOption=n,void(t[r]=null)}}))}(s,t),r||i?function(e,t,n){R(t,(function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||ei(r.existing)||r.existing&&null!=t.id&&!Kr("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}(s,t,i):o&&function(e,t){R(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(s,t),function(e){var t=ue();R(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),R(e,(function(e){var n=e.newOption;re(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),R(e,(function(e,n){var r=e.existing,i=e.newOption,o=e.keyInfo;if(W(i)){if(o.name=null!=i.name?Yr(i.name):r?r.name:"series\0"+n,r)o.id=Yr(r.id);else if(null!=i.id)o.id=Yr(i.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(t.get(o.id))}t.set(o.id,e)}}))}(s),s}function Kr(e,t,n){var r=$r(t[e],null),i=$r(n[e],null);return null!=r&&null!=i&&r===i}function Yr(e){return $r(e,"")}function $r(e,t){if(null==e)return t;var n=typeof e;return"string"===n?e:"number"===n||J(e)?e+"":t}function Qr(e){var t=e.name;return!(!t||!t.indexOf("series\0"))}function ei(e){return e&&null!=e.id&&0===Yr(e.id).indexOf("\0_ec_\0")}function ti(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?H(t.dataIndex)?N(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?H(t.name)?N(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function ni(){var e="__ec_inner_"+ri++;return function(t){return t[e]||(t[e]={})}}var ri=Ur();function ii(e,t,n){var r=oi(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(t,r){var i=ui(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function oi(e,t){var n;if(G(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=ue(),o={},a=!1;return R(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],u=(r[2]||"").toLowerCase();if(s&&u&&!(t&&t.includeMainTypes&&I(t.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[u]=e}else o[n]=e})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var ai={useDefault:!0,enableAll:!1,enableNone:!1},si={useDefault:!1,enableAll:!0,enableNone:!0};function ui(e,t,n,r){r=r||ai;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var u=void 0;return s.models=r.useDefault&&(u=e.getComponent(t))?[u]:[],s}return"none"===i||!1===i?(re(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(re(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function li(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function ci(e,t){var n=ue(),r=[];return R(e,(function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)})),{keys:r,buckets:n}}function fi(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if("number"===typeof r)return Mr(h=Yt(n||0,r,i),o?Math.max(Pr(n||0),Pr(r)):t);if("string"===typeof r)return i<1?n:r;for(var a=[],s=n,u=r,l=Math.max(s?s.length:0,u.length),c=0;c<l;++c){if("ordinal"===e.getDimensionInfo(c).type)a[c]=(i<1&&s?s:u)[c];else{var f=s&&s[c]?s[c]:0,d=u[c],h=Yt(f,d,i);a[c]=Mr(h,o?Math.max(Pr(f),Pr(d)):t)}}return a}var di="___EC__COMPONENT__CONTAINER___";function hi(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function pi(e,t){e.$constructor=e,e.extend=function(e){var t=this;function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(e.$constructor)e.$constructor.apply(this,arguments);else{if(gi(t)){var o=ce(n.prototype,new(t.bind.apply(t,u([void 0],r))));return o}t.apply(this,arguments)}}return n.___EC__EXTENDED_CLASS___=!0,M(n.prototype,e),n.extend=this.extend,n.superCall=mi,n.superApply=bi,function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}(n,this),n.superClass=t,n}}function gi(e){return"function"===typeof e&&/^class\s/.test(Function.prototype.toString.call(e))}function yi(e,t){e.extend=t.extend}var vi=Math.round(10*Math.random());function mi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function bi(e,t,n){return this.superClass.prototype[t].apply(e,n)}function wi(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){re(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=hi(r);if(i.sub){if(i.sub!==di){(function(e){var n=t[e.main];n&&n[di]||((n=t[e.main]={})[di]=!0);return n}(i))[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[di]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=hi(e),r=[],i=t[n.main];return i&&i[di]?R(i,(function(e,t){t!==di&&r.push(e)})):r.push(i),r},e.hasClass=function(e){var n=hi(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return R(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=hi(e),r=t[n.main];return r&&r[di]}}function xi(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&I(r,s)>=0||i&&I(i,s)<0)){var u=n.getShallow(s,t);null!=u&&(o[e[a][0]]=u)}}return o}}var _i=xi([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ki=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return _i(this,e,t)},e}(),Si=new Ot(50);function Ti(e){if("string"===typeof e){var t=Si.get(e);return t&&t.image}return e}function Ci(e,t,n,r,i){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=Si.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?!Oi(t=o.image)&&o.pending.push(a):((t=new Image).onload=t.onerror=Ai,Si.put(e,t.__cachedImgObj={image:t,pending:[a]}),t.src=t.__zrImageSrc=e),t}return e}return t}function Ai(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Oi(e){return e&&e.width&&e.height}var Mi=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ei(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=Pi(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Ii(o[a],i);return o.join("\n")}function Pi(e,t,n,r){var i=M({},r=r||{});i.font=t,n=Q(n,"..."),i.maxIterations=Q(r.maxIterations,2);var o=i.minChar=Q(r.minChar,0);i.cnCharWidth=Cn("\u56fd",t);var a=i.ascCharWidth=Cn("a",t);i.placeholder=Q(r.placeholder,"");for(var s=e=Math.max(0,e-1),u=0;u<o&&s>=a;u++)s-=a;var l=Cn(n,t);return l>s&&(n="",l=0),s=e-l,i.ellipsis=n,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function Ii(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=Cn(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?Di(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=Cn(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function Di(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Li=function(){},Ri=function(e){this.tokens=[],e&&(this.tokens=e)},Ni=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function ji(e,t,n,r,i){var o,a,s=""===t,u=i&&n.rich[i]||{},l=e.lines,c=u.font||n.font,f=!1;if(r){var d=u.padding,h=d?d[1]+d[3]:0;if(null!=u.width&&"auto"!==u.width){var p=In(u.width,r.width)+h;l.length>0&&p+r.accumWidth>r.width&&(o=t.split("\n"),f=!0),r.accumWidth=p}else{var g=zi(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var y=0;y<o.length;y++){var v=o[y],m=new Li;if(m.styleName=i,m.text=v,m.isLineHolder=!v&&!s,"number"===typeof u.width?m.width=u.width:m.width=a?a[y]:Cn(v,c),y||f)l.push(new Ri([m]));else{var b=(l[l.length-1]||(l[0]=new Ri)).tokens,w=b.length;1===w&&b[0].isLineHolder?b[0]=m:(v||!w||s)&&b.push(m)}}}var Bi=j(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Fi(e){return!function(e){var t=e.charCodeAt(0);return t>=33&&t<=255}(e)||!!Bi[e]}function zi(e,t,n,r,i){for(var o=[],a=[],s="",u="",l=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if("\n"!==d){var h=Cn(d,t),p=!r&&!Fi(d);(o.length?c+h>n:i+c+h>n)?c?(s||u)&&(p?(s||(s=u,u="",c=l=0),o.push(s),a.push(c-l),u+=d,s="",c=l+=h):(u&&(s+=u,c+=l,u="",l=0),o.push(s),a.push(c),s=d,c=h)):p?(o.push(u),a.push(l),u=d,l=h):(o.push(d),a.push(h)):(c+=h,p?(u+=d,l+=h):(u&&(s+=u,u="",l=0),s+=d))}else u&&(s+=u,c+=l),o.push(s),a.push(c),s="",u="",l=0,c=0}return o.length||s||(s=e,u="",l=0),u&&(s+=u),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Vi="__zr_style_"+Math.round(10*Math.random()),Hi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ui={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Hi[Vi]=!0;var Gi=["z","z2","invisible"],Ji=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype._init=function(t){for(var n=F(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){Xi.copy(e.getBoundingRect()),e.transform&&Xi.applyTransform(e.transform);return Wi.width=t,Wi.height=n,!Xi.intersect(Wi)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new _n(0,0,0,0)),t?_n.applyTransform(e,n,t):e.copy(n),(i||o||a)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(a),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+a-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new _n(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:M(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(){this.markRedraw(),this.__dirty|=t.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&t.STYLE_CHANGED_BIT)},t.prototype.styleUpdated=function(){this.__dirty&=~t.STYLE_CHANGED_BIT},t.prototype.createStyle=function(e){return ce(Hi,e)},t.prototype.useStyle=function(e){e[Vi]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Vi]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Gi)},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):u&&(s=r.style),s)if(o){var l=this.style;if(this.style=this.createStyle(u?{}:l),u)for(var c=F(l),f=0;f<c.length;f++){(h=c[f])in s&&(s[h]=s[h],this.style[h]=l[h])}var d=F(s);for(f=0;f<d.length;f++){var h=d[f];this.style[h]=this.style[h]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(f=0;f<Gi.length;f++){h=Gi[f];n&&null!=n[h]?this[h]=n[h]:u&&null!=r[h]&&(this[h]=r[h])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return M(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ui},t.STYLE_CHANGED_BIT=2,t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Gn.REDARAW_BIT|t.STYLE_CHANGED_BIT}(),t}(Gn),Xi=new _n(0,0,0,0),Wi=new _n(0,0,0,0);var qi=Ji,Zi=Math.pow,Ki=Math.sqrt,Yi=Ki(3),$i=ge(),Qi=ge(),eo=ge();function to(e){return e>-1e-8&&e<1e-8}function no(e){return e>1e-8||e<-1e-8}function ro(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function io(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function oo(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),u=3*(t-e),l=e-i,c=s*s-3*a*u,f=s*u-9*a*l,d=u*u-3*s*l,h=0;if(to(c)&&to(f)){if(to(s))o[0]=0;else(S=-u/s)>=0&&S<=1&&(o[h++]=S)}else{var p=f*f-4*c*d;if(to(p)){var g=f/c,y=-g/2;(S=-s/a+g)>=0&&S<=1&&(o[h++]=S),y>=0&&y<=1&&(o[h++]=y)}else if(p>0){var v=Ki(p),m=c*s+1.5*a*(-f+v),b=c*s+1.5*a*(-f-v);(S=(-s-((m=m<0?-Zi(-m,1/3):Zi(m,1/3))+(b=b<0?-Zi(-b,1/3):Zi(b,1/3))))/(3*a))>=0&&S<=1&&(o[h++]=S)}else{var w=(2*c*s-3*a*f)/(2*Ki(c*c*c)),x=Math.acos(w)/3,_=Ki(c),k=Math.cos(x),S=(-s-2*_*k)/(3*a),T=(y=(-s+_*(k+Yi*Math.sin(x)))/(3*a),(-s+_*(k-Yi*Math.sin(x)))/(3*a));S>=0&&S<=1&&(o[h++]=S),y>=0&&y<=1&&(o[h++]=y),T>=0&&T<=1&&(o[h++]=T)}}return h}function ao(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,u=0;if(to(a)){if(no(o))(c=-s/o)>=0&&c<=1&&(i[u++]=c)}else{var l=o*o-4*a*s;if(to(l))i[0]=-o/(2*a);else if(l>0){var c,f=Ki(l),d=(-o-f)/(2*a);(c=(-o+f)/(2*a))>=0&&c<=1&&(i[u++]=c),d>=0&&d<=1&&(i[u++]=d)}}return u}function so(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,u=(r-n)*i+n,l=(s-a)*i+a,c=(u-s)*i+s,f=(c-l)*i+l;o[0]=e,o[1]=a,o[2]=l,o[3]=f,o[4]=f,o[5]=c,o[6]=u,o[7]=r}function uo(e,t,n,r,i,o,a,s,u,l,c){var f,d,h,p,g,y=.005,v=1/0;$i[0]=u,$i[1]=l;for(var m=0;m<1;m+=.05)Qi[0]=ro(e,n,i,a,m),Qi[1]=ro(t,r,o,s,m),(p=Ae($i,Qi))<v&&(f=m,v=p);v=1/0;for(var b=0;b<32&&!(y<1e-4);b++)d=f-y,h=f+y,Qi[0]=ro(e,n,i,a,d),Qi[1]=ro(t,r,o,s,d),p=Ae(Qi,$i),d>=0&&p<v?(f=d,v=p):(eo[0]=ro(e,n,i,a,h),eo[1]=ro(t,r,o,s,h),g=Ae(eo,$i),h<=1&&g<v?(f=h,v=g):y*=.5);return c&&(c[0]=ro(e,n,i,a,f),c[1]=ro(t,r,o,s,f)),Ki(v)}function lo(e,t,n,r,i,o,a,s,u){for(var l=e,c=t,f=0,d=1/u,h=1;h<=u;h++){var p=h*d,g=ro(e,n,i,a,p),y=ro(t,r,o,s,p),v=g-l,m=y-c;f+=Math.sqrt(v*v+m*m),l=g,c=y}return f}function co(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function fo(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function ho(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function po(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function go(e,t,n,r,i,o,a,s,u){var l,c=.005,f=1/0;$i[0]=a,$i[1]=s;for(var d=0;d<1;d+=.05){Qi[0]=co(e,n,i,d),Qi[1]=co(t,r,o,d),(y=Ae($i,Qi))<f&&(l=d,f=y)}f=1/0;for(var h=0;h<32&&!(c<1e-4);h++){var p=l-c,g=l+c;Qi[0]=co(e,n,i,p),Qi[1]=co(t,r,o,p);var y=Ae(Qi,$i);if(p>=0&&y<f)l=p,f=y;else{eo[0]=co(e,n,i,g),eo[1]=co(t,r,o,g);var v=Ae(eo,$i);g<=1&&v<f?(l=g,f=v):c*=.5}}return u&&(u[0]=co(e,n,i,l),u[1]=co(t,r,o,l)),Ki(f)}function yo(e,t,n,r,i,o,a){for(var s=e,u=t,l=0,c=1/a,f=1;f<=a;f++){var d=f*c,h=co(e,n,i,d),p=co(t,r,o,d),g=h-s,y=p-u;l+=Math.sqrt(g*g+y*y),s=h,u=p}return l}var vo=Math.min,mo=Math.max,bo=Math.sin,wo=Math.cos,xo=2*Math.PI,_o=ge(),ko=ge(),So=ge();function To(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],o=r[0],a=r[1],s=r[1],u=1;u<e.length;u++)r=e[u],i=vo(i,r[0]),o=mo(o,r[0]),a=vo(a,r[1]),s=mo(s,r[1]);t[0]=i,t[1]=a,n[0]=o,n[1]=s}}function Co(e,t,n,r,i,o){i[0]=vo(e,n),i[1]=vo(t,r),o[0]=mo(e,n),o[1]=mo(t,r)}var Ao=[],Oo=[];function Mo(e,t,n,r,i,o,a,s,u,l){var c=ao,f=ro,d=c(e,n,i,a,Ao);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<d;h++){var p=f(e,n,i,a,Ao[h]);u[0]=vo(p,u[0]),l[0]=mo(p,l[0])}d=c(t,r,o,s,Oo);for(h=0;h<d;h++){var g=f(t,r,o,s,Oo[h]);u[1]=vo(g,u[1]),l[1]=mo(g,l[1])}u[0]=vo(e,u[0]),l[0]=mo(e,l[0]),u[0]=vo(a,u[0]),l[0]=mo(a,l[0]),u[1]=vo(t,u[1]),l[1]=mo(t,l[1]),u[1]=vo(s,u[1]),l[1]=mo(s,l[1])}function Eo(e,t,n,r,i,o,a,s){var u=ho,l=co,c=mo(vo(u(e,n,i),1),0),f=mo(vo(u(t,r,o),1),0),d=l(e,n,i,c),h=l(t,r,o,f);a[0]=vo(e,i,d),a[1]=vo(t,o,h),s[0]=mo(e,i,d),s[1]=mo(t,o,h)}function Po(e,t,n,r,i,o,a,s,u){var l=Ee,c=Pe,f=Math.abs(i-o);if(f%xo<1e-4&&f>1e-4)return s[0]=e-n,s[1]=t-r,u[0]=e+n,void(u[1]=t+r);if(_o[0]=wo(i)*n+e,_o[1]=bo(i)*r+t,ko[0]=wo(o)*n+e,ko[1]=bo(o)*r+t,l(s,_o,ko),c(u,_o,ko),(i%=xo)<0&&(i+=xo),(o%=xo)<0&&(o+=xo),i>o&&!a?o+=xo:i<o&&a&&(i+=xo),a){var d=o;o=i,i=d}for(var h=0;h<o;h+=Math.PI/2)h>i&&(So[0]=wo(h)*n+e,So[1]=bo(h)*r+t,l(s,So,s),c(u,So,u))}var Io={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Do=[],Lo=[],Ro=[],No=[],jo=[],Bo=[],Fo=Math.min,zo=Math.max,Vo=Math.cos,Ho=Math.sin,Uo=Math.sqrt,Go=Math.abs,Jo=Math.PI,Xo=2*Jo,Wo="undefined"!==typeof Float32Array,qo=[];function Zo(e){return Math.round(e/Jo*1e8)/1e8%2*Jo}function Ko(e,t){var n=Zo(e[0]);n<0&&(n+=Xo);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Xo?i=n+Xo:t&&n-i>=Xo?i=n-Xo:!t&&n>i?i=n+(Xo-Zo(n-i)):t&&n<i&&(i=n-(Xo-Zo(i-n))),e[0]=n,e[1]=i}var Yo=function(){function e(e){this.dpr=1,this._version=0,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=Go(n/Rn/e)||0,this._uy=Go(n/Rn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this.addData(Io.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Go(e-this._xi)>this._ux||Go(t-this._yi)>this._uy||this._len<5;return this.addData(Io.L,e,t),this._ctx&&n&&(this._needsDash?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this.addData(Io.C,e,t,n,r,i,o),this._ctx&&(this._needsDash?this._dashedBezierTo(e,t,n,r,i,o):this._ctx.bezierCurveTo(e,t,n,r,i,o)),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this.addData(Io.Q,e,t,n,r),this._ctx&&(this._needsDash?this._dashedQuadraticTo(e,t,n,r):this._ctx.quadraticCurveTo(e,t,n,r)),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){qo[0]=r,qo[1]=i,Ko(qo,o),r=qo[0];var a=(i=qo[1])-r;return this.addData(Io.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=Vo(i)*n+e,this._yi=Ho(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Io.R,e,t,n,r),this},e.prototype.closePath=function(){this.addData(Io.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.setLineDash=function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},e.prototype.setLineDashOffset=function(e){return this._dashOffset=e,this},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Wo||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();Wo&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,u){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var c=0;c<arguments.length;c++)l[this._len++]=arguments[c]}},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype._dashedLineTo=function(e,t){var n,r,i=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,u=this._xi,l=this._yi,c=e-u,f=t-l,d=Uo(c*c+f*f),h=u,p=l,g=o.length;for(s<0&&(s=i+s),h-=(s%=i)*(c/=d),p-=s*(f/=d);c>0&&h<=e||c<0&&h>=e||0===c&&(f>0&&p<=t||f<0&&p>=t);)h+=c*(n=o[r=this._dashIdx]),p+=f*n,this._dashIdx=(r+1)%g,c>0&&h<u||c<0&&h>u||f>0&&p<l||f<0&&p>l||a[r%2?"moveTo":"lineTo"](c>=0?Fo(h,e):zo(h,e),f>=0?Fo(p,t):zo(p,t));c=h-e,f=p-t,this._dashOffset=-Uo(c*c+f*f)},e.prototype._dashedBezierTo=function(e,t,n,r,i,o){var a,s,u,l,c,f=this._ctx,d=this._dashSum,h=this._dashOffset,p=this._lineDash,g=this._xi,y=this._yi,v=0,m=this._dashIdx,b=p.length,w=0;for(h<0&&(h=d+h),h%=d,a=0;a<1;a+=.1)s=ro(g,e,n,i,a+.1)-ro(g,e,n,i,a),u=ro(y,t,r,o,a+.1)-ro(y,t,r,o,a),v+=Uo(s*s+u*u);for(;m<b&&!((w+=p[m])>h);m++);for(a=(w-h)/v;a<=1;)l=ro(g,e,n,i,a),c=ro(y,t,r,o,a),m%2?f.moveTo(l,c):f.lineTo(l,c),a+=p[m]/v,m=(m+1)%b;m%2!==0&&f.lineTo(i,o),s=i-l,u=o-c,this._dashOffset=-Uo(s*s+u*u)},e.prototype._dashedQuadraticTo=function(e,t,n,r){var i=n,o=r;n=(n+2*e)/3,r=(r+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,r,i,o)},e.prototype.toStatic=function(){if(this._saveData){var e=this.data;e instanceof Array&&(e.length=this._len,Wo&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ro[0]=Ro[1]=jo[0]=jo[1]=Number.MAX_VALUE,No[0]=No[1]=Bo[0]=Bo[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(i=n=t[e],o=r=t[e+1]),a){case Io.M:n=i=t[e++],r=o=t[e++],jo[0]=i,jo[1]=o,Bo[0]=i,Bo[1]=o;break;case Io.L:Co(n,r,t[e],t[e+1],jo,Bo),n=t[e++],r=t[e++];break;case Io.C:Mo(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],jo,Bo),n=t[e++],r=t[e++];break;case Io.Q:Eo(n,r,t[e++],t[e++],t[e],t[e+1],jo,Bo),n=t[e++],r=t[e++];break;case Io.A:var u=t[e++],l=t[e++],c=t[e++],f=t[e++],d=t[e++],h=t[e++]+d;e+=1;var p=!t[e++];s&&(i=Vo(d)*c+u,o=Ho(d)*f+l),Po(u,l,c,f,d,h,p,jo,Bo),n=Vo(h)*c+u,r=Ho(h)*f+l;break;case Io.R:Co(i=n=t[e++],o=r=t[e++],i+t[e++],o+t[e++],jo,Bo);break;case Io.Z:n=i,r=o}Ee(Ro,Ro,jo),Pe(No,No,Bo)}return 0===e&&(Ro[0]=Ro[1]=No[0]=No[1]=0),new _n(Ro[0],Ro[1],No[0]-Ro[0],No[1]-Ro[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,l=0,c=0,f=0;f<t;){var d=e[f++],h=1===f;h&&(a=i=e[f],s=o=e[f+1]);var p=-1;switch(d){case Io.M:i=a=e[f++],o=s=e[f++];break;case Io.L:var g=e[f++],y=(b=e[f++])-o;(Go(M=g-i)>n||Go(y)>r||f===t-1)&&(p=Math.sqrt(M*M+y*y),i=g,o=b);break;case Io.C:var v=e[f++],m=e[f++],b=(g=e[f++],e[f++]),w=e[f++],x=e[f++];p=lo(i,o,v,m,g,b,w,x,10),i=w,o=x;break;case Io.Q:p=yo(i,o,v=e[f++],m=e[f++],g=e[f++],b=e[f++],10),i=g,o=b;break;case Io.A:var _=e[f++],k=e[f++],S=e[f++],T=e[f++],C=e[f++],A=e[f++],O=A+C;f+=1;e[f++];h&&(a=Vo(C)*S+_,s=Ho(C)*T+k),p=zo(S,T)*Fo(Xo,Math.abs(A)),i=Vo(O)*S+_,o=Ho(O)*T+k;break;case Io.R:a=i=e[f++],s=o=e[f++],p=2*e[f++]+2*e[f++];break;case Io.Z:var M=a-i;y=s-o;p=Math.sqrt(M*M+y*y),i=a,o=s}p>=0&&(u[c++]=p,l+=p)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,u,l,c=this.data,f=this._ux,d=this._uy,h=this._len,p=t<1,g=0,y=0;if(!p||(this._pathSegLen||this._calculateLength(),u=this._pathSegLen,l=t*this._pathLen))e:for(var v=0;v<h;){var m=c[v++],b=1===v;switch(b&&(n=i=c[v],r=o=c[v+1]),m){case Io.M:n=i=c[v++],r=o=c[v++],e.moveTo(i,o);break;case Io.L:if(a=c[v++],s=c[v++],Go(a-i)>f||Go(s-o)>d||v===h-1){if(p){if(g+(H=u[y++])>l){var w=(l-g)/H;e.lineTo(i*(1-w)+a*w,o*(1-w)+s*w);break e}g+=H}e.lineTo(a,s),i=a,o=s}break;case Io.C:var x=c[v++],_=c[v++],k=c[v++],S=c[v++],T=c[v++],C=c[v++];if(p){if(g+(H=u[y++])>l){so(i,x,k,T,w=(l-g)/H,Do),so(o,_,S,C,w,Lo),e.bezierCurveTo(Do[1],Lo[1],Do[2],Lo[2],Do[3],Lo[3]);break e}g+=H}e.bezierCurveTo(x,_,k,S,T,C),i=T,o=C;break;case Io.Q:x=c[v++],_=c[v++],k=c[v++],S=c[v++];if(p){if(g+(H=u[y++])>l){po(i,x,k,w=(l-g)/H,Do),po(o,_,S,w,Lo),e.quadraticCurveTo(Do[1],Lo[1],Do[2],Lo[2]);break e}g+=H}e.quadraticCurveTo(x,_,k,S),i=k,o=S;break;case Io.A:var A=c[v++],O=c[v++],M=c[v++],E=c[v++],P=c[v++],I=c[v++],D=c[v++],L=!c[v++],R=M>E?M:E,N=Go(M-E)>.001,j=P+I,B=!1;if(p)g+(H=u[y++])>l&&(j=P+I*(l-g)/H,B=!0),g+=H;if(N&&e.ellipse?e.ellipse(A,O,M,E,D,P,j,L):e.arc(A,O,R,P,j,L),B)break e;b&&(n=Vo(P)*M+A,r=Ho(P)*E+O),i=Vo(j)*M+A,o=Ho(j)*E+O;break;case Io.R:n=i=c[v],r=o=c[v+1],a=c[v++],s=c[v++];var F=c[v++],z=c[v++];if(p){if(g+(H=u[y++])>l){var V=l-g;e.moveTo(a,s),e.lineTo(a+Fo(V,F),s),(V-=F)>0&&e.lineTo(a+F,s+Fo(V,z)),(V-=z)>0&&e.lineTo(a+zo(F-V,0),s+z),(V-=F)>0&&e.lineTo(a,s+zo(z-V,0));break e}g+=H}e.rect(a,s,F,z);break;case Io.Z:if(p){var H;if(g+(H=u[y++])>l){w=(l-g)/H;e.lineTo(i*(1-w)+n*w,o*(1-w)+r*w);break e}g+=H}e.closePath(),i=n,o=r}}},e.CMD=Io,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._needsDash=!1,t._dashOffset=0,t._dashIdx=0,t._dashSum=0,t._ux=0,t._uy=0}(),e}();function $o(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,u=0;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;var l=(u=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return l*l/(u*u+1)<=s/2*s/2}function Qo(e,t,n,r,i,o,a,s,u,l,c){if(0===u)return!1;var f=u;return!(c>t+f&&c>r+f&&c>o+f&&c>s+f||c<t-f&&c<r-f&&c<o-f&&c<s-f||l>e+f&&l>n+f&&l>i+f&&l>a+f||l<e-f&&l<n-f&&l<i-f&&l<a-f)&&uo(e,t,n,r,i,o,a,s,l,c,null)<=f/2}function ea(e,t,n,r,i,o,a,s,u){if(0===a)return!1;var l=a;return!(u>t+l&&u>r+l&&u>o+l||u<t-l&&u<r-l&&u<o-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l)&&go(e,t,n,r,i,o,s,u,null)<=l/2}var ta=2*Math.PI;function na(e){return(e%=ta)<0&&(e+=ta),e}var ra=2*Math.PI;function ia(e,t,n,r,i,o,a,s,u){if(0===a)return!1;var l=a;s-=e,u-=t;var c=Math.sqrt(s*s+u*u);if(c-l>n||c+l<n)return!1;if(Math.abs(r-i)%ra<1e-4)return!0;if(o){var f=r;r=na(i),i=na(f)}else r=na(r),i=na(i);r>i&&(i+=ra);var d=Math.atan2(u,s);return d<0&&(d+=ra),d>=r&&d<=i||d+ra>=r&&d+ra<=i}function oa(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var u=a*(n-e)+e;return u===i?1/0:u>i?s:0}var aa=Yo.CMD,sa=2*Math.PI;var ua=[-1,-1,-1],la=[-1,-1];function ca(){var e=la[0];la[0]=la[1],la[1]=e}function fa(e,t,n,r,i,o,a,s,u,l){if(l>t&&l>r&&l>o&&l>s||l<t&&l<r&&l<o&&l<s)return 0;var c=oo(t,r,o,s,l,ua);if(0===c)return 0;for(var f=0,d=-1,h=void 0,p=void 0,g=0;g<c;g++){var y=ua[g],v=0===y||1===y?.5:1;ro(e,n,i,a,y)<u||(d<0&&(d=ao(t,r,o,s,la),la[1]<la[0]&&d>1&&ca(),h=ro(t,r,o,s,la[0]),d>1&&(p=ro(t,r,o,s,la[1]))),2===d?y<la[0]?f+=h<t?v:-v:y<la[1]?f+=p<h?v:-v:f+=s<p?v:-v:y<la[0]?f+=h<t?v:-v:f+=s<h?v:-v)}return f}function da(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var u=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,u=0;if(to(o)){if(no(a))(c=-s/a)>=0&&c<=1&&(i[u++]=c)}else{var l=a*a-4*o*s;if(to(l))(c=-a/(2*o))>=0&&c<=1&&(i[u++]=c);else if(l>0){var c,f=Ki(l),d=(-a-f)/(2*o);(c=(-a+f)/(2*o))>=0&&c<=1&&(i[u++]=c),d>=0&&d<=1&&(i[u++]=d)}}return u}(t,r,o,s,ua);if(0===u)return 0;var l=ho(t,r,o);if(l>=0&&l<=1){for(var c=0,f=co(t,r,o,l),d=0;d<u;d++){var h=0===ua[d]||1===ua[d]?.5:1;co(e,n,i,ua[d])<a||(ua[d]<l?c+=f<t?h:-h:c+=o<f?h:-h)}return c}h=0===ua[0]||1===ua[0]?.5:1;return co(e,n,i,ua[0])<a?0:o<t?h:-h}function ha(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var u=Math.sqrt(n*n-s*s);ua[0]=-u,ua[1]=u;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=sa-1e-4){r=0,i=sa;var c=o?1:-1;return a>=ua[0]+e&&a<=ua[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=sa,i+=sa);for(var d=0,h=0;h<2;h++){var p=ua[h];if(p+e>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=sa+g),(g>=r&&g<=i||g+sa>=r&&g+sa<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function pa(e,t,n,r,i){for(var o,a,s,u,l=e.data,c=e.len(),f=0,d=0,h=0,p=0,g=0,y=0;y<c;){var v=l[y++],m=1===y;switch(v===aa.M&&y>1&&(n||(f+=oa(d,h,p,g,r,i))),m&&(p=d=l[y],g=h=l[y+1]),v){case aa.M:d=p=l[y++],h=g=l[y++];break;case aa.L:if(n){if($o(d,h,l[y],l[y+1],t,r,i))return!0}else f+=oa(d,h,l[y],l[y+1],r,i)||0;d=l[y++],h=l[y++];break;case aa.C:if(n){if(Qo(d,h,l[y++],l[y++],l[y++],l[y++],l[y],l[y+1],t,r,i))return!0}else f+=fa(d,h,l[y++],l[y++],l[y++],l[y++],l[y],l[y+1],r,i)||0;d=l[y++],h=l[y++];break;case aa.Q:if(n){if(ea(d,h,l[y++],l[y++],l[y],l[y+1],t,r,i))return!0}else f+=da(d,h,l[y++],l[y++],l[y],l[y+1],r,i)||0;d=l[y++],h=l[y++];break;case aa.A:var b=l[y++],w=l[y++],x=l[y++],_=l[y++],k=l[y++],S=l[y++];y+=1;var T=!!(1-l[y++]);o=Math.cos(k)*x+b,a=Math.sin(k)*_+w,m?(p=o,g=a):f+=oa(d,h,o,a,r,i);var C=(r-b)*_/x+b;if(n){if(ia(b,w,_,k,k+S,T,t,C,i))return!0}else f+=ha(b,w,_,k,k+S,T,C,i);d=Math.cos(k+S)*x+b,h=Math.sin(k+S)*_+w;break;case aa.R:if(p=d=l[y++],g=h=l[y++],o=p+l[y++],a=g+l[y++],n){if($o(p,g,o,g,t,r,i)||$o(o,g,o,a,t,r,i)||$o(o,a,p,a,t,r,i)||$o(p,a,p,g,t,r,i))return!0}else f+=oa(o,g,o,a,r,i),f+=oa(p,a,p,g,r,i);break;case aa.Z:if(n){if($o(d,h,p,g,t,r,i))return!0}else f+=oa(d,h,p,g,r,i);d=p,h=g}}return n||(s=h,u=g,Math.abs(s-u)<1e-4)||(f+=oa(d,h,p,g,r,i)||0),0!==f}var ga=E({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Hi),ya={style:E({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ui.style)},va=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],ma=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<va.length;++s)i[va[s]]=this[va[s]];i.__dirty|=Gn.REDARAW_BIT}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=F(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?M(this.style,a):this.useStyle(a):"shape"===o?M(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(G(e)){var t=Zt(e,0);return t>.5?"#333":t>.2?"#eee":"#ccc"}if(e)return"#ccc"}return"#333"},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(G(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Zt(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~t.SHAPE_CHANGED_BIT},t.prototype.createPathProxy=function(){this.path=new Yo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,r=!e;if(r){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&t.SHAPE_CHANGED_BIT)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||r){a.copy(e);var s=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;u=Math.max(u,null==l?4:l)}s>1e-10&&(a.width+=u/s,a.height+=u/s,a.x-=u/s/2,a.y-=u/s/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return pa(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return pa(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=t.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:M(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&t.SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(e){return ce(ga,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=M({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=M({},r.shape),M(s,n.shape)):(s=M({},i?this.shape:r.shape),M(s,n.shape)):u&&(s=r.shape),s)if(o){this.shape=M({},this.shape);for(var l={},c=F(s),f=0;f<c.length;f++){var d=c[f];"object"===typeof s[d]?this.shape[d]=s[d]:l[d]=s[d]}this._transitionState(t,{shape:l},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return ya},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return pe(n,t),n.prototype.getDefaultStyle=function(){return C(e.style)},n.prototype.getDefaultShape=function(){return C(e.shape)},n}(t);for(var r in e)"function"===typeof e[r]&&(n.prototype[r]=e[r]);return n},t.SHAPE_CHANGED_BIT=4,t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Gn.REDARAW_BIT|qi.STYLE_CHANGED_BIT|t.SHAPE_CHANGED_BIT}(),t}(qi),ba=E({strokeFirst:!0,font:Sn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ga),wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pe(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return ce(ba,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=On(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(qi);wa.prototype.type="tspan";var xa=wa,_a=E({x:0,y:0},Hi),ka={style:E({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ui.style)};var Sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pe(t,e),t.prototype.createStyle=function(e){return ce(_a,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!==typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return ka},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new _n(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(qi);Sa.prototype.type="image";var Ta=Sa;var Ca=Math.round;function Aa(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(Ca(2*r)===Ca(2*i)&&(e.x1=e.x2=Ma(r,s,!0)),Ca(2*o)===Ca(2*a)&&(e.y1=e.y2=Ma(o,s,!0)),e):e}}function Oa(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=Ma(r,s,!0),e.y=Ma(i,s,!0),e.width=Math.max(Ma(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(Ma(i+a,s,!1)-e.y,0===a?0:1),e):e}}function Ma(e,t,n){if(!t)return e;var r=Ca(2*e);return(r+Ca(t))%2===0?r/2:(r+(n?1:-1))/2}var Ea=function(){this.x=0,this.y=0,this.width=0,this.height=0},Pa={},Ia=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultShape=function(){return new Ea},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Oa(Pa,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,u=t.y,l=t.width,c=t.height,f=t.r;l<0&&(s+=l,l=-l),c<0&&(u+=c,c=-c),"number"===typeof f?n=r=i=o=f:f instanceof Array?1===f.length?n=r=i=o=f[0]:2===f.length?(n=i=f[0],r=o=f[1]):3===f.length?(n=f[0],r=o=f[1],i=f[2]):(n=f[0],r=f[1],i=f[2],o=f[3]):n=r=i=o=0,n+r>l&&(n*=l/(a=n+r),r*=l/a),i+o>l&&(i*=l/(a=i+o),o*=l/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,u),e.lineTo(s+l-r,u),0!==r&&e.arc(s+l-r,u+r,r,-Math.PI/2,0),e.lineTo(s+l,u+c-i),0!==i&&e.arc(s+l-i,u+c-i,i,0,Math.PI/2),e.lineTo(s+o,u+c),0!==o&&e.arc(s+o,u+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,u+n),0!==n&&e.arc(s+n,u+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ma);Ia.prototype.type="rect";var Da=Ia,La={fill:"#000"},Ra={style:E({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ui.style)},Na=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=La,n.attr(t),n}return pe(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}var r=this.attachedTransform;if(r){r.updateTransform();var i=r.transform;i?(this.transform=this.transform||[],ct(this.transform,i)):this.transform=null}else e.prototype.update.call(this)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,Fa(e=this.style),R(e.rich,Fa),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new _n(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||La},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return M(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=F(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},M(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Ra},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||Sn,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,o=t.font,a="truncate"===r,s=Pn(o),u=Q(t.lineHeight,s),l="truncate"===t.lineOverflow,c=t.width,f=(n=null!=c&&"break"===r||"breakAll"===r?e?zi(e,t.font,c,"breakAll"===r,0).lines:[]:e?e.split("\n"):[]).length*u,d=Q(t.height,f);if(f>d&&l){var h=Math.floor(d/u);n=n.slice(0,h)}var p=d,g=c;if(i&&(p+=i[0]+i[2],null!=g&&(g+=i[1]+i[3])),e&&a&&null!=g)for(var y=Pi(c,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;v<n.length;v++)n[v]=Ii(n[v],y);if(null==c){var m=0;for(v=0;v<n.length;v++)m=Math.max(Cn(n[v],o),m);c=m}return{lines:n,height:d,outerHeight:p,lineHeight:u,calculatedLineHeight:s,contentHeight:f,width:c}}(Ha(e),e),i=Ua(e),o=!!e.backgroundColor,a=r.outerHeight,s=r.lines,u=r.lineHeight,l=this._defaultStyle,c=e.x||0,f=e.y||0,d=e.align||l.align||"left",h=e.verticalAlign||l.verticalAlign||"top",p=c,g=En(f,r.contentHeight,h);if(i||n){var y=r.width;n&&(y+=n[1]+n[3]);var v=Mn(c,y,d),m=En(f,a,h);i&&this._renderBackground(e,e,v,m,y,a)}g+=u/2,n&&(p=Va(c,d,n),"top"===h?g+=n[0]:"bottom"===h&&(g-=n[2]));for(var b,w=0,x=!1,_=(null==(b="fill"in e?e.fill:(x=!0,l.fill))||"none"===b?null:b.image||b.colorStops?"#000":b),k=(za("stroke"in e?e.stroke:o||l.autoStroke&&!x?null:(w=2,l.stroke))),S=e.textShadowBlur>0,T=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),C=r.calculatedLineHeight,A=0;A<s.length;A++){var O=this._getOrCreateChild(xa),M=O.createStyle();O.useStyle(M),M.text=s[A],M.x=p,M.y=g,d&&(M.textAlign=d),M.textBaseline="middle",M.opacity=e.opacity,M.strokeFirst=!0,S&&(M.shadowBlur=e.textShadowBlur||0,M.shadowColor=e.textShadowColor||"transparent",M.shadowOffsetX=e.textShadowOffsetX||0,M.shadowOffsetY=e.textShadowOffsetY||0),k&&(M.stroke=k,M.lineWidth=e.lineWidth||w,M.lineDash=e.lineDash,M.lineDashOffset=e.lineDashOffset||0),_&&(M.fill=_),M.font=t,g+=u,T&&O.setBoundingRect(new _n(Mn(M.x,e.width,M.textAlign),En(M.y,C,M.textBaseline),e.width,C))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new Ni;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},u=Mi.lastIndex=0;null!=(r=Mi.exec(e));){var l=r.index;l>u&&ji(n,e.substring(u,l),t,s),ji(n,r[2],t,s,r[1]),u=Mi.lastIndex}u<e.length&&ji(n,e.substring(u,e.length),t,s);var c=[],f=0,d=0,h=t.padding,p="truncate"===a,g="truncate"===t.lineOverflow;function y(e,t,n){e.width=t,e.lineHeight=n,f+=n,d=Math.max(d,t)}e:for(var v=0;v<n.lines.length;v++){for(var m=n.lines[v],b=0,w=0,x=0;x<m.tokens.length;x++){var _=(I=m.tokens[x]).styleName&&t.rich[I.styleName]||{},k=I.textPadding=_.padding,S=k?k[1]+k[3]:0,T=I.font=_.font||t.font;I.contentHeight=Pn(T);var C=Q(_.height,I.contentHeight);if(I.innerHeight=C,k&&(C+=k[0]+k[2]),I.height=C,I.lineHeight=ee(_.lineHeight,t.lineHeight,C),I.align=_&&_.align||t.align,I.verticalAlign=_&&_.verticalAlign||"middle",g&&null!=o&&f+I.lineHeight>o){x>0?(m.tokens=m.tokens.slice(0,x),y(m,w,b),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break e}var A=_.width,O=null==A||"auto"===A;if("string"===typeof A&&"%"===A.charAt(A.length-1))I.percentWidth=A,c.push(I),I.contentWidth=Cn(I.text,T);else{if(O){var M=_.backgroundColor,E=M&&M.image;E&&Oi(E=Ti(E))&&(I.width=Math.max(I.width,E.width*C/E.height))}var P=p&&null!=i?i-w:null;null!=P&&P<I.width?!O||P<S?(I.text="",I.width=I.contentWidth=0):(I.text=Ei(I.text,P-S,T,t.ellipsis,{minChar:t.truncateMinChar}),I.width=I.contentWidth=Cn(I.text,T)):I.contentWidth=Cn(I.text,T)}I.width+=S,w+=I.width,_&&(b=Math.max(b,I.lineHeight))}y(m,w,b)}for(n.outerWidth=n.width=Q(i,d),n.outerHeight=n.height=Q(o,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]),v=0;v<c.length;v++){var I,D=(I=c[v]).percentWidth;I.width=parseInt(D,10)/100*n.width}return n}(Ha(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,u=this._defaultStyle,l=e.align||u.align,c=e.verticalAlign||u.verticalAlign,f=Mn(a,r,l),d=En(s,i,c),h=f,p=d;o&&(h+=o[3],p+=o[0]);var g=h+n;Ua(e)&&this._renderBackground(e,e,f,d,r,i);for(var y=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var m=t.lines[v],b=m.tokens,w=b.length,x=m.lineHeight,_=m.width,k=0,S=h,T=g,C=w-1,A=void 0;k<w&&(!(A=b[k]).align||"left"===A.align);)this._placeToken(A,e,x,p,S,"left",y),_-=A.width,S+=A.width,k++;for(;C>=0&&"right"===(A=b[C]).align;)this._placeToken(A,e,x,p,T,"right",y),_-=A.width,T-=A.width,C--;for(S+=(n-(S-h)-(g-T)-_)/2;k<=C;)A=b[k],this._placeToken(A,e,x,p,S+A.width/2,"center",y),S+=A.width,k++;p+=x}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var u=e.verticalAlign,l=r+n/2;"top"===u?l=r+e.height/2:"bottom"===u&&(l=r+n-e.height/2),!e.isLineHolder&&Ua(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,l-e.height/2,e.width,e.height);var c=!!s.backgroundColor,f=e.textPadding;f&&(i=Va(i,o,f),l-=e.height/2-f[0]-e.innerHeight/2);var d=this._getOrCreateChild(xa),h=d.createStyle();d.useStyle(h);var p=this._defaultStyle,g=!1,y=0,v=za("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,p.fill)),m=za("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||a||p.autoStroke&&!g?null:(y=2,p.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;h.text=e.text,h.x=i,h.y=l,b&&(h.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,h.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",h.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,h.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),h.textAlign=o,h.textBaseline="middle",h.font=e.font||Sn,h.opacity=ee(s.opacity,t.opacity,1),m&&(h.lineWidth=ee(s.lineWidth,t.lineWidth,y),h.lineDash=Q(s.lineDash,t.lineDash),h.lineDashOffset=t.lineDashOffset||0,h.stroke=m),v&&(h.fill=v);var w=e.contentWidth,x=e.contentHeight;d.setBoundingRect(new _n(Mn(h.x,w,h.textAlign),En(h.y,x,h.textBaseline),w,x))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,u,l=e.backgroundColor,c=e.borderWidth,f=e.borderColor,d=G(l),h=e.borderRadius,p=this;if(d||c&&f){(a=this._getOrCreateChild(Da)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=h,a.dirtyShape()}if(d)(u=a.style).fill=l||null,u.fillOpacity=Q(e.fillOpacity,1);else if(l&&l.image){(s=this._getOrCreateChild(Ta)).onload=function(){p.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}c&&f&&((u=a.style).lineWidth=c,u.stroke=f,u.strokeOpacity=Q(e.strokeOpacity,1),u.lineDash=e.borderDash,u.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2));var v=(a||s).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||"transparent",v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=ee(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";if(e.fontSize||e.fontFamily||e.fontWeight){var n="";n="string"!==typeof e.fontSize||-1===e.fontSize.indexOf("px")&&-1===e.fontSize.indexOf("rem")&&-1===e.fontSize.indexOf("em")?isNaN(+e.fontSize)?"12px":e.fontSize+"px":e.fontSize,t=[e.fontStyle,e.fontWeight,n,e.fontFamily||"sans-serif"].join(" ")}return t&&ie(t)||e.textFont||e.font},t}(qi),ja={left:!0,right:1,center:1},Ba={top:1,bottom:1,middle:1};function Fa(e){if(e){e.font=Na.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||ja[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||Ba[n]?n:"top",e.padding&&(e.padding=ne(e.padding))}}function za(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Va(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Ha(e){var t=e.text;return null!=t&&(t+=""),t}function Ua(e){return!!(e.backgroundColor||e.borderWidth&&e.borderColor)}var Ga=Na,Ja=ni(),Xa=1,Wa={},qa=ni(),Za=["emphasis","blur","select"],Ka=["normal","emphasis","blur","select"];function Ya(e){return null!=e&&"none"!==e}var $a=new Ot(100);function Qa(e){if("string"!==typeof e)return e;var t=$a.get(e);return t||(t=Ut(e,-.1),$a.put(e,t)),t}function es(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function ts(e){es(e,"emphasis",2)}function ns(e){2===e.hoverState&&es(e,"normal",0)}function rs(e){es(e,"blur",1)}function is(e){1===e.hoverState&&es(e,"normal",0)}function os(e){e.selected=!0}function as(e){e.selected=!1}function ss(e,t,n){t(e,n)}function us(e,t,n){ss(e,t,n),e.isGroup&&e.traverse((function(e){ss(e,t,n)}))}function ls(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function cs(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&I(n,"select")>=0,o=!1;if(e instanceof ma){var a=qa(e),s=i&&a.selectFill||a.normalFill,u=i&&a.selectStroke||a.normalStroke;if(Ya(s)||Ya(u)){var l=(r=r||{}).style||{};!Ya(l.fill)&&Ya(s)?(o=!0,r=M({},r),(l=M({},l)).fill=Qa(s)):!Ya(l.stroke)&&Ya(u)&&(o||(r=M({},r),l=M({},l)),l.stroke=Qa(u)),r.style=l}}if(r&&null==r.z2){o||(r=M({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:10)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=I(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],u=i[s];o[s]=null==u?r&&r[s]:u}for(a=0;a<e.animators.length;a++){var l=e.animators[a];l.__fromStateTransition&&l.__fromStateTransition.indexOf(n)<0&&"style"===l.targetName&&l.saveFinalToTarget(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=M({},n),a=M({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=M({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function fs(e){e.stateProxy=cs;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=cs),n&&(n.stateProxy=cs)}function ds(e,t){!ws(e,t)&&!e.__highByOuter&&us(e,ts)}function hs(e,t){!ws(e,t)&&!e.__highByOuter&&us(e,ns)}function ps(e,t){e.__highByOuter|=1<<(t||0),us(e,ts)}function gs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&us(e,ns)}function ys(e){us(e,rs)}function vs(e){us(e,is)}function ms(e){us(e,os)}function bs(e){us(e,as)}function ws(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function xs(e){e.getModel().eachComponent((function(t,n){("series"===t?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n)).group.traverse((function(e){is(e)}))}))}function _s(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&vs(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries((function(e){var i=a===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!("series"===n&&!i||"coordinateSystem"===n&&!(l&&s?l===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse((function(e){rs(e)})),L(t))o(e.getData(),t);else if(W(t))for(var c=F(t),f=0;f<c.length;f++)o(e.getData(c[f]),t[c[f]]);u.push(e)}})),i.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.blurSeries&&n.blurSeries(u,i)}}))}}function ks(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(e){rs(e)}))}}}function Ss(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,u=a.findHighDownDispatchers(n),l=0;l<u.length;l++)if("self"===Ja(u[l]).focus){s=!0;break}return{focusSelf:s,dispatchers:u}}function Ts(e){R(e.getAllData(),(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?ms(t):bs(t)}))}))}function Cs(e){var t=[];return e.eachSeries((function(e){R(e.getAllData(),(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}}))})),t}function As(e,t,n){Is(e,!0),us(e,fs),Os(e,t,n)}function Os(e,t,n){var r=Ja(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Ms=["emphasis","blur","select"],Es={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ps(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Ms.length;i++){var o=Ms[i],a=t.getModel([o,n]);e.ensureState(o).style=r?r(a):a[Es[n]]()}}function Is(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Ds(e){return!(!e||!e.__highDownDispatcher)}function Ls(e){var t=e.type;return"select"===t||"unselect"===t||"toggleSelect"===t}function Rs(e){var t=e.type;return"highlight"===t||"downplay"===t}var Ns=Yo.CMD,js=[[],[],[]],Bs=Math.sqrt,Fs=Math.atan2;var zs=Math.sqrt,Vs=Math.sin,Hs=Math.cos,Us=Math.PI;function Gs(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Js(e,t){return(e[0]*t[0]+e[1]*t[1])/(Gs(e)*Gs(t))}function Xs(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Js(e,t))}function Ws(e,t,n,r,i,o,a,s,u,l,c){var f=u*(Us/180),d=Hs(f)*(e-n)/2+Vs(f)*(t-r)/2,h=-1*Vs(f)*(e-n)/2+Hs(f)*(t-r)/2,p=d*d/(a*a)+h*h/(s*s);p>1&&(a*=zs(p),s*=zs(p));var g=(i===o?-1:1)*zs((a*a*(s*s)-a*a*(h*h)-s*s*(d*d))/(a*a*(h*h)+s*s*(d*d)))||0,y=g*a*h/s,v=g*-s*d/a,m=(e+n)/2+Hs(f)*y-Vs(f)*v,b=(t+r)/2+Vs(f)*y+Hs(f)*v,w=Xs([1,0],[(d-y)/a,(h-v)/s]),x=[(d-y)/a,(h-v)/s],_=[(-1*d-y)/a,(-1*h-v)/s],k=Xs(x,_);if(Js(x,_)<=-1&&(k=Us),Js(x,_)>=1&&(k=0),k<0){var S=Math.round(k/Us*1e6)/1e6;k=2*Us+S%2*Us}c.addData(l,m,b,a,s,w,k,f,o)}var qs=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Zs=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Ks=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pe(t,e),t.prototype.applyTransform=function(e){},t}(ma);function Ys(e){return null!=e.setData}function $s(e,t){var n=function(e){var t=new Yo;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=Yo.CMD,u=e.match(qs);if(!u)return t;for(var l=0;l<u.length;l++){for(var c=u[l],f=c.charAt(0),d=void 0,h=c.match(Zs)||[],p=h.length,g=0;g<p;g++)h[g]=parseFloat(h[g]);for(var y=0;y<p;){var v=void 0,m=void 0,b=void 0,w=void 0,x=void 0,_=void 0,k=void 0,S=r,T=i,C=void 0,A=void 0;switch(f){case"l":r+=h[y++],i+=h[y++],d=s.L,t.addData(d,r,i);break;case"L":r=h[y++],i=h[y++],d=s.L,t.addData(d,r,i);break;case"m":r+=h[y++],i+=h[y++],d=s.M,t.addData(d,r,i),o=r,a=i,f="l";break;case"M":r=h[y++],i=h[y++],d=s.M,t.addData(d,r,i),o=r,a=i,f="L";break;case"h":r+=h[y++],d=s.L,t.addData(d,r,i);break;case"H":r=h[y++],d=s.L,t.addData(d,r,i);break;case"v":i+=h[y++],d=s.L,t.addData(d,r,i);break;case"V":i=h[y++],d=s.L,t.addData(d,r,i);break;case"C":d=s.C,t.addData(d,h[y++],h[y++],h[y++],h[y++],h[y++],h[y++]),r=h[y-2],i=h[y-1];break;case"c":d=s.C,t.addData(d,h[y++]+r,h[y++]+i,h[y++]+r,h[y++]+i,h[y++]+r,h[y++]+i),r+=h[y-2],i+=h[y-1];break;case"S":v=r,m=i,C=t.len(),A=t.data,n===s.C&&(v+=r-A[C-4],m+=i-A[C-3]),d=s.C,S=h[y++],T=h[y++],r=h[y++],i=h[y++],t.addData(d,v,m,S,T,r,i);break;case"s":v=r,m=i,C=t.len(),A=t.data,n===s.C&&(v+=r-A[C-4],m+=i-A[C-3]),d=s.C,S=r+h[y++],T=i+h[y++],r+=h[y++],i+=h[y++],t.addData(d,v,m,S,T,r,i);break;case"Q":S=h[y++],T=h[y++],r=h[y++],i=h[y++],d=s.Q,t.addData(d,S,T,r,i);break;case"q":S=h[y++]+r,T=h[y++]+i,r+=h[y++],i+=h[y++],d=s.Q,t.addData(d,S,T,r,i);break;case"T":v=r,m=i,C=t.len(),A=t.data,n===s.Q&&(v+=r-A[C-4],m+=i-A[C-3]),r=h[y++],i=h[y++],d=s.Q,t.addData(d,v,m,r,i);break;case"t":v=r,m=i,C=t.len(),A=t.data,n===s.Q&&(v+=r-A[C-4],m+=i-A[C-3]),r+=h[y++],i+=h[y++],d=s.Q,t.addData(d,v,m,r,i);break;case"A":b=h[y++],w=h[y++],x=h[y++],_=h[y++],k=h[y++],Ws(S=r,T=i,r=h[y++],i=h[y++],_,k,b,w,x,d=s.A,t);break;case"a":b=h[y++],w=h[y++],x=h[y++],_=h[y++],k=h[y++],Ws(S=r,T=i,r+=h[y++],i+=h[y++],_,k,b,w,x,d=s.A,t)}}"z"!==f&&"Z"!==f||(d=s.Z,t.addData(d),r=o,i=a),n=d}return t.toStatic(),t}(e),r=M({},t);return r.buildPath=function(e){if(Ys(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){!function(e,t){var n,r,i,o,a,s,u=e.data,l=e.len(),c=Ns.M,f=Ns.C,d=Ns.L,h=Ns.R,p=Ns.A,g=Ns.Q;for(i=0,o=0;i<l;){switch(n=u[i++],o=i,r=0,n){case c:case d:r=1;break;case f:r=3;break;case g:r=2;break;case p:var y=t[4],v=t[5],m=Bs(t[0]*t[0]+t[1]*t[1]),b=Bs(t[2]*t[2]+t[3]*t[3]),w=Fs(-t[1]/b,t[0]/m);u[i]*=m,u[i++]+=y,u[i]*=b,u[i++]+=v,u[i++]*=m,u[i++]*=b,u[i++]+=w,u[i++]+=w,o=i+=2;break;case h:s[0]=u[i++],s[1]=u[i++],Me(s,s,t),u[o++]=s[0],u[o++]=s[1],s[0]+=u[i++],s[1]+=u[i++],Me(s,s,t),u[o++]=s[0],u[o++]=s[1]}for(a=0;a<r;a++){var x=js[a];x[0]=u[i++],x[1]=u[i++],Me(x,x,t),u[o++]=x[0],u[o++]=x[1]}}e.increaseVersion()}(n,e),this.dirtyShape()},r}function Qs(e,t){return new Ks($s(e,t))}var eu=function(){this.cx=0,this.cy=0,this.r=0},tu=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultShape=function(){return new eu},t.prototype.buildPath=function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(ma);tu.prototype.type="circle";var nu=tu,ru=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},iu=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultShape=function(){return new ru},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,u=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-u,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-u,r+o,i),e.bezierCurveTo(r+o,i+u,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+u,r-o,i),e.closePath()},t}(ma);iu.prototype.type="ellipse";var ou=iu,au=Math.PI,su=2*au,uu=Math.sin,lu=Math.cos,cu=Math.acos,fu=Math.atan2,du=Math.abs,hu=Math.sqrt,pu=Math.max,gu=Math.min;function yu(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/hu(s*s+u*u),c=l*u,f=-l*s,d=e+c,h=t+f,p=n+c,g=r+f,y=(d+p)/2,v=(h+g)/2,m=p-d,b=g-h,w=m*m+b*b,x=i-o,_=d*g-p*h,k=(b<0?-1:1)*hu(pu(0,x*x*w-_*_)),S=(_*b-m*k)/w,T=(-_*m-b*k)/w,C=(_*b+m*k)/w,A=(-_*m+b*k)/w,O=S-y,M=T-v,E=C-y,P=A-v;return O*O+M*M>E*E+P*P&&(S=C,T=A),{cx:S,cy:T,x01:-c,y01:-f,x11:S*(i/x-1),y11:T*(i/x-1)}}var vu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},mu=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultShape=function(){return new vu},t.prototype.buildPath=function(e,t){!function(e,t){var n=pu(t.r,0),r=pu(t.r0||0,0),i=n>0;if(i||r>0){if(i||(n=r,r=0),r>n){var o=n;n=r,r=o}var a,s=!!t.clockwise,u=t.startAngle,l=t.endAngle;if(u===l)a=0;else{var c=[u,l];Ko(c,!s),a=du(c[0]-c[1])}var f=t.cx,d=t.cy,h=t.cornerRadius||0,p=t.innerCornerRadius||0;if(n>1e-4)if(a>su-1e-4)e.moveTo(f+n*lu(u),d+n*uu(u)),e.arc(f,d,n,u,l,!s),r>1e-4&&(e.moveTo(f+r*lu(l),d+r*uu(l)),e.arc(f,d,r,l,u,s));else{var g=du(n-r)/2,y=gu(g,h),v=gu(g,p),m=v,b=y,w=n*lu(u),x=n*uu(u),_=r*lu(l),k=r*uu(l),S=void 0,T=void 0,C=void 0,A=void 0;if((y>1e-4||v>1e-4)&&(S=n*lu(l),T=n*uu(l),C=r*lu(u),A=r*uu(u),a<au)){var O=function(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,f=s-o,d=f*u-c*l;if(!(d*d<1e-4))return[e+(d=(c*(t-o)-f*(e-i))/d)*u,t+d*l]}(w,x,C,A,S,T,_,k);if(O){var M=w-O[0],E=x-O[1],P=S-O[0],I=T-O[1],D=1/uu(cu((M*P+E*I)/(hu(M*M+E*E)*hu(P*P+I*I)))/2),L=hu(O[0]*O[0]+O[1]*O[1]);m=gu(v,(r-L)/(D-1)),b=gu(y,(n-L)/(D+1))}}if(a>1e-4)if(b>1e-4){var R=yu(C,A,w,x,n,b,s),N=yu(S,T,_,k,n,b,s);e.moveTo(f+R.cx+R.x01,d+R.cy+R.y01),b<y?e.arc(f+R.cx,d+R.cy,b,fu(R.y01,R.x01),fu(N.y01,N.x01),!s):(e.arc(f+R.cx,d+R.cy,b,fu(R.y01,R.x01),fu(R.y11,R.x11),!s),e.arc(f,d,n,fu(R.cy+R.y11,R.cx+R.x11),fu(N.cy+N.y11,N.cx+N.x11),!s),e.arc(f+N.cx,d+N.cy,b,fu(N.y11,N.x11),fu(N.y01,N.x01),!s))}else e.moveTo(f+w,d+x),e.arc(f,d,n,u,l,!s);else e.moveTo(f+w,d+x);if(r>1e-4&&a>1e-4)if(m>1e-4){R=yu(_,k,S,T,r,-m,s),N=yu(w,x,C,A,r,-m,s);e.lineTo(f+R.cx+R.x01,d+R.cy+R.y01),m<v?e.arc(f+R.cx,d+R.cy,m,fu(R.y01,R.x01),fu(N.y01,N.x01),!s):(e.arc(f+R.cx,d+R.cy,m,fu(R.y01,R.x01),fu(R.y11,R.x11),!s),e.arc(f,d,r,fu(R.cy+R.y11,R.cx+R.x11),fu(N.cy+N.y11,N.cx+N.x11),s),e.arc(f+N.cx,d+N.cy,m,fu(N.y11,N.x11),fu(N.y01,N.x01),!s))}else e.lineTo(f+_,d+k),e.arc(f,d,r,l,u,s);else e.lineTo(f+_,d+k)}else e.moveTo(f,d);e.closePath()}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ma);mu.prototype.type="sector";var bu=mu,wu=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},xu=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultShape=function(){return new wu},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(ma);xu.prototype.type="ring";var _u=xu;function ku(e,t,n,r,i,o,a){var s=.5*(n-e),u=.5*(r-t);return(2*(t-n)+s+u)*a+(-3*(t-n)-2*s-u)*o+s*i+t}function Su(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r&&"spline"!==r){var o=function(e,t,n,r){var i,o,a,s,u=[],l=[],c=[],f=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Ee(a,a,e[d]),Pe(s,s,e[d]);Ee(a,a,r[0]),Pe(s,s,r[1])}for(d=0,h=e.length;d<h;d++){var p=e[d];if(n)i=e[d?d-1:h-1],o=e[(d+1)%h];else{if(0===d||d===h-1){u.push(ve(e[d]));continue}i=e[d-1],o=e[d+1]}we(l,o,i),ke(l,l,t);var g=Te(p,i),y=Te(p,o),v=g+y;0!==v&&(g/=v,y/=v),ke(c,l,-g),ke(f,l,y);var m=me([],p,c),b=me([],p,f);r&&(Pe(m,m,a),Ee(m,m,s),Pe(b,b,a),Ee(b,b,s)),u.push(m),u.push(b)}return n&&u.push(u.shift()),u}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var u=o[2*s],l=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(u[0],u[1],l[0],l[1],c[0],c[1])}}else{"spline"===r&&(i=function(e,t){for(var n=e.length,r=[],i=0,o=1;o<n;o++)i+=Te(e[o-1],e[o]);var a=i/2;for(a=a<n?n:a,o=0;o<a;o++){var s=o/(a-1)*(t?n:n-1),u=Math.floor(s),l=s-u,c=void 0,f=e[u%n],d=void 0,h=void 0;t?(c=e[(u-1+n)%n],d=e[(u+1)%n],h=e[(u+2)%n]):(c=e[0===u?u:u-1],d=e[u>n-2?n-1:u+1],h=e[u>n-3?n-1:u+2]);var p=l*l,g=l*p;r.push([ku(c[0],f[0],d[0],h[0],l,p,g),ku(c[1],f[1],d[1],h[1],l,p,g)])}return r}(i,n)),e.moveTo(i[0][0],i[0][1]);s=1;for(var f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Tu=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Cu=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultShape=function(){return new Tu},t.prototype.buildPath=function(e,t){Su(e,t,!0)},t}(ma);Cu.prototype.type="polygon";var Au=Cu,Ou=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Mu=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ou},t.prototype.buildPath=function(e,t){Su(e,t,!1)},t}(ma);Mu.prototype.type="polyline";var Eu=Mu,Pu={},Iu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Du=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Iu},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Aa(Pu,t,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=t.x1,r=t.y1,i=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),e.lineTo(i,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(ma);Du.prototype.type="line";var Lu=Du,Ru=[],Nu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function ju(e,t,n){var r=e.cpx2,i=e.cpy2;return null===r||null===i?[(n?io:ro)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?io:ro)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?fo:co)(e.x1,e.cpx1,e.x2,t),(n?fo:co)(e.y1,e.cpy1,e.y2,t)]}var Bu=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Nu},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,u=t.cpx2,l=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==u||null==l?(c<1&&(po(n,a,i,c,Ru),a=Ru[1],i=Ru[2],po(r,s,o,c,Ru),s=Ru[1],o=Ru[2]),e.quadraticCurveTo(a,s,i,o)):(c<1&&(so(n,a,u,i,c,Ru),a=Ru[1],u=Ru[2],i=Ru[3],so(r,s,l,o,c,Ru),s=Ru[1],l=Ru[2],o=Ru[3]),e.bezierCurveTo(a,s,u,l,i,o)))},t.prototype.pointAt=function(e){return ju(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=ju(this.shape,e,!0);return Se(t,t)},t}(ma);Bu.prototype.type="bezier-curve";var Fu=Bu,zu=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Vu=function(e){function t(t){return e.call(this,t)||this}return pe(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zu},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,u=Math.cos(o),l=Math.sin(o);e.moveTo(u*i+n,l*i+r),e.arc(n,r,i,o,a,!s)},t}(ma);Vu.prototype.type="arc";var Hu=Vu,Uu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return pe(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ma.prototype.getBoundingRect.call(this)},t}(ma),Gu=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Ju=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return pe(t,e),t}(Gu),Xu=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return pe(t,e),t}(Gu),Wu=[0,0],qu=[0,0],Zu=new hn,Ku=new hn,Yu=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new hn;for(n=0;n<2;n++)this._axes[n]=new hn;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width,s=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),t)for(var u=0;u<4;u++)n[u].transform(t);hn.sub(r[0],n[1],n[0]),hn.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Zu.set(1/0,1/0),Ku.set(0,0),!this._intersectCheckOneSide(this,e,Zu,Ku,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Zu,Ku,r,-1)&&(n=!1,r)||r||hn.copy(t,n?Zu:Ku),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,o){for(var a=!0,s=0;s<2;s++){var u=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Wu),this._getProjMinMaxOnAxis(s,t._corners,qu),Wu[1]<qu[0]||Wu[0]>qu[1]){if(a=!1,i)return a;var l=Math.abs(qu[0]-Wu[1]),c=Math.abs(Wu[0]-qu[1]);Math.min(l,c)>r.len()&&(l<c?hn.scale(r,u,-l*o):hn.scale(r,u,c*o))}else if(n){l=Math.abs(qu[0]-Wu[1]),c=Math.abs(Wu[0]-qu[1]);Math.min(l,c)<n.len()&&(l<c?hn.scale(n,u,l*o):hn.scale(n,u,-c*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,u=1;u<t.length;u++){var l=t[u].dot(r)+i[e];a=Math.min(l,a),s=Math.max(l,s)}n[0]=a,n[1]=s},e}(),$u=[],Qu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return pe(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new _n(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform($u)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(qi),el=Math.max,tl=Math.min,nl={};function rl(e){return ma.extend(e)}var il=function(e,t){var n=$s(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return pe(t,e),t}(Ks)};function ol(e,t){return il(e,t)}function al(e,t){nl[e]=t}function sl(e){if(nl.hasOwnProperty(e))return nl[e]}function ul(e,t,n,r){var i=Qs(e,t);return n&&("center"===r&&(n=cl(n,i.getBoundingRect())),dl(i,n)),i}function ll(e,t,n){var r=new Ta({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(cl(t,i))}}});return r}function cl(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var fl=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];o.path||o.createPathProxy(),o.shapeChanged()&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var a=new ma(t);return a.createPathProxy(),a.buildPath=function(e){if(Ys(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function dl(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function hl(e){return Aa(e.shape,e.shape,e.style),e}function pl(e){return Oa(e.shape,e.shape,e.style),e}var gl=Ma;function yl(e,t,n,r,i,o,a){var s,u=!1;"function"===typeof i?(a=o,o=i,i=null):W(i)&&(o=i.cb,a=i.during,u=i.isFrom,s=i.removeOpt,i=i.dataIndex);var l,c="update"===e,f="remove"===e;if(r&&r.ecModel){var d=r.ecModel.getUpdatePayload();l=d&&d.animation}var h=r&&r.isAnimationEnabled();if(f||t.stopAnimation("remove"),h){var p=void 0,g=void 0,y=void 0;l?(p=l.duration||0,g=l.easing||"cubicOut",y=l.delay||0):f?(p=Q((s=s||{}).duration,200),g=Q(s.easing,"cubicOut"),y=0):(p=r.getShallow(c?"animationDurationUpdate":"animationDuration"),g=r.getShallow(c?"animationEasingUpdate":"animationEasing"),y=r.getShallow(c?"animationDelayUpdate":"animationDelay")),"function"===typeof y&&(y=y(i,r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null)),"function"===typeof p&&(p=p(i)),p>0?u?t.animateFrom(n,{duration:p,delay:y||0,easing:g,done:o,force:!!o||!!a,scope:e,during:a}):t.animateTo(n,{duration:p,delay:y||0,easing:g,done:o,force:!!o||!!a,setToFinal:!0,scope:e,during:a}):(t.stopAnimation(),!u&&t.attr(n),o&&o())}else t.stopAnimation(),!u&&t.attr(n),a&&a(1),o&&o()}function vl(e,t,n,r,i,o){yl("update",e,t,n,r,i,o)}function ml(e,t,n,r,i,o){yl("init",e,t,n,r,i,o)}function bl(e,t,n,r,i,o){_l(e)||yl("remove",e,t,n,r,i,o)}function wl(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),bl(e,{style:{opacity:0}},t,n,r)}function xl(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||wl(e,t,n,r)})):wl(e,t,n,r)}function _l(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("remove"===e.animators[t].scope)return!0}return!1}function kl(e,t){for(var n=lt([]);e&&e!==t;)ft(n,e.getLocalTransform(),n),e=e.parent;return n}function Sl(e,t,n){return t&&!L(t)&&(t=_t.getLocalTransform(t)),n&&(t=gt([],t)),Me([],e,t)}function Tl(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Sl(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Cl(e){return!e.isGroup}function Al(e,t,n){if(e&&t){var r=function(e){var t={};return e.traverse((function(e){Cl(e)&&e.anid&&(t[e.anid]=e)})),t}(e);t.traverse((function(e){if(Cl(e)&&e.anid){var t=r[e.anid];if(t){var o=i(e);e.attr(i(t)),vl(e,o,n,Ja(e).dataIndex)}}}))}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=M({},e.shape)),t}}function Ol(e,t){return N(e,(function(e){var n=e[0];n=el(n,t.x),n=tl(n,t.x+t.width);var r=e[1];return r=el(r,t.y),[n,r=tl(r,t.y+t.height)]}))}function Ml(e,t){var n=el(e.x,t.x),r=tl(e.x+e.width,t.x+t.width),i=el(e.y,t.y),o=tl(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function El(e,t,n){var r=M({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),E(i,n),new Ta(r)):ul(e.replace("path://",""),r,n,"center")}function Pl(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Il(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Il(e,t,n,r,i,o,a,s){var u,l=n-e,c=r-t,f=a-i,d=s-o,h=Dl(f,d,l,c);if((u=h)<=1e-6&&u>=-1e-6)return!1;var p=e-i,g=t-o,y=Dl(p,g,l,c)/h;if(y<0||y>1)return!1;var v=Dl(p,g,f,d)/h;return!(v<0||v>1)}function Dl(e,t,n,r){return e*r-n*t}function Ll(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=G(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var u=e.formatterParamsExtra;u&&R(F(u),(function(e){fe(s,e)||(s[e]=u[e],s.$vars.push(e))}));var l=Ja(e.el);l.componentMainType=o,l.componentIndex=a,l.tooltipConfig={name:r,option:E({content:r,formatterParams:s},i)}}al("circle",nu),al("ellipse",ou),al("sector",bu),al("ring",_u),al("polygon",Au),al("polyline",Eu),al("rect",Da),al("line",Lu),al("bezierCurve",Fu),al("arc",Hu);var Rl={};function Nl(e,t){for(var n=0;n<Za.length;n++){var r=Za[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function jl(e,t,n){var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=U(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var u={normal:r},l=0;l<Za.length;l++){var c=Za[l],f=t[c];u[c]=Q(i?i.getFormattedLabel(o,c,null,a,f&&f.get("formatter")):null,r)}return u}function Bl(e,t,n,r){n=n||Rl;for(var i=e instanceof Ga,o=!1,a=0;a<Ka.length;a++){if((d=t[Ka[a]])&&d.getShallow("show")){o=!0;break}}var s=i?e:e.getTextContent();if(o){i||(s||(s=new Ga,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var u=jl(n,t),l=t.normal,c=!!l.getShallow("show"),f=zl(l,r&&r.normal,n,!1,!i);f.text=u.normal,i||e.setTextConfig(Vl(l,n,!1));for(a=0;a<Za.length;a++){var d,h=Za[a];if(d=t[h]){var p=s.ensureState(h),g=!!Q(d.getShallow("show"),c);if(g!==c&&(p.ignore=!g),p.style=zl(d,r&&r[h],n,!0,!i),p.style.text=u[h],!i)e.ensureState(h).textConfig=Vl(d,n,!0)}}s.silent=!!l.getShallow("silent"),null!=s.style.x&&(f.x=s.style.x),null!=s.style.y&&(f.y=s.style.y),s.ignore=!c,s.useStyle(f),s.dirty(),n.enableTextSetter&&(Wl(s).setLabelText=function(e){var r=jl(n,t,e);Nl(s,r)})}else s&&(s.ignore=!0);e.dirty()}function Fl(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<Za.length;r++){var i=Za[r];n[i]=e.getModel([i,t])}return n}function zl(e,t,n,r,i){var o={};return function(e,t,n,r,i){n=n||Rl;var o,a=t.ecModel,s=a&&a.option.textStyle,u=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||Rl).rich;if(n){t=t||{};for(var r=F(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}(t);if(u)for(var l in o={},u)if(u.hasOwnProperty(l)){var c=t.getModel(["rich",l]);Jl(o[l]={},c,s,n,r,i,!1,!0)}o&&(e.rich=o);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");null!=d&&(e.margin=d);Jl(e,t,s,n,r,i,!0,!1)}(o,e,n,r,i),t&&M(o,t),o}function Vl(e,t,n){t=t||{};var r,i={},o=e.getShallow("rotate"),a=Q(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var Hl=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ul=["align","lineHeight","width","height","tag","verticalAlign"],Gl=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Jl(e,t,n,r,i,o,a,s){n=!i&&n||Rl;var u=r&&r.inheritColor,l=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Q(t.getShallow("opacity"),n.opacity);"inherit"!==l&&"auto"!==l||(l=u||null),"inherit"!==c&&"auto"!==c||(c=u||null),o||(l=l||n.color,c=c||n.textBorderColor),null!=l&&(e.fill=l),null!=c&&(e.stroke=c);var d=Q(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var h=Q(t.getShallow("textBorderType"),n.textBorderType);null!=h&&(e.lineDash=h);var p=Q(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=p&&(e.lineDashOffset=p),i||null!=f||s||(f=r&&r.defaultOpacity),null!=f&&(e.opacity=f),i||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<Hl.length;g++){var y=Hl[g];null!=(m=Q(t.getShallow(y),n[y]))&&(e[y]=m)}for(g=0;g<Ul.length;g++){y=Ul[g];null!=(m=t.getShallow(y))&&(e[y]=m)}if(null==e.verticalAlign){var v=t.getShallow("baseline");null!=v&&(e.verticalAlign=v)}if(!a||!r.disableBox){for(g=0;g<Gl.length;g++){var m;y=Gl[g];null!=(m=t.getShallow(y))&&(e[y]=m)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!u||(e.backgroundColor=u),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!u||(e.borderColor=u)}}function Xl(e,t){var n=t&&t.getModel("textStyle");return ie([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Wl=ni();function ql(e,t,n,r){if(e){var i=Wl(e);i.prevValue=i.value,i.value=n;var o=t.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function Zl(e,t,n,r,i){var o=Wl(e);if(o.valueAnimation){var a=o.defaultInterpolatedText,s=Q(o.interpolatedValue,o.prevValue),u=o.value;(null==s?ml:vl)(e,{},r,t,null,(function(r){var l=fi(n,o.precision,s,u,r);o.interpolatedValue=1===r?null:l;var c=jl({labelDataIndex:t,labelFetcher:i,defaultText:a?a(l):l+""},o.statesModels,l);Nl(e,c)}))}}var Kl=["textStyle","color"],Yl=new Ga,$l=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Kl):null)},e.prototype.getFont=function(){return Xl({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){return Yl.useStyle({text:e,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),Yl.update(),Yl.getBoundingRect()},e}(),Ql=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ec=xi(Ql),tc=function(){function e(){}return e.prototype.getLineStyle=function(e){return ec(this,e)},e}(),nc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],rc=xi(nc),ic=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return rc(this,e,t)},e}(),oc=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){A(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(C(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!f.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"===typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();pi(oc),function(e){var t=["__\0is_clz",vi++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}(oc),D(oc,tc),D(oc,ic),D(oc,ki),D(oc,$l);var ac=oc,sc=Math.round(10*Math.random());function uc(e){return[e||"",sc++].join("_")}function lc(e,t){return A(A({},e,!0),t,!0)}var cc={},fc={},dc=f.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function hc(e,t){e=e.toUpperCase(),fc[e]=new ac(t),cc[e]=t}hc("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Guage",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),hc("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var pc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},gc={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+pc.hour,minute:"{yyyy}-{MM}-{dd} "+pc.minute,second:"{yyyy}-{MM}-{dd} "+pc.second,millisecond:pc.none},yc=["year","month","day","hour","minute","second","millisecond"],vc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function mc(e,t){return"0000".substr(0,t-(e+="").length)+e}function bc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function wc(e,t,n,r){var i=Nr(e),o=i[kc(n)](),a=i[Sc(n)]()+1,s=Math.floor((a-1)/4)+1,u=i[Tc(n)](),l=i["get"+(n?"UTC":"")+"Day"](),c=i[Cc(n)](),f=(c-1)%12+1,d=i[Ac(n)](),h=i[Oc(n)](),p=i[Mc(n)](),g=(r instanceof ac?r:function(e){return fc[e]}(r||dc)||fc.EN).getModel("time"),y=g.get("month"),v=g.get("monthAbbr"),m=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,mc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,mc(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,m[l]).replace(/{ee}/g,b[l]).replace(/{e}/g,l+"").replace(/{HH}/g,mc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,mc(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,mc(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,mc(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,mc(p,3)).replace(/{S}/g,p+"")}function xc(e,t){var n=Nr(e),r=n[Sc(t)]()+1,i=n[Tc(t)](),o=n[Cc(t)](),a=n[Ac(t)](),s=n[Oc(t)](),u=0===n[Mc(t)](),l=u&&0===s,c=l&&0===a,f=c&&0===o,d=f&&1===i;return d&&1===r?"year":d?"month":f?"day":c?"hour":l?"minute":u?"second":"millisecond"}function _c(e,t,n){var r="number"===typeof e?Nr(e):e;switch(t=t||xc(e,n)){case"year":return r[kc(n)]();case"half-year":return r[Sc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Sc(n)]()+1)/4);case"month":return r[Sc(n)]();case"day":return r[Tc(n)]();case"half-day":return r[Cc(n)]()/24;case"hour":return r[Cc(n)]();case"minute":return r[Ac(n)]();case"second":return r[Oc(n)]();case"millisecond":return r[Mc(n)]()}}function kc(e){return e?"getUTCFullYear":"getFullYear"}function Sc(e){return e?"getUTCMonth":"getMonth"}function Tc(e){return e?"getUTCDate":"getDate"}function Cc(e){return e?"getUTCHours":"getHours"}function Ac(e){return e?"getUTCMinutes":"getMinutes"}function Oc(e){return e?"getUTCSeconds":"getSeconds"}function Mc(e){return e?"getUTCSeconds":"getSeconds"}function Ec(e){return e?"setUTCFullYear":"setFullYear"}function Pc(e){return e?"setUTCMonth":"setMonth"}function Ic(e){return e?"setUTCDate":"setDate"}function Dc(e){return e?"setUTCHours":"setHours"}function Lc(e){return e?"setUTCMinutes":"setMinutes"}function Rc(e){return e?"setUTCSeconds":"setSeconds"}function Nc(e){return e?"setUTCSeconds":"setSeconds"}function jc(e){if(!Hr(e))return G(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Bc(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Fc=ne,zc=/([&<>"'])/g,Vc={"&":"&","<":"<",">":">",'"':""","'":"'"};function Hc(e){return null==e?"":(e+"").replace(zc,(function(e,t){return Vc[t]}))}function Uc(e,t,n){function r(e){return e&&ie(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?Nr(e):e;if(!isNaN(+s))return wc(s,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return J(e)?r(e):X(e)&&i(e)?e+"":"-";var u=Vr(e);return i(u)?jc(u):J(e)?r(e):"-"}var Gc=["a","b","c","d","e","f","g"],Jc=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Xc(e,t,n){H(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=Gc[o];e=e.replace(Jc(a),Jc(a,0))}for(var s=0;s<r;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];e=e.replace(Jc(Gc[u],s),n?Hc(l):l)}return e}function Wc(e,t){return t=t||"transparent",G(e)?e:W(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function qc(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Zc=R,Kc=["left","right","top","bottom","width","height"],Yc=[["width","left","right"],["height","top","bottom"]];function $c(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(u,l){var c,f,d=u.getBoundingRect(),h=t.childAt(l+1),p=h&&h.getBoundingRect();if("horizontal"===e){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>r||u.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(p?-p.y+d.y:0);(f=a+y)>i||u.newline?(o+=s+n,a=0,f=y,s=d.width):s=Math.max(s,d.width)}u.newline||(u.x=o,u.y=a,u.markRedraw(),"horizontal"===e?o=c+n:a=f+n)}))}var Qc=$c;V($c,"vertical"),V($c,"horizontal");function ef(e,t,n){n=Fc(n||0);var r=t.width,i=t.height,o=Or(e.left,r),a=Or(e.top,i),s=Or(e.right,r),u=Or(e.bottom,i),l=Or(e.width,r),c=Or(e.height,i),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(l)&&(l=r-s-d-o),isNaN(c)&&(c=i-u-f-a),null!=h&&(isNaN(l)&&isNaN(c)&&(h>r/i?l=.8*r:c=.8*i),isNaN(l)&&(l=h*c),isNaN(c)&&(c=l/h)),isNaN(o)&&(o=r-s-l-d),isNaN(a)&&(a=i-u-c-f),e.left||e.right){case"center":o=r/2-l/2-n[3];break;case"right":o=r-l-d}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f}o=o||0,a=a||0,isNaN(l)&&(l=r-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(u||0));var p=new _n(o+n[3],a+n[0],l,c);return p.margin=n,p}function tf(e,t,n,r,i){var o=!i||!i.hv||i.hv[0],a=!i||!i.hv||i.hv[1],s=i&&i.boundingMode||"all";if(o||a){var u;if("raw"===s)u="group"===e.type?new _n(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var l=e.getLocalTransform();(u=u.clone()).applyTransform(l)}var c=ef(E({width:u.width,height:u.height},t),n,r),f=o?c.x-u.x:0,d=a?c.y-u.y:0;"raw"===s?(e.x=f,e.y=d):(e.x+=f,e.y+=d),e.markRedraw()}}function nf(e){var t=e.layoutMode||e.constructor.layoutMode;return W(t)?t:t?{type:t}:null}function rf(e,t,n){var r=n&&n.ignoreSize;!H(r)&&(r=[r,r]);var i=a(Yc[0],0),o=a(Yc[1],1);function a(n,i){var o={},a=0,l={},c=0;if(Zc(n,(function(t){l[t]=e[t]})),Zc(n,(function(e){s(t,e)&&(o[e]=l[e]=t[e]),u(o,e)&&a++,u(l,e)&&c++})),r[i])return u(t,n[1])?l[n[2]]=null:u(t,n[2])&&(l[n[1]]=null),l;if(2!==c&&a){if(a>=2)return o;for(var f=0;f<n.length;f++){var d=n[f];if(!s(o,d)&&s(e,d)){o[d]=e[d];break}}return o}return l}function s(e,t){return e.hasOwnProperty(t)}function u(e,t){return null!=e[t]&&"auto"!==e[t]}function l(e,t,n){Zc(e,(function(e){t[e]=n[e]}))}l(Yc[0],e,i),l(Yc[1],e,o)}function of(e){return af({},e)}function af(e,t){return t&&e&&Zc(Kc,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var sf=ni(),uf=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=uc("ec_cpt_model"),i}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=nf(this),r=n?of(e):{};A(e,t.getTheme().get(this.mainType)),A(e,this.getDefaultOption()),n&&rf(e,r,n)},t.prototype.mergeOption=function(e,t){A(this.option,e,!0);var n=nf(this);n&&rf(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e.___EC__EXTENDED_CLASS___)}(e))return e.defaultOption;var t=sf(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=A(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return ui(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(ac);yi(uf,ac),wi(uf),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=hi(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=hi(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}(uf),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,o){if(e.length){var a=function(e){var r={},i=[];return R(e,(function(o){var a=n(r,o),s=function(e,t){var n=[];return R(e,(function(e){I(t,e)>=0&&n.push(e)})),n}(a.originalDeps=t(o),e);a.entryCount=s.length,0===a.entryCount&&i.push(o),R(s,(function(e){I(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(r,e);I(t.successor,e)<0&&t.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,u=a.noEntryList,l={};for(R(e,(function(e){l[e]=!0}));u.length;){var c=u.pop(),f=s[c],d=!!l[c];d&&(i.call(o,c,f.originalDeps.slice()),delete l[c]),R(f.successor,d?p:h)}R(l,(function(){throw new Error("")}))}function h(e){s[e].entryCount--,0===s[e].entryCount&&u.push(e)}function p(e){l[e]=!0,h(e)}}}(uf,(function(e){var t=[];R(uf.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=N(t,(function(e){return hi(e).main})),"dataset"!==e&&I(t,"dataset")<=0&&t.unshift("dataset");return t}));var lf=uf,cf="";"undefined"!==typeof navigator&&(cf=navigator.platform||"");var ff="rgba(0, 0, 0, 0.2)",df={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ff,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ff,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ff,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ff,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ff,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ff,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:cf.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},hf=ue(["tooltip","label","itemName","itemId","seriesName"]),pf=1,gf=2,yf=3,vf=ni();function mf(e,t,n){var r={},i=wf(t);if(!i||!e)return r;var o,a,s=[],u=[],l=t.ecModel,c=vf(l).datasetMap,f=i.uid+"_"+n.seriesLayoutBy;R(e=e.slice(),(function(t,n){var i=W(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]}));var d=c.get(f)||c.set(f,{categoryWayDim:a,valueWayDim:0});function h(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function p(e){var t=e.dimsDef;return t?t.length:1}return R(e,(function(e,t){var n=e.name,i=p(e);if(null==o){var a=d.valueWayDim;h(r[n],a,i),h(u,a,i),d.valueWayDim+=i}else if(o===t)h(r[n],0,i),h(s,0,i);else{a=d.categoryWayDim;h(r[n],a,i),h(u,a,i),d.categoryWayDim+=i}})),s.length&&(r.itemName=s),u.length&&(r.seriesName=u),r}function bf(e,t,n){var r={};if(!wf(e))return r;var i,o=t.sourceFormat,a=t.dimensionsDefine;"objectRows"!==o&&"keyedColumns"!==o||R(a,(function(e,t){"name"===(W(e)?e.name:e)&&(i=t)}));var s=function(){for(var e={},r={},s=[],u=0,l=Math.min(5,n);u<l;u++){var c=_f(t.data,o,t.seriesLayoutBy,a,t.startIndex,u);s.push(c);var f=c===yf;if(f&&null==e.v&&u!==i&&(e.v=u),(null==e.n||e.n===e.v||!f&&s[e.n]===yf)&&(e.n=u),d(e)&&s[e.n]!==yf)return e;f||(c===gf&&null==r.v&&u!==i&&(r.v=u),null!=r.n&&r.n!==r.v||(r.n=u))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(r)?r:null}();if(s){r.value=[s.v];var u=null!=i?i:s.n;r.itemName=[u],r.seriesName=[u]}return r}function wf(e){if(!e.get("data",!0))return ui(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ai).models[0]}function xf(e,t){return _f(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function _f(e,t,n,r,i,o){var a,s,u;if(Z(e))return yf;if(r){var l=r[o];W(l)?(s=l.name,u=l.type):G(l)&&(s=l)}if(null!=u)return"ordinal"===u?pf:yf;if("arrayRows"===t){var c=e;if("row"===n){for(var f=c[o],d=0;d<(f||[]).length&&d<5;d++)if(null!=(a=m(f[i+d])))return a}else for(d=0;d<c.length&&d<5;d++){var h=c[i+d];if(h&&null!=(a=m(h[o])))return a}}else if("objectRows"===t){var p=e;if(!s)return yf;for(d=0;d<p.length&&d<5;d++){if((y=p[d])&&null!=(a=m(y[s])))return a}}else if("keyedColumns"===t){if(!s)return yf;if(!(f=e[s])||Z(f))return yf;for(d=0;d<f.length&&d<5;d++)if(null!=(a=m(f[d])))return a}else if("original"===t){var g=e;for(d=0;d<g.length&&d<5;d++){var y,v=qr(y=g[d]);if(!H(v))return yf;if(null!=(a=m(v[o])))return a}}function m(e){var t=G(e);return null!=e&&isFinite(e)&&""!==e?t?gf:yf:t&&"-"!==e?pf:void 0}return yf}var kf=ue();var Sf,Tf,Cf,Af=ni(),Of=ni(),Mf=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Jr(this.get("color",!0)),i=this.get("colorLayer",!0);return Pf(this,Af,r,i,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=Af)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();function Ef(e,t,n,r){var i=Jr(e.get(["aria","decal","decals"]));return Pf(e,Of,i,null,t,n,r)}function Pf(e,t,n,r,i,o,a){var s=t(o=o||e),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var c=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if((c=c||n)&&c.length){var f=c[u];return i&&(l[i]=f),s.paletteIdx=(u+1)%c.length,f}}var If=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new ac(r),this._locale=new ac(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=Rf(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Rf(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Cf(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&R(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=ue(),s=t&&t.replaceMergeMainTypeMap;vf(this).datasetMap=ue(),R(e,(function(e,t){null!=e&&(lf.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?C(e):A(n[t],e,!0))})),s&&s.each((function(e,t){lf.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),lf.topologicalTravel(o,lf.getAllClassMainTypes(),(function(t){var o=function(e,t,n){var r=kf.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,Jr(e[t])),a=r.get(t),u=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",l=Zr(a,o,u);(function(e,t,n){R(e,(function(e){var r=e.newOption;W(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))}))})(l,t,lf),n[t]=null,r.set(t,null),i.set(t,0);var c=[],f=[],d=0;R(l,(function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=lf.getClass(t,e.keyInfo.subType,!o);if(!a)return;if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=M({componentIndex:n},e.keyInfo);M(r=new a(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(c.push(r.option),f.push(r),d++):(c.push(void 0),f.push(void 0))}),this),n[t]=c,r.set(t,f),i.set(t,d),"series"===t&&Sf(this)}),this),this._seriesIndices||Sf(this)},t.prototype.getOption=function(){var e=C(this.option);return R(e,(function(t,n){if(lf.hasClass(n)){for(var r=Jr(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!ei(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}})),delete e["\0_ec_inner"],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.getLocale=function(e){return this.getLocaleModel().get(e)},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],R(Jr(r),(function(e){a[e]&&n.push(a[e])}))):n=null!=i?Df("id",i,a):null!=o?Df("name",o,a):B(a,(function(e){return!!e})),Lf(n,e)):[]},t.prototype.findComponents=function(e){var t,n=e.query,r=e.mainType,i=function(e){var t=r+"Index",n=r+"Id",i=r+"Name";return!e||null==e[t]&&null==e[n]&&null==e[i]?null:{mainType:r,index:e[t],id:e[n],name:e[i]}}(n),o=i?this.queryComponents(i):B(this._componentsMap.get(r),(function(e){return!!e}));return t=Lf(o,e),e.filter?B(t,e.filter):t},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(U(e)){var i=t,o=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}}))}else for(var a=G(e)?r.get(e):W(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var u=a[s];u&&t.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=$r(e,null);return B(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return B(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return B(this._componentsMap.get("series").slice(),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Tf(this),R(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){R(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){Tf(this),R(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return R(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Tf(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Tf(this);var n=[];R(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=ue(n)},t.prototype.restoreData=function(e){Sf(this);var t=this._componentsMap,n=[];t.each((function(e,t){lf.hasClass(t)&&n.push(t)})),lf.topologicalTravel(n,lf.getAllClassMainTypes(),(function(n){R(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()}))}))},t.internalField=(Sf=function(e){var t=e._seriesIndices=[];R(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=ue(t)},Tf=function(e){},void(Cf=function(e,t){e.option={},e.option["\0_ec_inner"]=1,e._componentsMap=ue({series:[]}),e._componentsCount=ue();var n=t.aria;W(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;R(t,(function(t,r){"colorLayer"===r&&n||lf.hasClass(r)||("object"===typeof t?e[r]=e[r]?A(e[r],t,!1):C(t):null==e[r]&&(e[r]=t))}))}(t,e._theme.option),A(t,df,!1),e._mergeOption(t,null)})),t}(ac);function Df(e,t,n){if(H(t)){var r=ue();return R(t,(function(e){null!=e&&(null!=$r(e,null)&&r.set(e,!0))})),B(n,(function(t){return t&&r.get(t[e])}))}var i=$r(t,null);return B(n,(function(t){return t&&null!=i&&t[e]===i}))}function Lf(e,t){return t.hasOwnProperty("subType")?B(e,(function(e){return e&&e.subType===t.subType})):e}function Rf(e){var t=ue();return e&&R(Jr(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}D(If,Mf);var Nf=If,jf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Bf=function(e){R(jf,(function(t){this[t]=z(e[t],e)}),this)},Ff={},zf=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];R(Ff,(function(r,i){var o=r.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){R(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Ff[e]=t},e.get=function(e){return Ff[e]},e}(),Vf=/^(min|max)?(.+)$/;function Hf(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return R(e,(function(e,t){var n=t.match(Vf);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[a],e,o)||(i=!1)}})),i}var Uf=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(R(Jr(e.series),(function(e){e&&e.data&&Z(e.data)&&oe(e.data)})),R(Jr(e.dataset),(function(e){e&&e.source&&Z(e.source)&&oe(e.source)}))),e=C(e);var r=this._optionBackup,i=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,u=e.options,l=e.media,c=!!e.media,f=!!(u||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((f||c)&&(e.options=e.media=null),i=e);c&&H(l)&&R(l,(function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))}));function d(e){R(t,(function(t){t(e,n)}))}return d(i),R(u,(function(e){return d(e)})),R(o,(function(e){return d(e.option)})),{baseOption:i,timelineOptions:u||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],C(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=C(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],u=[];if(!o.length&&!a)return u;for(var l=0,c=o.length;l<c;l++)Hf(o[l].query,r,i)&&s.push(l);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(u=N(s,(function(e){return C(-1===e?a.option:o[e].option)}))),this._currentMediaIndices=s,u},e}(),Gf=R,Jf=W,Xf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wf(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Xf.length;n<r;n++){var i=Xf[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?A(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?A(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function qf(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,E(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Zf(e){qf(e,"itemStyle"),qf(e,"lineStyle"),qf(e,"areaStyle"),qf(e,"label"),qf(e,"labelLine"),qf(e,"upperLabel"),qf(e,"edgeLabel")}function Kf(e,t){var n=Jf(e)&&e[t],r=Jf(n)&&n.textStyle;if(r){0;for(var i=0,o=Wr.length;i<o;i++){var a=Wr[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function Yf(e){e&&(Zf(e),Kf(e,"label"),e.emphasis&&Kf(e.emphasis,"label"))}function $f(e){return H(e)?e:e?[e]:[]}function Qf(e){return(H(e)?e[0]:e)||{}}function ed(e,t){Gf($f(e.series),(function(e){Jf(e)&&function(e){if(Jf(e)){Wf(e),Zf(e),Kf(e,"label"),Kf(e,"upperLabel"),Kf(e,"edgeLabel"),e.emphasis&&(Kf(e.emphasis,"label"),Kf(e.emphasis,"upperLabel"),Kf(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Wf(t),Yf(t));var n=e.markLine;n&&(Wf(n),Yf(n));var r=e.markArea;r&&Yf(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Z(o))for(var a=0;a<o.length;a++)Yf(o[a]);R(e.categories,(function(e){Zf(e)}))}if(i&&!Z(i))for(a=0;a<i.length;a++)Yf(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)Yf(s[a])}if((n=e.markLine)&&n.data){var u=n.data;for(a=0;a<u.length;a++)H(u[a])?(Yf(u[a][0]),Yf(u[a][1])):Yf(u[a])}"gauge"===e.type?(Kf(e,"axisLabel"),Kf(e,"title"),Kf(e,"detail")):"treemap"===e.type?(qf(e.breadcrumb,"itemStyle"),R(e.levels,(function(e){Zf(e)}))):"tree"===e.type&&Zf(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Gf(n,(function(t){Gf($f(e[t]),(function(e){e&&(Kf(e,"axisLabel"),Kf(e.axisPointer,"label"))}))})),Gf($f(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;Kf(t,"axisLabel"),Kf(t&&t.axisPointer,"label")})),Gf($f(e.calendar),(function(e){qf(e,"itemStyle"),Kf(e,"dayLabel"),Kf(e,"monthLabel"),Kf(e,"yearLabel")})),Gf($f(e.radar),(function(e){Kf(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),Gf($f(e.geo),(function(e){Jf(e)&&(Yf(e),Gf($f(e.regions),(function(e){Yf(e)})))})),Gf($f(e.timeline),(function(e){Yf(e),qf(e,"label"),qf(e,"itemStyle"),qf(e,"controlStyle",!0);var t=e.data;H(t)&&R(t,(function(e){W(e)&&(qf(e,"label"),qf(e,"itemStyle"))}))})),Gf($f(e.toolbox),(function(e){qf(e,"iconStyle"),Gf(e.feature,(function(e){qf(e,"iconStyle")}))})),Kf(Qf(e.axisPointer),"label"),Kf(Qf(e.tooltip).axisPointer,"label")}function td(e){e&&R(nd,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var nd=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],id=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function od(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<id.length;n++){var r=id[n][1],i=id[n][0];null!=t[r]&&(t[i]=t[r])}}function ad(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function sd(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function ud(e,t){ed(e,t),e.series=Jr(e.series),R(e.series,(function(e){if(W(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),ad(e.label),(i=e.data)&&!Z(i))for(var n=0;n<i.length;n++)ad(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=r&&function(e,t,n,r){for(var i,o=t.split(","),a=e,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var i;if(od(e),od(e.backgroundStyle),od(e.emphasis),(i=e.data)&&!Z(i))for(n=0;n<i.length;n++)"object"===typeof i[n]&&(od(i[n]),od(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),sd(e),function e(t,n){if(t)for(var r=0;r<t.length;r++)n(t[r]),t[r]&&e(t[r].children,n)}(e.data,sd)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&E(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),td(e)}})),e.dataRange&&(e.visualMap=e.dataRange),R(rd,(function(t){var n=e[t];n&&(H(n)||(n=[n]),R(n,(function(e){td(e)})))}))}function ld(e){R(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,u=a.map(o,(function(o,u,l){var c,f,d=a.get(t.stackedDimension,l);if(isNaN(d))return i;s?f=a.getRawIndex(l):c=a.get(t.stackedByDimension,l);for(var h=NaN,p=n-1;p>=0;p--){var g=e[p];if(s||(f=g.data.rawIndexOf(g.stackedByDimension,c)),f>=0){var y=g.data.getByRawIndex(g.stackResultDimension,f);if(d>=0&&y>0||d<=0&&y<0){d+=y,h=y;break}}}return r[0]=d,r[1]=h,r}));a.hostModel.setData(u),t.data=u}))}var cd,fd,dd,hd,pd,gd=function(e){this.data=e.data||("keyedColumns"===e.sourceFormat?{}:[]),this.sourceFormat=e.sourceFormat||"unknown",this.seriesLayoutBy=e.seriesLayoutBy||"column",this.startIndex=e.startIndex||0,this.dimensionsDefine=e.dimensionsDefine,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.encodeDefine=e.encodeDefine,this.metaRawOption=e.metaRawOption};function yd(e){return e instanceof gd}function vd(e,t,n,r){n=n||wd(e);var i=t.seriesLayoutBy,o=function(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:xd(i),startIndex:a,dimensionsDetectedCount:o};if("arrayRows"===t){var s=e;"auto"===r||null==r?_d((function(e){null!=e&&"-"!==e&&(G(e)?null==a&&(a=1):a=0)}),n,s,10):a=X(r)?r:r?1:0,i||1!==a||(i=[],_d((function(e,t){i[t]=null!=e?e+"":""}),n,s,1/0)),o=i?i.length:"row"===n?s.length:s[0]?s[0].length:null}else if("objectRows"===t)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t){var r=[];return R(t,(function(e,t){r.push(t)})),r}}(e));else if("keyedColumns"===t)i||(i=[],R(e,(function(e,t){i.push(t)})));else if("original"===t){var u=qr(e[0]);o=H(u)&&u.length||1}return{startIndex:a,dimensionsDefine:xd(i),dimensionsDetectedCount:o}}(e,n,i,t.sourceHeader,t.dimensions);return new gd({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,encodeDefine:bd(r),metaRawOption:C(t)})}function md(e){return new gd({data:e,sourceFormat:Z(e)?"typedArray":"original"})}function bd(e){return e?ue(e):null}function wd(e){var t="unknown";if(Z(e))t="typedArray";else if(H(e)){0===e.length&&(t="arrayRows");for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(H(i)){t="arrayRows";break}if(W(i)){t="objectRows";break}}}}else if(W(e))for(var o in e)if(fe(e,o)&&L(e[o])){t="keyedColumns";break}return t}function xd(e){if(e){var t=ue();return N(e,(function(e,n){var r={name:(e=W(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r}))}}function _d(e,t,n,r){if("row"===t)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}var kd=function(){function e(e,t){var n=yd(e)?e:md(e);this._source=n;var r=this._data=n.data;"typedArray"===n.sourceFormat&&(this._offset=0,this._dimSize=t,this._data=r),pd(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;pd=function(e,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,u=o.startIndex,l=o.dimensionsDefine;if(M(e,hd[Dd(a,s)]),"typedArray"===a)e.getItem=t,e.count=r,e.fillStorage=n;else{var c=Cd(a,s);e.getItem=z(c,null,i,u,l);var f=Md(a,s);e.count=z(f,null,i,u,l)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],u=null==s[0]?1/0:s[0],l=null==s[1]?-1/0:s[1],c=t-e,f=n[a],d=0;d<c;d++){var h=i[d*o+a];f[e+d]=h,h<u&&(u=h),h>l&&(l=h)}s[0]=u,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={}).arrayRows_column={pure:!0,appendData:i},e.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e.objectRows={pure:!0,appendData:i},e.keyedColumns={pure:!0,appendData:function(e){var t=this._data;R(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e.original={appendData:i},e.typedArray={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},hd=e}(),e}(),Sd=function(e,t,n,r){return e[r]},Td=((cd={}).arrayRows_column=function(e,t,n,r){return e[r+t]},cd.arrayRows_row=function(e,t,n,r){r+=t;for(var i=[],o=e,a=0;a<o.length;a++){var s=o[a];i.push(s?s[r]:null)}return i},cd.objectRows=Sd,cd.keyedColumns=function(e,t,n,r){for(var i=[],o=0;o<n.length;o++){0;var a=e[n[o].name];i.push(a?a[r]:null)}return i},cd.original=Sd,cd);function Cd(e,t){return Td[Dd(e,t)]}var Ad=function(e,t,n){return e.length},Od=((fd={}).arrayRows_column=function(e,t,n){return Math.max(0,e.length-t)},fd.arrayRows_row=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},fd.objectRows=Ad,fd.keyedColumns=function(e,t,n){var r=e[n[0].name];return r?r.length:0},fd.original=Ad,fd);function Md(e,t){return Od[Dd(e,t)]}var Ed=function(e,t,n){return null!=t?e[t]:e},Pd=((dd={}).arrayRows=Ed,dd.objectRows=function(e,t,n){return null!=t?e[n]:e},dd.keyedColumns=Ed,dd.original=function(e,t,n){var r=qr(e);return null!=t&&r instanceof Array?r[t]:r},dd.typedArray=Ed,dd);function Id(e){return Pd[e]}function Dd(e,t){return"arrayRows"===e?e+"_"+t:e}function Ld(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i,o,a=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(n);return s&&(i=s.name,o=s.index),Id(a)(r,o,i)}}}var Rd=/\{@(.+?)\}/g,Nd=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),u=s&&s[n.getItemVisual(e,"drawType")||"fill"],l=s&&s.stroke,c=this.mainType,f="series"===c,d=n.userOutput;return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:a,dataType:t,value:r,color:u,borderColor:l,dimensionNames:d?d.dimensionNames:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);(o&&(s.value=o.interpolatedValue),null!=r&&H(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return"function"===typeof i?(s.status=t,s.dimensionIndex=r,i(s)):"string"===typeof i?Xc(i,s).replace(Rd,(function(t,n){var r=n.length,i="["===n.charAt(0)&&"]"===n.charAt(r-1)?+n.slice(1,r-1):n,s=Ld(a,e,i);if(o&&H(o.interpolatedValue)){var u=a.getDimensionInfo(i);u&&(s=o.interpolatedValue[u.index])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return Ld(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function jd(e){var t,n;return W(e)?e.type&&(n=e):t=e,{markupText:t,markupFragment:n}}function Bd(e){return new Fd(e)}var Fd=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,u=c(e&&e.modBy),l=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===u&&s===l||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=u,this._modDataCount=l;var f=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,h=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(o||d<h)){var p=this._progress;if(H(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,h,u,l);else this._doProgress(p,d,h,u,l)}this._dueIndex=h;var y=null!=this._settedOutputEnd?this._settedOutputEnd:h;0,this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){zd.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:zd.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),H(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),zd=function(){var e,t,n,r,i,o={reset:function(u,l,c,f){t=u,e=l,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}();"undefined"!==typeof console&&console.warn&&console.log;function Vd(e){throw new Error(e)}function Hd(e,t){var n=t&&t.type;if("ordinal"===n){var r=t&&t.ordinalMeta;return r?r.parseAndCollect(e):e}return"time"===n&&"number"!==typeof e&&null!=e&&"-"!==e&&(e=+Nr(e)),null==e||""===e?NaN:+e}var Ud=ue({number:function(e){return parseFloat(e)},time:function(e){return+Nr(e)},trim:function(e){return"string"===typeof e?ie(e):e}});function Gd(e){return Ud.get(e)}var Jd={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Xd=function(){function e(e,t){if("number"!==typeof t){0,Vd("")}this._opFn=Jd[e],this._rvalFloat=Vr(t)}return e.prototype.evaluate=function(e){return"number"===typeof e?this._opFn(e,this._rvalFloat):this._opFn(Vr(e),this._rvalFloat)},e}(),Wd=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=typeof e,r=typeof t,i="number"===n?e:Vr(e),o="number"===r?t:Vr(t),a=isNaN(i),s=isNaN(o);if(a&&(i=this._incomparable),s&&(o=this._incomparable),a&&s){var u="string"===n,l="string"===r;u&&(i=l?e:0),l&&(o=u?t:0)}return i<o?this._resultLT:i>o?-this._resultLT:0},e}(),qd=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Vr(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Vr(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Zd(e,t){return"eq"===e||"ne"===e?new qd("eq"===e,t):fe(Jd,e)?new Xd(e,t):null}var Kd=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Hd(e,t)},e}();function Yd(e){if(!rh(e.sourceFormat)){0,Vd("")}return e.data}function $d(e){var t=e.sourceFormat,n=e.data;if(!rh(t)){0,Vd("")}if("arrayRows"===t){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if("objectRows"===t){for(r=[],i=0,o=n.length;i<o;i++)r.push(M({},n[i]));return r}}function Qd(e,t,n){if(null!=n)return"number"===typeof n||!isNaN(n)&&!fe(t,n)?e[n]:fe(t,n)?t[n]:void 0}function eh(e){return C(e)}var th=ue();function nh(e,t,n,r){t.length||Vd(""),W(e)||Vd("");var i=e.type,o=th.get(i);o||Vd("");var a=N(t,(function(e){return function(e,t){var n=new Kd,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex;"column"!==e.seriesLayoutBy&&Vd("");var a=[],s={},u=e.dimensionsDefine;if(u)R(u,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(a.push(r),null!=n){fe(s,n)&&Vd(""),s[n]=r}}));else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var c=Cd(i,"column");t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,o,a,e)},n.getRawData=z(Yd,null,e)),n.cloneRawData=z($d,null,e);var f=Md(i,"column");n.count=z(f,null,r,o,a);var d=Id(i);n.retrieveValue=function(e,t){var n=c(r,o,a,e);return h(n,t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?d(e,t,n.name):void 0}};return n.getDimensionInfo=z(Qd,null,a,s),n.cloneAllDimensionInfo=z(eh,null,a),n}(e,o)}));return N(Jr(o.transform({upstream:a[0],upstreamList:a,config:C(e.config)})),(function(e,n){var r;W(e)||Vd(""),e.data||Vd(""),rh(wd(e.data))||Vd("");var i=t[0];if(i&&0===n&&!e.dimensions){var o=i.startIndex;o&&(e.data=i.data.slice(0,o).concat(e.data)),r={seriesLayoutBy:"column",sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:"column",sourceHeader:0,dimensions:e.dimensions};return vd(e.data,r,null,null)}))}function rh(e){return"arrayRows"===e||"objectRows"===e}var ih=function(){function e(e){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[])},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(ah(n)){var o=n,a=void 0,s=void 0,u=void 0;if(i){var l=r[0];l.prepareSource(),a=(u=l.getSource()).data,s=u.sourceFormat,t=[l._getVersionSign()]}else s=Z(a=o.get("data",!0))?"typedArray":"original",t=[];var c=this._getSourceMetaRawOption(),f=u?u.metaRawOption:null;e=[vd(a,{seriesLayoutBy:Q(c.seriesLayoutBy,f?f.seriesLayoutBy:null),sourceHeader:Q(c.sourceHeader,f?f.sourceHeader:null),dimensions:Q(c.dimensions,f?f.dimensions:null)},s,o.get("encode",!0))]}else{var d=n;if(i){var h=this._applyTransform(r);e=h.sourceList,t=h.upstreamSignList}else{e=[vd(d.get("source",!0),this._getSourceMetaRawOption(),null,null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){1!==e.length&&sh("")}var o,a=[],s=[];return R(e,(function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||sh(""),a.push(t),s.push(e._getVersionSign())})),r?t=function(e,t,n){var r=Jr(e),i=r.length;i||Vd("");for(var o=0,a=i;o<a;o++){t=nh(r[o],t,n,1===i?null:o),o!==a-1&&(t.length=Math.max(t.length,1))}return t}(r,a,{datasetIndex:n.componentIndex}):null!=i&&(t=[(o=a[0],new gd({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:C(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,encodeDefine:bd(o.encodeDefine)}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(!this._sourceList.length)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){return this._sourceList[e||0]},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(ah(e)){var t=wf(e);return t?[t.getSourceManager()]:[]}return N(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?ui(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ai).models:[]}(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(ah(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function oh(e){e.option.transform&&oe(e.option.transform)}function ah(e){return"series"===e.mainType}function sh(e){throw new Error(e)}function uh(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Hc(r+"")+"px;color:"+Hc(n)+";font-weight:"+Hc(i+""),valueStyle:"font-size:"+Hc(a+"")+"px;color:"+Hc(o)+";font-weight:"+Hc(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var lh=[0,10,20,30],ch=["","\n","\n\n","\n\n\n"];function fh(e,t){return t.type=e,t}function dh(e){return fe(hh,e.type)&&hh[e.type]}var hh={section:{planLayout:function(e){var t=e.blocks.length,n=t>1||t>0&&!e.noHeader,r=0;R(e.blocks,(function(e){dh(e).planLayout(e);var t=e.__gapLevelBetweenSubBlocks;t>=r&&(r=t+(!n||t&&("section"!==e.type||e.noHeader)?0:1))})),e.__gapLevelBetweenSubBlocks=r},build:function(e,t,n,r){var i=t.noHeader,o=gh(t),a=function(e,t,n,r){var i=[],o=t.blocks||[];re(!o||H(o)),o=o||[];var a=e.orderMode;if(t.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(fe(s,a)){var u=new Wd(s[a],null);o.sort((function(e,t){return u.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===a&&o.reverse()}var l=gh(t);if(R(o,(function(t,n){var o=dh(t).build(e,t,n>0?l.html:0,r);null!=o&&i.push(o)})),!i.length)return;return"richText"===e.renderMode?i.join(l.richText):yh(i.join(""),n)}(e,t,i?n:o.html,r);if(i)return a;var s=Uc(t.header,"ordinal",e.useUTC),u=uh(r,e.renderMode).nameStyle;return"richText"===e.renderMode?vh(e,s,u)+o.richText+a:yh('<div style="'+u+';line-height:1;">'+Hc(s)+"</div>"+a,n)}},nameValue:{planLayout:function(e){e.__gapLevelBetweenSubBlocks=0},build:function(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,u=t.name,l=t.value,c=e.useUTC;if(!o||!a){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=o?"":Uc(u,"ordinal",c),h=t.valueType,p=a?[]:H(l)?N(l,(function(e,t){return Uc(e,H(h)?h[t]:h,c)})):[Uc(l,H(h)?h[0]:h,c)],g=!s||!o,y=!s&&o,v=uh(r,i),m=v.nameStyle,b=v.valueStyle;return"richText"===i?(s?"":f)+(o?"":vh(e,d,m))+(a?"":function(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(t.join(" "),o)}(e,p,g,y,b)):yh((s?"":f)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+Hc(e)+"</span>"}(d,!s,m))+(a?"":function(e,t,n,r){var i=n?"10px":"20px";return'<span style="'+(t?"float:right;margin-left:"+i:"")+";"+r+'">'+N(e,(function(e){return Hc(e)})).join(" ")+"</span>"}(p,g,y,b)),n)}}}};function ph(e,t,n,r,i,o){if(e){var a=dh(e);a.planLayout(e);var s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t};return a.build(s,e,0,o)}}function gh(e){var t=e.__gapLevelBetweenSubBlocks;return{html:lh[t],richText:ch[t]}}function yh(e,t){return'<div style="'+("margin: "+t+"px 0 0")+';line-height:1;">'+e+'<div style="clear:both"></div></div>'}function vh(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function mh(e,t){return Wc(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function bh(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var wh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ur()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=function(e,t){var n=G(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Hc(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Hc(r)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:n,markerId:r});return G(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?R(t,(function(e){return M(n,e)})):M(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function xh(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,u=o.getData(),l=u.mapDimensionsAll("defaultedTooltip"),c=l.length,f=o.getRawValue(a),d=H(f),h=mh(o,a);if(c>1||d&&!c){var p=function(e,t,n,r,i){var o=t.getData(),a=j(e,(function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],u=[],l=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?l.push(fh("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),u.push(n.type)))}return r.length?R(r,(function(e){c(Ld(o,n,e),e)})):R(e,c),{inlineValues:s,inlineValueTypes:u,blocks:l}}(f,o,a,l,h);t=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var g=u.getDimensionInfo(l[0]);i=t=Ld(u,a,l[0]),n=g.type}else i=t=d?f[0]:f;var y=Qr(o),v=y&&o.name||"",m=u.getName(a),b=s?v:m;return fh("section",{header:v,noHeader:s||!y,sortParam:i,blocks:[fh("nameValue",{markerType:"item",markerColor:h,name:b,noName:!ie(b),value:t,valueType:n})].concat(r||[])})}var _h=ni();function kh(e,t){return e.getName(t)||e.getId(t)}var Sh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return a(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Bd({count:Ch,reset:Ah}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(_h(this).sourceManager=new ih(this)).prepareSource();var r=this.getInitialData(e,n);Mh(r,this),this.dataTask.context.data=r,_h(this).dataBeforeProcessed=r,Th(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=nf(this),r=n?of(e):{},i=this.subType;lf.hasClass(i)&&(i+="Series"),A(e,t.getTheme().get(this.subType)),A(e,this.getDefaultOption()),Xr(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&rf(e,r,n)},t.prototype.mergeOption=function(e,t){e=A(this.option,e,!0),this.fillDataTextStyle(e.data);var n=nf(this);n&&rf(this.option,e,n);var r=_h(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Mh(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,_h(this).dataBeforeProcessed=i,Th(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Z(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Xr(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Ph(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return _h(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Ph(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}_h(this).data=e},t.prototype.getSource=function(){return _h(this).sourceManager.getSource()},t.prototype.getRawData=function(){return _h(this).dataBeforeProcessed},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return xh({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){if(f.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Mf.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n)for(var r=this.getData(t),i=0;i<e.length;i++){var o=kh(r,e[i]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){for(var e=this._selectedDataIndicesMap,t=F(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;return n&&n[kh(this.getData(t),e)]||!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option.selectedMode,o=t.length;if(i&&o)if("multiple"===i)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;s<o;s++){var u=t[s];a[c=kh(e,u)]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(u)}else if("single"===i||!0===i){var l=t[o-1],c=kh(e,l);this.option.selectedMap=((n={})[c]=!0,n),this._selectedDataIndicesMap=((r={})[c]=e.getRawIndex(l),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return lf.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.useColorPaletteOnData=!1,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(lf);function Th(e){var t=e.name;Qr(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return R(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}(e)||t)}function Ch(e){return e.model.getRawData().count()}function Ah(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Oh}function Oh(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Mh(e,t){R(u(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,V(Eh,t))}))}function Eh(e,t){var n=Ph(e);return n&&n.setOutputEnd((t||this).count()),t}function Ph(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}D(Sh,Nd),D(Sh,Mf),yi(Sh,lf);var Ih=Sh,Dh=function(){function e(){this.group=new xr,this.uid=uc("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.blurSeries=function(e,t){},e}();pi(Dh),wi(Dh);var Lh=Dh;function Rh(){var e=ni();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Nh=ni(),jh=Rh(),Bh=function(){function e(){this.group=new xr,this.uid=uc("viewChart"),this.renderTask=Bd({plan:Vh,reset:Hh}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){zh(e.getData(),r,"emphasis")},e.prototype.downplay=function(e,t,n,r){zh(e.getData(),r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.markUpdateMethod=function(e,t){Nh(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function Fh(e,t,n){e&&("emphasis"===t?ps:gs)(e,n)}function zh(e,t,n){var r=ti(e,t),i=t&&null!=t.highlightKey?function(e){var t=Wa[e];return null==t&&Xa<=32&&(t=Wa[e]=Xa++),t}(t.highlightKey):null;null!=r?R(Jr(r),(function(t){Fh(e.getItemGraphicEl(t),n,i)})):e.eachItemGraphicEl((function(e){Fh(e,n,i)}))}function Vh(e){return jh(e.model)}function Hh(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&Nh(i).updateMethod,u=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==u&&a[u](t,n,r,i),Uh[u]}pi(Bh),wi(Bh);var Uh={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Gh=Bh,Jh="\0__throttleOriginMethod",Xh="\0__throttleRate";function Wh(e,t,n){var r,i,o,a,s,u=0,l=0,c=null;function f(){l=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=(new Date).getTime(),o=this,a=e;var h=s||t,p=s||n;s=null,i=r-(p?u:l)-h,clearTimeout(c),p?c=setTimeout(f,h):i>=0?f():c=setTimeout(f,-i),u=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function qh(e,t,n,r){var i=e[t];if(i){var o=i[Jh]||i,a=i["\0__throttleType"];if(i[Xh]!==n||a!==r){if(null==n||!r)return e[t]=o;(i=e[t]=Wh(o,n,"debounce"===r))[Jh]=o,i["\0__throttleType"]=r,i[Xh]=n}return i}}var Zh=ni(),Kh={itemStyle:xi(nc,!0),lineStyle:xi(Ql,!0)},Yh={lineStyle:"stroke",itemStyle:"fill"};function $h(e,t){var n=e.visualStyleMapper||Kh[t];return n||Kh.itemStyle}function Qh(e,t){var n=e.visualDrawType||Yh[t];return n||"fill"}var ep={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=$h(e,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Qh(e,r),u=o[s],l=U(u)?u:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||l||c){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=f,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||"function"===typeof o.fill?f:o.fill,o.stroke="auto"===o.stroke||"function"===typeof o.stroke?f:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&l)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=M({},o);i[s]=l(r),t.setItemVisual(n,"style",i)}}}},tp=new ac,np={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=$h(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){tp.option=n[r];var a=i(tp);M(e.ensureUniqueItemVisual(t,"style"),a),tp.option.decal&&(e.setItemVisual(t,"decal",tp.option.decal),tp.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},rp={performRawSeries:!0,overallReset:function(e){var t=ue();e.eachSeries((function(e){if(e.useColorPaletteOnData){var n=t.get(e.type);n||(n={},t.set(e.type,n)),Zh(e).scope=n}})),e.eachSeries((function(t){if(t.useColorPaletteOnData&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=Zh(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=Qh(t,a);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e];if(i.getItemVisual(a,"colorFromPalette")){var u=i.ensureUniqueItemVisual(a,"style"),l=n.getName(e)||e+"",c=n.count();u[s]=t.getColorFromPalette(l,o,c)}}))}}))}},ip=Math.PI;var op=function(){function e(e,t,n,r){this._stageTaskMap=ue(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=ue();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;R(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{});re(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}R(e,(function(e,s){if(!r.visualType||r.visualType===e.visualType){var u=o._stageTaskMap.get(e.uid),l=u.seriesTaskMap,c=u.overallTask;if(c){var f,d=c.agentStubMap;d.each((function(e){a(r,e)&&(e.dirty(),f=!0)})),f&&c.dirty(),o.updatePayload(c,n);var h=o.getPerformArgs(c,r.block);d.each((function(e){e.perform(h)})),c.perform(h)&&(i=!0)}else l&&l.each((function(s,u){a(r,s)&&s.dirty();var l=o.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(l)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=ue(),s=e.seriesType,u=e.getTargetSeries;function l(t){var s=t.uid,u=a.set(s,o&&o.get(s)||Bd({plan:cp,reset:fp,count:pp}));u.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,u)}e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):u&&u(n,r).each(l)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||Bd({reset:ap});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=ue(),u=e.seriesType,l=e.getTargetSeries,c=!0,f=!1;function d(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(f=!0,Bd({reset:sp,onDirty:lp})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,i._pipe(e,n)}re(!e.createOnAllSeries,""),u?n.eachRawSeriesByType(u,d):l?l(n,r).each(d):(c=!1,R(n.getSeries(),d)),f&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return U(e)&&(e={overallReset:e,seriesType:gp(e)}),e.uid=uc("stageHandler"),t&&(e.visualType=t),e},e}();function ap(e){e.overallReset(e.ecModel,e.api,e.payload)}function sp(e){return e.overallProgress&&up}function up(){this.agent.dirty(),this.getDownstream().dirty()}function lp(){this.agent&&this.agent.dirty()}function cp(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function fp(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Jr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?N(t,(function(e,t){return hp(t)})):dp}var dp=hp(0);function hp(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function pp(e){return e.data.count()}function gp(e){yp=null;try{e(vp,mp)}catch(t){}return yp}var yp,vp={},mp={};function bp(e,t){for(var n in t.prototype)e[n]=de}bp(vp,Nf),bp(mp,Bf),vp.eachSeriesByType=vp.eachRawSeriesByType=function(e){yp=e},vp.eachComponent=function(e){"series"===e.mainType&&e.subType&&(yp=e.subType)};var wp=op,xp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],_p={color:xp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],xp]},kp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Sp={darkMode:!0,color:kp,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:kp},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Sp.categoryAxis.splitLine.show=!1;var Tp=Sp,Cp=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(G(e)){var i=hi(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};R(e,(function(e,i){for(var s=!1,u=0;u<o.length;u++){var l=o[u],c=i.lastIndexOf(l);if(c>0&&c===i.length-l.length){var f=i.slice(0,c);"data"!==f&&(t.mainType=f,t[l.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,u=t.dataQuery;return l(s,o,"mainType")&&l(s,o,"subType")&&l(s,o,"index","componentIndex")&&l(s,o,"name")&&l(s,o,"id")&&l(u,i,"name")&&l(u,i,"dataIndex")&&l(u,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Ap={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendSymbol&&n.setVisual("legendSymbol",e.legendSymbol),e.hasSymbolVisual){var r=e.get("symbol"),i=e.get("symbolSize"),o=e.get("symbolKeepAspect"),a=e.get("symbolRotate"),s=e.get("symbolOffset"),u=U(r),l=U(i),c=U(a),f=U(s),d=u||l||c||f,h=!u&&r?r:e.defaultSymbol,p=l?null:i,g=c?null:a,y=f?null:s;if(n.setVisual({legendSymbol:e.legendSymbol||h,symbol:h,symbolSize:p,symbolKeepAspect:o,symbolRotate:g,symbolOffset:y}),!t.isSeriesFiltered(e))return{dataEach:d?function(t,n){var o=e.getRawValue(n),d=e.getDataParams(n);u&&t.setItemVisual(n,"symbol",r(o,d)),l&&t.setItemVisual(n,"symbolSize",i(o,d)),c&&t.setItemVisual(n,"symbolRotate",a(o,d)),f&&t.setItemVisual(n,"symbolOffset",s(o,d))}:null}}}};function Op(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function Mp(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function Ep(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}var Pp=2*Math.PI,Ip=Yo.CMD,Dp=["top","right","bottom","left"];function Lp(e,t,n,r,i){var o=n.width,a=n.height;switch(e){case"top":r.set(n.x+o/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+t,n.y+a/2),i.set(1,0)}}function Rp(e,t,n,r,i,o,a,s,u){a-=e,s-=t;var l=Math.sqrt(a*a+s*s),c=(a/=l)*n+e,f=(s/=l)*n+t;if(Math.abs(r-i)%Pp<1e-4)return u[0]=c,u[1]=f,l-n;if(o){var d=r;r=na(i),i=na(d)}else r=na(r),i=na(i);r>i&&(i+=Pp);var h=Math.atan2(s,a);if(h<0&&(h+=Pp),h>=r&&h<=i||h+Pp>=r&&h+Pp<=i)return u[0]=c,u[1]=f,l-n;var p=n*Math.cos(r)+e,g=n*Math.sin(r)+t,y=n*Math.cos(i)+e,v=n*Math.sin(i)+t,m=(p-a)*(p-a)+(g-s)*(g-s),b=(y-a)*(y-a)+(v-s)*(v-s);return m<b?(u[0]=p,u[1]=g,Math.sqrt(m)):(u[0]=y,u[1]=v,Math.sqrt(b))}function Np(e,t,n,r,i,o,a,s){var u=i-e,l=o-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f),h=(u*(c/=d)+l*(f/=d))/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var p=a[0]=e+h*c,g=a[1]=t+h*f;return Math.sqrt((p-i)*(p-i)+(g-o)*(g-o))}function jp(e,t,n,r,i,o,a){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,u=t+r,l=a[0]=Math.min(Math.max(i,e),s),c=a[1]=Math.min(Math.max(o,t),u);return Math.sqrt((l-i)*(l-i)+(c-o)*(c-o))}var Bp=[];function Fp(e,t,n){var r=jp(t.x,t.y,t.width,t.height,e.x,e.y,Bp);return n.set(Bp[0],Bp[1]),r}function zp(e,t,n){for(var r,i,o=0,a=0,s=0,u=0,l=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var p=c[h++];1===h&&(s=o=c[h],u=a=c[h+1]);var g=l;switch(p){case Ip.M:o=s=c[h++],a=u=c[h++];break;case Ip.L:g=Np(o,a,c[h],c[h+1],f,d,Bp,!0),o=c[h++],a=c[h++];break;case Ip.C:g=uo(o,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Bp),o=c[h++],a=c[h++];break;case Ip.Q:g=go(o,a,c[h++],c[h++],c[h],c[h+1],f,d,Bp),o=c[h++],a=c[h++];break;case Ip.A:var y=c[h++],v=c[h++],m=c[h++],b=c[h++],w=c[h++],x=c[h++];h+=1;var _=!!(1-c[h++]);r=Math.cos(w)*m+y,i=Math.sin(w)*b+v,h<=1&&(s=r,u=i),g=Rp(y,v,b,w,w+x,_,(f-y)*b/m+y,d,Bp),o=Math.cos(w+x)*m+y,a=Math.sin(w+x)*b+v;break;case Ip.R:g=jp(s=o=c[h++],u=a=c[h++],c[h++],c[h++],f,d,Bp);break;case Ip.Z:g=Np(o,a,s,u,f,d,Bp,!0),o=s,a=u}g<l&&(l=g,n.set(Bp[0],Bp[1]))}return l}var Vp=new hn,Hp=new hn,Up=new hn,Gp=new hn,Jp=new hn;function Xp(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||Dp,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var u=1/0,l=i.anchor,c=e.getComputedTransform(),f=c&>([],c),d=t.get("length2")||0;l&&Up.copy(l);for(var h=0;h<a.length;h++){Lp(a[h],0,s,Vp,Gp),hn.scaleAndAdd(Hp,Vp,Gp,d),Hp.transform(f);var p=e.getBoundingRect(),g=l?l.distance(Hp):e instanceof ma?zp(Hp,e.path,Up):Fp(Hp,p,Up);g<u&&(u=g,Hp.transform(c),Up.transform(c),Up.toArray(o[0]),Hp.toArray(o[1]),Vp.toArray(o[2]))}Zp(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var Wp=[],qp=new hn;function Zp(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Vp.fromArray(e[0]),Hp.fromArray(e[1]),Up.fromArray(e[2]),hn.sub(Gp,Vp,Hp),hn.sub(Jp,Up,Hp);var n=Gp.len(),r=Jp.len();if(!(n<.001||r<.001)){Gp.scale(1/n),Jp.scale(1/r);var i=Gp.dot(Jp);if(Math.cos(t)<i){var o=Np(Hp.x,Hp.y,Up.x,Up.y,Vp.x,Vp.y,Wp,!1);qp.fromArray(Wp),qp.scaleAndAdd(Jp,o/Math.tan(Math.PI-t));var a=Up.x!==Hp.x?(qp.x-Hp.x)/(Up.x-Hp.x):(qp.y-Hp.y)/(Up.y-Hp.y);if(isNaN(a))return;a<0?hn.copy(qp,Hp):a>1&&hn.copy(qp,Up),qp.toArray(e[1])}}}}function Kp(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Vp.fromArray(e[0]),Hp.fromArray(e[1]),Up.fromArray(e[2]),hn.sub(Gp,Hp,Vp),hn.sub(Jp,Up,Hp);var r=Gp.len(),i=Jp.len();if(!(r<.001||i<.001))if(Gp.scale(1/r),Jp.scale(1/i),Gp.dot(t)<Math.cos(n)){var o=Np(Hp.x,Hp.y,Up.x,Up.y,Vp.x,Vp.y,Wp,!1);qp.fromArray(Wp);var a=Math.PI/2,s=a+Math.acos(Jp.dot(t))-n;if(s>=a)hn.copy(qp,Up);else{qp.scaleAndAdd(Jp,o/Math.tan(Math.PI/2-s));var u=Up.x!==Hp.x?(qp.x-Hp.x)/(Up.x-Hp.x):(qp.y-Hp.y)/(Up.y-Hp.y);if(isNaN(u))return;u<0?hn.copy(qp,Hp):u>1&&hn.copy(qp,Up)}qp.toArray(e[1])}}}function Yp(e,t,n,r){var i="normal"===n,o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function $p(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Ce(r[0],r[1]),o=Ce(r[1],r[2]);if(!i||!o)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Oe([],r[1],r[0],a/i),u=Oe([],r[1],r[2],a/o),l=Oe([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function Qp(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var o=t.normal,a=o.get("show"),s=i.ignore,u=0;u<Ka.length;u++){var l=Ka[u],c=t[l],f="normal"===l;if(c){var d=c.get("show");if((f?s:Q(i.states[l]&&i.states[l].ignore,s))||!Q(d,a)){var h=f?r:r&&r.states.normal;h&&(h.ignore=!0);continue}r||(r=new Eu,e.setTextGuideLine(r),f||!s&&a||Yp(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Yp(r,!1,l,c)}}if(r){E(r.style,n),r.style.fill=null;var p=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=p||!1,r.buildPath=$p}}else r&&e.removeTextGuideLine()}function eg(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<Za.length;r++){var i=Za[r];n[i]=e.getModel([i,t])}return n}function tg(e,t,n,r,i,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,u=0,l=!1,c=[],f=0,d=0;d<a;d++){var h=e[d],p=h.rect;(s=p[t]-u)<0&&(p[t]-=s,h.label[t]-=s,l=!0);var g=Math.max(-s,0);c.push(g),f+=g,u=p[t]+p[n]}f>0&&o&&_(-f/a,0,a);var y,v,m=e[0],b=e[a-1];return w(),y<0&&k(-y,.8),v<0&&k(v,.8),w(),x(y,v,1),x(v,y,-1),w(),y<0&&S(-y),v<0&&S(v),l}function w(){y=m.rect[t]-r,v=i-b.rect[t]-b.rect[n]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){_(r*n,0,a);var i=r+e;i<0&&k(-i*n,1)}else k(-e*n,1)}}function _(n,r,i){0!==n&&(l=!0);for(var o=r;o<i;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function k(r,i){for(var o=[],s=0,u=1;u<a;u++){var l=e[u-1].rect,c=Math.max(e[u].rect[t]-l[t]-l[n],0);o.push(c),s+=c}if(s){var f=Math.min(Math.abs(r)/s,i);if(r>0)for(u=0;u<a-1;u++){_(o[u]*f,0,u+1)}else for(u=a-1;u>0;u--){_(-(o[u-1]*f),u,a)}}}function S(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?_(n,0,r+1):_(-n,a-r-1,a),(e-=n)<=0)return}}function ng(e,t,n,r){return tg(e,"y","height",t,n,r)}function rg(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function ig(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:rg(r&&r.shape.points)}}var og=["align","verticalAlign","width","height","fontSize"],ag=new _t,sg=ni(),ug=ni();function lg(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var cg=["x","y","rotation"],fg=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var o=r.style,a=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),u=r.getBoundingRect().plain();_n.applyTransform(u,u,s),s?ag.setLocalTransform(s):(ag.x=ag.y=ag.rotation=ag.originX=ag.originY=0,ag.scaleX=ag.scaleY=1);var l,c=r.__hostTarget;if(c){l=c.getBoundingRect().plain();var f=c.getComputedTransform();_n.applyTransform(l,l,f)}var d=l&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:l,priority:l?l.width*l.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:ag.x,y:ag.y,scaleX:ag.scaleX,scaleY:ag.scaleY,rotation:ag.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:a.position,attachedRot:a.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(U(r)||F(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var i=e.getTextContent(),o=Ja(e);i&&!i.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,i,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Xp(e,t)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,u=o.defaultAttr,l=void 0;l=(l="function"===typeof o.layoutOption?o.layoutOption(ig(o,s)):o.layoutOption)||{},o.computedLayoutOption=l;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:u.attachedPos,rotation:null!=l.rotate?l.rotate*c:u.attachedRot,offset:[l.dx||0,l.dy||0]});var f=!1;if(null!=l.x?(a.x=Or(l.x,t),a.setStyle("x",0),f=!0):(a.x=u.x,a.setStyle("x",u.style.x)),null!=l.y?(a.y=Or(l.y,n),a.setStyle("y",0),f=!0):(a.y=u.y,a.setStyle("y",u.style.y)),l.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:l.labelLinePoints}),f=!1)}sg(a).needsUpdateLabelLine=f,a.rotation=null!=l.rotate?l.rotate*c:u.rotation,a.scaleX=u.scaleX,a.scaleY=u.scaleY;for(var h=0;h<og.length;h++){var p=og[h];a.setStyle(p,null!=l[p]?l[p]:u.style[p])}if(l.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;if(null!=o.dataIndex)g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",r(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=u.cursor}},e.prototype.layout=function(e){var t,n=e.getWidth(),r=e.getHeight(),i=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,u=i.style.margin||0,l=a.clone();l.applyTransform(o),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var c=s?new Yu(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:l,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}(this._labelList),o=B(i,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),a=B(i,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));tg(o,"x","width",0,n,t),ng(a,0,r),function(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new _n(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,u=o.transform,l=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=o.obb,d=!1,h=0;h<t.length;h++){var p=t[h];if(n.intersect(p.rect)){if(a&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new Yu(p.localRect,p.transform)),f||(f=new Yu(s,u)),f.intersect(p.obb)){d=!0;break}}}d?(r(l),c&&r(c)):(l.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}(B(i,(function(e){return e.layoutOption.hideOverlap})))},e.prototype.processLabelsOverall=function(){var e=this;R(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore)return!0;var o=!r,a=t.getTextContent();!o&&a&&(o=sg(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Ja(e),i=r.dataIndex;if(n&&null!=i){var o=t.getData(r.dataType),a=o.getItemModel(i),s={},u=o.getItemVisual(i,"style"),l=o.getVisual("drawType");s.stroke=u[l];var c=a.getModel("labelLine");Qp(e,eg(a),s),Xp(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!_l(e)){var i=(h=sg(n)).oldLayout,o=Ja(e),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(o.dataType);if(i){n.attr(i);var l=e.prevStates;l&&(I(l,"select")>=0&&n.attr(h.oldLayoutSelect),I(l,"emphasis")>=0&&n.attr(h.oldLayoutEmphasis)),vl(n,s,t,a)}else if(n.attr(s),!Wl(n).valueAnimation){var c=Q(n.style.opacity,1);n.style.opacity=0,ml(n,{style:{opacity:c}},t,a)}if(h.oldLayout=s,n.states.select){var f=h.oldLayoutSelect={};lg(f,s,cg),lg(f,n.states.select,cg)}if(n.states.emphasis){var d=h.oldLayoutEmphasis={};lg(d,s,cg),lg(d,n.states.emphasis,cg)}Zl(n,a,u,t,t)}if(r&&!r.ignore&&!r.invisible){i=(h=ug(r)).oldLayout;var h,p={points:r.shape.points};i?(r.attr({shape:i}),vl(r,{shape:p},t)):(r.setShape(p),r.style.strokePercent=0,ml(r,{style:{strokePercent:1}},t)),h.oldLayout=p}},e}();function dg(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}R([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,i){t=M({},t),i.dispatchAction(M(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function hg(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,r=i.selected,a=0;a<r.length;a++)if(r[a].seriesIndex===t){var s=e.getData(),u=ti(s,i.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:H(u)?s.getName(u[0]):s.getName(u),selected:M({},e.option.selectedMap)})}}))}function pg(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var gg=Math.round(9*Math.random()),yg=function(){function e(){this._id="__ec_inner_"+gg++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return"function"===typeof Object.defineProperty?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),vg=ma.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),mg=ma.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),bg=ma.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),u=r-o+a+s,l=Math.asin(s/a),c=Math.cos(l)*a,f=Math.sin(l),d=Math.cos(l),h=.6*a,p=.7*a;e.moveTo(n-c,u+s),e.arc(n,u,a,Math.PI-l,2*Math.PI+l),e.bezierCurveTo(n+c-f*h,u+s+d*h,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+f*h,u+s+d*h,n-c,u+s),e.closePath()}}),wg=ma.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),xg={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},_g={};R({line:Lu,rect:Da,roundRect:Da,square:Da,circle:nu,diamond:mg,pin:bg,arrow:wg,triangle:vg},(function(e,t){_g[t]=new e}));var kg=ma.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Dn(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=_g[r];i||(i=_g[r="rect"]),xg[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Sg(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function Tg(e,t,n,r,i,o,a){var s,u=0===e.indexOf("empty");return u&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?ll(e.slice(8),new _n(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?ul(e.slice(7),{},new _n(t,n,r,i),a?"center":"cover"):new kg({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=u,s.setColor=Sg,o&&s.setColor(o),s}function Cg(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,u=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,u*=o),e.createRadialGradient(a,s,0,a,s,u)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a,e.createLinearGradient(r,o,i,a)}(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Ag(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function Og(e,t){return e&&"solid"!==e&&t>0?(t=t||1,"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:X(e)?[e]:H(e)?e:null):null}var Mg=new Yo(!0);function Eg(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function Pg(e){var t=e.fill;return null!=t&&"none"!==t}function Ig(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Dg(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Lg(e,t,n){var r=Ci(t.image,t.__image,n);if(Oi(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&i.setTransform){var o=new DOMMatrix;o.rotateSelf(0,0,(t.rotation||0)/Math.PI*180),o.scaleSelf(t.scaleX||1,t.scaleY||1),o.translateSelf(t.x||0,t.y||0),i.setTransform(o)}return i}}var Rg=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ng=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function jg(e,t,n,r,i){var o=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){o||(zg(e,i),o=!0);var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Hi.opacity:a}(r||t.blend!==n.blend)&&(o||(zg(e,i),o=!0),e.globalCompositeOperation=t.blend||Hi.blend);for(var s=0;s<Rg.length;s++){var u=Rg[s];(r||t[u]!==n[u])&&(o||(zg(e,i),o=!0),e[u]=e.dpr*(t[u]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(zg(e,i),o=!0),e.shadowColor=t.shadowColor||Hi.shadowColor),o}function Bg(e,t,n,r,i){var o=Vg(t,i.inHover),a=r?null:n&&Vg(n,i.inHover)||{};if(o===a)return!1;var s=jg(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(zg(e,i),s=!0),e.fillStyle=o.fill),(r||o.stroke!==a.stroke)&&(s||(zg(e,i),s=!0),e.strokeStyle=o.stroke),(r||o.opacity!==a.opacity)&&(s||(zg(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var u=o.lineWidth/(o.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(zg(e,i),s=!0),e.lineWidth=u)}for(var l=0;l<Ng.length;l++){var c=Ng[l],f=c[0];(r||o[f]!==a[f])&&(s||(zg(e,i),s=!0),e[f]=o[f]||c[1])}return s}function Fg(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function zg(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Vg(e,t){return t&&e.__hoverStyle||e.style}function Hg(e,t){Ug(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ug(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~Gn.REDARAW_BIT,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,u=!1;if(a&&!Ag(o,a)||(a&&a.length&&(zg(e,n),e.restore(),u=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(zg(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),Fg(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=n.prevEl;l||(u=s=!0);var c,f,d=t instanceof ma&&t.autoBatch&&function(e){var t=Pg(e),n=Eg(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(c=i,f=l.transform,c&&f?c[0]!==f[0]||c[1]!==f[1]||c[2]!==f[2]||c[3]!==f[3]||c[4]!==f[4]||c[5]!==f[5]:c||f)?(zg(e,n),Fg(e,t)):d||zg(e,n);var h=Vg(t,n.inHover);t instanceof ma?(1!==n.lastDrawType&&(u=!0,n.lastDrawType=1),Bg(e,t,l,u,n),d&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i=Eg(n),o=Pg(n),a=n.strokePercent,s=a<1,u=!t.path;t.silent&&!s||!u||t.createPathProxy();var l=t.path||Mg;if(!r){var c=n.fill,f=n.stroke,d=o&&!!c.colorStops,h=i&&!!f.colorStops,p=o&&!!c.image,g=i&&!!f.image,y=void 0,v=void 0,m=void 0,b=void 0,w=void 0;(d||h)&&(w=t.getBoundingRect()),d&&(y=t.__dirty?Cg(e,c,w):t.__canvasFillGradient,t.__canvasFillGradient=y),h&&(v=t.__dirty?Cg(e,f,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=v),p&&(m=t.__dirty||!t.__canvasFillPattern?Lg(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=m),g&&(b=t.__dirty||!t.__canvasStrokePattern?Lg(e,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=m),d?e.fillStyle=y:p&&(m?e.fillStyle=m:o=!1),h?e.strokeStyle=v:g&&(b?e.strokeStyle=b:i=!1)}var x=n.lineDash&&n.lineWidth>0&&Og(n.lineDash,n.lineWidth),_=n.lineDashOffset,k=!!e.setLineDash,S=t.getGlobalScale();if(l.setScale(S[0],S[1],t.segmentIgnoreThreshold),x){var T=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;T&&1!==T&&(x=N(x,(function(e){return e/T})),_/=T)}var C=!0;(u||t.__dirty&ma.SHAPE_CHANGED_BIT||x&&!k&&i)&&(l.setDPR(e.dpr),s?l.setContext(null):(l.setContext(e),C=!1),l.reset(),x&&!k&&(l.setLineDash(x),l.setLineDashOffset(_)),t.buildPath(l,t.shape,r),l.toStatic(),t.pathUpdated()),C&&l.rebuildPath(e,s?a:1),x&&k&&(e.setLineDash(x),e.lineDashOffset=_),r||(n.strokeFirst?(i&&Dg(e,n),o&&Ig(e,n)):(o&&Ig(e,n),i&&Dg(e,n))),x&&k&&e.setLineDash([])}(e,t,h,d),d&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):t instanceof xa?(3!==n.lastDrawType&&(u=!0,n.lastDrawType=3),Bg(e,t,l,u,n),function(e,t,n){var r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||Sn,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0;if(e.setLineDash){var o=n.lineDash&&n.lineWidth>0&&Og(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=N(o,(function(e){return e/s})),a/=s),e.setLineDash(o),e.lineDashOffset=a,i=!0}}n.strokeFirst?(Eg(n)&&e.strokeText(r,n.x,n.y),Pg(n)&&e.fillText(r,n.x,n.y)):(Pg(n)&&e.fillText(r,n.x,n.y),Eg(n)&&e.strokeText(r,n.x,n.y)),i&&e.setLineDash([])}}(e,t,h)):t instanceof Ta?(2!==n.lastDrawType&&(u=!0,n.lastDrawType=2),function(e,t,n,r,i){jg(e,Vg(t,i.inHover),n&&Vg(n,i.inHover),r,i)}(e,t,l,u,n),function(e,t,n){var r=t.__image=Ci(n.image,t.__image,t,t.onload);if(r&&Oi(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),u=r.width/r.height;if(null==a&&null!=s?a=s*u:null==s&&null!=a?s=a/u:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,c=n.sy||0;e.drawImage(r,l,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var f=a-(l=n.sx),d=s-(c=n.sy);e.drawImage(r,l,c,f,d,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}(e,t,h)):t instanceof Qu&&(4!==n.lastDrawType&&(u=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Ug(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var u=0,l=i.length;u<l;u++){var c;(c=i[u]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Ug(e,c,s,u===l-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),d&&r&&zg(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var Gg,Jg=new yg,Xg=new Ot(100),Wg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function qg(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&Jg.delete(e);var o=Jg.get(e);if(o)return o;var a=E(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,u=0;u<Wg.length;++u){var l=a[Wg[u]],c=typeof l;if(null!=l&&!H(l)&&"string"!==c&&"number"!==c&&"boolean"!==c){s=!1;break}o.push(l)}if(s){t=o.join(",")+(i?"-svg":"");var f=Xg.get(t);f&&(i?e.svgElement=f:e.image=f)}var d,h=function e(t){if(!t||0===t.length)return[[0,0]];if("number"===typeof t){return[[o=Math.ceil(t),o]]}for(var n=!0,r=0;r<t.length;++r)if("number"!==typeof t[r]){n=!1;break}if(n)return e([t]);var i=[];for(r=0;r<t.length;++r)if("number"===typeof t[r]){var o=Math.ceil(t[r]);i.push([o,o])}else{(o=N(t[r],(function(e){return Math.ceil(e)}))).length%2===1?i.push(o.concat(o)):i.push(o)}return i}(a.dashArrayX),p=function(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if("number"===typeof e){var t=Math.ceil(e);return[t,t]}var n=N(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(a.dashArrayY),g=function e(t){if(!t||0===t.length)return[["rect"]];if("string"===typeof t)return[[t]];for(var n=!0,r=0;r<t.length;++r)if("string"!==typeof t[r]){n=!1;break}if(n)return e([t]);var i=[];for(r=0;r<t.length;++r)"string"===typeof t[r]?i.push([t[r]]):i.push(t[r]);return i}(a.symbol),y=(x=h,N(x,(function(e){return Zg(e)}))),v=Zg(p),m=!i&&P(),b=i&&r.painter.createSVGElement("g"),w=function(){for(var e=1,t=0,n=y.length;t<n;++t)e=Gr(e,y[t]);var r=1;for(t=0,n=g.length;t<n;++t)r=Gr(r,g[t].length);e*=r;var i=v*y.length*g.length;0;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var x;m&&(m.width=w.width*n,m.height=w.height*n,d=m.getContext("2d"));(function(){d&&(d.clearRect(0,0,m.width,m.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,m.width,m.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(e<=0)return;var o=-v,s=0,u=0,l=0;for(;o<w.height;){if(s%2===0){for(var c=u/2%g.length,f=0,y=0,x=0;f<2*w.width;){var _=0;for(t=0;t<h[l].length;++t)_+=h[l][t];if(_<=0)break;if(y%2===0){var k=.5*(1-a.symbolSize),S=f+h[l][y]*k,T=o+p[s]*k,C=h[l][y]*a.symbolSize,A=p[s]*a.symbolSize,O=x/2%g[c].length;M(S,T,C,A,g[c][O])}f+=h[l][y],++x,++y===h[l].length&&(y=0)}++l===h.length&&(l=0)}o+=p[s],++u,++s===p.length&&(s=0)}function M(e,t,o,s,u){var l=i?1:n,c=Tg(u,e*l,t*l,o*l,s*l,a.color,a.symbolKeepAspect);i?b.appendChild(r.painter.paintOne(c)):Hg(d,c)}})(),s&&Xg.put(t,m||b);e.image=m,e.svgElement=b,e.svgWidth=w.width,e.svgHeight=w.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Jg.set(e,s),e.dirty=!1,s}function Zg(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}function Kg(e){G(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var Yg={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},$g=F(Yg),Qg={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ey=F(Qg),ty=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=Kg(e);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var r=new xr;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),sy(n,r,null,!0,!1);for(var u,l,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var f=fy(o);f.length>=4&&(u={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(u&&null!=a&&null!=s&&(l=gy(u,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var d=r;(r=new xr).add(d),d.scaleX=d.scaleY=l.scale,d.x=l.x,d.y=l.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new Da({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:u,viewBoxTransform:l,named:i}},e.prototype._parseNode=function(e,t,n,r,i,o){var a,s=e.nodeName.toLowerCase(),u=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var l=Gg[s];if(l&&fe(Gg,s)){a=l.call(this,e,t);var c=e.getAttribute("name");if(c){var f={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(f),"g"===s&&(u=f)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var d=ny[s];if(d&&fe(ny,s)){var h=d.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=h)}}if(a&&a.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,u,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},e.prototype._parseText=function(e,t){var n=new xa({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});oy(t,n),sy(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=void(Gg={g:function(e,t){var n=new xr;return oy(t,n),sy(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Da;return oy(t,n),sy(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new nu;return oy(t,n),sy(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Lu;return oy(t,n),sy(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new ou;return oy(t,n),sy(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=ay(r));var i=new Au({shape:{points:n||[]},silent:!0});return oy(t,i),sy(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=ay(r));var i=new Eu({shape:{points:n||[]},silent:!0});return oy(t,i),sy(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Ta;return oy(t,n),sy(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new xr;return oy(t,a),sy(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new xr;return oy(t,a),sy(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var n=Qs(e.getAttribute("d")||"");return oy(t,n),sy(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),ny={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new Ju(t,n,r,i);return ry(e,o),iy(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new Xu(t,n,r);return ry(e,i),iy(e,i),i}};function ry(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function iy(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};py(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function oy(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),E(t.__inheritedStyle,e.__inheritedStyle))}function ay(e){for(var t=fy(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}function sy(e,t,n,r,i){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(dy,(function(e,t,n){return r.push(t,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],u=void 0;switch(i=i||[1,0,0,1,0,0],s){case"translate":u=fy(a),dt(i,i,[parseFloat(u[0]),parseFloat(u[1]||"0")]);break;case"scale":u=fy(a),pt(i,i,[parseFloat(u[0]),parseFloat(u[1]||u[0])]);break;case"rotate":u=fy(a),ht(i,i,-parseFloat(u[0])/180*Math.PI);break;case"skew":u=fy(a);break;case"matrix":u=fy(a),i[0]=parseFloat(u[0]),i[1]=parseFloat(u[1]),i[2]=parseFloat(u[2]),i[3]=parseFloat(u[3]),i[4]=parseFloat(u[4]),i[5]=parseFloat(u[5])}}t.setLocalTransform(i)}}(e,t),py(e,a,s),r||function(e,t,n){for(var r=0;r<$g.length;r++){var i=$g[r];null!=(o=e.getAttribute(i))&&(t[Yg[i]]=o)}for(r=0;r<ey.length;r++){var o;i=ey[r];null!=(o=e.getAttribute(i))&&(n[Qg[i]]=o)}}(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=ly(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=ly(o,"stroke",a.stroke,n)),R(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),R(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=N(fy(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0),o.z=-1e4,o.z2=-1e3}var uy=/^url\(\s*#(.*?)\)/;function ly(e,t,n,r){var i=n&&n.match(uy);if(!i)return"none"===n&&(n=null),n;var o=ie(i[1]);r.push([e,t,o])}var cy=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function fy(e){return e.match(cy)||[]}var dy=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g;var hy=/([^\s:;]+)\s*:\s*([^:;]+)/g;function py(e,t,n){var r,i=e.getAttribute("style");if(i)for(hy.lastIndex=0;null!=(r=hy.exec(i));){var o=r[1],a=fe(Yg,o)?Yg[o]:null;a&&(t[a]=r[2]);var s=fe(Qg,o)?Qg[o]:null;s&&(n[s]=r[2])}}function gy(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function yy(e,t){return Math.abs(e-t)<1e-8}function vy(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var o=1;o<e.length;o++){var a=e[o];r+=oa(i[0],i[1],a[0],a[1],t,n),i=a}var s=e[0];return yy(i[0],s[0])&&yy(i[1],s[1])||(r+=oa(i[0],i[1],s[0],s[1],t,n)),0!==r}var my=[],by=function(){function e(e){this.name=e}return e.prototype.getCenter=function(){},e}(),wy=function(e){function t(t,n,r){var i=e.call(this,t)||this;if(i.type="geoJSON",i.geometries=n,r)r=[r[0],r[1]];else{var o=i.getBoundingRect();r=[o.x+o.width/2,o.y+o.height/2]}return i._center=r,i}return a(t,e),t.prototype.getBoundingRect=function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],r=[-t,-t],i=[],o=[],a=this.geometries,s=0;s<a.length;s++){if("polygon"===a[s].type)To(a[s].exterior,i,o),Ee(n,n,i),Pe(r,r,o)}return 0===s&&(n[0]=n[1]=r[0]=r[1]=0),this._rect=new _n(n[0],n[1],r[0]-n[0],r[1]-n[1])},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++)if("polygon"===n[r].type){var o=n[r].exterior,a=n[r].interiors;if(vy(o,e[0],e[1])){for(var s=0;s<(a?a.length:0);s++)if(vy(a[s],e[0],e[1]))continue e;return!0}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new _n(e,t,n,r),s=i.calculateTransform(a),u=this.geometries,l=0;l<u.length;l++)if("polygon"===u[l].type){for(var c=u[l].exterior,f=u[l].interiors,d=0;d<c.length;d++)Me(c[d],c[d],s);for(var h=0;h<(f?f.length:0);h++)for(d=0;d<f[h].length;d++)Me(f[h][d],f[h][d],s)}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t.prototype.getCenter=function(){return this._center},t.prototype.setCenter=function(e){this._center=e},t}(by),xy=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return a(t,e),t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this._calculateCenter()),e},t.prototype._calculateCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=lt(my),i=e;i&&!i.isGeoSVGGraphicRoot;)ft(r,i.getLocalTransform(),r),i=i.parent;return gt(r,r),Me(n,n,r),n},t}(by),_y=ue(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),ky=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=ue(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Kg(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=ue();return R(e,(function(e){if(null==e.namedFrom){var r=new xy(e.name,e.el);t.push(r),n.set(e.name,r)}})),{regions:t,regionsMap:n}}(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,r,i;try{re(null!=(n=(t=e&&(r=e,i={ignoreViewBox:!0,ignoreRootClip:!0},(new ty).parse(r,i))||{}).root))}catch(v){throw new Error("Invalid svg format\n"+v.message)}var o=new xr;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=t.width,s=t.height,u=t.viewBoxRect,l=this._boundingRect;if(!l){var c=void 0,f=void 0,d=void 0,h=void 0;if(null!=a?(c=0,d=a):u&&(c=u.x,d=u.width),null!=s?(f=0,h=s):u&&(f=u.y,h=u.height),null==c||null==f){var p=n.getBoundingRect();null==c&&(c=p.x,d=p.width),null==f&&(f=p.y,h=p.height)}l=this._boundingRect=new _n(c,f,d,h)}if(u){var g=gy(u,l);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new Da({shape:l.plain()}));var y=[];return R(t.named,(function(e){var t;null!=_y.get(e.svgNodeTagLower)&&(y.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:o,boundingRect:l,named:y}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function Sy(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,u=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),u=u>>1^-(1&u),i=s+=i,o=u+=o,r.push([s/n,u/n])}return r}function Ty(e,t){return N(B((e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);for(var r=t.features,i=0;i<r.length;i++){var o=r[i].geometry;if("Polygon"===o.type)for(var a=o.coordinates,s=0;s<a.length;s++)a[s]=Sy(a[s],o.encodeOffsets[s],n);else if("MultiPolygon"===o.type)for(a=o.coordinates,s=0;s<a.length;s++)for(var u=a[s],l=0;l<u.length;l++)u[l]=Sy(u[l],o.encodeOffsets[s][l],n)}return t.UTF8Encoding=!1,t}(e)).features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,i=[];if("Polygon"===r.type){var o=r.coordinates;i.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}"MultiPolygon"===r.type&&R(o=r.coordinates,(function(e){e[0]&&i.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var a=new wy(n[t||"name"],i,n.cp);return a.properties=n,a}))}for(var Cy=[126,25],Ay=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Oy=0;Oy<Ay.length;Oy++)for(var My=0;My<Ay[Oy].length;My++)Ay[Oy][My][0]/=10.5,Ay[Oy][My][1]/=-14,Ay[Oy][My][0]+=Cy[0],Ay[Oy][My][1]+=Cy[1];var Ey={"\u5357\u6d77\u8bf8\u5c9b":[32,80],"\u5e7f\u4e1c":[0,-10],"\u9999\u6e2f":[10,5],"\u6fb3\u95e8":[-10,10],"\u5929\u6d25":[5,5]};var Py={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};var Iy=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var Dy=function(){function e(e,t,n){var r;this.type="geoJSON",this._parsedMap=ue(),this._mapName=e,this._specialAreas=n,this._geoJSON=G(r=t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:Ly(r)})}var i=ue(),o=[];return R(n.regions,(function(t){var n=t.name;e&&e.hasOwnProperty(n)&&(t=t.cloneShallow(n=e[n])),o.push(t),i.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new _n(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n,r=this._mapName,i=this._geoJSON;try{t=i?Ty(i,e):[]}catch(o){throw new Error("Invalid geoJson format\n"+o.message)}return n=t,"china"===r&&n.push(new wy("\u5357\u6d77\u8bf8\u5c9b",N(Ay,(function(e){return{type:"polygon",exterior:e}})),Cy)),R(t,(function(e){var t=e.name;!function(e,t){if("china"===e){var n=Ey[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}(r,e),function(e,t){if("world"===e){var n=Py[t.name];if(n){var r=[n[0],n[1]];t.setCenter(r)}}}(r,e),function(e,t){"china"===e&&"\u53f0\u6e7e"===t.name&&t.geometries.push({type:"polygon",exterior:Iy[0]})}(r,e);var n=this._specialAreas&&this._specialAreas[t];n&&e.transformTo(n.left,n.top,n.width,n.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function Ly(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return t}var Ry=ue(),Ny=function(e,t,n){if(t.svg){var r=new ky(e,t.svg);Ry.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new Dy(e,i,n);Ry.set(e,r)}},jy=function(e){return Ry.get(e)},By=function(e,t,n){var r=Ry.get(e);if(r)return r.load(t,n)},Fy=re,zy=R,Vy=U,Hy=W,Uy=I,Gy="undefined"!==typeof window,Jy={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Xy=/^[a-zA-Z0-9_]+$/;function Wy(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Zy(this,e,t);_v(this.id)}}function qy(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zy(this,e,t)}}function Zy(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Le.prototype[t].apply(e,n)}var Ky,Yy,$y,Qy,ev,tv,nv,rv,iv,ov,av,sv,uv,lv,cv,fv,dv,hv,pv,gv,yv,vv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(Le),mv=vv.prototype;mv.on=qy("on"),mv.off=qy("off");var bv=function(e){function t(t,n,r){var i=e.call(this,new Cp)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},"string"===typeof n&&(n=Ev[n]),i._dom=t;var o=i._zr=Cr(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,useDirtyRect:null!=r.useDirtyRect&&r.useDirtyRect});i._throttledZrFlush=Wh(z(o.flush,o),17),(n=C(n))&&ud(n,!0),i._theme=n,i._locale=function(e){if(G(e)){var t=cc[e.toUpperCase()]||{};return"ZH"===e||"EN"===e?C(t):A(C(t),C(cc.EN),!1)}return A(C(e),C(cc.EN),!1)}(r.locale||dc),i._coordSysMgr=new zf;var a=i._api=dv(i);function s(e,t){return e.__prio-t.__prio}return Kn(Mv,s),Kn(Tv,s),i._scheduler=new wp(i,a,Tv,Mv),i._messageCenter=new vv,i._labelManager=new fg,i._initEvents(),i.resize=z(i.resize,i),o.animation.on("frame",i._onframe,i),ov(o,i),av(o,i),oe(i),i}return a(t,e),t.prototype._onframe=function(){if(!this._disposed){yv(this);var e=this._scheduler;if(this.__optionUpdated){var t=this.__optionUpdated.silent;this.__flagInMainProcess=!0,Ky(this),Qy.update.call(this),this._zr.flush(),this.__flagInMainProcess=!1,this.__optionUpdated=!1,rv.call(this,t),iv.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),tv(this,r),e.performVisualTasks(r),cv(this,this._model,i,"remain"),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.setOption=function(e,t,n){if(this._disposed)_v(this.id);else{var r,i,o;if(Hy(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this.__flagInMainProcess=!0,!this._model||t){var a=new Uf(this._api),s=this._theme,u=this._model=new Nf;u.scheduler=this._scheduler,u.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},Cv),pv(this,o),n?(this.__optionUpdated={silent:r},this.__flagInMainProcess=!1,this.getZr().wakeUp()):(Ky(this),Qy.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this.__flagInMainProcess=!1,rv.call(this,r),iv.call(this,r))}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Gy&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){if(f.canvasSupported)return(e=M({},e||{})).pixelRatio=e.pixelRatio||this.getDevicePixelRatio(),e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(e)},t.prototype.getSvgDataURL=function(){if(f.svgSupported){var e=this._zr;return R(e.storage.getDisplayList(),(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;zy(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return zy(r,(function(e){e.group.ignore=!1})),o}_v(this.id)},t.prototype.getConnectedDataURL=function(e){if(this._disposed)_v(this.id);else if(f.canvasSupported){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max;if(Dv[n]){var o=1/0,a=1/0,s=-1/0,u=-1/0,l=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();R(Iv,(function(c,f){if(c.group===n){var d=t?c.getZr().painter.getSvgDom().innerHTML:c.getRenderedCanvas(C(e)),h=c.getDom().getBoundingClientRect();o=r(h.left,o),a=r(h.top,a),s=i(h.right,s),u=i(h.bottom,u),l.push({dom:d,left:h.left,top:h.top})}}));var d=(s*=c)-(o*=c),h=(u*=c)-(a*=c),p=P(),g=Cr(p,{renderer:t?"svg":"canvas"});if(g.resize({width:d,height:h}),t){var y="";return zy(l,(function(e){var t=e.left-o,n=e.top-a;y+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new Da({shape:{x:0,y:0,width:d,height:h},style:{fill:e.connectedBackgroundColor}})),zy(l,(function(e){var t=new Ta({style:{x:e.left*c-o,y:e.top*c-a,image:e.dom}});g.add(t)})),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t){return ev(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return ev(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return R(ii(this._model,e),(function(e,r){r.indexOf("Models")>=0&&R(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n;_v(this.id)},t.prototype.getVisual=function(e,t){var n=ii(this._model,e,{defaultMainType:"series"});var r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?Op(r,i,t):Mp(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;zy(xv,(function(e){var t=function(t){var n,i=r.getModel(),o=t.target;if("globalout"===e?n={}:o&&pg(o,(function(e){var t=Ja(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return n=M({},t.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var u=a&&null!=s&&i.getComponent(a,s),l=u&&r["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:l},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)})),zy(Sv,(function(e,t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),zy(["selectchanged"],(function(e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(hg("map","selectchanged",t,r,e),hg("pie","selectchanged",t,r,e)):"select"===e.fromAction?(hg("map","selected",t,r,e),hg("pie","selected",t,r,e)):"unselect"===e.fromAction&&(hg("map","unselected",t,r,e),hg("pie","unselected",t,r,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?_v(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)_v(this.id);else{this._disposed=!0,li(this.getDom(),Rv,"");var e=this._api,t=this._model;zy(this._componentsViews,(function(n){n.dispose(t,e)})),zy(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete Iv[this.id]}},t.prototype.resize=function(e){if(this._disposed)_v(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this.__flagInMainProcess=!0,n&&Ky(this),Qy.update.call(this,{type:"resize",animation:M({duration:0},e&&e.animation)}),this.__flagInMainProcess=!1,rv.call(this,r),iv.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)_v(this.id);else if(Hy(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Pv[e]){var n=Pv[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?_v(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=M({},e);return t.type=Sv[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)_v(this.id);else if(Hy(t)||(t={silent:!!t}),kv[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;nv.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&f.browser.weChat&&this._throttledZrFlush(),rv.call(this,n),iv.call(this,n)}},t.prototype.updateLabelLayout=function(){var e=this._labelManager;e.updateLayoutConfig(this._api),e.layout(this._api),e.processLabelsOverall()},t.prototype.appendData=function(e){if(this._disposed)_v(this.id);else{var t=e.seriesIndex;0,this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function t(e,t){e.preventAutoZ||function e(t,n,r,i){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),u=0;u<s.length;u++)i=Math.max(e(s[u],n,r,i),i);else t.z=n,t.zlevel=r,i=Math.max(t.z2,i);o&&(o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+2));if(a){var l=t.textGuideLineConfig;a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}(t.group,e.get("z")||0,e.get("zlevel")||0,-1/0)}function n(e,t){t.group.traverse((function(e){if(!_l(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function r(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.group.traverse((function(t){if(t.states&&t.states.emphasis){if(_l(t))return;if(t instanceof ma&&function(e){var t=qa(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}Ky=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Yy(e,!0),Yy(e,!1),t.plan()},Yy=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,u=0;u<i.length;u++)i[u].__alive=!1;function l(e){var u=e.__requireNewView;e.__requireNewView=!1;var l="_ec_"+e.id+"_"+e.type,c=!u&&o[l];if(!c){var f=hi(e.type);0,(c=new(t?Lh.getClass(f.main,f.sub):Gh.getClass(f.sub))).init(n,s),o[l]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=l,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&l(t)})):n.eachSeries(l);for(u=0;u<i.length;){var c=i[u];c.__alive?u++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(u,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},$y=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var u,l=n.excludeSeriesId;null!=l&&(u=ue(),zy(Jr(l),(function(e){var t=$r(e,null);null!=t&&u.set(t,!0)}))),Rs(n)&&xs(e._api),o&&o.eachComponent(s,(function(t){if(!u||null==u.get(t.id)){if(Rs(n))if(t instanceof Ih)"highlight"!==n.type||n.notBlur||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType),o=ti(i,t);o=(H(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),u=0;!a&&u<s;)a=i.getItemGraphicEl(u++);if(a){var l=Ja(a);_s(r,l.focus,l.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);null!=c&&_s(r,c,f,n)}}(t,n,e._api);else{var i=Ss(t.mainType,t.componentIndex,n.name,e._api),o=i.focusSelf,a=i.dispatchers;"highlight"===n.type&&o&&!n.notBlur&&ks(t.mainType,t.componentIndex,e._api),a&&zy(a,(function(e){"highlight"===n.type?ps(e):gs(e)}))}else Ls(n)&&t instanceof Ih&&(!function(e,t,n){if(Ls(t)){var r=t.dataType,i=ti(e.getData(r),t);H(i)||(i=[i]),e["toggleSelect"===t.type?"toggleSelect":"select"===t.type?"select":"unselect"](i,r)}}(t,n,e._api),Ts(t),gv(e));c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}}),e)}else zy([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},Qy={prepareAndUpdate:function(e){Ky(this),Qy.update.call(this,e)},update:function(e){var t=this._model,n=this._api,r=this._zr,i=this._coordSysMgr,o=this._scheduler;if(t){t.setUpdatePayload(e),o.restoreData(t,e),o.performSeriesTasks(t),i.create(t,n),o.performDataProcessorTasks(t,e),tv(this,t),i.update(t,n),sv(t),o.performVisualTasks(t,e),uv(this,t,n,e);var a=t.get("backgroundColor")||"transparent",s=t.get("darkMode");if(f.canvasSupported)r.setBackgroundColor(a),null!=s&&"auto"!==s&&r.setDarkMode(s);else{var u=Vt(a);a=qt(u,"rgb"),0===u[3]&&(a="transparent")}fv(t,n)}},updateTransform:function(e){var t=this,n=this._model,r=this._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent((function(o,a){if("series"!==o){var s=t.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var u=s.updateTransform(a,n,r,e);u&&u.update&&i.push(s)}else i.push(s)}}));var o=ue();n.eachSeries((function(i){var a=t._chartsMap[i.__viewId];if(a.updateTransform){var s=a.updateTransform(i,n,r,e);s&&s.update&&o.set(i.uid,1)}else o.set(i.uid,1)})),sv(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:o}),cv(this,n,r,e,o),fv(n,this._api)}},updateView:function(e){var t=this._model;t&&(t.setUpdatePayload(e),Gh.markUpdateMethod(e,"updateView"),sv(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),uv(this,this._model,this._api,e),fv(t,this._api))},updateVisual:function(e){var t=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries((function(e){e.getData().clearAllVisual()})),Gh.markUpdateMethod(e,"updateVisual"),sv(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent((function(r,i){if("series"!==r){var o=t.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,n,t._api,e)}})),n.eachSeries((function(r){t._chartsMap[r.__viewId].updateVisual(r,n,t._api,e)})),fv(n,this._api))},updateLayout:function(e){Qy.update.call(this,e)}},ev=function(e,t,n,r){if(e._disposed)_v(e.id);else{for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=ii(o,n),u=0;u<a.length;u++){var l=a[u];if(l[t]&&null!=(i=l[t](o,s,r)))return i}0}},tv=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},nv=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,a=kv[i],s=a.actionInfo,u=(s.update||"update").split(":"),l=u.pop(),c=null!=u[0]&&hi(u[0]);this.__flagInMainProcess=!0;var f=[e],d=!1;e.batch&&(d=!0,f=N(e.batch,(function(t){return(t=E(M({},t),e)).batch=null,t})));var h,p=[],g=Ls(e),y=Rs(e);if(zy(f,(function(t){if((h=(h=a.action(t,n._model,n._api))||M({},t)).type=s.event||h.type,p.push(h),y){var r=oi(e),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";$y(n,l,t,o),gv(n)}else g?($y(n,l,t,"series"),gv(n)):c&&$y(n,l,t,c.main,c.sub)})),"none"===l||y||g||c||(this.__optionUpdated?(Ky(this),Qy.update.call(this,e),this.__optionUpdated=!1):Qy[l].call(this,e)),h=d?{type:s.event||i,escapeConnect:o,batch:p}:p[0],this.__flagInMainProcess=!1,!t){var v=this._messageCenter;if(v.trigger(h.type,h),g){var m={type:"selectchanged",escapeConnect:o,selected:Cs(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(m.type,m)}}},rv=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();nv.call(this,n,e)}},iv=function(e){!e&&this.trigger("updated")},ov=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t.__optionUpdated||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},av=function(e,t){e.on("mouseover",(function(e){var n=pg(e.target,Ds);n&&(!function(e,t,n){var r=Ja(e),i=Ss(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&ks(r.componentMainType,r.componentIndex,n),R(o,(function(e){return ds(e,t)}))):(_s(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&ks(r.componentMainType,r.componentIndex,n),ds(e,t))}(n,e,t._api),gv(t))})).on("mouseout",(function(e){var n=pg(e.target,Ds);n&&(!function(e,t,n){xs(n);var r=Ja(e),i=Ss(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?R(i,(function(e){return hs(e,t)})):hs(e,t)}(n,e,t._api),gv(t))})).on("click",(function(e){var n=pg(e.target,(function(e){return null!=Ja(e).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=Ja(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},sv=function(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))},uv=function(e,t,n,r){lv(e,t,n,r),zy(e._chartsViews,(function(e){e.__alive=!1})),cv(e,t,n,r),zy(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},lv=function(e,i,o,a,s){zy(s||e._componentsViews,(function(e){var s=e.__model;n(s,e),e.render(s,i,o,a),t(s,e),r(s,e)}))},cv=function(e,i,o,a,s){var u=e._scheduler,l=e._labelManager;l.clearLabels();var c=!1;i.eachSeries((function(t){var r=e._chartsMap[t.__viewId];r.__alive=!0;var i=r.renderTask;u.updatePayload(i,a),n(t,r),s&&s.get(t.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(c=!0),t.__transientTransitionOpt=null,r.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;0;t.group.traverse((function(e){e.isGroup||(e.style.blend=n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.style.blend=n}))}))}(t,r),Ts(t),l.addLabelsOfSeries(r)})),u.unfinished=c||u.unfinished,l.updateLayoutConfig(o),l.layout(o),l.processLabelsOverall(),i.eachSeries((function(n){var i=e._chartsMap[n.__viewId];t(n,i),r(n,i)})),function(e,t){var n=e._zr.storage,r=0;n.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!f.node&&!f.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,i)},fv=function(e,t){zy(Ov,(function(n){n(e,t)}))},gv=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},yv=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){_l(t)||e(t)})),t.__needsUpdateStatus=!1)},dv=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){ps(t,n),gv(e)},n.prototype.leaveEmphasis=function(t,n){gs(t,n),gv(e)},n.prototype.enterBlur=function(t){ys(t),gv(e)},n.prototype.leaveBlur=function(t){vs(t),gv(e)},n.prototype.enterSelect=function(t){ms(t),gv(e)},n.prototype.leaveSelect=function(t){bs(t),gv(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(Bf))(e)},hv=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n].__connectUpdateStatus=t}}zy(Sv,(function(n,r){e._messageCenter.on(r,(function(n){if(Dv[e.group]&&0!==e.__connectUpdateStatus){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];zy(Iv,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,0),zy(i,(function(e){1!==e.__connectUpdateStatus&&e.dispatchAction(r)})),t(i,2)}}))}))},pv=function(e,t){var n=e._model;R(Jr(t),(function(e){var t,r=e.from,i=e.to;null==i&&Vd(t);var o={includeMainTypes:["series"],enableAll:!1,enableNone:!1},a=r?ii(n,r,o):null,s=ii(n,i,o).seriesModel;null==s&&(t=""),a&&a.seriesModel!==s&&(t=""),null!=t&&Vd(t),s.__transientTransitionOpt={from:r?r.dimension:null,to:i.dimension,dividingMethod:e.dividingMethod}}))}}(),t}(Le),wv=bv.prototype;wv.on=Wy("on"),wv.off=Wy("off"),wv.one=function(e,t,n){var r=this;this.on.call(this,e,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)}),n)};var xv=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function _v(e){0}var kv={},Sv={},Tv=[],Cv=[],Av=[],Ov=[],Mv=[],Ev={},Pv={},Iv={},Dv={},Lv=+new Date-0,Rv=(new Date,"_echarts_instance_");function Nv(e,t,n){var r=jv(e);if(r)return r;var i=new bv(e,t,n);return i.id="ec_"+Lv++,Iv[i.id]=i,li(e,Rv,i.id),hv(i),zy(Av,(function(e){e(i)})),i}function jv(e){return Iv[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,Rv)]}function Bv(e,t){Ev[e]=t}function Fv(e){Uy(Cv,e)<0&&Cv.push(e)}function zv(e,t){Gv(Tv,e,t,2e3)}function Vv(e,t,n){"function"===typeof t&&(n=t,t="");var r=Hy(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,Sv[t]||(Fy(Xy.test(r)&&Xy.test(t)),kv[r]||(kv[r]={action:n,actionInfo:e}),Sv[t]=r)}function Hv(e,t){Gv(Mv,e,t,3e3,"visual")}var Uv=[];function Gv(e,t,n,r,i){if((Vy(t)||Hy(t))&&(n=t,t=r),!(Uy(Uv,n)>=0)){Uv.push(n);var o=wp.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function Jv(e,t){Pv[e]=t}var Xv=function(e){var t=(e=C(e)).type;t||Vd("");var n=t.split(":");2!==n.length&&Vd("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,th.set(t,e)};Hv(2e3,ep),Hv(4500,np),Hv(4500,rp),Hv(2e3,Ap),Hv(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){var n=e.getItemModel(t),r=n.getShallow("symbol",!0),i=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),s=n.getShallow("symbolKeepAspect",!0);null!=r&&e.setItemVisual(t,"symbol",r),null!=i&&e.setItemVisual(t,"symbolSize",i),null!=o&&e.setItemVisual(t,"symbolRotate",o),null!=a&&e.setItemVisual(t,"symbolOffset",a),null!=s&&e.setItemVisual(t,"symbolKeepAspect",s)}:null}}}),Hv(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=qg(n,t))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=qg(i,t)}}))})),Fv(ud),zv(900,(function(e){var t=ue();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(ld)})),Jv("default",(function(e,t){E(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new xr,r=new Da({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new Ga({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Da({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((i=new Hu({shape:{startAngle:-ip/2,endAngle:-ip/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*ip/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*ip/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&i.setShape({cx:u,cy:l}),a.setShape({x:u-s,y:l-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),Vv({type:"highlight",event:"highlight",update:"highlight"},de),Vv({type:"downplay",event:"downplay",update:"downplay"},de),Vv({type:"select",event:"select",update:"select"},de),Vv({type:"unselect",event:"unselect",update:"unselect"},de),Vv({type:"toggleSelect",event:"toggleSelect",update:"toggleSelect"},de),Bv("light",_p),Bv("dark",Tp);var Wv=[],qv={registerPreprocessor:Fv,registerProcessor:zv,registerPostInit:function(e){Uy(Av,e)<0&&e&&Av.push(e)},registerPostUpdate:function(e){Uy(Ov,e)<0&&e&&Ov.push(e)},registerAction:Vv,registerCoordinateSystem:function(e,t){zf.register(e,t)},registerLayout:function(e,t){Gv(Mv,e,t,1e3,"layout")},registerVisual:Hv,registerTransform:Xv,registerLoading:Jv,registerMap:function(e,t,n){Ny(e,t,n)},PRIORITY:Jy,ComponentModel:lf,ComponentView:Lh,SeriesModel:Ih,ChartView:Gh,registerComponentModel:function(e){lf.registerClass(e)},registerComponentView:function(e){Lh.registerClass(e)},registerSeriesModel:function(e){Ih.registerClass(e)},registerChartView:function(e){Gh.registerClass(e)},registerSubTypeDefaulter:function(e,t){lf.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){!function(e,t){kr[e]=t}(e,t)}};function Zv(e){H(e)?R(e,(function(e){Zv(e)})):I(Wv,e)>=0||(Wv.push(e),U(e)&&(e={install:e}),e.install(qv))}function Kv(){return!1}function Yv(e,t,n){var r=P(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var $v=function(e){function t(t,n,r){var i,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Rn,"string"===typeof t?i=Yv(t,n,r):W(t)&&(t=(i=t).id),o.id=t,o.dom=i;var a=i.style;return a&&(i.onselectstart=Kv,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=n,o.config=null,o.dpr=r,o}return pe(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Yv("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,u=new _n(0,0,0,0);function l(e){if(e.isFinite()&&!e.isZero())if(0===o.length){(t=new _n(0,0,0,0)).copy(e),o.push(t)}else{for(var t,n=!1,r=1/0,i=0,l=0;l<o.length;++l){var c=o[l];if(c.intersect(e)){var f=new _n(0,0,0,0);f.copy(c),f.union(e),o[l]=f,n=!0;break}if(s){u.copy(e),u.union(c);var d=e.width*e.height,h=c.width*c.height,p=u.width*u.height-d-h;p<r&&(r=p,i=l)}}if(s&&(o[i].union(e),n=!0),!n)(t=new _n(0,0,0,0)).copy(e),o.push(t);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(h=e[c]){var f=h.shouldBePainted(n,r,!0,!0);(p=h.__isRendered&&(h.__dirty&Gn.REDARAW_BIT||!f)?h.getPrevPaintRect():null)&&l(p);var d=f&&(h.__dirty&Gn.REDARAW_BIT||!h.__isRendered)?h.getPaintRect():null;d&&l(d)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h,p;f=(h=t[c]).shouldBePainted(n,r,!0,!0);if(h&&(!f||!h.__zr)&&h.__isRendered)(p=h.getPrevPaintRect())&&l(p)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,u=this.lastFrameAlpha,l=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/l,a/l));var f=this.domBack;function d(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;null!=t.colorStops?(a=t.__canvasGradient||Cg(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a):function(e){return null!=e.image}(t)&&(a=Lg(i,t,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=u,i.drawImage(f,e,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&R(n,(function(e){d(e.x*l,e.y*l,e.width*l,e.height*l)}))},t}(Le);function Qv(e){return parseInt(e,10)}var em=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=M({},n||{}),this.dpr=n.devicePixelRatio||Rn,this._singleCanvas=i,this.root=e;var o=e.style;o&&(o.webkitTapHighlightColor="transparent",o.webkitUserSelect="none",o.userSelect="none",o["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var u=e,l=u.width,c=u.height;null!=n.width&&(l=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,u.width=l*this.dpr,u.height=c*this.dpr,this._width=l,this._height=c;var f=new $v(u,this,this.dpr);f.__builtin__=!0,f.initContext(),s[314159]=f,f.zlevel=314159,a.push(314159),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var d=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),r||(r=n.ctx).save(),Ug(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){Hg(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;tr((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(314159).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],u=this._layers[s];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var l=!0,c=!1,d=function(a){var s=i[a],u=s.ctx,f=o&&s.createRepaintRects(e,t,h._width,h._height);u.save();var d,p=n?s.__startIndex:s.__drawIndex,g=!n&&s.incremental&&Date.now,y=g&&Date.now(),v=s.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,v,f);else if(p===s.__startIndex){var m=e[p];m.incremental&&m.notClear&&!n||s.clear(!1,v,f)}-1===p&&(p=s.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(d=p;d<s.__endIndex;d++){var i=e[d];if(i.__inHover&&(c=!0),r._doPaintEl(i,s,o,t,n,d===s.__endIndex-1),g)if(Date.now()-y>15)break}n.prevElClipPaths&&u.restore()};if(f)if(0===f.length)d=s.__endIndex;else for(var w=h.dpr,x=0;x<f.length;++x){var _=f[x];u.save(),u.beginPath(),u.rect(_.x*w,_.y*w,_.width*w,_.height*w),u.clip(),b(_),u.restore()}else u.save(),b(),u.restore();s.__drawIndex=d,s.__drawIndex<s.__endIndex&&(l=!1)},h=this,p=0;p<i.length;p++)d(p);return f.wxa&&R(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:l,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Ug(a,e,i,o),e.setPrevPaintRect(s))}else Ug(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=314159);var n=this._layers[e];return n||((n=new $v("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?A(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&A(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(n[e])T("ZLevel "+e+" has been used already");else if(function(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var u=a.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}else T("Layer of zlevel "+e+" is not valid")},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<e.length;i++){var s,u=(s=e[i]).zlevel,l=void 0;r!==u&&(r=u,a=0),s.incremental?((l=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):l=this.getLayer(u+(a>0?.01:0),this._needsManuallyCompositing),l.__builtin__||T("ZLevel "+u+" has been used by unkown layer "+l.id),l!==o&&(l.__used=!0,l.__startIndex!==i&&(l.__dirty=!0),l.__startIndex=i,l.incremental?l.__drawIndex=-1:l.__drawIndex=i,t(i),o=l),s.__dirty&Gn.REDARAW_BIT&&!s.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,R(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?A(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+.01)A(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(I(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||t!==this._height){for(var i in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(314159).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new $v("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,u=a.length;s<u;s++){var l=a[s];Ug(n,l,o,s===u-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||Qv(s[n])||Qv(a.style[n]))-(Qv(s[i])||0)-(Qv(s[o])||0)|0},e.prototype.pathToImage=function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),r=n.getContext("2d"),i=e.getBoundingRect(),o=e.style,a=o.shadowBlur*t,s=o.shadowOffsetX*t,u=o.shadowOffsetY*t,l=e.hasStroke()?o.lineWidth:0,c=Math.max(l/2,-s+a),f=Math.max(l/2,s+a),d=Math.max(l/2,-u+a),h=Math.max(l/2,u+a),p=i.width+c+f,g=i.height+d+h;n.width=p*t,n.height=g*t,r.scale(t,t),r.clearRect(0,0,p,g),r.dpr=t;var y={x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY,rotation:e.rotation,originX:e.originX,originY:e.originY};e.x=c-i.x,e.y=d-i.y,e.rotation=0,e.scaleX=1,e.scaleY=1,e.updateTransform(),e&&Ug(r,e,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var v=new Ta({style:{x:0,y:0,image:n}});return M(e,y),v},e}();function tm(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function nm(e,t,n,r,i){for(var o=t.length,a=n.length,s=e.newPos,u=s-r,l=0;s+1<o&&u+1<a&&i(t[s+1],n[u+1]);)s++,u++,l++;return l&&e.components.push({count:l,added:!1,removed:!1,indices:[]}),e.newPos=s,u}function rm(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n,indices:[]}:e.push({count:1,added:t,removed:n,indices:[]})}function im(e){for(var t=0,n=e.length,r=0,i=0;t<n;t++){var o=e[t];if(o.removed){for(s=i;s<i+o.count;s++)o.indices.push(s);i+=o.count}else{for(var a=[],s=r;s<r+o.count;s++)a.push(s);o.indices=a,r+=o.count,o.added||(i+=o.count)}}return e}function om(e,t,n){return function(e,t,n){n||(n=function(e,t){return e===t}),e=e.slice();var r=(t=t.slice()).length,i=e.length,o=1,a=r+i,s=[{newPos:-1,components:[]}],u=nm(s[0],t,e,0,n);if(s[0].newPos+1>=r&&u+1>=i){for(var l=[],c=0;c<t.length;c++)l.push(c);return[{indices:l,count:t.length,added:!1,removed:!1}]}function f(){for(var a=-1*o;a<=o;a+=2){var u,l=s[a-1],c=s[a+1],f=(c?c.newPos:0)-a;l&&(s[a-1]=void 0);var d=l&&l.newPos+1<r,h=c&&0<=f&&f<i;if(d||h){if(!d||h&&l.newPos<c.newPos?rm((u={newPos:(p=c).newPos,components:p.components.slice(0)}).components,!1,!0):((u=l).newPos++,rm(u.components,!0,!1)),f=nm(u,t,e,a,n),u.newPos+1>=r&&f+1>=i)return im(u.components);s[a]=u}else s[a]=void 0}var p;o++}for(;o<=a;){var d=f();if(d)return d}}(e,t,n)}var am=Math.round,sm=Math.sin,um=Math.cos,lm=Math.PI,cm=2*Math.PI,fm=180/lm;function dm(e){return am(1e3*e)/1e3}function hm(e){return am(1e4*e)/1e4}function pm(e){return e<1e-4&&e>-1e-4}function gm(e,t){t&&ym(e,"transform","matrix("+dm(t[0])+","+dm(t[1])+","+dm(t[2])+","+dm(t[3])+","+hm(t[4])+","+hm(t[5])+")")}function ym(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function vm(e,t,n){var r=null==t.opacity?1:t.opacity;if(n instanceof Ta)e.style.opacity=r+"";else{if(function(e){var t=e.fill;return null!=t&&"none"!==t}(t)){var i=t.fill;ym(e,"fill",i="transparent"===i?"none":i),ym(e,"fill-opacity",(null!=t.fillOpacity?t.fillOpacity*r:r)+"")}else ym(e,"fill","none");if(function(e){var t=e.stroke;return null!=t&&"none"!==t}(t)){var o=t.stroke;ym(e,"stroke",o="transparent"===o?"none":o);var a=t.lineWidth,s=t.strokeNoScale?n.getLineScale():1;ym(e,"stroke-width",(s?a/s:0)+""),ym(e,"paint-order",t.strokeFirst?"stroke":"fill"),ym(e,"stroke-opacity",(null!=t.strokeOpacity?t.strokeOpacity*r:r)+"");var u=t.lineDash&&a>0&&Og(t.lineDash,a);if(u){var l=t.lineDashOffset;s&&1!==s&&(u=N(u,(function(e){return e/s})),l&&(l=am(l/=s))),ym(e,"stroke-dasharray",u.join(",")),ym(e,"stroke-dashoffset",(l||0)+"")}else ym(e,"stroke-dasharray","");t.lineCap&&ym(e,"stroke-linecap",t.lineCap),t.lineJoin&&ym(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&ym(e,"stroke-miterlimit",t.miterLimit+"")}else ym(e,"stroke","none")}}var mm=function(){function e(){}return e.prototype.reset=function(){this._d=[],this._str=""},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){this._add("C",e,t,n,r,i,o)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,o){this.ellipse(e,t,n,n,0,r,i,o)},e.prototype.ellipse=function(e,t,n,r,i,o,a,s){var u=0===this._d.length,l=a-o,c=!s,f=Math.abs(l),d=pm(f-cm)||(c?l>=cm:-l>=cm),h=l>0?l%cm:l%cm+cm,p=!1;p=!!d||!pm(f)&&h>=lm===!!c;var g=hm(e+n*um(o)),y=hm(t+r*sm(o));d&&(l=c?cm-1e-4:1e-4-cm,p=!0,u&&this._d.push("M",g,y));var v=hm(e+n*um(o+l)),m=hm(t+r*sm(o+l));if(isNaN(g)||isNaN(y)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(fm)||isNaN(v)||isNaN(m))return"";this._d.push("A",hm(n),hm(r),am(i*fm),+p,+c,v,m)},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("L",e+n,t),this._add("L",e+n,t+r),this._add("L",e,t+r),this._add("L",e,t)},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,o,a,s,u){this._d.push(e);for(var l=1;l<arguments.length;l++){var c=arguments[l];if(isNaN(c))return void(this._invalid=!0);this._d.push(hm(c))}},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),bm={brush:function(e){var t=e.style,n=e.__svgEl;n||(n=tm("path"),e.__svgEl=n),e.path||e.createPathProxy();var r=e.path;e.shapeChanged()&&(r.beginPath(),e.buildPath(r,e.shape),e.pathUpdated());var i=r.getVersion(),o=e,a=o.__svgPathBuilder;(o.__svgPathVersion!==i||!a||e.style.strokePercent<1)&&(a||(a=o.__svgPathBuilder=new mm),a.reset(),r.rebuildPath(a,e.style.strokePercent),a.generateStr(),o.__svgPathVersion=i),ym(n,"d",a.getStr()),vm(n,t,e),gm(n,e.transform)}},wm={brush:function(e){var t=e.style,n=t.image;if(n instanceof HTMLImageElement?n=n.src:n instanceof HTMLCanvasElement&&(n=n.toDataURL()),n){var r=t.x||0,i=t.y||0,o=t.width,a=t.height,s=e.__svgEl;s||(s=tm("image"),e.__svgEl=s),n!==e.__imageSrc&&(!function(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}(s,"href",n),e.__imageSrc=n),ym(s,"width",o+""),ym(s,"height",a+""),ym(s,"x",r+""),ym(s,"y",i+""),vm(s,t,e),gm(s,e.transform)}}},xm={left:"start",right:"end",center:"middle",middle:"middle"};var _m={brush:function(e){var t=e.style,n=t.text;if(null!=n&&(n+=""),n&&!isNaN(t.x)&&!isNaN(t.y)){var r=e.__svgEl;r||(function(e,t,n){e.setAttributeNS("http://www.w3.org/XML/1998/namespace",t,n)}(r=tm("text"),"xml:space","preserve"),e.__svgEl=r);var i=t.font||Sn;r.style.font=i,r.textContent=n,vm(r,t,e),gm(r,e.transform);var o=t.x||0,a=function(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}(t.y||0,Pn(i),t.textBaseline),s=xm[t.textAlign]||t.textAlign;ym(r,"dominant-baseline","central"),ym(r,"text-anchor",s),ym(r,"x",o+""),ym(r,"y",a+"")}}},km=function(){function e(e,t,n,r,i){this.nextId=0,this._domName="_dom",this.createElement=tm,this._zrId=e,this._svgRoot=t,this._tagNames="string"===typeof n?[n]:n,this._markLabel=r,i&&(this._domName=i)}return e.prototype.getDefs=function(e){var t=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");if(0===n.length){if(e){var r=t.insertBefore(this.createElement("defs"),t.firstChild);return r.contains||(r.contains=function(e){var t=r.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),r}return null}return n[0]},e.prototype.doUpdate=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var r=this.add(e);r&&(e[this._domName]=r)}}},e.prototype.add=function(e){return null},e.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},e.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},e.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return R(this._tagNames,(function(n){for(var r=e.getElementsByTagName(n),i=0;i<r.length;i++)t.push(r[i])})),t},e.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;R(e,(function(e){e[t._markLabel]="0"}))},e.prototype.markDomUsed=function(e){e&&(e[this._markLabel]="1")},e.prototype.markDomUnused=function(e){e&&(e[this._markLabel]="0")},e.prototype.isDomUnused=function(e){return e&&"1"!==e[this._markLabel]},e.prototype.removeUnused=function(){var e=this,t=this.getDefs(!1);t&&R(this.getDoms(),(function(n){e.isDomUnused(n)&&t.removeChild(n)}))},e.prototype.getSvgProxy=function(e){return e instanceof ma?bm:e instanceof Ta?wm:e instanceof xa?_m:bm},e.prototype.getSvgElement=function(e){return e.__svgEl},e}();function Sm(e){return"linear"===e.type}function Tm(e){return"radial"===e.type}function Cm(e){return e&&("linear"===e.type||"radial"===e.type)}var Am=function(e){function t(t,n){return e.call(this,t,n,["linearGradient","radialGradient"],"__gradient_in_use__")||this}return pe(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;R(["fill","stroke"],(function(r){var i=t.style[r];if(Cm(i)){var o=i,a=n.getDefs(!0),s=void 0;o.__dom?(s=o.__dom,a.contains(o.__dom)||n.addDom(s)):s=n.add(o),n.markUsed(t);var u=s.getAttribute("id");e.setAttribute(r,"url(#"+u+")")}}))}},t.prototype.add=function(e){var t;if(Sm(e))t=this.createElement("linearGradient");else{if(!Tm(e))return T("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},t.prototype.update=function(e){if(Cm(e)){var t=this;this.doUpdate(e,(function(){var n=e.__dom;if(n){var r=n.tagName,i=e.type;"linear"===i&&"linearGradient"===r||"radial"===i&&"radialGradient"===r?t.updateDom(e,e.__dom):(t.removeDom(e),t.add(e))}}))}},t.prototype.updateDom=function(e,t){if(Sm(e))t.setAttribute("x1",e.x+""),t.setAttribute("y1",e.y+""),t.setAttribute("x2",e.x2+""),t.setAttribute("y2",e.y2+"");else{if(!Tm(e))return void T("Illegal gradient type.");t.setAttribute("cx",e.x+""),t.setAttribute("cy",e.y+""),t.setAttribute("r",e.r+"")}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,r=0,i=n.length;r<i;++r){var o=this.createElement("stop");o.setAttribute("offset",100*n[r].offset+"%");var a=n[r].color;if(a.indexOf("rgba")>-1){var s=Vt(a)[3],u=Gt(a);o.setAttribute("stop-color","#"+u),o.setAttribute("stop-opacity",s+"")}else o.setAttribute("stop-color",n[r].color);t.appendChild(o)}e.__dom=t},t.prototype.markUsed=function(t){if(t.style){var n=t.style.fill;n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom),(n=t.style.stroke)&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom)}},t}(km);function Om(e){return e&&(!!e.image||!!e.svgElement)}var Mm=new yg,Em=function(e){function t(t,n){return e.call(this,t,n,["pattern"],"__pattern_in_use__")||this}return pe(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;R(["fill","stroke"],(function(r){var i=t.style[r];if(Om(i)){var o=n.getDefs(!0),a=Mm.get(i);a?o.contains(a)||n.addDom(a):a=n.add(i),n.markUsed(t);var s=a.getAttribute("id");e.setAttribute(r,"url(#"+s+")")}}))}},t.prototype.add=function(e){if(Om(e)){var t=this.createElement("pattern");return e.id=null==e.id?this.nextId++:e.id,t.setAttribute("id","zr"+this._zrId+"-pattern-"+e.id),t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(e,t),this.addDom(t),t}},t.prototype.update=function(e){if(Om(e)){var t=this;this.doUpdate(e,(function(){var n=Mm.get(e);t.updateDom(e,n)}))}},t.prototype.updateDom=function(e,t){var n=e.svgElement;if(n instanceof SVGElement)n.parentNode!==t&&(t.innerHTML="",t.appendChild(n),t.setAttribute("width",e.svgWidth+""),t.setAttribute("height",e.svgHeight+""));else{var r=void 0,i=t.getElementsByTagName("image");if(i.length){if(!e.image)return void t.removeChild(i[0]);r=i[0]}else e.image&&(r=this.createElement("image"));if(r){var o=void 0;if("string"===typeof e.image?o=e.image:e.image instanceof HTMLImageElement?o=e.image.src:e.image instanceof HTMLCanvasElement&&(o=e.image.toDataURL()),o){r.setAttribute("href",o),r.setAttribute("x","0"),r.setAttribute("y","0");var a=Ci(o,r,{dirty:function(){}},(function(e){t.setAttribute("width",e.width+""),t.setAttribute("height",e.height+"")}));a&&a.width&&a.height&&(t.setAttribute("width",a.width+""),t.setAttribute("height",a.height+"")),t.appendChild(r)}}}var s="translate("+(e.x||0)+", "+(e.y||0)+") rotate("+(e.rotation||0)/Math.PI*180+") scale("+(e.scaleX||1)+", "+(e.scaleY||1)+")";t.setAttribute("patternTransform",s),Mm.set(e,t)},t.prototype.markUsed=function(t){t.style&&(Om(t.style.fill)&&e.prototype.markDomUsed.call(this,Mm.get(t.style.fill)),Om(t.style.stroke)&&e.prototype.markDomUsed.call(this,Mm.get(t.style.stroke)))},t}(km);function Pm(e){var t=e.__clipPaths;return t&&t.length>0}var Im=function(e){function t(t,n){var r=e.call(this,t,n,"clipPath","__clippath_in_use__")||this;return r._refGroups={},r._keyDuplicateCount={},r}return pe(t,e),t.prototype.markAllUnused=function(){for(var t in e.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[t]);this._keyDuplicateCount={}},t.prototype._getClipPathGroup=function(e,t){if(Pm(e)){var n=e.__clipPaths,r=this._keyDuplicateCount,i=function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r=e[n];t.push(r.id)}return t.join(",")}(n);return Ag(n,t&&t.__clipPaths)&&(r[i]=r[i]||0,r[i]&&(i+="-"+r[i]),r[i]++),this._refGroups[i]||(this._refGroups[i]=this.createElement("g"))}},t.prototype.update=function(e,t){var n=this._getClipPathGroup(e,t);return n&&(this.markDomUsed(n),this.updateDom(n,e.__clipPaths)),n},t.prototype.updateDom=function(e,t){if(t&&t.length>0){var n=this.getDefs(!0),r=t[0],i=void 0,o=void 0;r._dom?(o=r._dom.getAttribute("id"),i=r._dom,n.contains(i)||n.appendChild(i)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",o),n.appendChild(i),r._dom=i),this.getSvgProxy(r).brush(r);var a=this.getSvgElement(r);i.innerHTML="",i.appendChild(a),e.setAttribute("clip-path","url(#"+o+")"),t.length>1&&this.updateDom(i,t.slice(1))}else e&&e.setAttribute("clip-path","none")},t.prototype.markUsed=function(t){var n=this;t.__clipPaths&&R(t.__clipPaths,(function(t){t._dom&&e.prototype.markDomUsed.call(n,t._dom)}))},t.prototype.removeUnused=function(){e.prototype.removeUnused.call(this);var t={};for(var n in this._refGroups){var r=this._refGroups[n];this.isDomUnused(r)?r.parentNode&&r.parentNode.removeChild(r):t[n]=r}this._refGroups=t},t}(km),Dm=function(e){function t(t,n){var r=e.call(this,t,n,["filter"],"__filter_in_use__","_shadowDom")||this;return r._shadowDomMap={},r._shadowDomPool=[],r}return pe(t,e),t.prototype._getFromPool=function(){var e=this._shadowDomPool.pop();if(!e){(e=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var t=this.createElement("feDropShadow");e.appendChild(t),this.addDom(e)}return e},t.prototype.update=function(e,t){if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(t.style)){var n=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(t),r=t._shadowDom=this._shadowDomMap[n];r||(r=this._getFromPool(),this._shadowDomMap[n]=r),this.updateDom(e,t,r)}else this.remove(e,t)},t.prototype.remove=function(e,t){null!=t._shadowDom&&(t._shadowDom=null,e.style.filter="")},t.prototype.updateDom=function(e,t,n){var r=n.children[0],i=t.style,o=t.getGlobalScale(),a=o[0],s=o[1];if(a&&s){var u=i.shadowOffsetX||0,l=i.shadowOffsetY||0,c=i.shadowBlur,f=i.shadowColor;r.setAttribute("dx",u/a+""),r.setAttribute("dy",l/s+""),r.setAttribute("flood-color",f);var d=c/2/a+" "+c/2/s;r.setAttribute("stdDeviation",d),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),t._shadowDom=n;var h=n.getAttribute("id");e.style.filter="url(#"+h+")"}},t.prototype.removeUnused=function(){if(this.getDefs(!1)){var e=this._shadowDomPool;for(var t in this._shadowDomMap){var n=this._shadowDomMap[t];e.push(n)}this._shadowDomMap={}}},t}(km);function Lm(e){return parseInt(e,10)}function Rm(e){return e instanceof ma?bm:e instanceof Ta?wm:e instanceof xa?_m:bm}function Nm(e,t){return t&&e&&t.parentNode!==e}function jm(e,t,n){if(Nm(e,t)&&n){var r=n.nextSibling;r?e.insertBefore(t,r):e.appendChild(t)}}function Bm(e,t){if(Nm(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function Fm(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function zm(e){return e.__svgEl}function Vm(e){return function(){T('In SVG mode painter not support method "'+e+'"')}}var Hm=function(){function e(e,t,n,r){this.type="svg",this.refreshHover=Vm("refreshHover"),this.pathToImage=Vm("pathToImage"),this.configLayer=Vm("configLayer"),this.root=e,this.storage=t,this._opts=n=M({},n||{});var i=tm("svg");i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("baseProfile","full"),i.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=tm("g");i.appendChild(o);var a=tm("g");i.appendChild(a),this._gradientManager=new Am(r,a),this._patternManager=new Em(r,a),this._clipPathManager=new Im(r,a),this._shadowManager=new Dm(r,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=i,this._svgRoot=a,this._backgroundRoot=o,this._viewport=s,e.appendChild(s),s.appendChild(i),this.resize(n.width,n.height),this._visibleList=[]}return e.prototype.getType=function(){return"svg"},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.getSvgRoot=function(){return this._svgRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},e.prototype.setBackgroundColor=function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=tm("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},e.prototype.createSVGElement=function(e){return tm(e)},e.prototype.paintOne=function(e){var t=Rm(e);return t&&t.brush(e),zm(e)},e.prototype._paintList=function(e){var t=this._gradientManager,n=this._patternManager,r=this._clipPathManager,i=this._shadowManager;t.markAllUnused(),n.markAllUnused(),r.markAllUnused(),i.markAllUnused();for(var o=this._svgRoot,a=this._visibleList,s=e.length,u=[],l=0;l<s;l++){var c=Rm(w=e[l]),f=zm(w);w.invisible||(!w.__dirty&&f||(c&&c.brush(w),(f=zm(w))&&w.style&&(t.update(w.style.fill),t.update(w.style.stroke),n.update(w.style.fill),n.update(w.style.stroke),i.update(f,w)),w.__dirty=0),f&&u.push(w))}var d,h,p,g,y,v=om(a,u);for(l=0;l<v.length;l++){if((b=v[l]).removed)for(var m=0;m<b.count;m++){f=zm(w=a[b.indices[m]]);Pm(w)?(p=f)&&p.parentNode&&p.parentNode.removeChild(p):Fm(o,f)}}for(l=0;l<v.length;l++){var b;if(!(b=v[l]).removed)for(m=0;m<b.count;m++){var w=u[b.indices[m]],x=r.update(w,g);x!==y&&(d=h,x&&(d?jm(o,x,d):Bm(o,x),h=x,d=null),y=x);f=zm(w);d?jm(y||o,f,d):Bm(y||o,f),d=f||d,y||(h=d),t.markUsed(w),t.addWithoutUpdate(f,w),n.markUsed(w),n.addWithoutUpdate(f,w),r.markUsed(w),g=w}}t.removeUnused(),n.removeUnused(),r.removeUnused(),i.removeUnused(),this._visibleList=u},e.prototype.resize=function(e,t){var n=this._viewport;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var i=n.style;i.width=e+"px",i.height=t+"px";var o=this._svgDom;o.setAttribute("width",e+""),o.setAttribute("height",t+"")}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||Lm(s[n])||Lm(a.style[n]))-(Lm(s[i])||0)-(Lm(s[o])||0)|0},e.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},e.prototype.clear=function(){var e=this._viewport;e&&e.parentNode&&e.parentNode.removeChild(e)},e.prototype.toDataURL=function(){this.refresh();var e=this._svgDom,t=e.outerHTML||(e.parentNode&&e.parentNode).innerHTML;return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t.replace(/></g,">\n\r<"))},e}();function Um(e){return null==e?0:e.length||1}function Gm(e){return e}var Jm=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||Gm,this._newKeyGetter=r||Gm,this.context=i,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],u=Um(s);if(u>1){var l=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(l,o)}else 1===u?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],u=n[s],l=r[s],c=Um(u),f=Um(l);if(c>1&&1===f)this._updateManyToOne&&this._updateManyToOne(l,u),r[s]=null;else if(1===c&&f>1)this._updateOneToMany&&this._updateOneToMany(l,u),r[s]=null;else if(1===c&&1===f)this._update&&this._update(l,u),r[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=Um(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],u=Um(s);0===u?(t[a]=o,i&&n.push(a)):1===u?t[a]=[s,o]:s.push(o)}}},e}();function Xm(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Wm(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var qm,Zm,Km,Ym,$m,Qm,eb,tb,nb,rb,ib,ob,ab,sb,ub=function(e){this.otherDims={},null!=e&&M(this,e)},lb=Math.floor,cb=W,fb=N,db={float:"undefined"===typeof Float64Array?Array:Float64Array,int:"undefined"===typeof Int32Array?Array:Int32Array,ordinal:Array,number:Array,time:Array},hb="undefined"===typeof Uint32Array?Array:Uint32Array,pb="undefined"===typeof Int32Array?Array:Int32Array,gb="undefined"===typeof Uint16Array?Array:Uint16Array,yb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],vb=["_extent","_approximateExtent","_rawExtent"],mb=function(){function e(e,t){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=$m,e=e||["x","y"];for(var n={},r=[],i={},o=0;o<e.length;o++){var a=e[o],s=G(a)?new ub({name:a}):a instanceof ub?a:new ub(a),u=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=u,s.coordDimIndex=0);var l=s.otherDims=s.otherDims||{};r.push(u),n[u]=s,s.index=o,s.createInvertedIndices&&(i[u]=[]),0===l.itemName&&(this._nameDimIdx=o,this._nameOrdinalMeta=s.ordinalMeta),0===l.itemId&&(this._idDimIdx=o,this._idOrdinalMeta=s.ordinalMeta)}this.dimensions=r,this._dimensionInfos=n,this.hostModel=t,this._dimensionsSummary=function(e){var t={},n=t.encode={},r=ue(),i=[],o=[],a=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};R(e.dimensions,(function(t){var s,u=e.getDimensionInfo(t),l=u.coordDim;if(l){0;var c=u.coordDimIndex;Xm(n,l)[c]=t,u.isExtraCoord||(r.set(l,1),"ordinal"!==(s=u.type)&&"time"!==s&&(i[0]=t),Xm(a.encode,l)[c]=u.index),u.defaultTooltip&&o.push(t)}hf.each((function(e,t){var r=Xm(n,t),i=u.otherDims[t];null!=i&&!1!==i&&(r[i]=u.name)}))}));var s=[],u={};r.each((function(e,t){var r=n[t];u[t]=r[0],s=s.concat(r)})),t.dataDimsOnCoord=s,t.encodeFirstDimNotExtra=u;var l=n.label;l&&l.length&&(i=l.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t}(this),this._invertedIndicesMap=i,this.userOutput=this._dimensionsSummary.userOutput}return e.prototype.getDimension=function(e){return"number"!==typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},e.prototype.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},e.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimensionsSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimensionsSummary.encode[e]||[]).slice()},e.prototype.initData=function(e,t,n){var r=yd(e)||L(e)?new kd(e,this.dimensions.length):e;this._rawData=r;var i=r.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||"typedArray"===i||!!r.fillStorage,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=qm[i],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=qm.arrayRows,this._rawExtent={},this._initDataFromProvider(0,r.count()),r.pure&&(this.hasItemOption=!1)},e.prototype.getProvider=function(){return this._rawData},e.prototype.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);var r=t.count();t.persistent||(r+=n),this._initDataFromProvider(n,r,!0)},e.prototype.appendValues=function(e,t){for(var n=this._storage,r=this.dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t?t.length:0),u=0;u<i;u++){var l=r[u];o[l]||(o[l]=ob()),Ym(n,this._dimensionInfos[l],s,!0)}for(var c=fb(r,(function(e){return o[e]})),f=this._storageArr=fb(r,(function(e){return n[e]})),d=[],h=a;h<s;h++){for(var p=h-a,g=0;g<i;g++){l=r[g];var y=this._dimValueGetterArrayRows(e[p]||d,l,p,g);f[g][h]=y;var v=c[g];y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}t&&(this._nameList[h]=t[p],this._dontMakeIdFromName||nb(this,h))}this._rawCount=this._count=s,this._extent={},Zm(this)},e.prototype._initDataFromProvider=function(e,t,n){if(!(e>=t)){for(var r=this._rawData,i=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,u=this._nameList,l=this._idList,c=this._rawExtent,f="original"===r.getSource().sourceFormat,d=0;d<a;d++){var h=o[d];c[h]||(c[h]=ob()),Ym(i,s[h],t,n)}var p=this._storageArr=fb(o,(function(e){return i[e]})),g=fb(o,(function(e){return c[e]}));if(r.fillStorage)r.fillStorage(e,t,p,g);else for(var y=[],v=e;v<t;v++){y=r.getItem(v,y);for(var m=0;m<a;m++){h=o[m];var b=p[m],w=this._dimValueGetter(y,h,v,m);b[v]=w;var x=g[m];w<x[0]&&(x[0]=w),w>x[1]&&(x[1]=w)}if(f&&!r.pure&&y){var _=y.name;null==u[v]&&null!=_&&(u[v]=$r(_,null));var k=y.id;null==l[v]&&null!=k&&(l[v]=$r(k,null))}this._dontMakeIdFromName||nb(this,v)}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},Zm(this)}},e.prototype.count=function(){return this._count},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=Km(this))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.getByDimIdx=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storageArr[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storage[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._storage[e];return n?n[t]:NaN},e.prototype.getValues=function(e,t){var n=[];H(e)||(t=e,e=this.dimensions);for(var r=0,i=e.length;r<i;r++)n.push(this.get(e[r],t));return n},e.prototype.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this.get(t[n],e)))return!1;return!0},e.prototype.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=ob();if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var u=t[this.getRawIndex(s)];u<o&&(o=u),u>a&&(a=u)}return r=[o,a],this._extent[e]=r,r},e.prototype.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){cb(e)?M(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getSum=function(e){var t=0;if(this._storage[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each(e,(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},e.prototype.indexOfName=function(e){for(var t=0,n=this.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._storage[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,u=0,l=this.count();u<l;u++){var c=t-r[this.getRawIndex(u)],f=Math.abs(c);f<=n&&((f<o||f===o&&c>=0&&a<0)&&(o=f,a=c,s=0),c===a&&(i[s++]=u))}return i.length=s,i},e.prototype.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var r=this.dimensions[n];t.push(this.get(r,e))}return t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=tb(this,this._nameDimIdx,this._nameOrdinalMeta,t)),null==n&&(n=""),n},e.prototype.getId=function(e){return eb(this,this.getRawIndex(e))},e.prototype.each=function(e,t,n,r){var i=this;if(this._count){"function"===typeof e&&(r=n,n=t,t=e,e=[]);var o=n||r||this,a=fb(rb(e),this.getDimension,this);0;for(var s=a.length,u=fb(a,(function(e){return i._dimensionInfos[e].index})),l=this._storageArr,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c);switch(s){case 0:t.call(o,c);break;case 1:t.call(o,l[u[0]][d],c);break;case 2:t.call(o,l[u[0]][d],l[u[1]][d],c);break;default:for(var h=0,p=[];h<s;h++)p[h]=l[u[h]][d];p[h]=c,t.apply(o,p)}}}},e.prototype.filterSelf=function(e,t,n,r){var i=this;if(this._count){"function"===typeof e&&(r=n,n=t,t=e,e=[]);var o=n||r||this,a=fb(rb(e),this.getDimension,this);0;for(var s=this.count(),u=new(Km(this))(s),l=[],c=a.length,f=0,d=fb(a,(function(e){return i._dimensionInfos[e].index})),h=d[0],p=this._storageArr,g=0;g<s;g++){var y=void 0,v=this.getRawIndex(g);if(0===c)y=t.call(o,g);else if(1===c){var m=p[h][v];y=t.call(o,m,g)}else{for(var b=0;b<c;b++)l[b]=p[d[b]][v];l[b]=g,y=t.apply(o,l)}y&&(u[f++]=v)}return f<s&&(this._indices=u),this._count=f,this._extent={},this.getRawIndex=this._indices?Qm:$m,this}},e.prototype.selectRange=function(e){var t=this,n=this._count;if(n){var r=[];for(var i in e)e.hasOwnProperty(i)&&r.push(i);0;var o=r.length;if(o){var a=this.count(),s=new(Km(this))(a),u=0,l=r[0],c=fb(r,(function(e){return t._dimensionInfos[e].index})),f=e[l][0],d=e[l][1],h=this._storageArr,p=!1;if(!this._indices){var g=0;if(1===o){for(var y=h[c[0]],v=0;v<n;v++){((x=y[v])>=f&&x<=d||isNaN(x))&&(s[u++]=g),g++}p=!0}else if(2===o){y=h[c[0]];var m=h[c[1]],b=e[r[1]][0],w=e[r[1]][1];for(v=0;v<n;v++){var x=y[v],_=m[v];(x>=f&&x<=d||isNaN(x))&&(_>=b&&_<=w||isNaN(_))&&(s[u++]=g),g++}p=!0}}if(!p)if(1===o)for(v=0;v<a;v++){var k=this.getRawIndex(v);((x=h[c[0]][k])>=f&&x<=d||isNaN(x))&&(s[u++]=k)}else for(v=0;v<a;v++){for(var S=!0,T=(k=this.getRawIndex(v),0);T<o;T++){var C=r[T];((x=h[c[T]][k])<e[C][0]||x>e[C][1])&&(S=!1)}S&&(s[u++]=this.getRawIndex(v))}return u<a&&(this._indices=s),this._count=u,this._extent={},this.getRawIndex=this._indices?Qm:$m,this}}},e.prototype.mapArray=function(e,t,n,r){"function"===typeof e&&(r=n,n=t,t=e,e=[]),n=n||r||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=fb(rb(e),this.getDimension,this);var a=ib(this,o),s=a._storage;a._indices=this._indices,a.getRawIndex=a._indices?Qm:$m;for(var u=[],l=o.length,c=this.count(),f=[],d=a._rawExtent,h=0;h<c;h++){for(var p=0;p<l;p++)f[p]=this.get(o[p],h);f[l]=h;var g=t&&t.apply(i,f);if(null!=g){"object"!==typeof g&&(u[0]=g,g=u);for(var y=this.getRawIndex(h),v=0;v<g.length;v++){var m=o[v],b=g[v],w=d[m],x=s[m];x&&(x[y]=b),b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}}}return a},e.prototype.downSample=function(e,t,n,r){for(var i=ib(this,[e]),o=i._storage,a=[],s=lb(1/t),u=o[e],l=this.count(),c=i._rawExtent[e],f=new(Km(this))(l),d=0,h=0;h<l;h+=s){s>l-h&&(s=l-h,a.length=s);for(var p=0;p<s;p++){var g=this.getRawIndex(h+p);a[p]=u[g]}var y=n(a),v=this.getRawIndex(Math.min(h+r(a,y)||0,l-1));u[v]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),f[d++]=v}return i._count=d,i._indices=f,i.getRawIndex=Qm,i},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=ib(this,[]),a=o._storage[e],s=this.count(),u=new(Km(this))(s),l=0,c=lb(1/t),f=this.getRawIndex(0);u[l++]=f;for(var d=1;d<s-1;d+=c){for(var h=Math.min(d+c,s-1),p=Math.min(d+2*c,s),g=(p+h)/2,y=0,v=h;v<p;v++){var m=a[k=this.getRawIndex(v)];isNaN(m)||(y+=m)}y/=p-h;var b=d,w=Math.min(d+c,s),x=d-1,_=a[f];n=-1,i=b;for(v=b;v<w;v++){var k;m=a[k=this.getRawIndex(v)];isNaN(m)||(r=Math.abs((x-g)*(m-_)-(x-v)*(y-_)))>n&&(n=r,i=k)}u[l++]=i,f=i}return u[l++]=this.getRawIndex(s-1),o._count=l,o._indices=u,o.getRawIndex=Qm,o},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new ac(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Jm(e?e.getIndices():[],this.getIndices(),(function(t){return eb(e,t)}),(function(e){return eb(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},cb(e)?M(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(H(i=this.getVisual(t))?i=i.slice():cb(i)&&(i=M({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,cb(t)?M(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){if(cb(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?M(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel;if(t){var r=Ja(t);r.dataIndex=e,r.dataType=this.dataType,r.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(ab,t)}this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){R(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){t||(t=new e(fb(this.dimensions,this.getDimensionInfo,this),this.hostModel));if(t._storage=this._storage,t._storageArr=this._storageArr,sb(t,this),this._indices){var n=this._indices.constructor;if(n===Array){var r=this._indices.length;t._indices=new n(r);for(var i=0;i<r;i++)t._indices[i]=this._indices[i]}else t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?Qm:$m,t},e.prototype.wrapMethod=function(e,t){var n=this[e];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(te(arguments)))})},e.internalField=function(){function t(e,t,n,r){return Hd(e[r],this._dimensionInfos[t])}function n(e){var t=e.constructor;return t===Array?e.slice():new t(e)}qm={arrayRows:t,objectRows:function(e,t,n,r){return Hd(e[t],this._dimensionInfos[t])},keyedColumns:t,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return!this._rawData.pure&&function(e){return W(e)&&!(e instanceof Array)}(e)&&(this.hasItemOption=!0),Hd(i instanceof Array?i[r]:i,this._dimensionInfos[t])},typedArray:function(e,t,n,r){return e[r]}},Zm=function(e){var t=e._invertedIndicesMap;R(t,(function(n,r){var i=e._dimensionInfos[r].ordinalMeta;if(i){n=t[r]=new pb(i.categories.length);for(var o=0;o<n.length;o++)n[o]=-1;for(o=0;o<e._count;o++)n[e.get(r,o)]=o}}))},tb=function(e,t,n,r){var i,o=e._storageArr[t];return o&&(i=o[r],n&&n.categories.length&&(i=n.categories[i])),$r(i,null)},Km=function(e){return e._rawCount>65535?hb:gb},Ym=function(e,t,n,r){var i=db[t.type],o=t.name;if(r){var a=e[o],s=a&&a.length;if(s!==n){for(var u=new i(n),l=0;l<s;l++)u[l]=a[l];e[o]=u}}else e[o]=new i(n)},$m=function(e){return e},Qm=function(e){return e<this._count&&e>=0?this._indices[e]:-1},eb=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=tb(e,e._idDimIdx,e._idOrdinalMeta,t)),null==n&&(n="e\0\0"+t),n},rb=function(e){return H(e)||(e=null!=e?[e]:[]),e},function(e,t){for(var n=0;n<t.length;n++)e._dimensionInfos[t[n]]},ib=function(t,r){var i=t.dimensions,o=new e(fb(i,t.getDimensionInfo,t),t.hostModel);sb(o,t);for(var a=o._storage={},s=t._storage,u=o._storageArr=[],l=0;l<i.length;l++){var c=i[l];s[c]&&(I(r,c)>=0?(a[c]=n(s[c]),o._rawExtent[c]=ob(),o._extent[c]=null):a[c]=s[c],u.push(a[c]))}return o},ob=function(){return[1/0,-1/0]},ab=function(e){var t=Ja(e),n=Ja(this);t.seriesIndex=n.seriesIndex,t.dataIndex=n.dataIndex,t.dataType=n.dataType},sb=function(e,t){R(yb.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,R(vb,(function(n){e[n]=C(t[n])})),e._calculationInfo=M({},t._calculationInfo)},nb=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=tb(e,i,e._nameOrdinalMeta,t)),null==s&&null!=o&&(r[t]=s=tb(e,o,e._idOrdinalMeta,t)),null==s&&null!=a){var u=e._nameRepeatCount,l=u[a]=(u[a]||0)+1;s=a,l>1&&(s+="__ec__"+l),r[t]=s}}}(),e}();function bb(e,t,n){if(n||null!=t.get(e)){for(var r=0;null!=t.get(e+r);)r++;e+=r}return t.set(e,!0),e}var wb=function(e,t,n){yd(t)||(t=md(t)),n=n||{},e=(e||[]).slice();for(var r=(n.dimsDef||[]).slice(),i=ue(),o=ue(),a=[],s=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,(function(e){var t;W(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}(t,e,r,n.dimCount),u=0;u<s;u++){var l=r[u],c=r[u]=M({},W(l)?l:{name:l}),f=c.name,d=a[u]=new ub;null!=f&&null==i.get(f)&&(d.name=d.displayName=f,i.set(f,u)),null!=c.type&&(d.type=c.type),null!=c.displayName&&(d.displayName=c.displayName)}var h=n.encodeDef;!h&&n.encodeDefaulter&&(h=n.encodeDefaulter(t,s));var p=ue(h);p.each((function(e,t){var n=Jr(e).slice();if(1===n.length&&!G(n[0])&&n[0]<0)p.set(t,!1);else{var r=p.set(t,[]);R(n,(function(e,n){var o=G(e)?i.get(e):e;null!=o&&o<s&&(r[n]=o,y(a[o],t,n))}))}}));var g=0;function y(e,t,n){null!=hf.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,o.set(t,!0))}R(e,(function(e){var t,n,r,i;if(G(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=C(i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=p.get(t);if(!1!==s){if(!(s=Jr(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a.length&&null!=a[g].coordDim;)g++;g<a.length&&s.push(g++)}R(s,(function(e,o){var s=a[e];if(y(E(s,i),t,o),null==s.name&&n){var u=n[o];!W(u)&&(u={name:u}),s.name=s.displayName=u.name,s.defaultTooltip=u.defaultTooltip}r&&E(s.otherDims,r)}))}}));var v=n.generateCoord,m=n.generateCoordCount,b=null!=m;m=v?m||1:0;for(var w=v||"value",x=0;x<s;x++){null==(d=a[x]=a[x]||new ub).coordDim&&(d.coordDim=bb(w,o,b),d.coordDimIndex=0,(!v||m<=0)&&(d.isExtraCoord=!0),m--),null==d.name&&(d.name=bb(d.coordDim,i,!1)),null!=d.type||xf(t,x)!==pf&&(!d.isExtraCoord||null==d.otherDims.itemName&&null==d.otherDims.seriesName)||(d.type="ordinal")}return a};function xb(e,t){return wb((t=t||{}).coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}var _b=function(e){this.coordSysDims=[],this.axisMap=ue(),this.categoryAxisMap=ue(),this.coordSysName=e};var kb={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",ai).models[0],o=e.getReferringComponents("yAxis",ai).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Sb(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Sb(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",ai).models[0];t.coordSysDims=["single"],n.set("single",i),Sb(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",ai).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Sb(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Sb(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();R(o.parallelAxisIndex,(function(e,o){var s=i.getComponent("parallelAxis",e),u=a[o];n.set(u,s),Sb(s)&&(r.set(u,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function Sb(e){return"category"===e.get("type")}function Tb(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Cb(e,t){return Tb(e,t)?e.getCalculationInfo("stackResultDimension"):t}var Ab=function(e,t,n){n=n||{},yd(e)||(e=md(e));var r,i=t.get("coordinateSystem"),o=zf.get(i),a=function(e){var t=e.get("coordinateSystem"),n=new _b(t),r=kb[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t);a&&a.coordSysDims&&(r=N(a.coordSysDims,(function(e){var t={name:e},n=a.axisMap.get(e);if(n){var r=n.get("type");t.type=Wm(r)}return t}))),r||(r=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,u,l=n.useEncodeDefaulter,c=xb(e,{coordDimensions:r,generateCoord:n.generateCoord,encodeDefaulter:U(l)?l:l?V(mf,r,t):null});a&&R(c,(function(e,t){var r=e.coordDim,i=a.categoryAxisMap.get(r);i&&(null==s&&(s=t),e.ordinalMeta=i.getOrdinalMeta(),n.createInvertedIndices&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(u=!0)})),u||null==s||(c[s].otherDims.itemName=0);var f=function(e,t,n){var r,i,o,a,s=(n=n||{}).byIndex,u=n.stackedCoordDimension,l=!(!e||!e.get("stack"));if(R(t,(function(e,n){G(e)&&(t[n]=e={name:e}),l&&!e.isExtraCoord&&(s||r||!e.ordinalMeta||(r=e),i||"ordinal"===e.type||"time"===e.type||u&&u!==e.coordDim||(i=e))})),!i||s||r||(s=!0),i){o="__\0ecstackresult",a="__\0ecstackedover",r&&(r.createInvertedIndices=!0);var c=i.coordDim,f=i.type,d=0;R(t,(function(e){e.coordDim===c&&d++})),t.push({name:o,coordDim:c,coordDimIndex:d,type:f,isExtraCoord:!0,isCalculationCoord:!0}),d++,t.push({name:a,coordDim:a,coordDimIndex:d,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:i&&i.name,stackedByDimension:r&&r.name,isStackedByIndex:s,stackedOverDimension:a,stackResultDimension:o}}(t,c),d=new mb(c,t);d.setCalculationInfo(f);var h=null!=s&&function(e){if("original"===e.sourceFormat){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return null!=t&&!H(qr(t))}}(e)?function(e,t,n,r){return r===s?n:this.defaultDimValueGetter(e,t,n,r)}:null;return d.hasItemOption=!1,d.initData(e,null,h),d},Ob=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.getInitialData=function(e){return Ab(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new xr,n=Tg("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i="none"===r?"circle":r,o=.8*e.itemHeight,a=Tg(i,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill,e.symbolKeepAspect);return t.add(a),a.setStyle(e.itemStyle),i.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0},t}(Ih);function Mb(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Ld(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Ld(e,t,n[a]));return o.join(" ")}}function Eb(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!H(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionInfo(n[i]);o&&r.push(t[o.index])}return r.join(" ")}function Pb(e,t){this.parent.drift(e,t)}var Ib=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return a(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=Tg(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Pb,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ps(this.childAt(0))},t.prototype.downplay=function(){gs(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),u=o!==this._symbolType,l=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{(d=this.childAt(0)).silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};l?d.attr(f):vl(d,f,a,n)}if(this._updateCommon(e,n,s,r,i),u){var d=this.childAt(0);if(!l){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,ml(d,f,a,n)}}l&&this.childAt(0).stopAnimation("remove"),this._seriesModel=a},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,u,l,c,f,d,h=this.childAt(0),p=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,u=r.focus,l=r.blurScope,c=r.labelStatesModels,f=r.hoverScale,d=r.cursorStyle),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),y=g.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=g.getModel(["select","itemStyle"]).getItemStyle(),a=g.getModel(["blur","itemStyle"]).getItemStyle(),u=y.get("focus"),l=y.get("blurScope"),c=Fl(g),f=y.getShallow("scale"),d=g.getShallow("cursor")}var v=e.getItemVisual(t,"symbolRotate");h.attr("rotation",(v||0)*Math.PI/180||0);var m=e.getItemVisual(t,"symbolOffset")||0;m&&(H(m)||(m=[m,m]),h.x=Or(m[0],n[0]),h.y=Or(Q(m[1],m[0])||0,n[1])),d&&h.attr("cursor",d);var b=e.getItemVisual(t,"style"),w=b.fill;if(h instanceof Ta){var x=h.style;h.useStyle(M({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},b))}else h.__isEmptyBrush?h.useStyle(M({},b)):h.useStyle(b),h.style.decal=null,h.setColor(w,i&&i.symbolInnerColor),h.style.strokeNoScale=!0;var _=e.getItemVisual(t,"liftZ"),k=this._z2;null!=_?null==k&&(this._z2=h.z2,h.z2+=_):null!=k&&(h.z2=k,this._z2=null);var S=i&&i.useNameLabel;Bl(h,c,{labelFetcher:p,labelDataIndex:t,defaultText:function(t){return S?e.getName(t):Mb(e,t)},inheritColor:w,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=h.ensureState("emphasis");if(T.style=o,h.ensureState("select").style=s,h.ensureState("blur").style=a,f){var C=Math.max(1.1,3/this._sizeY);T.scaleX=this._sizeX*C,T.scaleY=this._sizeY*C}this.setSymbolScale(1),As(this,u,l)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t){var n=this.childAt(0),r=this._seriesModel,i=Ja(this).dataIndex,o=t&&t.animation;if(this.silent=n.silent=!0,t&&t.fadeLabel){var a=n.getTextContent();a&&bl(a,{style:{opacity:0}},r,{dataIndex:i,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();bl(n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return H(n)?n.slice():[+n,+n]},t}(xr);function Db(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function Lb(e){return null==e||W(e)||(e={isIgnore:e}),e||{}}function Rb(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),hoverScale:n.get("scale"),labelStatesModels:Fl(t),cursorStyle:t.get("cursor")}}var Nb=function(){function e(e){this.group=new xr,this._SymbolCtor=e||Ib}return e.prototype.updateData=function(e,t){t=Lb(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=Rb(e),u={disableAnimation:a},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=l(r);if(Db(e,i,r,t)){var a=new o(e,r,s,u);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,f){var d=i.getItemGraphicEl(f),h=l(c);if(Db(e,h,c,t)){if(d){d.updateData(e,c,s,u);var p={x:h[0],y:h[1]};a?d.attr(p):vl(d,p,r)}else(d=new o(e,c)).setPosition(h);n.add(d),e.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}))})).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.isPersistent=function(){return!0},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Rb(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}n=Lb(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Db(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a)}}},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()},e}();function jb(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,u=t.mapDimension(s),l=t.mapDimension(a),c="x"===s||"radius"===s?1:0,f=N(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,h=t.getCalculationInfo("stackResultDimension");return Tb(t,f[0])&&(d=!0,f[0]=h),Tb(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:u,baseDim:l,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Bb(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var Fb="undefined"!==typeof Float32Array,zb=Fb?Float32Array:Array;function Vb(e){return H(e)?Fb?new Float32Array(e):e:new zb(e)}var Hb=Math.min,Ub=Math.max;function Gb(e,t){return isNaN(e)||isNaN(t)}function Jb(e,t,n,r,i,o,a,s,u){for(var l,c,f,d,h,p,g=n,y=0;y<r;y++){var v=t[2*g],m=t[2*g+1];if(g>=i||g<0)break;if(Gb(v,m)){if(u){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v,m),f=v,d=m;else{var b=v-l,w=m-c;if(b*b+w*w<.5){g+=o;continue}if(a>0){var x=g+o,_=t[2*x],k=t[2*x+1],S=y+1;if(u)for(;Gb(_,k)&&S<r;)S++,_=t[2*(x+=o)],k=t[2*x+1];var T=.5,C=0,A=0,O=void 0,M=void 0;if(S>=r||Gb(_,k))h=v,p=m;else{C=_-l,A=k-c;var E=v-l,P=_-v,I=m-c,D=k-m,L=void 0,R=void 0;"x"===s?(L=Math.abs(E),R=Math.abs(P),h=v-L*a,p=m,O=v+L*a,M=m):"y"===s?(L=Math.abs(I),R=Math.abs(D),h=v,p=m-L*a,O=v,M=m+L*a):(L=Math.sqrt(E*E+I*I),h=v-C*a*(1-(T=(R=Math.sqrt(P*P+D*D))/(R+L))),p=m-A*a*(1-T),M=m+A*a*T,O=Hb(O=v+C*a*T,Ub(_,v)),M=Hb(M,Ub(k,m)),O=Ub(O,Hb(_,v)),p=m-(A=(M=Ub(M,Hb(k,m)))-m)*L/R,h=Hb(h=v-(C=O-v)*L/R,Ub(l,v)),p=Hb(p,Ub(c,m)),O=v+(C=v-(h=Ub(h,Hb(l,v))))*R/L,M=m+(A=m-(p=Ub(p,Hb(c,m))))*R/L)}e.bezierCurveTo(f,d,h,p,v,m),f=O,d=M}else e.lineTo(v,m)}l=v,c=m,g+=o}return y}var Xb=function(){this.smooth=0,this.smoothConstraint=!0},Wb=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Xb},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&Gb(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Gb(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Jb(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Yo.CMD,a="x"===t,s=[],u=0;u<i.length;){var l=void 0,c=void 0,f=void 0,d=void 0,h=void 0,p=void 0,g=void 0;switch(i[u++]){case o.M:n=i[u++],r=i[u++];break;case o.L:if(l=i[u++],c=i[u++],(g=a?(e-n)/(l-n):(e-r)/(c-r))<=1&&g>=0){var y=a?(c-r)*g+r:(l-n)*g+n;return a?[e,y]:[y,e]}n=l,r=c;break;case o.C:l=i[u++],c=i[u++],f=i[u++],d=i[u++],h=i[u++],p=i[u++];var v=a?oo(n,l,f,h,e,s):oo(r,c,d,p,e,s);if(v>0)for(var m=0;m<v;m++){var b=s[m];if(b<=1&&b>=0){y=a?ro(r,c,d,p,b):ro(n,l,f,h,b);return a?[e,y]:[y,e]}}n=h,r=p}}},t}(ma),qb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(Xb),Zb=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return a(t,e),t.prototype.getDefaultShape=function(){return new qb},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&Gb(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Gb(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Jb(e,n,i,o,o,1,t.smooth,a,t.connectNulls);Jb(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(ma);function Kb(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,u=o.width,l=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,u+=c,l+=c,a=Math.floor(a),u=Math.round(u);var f=new Da({shape:{x:a,y:s,width:u,height:l}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),p=d.inverse;h?(p&&(f.shape.x+=u),f.shape.width=0):(p||(f.shape.y+=l),f.shape.height=0),ml(f,{shape:{width:u,height:l,x:a,y:s}},n,null,r,"function"===typeof i?function(e){i(e,f)}:null)}return f}function Yb(e,t,n){var r=e.getArea(),i=Mr(r.r0,1),o=Mr(r.r,1),a=new bu({shape:{cx:Mr(e.cx,1),cy:Mr(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,ml(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function $b(e,t,n,r,i){return e?"polar"===e.type?Yb(e,t,n):"cartesian2d"===e.type?Kb(e,t,n,r,i):null:null}function Qb(e,t){return e.type===t}function ew(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function tw(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function nw(e,t){var n=tw(e),r=n[0],i=n[1],o=tw(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function rw(e){return"number"===typeof e?e:e?.5:0}function iw(e,t,n){for(var r=t.getBaseAxis(),i="x"===r.dim||"radius"===r.dim?0:1,o=[],a=0,s=[],u=[],l=[];a<e.length-2;a+=2)switch(l[0]=e[a+2],l[1]=e[a+3],u[0]=e[a],u[1]=e[a+1],o.push(u[0],u[1]),n){case"end":s[i]=l[i],s[1-i]=u[1-i],o.push(s[0],s[1]);break;case"middle":var c=(u[i]+l[i])/2,f=[];s[i]=f[i]=c,s[1-i]=u[1-i],f[1-i]=l[1-i],o.push(s[0],s[1]),o.push(f[0],f[1]);break;default:s[i]=u[i],s[1-i]=l[1-i],o.push(s[0],s[1])}return o.push(e[a++],e[a++]),o}function ow(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*Ib.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return R(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function aw(e,t){return[e[2*t],e[2*t+1]]}function sw(e,t,n,r){if(Qb(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("show"),a=i.get("valueAnimation"),s=r.getData(),u={lastFrameIndex:0},l=o?function(n,r){e._endLabelOnDuring(n,r,s,u,a,i,t)}:null,c=t.getBaseAxis().isHorizontal(),f=Kb(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=u.originalX&&t.attr({x:u.originalX,y:u.originalY})}),l);if(!r.get("clip",!0)){var d=f.shape,h=Math.max(d.width,d.height);c?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,f),f}return Yb(t,n,r)}var uw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.init=function(){var e=new xr,t=new Nb;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),u=e.getModel("areaStyle"),l=a.getLayout("points")||[],c="polar"===i.type,f=this._coordSys,d=this._symbolDraw,h=this._polyline,p=this._polygon,g=this._lineGroup,y=e.get("animation"),v=!u.isEmpty(),m=u.get("origin"),b=jb(i,a,m),w=v&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=Vb(2*r),o=0;o<r;o++){var a=Bb(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,b),x=e.get("showSymbol"),_=x&&!c&&ow(e,a,i),k=this._data;k&&k.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),k.setItemGraphicEl(t,null))})),x||d.remove(),o.add(g);var S,T=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(S=i.getArea()).width?(S.x-=.1,S.y-=.1,S.width+=.2,S.height+=.2):S.r0&&(S.r0-=.5,S.r+=.5)),this._clipShapeForSymbol=S;var C=function(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var r,i,o=n.length-1;o>=0;o--){var a=n[o].dimension,s=e.dimensions[a],u=e.getDimensionInfo(s);if("x"===(r=u&&u.coordDim)||"y"===r){i=n[o];break}}if(i){var l=t.getAxis(r),c=N(i.stops,(function(e){return{offset:0,coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),f=c.length,d=i.outerColors.slice();f&&c[0].coord>c[f-1].coord&&(c.reverse(),d.reverse());var h=c[0].coord-10,p=c[f-1].coord+10,g=p-h;if(g<.001)return"transparent";R(c,(function(e){e.offset=(e.coord-h)/g})),c.push({offset:f?c[f-1].offset:.5,color:d[1]||"transparent"}),c.unshift({offset:f?c[0].offset:.5,color:d[0]||"transparent"});var y=new Ju(0,0,0,0,c,!0);return y[r]=h,y[r+"2"]=p,y}}}(a,i)||a.getVisual("style")[a.getVisual("drawType")];h&&f.type===i.type&&T===this._step?(v&&!p?p=this._newPolygon(l,w):p&&!v&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Wc(C)),g.setClipPath(sw(this,i,!1,e)),x&&d.updateData(a,{isIgnore:_,clipShape:S,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),ew(this._stackedOnPoints,w)&&ew(this._points,l)||(y?this._doUpdateAnimation(a,w,i,n,T,m):(T&&(l=iw(l,i,T),w&&(w=iw(w,i,T))),h.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:w})))):(x&&d.updateData(a,{isIgnore:_,clipShape:S,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),y&&this._initSymbolLabelAnimation(a,i,S),T&&(l=iw(l,i,T),w&&(w=iw(w,i,T))),h=this._newPolyline(l),v&&(p=this._newPolygon(l,w)),c||this._initOrUpdateEndLabel(e,i,Wc(C)),g.setClipPath(sw(this,i,!0,e)));var A=e.get(["emphasis","focus"]),O=e.get(["emphasis","blurScope"]);(h.useStyle(E(s.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),Ps(h,e,"lineStyle"),h.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(h.getState("emphasis").style.lineWidth=+h.style.lineWidth+1);Ja(h).seriesIndex=e.seriesIndex,As(h,A,O);var M=rw(e.get("smooth")),P=e.get("smoothMonotone"),I=e.get("connectNulls");if(h.setShape({smooth:M,smoothMonotone:P,connectNulls:I}),p){var D=a.getCalculationInfo("stackedOnSeries"),L=0;p.useStyle(E(u.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),D&&(L=rw(D.get("smooth"))),p.setShape({smooth:M,stackedOnSmooth:L,smoothMonotone:P,connectNulls:I}),Ps(p,e,"areaStyle"),Ja(p).seriesIndex=e.seriesIndex,As(p,A,O)}var j=function(e){r._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=j)})),this._polyline.onHoverStateChange=j,this._data=a,this._coordSys=i,this._stackedOnPoints=w,this._points=l,this._step=T,this._valueOrigin=m},t.prototype.dispose=function(){},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=ti(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var u=a[2*o],l=a[2*o+1];if(isNaN(u)||isNaN(l))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,l))return;(s=new Ib(i,o)).x=u,s.y=l,s.setZ(e.get("zlevel"),e.get("z"));var c=s.getSymbolPath().getTextContent();c&&(c.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Gh.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=ti(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Gh.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;ls(this._polyline,e),t&&ls(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Wb({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Zb({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,u=s.get("animationDuration");"function"===typeof u&&(u=u(null));var l=s.get("animationDelay")||0,c="function"===typeof l?l(null):l;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var f=[e.x,e.y],d=void 0,h=void 0,p=void 0;if(i){var g=n,y=t.pointToCoord(f);r?(d=g.startAngle,h=g.endAngle,p=-y[1]/180*Math.PI):(d=g.r0,h=g.r,p=y[0])}else{var v=n;r?(d=v.x,h=v.x+v.width,p=e.x):(d=v.y+v.height,h=v.y,p=e.y)}var m=h===d?0:(p-d)/(h-d);a&&(m=1-m);var b="function"===typeof l?l(o):u*m+c,w=s.getSymbolPath(),x=w.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(r.get("show")){var i=e.getData(),o=this._polyline,a=this._endLabel;a||((a=this._endLabel=new Ga({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=function(e){for(var t,n,r=e.length/2;r>0&&(t=e[2*r-2],n=e[2*r-1],isNaN(t)||isNaN(n));r--);return r-1}(i.getLayout("points"));s>=0&&(Bl(o,Fl(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,n){return null!=n?Eb(i,n):Mb(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,u=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout("points"),c=n.hostModel,f=c.get("connectNulls"),d=o.get("precision"),h=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,v=t.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?h:0)*(y?-1:1),w=(g?0:-h)*(y?-1:1),x=g?"x":"y",_=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,u=-1,l=0;l<o;l++)if(i=e[2*l+a],!isNaN(i)&&!isNaN(e[2*l+1-a]))if(0!==l){if(r<=t&&i>=t||r>=t&&i<=t){u=l;break}s=l,r=i}else r=i;return{range:[s,u],t:(t-r)/(i-r)}}(l,m,x),k=_.range,S=k[1]-k[0],T=void 0;if(S>=1){if(S>1&&!f){var C=aw(l,k[0]);s.attr({x:C[0]+b,y:C[1]+w}),i&&(T=c.getRawValue(k[0]))}else{(C=u.getPointOn(m,x))&&s.attr({x:C[0]+b,y:C[1]+w});var A=c.getRawValue(k[0]),O=c.getRawValue(k[1]);i&&(T=fi(n,d,A,O,_.t))}r.lastFrameIndex=k[0]}else{var M=1===e||r.lastFrameIndex>0?k[0]:0;C=aw(l,M);i&&(T=c.getRawValue(M)),s.attr({x:C[0]+b,y:C[1]+w})}i&&Wl(s).setLabelText(T)}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o){var a=this._polyline,s=this._polygon,u=e.hostModel,l=function(e,t,n,r,i,o,a,s){for(var u=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),l=[],c=[],f=[],d=[],h=[],p=[],g=[],y=jb(i,t,a),v=(jb(o,e,s),e.getLayout("points")||[]),m=t.getLayout("points")||[],b=0;b<u.length;b++){var w=u[b],x=!0,_=void 0,k=void 0;switch(w.cmd){case"=":_=2*w.idx,k=2*w.idx1;var S=v[_],T=v[_+1],C=m[k],A=m[k+1];(isNaN(S)||isNaN(T))&&(S=C,T=A),l.push(S,T),c.push(C,A),f.push(n[_],n[_+1]),d.push(r[k],r[k+1]),g.push(t.getRawIndex(w.idx1));break;case"+":var O=w.idx,M=y.dataDimsForPoint,E=i.dataToPoint([t.get(M[0],O),t.get(M[1],O)]);k=2*O,l.push(E[0],E[1]),c.push(m[k],m[k+1]);var P=Bb(y,i,t,O);f.push(P[0],P[1]),d.push(r[k],r[k+1]),g.push(t.getRawIndex(O));break;case"-":x=!1}x&&(h.push(w),p.push(p.length))}p.sort((function(e,t){return g[e]-g[t]}));var I=l.length,D=Vb(I),L=Vb(I),R=Vb(I),N=Vb(I),j=[];for(b=0;b<p.length;b++){var B=p[b],F=2*b,z=2*B;D[F]=l[z],D[F+1]=l[z+1],L[F]=c[z],L[F+1]=c[z+1],R[F]=f[z],R[F+1]=f[z+1],N[F]=d[z],N[F+1]=d[z+1],j[b]=h[B]}return{current:D,next:L,stackedOnCurrent:R,stackedOnNext:N,status:j}}(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),c=l.current,f=l.stackedOnCurrent,d=l.next,h=l.stackedOnNext;if(i&&(c=iw(l.current,n,i),f=iw(l.stackedOnCurrent,n,i),d=iw(l.next,n,i),h=iw(l.stackedOnNext,n,i)),nw(c,d)>3e3||s&&nw(f,h)>3e3)return a.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:h}));a.shape.__points=l.current,a.shape.points=c;var p={shape:{points:d}};l.current!==c&&(p.shape.__points=l.next),a.stopAnimation(),vl(a,p,u),s&&(s.setShape({points:c,stackedOnPoints:f}),s.stopAnimation(),vl(s,{shape:{stackedOnPoints:h}},u),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var g=[],y=l.status,v=0;v<y.length;v++){if("="===y[v].cmd){var m=e.getItemGraphicEl(y[v].idx1);m&&g.push({el:m,ptIdx:v})}}a.animators&&a.animators.length&&a.animators[0].during((function(){s&&s.dirtyShape();for(var e=a.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=2*g[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Gh);function lw(e,t){return{seriesType:e,plan:Rh(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(r){var a=N(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,u=n.getCalculationInfo("stackResultDimension");Tb(n,a[0])&&(a[0]=u),Tb(n,a[1])&&(a[1]=u);var l=n.getDimensionInfo(a[0]),c=n.getDimensionInfo(a[1]),f=l&&l.index,d=c&&c.index;return s&&{progress:function(e,t){for(var n=e.end-e.start,i=o&&Vb(n*s),a=[],u=[],l=e.start,c=0;l<e.end;l++){var h=void 0;if(1===s){var p=t.getByDimIdx(f,l);h=r.dataToPoint(p,null,u)}else a[0]=t.getByDimIdx(f,l),a[1]=t.getByDimIdx(d,l),h=r.dataToPoint(a,null,u);o?(i[c++]=h[0],i[c++]=h[1]):t.setItemLayout(l,h.slice())}o&&t.setLayout("points",i)}}}}}}var cw={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},fw=function(e){return Math.round(e.length/2)};function dw(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),u=o.getOtherAxis(s),l=s.getExtent(),c=n.getDevicePixelRatio(),f=Math.abs(l[1]-l[0])*(c||1),d=Math.round(a/f);if(d>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(u.dim),1/d));var h=void 0;"string"===typeof i?h=cw[i]:"function"===typeof i&&(h=i),h&&e.setData(r.downSample(r.mapDimension(u.dim),1/d,h,fw))}}}}}var hw="undefined"!==typeof Float32Array?Float32Array:Array;function pw(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function gw(e){return e.dim+e.index}function yw(e,t){var n=[];return t.eachSeriesByType(e,(function(e){_w(e)&&!kw(e)&&n.push(e)})),n}function vw(e){var t=function(e){var t={};R(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.mapDimension(n.dim),a=0,s=r.count();a<s;++a){var u=r.get(o,a);t[i]?t[i].push(u):t[i]=[u]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort((function(e,t){return e-t}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(e),n=[];return R(e,(function(e){var r,i=e.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=t[a],u=Math.abs(o[1]-o[0]),l=i.scale.getExtent(),c=Math.abs(l[1]-l[0]);r=s?u/c*s:u}else{var f=e.getData();r=Math.abs(o[1]-o[0])/f.count()}var d=Or(e.get("barWidth"),r),h=Or(e.get("barMaxWidth"),r),p=Or(e.get("barMinWidth")||1,r),g=e.get("barGap"),y=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:h,barMinWidth:p,barGap:g,barCategoryGap:y,axisKey:gw(i),stackId:pw(e)})})),mw(n)}function mw(e){var t={};R(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var u=e.barWidth;u&&!a[s].width&&(a[s].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var l=e.barMaxWidth;l&&(a[s].maxWidth=l);var c=e.barMinWidth;c&&(a[s].minWidth=c);var f=e.barGap;null!=f&&(o.gap=f);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return R(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=F(r).length;o=Math.max(35-4*a,15)+"%"}var s=Or(o,i),u=Or(e.gap,1),l=e.remainedWidth,c=e.autoWidthCount,f=(l-s)/(c+(c-1)*u);f=Math.max(f,0),R(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+u*r,c--}else{var r=f;t&&t<r&&(r=Math.min(t,l)),n&&n>r&&(r=n),r!==f&&(e.width=r,l-=r+u*r,c--)}})),f=(l-s)/(c+(c-1)*u),f=Math.max(f,0);var d,h=0;R(r,(function(e,t){e.width||(e.width=f),d=e,h+=e.width*(1+u)})),d&&(h-=d.width*u);var p=-h/2;R(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:p,width:e.width},p+=e.width*(1+u)}))})),n}function bw(e,t,n){if(e&&t){var r=e[gw(t)];return null!=r&&null!=n?r[pw(n)]:r}}function ww(e,t){var n=yw(e,t),r=vw(n),i={};R(n,(function(e){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=pw(e),s=r[gw(o)][a],u=s.offset,l=s.width,c=n.getOtherAxis(o),f=e.get("barMinHeight")||0;i[a]=i[a]||[],t.setLayout({bandWidth:s.bandWidth,offset:u,size:l});for(var d=t.mapDimension(c.dim),h=t.mapDimension(o.dim),p=Tb(t,d),g=c.isHorizontal(),y=Sw(o,c,p),v=0,m=t.count();v<m;v++){var b=t.get(d,v),w=t.get(h,v),x=b>=0?"p":"n",_=y;p&&(i[a][w]||(i[a][w]={p:y,n:y}),_=i[a][w][x]);var k,S=void 0,T=void 0,C=void 0,A=void 0;if(g)S=_,T=(k=n.dataToPoint([b,w]))[1]+u,C=k[0]-y,A=l,Math.abs(C)<f&&(C=(C<0?-1:1)*f),isNaN(C)||p&&(i[a][w][x]+=C);else S=(k=n.dataToPoint([w,b]))[0]+u,T=_,C=l,A=k[1]-y,Math.abs(A)<f&&(A=(A<=0?-1:1)*f),isNaN(A)||p&&(i[a][w][x]+=A);t.setItemLayout(v,{x:S,y:T,width:C,height:A})}}))}var xw={seriesType:"bar",plan:Rh(),reset:function(e){if(_w(e)&&kw(e)){var t=e.getData(),n=e.coordinateSystem,r=n.master.getRect(),i=n.getBaseAxis(),o=n.getOtherAxis(i),a=t.mapDimension(o.dim),s=t.mapDimension(i.dim),u=o.isHorizontal(),l=u?0:1,c=bw(vw([e]),i,e).width;return c>.5||(c=.5),{progress:function(e,t){for(var f,d=e.count,h=new hw(2*d),p=new hw(2*d),g=new hw(d),y=[],v=[],m=0,b=0;null!=(f=e.next());)v[l]=t.get(a,f),v[1-l]=t.get(s,f),y=n.dataToPoint(v,null,y),p[m]=u?r.x+r.width:y[0],h[m++]=y[0],p[m]=u?y[1]:r.y+r.height,h[m++]=y[1],g[b++]=f;t.setLayout({largePoints:h,largeDataIndices:g,largeBackgroundPoints:p,barWidth:c,valueAxisStart:Sw(i,o,!1),backgroundStart:u?r.x:r.y,valueAxisHorizontal:u})}}}}};function _w(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function kw(e){return e.pipelineContext&&e.pipelineContext.large}function Sw(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}var Tw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(e,t){return Ab(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size");return n[t.getBaseAxis().isHorizontal()?0:1]+=i+o/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ih);Ih.registerClass(Tw);var Cw=Tw,Aw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(){return Ab(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=lc(Cw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Cw),Ow=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Mw=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return a(t,e),t.prototype.getDefaultShape=function(){return new Ow},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,u=t.startAngle,l=t.endAngle,c=t.clockwise,f=Math.cos(u),d=Math.sin(u),h=Math.cos(l),p=Math.sin(l);(c?l-u<2*Math.PI:u-l<2*Math.PI)&&(e.moveTo(f*i+n,d*i+r),e.arc(f*s+n,d*s+r,a,-Math.PI+u,u,!c)),e.arc(n,r,o,u,l,!c),e.moveTo(h*o+n,p*o+r),e.arc(h*s+n,p*s+r,a,l-2*Math.PI,l-Math.PI,!c),0!==i&&(e.arc(n,r,i,l,u,c),e.moveTo(f*i+n,p*i+r)),e.closePath()},t}(ma),Ew=[0,0],Pw=Math.max,Iw=Math.min;var Dw=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return a(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._incrementalRenderLarge(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,o=this.group,a=e.getData(),s=this._data,u=e.coordinateSystem,l=u.getBaseAxis();"cartesian2d"===u.type?i=l.isHorizontal():"polar"===u.type&&(i="angle"===l.dim);var c=e.isAnimationEnabled()?e:null,f=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,u);f&&this._enableRealtimeSort(f,a,n);var d=e.get("clip",!0)||f,h=function(e,t){var n=e.getArea&&e.getArea();if(Qb(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(u,a);o.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],b=this._backgroundEls,w=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function _(e){var t=jw[u.type](a,e),n=function(e,t,n){return new("polar"===e.type?bu:Da)({shape:Uw(t,n,e),silent:!0,z2:0})}(u,i,t);return n.useStyle(y.getItemStyle()),"cartesian2d"===u.type&&n.setShape("r",v),m[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=jw[u.type](a,t,n);if(g&&_(t),a.hasValue(t)){var s=!1;d&&(s=Lw[u.type](h,r));var y=Rw[u.type](e,a,t,r,i,c,l.model,!1,p);Bw(y,a,t,n,r,e,i,"polar"===u.type),w?y.attr({shape:r}):f?Nw(f,c,y,r,t,i,!1,!1):ml(y,{shape:r},e,t),a.setItemGraphicEl(t,y),o.add(y),y.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),k=jw[u.type](a,t,r);if(g){var S=void 0;0===b.length?S=_(n):((S=b[n]).useStyle(y.getItemStyle()),"cartesian2d"===u.type&&S.setShape("r",v),m[t]=S);var T=jw[u.type](a,t);vl(S,{shape:Uw(i,T,u)},c,t)}var C=s.getItemGraphicEl(n);if(!a.hasValue(t))return o.remove(C),void(C=null);var A=!1;d&&(A=Lw[u.type](h,k))&&o.remove(C),C||(C=Rw[u.type](e,a,t,k,i,c,l.model,!!C,p)),x||Bw(C,a,t,r,k,e,i,"polar"===u.type),w?C.attr({shape:k}):f?Nw(f,c,C,k,t,i,!0,x):vl(C,{shape:k},e,t,null),a.setItemGraphicEl(t,C),C.ignore=A,o.add(C)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&xl(n,e,t)})).execute();var k=this._backgroundGroup||(this._backgroundGroup=new xr);k.removeAll();for(var S=0;S<m.length;++S)k.add(m[S]);o.add(k),this._backgroundEls=m,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),Vw(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Vw(t,this.group,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)?$b(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e);if(n){var r=n.shape;return(i.isHorizontal()?Math.abs(r.height):Math.abs(r.width))||0}return 0};this._onRendered=function(){r._updateSortWithinSameData(t,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:N(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var u=e.rawIndexOf(i,r.getRawOrdinalNumber(a)),l=u<0?Number.MIN_VALUE:t(e.indexOfRawIndex(u));if(l>o)return!0;o=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i,animation:{duration:0}})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){xl(t,e,Ja(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Gh),Lw={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=Pw(t.x,e.x),s=Iw(t.x+t.width,i),u=Pw(t.y,e.y),l=Iw(t.y+t.height,o),c=s<a,f=l<u;return t.x=c&&a>i?s:a,t.y=f&&u>o?l:u,t.width=c?0:s-a,t.height=f?0:l-u,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=Iw(t.r,e.r),o=Pw(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},Rw={cartesian2d:function(e,t,n,r,i,o,a,s,u){var l=new Da({shape:M({},r),z2:1});(l.__dataIndex=n,l.name="item",o)&&(l.shape[i?"height":"width"]=0);return l},polar:function(e,t,n,r,i,o,a,s,u){var l=r.startAngle<r.endAngle,c=new(!i&&u?Mw:bu)({shape:E({clockwise:l},r),z2:1});if(c.name="item",o){var f=i?"r":"endAngle",d={};c.shape[f]=i?0:r.startAngle,d[f]=r[f],(s?vl:ml)(c,{shape:d},o)}return c}};function Nw(e,t,n,r,i,o,a,s){var u,l;o?(l={x:r.x,width:r.width},u={y:r.y,height:r.height}):(l={y:r.y,height:r.height},u={x:r.x,width:r.width}),s||(a?vl:ml)(n,{shape:u},t,i,null),(a?vl:ml)(n,{shape:l},t?e.baseAxis.model:null,i)}var jw={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle}}};function Bw(e,t,n,r,i,o,a,s){var u=t.getItemVisual(n,"style");s||e.setShape("r",r.get(["itemStyle","borderRadius"])||0),e.useStyle(u);var l=r.getShallow("cursor");if(l&&e.attr("cursor",l),!s){var c=a?i.height>0?"bottom":"top":i.width>0?"left":"right",f=Fl(r);Bl(e,f,{labelFetcher:o,labelDataIndex:n,defaultText:Mb(o.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:c}),ql(e.getTextContent(),f,o.getRawValue(n),(function(e){return Eb(t,e)}))}var d=r.getModel(["emphasis"]);As(e,d.get("focus"),d.get("blurScope")),Ps(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var Fw=function(){},zw=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return a(t,e),t.prototype.getDefaultShape=function(){return new Fw},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.__startPoint,i=this.__baseDimIdx,o=0;o<n.length;o+=2)r[i]=n[o+i],e.moveTo(r[0],r[1]),e.lineTo(n[o],n[o+1])},t}(ma);function Vw(e,t,n){var r=e.getData(),i=[],o=r.getLayout("valueAxisHorizontal")?1:0;i[1-o]=r.getLayout("valueAxisStart");var a=r.getLayout("largeDataIndices"),s=r.getLayout("barWidth"),u=e.getModel("backgroundStyle");if(e.get("showBackground",!0)){var l=r.getLayout("largeBackgroundPoints"),c=[];c[1-o]=r.getLayout("backgroundStart");var f=new zw({shape:{points:l},incremental:!!n,silent:!0,z2:0});f.__startPoint=c,f.__baseDimIdx=o,f.__largeDataIndices=a,f.__barWidth=s,function(e,t,n){var r=t.get("borderColor")||t.get("color"),i=t.getItemStyle();e.useStyle(i),e.style.fill=null,e.style.stroke=r,e.style.lineWidth=n.getLayout("barWidth")}(f,u,r),t.add(f)}var d=new zw({shape:{points:r.getLayout("largePoints")},incremental:!!n});d.__startPoint=i,d.__baseDimIdx=o,d.__largeDataIndices=a,d.__barWidth=s,t.add(d),function(e,t,n){var r=n.getVisual("style");e.useStyle(M({},r)),e.style.fill=null,e.style.stroke=r.fill,e.style.lineWidth=n.getLayout("barWidth")}(d,0,r),Ja(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",Hw),d.on("mousemove",Hw))}var Hw=Wh((function(e){var t=function(e,t,n){var r=e.__baseDimIdx,i=1-r,o=e.shape.points,a=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),u=e.__startPoint[i];Ew[0]=t,Ew[1]=n;for(var l=Ew[r],c=Ew[1-r],f=l-s,d=l+s,h=0,p=o.length/2;h<p;h++){var g=2*h,y=o[g+r],v=o[g+i];if(y>=f&&y<=d&&(u<=v?c>=u&&c<=v:c>=v&&c<=u))return a[h]}return-1}(this,e.offsetX,e.offsetY);Ja(this).dataIndex=t>=0?t:null}),30,!1);function Uw(e,t,n){if(Qb(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var o=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}var Gw=Dw;var Jw=2*Math.PI,Xw=Math.PI/180;function Ww(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=function(e,t){return ef(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,n),o=e.get("center"),a=e.get("radius");H(a)||(a=[0,a]),H(o)||(o=[o,o]);var s=Or(i.width,n.getWidth()),u=Or(i.height,n.getHeight()),l=Math.min(s,u),c=Or(o[0],s)+i.x,f=Or(o[1],u)+i.y,d=Or(a[0],l/2),h=Or(a[1],l/2),p=-e.get("startAngle")*Xw,g=e.get("minAngle")*Xw,y=0;t.each(r,(function(e){!isNaN(e)&&y++}));var v=t.getSum(r),m=Math.PI/(v||y)*2,b=e.get("clockwise"),w=e.get("roseType"),x=e.get("stillShowZeroSum"),_=t.getDataExtent(r);_[0]=0;var k=Jw,S=0,T=p,C=b?1:-1;if(t.setLayout({viewRect:i,r:h}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:c,cy:f,r0:d,r:w?NaN:h});else{(r="area"!==w?0===v&&x?m:e*m:Jw/y)<g?(r=g,k-=g):S+=e;var i=T+C*r;t.setItemLayout(n,{angle:r,startAngle:T,endAngle:i,clockwise:b,cx:c,cy:f,r0:d,r:w?Ar(e,_,[d,h]):h}),T=i}})),k<Jw&&y)if(k<=.001){var A=Jw/y;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=A,r.startAngle=p+C*n*A,r.endAngle=p+C*(n+1)*A}}))}else m=k/S,T=p,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===g?g:e*m;r.startAngle=T,r.endAngle=T+C*i,T+=C*i}}))}))}function qw(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}var Zw=Math.PI/180;function Kw(e,t,n,r,i,o,a,s,u,l){if(!(e.length<2)){for(var c=e.length,f=0;f<c;f++)if("outer"===e[f].position&&"labelLine"===e[f].labelAlignTo){var d=e[f].label.x-l;e[f].linePoints[1][0]+=d,e[f].label.x=l}ng(e,u,u+a)&&function(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var u=e[s],l=u.label.y>n?a:o,c=Math.abs(u.label.y-n);if(c>l.maxY){var f=u.label.x-t-u.len2*i,d=r+u.len,p=Math.abs(f)<d?Math.sqrt(c*c/(1-f*f/d/d)):d;l.rB=p,l.maxY=c}l.list.push(u)}h(o),h(a)}(e)}function h(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var u=e.list[s],l=Math.abs(u.label.y-n),c=r+u.len,f=c*c,d=Math.sqrt((1-Math.abs(l*l/a))*f);u.label.x=t+(d+u.len2)*i}}}function Yw(e){return"center"===e.position}function $w(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*Zw,s=r.getLayout("viewRect"),u=r.getLayout("r"),l=s.width,c=s.x,f=s.y,d=s.height;function h(e){e.ignore=!0}r.each((function(e){var s=r.getItemGraphicEl(e),f=s.shape,d=s.getTextContent(),p=s.getTextGuideLine(),g=r.getItemModel(e),y=g.getModel("label"),v=y.get("position")||g.get(["emphasis","label","position"]),m=y.get("distanceToLabelLine"),b=y.get("alignTo"),w=Or(y.get("edgeDistance"),l),x=y.get("bleedMargin"),_=g.getModel("labelLine"),k=_.get("length");k=Or(k,l);var S=_.get("length2");if(S=Or(S,l),Math.abs(f.endAngle-f.startAngle)<a)return R(d.states,h),void(d.ignore=!0);if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(d)){var T,C,A,O,M=(f.startAngle+f.endAngle)/2,E=Math.cos(M),P=Math.sin(M);t=f.cx,n=f.cy;var I,D="inside"===v||"inner"===v;if("center"===v)T=f.cx,C=f.cy,O="center";else{var L=(D?(f.r+f.r0)/2*E:f.r*E)+t,N=(D?(f.r+f.r0)/2*P:f.r*P)+n;if(T=L+3*E,C=N+3*P,!D){var j=L+E*(k+u-f.r),B=N+P*(k+u-f.r),F=j+(E<0?-1:1)*S;T="edge"===b?E<0?c+w:c+l-w:F+(E<0?-m:m),C=B,A=[[L,N],[j,B],[F,B]]}O=D?"center":"edge"===b?E>0?"right":"left":E>0?"left":"right"}var z=y.get("rotate");if(I="number"===typeof z?z*(Math.PI/180):z?E<0?-M+Math.PI:-M:0,o=!!I,d.x=T,d.y=C,d.rotation=I,d.setStyle({verticalAlign:"middle"}),D){d.setStyle({align:O});var V=d.states.select;V&&(V.x+=d.x,V.y+=d.y)}else{var H=d.getBoundingRect().clone();H.applyTransform(d.getComputedTransform());var U=(d.style.margin||0)+2.1;H.y-=U/2,H.height+=U,i.push({label:d,labelLine:p,position:v,len:k,len2:S,minTurnAngle:_.get("minTurnAngle"),maxSurfaceAngle:_.get("maxSurfaceAngle"),surfaceNormal:new hn(E,P),linePoints:A,textAlign:O,labelDistance:m,labelAlignTo:b,edgeDistance:w,bleedMargin:x,rect:H})}s.setTextConfig({inside:D})}})),!o&&e.get("avoidLabelOverlap")&&function(e,t,n,r,i,o,a,s){for(var u=[],l=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;Yw(e[d])||(h.x<t?(c=Math.min(c,h.x),u.push(e[d])):(f=Math.max(f,h.x),l.push(e[d])))}for(Kw(l,t,n,r,1,0,o,0,s,f),Kw(u,t,n,r,-1,0,o,0,s,c),d=0;d<e.length;d++){var p=e[d];h=p.label;if(!Yw(p)){var g=p.linePoints;if(g){var y="edge"===p.labelAlignTo,v=p.rect.width,m=void 0;(m=y?h.x<t?g[2][0]-p.labelDistance-a-p.edgeDistance:a+i-p.edgeDistance-g[2][0]-p.labelDistance:h.x<t?h.x-a-p.bleedMargin:a+i-h.x-p.bleedMargin)<p.rect.width&&(p.label.style.width=m,"edge"===p.labelAlignTo&&(v=m));var b=g[1][0]-g[2][0];y?h.x<t?g[2][0]=a+p.edgeDistance+v+p.labelDistance:g[2][0]=a+i-p.edgeDistance-v-p.labelDistance:(h.x<t?g[2][0]=h.x+p.labelDistance:g[2][0]=h.x-p.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=h.y}}}}(i,t,n,u,l,d,c,f);for(var p=0;p<i.length;p++){var g=i[p],y=g.label,v=g.labelLine,m=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),m&&(R(y.states,h),y.ignore=!0);var b=y.states.select;b&&(b.x+=y.x,b.y+=y.y)}if(v){var w=g.linePoints;m||!w?(R(v.states,h),v.ignore=!0):(Zp(w,g.minTurnAngle),Kp(w,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new hn(w[0][0],w[0][1])})}}}function Qw(e,t){var n=e.get("borderRadius");return null==n?null:(H(n)||(n=[n,n]),{innerCornerRadius:In(n[0],t.r0),cornerRadius:In(n[1],t.r)})}var ex=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var o=new Ga;return i.setTextContent(o),i.updateData(t,n,r,!0),i}return a(t,e),t.prototype.updateData=function(e,t,n,r){var i=e.hostModel,o=e.getItemModel(t),a=o.getModel("emphasis"),u=e.getItemLayout(t),l=M(Qw(o.getModel("itemStyle"),u)||{},u);if(isNaN(l.startAngle))this.setShape(l);else{if(r)this.setShape(l),"scale"===i.getShallow("animationType")?(this.shape.r=u.r0,ml(this,{shape:{r:u.r}},i,t)):null!=n?(this.setShape({startAngle:n,endAngle:n}),ml(this,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},i,t)):(this.shape.endAngle=u.startAngle,vl(this,{shape:{endAngle:u.endAngle}},i,t));else vl(this,{shape:l},i,t);this.useStyle(e.getItemVisual(t,"style")),Ps(this,o);var c=(u.startAngle+u.endAngle)/2,f=i.get("selectedOffset"),d=Math.cos(c)*f,h=Math.sin(c)*f,p=o.getShallow("cursor");p&&this.attr("cursor",p),this._updateLabel(i,e,t),this.ensureState("emphasis").shape=s({r:u.r+(a.get("scale")&&a.get("scaleSize")||0)},Qw(a.getModel("itemStyle"),u)),M(this.ensureState("select"),{x:d,y:h,shape:Qw(o.getModel(["select","itemStyle"]),u)}),M(this.ensureState("blur"),{shape:Qw(o.getModel(["blur","itemStyle"]),u)});var g=this.getTextGuideLine(),y=this.getTextContent();g&&M(g.ensureState("select"),{x:d,y:h}),M(y.ensureState("select"),{x:d,y:h}),As(this,a.get("focus"),a.get("blurScope"))}},t.prototype._updateLabel=function(e,t,n){var r=t.getItemModel(n),i=r.getModel("labelLine"),o=t.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;Bl(this,Fl(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=this.getTextContent();this.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var l=e.get(["label","position"]);if("outside"!==l&&"outer"!==l)this.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Eu,this.setTextGuideLine(c)),Qp(this,eg(r),{stroke:a,opacity:ee(i.get(["lineStyle","opacity"]),s,1)})}},t}(bu),tx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return a(t,e),t.prototype.init=function(){var e=new xr;this._sectorGroup=e},t.prototype.render=function(e,t,n,r){var i,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var u=o.getItemLayout(0),l=1;isNaN(u&&u.startAngle)&&l<o.count();++l)u=o.getItemLayout(l);u&&(i=u.startAngle)}o.diff(a).add((function(e){var t=new ex(o,e,i);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,i),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){xl(a.getItemGraphicEl(t),e,t)})).execute(),$w(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},t.type="pie",t}(Gh);function nx(e,t,n){t=H(t)&&{coordDimensions:t}||M({},t);var r=e.getSource(),i=xb(r,t),o=new mb(i,e);return o.initData(r,n),o}var rx=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),ix=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useColorPaletteOnData=!0,t}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new rx(z(this.getData,this),z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return nx(this,{coordDimensions:["value"],encodeDefaulter:V(bf,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=[];return n.each(n.mapDimension("value"),(function(e){i.push(e)})),r.percent=function(e,t,n){if(!e[t])return 0;var r=j(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===r)return 0;for(var i=Math.pow(10,n),o=N(e,(function(e){return(isNaN(e)?0:e)/r*i*100})),a=100*i,s=N(o,(function(e){return Math.floor(e)})),u=j(s,(function(e,t){return e+t}),0),l=N(o,(function(e,t){return e-s[t]}));u<a;){for(var c=Number.NEGATIVE_INFINITY,f=null,d=0,h=l.length;d<h;++d)l[d]>c&&(c=l[d],f=d);++s[f],l[f]=0,++u}return s[t]/i}(i,t,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},t.prototype._defaultLabelLine=function(e){Xr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ih);var ox=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){return Ab(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ih),ax=function(){},sx=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new ax},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,o=i.shape,a=e.getContext?e.getContext():e;if(a&&r[0]<4)this._ctx=a;else{this._ctx=null;for(var s=0;s<n.length;){var u=n[s++],l=n[s++];isNaN(u)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(u,l)||(o.x=u-r[0]/2,o.y=l-r[1]/2,o.width=r[0],o.height=r[1],i.buildPath(e,o,!0)))}}},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx;if(r)for(var i=0;i<t.length;){var o=t[i++],a=t[i++];isNaN(o)||isNaN(a)||(this.softClipShape&&!this.softClipShape.contain(o,a)||r.fillRect(o-n[0]/2,a-n[1]/2,n[0],n[1]))}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var u=2*s,l=r[u]-o/2,c=r[u+1]-a/2;if(e>=l&&t>=c&&e<=l+o&&t<=c+a)return s}return-1},t}(ma),ux=function(){function e(){this.group=new xr}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e,t){this.group.removeAll();var n=new sx({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},e.prototype.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t)}))}},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new Qu({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t,n){var r;this._incremental?(r=new sx,this._incremental.addDisplayable(r,!0)):((r=new sx({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end})).incremental=!0,this.group.add(r)),r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,!!this._incremental,n)},e.prototype._setCommon=function(e,t,n,r){var i=t.hostModel;r=r||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=r.clipShape||null,e.symbolProxy=Tg(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<4;e.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),u=s&&s.fill;if(u&&e.setColor(u),!n){var l=Ja(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(l.dataIndex=n+(e.startIndex||0))}))}},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),lx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var i=lw("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new ux:new Nb,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Gh),cx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(lf),fx=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),dx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ai).models[0]},t.type="cartesian2dAxis",t}(lf);D(dx,fx);var hx={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},px=A({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},hx),gx=A({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},hx),yx={category:px,value:gx,time:A({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},gx),log:E({scale:!0,logBase:10},gx)};function vx(e){return W(e)&&null!=e.value?e.value:e+""}var mx=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&N(r,vx);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if("string"!==typeof e&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ue(this.categories))},e}(),bx={value:1,category:1,time:1,log:1};function xx(e,t,n,r){R(bx,(function(i,o){var s=A(A({},yx[o],!0),r,!0),u=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return i.type=t+"Axis."+o,i}return a(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=nf(this),r=n?of(e):{};A(e,t.getTheme().get(o+"Axis")),A(e,this.getDefaultOption()),e.type=_x(e),n&&rf(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=mx.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=s,n}(n);e.registerComponentModel(u)})),e.registerSubTypeDefaulter(t+"Axis",_x)}function _x(e){return e.type||(e.data?"category":"value")}var kx=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();wi(kx);var Sx=kx,Tx=Mr;function Cx(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=Br(o/t,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=Ax(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Ox(e,0,t),Ox(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[Tx(Math.ceil(e[0]/a)*a,s),Tx(Math.floor(e[1]/a)*a,s)],e),i}function Ax(e){return Pr(e)+2}function Ox(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Mx(e,t){return e>=t[0]&&e<=t[1]}function Ex(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Px(e,t){return e*(t[1]-t[0])+t[0]}var Ix=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new mx({})),H(r)&&(r=new mx({categories:N(r,(function(e){return W(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return a(t,e),t.prototype.parse=function(e){return"string"===typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Mx(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return Ex(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Px(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var u=0;i<o;++i){for(;null!=r[u];)u++;n.push(u),r[u]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.niceTicks=function(){},t.prototype.niceExtent=function(){},t.type="ordinal",t}(Sx);Sx.registerClass(Ix);var Dx=Ix,Lx=Mr,Rx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return a(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Mx(e,this._extent)},t.prototype.normalize=function(e){return Ex(e,this._extent)},t.prototype.scale=function(e){return Px(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ax(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;n[0]<r[0]&&(e?o.push({value:Lx(r[0]-t,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=Lx(a+t,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(e?o.push({value:Lx(s+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],a=t[i-1],s=0,u=[],l=(o.value-a.value)/e;s<e-1;){var c=Lx(a.value+(s+1)*l);c>r[0]&&c<r[1]&&u.push(c),s++}n.push(u)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=Pr(e.value)||0:"auto"===n&&(n=this._intervalPrecision),jc(Lx(e.value,n,!0))},t.prototype.niceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=Cx(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.niceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=Lx(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=Lx(Math.ceil(t[1]/i)*i))},t.type="interval",t}(Sx);Sx.registerClass(Rx);var Nx=Rx,jx=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return a(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return wc(e.value,gc[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(bc(this._minLevelUnit))]||gc.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var o=null;if("string"===typeof n)o=n;else if("function"===typeof n)o=n(e.value,t,{level:e.level});else{var a=M({},pc);if(e.level>0)for(var s=0;s<yc.length;++s)a[yc[s]]="{primary|"+a[yc[s]]+"}";var u=n?!1===n.inherit?n:E(n,a):a,l=xc(e.value,i);if(u[l])o=u[l];else if(u.inherit){for(s=vc.indexOf(l)-1;s>=0;--s)if(u[l]){o=u[l];break}o=o||a.none}if(H(o)){var c=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[c=Math.min(c,o.length-1)]}}return wc(new Date(e.value),o,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=[];if(!t)return r;r.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=function(e,t,n,r){var i=vc,o=0;function a(e,t,n,i,o,a,s){for(var u=new Date(t),l=t,c=u[i]();l<n&&l<=r[1];)s.push({value:l}),c+=e,u[o](c),l=u.getTime();s.push({value:l,notAdd:!0})}function s(e,i,o){var s=[],u=!i.length;if(!function(e,t,n,r){var i=Nr(t),o=Nr(n),a=function(e){return _c(i,e,r)===_c(o,e,r)},s=function(){return a("year")},u=function(){return s()&&a("month")},l=function(){return u()&&a("day")},c=function(){return l()&&a("hour")},f=function(){return c()&&a("minute")},d=function(){return f()&&a("second")};switch(e){case"year":return s();case"month":return u();case"day":return l();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return d()&&a("millisecond")}}(bc(e),r[0],r[1],n)){u&&(i=[{value:Gx(new Date(r[0]),e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var c=i[l].value,f=i[l+1].value;if(c!==f){var d=void 0,h=void 0,p=void 0;switch(e){case"year":d=Math.max(1,Math.round(t/864e5/365)),h=kc(n),p=Ec(n);break;case"half-year":case"quarter":case"month":d=zx(t),h=Sc(n),p=Pc(n);break;case"week":case"half-week":case"day":d=Fx(t,31),h=Tc(n),p=Ic(n),!0;break;case"half-day":case"quarter-day":case"hour":d=Vx(t),h=Cc(n),p=Dc(n);break;case"minute":d=Hx(t,!0),h=Ac(n),p=Lc(n);break;case"second":d=Hx(t,!1),h=Oc(n),p=Rc(n);break;case"millisecond":d=Ux(t),h=Mc(n),p=Nc(n)}a(d,c,f,h,p,0,s),"year"===e&&o.length>1&&0===l&&o.unshift({value:o[0].value-d})}}for(l=0;l<s.length;l++)o.push(s[l]);return s}}for(var u=[],l=[],c=0,f=0,d=0;d<i.length&&o++<1e4;++d){var h=bc(i[d]);if((b=i[d])===bc(b)){s(i[d],u[u.length-1]||[],l);var p=i[d+1]?bc(i[d+1]):null;if(h!==p){if(l.length){f=c,l.sort((function(e,t){return e.value-t.value}));for(var g=[],y=0;y<l.length;++y){var v=l[y].value;0!==y&&l[y-1].value===v||(g.push(l[y]),v>=r[0]&&v<=r[1]&&c++)}var m=(r[1]-r[0])/t;if(c>1.5*m&&f>m/1.5)break;if(u.push(g),c>m||e===i[d])break}l=[]}}}var b;0;var w=B(N(u,(function(e){return B(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),x=[],_=w.length-1;for(d=0;d<w.length;++d)for(var k=w[d],S=0;S<k.length;++S)x.push({value:k[S].value,level:_-d});x.sort((function(e,t){return e.value-t.value}));var T=[];for(d=0;d<x.length;++d)0!==d&&x[d].value===x[d-1].value||T.push(x[d]);return T}(this._minLevelUnit,this._approxInterval,i,n);return(r=r.concat(o)).push({value:n[1],level:0}),r},t.prototype.niceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=864e5,t[1]+=864e5),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-864e5}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.niceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Bx.length,a=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(Bx,this._approxInterval,0,o),o-1);this._interval=Bx[a][1],this._minLevelUnit=Bx[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return"number"===typeof e?e:+Nr(e)},t.prototype.contain=function(e){return Mx(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ex(this.parse(e),this._extent)},t.prototype.scale=function(e){return Px(e,this._extent)},t.type="time",t}(Nx),Bx=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function Fx(e,t){return(e/=864e5)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function zx(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function Vx(e){return(e/=36e5)>12?12:e>6?6:e>3.5?4:e>2?2:1}function Hx(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Ux(e){return Br(e,!0)}function Gx(e,t,n){var r=new Date(e);switch(bc(t)){case"year":case"month":r[Pc(n)](0);case"day":r[Ic(n)](1);case"hour":r[Dc(n)](0);case"minute":r[Lc(n)](0);case"second":r[Rc(n)](0),r[Nc(n)](0)}return r.getTime()}Sx.registerClass(jx);var Jx=jx,Xx=Sx.prototype,Wx=Nx.prototype,qx=Pr,Zx=Mr,Kx=Math.floor,Yx=Math.ceil,$x=Math.pow,Qx=Math.log,e_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Nx,t._interval=0,t}return a(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return N(Wx.getTicks.call(this,e),(function(e){var t=e.value,i=Mr($x(this.base,t));return i=t===n[0]&&this._fixMin?n_(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?n_(i,r[1]):i}}),this)},t.prototype.setExtent=function(e,t){var n=this.base;e=Qx(e)/Qx(n),t=Qx(t)/Qx(n),Wx.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=Xx.getExtent.call(this);t[0]=$x(e,t[0]),t[1]=$x(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=n_(t[0],n[0])),this._fixMax&&(t[1]=n_(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=Qx(e[0])/Qx(t),e[1]=Qx(e[1])/Qx(t),Xx.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.niceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,jr(r)));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Mr(Yx(t[0]/i)*i),Mr(Kx(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.niceExtent=function(e){Wx.niceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Mx(e=Qx(e)/Qx(this.base),this._extent)},t.prototype.normalize=function(e){return Ex(e=Qx(e)/Qx(this.base),this._extent)},t.prototype.scale=function(e){return e=Px(e,this._extent),$x(this.base,e)},t.type="log",t}(Sx),t_=e_.prototype;function n_(e,t){return Zx(e,qx(t))}t_.getMinorTicks=Wx.getMinorTicks,t_.getLabel=Wx.getLabel,Sx.registerClass(e_);var r_=e_,i_=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero=t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);U(i)?this._modelMinNum=u_(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=u_(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(U(o)?this._modelMaxNum=u_(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=u_(e,o)),r)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=H(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[In(s[0],1),In(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=a,l=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),a>s&&(a=NaN,s=NaN);var c=Y(a)||Y(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!u&&(a=0),a<0&&s<0&&!l&&(s=0));var f=this._determinedMin,d=this._determinedMax;return null!=f&&(a=f,u=!0),null!=d&&(s=d,l=!0),{min:a,max:s,minFixed:u,maxFixed:l,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[a_[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[o_[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),o_={min:"_determinedMin",max:"_determinedMax"},a_={min:"_dataMin",max:"_dataMax"};function s_(e,t,n){var r=e.rawExtentInfo;return r||(r=new i_(e,t,n),e.rawExtentInfo=r,r)}function u_(e,t){return null==t?null:Y(t)?NaN:e.parse(t)}function l_(e,t){var n=e.type,r=s_(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=yw("bar",a),u=!1;if(R(s,(function(e){u=u||e.getBaseAxis()===t.axis})),u){var l=vw(s),c=function(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=bw(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;R(a,(function(e){s=Math.min(e.offset,s)}));var u=-1/0;R(a,(function(e){u=Math.max(e.offset+e.width,u)})),s=Math.abs(s),u=Math.abs(u);var l=s+u,c=t-e,f=c/(1-(s+u)/o)-c;return{min:e-=f*(s/l),max:t+=f*(u/l)}}(i,o,t,l);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function c_(e,t){var n=l_(e,t),r=n.extent,i=t.get("splitNumber");e instanceof r_&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(r[0],r[1]),e.niceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?t.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?t.get("maxInterval"):null});var a=t.get("interval");null!=a&&e.setInterval&&e.setInterval(a)}function f_(e,t){if(t=t||e.get("type"))switch(t){case"category":return new Dx({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Jx({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Sx.getClass(t)||Nx)}}function d_(e){var t,n,r=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):"string"===typeof r?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(r):"function"===typeof r?(t=r,function(n,r){return null!=i&&(r=n.value-i),t(h_(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function h_(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function p_(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new _n(e.x,e.y,o,a)}function g_(e){var t=e.get("interval");return null==t?"auto":t}function y_(e){return"category"===e.type&&0===g_(e.getLabelModel())}function v_(e,t){var n={};return R(e.mapDimensionsAll(t),(function(t){n[Cb(e,t)]=!0})),F(n)}var m_=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return N(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),B(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),b_=["x","y"];function w_(e){return"interval"===e.type||"time"===e.type}var x_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=b_,t}return a(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(w_(e)&&w_(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var u=(o[0]-i[0])/a,l=(o[1]-i[1])/s,c=i[0]-n[0]*u,f=i[1]-r[0]*l,d=this._transform=[u,0,0,l,c,f];this._invTransform=gt([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Me(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r)),n[1]=a.toGlobalCoord(a.dataToCoord(i)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){if(t=t||[],this._invTransform)return Me(t,e,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return t[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=r.coordToData(r.toLocalCoord(e[1])),t},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),i=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-r;return new _n(n,r,i,o)},t}(m_),__=ni();function k_(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=T_(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=d_(e);return{labels:N(t,(function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}function S_(e,t){return"category"===e.type?function(e,t){var n,r,i=C_(e,"ticks"),o=g_(t),a=A_(i,o);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(U(o))n=E_(e,o,!0);else if("auto"===o){var s=T_(e,e.getLabelModel());r=s.labelCategoryInterval,n=N(s.labels,(function(e){return e.tickValue}))}else n=M_(e,r=o,!0);return O_(i,o,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:N(e.scale.getTicks(),(function(e){return e.value}))}}function T_(e,t){var n,r,i=C_(e,"labels"),o=g_(t),a=A_(i,o);return a||(U(o)?n=E_(e,o):(r="auto"===o?function(e){var t=__(e).autoInterval;return null!=t?t:__(e).autoInterval=e.calculateCategoryInterval()}(e):o,n=M_(e,r)),O_(i,o,{labels:n,labelCategoryInterval:r}))}function C_(e,t){return __(e)[t]||(__(e)[t]=[])}function A_(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function O_(e,t,n){return e.push({key:t,value:n}),n}function M_(e,t,n){var r=d_(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=o[0],c=i.count();0!==l&&u>1&&c/u>2&&(l=Math.round(Math.ceil(l/u)*u));var f=y_(e),d=a.get("showMinLabel")||f,h=a.get("showMaxLabel")||f;d&&l!==o[0]&&g(o[0]);for(var p=l;p<=o[1];p+=u)g(p);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return h&&p-u!==o[1]&&g(o[1]),s}function E_(e,t,n){var r=e.scale,i=d_(e),o=[];return R(r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var P_=[0,1];function I_(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var D_=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Ir(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&I_(n=n.slice(),r.count()),Ar(e,P_,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&I_(n=n.slice(),r.count());var i=Ar(e,n,P_,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=N(S_(this,t).ticks,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;R(t,(function(e){e.coord-=l/2}));var c=e.scale.getExtent();a=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*a},t.push(o)}var f=s[0]>s[1];d(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift());r&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]});d(s[1],o.coord)&&(r?o.coord=s[1]:t.pop());r&&d(o.coord,s[1])&&t.push({coord:s[1]});function d(e,t){return e=Mr(e),t=Mr(t),f?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),N(this.scale.getMinorTicks(e),(function(e){return N(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return k_(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=d_(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var u=o[0],l=e.dataToCoord(u+1)-e.dataToCoord(u),c=Math.abs(l*Math.cos(r)),f=Math.abs(l*Math.sin(r)),d=0,h=0;u<=o[1];u+=s){var p,g,y=On(n({value:u}),t.font,"center","top");p=1.3*y.width,g=1.3*y.height,d=Math.max(d,p,7),h=Math.max(h,g,7)}var v=d/c,m=h/f;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(v,m))),w=__(e.model),x=e.getExtent(),_=w.lastAutoInterval,k=w.lastTickCount;return null!=_&&null!=k&&Math.abs(_-b)<=1&&Math.abs(k-a)<=1&&_>b&&w.axisExtent0===x[0]&&w.axisExtent1===x[1]?b=_:(w.lastTickCount=a,w.lastAutoInterval=b,w.axisExtent0=x[0],w.axisExtent1=x[1]),b}(this)},e}(),L_=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return a(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(D_);function R_(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,u=a?"onZero":s,l=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p="x"===l?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===l?p[d[u]]:f[0],"x"===l?p[d[u]]:f[3]],o.rotation=Math.PI/2*("x"===l?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),$(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===u?-y:y,o.z2=1,o}function N_(e){return"cartesian2d"===e.get("coordinateSystem")}function j_(e){var t={xAxisModel:null,yAxisModel:null};return R(t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,ai).models[0];t[r]=o})),t}function B_(e,t){return e.getCoordSysModel()===t}function F_(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),u=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=u)z_(o[u])&&(i=o[u]);else for(var l in o)if(o.hasOwnProperty(l)&&z_(o[l])&&!r[c(o[l])]){i=o[l];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function z_(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var V_=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=b_,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),R(n.x,(function(e){c_(e.scale,e.model)})),R(n.y,(function(e){c_(e.scale,e.model)}));var r={};R(n.x,(function(e){F_(n,"y",e,r)})),R(n.y,(function(e){F_(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=ef(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){R(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?o.x:o.y)}))}s(),i&&(R(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof Dx?n.count():(r=n.getTicks()).length;var a,s=e.getLabelModel(),u=d_(e),l=1;i>40&&(l=Math.ceil(i/40));for(var c=0;c<i;c+=l){var f=u(r?r[c]:{value:o[0]+c},c),d=p_(s.getTextRect(f),s.get("rotate")||0);a?a.union(d):a=d}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),s()),R(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}W(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",ai).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",ai).models[0],a=e.gridModel,s=this._coordsList;if(r)I(s,t=r.coordinateSystem)<0&&(t=null);else if(i&&o)t=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function u(t){return function(n,r){if(B_(n,e)){var u=n.get("position");"x"===t?"top"!==u&&"bottom"!==u&&(u=o.bottom?"top":"bottom"):"left"!==u&&"right"!==u&&(u=o.left?"right":"left"),o[u]=!0;var l=new L_(t,f_(n),[0,0],n.get("type"),u),c="category"===l.type;l.onBand=c&&n.get("boundaryGap"),l.inverse=n.get("inverse"),n.axis=l,l.model=n,l.grid=i,l.index=r,i._axesList.push(l),a[t][r]=l,s[t]++}}}this._axesMap=a,R(a.x,(function(t,n){R(a.y,(function(i,o){var a="x"+n+"y"+o,s=new x_(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){R(v_(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}R(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(N_(e)){var r=j_(e),i=r.xAxisModel,o=r.yAxisModel;if(!B_(i,t)||!B_(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),u=a.getAxis("x"),l=a.getAxis("y");"list"===s.type&&(n(s,u),n(s,l))}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return R(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);I(t,i)<0&&t.push(i),I(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),t.eachSeries((function(e){if(N_(e)){var t=j_(e),n=t.xAxisModel,r=t.yAxisModel;0;var i=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=b_,e}(),H_=Math.PI,U_=function(){function e(e,t){this.group=new xr,this.opt=t,this.axisModel=e,E(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new xr({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!G_[e]},e.prototype.add=function(e){G_[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=Dr(t-e);return Lr(o)?(i=n>0?"top":"bottom",r="center"):Lr(o-H_)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<H_?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),G_={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],u=[o[1],0];a&&(Me(s,s,a),Me(u,u,a));var l=M({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Lu({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:l,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var f=t.get(["axisLine","symbol"]),d=t.get(["axisLine","symbolSize"]),h=t.get(["axisLine","symbolOffset"])||0;if("number"===typeof h&&(h=[h,h]),null!=f){"string"===typeof f&&(f=[f,f]),"string"!==typeof d&&"number"!==typeof d||(d=[d,d]);var p=d[0],g=d[1];R([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],(function(t,r){if("none"!==f[r]&&null!=f[r]){var i=Tg(f[r],-p/2,-g/2,p,g,l.stroke,!0),o=t.r+t.offset;i.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),u=r.tickDirection*o.get("length"),l=q_(i.getTicksCoords(),t.transform,u,E(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<l.length;c++)e.add(l[c]);return l}(n,r,t,e),o=function(e,t,n,r){var i=n.axis;if(!$(r.axisLabelShow,n.get(["axisLabel","show"]))||i.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),u=($(r.labelRotate,o.get("rotate"))||0)*H_/180,l=U_.innerTextLayout(r.rotation,u,r.labelDirection),c=n.getCategories&&n.getCategories(!0),f=[],d=U_.isLabelSilent(n),h=n.get("triggerEvent");return R(s,(function(s,u){var p="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,y=s.rawLabel,v=o;if(c&&c[p]){var m=c[p];W(m)&&m.textStyle&&(v=new ac(m.textStyle,o,n.ecModel))}var b=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(p),x=new Ga({x:w,y:r.labelOffset+r.labelDirection*a,rotation:l.rotation,silent:d,z2:10,style:zl(v,{text:g,align:v.getShallow("align",!0)||l.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||l.textVerticalAlign,fill:"function"===typeof b?b("category"===i.type?y:"value"===i.type?p+"":p,u):b})});if(x.anid="label_"+p,h){var _=U_.makeAxisEventDataBase(n);_.targetType="axisLabel",_.value=y,Ja(x).eventData=_}t.add(x),x.updateTransform(),f.push(x),e.add(x),x.decomposeTransform()})),f}(n,r,t,e);!function(e,t,n){if(y_(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(t=t||[])[0],a=t[1],s=t[t.length-1],u=t[t.length-2],l=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];!1===r?(J_(o),J_(l)):X_(o,a)&&(r?(J_(a),J_(c)):(J_(o),J_(l)));!1===i?(J_(s),J_(f)):X_(u,s)&&(i?(J_(u),J_(d)):(J_(s),J_(f)))}(t,o,i),function(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),u=r*o.get("length"),l=E(s.getLineStyle(),E(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=q_(a[c],t.transform,u,l,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}(n,r,t,e.tickDirection)},axisName:function(e,t,n,r){var i=$(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),u=e.nameDirection,l=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,f=t.axis.getExtent(),d=f[0]>f[1]?-1:1,h=["start"===s?f[0]-d*c:"end"===s?f[1]+d*c:(f[0]+f[1])/2,W_(s)?e.labelOffset+u*c:0],p=t.get("nameRotate");null!=p&&(p=p*H_/180),W_(s)?o=U_.innerTextLayout(e.rotation,null!=p?p:e.rotation,u):(o=function(e,t,n,r){var i,o,a=Dr(n-e),s=r[0]>r[1],u="start"===t&&!s||"start"!==t&&s;Lr(a-H_/2)?(o=u?"bottom":"top",i="center"):Lr(a-1.5*H_)?(o=u?"top":"bottom",i="center"):(o="middle",i=a<1.5*H_&&a>H_/2?u?"left":"right":u?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(e.rotation,s,p||0,f),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=l.getFont(),y=t.get("nameTruncate",!0)||{},v=y.ellipsis,m=$(e.nameTruncateMaxWidth,y.maxWidth,a),b=new Ga({x:h[0],y:h[1],rotation:o.rotation,silent:U_.isLabelSilent(t),style:zl(l,{text:i,font:g,overflow:"truncate",width:m,ellipsis:v,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||o.textAlign,verticalAlign:l.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ll({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=U_.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Ja(b).eventData=w}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function J_(e){e&&(e.ignore=!0)}function X_(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=lt([]);return ht(i,i,-e.rotation),n.applyTransform(ft([],i,e.getLocalTransform())),r.applyTransform(ft([],i,t.getLocalTransform())),n.intersect(r)}}function W_(e){return"middle"===e||"center"===e}function q_(e,t,n,r,i){for(var o=[],a=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;a[0]=l,a[1]=0,s[0]=l,s[1]=n,t&&(Me(a,a,t),Me(s,s,t));var c=new Lu({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});c.anid=i+"_"+e[u].tickValue,o.push(c)}return o}var Z_=U_;function K_(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];R(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=tk(n.model),u=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel("tooltip",r);if(R(n.getAxes(),V(h,!1,null)),n.getTooltipAxes&&r&&l.get("show")){var c="axis"===l.get("trigger"),f="cross"===l.get(["axisPointer","type"]),d=n.getTooltipAxes(l.get(["axisPointer","axis"]));(c||f)&&R(d.baseAxes,V(h,!f||"cross",c)),f&&R(d.otherAxes,V(h,"cross",!1))}}function h(r,s,c){var f=c.model.getModel("axisPointer",i),d=f.get("show");if(d&&("auto"!==d||r||ek(f))){null==s&&(s=f.get("triggerTooltip"));var h=(f=r?function(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s={};R(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){s[e]=C(a.get(e))})),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var u=s.label||(s.label={});if(null==u.show&&(u.show=!1),"cross"===i){var l=a.get(["label","show"]);if(u.show=null==l||l,!o){var c=s.lineStyle=a.get("crossStyle");c&&E(u,c.textStyle)}}return e.model.getModel("axisPointer",new ac(s,n,r))}(c,l,i,t,r,s):f).get("snap"),p=tk(c.model),g=s||h||"category"===c.type,y=e.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:f,triggerTooltip:s,involveSeries:g,snap:h,useHandle:ek(f),seriesModels:[],linkGroup:null};u[p]=y,e.seriesInvolved=e.seriesInvolved||g;var v=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(Y_(o[r+"AxisId"],n.id)||Y_(o[r+"AxisIndex"],n.componentIndex)||Y_(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=v){var m=a[v]||(a[v]={axesInfo:{}});m.axesInfo[p]=y,m.mapper=o[v].mapper,y.linkGroup=m}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&R(e.coordSysAxesInfo[tk(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function Y_(e,t){return"all"===e||H(e)&&I(e,t)>=0||e===t}function $_(e){var t=Q_(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=ek(n);null==o&&(i.status=s?"show":"hide");var u=r.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Q_(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[tk(e)]}function ek(e){return!!e.get(["handle","show"])}function tk(e){return e.type+"||"+e.id}var nk={},rk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&$_(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(e){var t=Q_(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){nk[e]=t},t.getAxisPointerClass=function(e){return e&&nk[e]},t.type="axis",t}(Lh),ik=ni();function ok(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),u=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:o,clamp:!0});if(l.length){var c=s.length,f=ik(e).splitAreaColors,d=ue(),h=0;if(f)for(var p=0;p<l.length;p++){var g=f.get(l[p].tickValue);if(null!=g){h=(g+(c-1)*p)%c;break}}var y=i.toGlobalCoord(l[0].coord),v=a.getAreaStyle();s=H(s)?s:[s];for(p=1;p<l.length;p++){var m=i.toGlobalCoord(l[p].coord),b=void 0,w=void 0,x=void 0,_=void 0;i.isHorizontal()?(b=y,w=u.y,x=m-b,_=u.height,y=b+x):(b=u.x,w=y,x=u.width,y=w+(_=m-w));var k=l[p-1].tickValue;null!=k&&d.set(k,h),t.add(new Da({anid:null!=k?"area_"+k:null,shape:{x:b,y:w,width:x,height:_},style:E({fill:s[h]},v),autoBatch:!0,silent:!0})),h=(h+1)%c}ik(e).splitAreaColors=d}}}function ak(e){ik(e).splitAreaColors=null}var sk=["axisLine","axisTickLabel","axisName"],uk=["splitArea","splitLine","minorSplitLine"],lk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return a(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xr,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=R_(a,t),u=new Z_(t,M({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++){var i=n[r].getOtherAxis(t.axis).type;if("value"===i||"log"===i)return!0}return!1}},s));R(sk,u.add,u),this._axisGroup.add(u.getGroup()),R(uk,(function(e){t.get([e,"show"])&&ck[e](this,this._axisGroup,t,a)}),this),Al(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){ak(this)},t.type="cartesianAxis",t}(rk),ck={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=H(s)?s:[s];for(var u=r.coordinateSystem.getRect(),l=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:o}),d=[],h=[],p=a.getLineStyle(),g=0;g<f.length;g++){var y=i.toGlobalCoord(f[g].coord);l?(d[0]=y,d[1]=u.y,h[0]=y,h[1]=u.y+u.height):(d[0]=u.x,d[1]=y,h[0]=u.x+u.width,h[1]=y);var v=c++%s.length,m=f[g].tickValue;t.add(new Lu({anid:null!=m?"line_"+f[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:E({stroke:s[v]},p),silent:!0}))}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var l=[],c=[],f=o.getLineStyle(),d=0;d<u.length;d++)for(var h=0;h<u[d].length;h++){var p=i.toGlobalCoord(u[d][h].coord);s?(l[0]=p,l[1]=a.y,c[0]=p,c[1]=a.y+a.height):(l[0]=a.x,l[1]=p,c[0]=a.x+a.width,c[1]=p),t.add(new Lu({anid:"minor_line_"+u[d][h].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:f,silent:!0}))}},splitArea:function(e,t,n,r){ok(e,t,n,r)}},fk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="xAxis",t}(lk),dk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=fk.type,t}return a(t,e),t.type="yAxis",t}(lk),hk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return a(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Da({shape:e.coordinateSystem.getRect(),style:E({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Lh),pk={offset:0};function gk(e){e.registerComponentView(hk),e.registerComponentModel(cx),e.registerCoordinateSystem("cartesian2d",V_),xx(e,"x",dx,pk),xx(e,"y",dx,pk),e.registerComponentView(fk),e.registerComponentView(dk),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function yk(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();R(i,(function(e,o){t.each(t.mapDimension(i[o].dim),(function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,o);n[t][o]=vk(i)?i:mk(r)}))})),t.each((function(e){var i=function(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}(n[e],(function(e){return vk(e)}))||mk(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])}))}}))}function vk(e){return!isNaN(e[0])&&!isNaN(e[1])}function mk(e){return[e.cx,e.cy]}function bk(e){var t=e.polar;if(t){H(t)||(t=[t]);var n=[];R(t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],H(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}R(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var wk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,o=this.group,a=e.getData(),s=this._data;function u(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=function(e){return H(e)||(e=[+e,+e]),e}(e.getItemVisual(t,"symbolSize")),i=Tg(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function l(t,n,i,o,a,s){i.removeAll();for(var l=0;l<n.length-1;l++){var c=u(o,a);c&&(c.__dimIdx=l,t[l]?(c.setPosition(t[l]),r[s?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},e,a)):c.setPosition(n[l]),i.add(c))}}function c(e){return N(e,(function(e){return[i.cx,i.cy]}))}a.diff(s).add((function(t){var n=a.getItemLayout(t);if(n){var r=new Au,i=new Eu,o={shape:{points:n}};r.shape.points=c(n),i.shape.points=c(n),ml(r,o,e,t),ml(i,o,e,t);var s=new xr,u=new xr;s.add(i),s.add(r),s.add(u),l(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}})).update((function(t,n){var r=s.getItemGraphicEl(n),i=r.childAt(0),o=r.childAt(1),u=r.childAt(2),c={shape:{points:a.getItemLayout(t)}};c.shape.points&&(l(i.shape.points,c.shape.points,u,a,t,!1),vl(i,c,e),vl(o,c,e),a.setItemGraphicEl(t,r))})).remove((function(e){o.remove(s.getItemGraphicEl(e))})).execute(),a.eachItemGraphicEl((function(e,t){var n=a.getItemModel(t),r=e.childAt(0),i=e.childAt(1),s=e.childAt(2),u=a.getItemVisual(t,"style"),l=u.fill;o.add(e),r.useStyle(E(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:l})),Ps(r,n,"lineStyle"),Ps(i,n,"areaStyle");var c=n.getModel("areaStyle"),f=c.isEmpty()&&c.parentModel.isEmpty();i.ignore=f,R(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();i.ensureState(e).ignore=r&&f})),i.useStyle(E(c.getAreaStyle(),{fill:l,opacity:.7,decal:u.decal}));var d=n.getModel("emphasis"),h=d.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof Ta){var r=e.style;e.useStyle(M({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},u))}else e.useStyle(u),e.setColor(l);e.ensureState("emphasis").style=C(h);var i=a.get(a.dimensions[e.__dimIdx],t);(null==i||isNaN(i))&&(i=""),Bl(e,Fl(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:u.opacity})})),As(e,d.get("focus"),d.get("blurScope"))})),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Gh),xk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new rx(z(this.getData,this),z(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return nx(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(e),a=""===o?this.name:o,s=mh(this,e);return fh("section",{header:a,sortBlocks:!0,blocks:N(i,(function(t){var n=r.get(r.mapDimension(t.dim),e);return fh("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(N(n.dimensions,(function(e){return t.mapDimension(e)})),e),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbolSize:8},t}(Ih),_k=yx.value;function kk(e,t){return E({show:t},e)}var Sk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),l=this.get("axisNameGap"),c=this.get("triggerEvent"),f=N(this.get("indicator")||[],(function(f){null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0);var d=a;null!=f.color&&(d=E({color:f.color},a));var h=A(C(f),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:f.text,nameLocation:"end",nameGap:l,nameTextStyle:d,triggerEvent:c},!1);if(s||(h.name=""),"string"===typeof u){var p=h.name;h.name=u.replace("{value}",null!=p?p:"")}else"function"===typeof u&&(h.name=u(h.name,h));var g=new ac(h,null,this.ecModel);return D(g,fx.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:A({lineStyle:{color:"#bbb"}},_k.axisLine),axisLabel:kk(_k.axisLabel,!1),axisTick:kk(_k.axisTick,!1),splitLine:kk(_k.splitLine,!0),splitArea:kk(_k.splitArea,!0),indicator:[]},t}(lf),Tk=["axisLine","axisTickLabel","axisName"],Ck=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem;R(N(t.getIndicatorAxes(),(function(e){return new Z_(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(e){R(Tk,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),o=e.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),u=i.get("show"),l=o.get("show"),c=a.get("color"),f=s.get("color"),d=H(c)?c:[c],h=H(f)?f:[f],p=[],g=[];if("circle"===r)for(var y=n[0].getTicksCoords(),v=t.cx,m=t.cy,b=0;b<y.length;b++){if(u)p[A(p,d,b)].push(new nu({shape:{cx:v,cy:m,r:y[b].coord}}));if(l&&b<y.length-1)g[A(g,h,b)].push(new _u({shape:{cx:v,cy:m,r0:y[b].coord,r:y[b+1].coord}}))}else{var w,x=N(n,(function(e,n){var r=e.getTicksCoords();return w=null==w?r.length-1:Math.min(r.length-1,w),N(r,(function(e){return t.coordToPoint(e.coord,n)}))})),_=[];for(b=0;b<=w;b++){for(var k=[],S=0;S<n.length;S++)k.push(x[S][b]);if(k[0]&&k.push(k[0].slice()),u)p[A(p,d,b)].push(new Eu({shape:{points:k}}));if(l&&_)g[A(g,h,b-1)].push(new Au({shape:{points:k.concat(_)}}));_=k.slice().reverse()}}var T=a.getLineStyle(),C=s.getAreaStyle();R(g,(function(e,t){this.group.add(fl(e,{style:E({stroke:"none",fill:h[t%h.length]},C),silent:!0}))}),this),R(p,(function(e,t){this.group.add(fl(e,{style:E({fill:"none",stroke:d[t%d.length]},T),silent:!0}))}),this)}function A(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(Lh),Ak=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return a(t,e),t}(D_),Ok=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=N(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new Ak(n,new Nx);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,o=Math.atan2(-n,t),a=1/0,s=-1,u=0;u<this._indicatorAxes.length;u++){var l=this._indicatorAxes[u],c=Math.abs(o-l.angle);c<a&&(i=l,s=u,a=c)}return[s,+(i&&i.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i)/2;this.cx=Or(n[0],r),this.cy=Or(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");"string"!==typeof a&&"number"!==typeof a||(a=[0,a]),this.r0=Or(a[0],o),this.r=Or(a[1],o),R(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;R(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,i){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var o=t.getData();R(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var i=r.get("splitNumber");function o(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}R(n,(function(e,t){var n=l_(e.scale,e.model).extent;c_(e.scale,e.model);var r=e.model,a=e.scale,s=u_(a,r.get("min",!0)),u=u_(a,r.get("max",!0)),l=a.getInterval();if(null!=s&&null!=u)a.setExtent(+s,+u),a.setInterval((u-s)/i);else if(null!=s){var c=void 0;do{c=s+l*i,a.setExtent(+s,c),a.setInterval(l),l=o(l)}while(c<n[1]&&isFinite(c)&&isFinite(n[1]))}else if(null!=u){var f=void 0;do{f=u-l*i,a.setExtent(f,+u),a.setInterval(l),l=o(l)}while(f>n[0]&&isFinite(f)&&isFinite(n[0]))}else{a.getTicks().length-1>i&&(l=o(l));f=Mr((c=Math.ceil(n[1]/l)*l)-l*i);a.setExtent(f,c),a.setInterval(l)}}))},e.prototype.convertToPixel=function(e,t,n){return null},e.prototype.convertFromPixel=function(e,t,n){return null},e.prototype.containPoint=function(e){return!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])})),r},e.dimensions=[],e}();function Mk(e){e.registerCoordinateSystem("radar",Ok),e.registerComponentModel(Sk),e.registerComponentView(Ck),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendSymbol","roundRect")})),t.setVisual("legendSymbol","roundRect")}})}var Ek="\0_ec_interaction_mutex";function Pk(e,t){return!!Ik(e)[t]}function Ik(e){return e[Ek]||(e[Ek]={})}function Dk(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(Ke(r.event),Lk(e,t,n,r,i))}function Lk(e,t,n,r,i){i.isAvailableBehavior=z(Rk,null,n,r),e.trigger(t,i)}function Rk(e,t,n){var r=n[e];return!e||r&&(!G(r)||t.event[r+"Key"])}Vv({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){}));var Nk=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=z(n._mousedownHandler,n),i=z(n._mousemoveHandler,n),o=z(n._mouseupHandler,n),a=z(n._mousewheelHandler,n),s=z(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=E(C(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return a(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Ye(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Rk("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!Pk(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,o=t-r,a=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&Ke(e.event),Lk(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Ye(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Rk("zoomOnMouseWheel",e,this._opt),n=Rk("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),o=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1;Dk(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r);Dk(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(u>3?.4:u>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){Pk(this._zr,"globalPan")||Dk(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(Le);function jk(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function Bk(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,u=o.max||1/0;a=Math.max(Math.min(u,a),s)}var l=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(l-1),i.y-=(r-i.y)*(l-1),i.scaleX*=l,i.scaleY*=l,i.dirty()}var Fk={axisPointer:1,tooltip:1,brush:1};function zk(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Fk.hasOwnProperty(r.mainType)&&i&&i.model!==n}var Vk=["rect","circle","line","ellipse","polygon","polyline","path"],Hk=ue(Vk),Uk=ue(Vk.concat(["g"])),Gk=ue(Vk.concat(["g"])),Jk=ni();function Xk(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function Wk(e,t,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),u=Xk(i),l=Xk(o),c=Xk(s),f=Xk(a),d=e.data;if(d){var h=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(u.fill=h.fill),p&&(u.decal=qg(p,e.api))}t.setStyle(u),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=l,t.ensureState("select").style=c,t.ensureState("blur").style=f,fs(t)}function qk(e,t,n,r,i,o,a){var s=e.data,u=e.isGeo,l=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(u||l||c&&c.showLabel){var f=u?n:o,d=void 0;(!s||o>=0)&&(d=i);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Bl(t,Fl(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var p=t.getTextContent();if(p&&(Jk(p).ignore=p.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}!function(e,t,n){Ja(e).dataIndex=t,Ja(e).dataType=n}(t,o,null),t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Zk(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):Ja(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function Kk(e,t,n,r,i){e.data||Ll({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function Yk(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return As(t,a,o.get("blurScope")),e.isGeo&&function(e,t,n){var r=Ja(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}(t,i,n),a}var $k=function(){function e(e){var t=new xr;this.uid=uc("ec_map_draw"),this._controller=new Nk(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new xr),t.add(this._svgGroup=new xr)}return e.prototype.draw=function(e,t,n,r,i){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,u=this._regionsGroup,l=this.group,c=s.getTransformInfo(),f=c.raw,d=c.roam;!u.childAt(0)||i?(l.x=d.x,l.y=d.y,l.scaleX=d.scaleX,l.scaleY=d.scaleY,l.dirty()):vl(l,d,e);var h=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:h,isGeo:o,transformInfoRaw:f};"geoJSON"===s.resourceType?this._buildGeoJSON(p):"geoSVG"===s.resourceType&&this._buildSVG(p),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ue(),n=this._regionsGroup,r=e.transformInfoRaw,i=e.mapOrGeoModel,o=e.data,a=function(e){return[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]};n.removeAll(),R(e.geo.regions,(function(r){var s=r.name,u=i.getRegionModel(s),l=o?o.indexOfName(s):null,c=t.get(s),f=!!c;f||(c=t.set(s,new xr),n.add(c));var d=new Uu({segmentIgnoreThreshold:1,shape:{paths:[]}});c.add(d),f||(Zk(e,c,s,u,i,l),Kk(e,c,s,u,i),Yk(e,c,s,u,i)),R(r.geometries,(function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(a(e.exterior[n]));d.shape.paths.push(new Au({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var r=e.interiors[n],i=[],o=0;o<r.length;++o)i.push(a(r[o]));d.shape.paths.push(new Au({segmentIgnoreThreshold:1,shape:{points:i}}))}}})),Wk(e,d,l,u),d instanceof qi&&(d.culling=!0);var h=a(r.getCenter());qk(e,d,s,u,i,l,h)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=ue(),i=!1;R(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,u=t.el,l=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=Hk.get(s)&&u instanceof qi&&Wk(e,u,l,c),u instanceof qi&&(u.culling=!0),u.z2EmphasisLift=0,t.namedFrom)||(null!=Gk.get(s)&&qk(e,u,n,c,o,l,null),Zk(e,u,n,c,o,l),Kk(e,u,n,c,o),null!=Uk.get(s)&&("self"===Yk(e,u,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(u)))}),this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){fs(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=jy(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=jy(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}i.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,jk(o,e.dx,e.dy),n.dispatchAction(M(s(),{dx:e.dx,dy:e.dy}))}),this),i.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,Bk(o,e.scale,e.originX,e.originY),n.dispatchAction(M(s(),{zoom:e.scale,originX:e.originX,originY:e.originY}))}),this),i.setPointerChecker((function(t,i,o){return r.containPoint([i,o])&&!zk(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=Jk(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}(),Qk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(o=this._mapDraw)&&i.add(o.group);else if(e.needsDrawMap){var o=this._mapDraw||new $k(n);i.add(o.group),o.draw(e,t,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,u=new nu({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=e.mainSeries.getData(),c=r.getName(n),f=l.indexOfName(c),d=r.getItemModel(n),h=d.getModel("label"),p=l.getItemGraphicEl(f);Bl(u,Fl(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(f,n)}}}),u.disableLabelAnimation=!0,h.get("position")||u.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){ls(u,e)}}i.add(u)}}}))},t.type="map",t}(Gh),eS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return a(t,e),t.prototype.getInitialData=function(e){for(var t=nx(this,{coordDimensions:["value"],encodeDefaulter:V(bf,this)}),n=ue(),r=[],i=0,o=t.count();i<o;i++){var a=t.getName(i);n.set(a,!0)}return R(By(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(e){var t=e.name;n.get(t)||r.push(t)})),t.appendValues([],r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),o=r.getName(e),a=this.seriesGroup,s=[],u=0;u<a.length;u++){var l=a[u].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[u].originalData.get(c,l))||s.push(a[u].name)}return fh("section",{header:s.join(", "),noHeader:!s.length,blocks:[fh("nameValue",{name:o,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.symbolType||"roundRect",n=Tg(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ih);function tS(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),R(t,(function(e,t){for(var n=function(e,t){var n={};return R(e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+e[0].getName(i),s=0,u=1/0,l=-1/0,c=n[a].length,f=0;f<c;f++)u=Math.min(u,n[a][f]),l=Math.max(l,n[a][f]),s+=n[a][f];return o="min"===t?u:"max"===t?l:"average"===t?s/c:s,0===c?NaN:o}))}(N(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=0===r&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]}))}function nS(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};R(n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var o=r.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=i[o]||0,u=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(t,{point:u,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!i[t],o.setItemLayout(e,n)})),t[r]=!0}}))}var rS=Me;function iS(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var oS=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new _t,n._rawTransformable=new _t,n.name=t,n}return a(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new _n(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new _n(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new _n(e,t,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e){e&&(this._center=e,this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=Me([],r,e),n=Me([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),ct(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],gt(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new _t;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?rS(n,e,r):ye(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?rS([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=iS(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=iS(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(_t),aS={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},sS=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=["lng","lat"],i.type="geo",i._nameCoordMap=ue(),i.map=n;var o=By(n,r.nameMap,r.nameProperty),a=jy(n);i.resourceType=a?a.type:null;var s=aS[a.type];i._regionsMap=o.regionsMap,i._invertLongitute=s.invertLongitute,i.regions=o.regions,i.aspectScale=Q(r.aspectScale,s.aspectScale);var u=o.boundingRect;return i.setBoundingRect(u.x,u.y,u.width,u.height),i}return a(t,e),t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new _n(e,t,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if("string"===typeof e&&(e=this.getGeoCoord(e)),e)return oS.prototype.dataToPoint.call(this,e,t,n)},t.prototype.convertToPixel=function(e,t,n){var r=uS(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=uS(t);return r===this?r.pointToData(n):null},t}(oS);function uS(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ai).models[0]||{}).coordinateSystem:null}D(sS,oS);var lS=sS;function cS(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];isNaN(r[0])||isNaN(r[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}var o,a,s,u=this.getBoundingRect(),l=e.get("layoutCenter"),c=e.get("layoutSize"),f=t.getWidth(),d=t.getHeight(),h=u.width/u.height*this.aspectScale,p=!1;if(l&&c&&(o=[Or(l[0],f),Or(l[1],d)],a=Or(c,Math.min(f,d)),isNaN(o[0])||isNaN(o[1])||isNaN(a)||(p=!0)),p)s={},h>1?(s.width=a,s.height=a/h):(s.height=a,s.width=a*h),s.y=o[1]-s.height/2,s.x=o[0]-s.width/2;else{var g=e.getBoxLayoutParams();g.aspect=h,s=ef(g,{width:f,height:d})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}var fS=new(function(){function e(){this.dimensions=lS.prototype.dimensions}return e.prototype.create=function(e,t){var n=[];e.eachComponent("geo",(function(e,r){var i=e.get("map"),o=new lS(i+r,i,{nameMap:e.get("nameMap"),nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale")});o.zoomLimit=e.get("scaleLimit"),n.push(o),e.coordinateSystem=o,o.model=e,o.resize=cS,o.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),R(r,(function(e,r){var i=N(e,(function(e){return e.get("nameMap")})),o=new lS(r,r,{nameMap:O(i),nameProperty:e[0].get("nameProperty"),aspectScale:e[0].get("aspectScale")});o.zoomLimit=$.apply(null,N(e,(function(e){return e.get("scaleLimit")}))),n.push(o),o.resize=cS,o.resize(e[0],t),R(e,(function(e){e.coordinateSystem=o,function(e,t){R(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(o,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),o=ue(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);return R(By(t,n,r).regions,(function(e){var t=e.name;!o.get(t)&&i.push({name:t})})),i},e}()),dS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t,n){var r=jy(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),Xr(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=fS.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=j(t.regions||[],(function(t,r){var i=r.name;return i&&(t.set(i,new ac(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t}),ue()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new ac(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return"function"===typeof r?(i.status=t,r(i)):"string"===typeof r?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(lf);function hS(e,t,n){var r=e.getZoom(),i=e.getCenter(),o=t.zoom,a=e.dataToPoint(i);if(null!=t.dx&&null!=t.dy&&(a[0]-=t.dx,a[1]-=t.dy,e.setCenter(e.pointToData(a))),null!=o){if(n){var s=n.min||0,u=n.max||1/0;o=Math.max(Math.min(r*o,u),s)/r}e.scaleX*=o,e.scaleY*=o;var l=(t.originX-e.x)*(o-1),c=(t.originY-e.y)*(o-1);e.x-=l,e.y-=c,e.updateTransform(),e.setCenter(e.pointToData(a)),e.setZoom(o*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var pS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return a(t,e),t.prototype.init=function(e,t){var n=new $k(t);this._mapDraw=n,this.group.add(n.group),this._api=t},t.prototype.render=function(e,t,n,r){var i=this._mapDraw;e.get("show")?i.draw(e,t,n,this,r):this._mapDraw.group.removeAll(),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this._model=e,this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;pg(e.target,(function(e){return null!=(t=Ja(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=Ja(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Lh);function gS(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name),R(n.coordinateSystem.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));var o=[];R(r,(function(e,t){r[t]&&o.push(t)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:e.name}}))}e.registerCoordinateSystem("geo",fS),e.registerComponentModel(dS),e.registerComponentView(pS),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var i=hS(r,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),"series"===n&&R(t.seriesGroup,(function(e){e.setCenter(i.center),e.setZoom(i.zoom)}))}}))}))}function yS(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,r=0,i=0;for(;--n>=0;){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var i=e,o=e,a=o.parentNode.children[0],s=t,u=i.hierNode.modifier,l=o.hierNode.modifier,c=a.hierNode.modifier,f=s.hierNode.modifier;s=wS(s),o=xS(o),s&&o;){i=wS(i),a=xS(a),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-o.hierNode.prelim-l+r(s,o);d>0&&(kS(_S(s,e,n),e,d),l+=d,u+=d),f+=s.hierNode.modifier,l+=o.hierNode.modifier,u+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!wS(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-u),o&&!xS(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=l-c,n=e)}return n}(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function vS(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function mS(e){return arguments.length?e:SS}function bS(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function wS(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function xS(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function _S(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function kS(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function SS(e,t){return e.parentNode===t.parentNode?1:2}var TS=function(){this.parentPoint=[],this.childPoints=[]},CS=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new TS},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,u="TB"===s||"BT"===s?0:1,l=1-u,c=Or(t.forkPosition,1),f=[];f[u]=i[u],f[l]=i[l]+(a[l]-i[l])*c,e.moveTo(i[0],i[1]),e.lineTo(f[0],f[1]),e.moveTo(o[0],o[1]),f[u]=o[u],e.lineTo(f[0],f[1]),f[u]=a[u],e.lineTo(f[0],f[1]),e.lineTo(a[0],a[1]);for(var d=1;d<r-1;d++){var h=n[d];e.moveTo(h[0],h[1]),f[u]=h[u],e.lineTo(f[0],f[1])}},t}(ma);function AS(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function OS(e,t,n,r,i){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),u=a.getVisual("style").fill,l=!1===a.isExpand&&0!==a.children.length?u:"#fff",c=e.tree.root,f=a.parentNode===c?a:a.parentNode||a,d=e.getItemGraphicEl(f.dataIndex),h=f.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,g=a.getLayout();o?((n=new Ib(e,t,null,{symbolInnerColor:l,useNameLabel:!0})).x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,vl(n,{x:g.x,y:g.y},i);var y=n.getSymbolPath();if("radial"===i.get("layout")){var v=c.children[0],m=v.getLayout(),b=v.children.length,w=void 0,x=void 0;if(g.x===m.x&&!0===a.isExpand){var _={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};(w=Math.atan2(_.y-m.y,_.x-m.x))<0&&(w=2*Math.PI+w),(x=_.x<m.x)&&(w-=Math.PI)}else(w=Math.atan2(g.y-m.y,g.x-m.x))<0&&(w=2*Math.PI+w),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(x=g.x<m.x)&&(w-=Math.PI):(x=g.x>m.x)||(w-=Math.PI);var k=x?"left":"right",S=s.getModel("label"),T=S.get("rotate"),C=T*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:S.get("position")||k,rotation:null==T?-w:C,origin:"center"}),A.setStyle("verticalAlign","middle"))}var O=s.get(["emphasis","focus"]),M="ancestor"===O?a.getAncestorsIndices():"descendant"===O?a.getDescendantIndices():null;M&&(Ja(n).focus=M),function(e,t,n,r,i,o,a,s){var u=t.getModel(),l=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=u.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===l)t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new Fu({shape:ES(c,f,d,i,i)})),vl(g,{shape:ES(c,f,d,o,a)},e));else if("polyline"===l)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var y=t.children,v=[],m=0;m<y.length;m++){var b=y[m].getLayout();v.push([b.x,b.y])}g||(g=r.__edge=new CS({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:f,forkPosition:h}})),vl(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}}else 0;g&&(g.useStyle(E({strokeNoScale:!0,fill:null},p)),Ps(g,u,"lineStyle"),fs(g),s.add(g))}(i,a,c,n,p,h,g,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);r&&1===r.hoverState||ls(n.__edge,t)}})}function MS(e,t,n,r,i){for(var o,a=e.tree.getNodeByDataIndex(t),s=e.tree.root,u=a.parentNode===s?a:a.parentNode||a;null==(o=u.getLayout());)u=u.parentNode===s?u:u.parentNode||u;var l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};bl(n,{x:o.x+1,y:o.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,{fadeLabel:!0,animation:l});var c=e.getItemGraphicEl(u.dataIndex).__edge,f=n.__edge||(!1===u.isExpand||1===u.children.length?c:void 0),d=i.get("edgeShape"),h=i.get("layout"),p=i.get("orient"),g=i.get(["lineStyle","curveness"]);f&&("curve"===d?bl(f,{shape:ES(h,p,g,o,o),style:{opacity:0}},i,{cb:function(){r.remove(f)},removeOpt:l}):"polyline"===d&&"orthogonal"===i.get("layout")&&bl(f,{shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]]},style:{opacity:0}},i,{cb:function(){r.remove(f)},removeOpt:l}))}function ES(e,t,n,r,i){var o,a,s,u,l,c,f,d;if("radial"===e){l=r.rawX,f=r.rawY,c=i.rawX,d=i.rawY;var h=bS(l,f),p=bS(l,f+(d-f)*n),g=bS(c,d+(f-d)*n),y=bS(c,d);return{x1:h.x||0,y1:h.y||0,x2:y.x||0,y2:y.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}return l=r.x,f=r.y,c=i.x,d=i.y,"LR"!==t&&"RL"!==t||(o=l+(c-l)*n,a=f,s=c+(l-c)*n,u=d),"TB"!==t&&"BT"!==t||(o=l,a=f+(d-f)*n,s=c,u=d+(f-d)*n),{x1:l,y1:f,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:u}}var PS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new xr,n}return a(t,e),t.prototype.init=function(e,t){this._controller=new Nk(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,o=this._mainGroup;"radial"===e.get("layout")?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(e),this._updateController(e,t,n);var a=this._data;r.diff(a).add((function(t){AS(r,t)&&OS(r,t,null,o,e)})).update((function(t,n){var i=a.getItemGraphicEl(n);AS(r,t)?OS(r,t,i,o,e):i&&MS(a,n,i,o,e)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&MS(a,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=r},t.prototype._updateViewCoordSys=function(e){var t=e.getData(),n=[];t.each((function(e){var r=t.getItemLayout(e);!r||isNaN(r.x)||isNaN(r.y)||n.push([+r.x,+r.y])}));var r=[],i=[];To(n,r,i);var o=this._min,a=this._max;i[0]-r[0]===0&&(r[0]=o?o[0]:r[0]-1,i[0]=a?a[0]:i[0]+1),i[1]-r[1]===0&&(r[1]=o?o[1]:r[1]-1,i[1]=a?a[1]:i[1]+1);var s=e.coordinateSystem=new oS;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=r,this._max=i},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!zk(t,n,e)})),i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){jk(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Bk(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Gh),IS=ni();function DS(e,t){if(IS(r=this).mainData===r){var n=M({},IS(this).datas);n[this.dataType]=t,BS(t,n,e)}else FS(t,this.dataType,IS(this).mainData,e);var r;return t}function LS(e,t){return e.struct&&e.struct.update(),t}function RS(e,t){return R(IS(t).datas,(function(n,r){n!==t&&FS(n.cloneShallow(),r,t,e)})),t}function NS(e){var t=IS(this).mainData;return null==e||null==t?t:IS(t).datas[e]}function jS(){var e=IS(this).mainData;return null==e?[{data:e}]:N(F(IS(e).datas),(function(t){return{type:t,data:IS(e).datas[t]}}))}function BS(e,t,n){IS(e).datas={},R(t,(function(t,r){FS(t,r,e,n)}))}function FS(e,t,n,r){IS(n).datas[t]=e,IS(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=NS,e.getLinkedDataAll=jS}var zS=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,BS(t,n,e),R(n,(function(n){R(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,V(DS,e))}))})),t.wrapMethod("cloneShallow",V(RS,e)),R(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,V(LS,e))})),re(n[t.dataType]===t)},VS=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){"function"===typeof e&&(n=t,t=e,e=null),G(e=e||{})&&(e={order:e});var r,i=e.order||"preorder",o=this[e.attr||"children"];"preorder"===i&&(r=t.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===i&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}();var HS=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),o=[],a=1;!function e(t,n){var r=t.value;a=Math.max(a,H(r)?r.length:1),o.push(t);var s=new VS($r(t.name,""),i);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(s,n):i.root=s,i._nodes.push(s);var u=t.children;if(u)for(var l=0;l<u.length;l++)e(u[l],s)}(t),i.root.updateDepthAndHeight(0);var s=xb(o,{coordDimensions:["value"],dimensionsCount:a}),u=new mb(s,n);return u.initData(o),r&&r(u),zS({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}(),US=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return a(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new ac(n,this,this.ecModel),i=HS.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n.children.length&&n.isExpand||(e.parentModel=r),e}))}));var o=0;i.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var a=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=a})),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(e),a=o.getValue(),s=o.name;o&&o!==i;)s=o.parentNode.name+"."+s,o=o.parentNode;return fh("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.type="series.tree",t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ih);function GS(e,t){for(var n,r=[e];n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function JS(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var n=function(e,t){return ef(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=mS((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,o=n.height,a=mS());var s=e.getData().tree.root,u=s.children[0];if(u){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[t];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(s),function(e,t,n){for(var r,i=[e],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)t(r,n)}(u,yS,a),s.hierNode.modifier=-u.hierNode.prelim,GS(u,vS);var l=u,c=u,f=u;GS(u,(function(e){var t=e.getLayout().x;t<l.getLayout().x&&(l=e),t>c.getLayout().x&&(c=e),e.depth>f.depth&&(f=e)}));var d=l===c?1:a(l,c)/2,h=d-l.getLayout().x,p=0,g=0,y=0,v=0;if("radial"===r)p=i/(c.getLayout().x+d+h),g=o/(f.depth-1||1),GS(u,(function(e){y=(e.getLayout().x+h)*p,v=(e.depth-1)*g;var t=bS(y,v);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:v},!0)}));else{var m=e.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+d+h),p=i/(f.depth-1||1),GS(u,(function(e){v=(e.getLayout().x+h)*g,y="LR"===m?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(p=i/(c.getLayout().x+d+h),g=o/(f.depth-1||1),GS(u,(function(e){y=(e.getLayout().x+h)*p,v="TB"===m?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:y,y:v},!0)})))}}}(e,t)}))}function XS(e){e.eachSeriesByType("tree",(function(e){var t=e.getData();t.tree.eachNode((function(e){var n=e.getModel().getModel("itemStyle").getItemStyle();M(t.ensureUniqueItemVisual(e.dataIndex,"style"),n)}))}))}function WS(e,t,n){if(e&&I(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if("string"===typeof i&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function qS(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function ZS(e,t){return I(qS(e),t)>=0}function KS(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var YS=function(){},$S=["treemapZoomToNode","treemapRender","treemapMove"];function QS(e){var t=e.getData().tree,n={};t.eachNode((function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=Ef(e.ecModel,r.name||r.dataIndex+"",n);t.setVisual("decal",i)}))}var eT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;R(t.children,(function(t){e(t);var r=t.value;H(r)&&(r=r[0]),n+=r}));var r=t.value;H(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);H(t.value)?t.value[0]=r:t.value=r}(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},o=new ac({itemStyle:i},this,t),a=N((r=e.levels=function(e,t){var n,r,i=Jr(t.get("color")),o=Jr(t.get(["aria","decal","decals"]));if(!i)return;R(e=e||[],(function(e){var t=new ac(e),i=t.get("color"),o=t.get("decal");(t.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(t.get(["itemStyle","decal"])||o&&"none"!==o)&&(r=!0)}));var a=e[0]||(e[0]={});n||(a.color=i.slice());!r&&o&&(a.decal=o.slice());return e}(r,t))||[],(function(e){return new ac(e,o,t)}),this),s=HS.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=a[n.depth];return e.parentModel=r||o,e}))}));return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return fh("nameValue",{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=KS(r,this),n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},M(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=ue(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){QS(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Ih);function tT(e,t,n,r,i,o){var a=[[i?e:e-5,t],[e+n,t],[e+n,t+r],[i?e:e-5,t+r]];return!o&&a.splice(2,0,[e+n+5,t+r/2]),!i&&a.push([e,t+r/2]),a}function nT(e,t,n){Ja(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&KS(n,t)}}var rT=function(){function e(e){this.group=new xr,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=a.getModel("textStyle"),u={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,s),this._renderContent(e,u,a,s,r),tf(o,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=$r(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:r,text:i,width:a})}},e.prototype._renderContent=function(e,t,n,r,i){for(var o=0,a=t.emptyItemWidth,s=e.get(["breadcrumb","height"]),u=function(e,t,n){var r=t.width,i=t.height,o=Or(e.left,r),a=Or(e.top,i),s=Or(e.right,r),u=Or(e.bottom,i);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(u)||isNaN(parseFloat(e.bottom)))&&(u=i),n=Fc(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(u-a-n[0]-n[2],0)}}(t.pos,t.box),l=t.totalWidth,c=t.renderList,f=c.length-1;f>=0;f--){var d=c[f],h=d.node,p=d.width,g=d.text;l>u.width&&(l-=p-a,p=a,g=null);var y=new Au({shape:{points:tT(o,0,p,s,f===c.length-1,0===f)},style:E(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ga({style:{text:g,fill:r.getTextColor(),font:r.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:V(i,h)});y.disableLabelAnimation=!0,this.group.add(y),nT(y,e,h),o+=p+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),iT=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();var oT=xr,aT=Da,sT=xi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),uT=function(e){var t=sT(e);return t.stroke=t.fill=t.lineWidth=null,t},lT=ni();var cT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return a(t,e),t.prototype.render=function(e,t,n,r){if(!(I(t.findComponents({mainType:"series",subType:"treemap",query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=WS(r,["treemapZoomToNode","treemapRootToNode"],e),o=r&&r.type,a=e.layoutInfo,s=!this._oldTree,u=this._storage,l="treemapRootToNode"===o&&i&&u?{rootNodeGroup:u.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,c=this._giveContainerGroup(a),f=this._doRender(c,e,l);s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?f.renderFinally():this._doAnimation(c,f,e,l),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new oT,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,u=[];function l(e,r,i,l){return function(e,t,n,r,i,o,a,s,u,l){if(!a)return;var c=a.getLayout(),f=e.getData(),d=a.getModel();if(f.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,y=c.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),b=a.viewChildren,w=c.upperHeight,x=b&&b.length,_=d.getModel("itemStyle"),k=d.getModel(["emphasis","itemStyle"]),S=d.getModel(["blur","itemStyle"]),T=d.getModel(["select","itemStyle"]),C=_.get("borderRadius")||0,A=j("nodeGroup",oT);if(!A)return;if(u.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),lT(A).nodeWidth=h,lT(A).nodeHeight=p,c.isAboveViewRoot)return A;var O=j("background",aT,l,20);O&&function(t,n,r){var i=Ja(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:h,height:p,r:C}),y)L(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,u=uT(_);u.fill=s;var l=sT(k);l.fill=k.get("borderColor");var c=sT(S);c.fill=S.get("borderColor");var f=sT(T);if(f.fill=T.get("borderColor"),r){var d=h-2*g;R(n,s,o.opacity,{x:g,y:0,width:d,height:w})}else n.removeTextContent();n.setStyle(u),n.ensureState("emphasis").style=l,n.ensureState("blur").style=c,n.ensureState("select").style=f,fs(n)}t.add(n)}(A,O,x&&c.upperLabelHeight);var E=d.get(["emphasis","focus"]),P=d.get(["emphasis","blurScope"]),I="ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():E;if(x)Ds(A)&&Is(A,!1),O&&(Is(O,!0),f.setItemGraphicEl(a.dataIndex,O),Os(O,I,P));else{var D=j("content",aT,l,30);D&&function(t,n){var r=Ja(n);r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(h-2*g,0),o=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:C}),y)L(n);else{n.invisible=!1;var s=a.getVisual("style"),u=s.fill,l=uT(_);l.fill=u,l.decal=s.decal;var c=sT(k),f=sT(S),d=sT(T);R(n,u,s.opacity,null),n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=f,n.ensureState("select").style=d,fs(n)}t.add(n)}(A,D),O&&Ds(O)&&Is(O,!1),Is(A,!0),f.setItemGraphicEl(a.dataIndex,A),Os(A,I,P)}return A;function L(e){!e.invisible&&o.push(e)}function R(t,n,r,i){var o=d.getModel(i?"upperLabel":"label"),s=$r(d.get("name"),null),u=o.getShallow("show");Bl(t,Fl(d,i?"upperLabel":"label"),{defaultText:u?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:a.dataIndex});var l=t.getTextContent(),f=l.style,h=ne(f.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-h[1]-h[3],0),n=Math.max((i?i.height:t.shape.height)-h[0]-h[2],0);f.width===e&&f.height===n||l.setStyle({width:e,height:n})},f.truncateMinChar=2,f.lineOverflow="truncate",N(f,i,c);var p=l.getState("emphasis");N(p?p.style:null,i,c)}function N(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function j(e,o,s,u){var l=null!=m&&n[e][m],c=i[e];return l?(n[e][m]=null,function(e,t){var n=e[v]={};t instanceof oT?(n.oldX=t.x,n.oldY=t.y):n.oldShape=M({},t.shape)}(c,l)):y||((l=new o)instanceof qi&&(l.z2=function(e,t){return 100*e+t}(s,u)),function(e,t){var n=e[v]={},o=a.parentNode,s=t instanceof xr;if(o&&(!r||"drillDown"===r.direction)){var u=0,l=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(u=c.oldShape.width,l=c.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:u,y:l,width:0,height:0}}n.fadein=!s}(c,l)),t[e][v]=l}}(t,a,s,n,o,u,e,r,i,l)}!function e(t,n,r,i,o){i?(n=t,R(t,(function(e,t){!e.isRemoved()&&s(t,t)}))):new Jm(n,t,a,a).add(s).update(s).remove(V(s,null)).execute();function a(e){return e.getId()}function s(a,s){var u=null!=a?t[a]:null,c=null!=s?n[s]:null,f=l(u,c,r,o);f&&e(u&&u.viewChildren||[],c&&c.viewChildren||[],f,i,o+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var c=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&R(e,(function(e,n){var r=t[n];R(e,(function(e){e&&(r.push(e),lT(e).willDelete=!0)}))})),t}(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){R(c,(function(e){R(e,(function(e){e.parent&&e.parent.remove(e)}))})),R(u,(function(e){e.invisible=!0,e.dirty()}))}}},t.prototype._doAnimation=function(e,t,n,r){if(n.get("animation")){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(U(i)?0:i)||0,s=(U(o)?null:o)||"cubicOut",u=new iT;R(t.willDeleteEls,(function(e,t){R(e,(function(e,n){if(!e.invisible){var i,o=e.parent,l=lT(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,f=0;l.willDelete||(c=l.nodeWidth/2,f=l.nodeHeight/2),i="nodeGroup"===t?{x:c,y:f,style:{opacity:0}}:{shape:{x:c,y:f,width:0,height:0},style:{opacity:0}}}i&&u.add(e,i,a,0,s)}}))})),R(this._storage,(function(e,n){R(e,(function(e,r){var i=t.lastsForAnimation[n][r],o={};i&&(e instanceof xr?null!=i.oldX&&(o.x=e.x,o.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(o.shape=M({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),u.add(e,o,a,0,s))}))}),this),this._state="animating",u.finished(z((function(){this._state="ready",t.renderFinally()}),this)).start()}},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new Nk(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",z(this._onPan,this)),t.on("zoom",z(this._onZoom,this)));var n=new _n(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,r){return n.contain(t,r)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new _n(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];dt(s,s,[-(t-=a.x),-(n-=a.y)]),pt(s,s,[e.scale,e.scale]),dt(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&qc(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new rT(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(ZS(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(Gh),fT=R,dT=W,hT=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=C(t);this.type=r,this.mappingMethod=n,this._normalizeData=kT[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(pT(i),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,R(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(fT(t,(function(e,t){n[e]=t})),!H(r)){var i=[];W(r)?fT(r,(function(e,t){var r=n[t];i[null!=r?r:-1]=e})):i[-1]=r,r=_T(e,i)}for(var o=t.length-1;o>=0;o--)null==r[o]&&(delete n[t[o]],t.pop())}(i):pT(i,!0):(re("linear"!==n||i.dataExtent),pT(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return z(this._normalizeData,this)},e.listVisualTypes=function(){return F(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){W(e)?R(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,o=H(t)?[]:W(t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,r={};return t&&fT(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(H(e))e=e.slice();else{if(!dT(e))return[];var t=[];fT(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||"string"===typeof s&&s===e+"")return o;n&&f(s,o)}}for(o=0,a=t.length;o<a;o++){var u=t[o],l=u.interval,c=u.close;if(l){if(l[0]===-1/0){if(ST(c[1],e,l[1]))return o}else if(l[1]===1/0){if(ST(c[0],l[0],e))return o}else if(ST(c[0],l[0],e)&&ST(c[1],e,l[1]))return o;n&&f(l[0],o),n&&f(l[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function f(t,n){var o=Math.abs(t-e);o<i&&(i=o,r=n)}},e.visualHandlers={color:{applyVisual:vT("color"),getColorMapper:function(){var e=this.option;return z("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),mT.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Jt(t,e.parsedVisual,r),i?r:qt(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return qt(Jt(e,this.option.parsedVisual),"rgba")},category:mT,piecewise:function(e,t){var n=xT.call(this,t);return null==n&&(n=qt(Jt(e,this.option.parsedVisual),"rgba")),n},fixed:bT}},colorHue:gT((function(e,t){return Xt(e,t)})),colorSaturation:gT((function(e,t){return Xt(e,null,t)})),colorLightness:gT((function(e,t){return Xt(e,null,null,t)})),colorAlpha:gT((function(e,t){return Wt(e,t)})),decal:{applyVisual:vT("decal"),_normalizedToVisual:{linear:null,category:mT,piecewise:null,fixed:null}},opacity:{applyVisual:vT("opacity"),_normalizedToVisual:wT([0,1])},liftZ:{applyVisual:vT("liftZ"),_normalizedToVisual:{linear:bT,category:bT,piecewise:bT,fixed:bT}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:yT,category:mT,piecewise:function(e,t){var n=xT.call(this,t);return null==n&&(n=yT.call(this,e)),n},fixed:bT}},symbolSize:{applyVisual:vT("symbolSize"),_normalizedToVisual:wT([0,1])}},e}();function pT(e,t){var n=e.visual,r=[];W(n)?fT(n,(function(e){r.push(e)})):null!=n&&r.push(n);t||1!==r.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(r[1]=r[0]),_T(e,r)}function gT(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:wT([0,1])}}function yT(e){var t=this.option.visual;return t[Math.round(Ar(e,[0,1],[0,t.length-1],!0))]||{}}function vT(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function mT(e){var t=this.option.visual;return t[this.option.loop&&-1!==e?e%t.length:e]}function bT(){return this.option.visual[0]}function wT(e){return{linear:function(t){return Ar(t,e,this.option.visual,!0)},category:mT,piecewise:function(t,n){var r=xT.call(this,n);return null==r&&(r=Ar(t,e,this.option.visual,!0)),r},fixed:bT}}function xT(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[hT.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function _T(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=N(t,(function(e){return Vt(e)}))),t}var kT={linear:function(e){return Ar(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=hT.findPieceIndex(e,t,!0);if(null!=n)return Ar(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?-1:t},fixed:de};function ST(e,t,n){return e?t<=n:t<n}var TT=hT,CT=ni(),AT={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||function e(t,n,r,i){var o=t.getModel(),a=t.getLayout(),s=t.hostTree.data;if(!a||a.invisible||!a.isInView)return;var u,l=o.getModel("itemStyle"),c=function(e,t,n){var r=M({},t),i=n.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var o=e.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}(l,n,i),f=s.ensureUniqueItemVisual(t.dataIndex,"style"),d=l.get("borderColor"),h=l.get("borderColorSaturation");null!=h&&(u=OT(c),d=function(e,t){return null!=t?Xt(t,null,null,e):null}(h,u));f.stroke=d;var p=t.viewChildren;if(p&&p.length){var g=function(e,t,n,r,i,o){if(!o||!o.length)return;var a=ET(t,"color")||null!=i.color&&"none"!==i.color&&(ET(t,"colorAlpha")||ET(t,"colorSaturation"));if(!a)return;var s=t.get("visualMin"),u=t.get("visualMax"),l=n.dataExtent.slice();null!=s&&s<l[0]&&(l[0]=s),null!=u&&u>l[1]&&(l[1]=u);var c=t.get("colorMappingBy"),f={type:a.name,dataExtent:l,visual:a.range};"color"!==f.type||"index"!==c&&"id"!==c?f.mappingMethod="linear":(f.mappingMethod="category",f.loop=!0);var d=new TT(f);return CT(d).drColorMappingBy=c,d}(0,o,a,0,c,p);R(p,(function(t,n){if(t.depth>=r.length||t===r[t.depth]){var a=function(e,t,n,r,i,o){var a=M({},t);if(i){var s=i.type,u="color"===s&&CT(i).drColorMappingBy,l="index"===u?r:"id"===u?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(l)}return a}(o,c,t,n,g,i);e(t,a,r,i)}}))}else u=OT(c),f.fill=u}(t,{},e.getViewRoot().getAncestors(),e)}};function OT(e){var t=MT(e,"color");if(t){var n=MT(e,"colorAlpha"),r=MT(e,"colorSaturation");return r&&(t=Xt(t,null,null,r)),n&&(t=Wt(t,n)),t}}function MT(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function ET(e,t){var n=e.get(t);return H(n)&&n.length?{name:t,range:n}:null}var PT=Math.max,IT=Math.min,DT=$,LT=R,RT=["itemStyle","borderWidth"],NT=["itemStyle","gapWidth"],jT=["upperLabel","show"],BT=["upperLabel","height"],FT={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),o=n.getHeight(),a=e.option,s=ef(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=a.size||[],l=Or(DT(s.width,u[0]),i),c=Or(DT(s.height,u[1]),o),f=r&&r.type,d=WS(r,["treemapZoomToNode","treemapRootToNode"],e),h="treemapRender"===f||"treemapMove"===f?r.rootRect:null,p=e.getViewRoot(),g=qS(p);if("treemapMove"!==f){var y="treemapZoomToNode"===f?function(e,t,n,r,i){var o,a=(t||{}).node,s=[r,i];if(!a||a===n)return s;var u=r*i,l=u*e.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,f=o.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var p=a.getValue();if(0===p)return s;l*=c/p;var g=o.getModel(),y=g.get(RT),v=Math.max(y,HT(g));(l+=4*y*y+(3*y+v)*Math.pow(l,.5))>9007199254740991&&(l=9007199254740991),a=o}l<u&&(l=u);var m=Math.pow(l/u,.5);return[r*m,i*m]}(e,d,p,l,c):h?[h.width,h.height]:[l,c],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var m={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};p.hostTree.clearLayouts();var b={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(b),function e(t,n,r,i){var o,a;if(t.isRemoved())return;var s=t.getLayout();o=s.width,a=s.height;var u=t.getModel(),l=u.get(RT),c=u.get(NT)/2,f=HT(u),d=Math.max(l,f),h=l-c,p=d-c;t.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:f},!0),o=PT(o-2*h,0),a=PT(a-h-p,0);var g=o*a,y=function(e,t,n,r,i,o){var a=e.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var u=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!u)return e.viewChildren=[];!function(e,t){t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}))}(a=B(a,(function(e){return!e.isRemoved()})),s);var l=function(e,t,n){for(var r=0,i=0,o=t.length;i<o;i++)r+=t[i].getValue();var a,s=e.get("visualDimension");t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],LT(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN];return{sum:r,dataExtent:a}}(t,a,s);if(0===l.sum)return e.viewChildren=[];if(l.sum=function(e,t,n,r,i){if(!r)return n;for(var o=e.get("visibleMin"),a=i.length,s=a,u=a-1;u>=0;u--){var l=i["asc"===r?a-u-1:u].getValue();l/n*t<o&&(s=u,n-=l)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(t,n,l.sum,s,a),0===l.sum)return e.viewChildren=[];for(var c=0,f=a.length;c<f;c++){var d=a[c].getValue()/l.sum*n;a[c].setLayout({area:d})}u&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0);return e.viewChildren=a,e.setLayout({dataExtent:l.dataExtent},!0),a}(t,u,g,n,r,i);if(!y.length)return;var v={x:h,y:p,width:o,height:a},m=IT(o,a),b=1/0,w=[];w.area=0;for(var x=0,_=y.length;x<_;){var k=y[x];w.push(k),w.area+=k.getLayout().area;var S=zT(w,m,n.squareRatio);S<=b?(x++,b=S):(w.area-=w.pop().getLayout().area,VT(w,m,v,c,!1),m=IT(v.width,v.height),w.length=w.area=0,b=1/0)}w.length&&VT(w,m,v,c,!0);if(!r){var T=u.get("childrenVisibleMin");null!=T&&g<T&&(r=!0)}for(x=0,_=y.length;x<_;x++)e(y[x],n,r,i+1)}(p,m,!1,0),b=p.getLayout(),LT(g,(function(e,t){var n=(g[t+1]||p).getValue();e.setLayout(M({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))}))}var w=e.getData().tree.root;w.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;for(;s;){var u=s.getLayout();a[0]+=u.x,a[1]+=u.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(s,h,d),!0),e.setLayoutInfo(s),function e(t,n,r,i,o){var a=t.getLayout(),s=r[o],u=s&&s===t;if(s&&!u||o===r.length&&t!==i)return;t.setLayout({isInView:!0,invisible:!u&&!n.intersect(a),isAboveViewRoot:u},!0);var l=new _n(n.x-a.x,n.y-a.y,n.width,n.height);LT(t.viewChildren||[],(function(t){e(t,l,r,i,o+1)}))}(w,new _n(-s.x,-s.y,i,o),g,p,0)}};function zT(e,t,n){for(var r=0,i=1/0,o=0,a=void 0,s=e.length;o<s;o++)(a=e[o].getLayout().area)&&(a<i&&(i=a),a>r&&(r=a));var u=e.area*e.area,l=t*t*n;return u?PT(l*r/u,u/(l*i)):1/0}function VT(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],u=["width","height"],l=n[s[o]],c=t?e.area/t:0;(i||c>n[u[a]])&&(c=n[u[a]]);for(var f=0,d=e.length;f<d;f++){var h=e[f],p={},g=c?h.getLayout().area/c:0,y=p[u[a]]=PT(c-2*r,0),v=n[s[o]]+n[u[o]]-l,m=f===d-1||v<g?v:g,b=p[u[o]]=PT(m-2*r,0);p[s[a]]=n[s[a]]+IT(r,y/2),p[s[o]]=l+IT(r,b/2),l+=m,h.setLayout(p,!0)}n[s[a]]+=c,n[u[a]]-=c}function HT(e){return e.get(jT)?e.get(BT):0}function UT(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e).getShallow("category");if(null!=n){"number"===typeof n&&(n=i[n]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(n))return!1}return!0}))}))}function GT(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(r,"style",s);for(var u=["symbol","symbolSize","symbolKeepAspect"],l=0;l<u.length;l++){var c=a.getShallow(u[l],!0);null!=c&&n.setItemVisual(r,u[l],c)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e).getShallow("category");if(null!=t){"string"===typeof t&&(t=i["ec-"+t]);var o=n.getItemVisual(t,"style");M(r.ensureUniqueItemVisual(e,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)r.setItemVisual(e,a[s],n.getItemVisual(t,a[s]))}}))}))}function JT(e){return e instanceof Array||(e=[e,e]),e}function XT(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=JT(e.get("edgeSymbol")),i=JT(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),o=JT(r.getShallow("symbol",!0)),a=JT(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),u=n.ensureUniqueItemVisual(e,"style");switch(M(u,s),u.stroke){case"source":var l=i.node1.getVisual("style");u.stroke=l&&l.fill;break;case"target":l=i.node2.getVisual("style");u.stroke=l&&l.fill}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var WT=function(e){return e.get("autoCurveness")||null},qT=function(e,t){var n=WT(e),r=20,i=[];if("number"===typeof n)r=n;else if(H(n))return void(e.__curvenessList=n);t>r&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=i},ZT=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join("--\x3e")},KT=function(e){var t=e.split("--\x3e");return[t[0],t[2],t[1]].join("--\x3e")},YT=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function $T(e,t,n,r){var i=WT(t),o=H(i);if(!i)return null;var a=function(e,t){var n=ZT(e.node1,e.node2,t);return t.__edgeMap[n]}(e,t);if(!a)return null;for(var s=-1,u=0;u<a.length;u++)if(a[u]===n){s=u;break}var l=function(e,t){return YT(ZT(e.node1,e.node2,t),t)+YT(ZT(e.node2,e.node1,t),t)}(e,t);qT(t,l),e.lineStyle=e.lineStyle||{};var c=ZT(e.node1,e.node2,t),f=t.__curvenessList,d=o||l%2?0:1;if(a.isForward)return f[d+s];var h=KT(c),p=YT(h,t),g=f[s+p+d];return r?o?i&&0===i[0]?(p+d)%2?g:-g:((p%2?0:1)+d)%2?g:-g:(p+d)%2?g:-g:f[s+p+d]}function QT(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),eC(n,e)}}function eC(e,t){e.eachEdge((function(e,n){var r=ee(e.getModel().get(["lineStyle","curveness"]),-$T(e,t,n,!0),0),i=ve(e.node1.getLayout()),o=ve(e.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),e.setLayout(a)}))}function tC(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];R(n.dimensions,(function(e){i=i.concat(r.mapDimensionsAll(e))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,u=0;u<i.length;u++){var l=r.get(i[u],o);isNaN(l)||(s=!0),a.push(l)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}eC(r.graph,e)}else t&&"none"!==t||QT(e)}))}function nC(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function rC(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var iC=Math.PI,oC=[];function aC(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var r=n.getBoundingRect(),i=e.getData(),o=i.graph,a=r.width/2+r.x,s=r.height/2+r.y,u=Math.min(r.width,r.height)/2,l=i.count();i.setLayout({cx:a,cy:s}),l&&(sC[t](e,o,i,u,a,s,l),o.eachEdge((function(t,n){var r,i=ee(t.getModel().get(["lineStyle","curveness"]),$T(t,e,n),0),o=ve(t.node1.getLayout()),u=ve(t.node2.getLayout()),l=(o[0]+u[0])/2,c=(o[1]+u[1])/2;+i&&(r=[a*(i*=3)+l*(1-i),s*i+c*(1-i)]),t.setLayout([o,u,r])})))}}var sC={value:function(e,t,n,r,i,o,a){var s=0,u=n.getSum("value"),l=2*Math.PI/(u||a);t.eachNode((function(e){var t=e.getValue("value"),n=l*(u?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,r,i,o,a){var s=0;oC.length=a;var u=nC(e);t.eachNode((function(e){var t=rC(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=u;var n=Math.asin(t/2/r);isNaN(n)&&(n=iC/2),oC[e.dataIndex]=n,s+=2*n}));var l=(2*iC-s)/a/2,c=0;t.eachNode((function(e){var t=l+oC[e.dataIndex];c+=t,e.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=t}))}};function uC(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&aC(e,"symbolSize")}))}var lC=be;function cC(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,o=r.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?i.each((function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&aC(e,"value"):QT(e);var u=i.getDataExtent("value"),l=o.getDataExtent("value"),c=a.get("repulsion"),f=a.get("edgeLength"),d=H(c)?c:[c,c],h=H(f)?f:[f,f];h=[h[1],h[0]];var p=i.mapArray("value",(function(e,t){var n=i.getItemLayout(t),r=Ar(e,u,d);return isNaN(r)&&(r=(d[0]+d[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(t,n){var i=r.getEdgeByIndex(n),o=Ar(t,l,h);isNaN(o)&&(o=(h[0]+h[1])/2);var a=i.getModel(),s=ee(i.getModel().get(["lineStyle","curveness"]),-$T(i,e,n,!0),0);return{n1:p[i.node1.dataIndex],n2:p[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),y=t.getBoundingRect(),v=function(e,t,n){for(var r=e,i=t,o=n.rect,a=o.width,s=o.height,u=[o.x+a/2,o.y+s/2],l=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=ge(a*(Math.random()-.5)+u[0],s*(Math.random()-.5)+u[1])),f.pp=ve(f.p),f.edges=null}var d,h,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){h=e},step:function(e){d&&d(r,i);for(var t,n,o,a=[],s=r.length,c=0;c<i.length;c++){var f=i[c];if(!f.ignoreForceLayout){var p=f.n1;we(a,(b=f.n2).p,p.p);var y=xe(a)-f.d,v=b.w/(p.w+b.w);isNaN(v)&&(v=0),Se(a,a),!p.fixed&&lC(p.p,p.p,a,v*y*g),!b.fixed&&lC(b.p,b.p,a,-(1-v)*y*g)}}for(c=0;c<s;c++){(_=r[c]).fixed||(we(a,u,_.p),lC(_.p,_.p,a,l*g))}for(c=0;c<s;c++){p=r[c];for(var m=c+1;m<s;m++){var b;we(a,(b=r[m]).p,p.p),0===(y=xe(a))&&(t=a,n=Math.random()-.5,o=Math.random()-.5,t[0]=n,t[1]=o,y=1);var w=(p.rep+b.rep)/y/y;!p.fixed&&lC(p.pp,p.pp,a,w),!b.fixed&&lC(b.pp,b.pp,a,-w)}}var x=[];for(c=0;c<s;c++){var _;(_=r[c]).fixed||(we(x,_.p,_.pp),lC(_.p,_.p,x,g),ye(_.pp,_.p))}var k=(g*=.992)<.01;h&&h(r,i,k),e&&e(k)}}}(p,g,{rect:y,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&ye(e[n].p,r.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||r.getNodeByIndex(a).setLayout(e[a].p),n[i.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var u=t[a],l=r.getEdgeByIndex(a),c=u.n1.p,f=u.n2.p,d=l.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],ye(d[0],c),ye(d[1],f),+u.curveness&&(d[2]=[(c[0]+f[0])/2-(c[1]-f[1])*u.curveness,(c[1]+f[1])/2-(f[0]-c[0])*u.curveness]),l.setLayout(d)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function fC(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),o=[],a=[];To(i.mapArray((function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]})),o,a),a[0]-o[0]===0&&(a[0]+=1,o[0]-=1),a[1]-o[1]===0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),u=function(e,t,n){return ef(M(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,s);isNaN(s)&&(o=[u.x,u.y],a=[u.x+u.width,u.y+u.height]);var l=a[0]-o[0],c=a[1]-o[1],f=u.width,d=u.height,h=e.coordinateSystem=new oS;h.zoomLimit=e.get("scaleLimit"),h.setBoundingRect(o[0],o[1],l,c),h.setViewRect(u.x,u.y,f,d),h.setCenter(e.get("center")),h.setZoom(e.get("zoom")),n.push(h)}})),n}var dC=Lu.prototype,hC=Fu.prototype,pC=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a(t,e)}(pC);function gC(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var yC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pC},t.prototype.buildPath=function(e,t){gC(t)?dC.buildPath.call(this,e,t):hC.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return gC(this.shape)?dC.pointAt.call(this,e):hC.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=gC(t)?[t.x2-t.x1,t.y2-t.y1]:hC.tangentAt.call(this,e);return Se(n,n)},t}(ma),vC=["fromSymbol","toSymbol"];function mC(e){return"_"+e+"Type"}function bC(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset")||0,s=t.getItemVisual(n,e+"KeepAspect"),u=H(i)?i:[i,i],l=H(a)?a:[a,a];l[0]=Or(l[0],u[0]),l[1]=Or(Q(l[1],l[0]),u[1]);var c=Tg(r,-u[0]/2+l[0],-u[1]/2+l[1],u[0],u[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function wC(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var xC=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return a(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=function(e){var t=new yC({name:"line",subPixelOptimize:!0});return wC(t.shape,e),t}(e.getItemLayout(t));i.shape.percent=0,ml(i,{shape:{percent:1}},r,t),this.add(i),R(vC,(function(n){var r=bC(n,e,t);this.add(r),this[mC(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};wC(a.shape,o),vl(i,a,r,t),R(vC,(function(n){var r=e.getItemVisual(t,n),i=mC(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=bC(n,e,t);this.add(o)}this[i]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,u=n&&n.labelStatesModels;if(!n||e.hasItemOption){var l=e.getItemModel(t);o=l.getModel(["emphasis","lineStyle"]).getLineStyle(),a=l.getModel(["blur","lineStyle"]).getLineStyle(),s=l.getModel(["select","lineStyle"]).getLineStyle(),u=Fl(l)}var c=e.getItemVisual(t,"style"),f=c.stroke;i.useStyle(c),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,R(vC,(function(e){var t=this.childOfName(e);if(t){t.setColor(f),t.style.opacity=c.opacity;for(var n=0;n<Za.length;n++){var r=Za[n],o=i.getState(r);if(o){var a=o.style||{},s=t.ensureState(r),u=s.style||(s.style={});null!=a.stroke&&(u[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(u.opacity=a.opacity)}}t.markRedraw()}}),this);var d=r.getRawValue(t);Bl(this,u,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:f||"#000",defaultOpacity:c.opacity,defaultText:(null==d?e.getName(t):isFinite(d)?Mr(d):d)+""});var h=this.getTextContent();if(h){var p=u.normal;h.__align=h.style.align,h.__verticalAlign=h.style.verticalAlign,h.__position=p.get("position")||"middle";var g=p.get("distance");H(g)||(g=[g,g]),h.__labelDistance=g}this.setTextConfig({position:null,local:!0,inside:!1}),As(this)},t.prototype.highlight=function(){ps(this)},t.prototype.downplay=function(){gs(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");wC(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),n=this.getTextContent();if(e||t||n&&!n.ignore){for(var r=1,i=this.parent;i;)i.scaleX&&(r/=i.scaleX),i=i.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),u=o.pointAt(a),l=we([],u,s);if(Se(l,l),e&&(e.setPosition(s),_(e,0),e.scaleX=e.scaleY=r*a,e.markRedraw()),t&&(t.setPosition(u),_(t,1),t.scaleX=t.scaleY=r*a,t.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var c=void 0,f=void 0,d=n.__labelDistance,h=d[0]*r,p=d[1]*r,g=a/2,y=o.tangentAt(g),v=[y[1],-y[0]],m=o.pointAt(g);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var b=y[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var w=-Math.atan2(y[1],y[0]);u[0]<s[0]&&(w=Math.PI+w),n.rotation=w}var x=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-p,f="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=p,f="top";break;default:x=0,f="middle"}switch(n.__position){case"end":n.x=l[0]*h+u[0],n.y=l[1]*p+u[1],c=l[0]>.8?"left":l[0]<-.8?"right":"center",f=l[1]>.8?"top":l[1]<-.8?"bottom":"middle";break;case"start":n.x=-l[0]*h+s[0],n.y=-l[1]*p+s[1],c=l[0]>.8?"right":l[0]<-.8?"left":"center",f=l[1]>.8?"bottom":l[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=h*b+s[0],n.y=s[1]+x,c=y[0]<0?"right":"left",n.originX=-h*b,n.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=m[0],n.y=m[1]+x,c="center",n.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-h*b+u[0],n.y=u[1]+x,c=y[0]>=0?"right":"left",n.originX=h*b,n.originY=-x}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||f,align:n.__align||c})}}}function _(e,t){var n=e.__specifiedRotation;if(null==n){var r=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(xr);function _C(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Fl(t)}}function kC(e){return isNaN(e[0])||isNaN(e[1])}function SC(e){return!kC(e[0])&&!kC(e[1])}var TC=function(){function e(e){this.group=new xr,this._LineCtor=e||xC}return e.prototype.isPersistent=function(){return!0},e.prototype.updateData=function(e){var t=this,n=this.group,r=this._lineData;this._lineData=e,r||n.removeAll();var i=_C(e);e.diff(r).add((function(n){t._doAdd(e,n,i)})).update((function(n,o){t._doUpdate(r,e,o,n,i)})).remove((function(e){n.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_C(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r<e.end;r++){if(SC(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype._doAdd=function(e,t,n){if(SC(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var o=e.getItemGraphicEl(n);SC(t.getItemLayout(r))?(o?o.updateData(t,r,i):o=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},e}(),CC=[],AC=[],OC=[],MC=co,EC=Ae,PC=Math.abs;function IC(e,t,n){for(var r,i=e[0],o=e[1],a=e[2],s=1/0,u=n*n,l=.1,c=.1;c<=.9;c+=.1){CC[0]=MC(i[0],o[0],a[0],c),CC[1]=MC(i[1],o[1],a[1],c),(h=PC(EC(CC,t)-u))<s&&(s=h,r=c)}for(var f=0;f<32;f++){var d=r+l;AC[0]=MC(i[0],o[0],a[0],r),AC[1]=MC(i[1],o[1],a[1],r),OC[0]=MC(i[0],o[0],a[0],d),OC[1]=MC(i[1],o[1],a[1],d);var h=EC(AC,t)-u;if(PC(h)<.01)break;var p=EC(OC,t)-u;l/=2,h<0?p>=0?r+=l:r-=l:p>=0?r-=l:r+=l}return r}function DC(e,t){var n=[],r=po,i=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var u=e.getLayout(),l=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");u.__original||(u.__original=[ve(u[0]),ve(u[1])],u[2]&&u.__original.push(ve(u[2])));var f=u.__original;if(null!=u[2]){if(ye(i[0],f[0]),ye(i[1],f[2]),ye(i[2],f[1]),l&&"none"!==l){var d=rC(e.node1),h=IC(i,f[0],d*t);r(i[0][0],i[1][0],i[2][0],h,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],h,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){d=rC(e.node2),h=IC(i,f[1],d*t);r(i[0][0],i[1][0],i[2][0],h,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],h,n),i[1][1]=n[1],i[2][1]=n[2]}ye(u[0],i[0]),ye(u[1],i[2]),ye(u[2],i[1])}else{if(ye(o[0],f[0]),ye(o[1],f[1]),we(a,o[1],o[0]),Se(a,a),l&&"none"!==l){d=rC(e.node1);be(o[0],o[0],a,d*t)}if(c&&"none"!==c){d=rC(e.node2);be(o[1],o[1],a,-d*t)}ye(u[0],o[0]),ye(u[1],o[1])}}))}function LC(e){return"view"===e.type}var RC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){var n=new Nb,r=new TC,i=this.group;this._controller=new Nk(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(LC(i)){var u={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(u):vl(s,u,e)}DC(e.getGraph(),nC(e));var l=e.getData();o.updateData(l);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,d=e.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,d),l.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),i=e.getModel();n.off("drag").off("dragend");var o=i.get("draggable");o&&n.on("drag",(function(){f&&(f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,d),f.setFixed(t),l.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){f&&f.setUnfixed(t)})),n.setDraggable(o&&!!f),"adjacency"===i.get(["emphasis","focus"])&&(Ja(n).focus=e.getAdjacentDataIndices())})),l.graph.eachEdge((function(e){var t=e.getGraphicEl();"adjacency"===e.getModel().get(["emphasis","focus"])&&(Ja(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var h="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),p=l.getLayout("cx"),g=l.getLayout("cy");l.eachItemGraphicEl((function(e,t){var n=l.getItemModel(t).get(["label","rotate"])||0,r=e.getSymbolPath();if(h){var i=l.getItemLayout(t),o=Math.atan2(i[1]-g,i[0]-p);o<0&&(o=2*Math.PI+o);var a=i[0]<p;a&&(o-=Math.PI);var s=a?"left":"right";r.setTextConfig({rotation:-o,position:s,origin:"center"});var u=r.ensureState("emphasis");M(u.textConfig||(u.textConfig={}),{position:s})}else r.setTextConfig({rotation:n*=Math.PI/180})})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))}()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!zk(t,n,e)})),LC(e.coordinateSystem)?(i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){jk(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Bk(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),DC(e.getGraph(),nC(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=nC(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){DC(e.getGraph(),nC(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Gh);function NC(e){return"_EC_"+e}var jC=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[NC(e)]){var r=new BC(e,t);return r.hostGraph=this,this.nodes.push(r),n[NC(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[NC(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if("number"===typeof e&&(e=this.nodes[e]),"number"===typeof t&&(t=this.nodes[t]),e instanceof BC||(e=r[NC(e)]),t instanceof BC||(t=r[NC(t)]),e&&t){var o=e.id+"-"+t.id,a=new FC(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),i[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof BC&&(e=e.id),t instanceof BC&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof BC||(t=this._nodesMap[NC(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(r,t,null))for(var a=[t];a.length;){var s=a.shift(),u=s[i];for(o=0;o<u.length;o++){var l=u[o],c=l.node1===s?l.node2:l.node1;if(!c.__visited){if(e.call(r,c,s))return;a.push(c),c.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),BC=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),FC=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function zC(e,t){return{getValue:function(n){var r=this[e][t];return r.get(r.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}D(BC,zC("hostGraph","data")),D(FC,zC("hostGraph","edgeData"));var VC=jC;function HC(e,t,n,r,i){for(var o=new VC(r),a=0;a<e.length;a++)o.addNode($(e[a].id,e[a].name,a),a);var s=[],u=[],l=0;for(a=0;a<t.length;a++){var c=t[a],f=c.source,d=c.target;o.addEdge(f,d,l)&&(u.push(c),s.push($($r(c.id,null),f+" > "+d)),l++)}var h,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)h=Ab(e,n);else{var g=zf.get(p),y=g&&g.dimensions||[];I(y,"value")<0&&y.concat(["value"]);var v=xb(e,{coordDimensions:y});(h=new mb(v,n)).initData(e)}var m=new mb(["value"],n);return m.initData(u,s),i&&i(h,m),zS({mainData:h,struct:o,structAttr:"graph",datas:{node:h,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var UC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new rx(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Xr(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,r=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&r){WT(n=this)&&(n.__curvenessList=[],n.__edgeMap={},qT(n));var a=HC(i,r,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var n=ac.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}function i(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=i,e.getModel=r,e}))}));return R(a.edges,(function(e){!function(e,t,n,r){if(WT(n)){var i=ZT(e,t,n),o=n.__edgeMap,a=o[KT(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}(e.node1,e.node2,this,e.dataIndex)}),this),a.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),u=[];return null!=a&&u.push(a),null!=s&&u.push(s),fh("nameValue",{name:u.join(" > "),value:i.value,noValue:null==i.value})}return xh({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=N(this.option.categories||[],(function(e){return null!=e.value?e:M({value:0},e)})),t=new mb(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ih),GC={type:"graphRoam",event:"graphRoam",update:"none"};var JC=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},XC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return a(t,e),t.prototype.getDefaultShape=function(){return new JC},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=i/3?1:2),u=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,u),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,u)},t}(ma);function WC(e,t){var n=null==e?"":e+"";return t&&("string"===typeof t?n=t.replace("{value}",n):"function"===typeof t&&(n=t(e))),n}var qC=2*Math.PI,ZC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i);return{cx:Or(n[0],t.getWidth()),cy:Or(n[1],t.getHeight()),r:Or(e.get("radius"),o/2)}}(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){for(var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,l=e.getModel("axisLine"),c=l.get("roundCap")?Mw:bu,f=l.get("show"),d=l.getModel("lineStyle"),h=d.get("width"),p=(u-s)%qC||u===s?(u-s)%qC:qC,g=s,y=0;f&&y<r.length;y++){var v=new c({shape:{startAngle:g,endAngle:u=s+p*Math.min(Math.max(r[y][0],0),1),cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-h,r:i.r},silent:!0});v.setStyle({fill:r[y][1]}),v.setStyle(d.getLineStyle(["color","width"])),o.add(v),g=u}var m=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};if(!a){var b=s;s=u,u=b}this._renderTicks(e,t,n,m,i,s,u,a,h),this._renderTitleAndDetail(e,t,n,m,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,m,i,s,u,a,h)},t.prototype._renderTicks=function(e,t,n,r,i,o,a,s,u){for(var l,c,f=this.group,d=i.cx,h=i.cy,p=i.r,g=+e.get("min"),y=+e.get("max"),v=e.getModel("splitLine"),m=e.getModel("axisTick"),b=e.getModel("axisLabel"),w=e.get("splitNumber"),x=m.get("splitNumber"),_=Or(v.get("length"),p),k=Or(m.get("length"),p),S=o,T=(a-o)/w,C=T/x,A=v.getModel("lineStyle").getLineStyle(),O=m.getModel("lineStyle").getLineStyle(),M=v.get("distance"),E=0;E<=w;E++){if(l=Math.cos(S),c=Math.sin(S),v.get("show")){var P=new Lu({shape:{x1:l*(p-(I=M?M+u:u))+d,y1:c*(p-I)+h,x2:l*(p-_-I)+d,y2:c*(p-_-I)+h},style:A,silent:!0});"auto"===A.stroke&&P.setStyle({stroke:r(E/w)}),f.add(P)}if(b.get("show")){var I=b.get("distance")+M,D=WC(Mr(E/w*(y-g)+g),b.get("formatter")),L=r(E/w);f.add(new Ga({style:zl(b,{text:D,x:l*(p-_-I)+d,y:c*(p-_-I)+h,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:l<-.4?"left":l>.4?"right":"center"},{inheritColor:L}),silent:!0}))}if(m.get("show")&&E!==w){I=(I=m.get("distance"))?I+u:u;for(var R=0;R<=x;R++){l=Math.cos(S),c=Math.sin(S);var N=new Lu({shape:{x1:l*(p-I)+d,y1:c*(p-I)+h,x2:l*(p-k-I)+d,y2:c*(p-k-I)+h},silent:!0,style:O});"auto"===O.stroke&&N.setStyle({stroke:r((E+R/x)/w)}),f.add(N),S+=C}S-=C}else S+=T}},t.prototype._renderPointer=function(e,t,n,r,i,o,a,s,u){var l=this.group,c=this._data,f=this._progressEls,d=[],h=e.get(["pointer","show"]),p=e.getModel("progress"),g=p.get("show"),y=e.getData(),v=y.mapDimension("value"),m=+e.get("min"),b=+e.get("max"),w=[m,b],x=[o,a];function _(t,n){var r,o=y.getItemModel(t).getModel("pointer"),a=Or(o.get("width"),i.r),s=Or(o.get("length"),i.r),u=e.get(["pointer","icon"]),l=o.get("offsetCenter"),c=Or(l[0],i.r),f=Or(l[1],i.r),d=o.get("keepAspect");return(r=u?Tg(u,c-a/2,f-s,a,s,null,d):new XC({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:f}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function k(e,t){var n=p.get("roundCap")?Mw:bu,r=p.get("overlap"),a=r?p.get("width"):u/y.count(),l=r?i.r-a:i.r-(e+1)*a,c=r?i.r:i.r-e*a,f=new n({shape:{startAngle:o,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:c}});return r&&(f.z2=b-y.get(v,e)%b),f}(g||h)&&(y.diff(c).add((function(t){if(h){var n=_(t,o);ml(n,{rotation:-(Ar(y.get(v,t),w,x,!0)+Math.PI/2)},e),l.add(n),y.setItemGraphicEl(t,n)}if(g){var r=k(t,o),i=p.get("clip");ml(r,{shape:{endAngle:Ar(y.get(v,t),w,x,i)}},e),l.add(r),d[t]=r}})).update((function(t,n){if(h){var r=c.getItemGraphicEl(n),i=r?r.rotation:o,a=_(t,i);a.rotation=i,vl(a,{rotation:-(Ar(y.get(v,t),w,x,!0)+Math.PI/2)},e),l.add(a),y.setItemGraphicEl(t,a)}if(g){var s=f[n],u=k(t,s?s.shape.endAngle:o),m=p.get("clip");vl(u,{shape:{endAngle:Ar(y.get(v,t),w,x,m)}},e),l.add(u),d[t]=u}})).execute(),y.each((function(e){var t=y.getItemModel(e),n=t.getModel("emphasis");if(h){var i=y.getItemGraphicEl(e),o=y.getItemVisual(e,"style"),a=o.fill;if(i instanceof Ta){var s=i.style;i.useStyle(M({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},o))}else i.useStyle(o),"pointer"!==i.type&&i.setColor(a);i.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===i.style.fill&&i.setStyle("fill",r(Ar(y.get(v,e),w,[0,1],!0))),i.z2EmphasisLift=0,Ps(i,t),As(i,n.get("focus"),n.get("blurScope"))}if(g){var u=d[e];u.useStyle(y.getItemVisual(e,"style")),u.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),u.z2EmphasisLift=0,Ps(u,t),As(u,n.get("focus"),n.get("blurScope"))}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=Tg(i,t.cx-r/2+Or(o[0],t.r),t.cy-r/2+Or(o[1],t.r),r,r,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var o=this,a=e.getData(),s=a.mapDimension("value"),u=+e.get("min"),l=+e.get("max"),c=new xr,f=[],d=[],h=e.isAnimationEnabled();a.diff(this._data).add((function(e){f[e]=new Ga({silent:!0}),d[e]=new Ga({silent:!0})})).update((function(e,t){f[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),p=new xr,g=r(Ar(o,[u,l],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var v=y.get("offsetCenter"),m=i.cx+Or(v[0],i.r),b=i.cy+Or(v[1],i.r);(A=f[t]).attr({style:zl(y,{x:m,y:b,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),p.add(A)}var w=n.getModel("detail");if(w.get("show")){var x=w.get("offsetCenter"),_=i.cx+Or(x[0],i.r),k=i.cy+Or(x[1],i.r),S=Or(w.get("width"),i.r),T=Or(w.get("height"),i.r),C=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:g,A=d[t],O=w.get("formatter");A.attr({style:zl(w,{x:_,y:k,text:WC(o,O),width:isNaN(S)?null:S,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:C})}),ql(A,{normal:w},o,(function(e){return WC(e,O)})),h&&Zl(A,t,a,e,{getFormattedLabel:function(e,t,n,r,i,a){return WC(a?a.interpolatedValue:o,O)}}),p.add(A)}c.add(p)})),this.group.add(c),this._titleEls=f,this._detailEls=d},t.type="gauge",t}(Gh),KC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n.useColorPaletteOnData=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){return nx(this,["value"])},t.type="series.gauge",t.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Ih);var YC=["itemStyle","opacity"],$C=function(e){function t(t,n){var r=e.call(this)||this,i=r,o=new Eu,a=new Ga;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(t,n,!0),r}return a(t,e),t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=e.getItemModel(t),o=e.getItemLayout(t),a=i.getModel("emphasis"),s=i.get(YC);s=null==s?1:s,this.useStyle(e.getItemVisual(t,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,ml(this,{style:{opacity:s}},r,t)):vl(this,{style:{opacity:s},shape:{points:o.points}},r,t),Ps(this,i),this._updateLabel(e,t),As(this,a.get("focus"),a.get("blurScope"))},t.prototype._updateLabel=function(e,t){var n=this.getTextGuideLine(),r=this.getTextContent(),i=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t).label,s=e.getItemVisual(t,"style"),u=s.fill;Bl(r,Fl(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:s.opacity,defaultText:e.getName(t)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:u,outsideFill:u});var l=a.linePoints;n.setShape({points:l}),this.textGuideLineConfig={anchor:l?new hn(l[0][0],l[0][1]):null},vl(r,{style:{x:a.x,y:a.y}},i,t),r.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),Qp(this,eg(o),{stroke:u})},t}(Au),QC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new $C(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){xl(i.getItemGraphicEl(t),e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Gh),eA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new rx(z(this.getData,this),z(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return nx(this,{coordDimensions:["value"],encodeDefaulter:V(bf,this)})},t.prototype._defaultLabelLine=function(e){Xr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ih);function tA(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),o=function(e,t){return ef(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),a=e.get("orient"),s=o.width,u=o.height,l=function(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();a<s;a++)i[a]=a;return"function"===typeof t?i.sort(t):"none"!==t&&i.sort((function(e,t){return o?r[e]-r[t]:r[t]-r[e]})),i}(n,i),c=o.x,f=o.y,d="horizontal"===a?[Or(e.get("minSize"),u),Or(e.get("maxSize"),u)]:[Or(e.get("minSize"),s),Or(e.get("maxSize"),s)],h=n.getDataExtent(r),p=e.get("min"),g=e.get("max");null==p&&(p=Math.min(h[0],0)),null==g&&(g=h[1]);var y=e.get("funnelAlign"),v=e.get("gap"),m=(("horizontal"===a?s:u)-v*(n.count()-1))/n.count(),b=function(e,t){if("horizontal"===a){var i=Ar(n.get(r,e)||0,[p,g],d,!0),o=void 0;switch(y){case"top":o=f;break;case"center":o=f+(u-i)/2;break;case"bottom":o=f+(u-i)}return[[t,o],[t,o+i]]}var l,h=Ar(n.get(r,e)||0,[p,g],d,!0);switch(y){case"left":l=c;break;case"center":l=c+(s-h)/2;break;case"right":l=c+s-h}return[[l,t],[l+h,t]]};"ascending"===i&&(m=-m,v=-v,"horizontal"===a?c+=s:f+=u,l=l.reverse());for(var w=0;w<l.length;w++){var x=l[w],_=l[w+1],k=n.getItemModel(x);if("horizontal"===a){var S=k.get(["itemStyle","width"]);null==S?S=m:(S=Or(S,s),"ascending"===i&&(S=-S));var T=b(x,c),C=b(_,c+S);c+=S+v,n.setItemLayout(x,{points:T.concat(C.slice().reverse())})}else{var A=k.get(["itemStyle","height"]);null==A?A=m:(A=Or(A,u),"ascending"===i&&(A=-A));T=b(x,f),C=b(_,f+A);f+=A+v,n.setItemLayout(x,{points:T.concat(C.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each((function(n){var r,i,o,a,s=e.getItemModel(n),u=s.getModel("label").get("position"),l=s.getModel("labelLine"),c=e.getItemLayout(n),f=c.points,d="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(d)"insideLeft"===u?(i=(f[0][0]+f[3][0])/2+5,o=(f[0][1]+f[3][1])/2,r="left"):"insideRight"===u?(i=(f[1][0]+f[2][0])/2-5,o=(f[1][1]+f[2][1])/2,r="right"):(i=(f[0][0]+f[1][0]+f[2][0]+f[3][0])/4,o=(f[0][1]+f[1][1]+f[2][1]+f[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var h=void 0,p=void 0,g=void 0,y=void 0,v=l.get("length");0,"left"===u?(h=(f[3][0]+f[0][0])/2,p=(f[3][1]+f[0][1])/2,i=(g=h-v)-5,r="right"):"right"===u?(h=(f[1][0]+f[2][0])/2,p=(f[1][1]+f[2][1])/2,i=(g=h+v)+5,r="left"):"top"===u?(h=(f[3][0]+f[0][0])/2,o=(y=(p=(f[3][1]+f[0][1])/2)-v)-5,r="center"):"bottom"===u?(h=(f[1][0]+f[2][0])/2,o=(y=(p=(f[1][1]+f[2][1])/2)+v)+5,r="center"):"rightTop"===u?(h="horizontal"===t?f[3][0]:f[1][0],p="horizontal"===t?f[3][1]:f[1][1],"horizontal"===t?(o=(y=p-v)-5,r="center"):(i=(g=h+v)+5,r="top")):"rightBottom"===u?(h=f[2][0],p=f[2][1],"horizontal"===t?(o=(y=p+v)+5,r="center"):(i=(g=h+v)+5,r="bottom")):"leftTop"===u?(h=f[0][0],p="horizontal"===t?f[0][1]:f[1][1],"horizontal"===t?(o=(y=p-v)-5,r="center"):(i=(g=h-v)-5,r="right")):"leftBottom"===u?(h="horizontal"===t?f[1][0]:f[3][0],p="horizontal"===t?f[1][1]:f[2][1],"horizontal"===t?(o=(y=p+v)+5,r="center"):(i=(g=h-v)-5,r="right")):(h=(f[1][0]+f[2][0])/2,p=(f[1][1]+f[2][1])/2,"horizontal"===t?(o=(y=p+v)+5,r="center"):(i=(g=h+v)+5,r="left")),"horizontal"===t?i=g=h:o=y=p,a=[[h,p],[g,y]]}c.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:d}}))}(n)}))}function nA(e,t,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],u=e.get(e.mapDimension(s),t);i=u,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(u,s))}return o}function rA(e,t,n,r,i){var o=nA(e,n,r,i),a=new Eu({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function iA(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),Y(t=Vr(t))&&(t=0),{smooth:t}}function oA(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),o=i.getModel("emphasis");Ps(e,i,"lineStyle"),As(e,o.get("focus"),o.get("blurScope"))}var aA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new xr,n._initialized=!1,n}return a(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){var i=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,u=s.dimensions,l=iA(e);if(o.diff(a).add((function(e){oA(rA(o,i,e,u,s),o,e,l)})).update((function(t,n){var r=a.getItemGraphicEl(n),i=nA(o,t,u,s);o.setItemGraphicEl(t,r),vl(r,{shape:{points:i}},e,t),oA(r,o,t,l)})).remove((function(e){var t=a.getItemGraphicEl(e);i.remove(t)})).execute(),!this._initialized){this._initialized=!0;var c=function(e,t,n){var r=e.model,i=e.getRect(),o=new Da({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),ml(o,{shape:{width:i.width,height:i.height}},t,n),o}(s,e,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(c)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,o=i.dimensions,a=iA(t),s=e.start;s<e.end;s++){var u=rA(r,this._dataGroup,s,o,i);u.incremental=!0,oA(u,r,s,a)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Gh);function sA(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return R(t.dimensions,(function(e){var t=+e.replace("dim","");n[e]=t})),n}}var uA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return a(t,e),t.prototype.getInitialData=function(e,t){return Ab(this.getSource(),this,{useEncodeDefaulter:z(sA,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Ih),lA=["lineStyle","opacity"],cA={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var i=r[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(lA,!0);null!=o&&(i=o)}t.ensureUniqueItemVisual(n,"style").opacity=i}),e.start,e.end)}}}};function fA(e){!function(e){if(e.parallel)return;var t=!1;R(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}(e),function(e){R(Jr(e.parallelAxis),(function(t){if(W(t)){var n=t.parallelIndex||0,r=Jr(e.parallel)[n];r&&r.parallelAxisDefault&&A(t,r.parallelAxisDefault,!1)}}))}(e)}var dA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},R(hA,(function(e,t){n.getZr().on(t,this._handlers[t]=z(e,this))}),this)),qh(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){R(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(M({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Lh),hA={mousedown:function(e){pA(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(pA(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&pA(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function pA(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var gA=dA,yA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&A(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];R(B(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(lf),vA=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return a(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(D_);function mA(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=wA(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=wA(s,[0,a]),i=o=wA(s,[i,o]),r=0}t[0]=wA(t[0],n),t[1]=wA(t[1],n);var u=bA(t,r);t[r]+=e;var l,c=i||0,f=n.slice();return u.sign<0?f[0]+=c:f[1]-=c,t[r]=wA(t[r],f),l=bA(t,r),null!=i&&(l.sign!==u.sign||l.span<i)&&(t[1-r]=t[r]+u.sign*i),l=bA(t,r),null!=o&&l.span>o&&(t[1-r]=t[r]+l.sign*o),t}function bA(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function wA(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var xA=R,_A=Math.min,kA=Math.max,SA=Math.floor,TA=Math.ceil,CA=Mr,AA=Math.PI;function OA(e,t){return _A(kA(e,t[0]),t[1])}function MA(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function EA(e,t){var n,r,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,u=t.winInnerIndices,l=s,c=!1;return e<u[0]?(n=e*s,r=s):e<=u[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],l=o,c=!0):(n=i-(a-1-e)*s,r=s),{position:n,axisNameAvailableWidth:l,axisLabelShow:c,nameTruncateMaxWidth:r}}var PA=function(){function e(e,t,n){this.type="parallel",this._axesMap=ue(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;xA(r,(function(e,n){var r=i[n],o=t.getComponent("parallelAxis",r),a=this._axesMap.set(e,new vA(e,f_(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],a=e[i];return o>=n&&o<=n+t.axisLength&&a>=r&&a<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();xA(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),c_(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=ef(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],u=[0,s],l=this.dimensions.length,c=OA(t.get("axisExpandWidth"),u),f=OA(t.get("axisExpandCount")||0,[0,l]),d=t.get("axisExpandable")&&l>3&&l>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow");h?(e=OA(h[1]-h[0],u),h[1]=h[0]+e):(e=OA(c*(f-1),u),(h=[c*(t.get("axisExpandCenter")||SA(l/2))-e/2])[1]=h[0]+e);var p=(s-e)/(l-f);p<3&&(p=0);var g=[SA(CA(h[0]/c,1))+1,TA(CA(h[1]/c,1))-1],y=p/c*h[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:h,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),xA(n,(function(t,n){var o=(r.axisExpandable?EA:MA)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:AA/2,vertical:0},u=[a[i].x+e.x,a[i].y+e.y],l=s[i],c=[1,0,0,1,0,0];ht(c,c,l),dt(c,c,u),this._axesLayout[t]={position:u,rotation:l,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];R(o,(function(t){a.push(e.mapDimension(t)),s.push(i.get(t).model)}));for(var u=this.hasAxisBrushed(),l=n;l<r;l++){var c=void 0;if(u){c="active";for(var f=e.getValues(a,l),d=0,h=o.length;d<h;d++){if("inactive"===s[d].getActiveState(f[d])){c="inactive";break}}}else c="normal";t(c,l)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return Sl([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return C(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,u="slide",l=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),f=null!=c[0];if(l)f&&l&&s<i*c[0]?(u="jump",a=s-i*c[2]):f&&l&&s>i*(1-c[0])?(u="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),(a*=t.axisExpandWidth/l)?mA(a,r,o,"all"):u="none";else{var d=r[1]-r[0];(r=[kA(0,o[1]*s/d-d/2)])[1]=_A(o[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:u}},e}();var IA={create:function(e,t){var n=[];return e.eachComponent("parallel",(function(r,i){var o=new PA(r,e,t);o.name="parallel_"+i,o.resize(r,t),r.coordinateSystem=o,o.model=r,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",ai).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},DA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return a(t,e),t.prototype.getAreaSelectStyle=function(){return xi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=C(e);if(t)for(var n=t.length-1;n>=0;n--)Er(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(lf);D(DA,fx);var LA=DA,RA=Math.min,NA=Math.max,jA=Math.pow,BA={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},FA={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},zA={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},VA=0,HA=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new xr,n._uid="brushController_"+VA++,R(gO,(function(e,t){this._handlers[t]=z(e,this)}),n),n}return a(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){Ik(e)[t]=n}(t,"globalPan",this._uid),R(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=A(C(zA),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=Ik(e);r[t]===n&&(r[t]=null)}(e,"globalPan",this._uid),R(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};R(e,(function(e){t[e.panelId]=C(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=N(e,(function(e){return A(C(zA),e,!0)}));var t=this._covers,n=this._covers=[],r=this,i=this._creatingCover;return new Jm(t,e,(function(e,t){return o(e.__brushOption,t)}),o).add(a).update(a).remove((function(e){t[e]!==i&&r.group.remove(t[e])})).execute(),this;function o(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function a(o,a){var s=e[o];if(null!=a&&t[a]===i)n[o]=t[a];else{var u=n[o]=null!=a?(t[a].__brushOption=s,t[a]):GA(r,UA(r,s));WA(r,u)}}},t.prototype.unmount=function(){return this.enableBrush(!1),YA(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Le);function UA(e,t){var n=vO[t.brushType].createCover(e,t);return n.__brushOption=t,XA(n,t),e.group.add(n),n}function GA(e,t){var n=qA(t);return n.endCreating&&(n.endCreating(e,t),XA(t,t.__brushOption)),t}function JA(e,t){var n=t.__brushOption;qA(t).updateCoverShape(e,t,n.range,n)}function XA(e,t){var n=t.z;null==n&&(n=1e4),e.traverse((function(e){e.z=n,e.z2=n}))}function WA(e,t){qA(t).updateCommon(e,t),JA(e,t)}function qA(e){return vO[e.__brushOption.brushType]}function ZA(e,t,n){var r,i=e._panels;if(!i)return!0;var o=e._transform;return R(i,(function(e){e.isTargetByCursor(t,n,o)&&(r=e)})),r}function KA(e,t){var n=e._panels;if(!n)return!0;var r=t.__brushOption.panelId;return null==r||n[r]}function YA(e){var t=e._covers,n=t.length;return R(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function $A(e,t){var n=N(e._covers,(function(e){var t=e.__brushOption,n=C(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function QA(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function eO(e,t,n,r){var i=new xr;return i.add(new Da({name:"main",style:iO(n),silent:!0,draggable:!0,cursor:"move",drift:V(sO,e,t,i,["n","s","w","e"]),ondragend:V($A,t,{isEnd:!0})})),R(r,(function(n){i.add(new Da({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:V(sO,e,t,i,n),ondragend:V($A,t,{isEnd:!0})}))})),i}function tO(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=NA(i,6),a=n[0][0],s=n[1][0],u=a-i/2,l=s-i/2,c=n[0][1],f=n[1][1],d=c-o+i/2,h=f-o+i/2,p=c-a,g=f-s,y=p+i,v=g+i;rO(e,t,"main",a,s,p,g),r.transformable&&(rO(e,t,"w",u,l,o,v),rO(e,t,"e",d,l,o,v),rO(e,t,"n",u,l,y,o),rO(e,t,"s",u,h,y,o),rO(e,t,"nw",u,l,o,o),rO(e,t,"ne",d,l,o,o),rO(e,t,"sw",u,h,o,o),rO(e,t,"se",d,h,o,o))}function nO(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(iO(n)),i.attr({silent:!r,cursor:r?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),o=1===n.length?aO(e,n[0]):function(e,t){var n=[aO(e,t[0]),aO(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?FA[o]+"-resize":null})}))}function rO(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(function(e){var t=RA(e[0][0],e[1][0]),n=RA(e[0][1],e[1][1]),r=NA(e[0][0],e[1][0]),i=NA(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}(cO(e,t,[[r,i],[r+o,i+a]])))}function iO(e){return E({strokeNoScale:!0},e.brushStyle)}function oO(e,t,n,r){var i=[RA(e,n),RA(t,r)],o=[NA(e,n),NA(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function aO(e,t){return{left:"w",right:"e",top:"n",bottom:"s"}[Tl({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return kl(e.group)}(e))]}function sO(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),u=lO(t,i,o);R(r,(function(e){var t=BA[e];s[t[0]][t[1]]+=u[t[0]]})),a.range=e.fromRectRange(oO(s[0][0],s[1][0],s[0][1],s[1][1])),WA(t,n),$A(t,{isEnd:!1})}function uO(e,t,n,r){var i=t.__brushOption.range,o=lO(e,n,r);R(i,(function(e){e[0]+=o[0],e[1]+=o[1]})),WA(e,t),$A(e,{isEnd:!1})}function lO(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function cO(e,t,n){var r=KA(e,t);return r&&!0!==r?r.clipPath(n,e._transform):C(n)}function fO(e){var t=e.event;t.preventDefault&&t.preventDefault()}function dO(e,t,n){return e.childOfName("main").contain(t,n)}function hO(e,t,n,r){var i,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1];return jA(i*i+o*o,.5)>6}(e)||o){if(a&&!o){"single"===s.brushMode&&YA(e);var u=C(s);u.brushType=pO(u.brushType,a),u.panelId=!0===a?null:a.panelId,o=e._creatingCover=UA(e,u),e._covers.push(o)}if(o){var l=vO[pO(e._brushType,a)];o.__brushOption.range=l.getCreatingRange(cO(e,o,e._track)),r&&(GA(e,o),l.updateCommon(e,o)),JA(e,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&ZA(e,t,n)&&YA(e)&&(i={isEnd:r,removeOnClick:!0});return i}function pO(e,t){return"auto"===e?t.defaultBrushType:e}var gO={mousedown:function(e){if(this._dragging)yO(this,e);else if(!e.target||!e.target.draggable){fO(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=ZA(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,o=ZA(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&vO[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){fO(e);var i=hO(this,e,r,!1);i&&$A(this,i)}},mouseup:function(e){yO(this,e)}};function yO(e,t){if(e._dragging){fO(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=hO(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&$A(e,o)}}var vO={lineX:mO(0),lineY:mO(1),rect:{createCover:function(e,t){function n(e){return e}return eO({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=QA(e);return oO(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){tO(e,t,n,r)},updateCommon:nO,contain:dO},polygon:{createCover:function(e,t){var n=new xr;return n.add(new Eu({name:"main",style:iO(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Au({name:"main",draggable:!0,drift:V(uO,e,t),ondragend:V($A,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:cO(e,t,n)})},updateCommon:nO,contain:dO}};function mO(e){return{createCover:function(t,n){return eO({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=QA(t);return[RA(n[0][e],n[1][e]),NA(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var o,a=KA(t,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var u=[r,o];e&&u.reverse(),tO(t,n,u,i)},updateCommon:nO,contain:dO}}var bO=HA;function wO(e){return e=kO(e),function(t){return Ol(t,e)}}function xO(e,t){return e=kO(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function _O(e,t,n){var r=kO(e);return function(e,i){return r.contain(i[0],i[1])&&!zk(e,t,n)}}function kO(e){return _n.create(e)}var SO=["axisLine","axisTickLabel","axisName"];var TO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new bO(n.getZr())).on("brush",z(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new xr,this.group.add(this._axisGroup),e.get("show")){var o=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),u=s.width,l=e.axis.dim,c=M({strokeContainThreshold:u},a.getAxisLayout(l)),f=new Z_(e,c);R(SO,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(c,s,e,o,u,n),Al(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],u=Math.min(30,.1*Math.abs(s)),l=_n.create({x:a[0],y:-i/2,width:s,height:i});l.x-=u,l.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:wO(l),isTargetByCursor:_O(l,o,r),getLinearBrushOtherExtent:xO(l,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return N(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=N(t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Lh),CO={type:"axisAreaSelect",event:"axisAreaSelected"};var AO={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function OO(e){e.registerComponentView(gA),e.registerComponentModel(yA),e.registerCoordinateSystem("parallel",IA),e.registerPreprocessor(fA),e.registerComponentModel(LA),e.registerComponentView(TO),xx(e,"parallel",LA,AO),function(e){e.registerAction(CO,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}(e)}var MO=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},EO=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new MO},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){ps(this)},t.prototype.downplay=function(){gs(this)},t}(ma);var PO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,u=a.height,l=e.getData(),c=e.getData("edge"),f=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(t){var n=new EO,r=Ja(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,a,l,d,h,p,g,y,v=t.getModel(),m=v.getModel("lineStyle"),b=m.get("curveness"),w=t.node1.getLayout(),x=t.node1.getModel(),_=x.get("localX"),k=x.get("localY"),S=t.node2.getLayout(),T=t.node2.getModel(),C=T.get("localX"),A=T.get("localY"),O=t.getLayout();switch(n.shape.extent=Math.max(1,O.dy),n.shape.orient=f,"vertical"===f?(i=(null!=_?_*s:w.x)+O.sy,a=(null!=k?k*u:w.y)+w.dy,l=(null!=C?C*s:S.x)+O.ty,h=i,p=a*(1-b)+(d=null!=A?A*u:S.y)*b,g=l,y=a*b+d*(1-b)):(i=(null!=_?_*s:w.x)+w.dx,a=(null!=k?k*u:w.y)+O.sy,h=i*(1-b)+(l=null!=C?C*s:S.x)*b,p=a,g=i*b+l*(1-b),y=d=(null!=A?A*u:S.y)+O.ty),n.setShape({x1:i,y1:a,x2:l,y2:d,cpx1:h,cpy1:p,cpx2:g,cpy2:y}),n.useStyle(m.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var M=t.node1.getVisual("color"),E=t.node2.getVisual("color");"string"===typeof M&&"string"===typeof E&&(n.style.fill=new Ju(0,0,1,0,[{color:M,offset:0},{color:E,offset:1}]))}var P=v.getModel("emphasis");Ps(n,v,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var I=P.get("focus");As(n,"adjacency"===I?t.getAdjacentDataIndices():I,P.get("blurScope")),Ja(n).dataType="edge"})),i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),f=new Da({shape:{x:null!=i?i*s:n.x,y:null!=a?a*u:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});Bl(f,Fl(r),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle("fill",t.getVisual("color")),f.setStyle("decal",t.getVisual("style").decal),Ps(f,r),o.add(f),l.setItemGraphicEl(t.dataIndex,f),Ja(f).dataType="node";var d=c.get("focus");As(f,"adjacency"===d?t.getAdjacentDataIndices():d,c.get("blurScope"))})),l.eachItemGraphicEl((function(t,i){l.getItemModel(i).get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:l.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/u})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(function(e,t,n){var r=new Da({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ml(r,{shape:{width:e.width+20}},t,n),r}(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Gh),IO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,r=e.data||e.nodes,i=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=0&&(o[i[a].depth]=new ac(i[a],this,t));if(r&&n)return HC(r,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,o=n.levelModels[i];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,o=n.levelModels[i];o&&(e.parentModel=o)}return e}))})).data},t.prototype.setNodePosition=function(e,t){var n=this.option.data[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),o=i.data,a=i.value;return fh("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:r(a)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,u=this.getDataParams(e,n).data.name;return fh("nameValue",{name:null!=u?u+"":null,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){this.option},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t).getLayout().value;r.value=i}return r},t.type="series.sankey",t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Ih);function DO(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=function(e,t){return ef(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=i;var o=i.width,a=i.height,s=e.getGraph(),u=s.nodes,l=s.edges;!function(e){R(e,(function(e){var t=UO(e.outEdges,HO),n=UO(e.inEdges,HO),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}(u),function(e,t,n,r,i,o,a,s,u){(function(e,t,n,r,i,o,a){for(var s=[],u=[],l=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)u[d]=e[d].inEdges.length,0===u[d]&&l.push(e[d]);var h=-1;for(;l.length;){for(var p=0;p<l.length;p++){var g=l[p],y=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>h&&(h=y.depth),g.setLayout({depth:v?y.depth:f},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var b=g.outEdges[m],w=t.indexOf(b);s[w]=0;var x=b.node2,_=e.indexOf(x);0===--u[_]&&c.indexOf(x)<0&&c.push(x)}}++f,l=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var k=h>f-1?h:f-1;a&&"left"!==a&&function(e,t,n,r){if("right"===t){for(var i=[],o=e,a=0;o.length;){for(var s=0;s<o.length;s++){var u=o[s];u.setLayout({skNodeHeight:a},!0);for(var l=0;l<u.inEdges.length;l++){var c=u.inEdges[l];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}R(e,(function(e){LO(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&function(e,t){R(e,(function(e){LO(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}(e,r)}(e,a,0,k);!function(e,t,n){R(e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}(e,"vertical"===o?(i-n)/k:(r-n)/k,o)})(e,t,n,i,o,s,u),function(e,t,n,r,i,o,a){var s=function(e,t){var n=[],r="vertical"===t?"y":"x",i=ci(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),R(i.keys,(function(e){n.push(i.buckets.get(e))})),n}(e,a);(function(e,t,n,r,i,o){var a=1/0;R(e,(function(e){var t=e.length,s=0;R(e,(function(e){s+=e.getLayout().value}));var u="vertical"===o?(r-(t-1)*i)/s:(n-(t-1)*i)/s;u<a&&(a=u)})),R(e,(function(e){R(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),R(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))})(s,t,n,r,i,a),RO(s,i,n,r,a);for(var u=1;o>0;o--)NO(s,u*=.99,a),RO(s,i,n,r,a),GO(s,u,a),RO(s,i,n,r,a)}(e,t,o,i,r,a,s),function(e,t){var n="vertical"===t?"x":"y";R(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),R(e,(function(e){var t=0,n=0;R(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),R(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}(e,s)}(u,l,n,r,o,a,0!==B(u,(function(e){return 0===e.getLayout().value})).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}function LO(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function RO(e,t,n,r,i){var o="vertical"===i?"x":"y";R(e,(function(e){var a,s,u;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var l=0,c=e.length,f="vertical"===i?"dx":"dy",d=0;d<c;d++)(u=l-(s=e[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+u,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),l=s.getLayout()[o]+s.getLayout()[f]+t;if((u=l-t-("vertical"===i?r:n))>0){a=s.getLayout()[o]-u,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),l=a;for(d=c-2;d>=0;--d)(u=(s=e[d]).getLayout()[o]+s.getLayout()[f]+t-l)>0&&(a=s.getLayout()[o]-u,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),l=s.getLayout()[o]}}))}function NO(e,t,n){R(e.slice().reverse(),(function(e){R(e,(function(e){if(e.outEdges.length){var r=UO(e.outEdges,jO,n)/UO(e.outEdges,HO);if(isNaN(r)){var i=e.outEdges.length;r=i?UO(e.outEdges,BO,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-VO(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-VO(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function jO(e,t){return VO(e.node2,t)*e.getValue()}function BO(e,t){return VO(e.node2,t)}function FO(e,t){return VO(e.node1,t)*e.getValue()}function zO(e,t){return VO(e.node1,t)}function VO(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function HO(e){return e.getValue()}function UO(e,t,n){for(var r=0,i=e.length,o=-1;++o<i;){var a=+t(e[o],n);isNaN(a)||(r+=a)}return r}function GO(e,t,n){R(e,(function(e){R(e,(function(e){if(e.inEdges.length){var r=UO(e.inEdges,FO,n)/UO(e.inEdges,HO);if(isNaN(r)){var i=e.inEdges.length;r=i?UO(e.inEdges,zO,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-VO(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-VO(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function JO(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph().nodes;if(t.length){var n=1/0,r=-1/0;R(t,(function(e){var t=e.getLayout().value;t<n&&(n=t),t>r&&(r=t)})),R(t,(function(t){var i=new TT({type:"color",mappingMethod:"linear",dataExtent:[n,r],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))}))}}))}var XO=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var u=["x","y"],l="horizontal"===e.layout?0:1,c=this._baseAxisDim=u[l],f=u[1-l],d=[i,o],h=d[l].get("type"),p=d[1-l].get("type"),g=e.data;if(g&&r){var y=[];R(g,(function(e,t){var n;H(e)?(n=e.slice(),e.unshift(t)):H(e.value)?(n=e.value.slice(),e.value.unshift(t)):n=e,y.push(n)})),e.data=y}var v=this.defaultValueDimensions,m=[{name:c,type:Wm(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:Wm(p),dimsDef:v.slice()}];return nx(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:V(mf,m,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),WO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return a(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ih);D(WO,XO,!0);var qO=WO,ZO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(o).add((function(e){if(r.hasValue(e)){var t=$O(r.getItemLayout(e),r,e,a,!0);r.setItemGraphicEl(e,t),i.add(t)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?QO(s,n,r,e):n=$O(s,r,e,a),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Gh),KO=function(){},YO=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return a(t,e),t.prototype.getDefaultShape=function(){return new KO},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(ma);function $O(e,t,n,r,i){var o=e.ends,a=new YO({shape:{points:i?eM(o,r,e):o}});return QO(e,a,t,n,i),a}function QO(e,t,n,i,o){var a=n.hostModel;(0,r[o?"initProps":"updateProps"])(t,{shape:{points:e.ends}},a,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(i);Ps(t,s),As(t,s.get(["emphasis","focus"]),s.get(["emphasis","blurScope"]))}function eM(e,t,n){return N(e,(function(e){return(e=e.slice())[t]=n.initBaseline,e}))}var tM=ZO;function nM(e,t){}var rM=R;function iM(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),i=I(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)})),t}(e);rM(t,(function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n,r=e.axis,i=e.seriesModels,o=i.length,a=e.boxWidthList=[],s=e.boxOffsetList=[],u=[];if("category"===r.type)n=r.getBandWidth();else{var l=0;rM(i,(function(e){l=Math.max(l,e.getData().count())})),t=r.getExtent(),Math.abs(t[1]-t[0])}rM(i,(function(e){var t=e.get("boxWidth");H(t)||(t=[t,t]),u.push([Or(t[0],n)||0,Or(t[1],n)||0])}));var c=.8*n-2,f=c/o*.3,d=(c-f*(o-1))/o,h=d/2-c/2;rM(i,(function(e,t){s.push(h),h+=f+d,a.push(Math.min(Math.max(d,u[t][0]),u[t][1]))}))}(e),rM(t,(function(t,n){!function(e,t,n){var r=e.coordinateSystem,i=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,u=["x","y"],l=i.mapDimension(u[a]),c=i.mapDimensionsAll(u[s]);if(null==l||c.length<5)return;for(var f=0;f<i.count();f++){var d=i.get(l,f),h=b(d,c[2],f),p=b(d,c[0],f),g=b(d,c[1],f),y=b(d,c[3],f),v=b(d,c[4],f),m=[];w(m,g,!1),w(m,y,!0),m.push(p,g,v,y),x(m,p),x(m,v),x(m,h),i.setItemLayout(f,{initBaseline:h[s],ends:m})}function b(e,n,o){var u,l=i.get(n,o),c=[];return c[a]=e,c[s]=l,isNaN(e)||isNaN(l)?u=[NaN,NaN]:(u=r.dataToPoint(c))[a]+=t,u}function w(e,t,n){var r=t.slice(),i=t.slice();r[a]+=o,i[a]-=o,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[a]-=o,r[a]+=o,e.push(n,r)}}(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}var oM={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if("arrayRows"!==t.sourceFormat){0,Vd("")}var n=function(e,t){for(var n=[],r=[],i=(t=t||{}).boundIQR,o="none"===i||0===i,a=0;a<e.length;a++){var s=Er(e[a].slice()),u=Fr(s,.25),l=Fr(s,.5),c=Fr(s,.75),f=s[0],d=s[s.length-1],h=(null==i?1.5:i)*(c-u),p=o?f:Math.max(f,u-h),g=o?d:Math.min(d,c+h),y=t.itemNameFormatter,v=U(y)?y({value:a}):G(y)?y.replace("{value}",a+""):a+"";n.push([v,p,u,l,c,g]);for(var m=0;m<s.length;m++){var b=s[m];if(b<p||b>g){var w=[v,b];r.push(w)}}}return{boxData:n,outliers:r}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var aM=["color","borderColor"],sM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&fM(s,a))return;var u=cM(a,n,!0);ml(u,{shape:{points:a.ends}},e,n),dM(u,t,n,i),r.add(u),t.setItemGraphicEl(n,u)}})).update((function(a,u){var l=n.getItemGraphicEl(u);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&fM(s,c)?r.remove(l):(l?vl(l,{shape:{points:c.ends}},e,a):l=cM(c,a),dM(l,t,a,i),r.add(l),t.setItemGraphicEl(a,l))}else r.remove(l)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),yM(e,this.group);var t=e.get("clip",!0)?$b(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,r=t.getData(),i=r.getLayout("isSimpleBox");null!=(n=e.next());){var o=cM(r.getItemLayout(n),n);dM(o,r,n,i),o.incremental=!0,this.group.add(o)}},t.prototype._incrementalRenderLarge=function(e,t){yM(t,this.group,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Gh),uM=function(){},lM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return a(t,e),t.prototype.getDefaultShape=function(){return new uM},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(ma);function cM(e,t,n){var r=e.ends;return new lM({shape:{points:n?hM(r,e):r},z2:100})}function fM(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function dM(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Ps(e,i)}function hM(e,t){return N(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var pM=function(){},gM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return a(t,e),t.prototype.getDefaultShape=function(){return new pM},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(ma);function yM(e,t,n){var r=e.getData(),i=r.getLayout("largePoints"),o=new gM({shape:{points:i},__sign:1});t.add(o);var a=new gM({shape:{points:i},__sign:-1});t.add(a),vM(1,o,e,r),vM(-1,a,e,r),n&&(o.incremental=!0,a.incremental=!0)}function vM(e,t,n,r){var i=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(aM);t.useStyle(o),t.style.fill=null,t.style.stroke=i}var mM=sM,bM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return a(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ih);D(bM,XO,!0);var wM=bM;function xM(e){e&&H(e.series)&&R(e.series,(function(e){W(e)&&"k"===e.type&&(e.type="candlestick")}))}var _M=["itemStyle","borderColor"],kM=["itemStyle","borderColor0"],SM=["itemStyle","color"],TM=["itemStyle","color0"],CM={seriesType:"candlestick",plan:Rh(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?SM:TM)}function r(e,t){return t.get(e>0?_M:kM)}e.getData();if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var i;null!=(i=e.next());){var o=t.getItemModel(i),a=t.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill,M(t.ensureUniqueItemVisual(i,"style"),s)}}}}},AM="undefined"!==typeof Float32Array?Float32Array:Array;function OM(e,t,n,r,i){return n>r?-1:n<r?1:t>0?e.get(i,t-1)<=r?1:-1:1}var MM={seriesType:"candlestick",plan:Rh(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=function(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Or(Q(e.get("barMaxWidth"),i),i),a=Or(Q(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?Or(s,i):Math.max(Math.min(i/2,o),a)}(e,n),i=["x","y"],o=n.mapDimension(i[0]),a=n.mapDimensionsAll(i[1]),s=a[0],u=a[1],l=a[2],c=a[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(null==o||a.length<4))return{progress:e.pipelineContext.large?function(e,n){var r,i,a=new AM(4*e.count),f=0,d=[],h=[];for(;null!=(i=e.next());){var p=n.get(o,i),g=n.get(s,i),y=n.get(u,i),v=n.get(l,i),m=n.get(c,i);isNaN(p)||isNaN(v)||isNaN(m)?(a[f++]=NaN,f+=3):(a[f++]=OM(n,i,g,y,u),d[0]=p,d[1]=v,r=t.dataToPoint(d,null,h),a[f++]=r?r[0]:NaN,a[f++]=r?r[1]:NaN,d[1]=m,r=t.dataToPoint(d,null,h),a[f++]=r?r[1]:NaN)}n.setLayout("largePoints",a)}:function(e,n){var i;for(;null!=(i=e.next());){var a=n.get(o,i),f=n.get(s,i),d=n.get(u,i),h=n.get(l,i),p=n.get(c,i),g=Math.min(f,d),y=Math.max(f,d),v=_(g,a),m=_(y,a),b=_(h,a),w=_(p,a),x=[];k(x,m,0),k(x,v,1),x.push(T(w),T(m),T(b),T(v)),n.setItemLayout(i,{sign:OM(n,i,f,d,u),initBaseline:f>d?m[1]:v[1],ends:x,brushRect:S(h,p,a)})}function _(e,n){var r=[];return r[0]=n,r[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function k(e,t,n){var i=t.slice(),o=t.slice();i[0]=gl(i[0]+r/2,1,!1),o[0]=gl(o[0]-r/2,1,!0),n?e.push(i,o):e.push(o,i)}function S(e,t,n){var i=_(e,n),o=_(t,n);return i[0]-=r/2,o[0]-=r/2,{x:i[0],y:i[1],width:r,height:o[1]-i[1]}}function T(e){return e[0]=gl(e[0],1),e}}}}};function EM(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var PM=function(e){function t(t,n){var r=e.call(this)||this,i=new Ib(t,n),o=new xr;return r.add(i),r.add(o),r.updateData(t,n),r}return a(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=this.childAt(1),i=0;i<3;i++){var o=Tg(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var a=-i/3*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(a).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(a).start(),r.add(o)}EM(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale"],i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}EM(n,e)},t.prototype.highlight=function(){ps(this)},t.prototype.downplay=function(){gs(this)},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=function(e){return H(e)||(e=[+e,+e]),e}(e.getItemVisual(t,"symbolSize")),u=e.getItemVisual(t,"style"),l=u&&u.fill;i.setScale(s),i.traverse((function(e){e.setStyle("fill",l)}));var c=e.getItemVisual(t,"symbolOffset");c&&(H(c)||(c=[c,c]),i.x=Or(c[0],s[0]),i.y=Or(Q(c[1],c[0])||0,s[1]));var f=e.getItemVisual(t,"symbolRotate");i.rotation=(f||0)*Math.PI/180||0;var d={};d.showEffectOn=r.get("showEffectOn"),d.rippleScale=o.get(["rippleEffect","scale"]),d.brushType=o.get(["rippleEffect","brushType"]),d.period=1e3*o.get(["rippleEffect","period"]),d.effectOffset=t/e.count(),d.z=r.getShallow("z")||0,d.zlevel=r.getShallow("zlevel")||0,d.symbolType=a,d.color=l,d.rippleEffectColor=o.get(["rippleEffect","color"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===e&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,As(this)},t.prototype.fadeOut=function(e){this.off("mouseover").off("mouseout"),e&&e()},t}(xr),IM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){this._symbolDraw=new Nb(PM)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=lw("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=function(e){var t=[1,0,0,1,0,0];return ct(t,e),t}(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Gh),DM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){return Ab(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10},t}(Ih);var LM=function(e){function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return a(t,e),t.prototype.createLine=function(e,t,n){return new xC(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");H(r)||(r=[r,r]);var o=e.getItemVisual(t,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),(s=Tg(i,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(a),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=this,o=e.getItemLayout(n),a=1e3*t.get("period"),s=t.get("loop"),u=t.get("constantSpeed"),l=$(t.get("delay"),(function(t){return t/e.count()*a/3}));if(r.ignore=!0,this._updateAnimationPoints(r,o),u>0&&(a=this._getLineLength(r)/u*1e3),(a!==this._period||s!==this._loop)&&(r.stopAnimation(),a>0)){var c=void 0;c="function"===typeof l?l(n):l,r.__t>0&&(c=-a*r.__t),r.__t=0;var f=r.animate("",s).when(a,{__t:1}).delay(c).during((function(){i._updateSymbolPosition(r)}));s||f.done((function(){i.remove(r)})),f.start()}this._period=a,this._loop=s}},t.prototype._getLineLength=function(e){return Ce(e.__p1,e.__cp1)+Ce(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t,o=[e.x,e.y],a=o.slice(),s=co,u=fo;o[0]=s(t[0],r[0],n[0],i),o[1]=s(t[1],r[1],n[1],i);var l=u(t[0],r[0],n[0],i),c=u(t[1],r[1],n[1],i);e.rotation=-Math.atan2(c,l)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Ce(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*Ce(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(xr),RM=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return a(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new Eu({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;vl(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),o=n&&n.emphasisLineStyle;n&&!e.hasItemOption||(o=i.getModel(["emphasis","lineStyle"]).getLineStyle()),r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,As(this)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(xr),NM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return a(t,e),t.prototype.createLine=function(e,t,n){return new RM(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var o=t[i-1],a=t[i];r+=Ce(o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(t<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>t);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),u=n[o],l=n[o+1];e.x=u[0]*(1-s)+s*l[0],e.y=u[1]*(1-s)+s*l[1];var c=l[0]-u[0],f=l[1]-u[1];e.rotation=-Math.atan2(f,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(LM),jM=function(){this.polyline=!1,this.curveness=0,this.segs=[]},BM=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jM},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness;if(t.polyline)for(var i=0;i<n.length;){var o=n[i++];if(o>0){e.moveTo(n[i++],n[i++]);for(var a=1;a<o;a++)e.lineTo(n[i++],n[i++])}}else for(i=0;i<n.length;){var s=n[i++],u=n[i++],l=n[i++],c=n[i++];if(e.moveTo(s,u),r>0){var f=(s+l)/2-(u-c)*r,d=(u+c)/2-(l-s)*r;e.quadraticCurveTo(f,d,l,c)}else e.lineTo(l,c)}},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var u=r[s++];if(u>0)for(var l=r[s++],c=r[s++],f=1;f<u;f++){if($o(l,c,d=r[s++],h=r[s++],o,e,t))return a}a++}else for(a=0,s=0;s<r.length;){l=r[s++],c=r[s++];var d=r[s++],h=r[s++];if(i>0){if(ea(l,c,(l+d)/2-(c-h)*i,(c+h)/2-(d-l)*i,d,h,o,e,t))return a}else if($o(l,c,d,h,o,e,t))return a;a++}return-1},t}(ma),FM=function(){function e(){this.group=new xr}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e){this.group.removeAll();var t=new BM({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new Qu({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t){var n=new BM;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");if(i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null),!n){var o=Ja(e);o.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(o.dataIndex=n+e.__startIndex)}))}},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),zM={seriesType:"lines",plan:Rh(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,u=i.end-i.start;if(n){for(var l=0,c=i.start;c<i.end;c++)l+=e.getLineCoordsCount(c);s=new Float32Array(u+2*l)}else s=new Float32Array(4*u);var f=0,d=[];for(c=i.start;c<i.end;c++){var h=e.getLineCoords(c,a);n&&(s[f++]=h);for(var p=0;p<h;p++)d=t.dataToPoint(a[p],!1,d),s[f++]=d[0],s[f++]=d[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),y=(h=e.getLineCoords(c,a),[]);if(n)for(var v=0;v<h;v++)y.push(t.dataToPoint(a[v]));else{y[0]=t.dataToPoint(a[0]),y[1]=t.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setItemLayout(c,y)}}}}},VM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),u="svg"===s.painter.getType();(u||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||u||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a)&&(u||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)}));i.updateData(r);var l=e.get("clip",!0)&&$b(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=zM.reset(e,t,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),o=t.pipelineContext.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new FM:new TC(i?r?NM:RM:r?LM:xC),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.type="lines",t}(Gh),HM="undefined"===typeof Uint32Array?Array:Uint32Array,UM="undefined"===typeof Float64Array?Array:Float64Array;function GM(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=N(t,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),O([t,e[0],e[1]])})))}var JM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return a(t,e),t.prototype.init=function(t){t.data=t.data||[],GM(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(GM(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=le(this._flatCoords,t.flatCoords),this._flatCoordsOffset=le(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(e);for(i=0;i<o.length;i++)t[i]=t[i]||[],t[i][0]=o[i][0],t[i][1]=o[i][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var n=e.length,r=new HM(n),i=new UM(n),o=0,a=0,s=0,u=0;u<n;){s++;var l=e[u++];r[a++]=o+t,r[a++]=l;for(var c=0;c<l;c++){var f=e[u++],d=e[u++];i[o++]=f,i[o++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new mb(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get("name");if(i)return i;var o=r.get("fromName"),a=r.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),fh("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Ih);function XM(e){return e instanceof Array||(e=[e,e]),e}var WM={seriesType:"lines",reset:function(e){var t=XM(e.get("symbol")),n=XM(e.get("symbolSize")),r=e.getData();return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(e,t){var n=e.getItemModel(t),r=XM(n.getShallow("symbol",!0)),i=XM(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}:null}}};var qM=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=P();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),l=this.pointSize+this.blurSize,c=this.canvas,f=c.getContext("2d"),d=e.length;c.width=t,c.height=n;for(var h=0;h<d;++h){var p=e[h],g=p[0],y=p[1],v=r(p[2]);f.globalAlpha=v,f.drawImage(a,g-l,y-l)}if(!c.width||!c.height)return c;for(var m=f.getImageData(0,0,c.width,c.height),b=m.data,w=0,x=b.length,_=this.minOpacity,k=this.maxOpacity-_;w<x;){v=b[w+3]/256;var S=4*Math.floor(255*v);if(v>0){var T=o(v)?s:u;v>0&&(v=v*k+_),b[w++]=T[S],b[w++]=T[S+1],b[w++]=T[S+2],b[w++]=T[S+3]*v*256}else w+=4}return f.putImageData(m,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=P()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},e}();function ZM(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var KM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):ZM(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(ZM(i)?this.render(t,n,r):this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0))},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var o,a,s,u,l=e.coordinateSystem;if(Qb(l,"cartesian2d")){var c=l.getAxis("x"),f=l.getAxis("y");0,o=c.getBandWidth(),a=f.getBandWidth(),s=c.scale.getExtent(),u=f.scale.getExtent()}for(var d=this.group,h=e.getData(),p=e.getModel(["emphasis","itemStyle"]).getItemStyle(),g=e.getModel(["blur","itemStyle"]).getItemStyle(),y=e.getModel(["select","itemStyle"]).getItemStyle(),v=Fl(e),m=e.get(["emphasis","focus"]),b=e.get(["emphasis","blurScope"]),w=Qb(l,"cartesian2d")?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],x=n;x<r;x++){var _=void 0,k=h.getItemVisual(x,"style");if(Qb(l,"cartesian2d")){var S=h.get(w[0],x),T=h.get(w[1],x);if(isNaN(h.get(w[2],x))||S<s[0]||S>s[1]||T<u[0]||T>u[1])continue;var C=l.dataToPoint([S,T]);_=new Da({shape:{x:Math.floor(Math.round(C[0])-o/2),y:Math.floor(Math.round(C[1])-a/2),width:Math.ceil(o),height:Math.ceil(a)},style:k})}else{if(isNaN(h.get(w[1],x)))continue;_=new Da({z2:1,shape:l.dataToRect([h.get(w[0],x)]).contentShape,style:k})}var A=h.getItemModel(x);if(h.hasItemOption){var O=A.getModel("emphasis");p=O.getModel("itemStyle").getItemStyle(),g=A.getModel(["blur","itemStyle"]).getItemStyle(),y=A.getModel(["select","itemStyle"]).getItemStyle(),m=O.get("focus"),b=O.get("blurScope"),v=Fl(A)}var M=e.getRawValue(x),E="-";M&&null!=M[2]&&(E=M[2]+""),Bl(_,v,{labelFetcher:e,labelDataIndex:x,defaultOpacity:k.opacity,defaultText:E}),_.ensureState("emphasis").style=p,_.ensureState("blur").style=g,_.ensureState("select").style=y,As(_,m,b),_.incremental=i,i&&(_.states.emphasis.hoverLayer=!0),d.add(_),h.setItemGraphicEl(x,_)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new qM;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var u=e.getViewRect().clone(),l=e.getRoamTransform();u.applyTransform(l);var c=Math.max(u.x,0),f=Math.max(u.y,0),d=Math.min(u.width+u.x,r.getWidth()),h=Math.min(u.height+u.y,r.getHeight()),p=d-c,g=h-f,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=c,i[1]-=f,i.push(r),i})),m=n.getExtent(),b="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(m,n.option.range):function(e,t,n){var r=e[1]-e[0],i=(t=N(t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}))).length,o=0;return function(e){var r;for(r=o;r<i;r++){if((a=t[r].interval)[0]<=e&&e<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){var a;if((a=t[r].interval)[0]<=e&&e<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}(m,n.getPieceList(),n.option.selected);s.update(v,p,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var w=new Ta({style:{width:p,height:g,x:c,y:f,image:s.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t}(Gh),YM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(e,t){return Ab(this.getSource(),this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=zf.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ih);var $M=["itemStyle","borderWidth"],QM=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],eE=new nu;function tE(e,t,n,r){var i=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",u=(n.get("symbolRotate")||0)*Math.PI/180||0,l=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),f={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:l,rotation:u,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(e,t,n,r,i){var o,a=r.valueDim,s=e.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=u.toGlobalCoord(u.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(H(s)){var f=[nE(u,s[0])-l,nE(u,s[1])-l];f[1]<f[0]&&f.reverse(),o=f[c]}else o=null!=s?nE(u,s)-l:t?r.coordSysExtent[a.index][c]-l:n[a.wh];i.boundingLength=o,t&&(i.repeatCutLength=n[a.wh]);i.pxSign=o>0?1:o<0?-1:0}(n,o,i,r,f),function(e,t,n,r,i,o,a,s,u,l){var c,f=u.valueDim,d=u.categoryDim,h=Math.abs(n[d.wh]),p=e.getItemVisual(t,"symbolSize");c=H(p)?p.slice():null==p?["100%","100%"]:[p,p];c[d.index]=Or(c[d.index],h),c[f.index]=Or(c[f.index],r?h:Math.abs(o)),l.symbolSize=c,(l.symbolScale=[c[0]/s,c[1]/s])[f.index]*=(u.isHorizontal?-1:1)*a}(e,t,i,o,0,f.boundingLength,f.pxSign,l,r,f),function(e,t,n,r,i){var o=e.get($M)||0;o&&(eE.attr({scaleX:t[0],scaleY:t[1],rotation:n}),eE.updateTransform(),o/=eE.getLineScale(),o*=t[r.valueDim.index]);i.valueLineWidth=o}(n,f.symbolScale,u,r,f);var d=f.symbolSize,h=n.get("symbolOffset");return H(h)&&(h=[Or(h[0],d[0]),Or(h[1],d[1])]),function(e,t,n,r,i,o,a,s,u,l,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,g=Math.max(t[h.index]+s,0),y=g;if(r){var v=Math.abs(u),m=$(e.get("symbolMargin"),"15%")+"",b=!1;m.lastIndexOf("!")===m.length-1&&(b=!0,m=m.slice(0,m.length-1));var w=Or(m,t[h.index]),x=Math.max(g+2*w,0),_=b?0:2*w,k=Hr(r),S=k?r:vE((v+_)/x);x=g+2*(w=(v-S*g)/2/(b?S:S-1)),_=b?0:2*w,k||"fixed"===r||(S=l?vE((Math.abs(l)+_)/x):0),y=S*x-_,f.repeatTimes=S,f.symbolMargin=w}var T=p*(y/2),C=f.pathPosition=[];C[d.index]=n[d.wh]/2,C[h.index]="start"===a?T:"end"===a?u-T:u/2,o&&(C[0]+=o[0],C[1]+=o[1]);var A=f.bundlePosition=[];A[d.index]=n[d.xy],A[h.index]=n[h.xy];var O=f.barRectShape=M({},n);O[h.wh]=p*Math.max(Math.abs(n[h.wh]),Math.abs(C[h.index]+T)),O[d.wh]=n[d.wh];var E=f.clipShape={};E[d.xy]=-n[d.xy],E[d.wh]=c.ecSize[d.wh],E[h.xy]=0,E[h.wh]=n[h.wh]}(n,d,i,o,0,h,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function nE(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function rE(e){var t=e.symbolPatternSize,n=Tg(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function iE(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,u=t.valueDim,l=n.repeatTimes||0,c=0,f=o[t.valueDim.index]+a+2*n.symbolMargin;for(pE(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=l,c<l?gE(e,null,p(c),n,r):gE(e,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(e)})),c++}));c<l;c++){var d=rE(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=l,i.add(d);var h=p(c);gE(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function p(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=l-1-e),t[u.index]=f*(i-l/2+.5)+s[u.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function oE(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?gE(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=e.__pictorialMainPath=rE(n),i.add(o),gE(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function aE(e,t,n){var r=M({},t.barRectShape),i=e.__pictorialBarRect;i?gE(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new Da({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(i))}function sE(e,t,n,i){if(n.symbolClip){var o=e.__pictorialClipPath,a=M({},n.clipShape),s=t.valueDim,u=n.animationModel,l=n.dataIndex;if(o)vl(o,{shape:a},u,l);else{a[s.wh]=0,o=new Da({shape:a}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var c={};c[s.wh]=n.clipShape[s.wh],r[i?"updateProps":"initProps"](o,{shape:c},u,l)}}}function uE(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=lE,n.isAnimationEnabled=cE,n}function lE(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function cE(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fE(e,t,n,r){var i=new xr,o=new xr;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?iE(i,t,n):oE(i,0,n),aE(i,n,r),sE(i,t,n,r),i.__pictorialShapeStr=hE(e,n),i.__pictorialSymbolMeta=n,i}function dE(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];pE(r,(function(e){o.push(e)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),R(o,(function(e){bl(e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function hE(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function pE(e,t,n){R(e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function gE(e,t,n,i,o,a){t&&e.attr(t),i.symbolClip&&!o?n&&e.attr(n):n&&r[o?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,a)}function yE(e,t,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=i.getModel(["select","itemStyle"]).getItemStyle(),l=i.getShallow("cursor"),c=o.get("focus"),f=o.get("blurScope"),d=o.get("scale");pE(e,(function(e){if(e instanceof Ta){var t=e.style;e.useStyle(M({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=a,d&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=u,l&&(e.cursor=l),e.z2=n.z2}));var h=t.valueDim.posDesc[+(n.boundingLength>0)];Bl(e.__pictorialBarRect,Fl(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Mb(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),As(e,c,f)}function vE(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var mE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis().isHorizontal(),u=a.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:s,valueDim:QM[+s],categoryDim:QM[1-+s]};return i.diff(o).add((function(e){if(i.hasValue(e)){var t=uE(i,e),n=tE(i,e,t,l),o=fE(i,l,n);i.setItemGraphicEl(e,o),r.add(o),yE(o,l,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=uE(i,e),s=tE(i,e,a,l),u=hE(i,s);n&&u!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var r=n.animationModel,i=n.dataIndex;vl(e.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?iE(e,t,n,!0):oE(e,t,n,!0);aE(e,n,!0),sE(e,t,n,!0)}(n,l,s):n=fE(i,l,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),yE(n,l,s)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&dE(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){dE(r,Ja(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(Gh),bE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return a(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=lc(Cw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Cw);var wE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,o=this.group,a=e.getLayerSeries(),s=r.getLayout("layoutInfo"),u=s.rect,l=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=u.y+l[0];var f=new Jm(this._layersSeries||[],a,c,c),d=[];function h(t,n,s){var u=i._layers;if("remove"!==t){for(var l,c,f=[],h=[],p=a[n].indices,g=0;g<p.length;g++){var y=r.getItemLayout(p[g]),v=y.x,m=y.y0,b=y.y;f.push(v,m),h.push(v,m+b),l=r.getItemVisual(p[g],"style")}var w=r.getItemLayout(p[0]),x=e.getModel("label").get("margin"),_=e.getModel("emphasis");if("add"===t){var k=d[n]=new xr;c=new Zb({shape:{points:f,stackedOnPoints:h,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(c),o.add(k),e.isAnimationEnabled()&&c.setClipPath(function(e,t,n){var r=new Da({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ml(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else{k=u[s];c=k.childAt(0),o.add(k),d[n]=k,vl(c,{shape:{points:f,stackedOnPoints:h}},e)}Bl(c,Fl(e),{labelDataIndex:p[g-1],defaultText:r.getName(p[g-1]),inheritColor:l.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var S=c.getTextContent();S&&(S.x=w.x-x,S.y=w.y0+w.y/2),c.useStyle(l),r.setItemGraphicEl(n,c),Ps(c,e),As(c,_.get("focus"),_.get("blurScope"))}else o.remove(u[n])}f.add(z(h,this,"add")).update(z(h,this,"update")).remove(z(h,this,"remove")).execute(),this._layersSeries=a,this._layers=d},t.type="themeRiver",t}(Gh),xE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new rx(z(this.getData,this),z(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=ci(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),i=[];r.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,u=0;u<i[a].dataList.length;++u){var l=i[a].dataList[u][0]+"";n[l]=a}for(var l in n)n.hasOwnProperty(l)&&n[l]!==a&&(n[l]=a,e[t]=[l,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",ai).models[0].get("type"),r=B(e.data,(function(e){return void 0!==e[2]})),i=this.fixData(r||[]),o=[],a=this.nameMap=ue(),s=0,u=0;u<i.length;++u)o.push(i[u][2]),a.get(i[u][2])||(a.set(i[u][2],s),s++);var l=xb(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Wm(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),c=new mb(l,this);return c.initData(i),c},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),o=ci(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(i,t)-e.get(i,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){H(e)||(e=e?[e]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,u=0;u<s;++u){for(var l=Number.MAX_VALUE,c=-1,f=o[u].indices.length,d=0;d<f;++d){var h=i.get(e[0],o[u].indices[d]),p=Math.abs(h-t);p<=l&&(r=h,l=p,c=o[u].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return fh("nameValue",{name:r.getName(e),value:r.get(r.mapDimension("value"),e)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Ih);function _E(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=e.get("boundaryGap"),a=n.getAxis();(r.boundaryGap=o,"horizontal"===a.orient)?(o[0]=Or(o[0],i.height),o[1]=Or(o[1],i.height),kE(t,e,i.height-o[0]-o[1])):(o[0]=Or(o[0],i.width),o[1]=Or(o[1],i.width),kE(t,e,i.width-o[0]-o[1]));t.setLayout("layoutInfo",r)}))}function kE(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),u=N(o,(function(t){return N(t.indices,(function(t){var n=i.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),l=function(e){for(var t=e.length,n=e[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,u=0;u<t;++u)s+=e[u][a][1];s>o&&(o=s),r.push(s)}for(var l=0;l<n;++l)i[l]=(o-r[l])/2;o=0;for(var c=0;c<n;++c){var f=r[c]+i[c];f>o&&(o=f)}return{y0:i,max:o}}(u),c=l.y0,f=n/l.max,d=o.length,h=o[0].indices.length,p=0;p<h;++p){r=c[p]*f,e.setItemLayout(o[0].indices[p],{layerIndex:0,x:u[0][p][0],y0:r,y:u[0][p][1]*f});for(var g=1;g<d;++g)r+=u[g-1][p][1]*f,e.setItemLayout(o[g].indices[p],{layerIndex:g,x:u[g][p][0],y0:r,y:u[g][p][1]*f})}}var SE=function(e){function t(t,n,r,i){var o=e.call(this)||this;o.z2=2,o.textConfig={inside:!0},Ja(o).seriesIndex=n.seriesIndex;var a=new Ga({z2:4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,r,i),o}return a(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Ja(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),u=t.getLayout(),l=M({},u);l.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var f=t.getVisual("decal");f&&(c.decal=qg(f,i));var d=Qw(a.getModel("itemStyle"),l);M(l,d),R(Za,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=Qw(n,l);r&&(t.shape=r)})),e?(o.setShape(l),o.shape.r=u.r0,vl(o,{shape:{r:u.r}},n,t.dataIndex)):vl(o,{shape:l},n),o.useStyle(c),this._updateLabel(n);var h=a.getShallow("cursor");h&&o.attr("cursor",h),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get("focus");As(this,"ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():p,s.get("blurScope"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),u=Math.sin(a),l=this,c=l.getTextContent(),f=this.node.dataIndex,d=r.get("minAngle")/180*Math.PI,h=r.get("show")&&!(null!=d&&Math.abs(o)<d);function p(e,t){var n=e.get(t);return null==n?r.get(t):n}c.ignore=!h,R(Ka,(function(r){var o="normal"===r?n.getModel("label"):n.getModel([r,"label"]),d="normal"===r,h=d?c:c.ensureState(r),g=e.getFormattedLabel(f,r);d&&(g=g||t.node.name),h.style=zl(o,{},null,"normal"!==r,!0),g&&(h.style.text=g);var y=o.get("show");null==y||d||(h.ignore=!y);var v,m=p(o,"position"),b=d?l:l.states[r],w=b.style.fill;b.textConfig={outsideFill:"inherit"===o.get("color")?w:null,inside:"outside"!==m};var x=p(o,"distance")||0,_=p(o,"align");"outside"===m?(v=i.r+x,_=a>Math.PI/2?"right":"left"):_&&"center"!==_?"left"===_?(v=i.r0+x,a>Math.PI/2&&(_="right")):"right"===_&&(v=i.r-x,a>Math.PI/2&&(_="left")):(v=(i.r+i.r0)/2,_="center"),h.style.align=_,h.style.verticalAlign=p(o,"verticalAlign")||"middle",h.x=v*s+i.cx,h.y=v*u+i.cy;var k=p(o,"rotate"),S=0;"radial"===k?(S=-a)<-Math.PI/2&&(S+=Math.PI):"tangential"===k?(S=Math.PI/2-a)>Math.PI/2?S-=Math.PI:S<-Math.PI/2&&(S+=Math.PI):"number"===typeof k&&(S=k*Math.PI/180),h.rotation=S})),c.dirtyStyle()},t}(bu);var TE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),u=this.group,l=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var f=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(e){return e.getId()}function c(s,c){!function(r,i){l||!r||r.getValue()||(r=null);if(r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),o.setItemGraphicEl(r.dataIndex,i.piece)):function(e){if(!e)return;e.piece&&(u.remove(e.piece),e.piece=null)}(i);else if(r){var s=new SE(r,e,t,n);u.add(s),o.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==c?null:i[c])}new Jm(i,r,s,s).add(c).update(c).remove(V(c,null)).execute()}(c,f),function(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new SE(r,e,t,n),u.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(u.remove(i.virtualPiece),i.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1;e.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a)qc(a,o.get("target",!0)||"_blank")}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},t.type="sunburst",t}(Gh);var CE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;R(t.children,(function(t){e(t);var r=t.value;H(r)&&(r=r[0]),n+=r}));var r=t.value;H(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);H(t.value)?t.value[0]=r:t.value=r}(n);var r=N(e.levels||[],(function(e){return new ac(e,this,t)}),this),i=HS.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),o=r[n.depth];return o&&(e.parentModel=o),e}))}));return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=KS(r,this),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){QS(this)},t.type="series.sunburst",t.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},t}(Ih),AE=Math.PI/180;function OE(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");H(r)||(r=[0,r]),H(t)||(t=[t,t]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Or(t[0],i),u=Or(t[1],o),l=Or(r[0],a/2),c=Or(r[1],a/2),f=-e.get("startAngle")*AE,d=e.get("minAngle")*AE,h=e.getData().tree.root,p=e.getViewRoot(),g=p.depth,y=e.get("sort");null!=y&&function e(t,n){var r=t.children||[];t.children=function(e,t){if("function"===typeof t){var n=N(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),N(n,(function(t){return e[t.index]}))}var r="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n}))}(r,n),r.length&&R(t.children,(function(t){e(t,n)}))}(p,y);var v=0;R(p.children,(function(e){!isNaN(e.getValue())&&v++}));var m=p.getValue(),b=Math.PI/(m||v)*2,w=p.depth>0,x=p.height-(w?-1:1),_=(c-l)/(x||1),k=e.get("clockwise"),S=e.get("stillShowZeroSum"),T=k?1:-1;if(w){var C=l,A=l+_,O=2*Math.PI;h.setLayout({angle:O,startAngle:f,endAngle:f+O,clockwise:k,cx:s,cy:u,r0:C,r:A})}!function e(t,n){if(t){var r=n;if(t!==h){var i=t.getValue(),o=0===m&&S?b:i*b;o<d&&(o=d),r=n+T*o;var c=t.depth-g-(w?-1:1),f=l+_*c,p=l+_*(c+1),y=t.getModel();null!=y.get("r0")&&(f=Or(y.get("r0"),a/2)),null!=y.get("r")&&(p=Or(y.get("r"),a/2)),t.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:k,cx:s,cy:u,r0:f,r:p})}if(t.children&&t.children.length){var v=0;R(t.children,(function(t){v+=e(t,n+v)}))}return r-n}}(p,f)}))}function ME(e){var t={};e.eachSeriesByType("sunburst",(function(e){var n=e.getData(),r=n.tree;r.eachNode((function(i){var o=i.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(e,n,r){for(var i=e;i&&i.depth>1;)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&"string"===typeof o&&(o=Ut(o,(e.depth-1)/(r-1)*.5)),o}(i,e,r.root.height)),M(n.ensureUniqueItemVisual(i.dataIndex,"style"),o)}))}))}function EE(e,t){return t=t||[0,0],N(["x","y"],(function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function PE(e,t){return t=t||[0,0],N([0,1],(function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function IE(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function DE(e,t){return t=t||[0,0],N(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=t[r],a=e[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function LE(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||fe(e,"text")))}function RE(e,t,n){var r,i,o,a=e;if("text"===t)o=a;else{o={},fe(a,"text")&&(o.text=a.text),fe(a,"rich")&&(o.rich=a.rich),fe(a,"textFill")&&(o.fill=a.textFill),fe(a,"textStroke")&&(o.stroke=a.textStroke),i={type:"text",style:o,silent:!0},r={};var s=fe(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),fe(a,"textPosition")&&(r.position=a.textPosition),fe(a,"textOffset")&&(r.offset=a.textOffset),fe(a,"textRotation")&&(r.rotation=a.textRotation),fe(a,"textDistance")&&(r.distance=a.textDistance)}return NE(o,e),R(o.rich,(function(e){NE(e,e)})),{textConfig:r,textContent:i}}function NE(e,t){t&&(t.font=t.textFont||t.font,fe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),fe(t,"textAlign")&&(e.align=t.textAlign),fe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),fe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),fe(t,"textWidth")&&(e.width=t.textWidth),fe(t,"textHeight")&&(e.height=t.textHeight),fe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),fe(t,"textPadding")&&(e.padding=t.textPadding),fe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),fe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),fe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),fe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),fe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),fe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),fe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function jE(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=e.fill||"#000";BE(r,t);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,R(t.rich,(function(e){BE(e,e)})),r}function BE(e,t){t&&(fe(t,"fill")&&(e.textFill=t.fill),fe(t,"stroke")&&(e.textStroke=t.fill),fe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),fe(t,"font")&&(e.font=t.font),fe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),fe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),fe(t,"fontSize")&&(e.fontSize=t.fontSize),fe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),fe(t,"align")&&(e.textAlign=t.align),fe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),fe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),fe(t,"width")&&(e.textWidth=t.width),fe(t,"height")&&(e.textHeight=t.height),fe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),fe(t,"padding")&&(e.textPadding=t.padding),fe(t,"borderColor")&&(e.textBorderColor=t.borderColor),fe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),fe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),fe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),fe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),fe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),fe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),fe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),fe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),fe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),fe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var FE=Yo.CMD,zE=2*Math.PI,VE=["x","y"],HE=["width","height"],UE=[];function GE(e,t){return Math.abs(e-t)<1e-5}function JE(e){var t,n,r,i,o,a=e.data,s=e.len(),u=[],l=0,c=0,f=0,d=0;function h(e,n){t&&t.length>2&&u.push(t),t=[e,n]}function p(e,n,r,i){GE(e,r)&&GE(n,i)||t.push(e,n,r,i,r,i)}function g(e,n,r,i,o,a){var s=Math.abs(n-e),u=4*Math.tan(s/4)/3,l=n<e?-1:1,c=Math.cos(e),f=Math.sin(e),d=Math.cos(n),h=Math.sin(n),p=c*o+r,g=f*a+i,y=d*o+r,v=h*a+i,m=o*u*l,b=a*u*l;t.push(p-m*f,g+b*c,y+m*h,v-b*d,y,v)}for(var y=0;y<s;){var v=a[y++],m=1===y;switch(m&&(f=l=a[y],d=c=a[y+1],v!==FE.L&&v!==FE.C&&v!==FE.Q||(t=[f,d])),v){case FE.M:l=f=a[y++],c=d=a[y++],h(f,d);break;case FE.L:p(l,c,n=a[y++],r=a[y++]),l=n,c=r;break;case FE.C:t.push(a[y++],a[y++],a[y++],a[y++],l=a[y++],c=a[y++]);break;case FE.Q:n=a[y++],r=a[y++],i=a[y++],o=a[y++],t.push(l+2/3*(n-l),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),l=i,c=o;break;case FE.A:var b=a[y++],w=a[y++],x=a[y++],_=a[y++],k=a[y++],S=a[y++]+k;y+=1;var T=!a[y++];n=Math.cos(k)*x+b,r=Math.sin(k)*_+w,m?h(f=n,d=r):p(l,c,n,r),l=Math.cos(S)*x+b,c=Math.sin(S)*_+w;for(var C=(T?-1:1)*Math.PI/2,A=k;T?A>S:A<S;A+=C){g(A,T?Math.max(A+C,S):Math.min(A+C,S),b,w,x,_)}break;case FE.R:f=l=a[y++],d=c=a[y++],n=f+a[y++],r=d+a[y++],h(n,d),p(n,d,n,r),p(n,r,f,r),p(f,r,f,d),p(f,d,n,d);break;case FE.Z:t&&p(l,c,f,d),l=f,c=d}}return t&&t.length>2&&u.push(t),u}function XE(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=n<r?e:t,o=Math.min(n,r),a=Math.abs(r-n)/6,s=(o-2)/6,u=Math.ceil(a/s)+1,l=[i[0],i[1]],c=a,f=[],d=[],h=2;h<o;){var p=i[h-2],g=i[h-1],y=i[h++],v=i[h++],m=i[h++],b=i[h++],w=i[h++],x=i[h++];if(c<=0)l.push(y,v,m,b,w,x);else{for(var _=Math.min(c,u-1)+1,k=1;k<=_;k++){var S=k/_;so(p,y,m,w,S,f),so(g,v,b,x,S,d),p=f[3],g=d[3],l.push(f[1],d[1],f[2],d[2],p,g),y=f[5],v=d[5],m=f[6],b=d[6]}c-=_-1}}return i===e?[l,t]:[e,l]}function WE(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],o=[],a=0;a<t.length;)o[a++]=r,o[a++]=i;return o}function qE(e){for(var t=0,n=0,r=0,i=e.length,o=0,a=i-2;o<i;a=o,o+=2){var s=e[a],u=e[a+1],l=e[o],c=e[o+1],f=s*c-l*u;t+=f,n+=(s+l)*f,r+=(u+c)*f}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function ZE(e,t,n,r){for(var i=(e.length-2)/6,o=1/0,a=0,s=e.length,u=s-2,l=0;l<i;l++){for(var c=6*l,f=0,d=0;d<s;d+=2){var h=0===d?c:(c+d-2)%u+2,p=e[h]-n[0],g=e[h+1]-n[1],y=t[d]-r[0]-p,v=t[d+1]-r[1]-g;f+=y*y+v*v}f<o&&(o=f,a=l)}return a}function KE(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function YE(e,t,n){var r,i;if(!e||!t)return t;!e.path&&e.createPathProxy(),(r=e.path).beginPath(),e.buildPath(r,e.shape),!t.path&&t.createPathProxy(),(i=t.path)===r&&(i=new Yo(!1)),i.beginPath(),eP(t)?t.__oldBuildPath(i,t.shape):t.buildPath(i,t.shape);var o=function(e,t){for(var n,r,i,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var u=e[s],l=t[s],c=void 0,f=void 0;u?l?(r=c=(n=XE(u,l))[0],i=f=n[1]):(f=WE(i||u,u),c=u):(c=WE(r||l,l),f=l),o.push(c),a.push(f)}return[o,a]}(JE(r),JE(i)),a=function(e,t,n,r){for(var i,o=[],a=0;a<e.length;a++){var s=e[a],u=t[a],l=qE(s),c=qE(u);null==i&&(i=l[2]<0!==c[2]<0);var f=[],d=[],h=0,p=1/0,g=[],y=s.length;i&&(s=KE(s));for(var v=6*ZE(s,u,l,c),m=y-2,b=0;b<m;b+=2){var w=(v+b)%m+2;f[b+2]=s[w]-l[0],f[b+3]=s[w+1]-l[1]}if(f[0]=s[v]-l[0],f[1]=s[v+1]-l[1],n>0)for(var x=r/n,_=-r/2;_<=r/2;_+=x){var k=Math.sin(_),S=Math.cos(_),T=0;for(b=0;b<s.length;b+=2){var C=f[b],A=f[b+1],O=u[b]-c[0],M=u[b+1]-c[1],E=O*S-M*k,P=O*k+M*S;g[b]=E,g[b+1]=P;var I=E-C,D=P-A;T+=I*I+D*D}if(T<p){p=T,h=_;for(var L=0;L<g.length;L++)d[L]=g[L]}}else for(var R=0;R<y;R+=2)d[R]=u[R]-c[0],d[R+1]=u[R+1]-c[1];o.push({from:f,to:d,fromCp:l,toCp:c,rotation:-h})}return o}(o[0],o[1],10,Math.PI);!function(e,t,n){if(eP(e))return void QE(e,t,n);var r=e;r.__oldBuildPath=r.buildPath,r.buildPath=$E,QE(r,t,n)}(t,a,0);var s=n&&n.done,u=n&&n.aborted,l=n&&n.during;return t.animateTo({__morphT:1},E({during:function(e){t.dirtyShape(),l&&l(e)},done:function(){var e;eP(e=t)&&(e.buildPath=e.__oldBuildPath,e.__oldBuildPath=e.__morphingData=null),t.createPathProxy(),t.dirtyShape(),s&&s()},aborted:function(){u&&u()}},n)),t}function $E(e){for(var t=this.__morphingData,n=this.__morphT,r=1-n,i=[],o=0;o<t.length;o++){var a=t[o],s=a.from,u=a.to,l=a.rotation*n,c=a.fromCp,f=a.toCp,d=Math.sin(l),h=Math.cos(l);Oe(i,c,f,n);for(var p=0;p<s.length;p+=2){var g=s[p],y=s[p+1],v=g*r+u[p]*n,m=y*r+u[p+1]*n;UE[p]=v*h-m*d+i[0],UE[p+1]=v*d+m*h+i[1]}for(p=0;p<s.length;)0===p&&e.moveTo(UE[p++],UE[p++]),e.bezierCurveTo(UE[p++],UE[p++],UE[p++],UE[p++],UE[p++],UE[p++])}}function QE(e,t,n){e.__morphingData=t,e.__morphT=n}function eP(e){return null!=e.__oldBuildPath}function tP(e){return!!e.__combiningSubList}function nP(e,t,n,r){for(var i=[],o=0,a=0;a<e.length;a++){var s=e[a];if(tP(s)){for(var u=s.__combiningSubList,l=0;l<u.length;l++)i.push(u[l]);o+=u.length}else i.push(s),o++}if(o){var c=n?n.dividingMethod:null,f=uP(t,o,c);re(f.length===o);var d=n&&n.done,h=n&&n.aborted,p=n&&n.during,g=0,y=!1,v=E({during:function(e){p&&p(e)},done:function(){++g===f.length&&(!function(e){if(!tP(e))return;var t=e;rP(t,null),t.addSelfToZr=t.__oldAddSelfToZr,t.removeSelfFromZr=t.__oldRemoveSelfFromZr,t.buildPath=t.__oldBuildPath,t.childrenRef=t.__combiningSubList=t.__oldAddSelfToZr=t.__oldRemoveSelfFromZr=t.__oldBuildPath=null}(t),d&&d())},aborted:function(){y||(y=!0,h&&h())}},n);for(a=0;a<o;a++){var m=i[a],b=f[a];r&&r(t,b,!0),YE(m,b,v)}return function(e,t){if(tP(e))return void rP(e,t);var n=e;rP(n,t),n.__oldAddSelfToZr=e.addSelfToZr,n.__oldRemoveSelfFromZr=e.removeSelfFromZr,n.addSelfToZr=iP,n.removeSelfFromZr=aP,n.__oldBuildPath=n.buildPath,n.buildPath=de,n.childrenRef=sP}(t,f),{fromIndividuals:i,toIndividuals:f,count:o}}}function rP(e,t){if(e.__combiningSubList!==t){if(oP(e,"removeSelfFromZr"),e.__combiningSubList=t,t)for(var n=0;n<t.length;n++)t[n].parent=e;oP(e,"addSelfToZr")}}function iP(e){this.__oldAddSelfToZr(e),oP(this,"addSelfToZr")}function oP(e,t){var n=e.__combiningSubList,r=e.__zr;if(n&&r)for(var i=0;i<n.length;i++){n[i][t](r)}}function aP(e){this.__oldRemoveSelfFromZr(e);for(var t=this.__combiningSubList,n=0;n<t.length;n++){t[n].removeSelfFromZr(e)}}function sP(){return this.__combiningSubList}function uP(e,t,n){return"duplicate"===n?lP(e,t):function(e,t){var n=[];if(t<=0)return n;if(1===t)return lP(e,t);if(e instanceof Da)for(var r=(f=e.shape).height>f.width?1:0,i=HE[r],o=VE[r],a=f[i]/t,s=f[o],u=0;u<t;u++,s+=a){var l={x:f.x,y:f.y,width:f.width,height:f.height};l[o]=s,l[i]=u<t-1?a:f[o]+f[i]-s;var c=new Da({shape:l});n.push(c)}else{if(!(e instanceof bu))return lP(e,t);var f,d=(f=e.shape).clockwise,h=f.startAngle,p=f.endAngle,g=(function(e,t,n){return t+zE*Math[n?"ceil":"floor"]((e-t)/zE)}(h,f.endAngle,d)-h)/t,y=h;for(u=0;u<t;u++,y+=g){c=new bu({shape:{cx:f.cx,cy:f.cy,r:f.r,r0:f.r0,clockwise:d,startAngle:y,endAngle:u===t-1?p:y+g}});n.push(c)}}return n}(e,t)}function lP(e,t){var n=[];if(t<=0)return n;for(var r=e.constructor,i=0;i<t;i++){var o=new r({shape:C(e.shape)});n.push(o)}return n}var cP=ni(),fP=(F({x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1}).join(", "),{color:"fill",borderColor:"stroke"}),dP={symbol:1,symbolSize:1,symbolKeepAspect:1,legendSymbol:1,visualMeta:1,liftZ:1,decal:1},hP=["normal","emphasis","blur","select"],pP={normal:["itemStyle"],emphasis:["emphasis","itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},gP={normal:["label"],emphasis:["emphasis","label"],blur:["blur","label"],select:["select","label"]},yP={normal:{},emphasis:{},blur:{},select:{}},vP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},mP=new _t,bP={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:z(EE,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:z(PE,e)}}},singleAxis:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:z(IE,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:z(DE,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}},wP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Ab(this.getSource(),this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=cP(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},t}(Ih),xP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n,r){var i=this._data,o=e.getData(),a=this.group,s=VP(e,o,t,n),u=e.__transientTransitionOpt;if(!u||null!=u.from&&null!=u.to){var l=new nI(e,u),c=u?"multiple":"oneToOne";new Jm(i?i.getIndices():[],o.getIndices(),_P(i,c,u&&u.from),_P(o,c,u&&u.to),null,c).add((function(t){UP(n,null,t,s(t,r),e,a,o,null)})).remove((function(t){$P(i.getItemGraphicEl(t),e,a)})).update((function(t,u){l.reset("oneToOne");var c=i.getItemGraphicEl(u);l.findAndAddFrom(c),l.hasFrom()&&(tI(c,a),c=null),UP(n,c,t,s(t,r),e,a,o,l),l.applyMorphing()})).updateManyToOne((function(t,u){l.reset("manyToOne");for(var c=0;c<u.length;c++){var f=i.getItemGraphicEl(u[c]);l.findAndAddFrom(f),tI(f,a)}UP(n,null,t,s(t,r),e,a,o,l),l.applyMorphing()})).updateOneToMany((function(t,u){l.reset("oneToMany");var c=t.length,f=i.getItemGraphicEl(u);l.findAndAddFrom(f),tI(f,a);for(var d=0;d<c;d++)UP(n,null,t[d],s(t[d],r),e,a,o,l);l.applyMorphing()})).execute()}else i&&i.each((function(t){$P(i.getItemGraphicEl(t),e,a)})),o.each((function(t){UP(n,null,t,s(t,r),e,a,o,null)}));var f=e.get("clip",!0)?$b(e.coordinateSystem,!1,e):null;f?a.setClipPath(f):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var o=t.getData(),a=VP(t,o,n,r);function s(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){UP(null,null,u,a(u,i),t,this.group,o,null).traverse(s)}},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type="custom",t}(Gh);function _P(e,t,n){if(e){if("oneToOne"===t)return function(t,n){return e.getId(n)};var r=e.getDimension(n),i=e.getDimensionInfo(r);if(!i){0,Vd("")}var o=i.ordinalMeta;return function(t,n){var i=e.get(r,n);return o&&(i=o.categories[i]),null==i||Y(i)?t+"":"_ec_"+i}}}function kP(e){var t,n=e.type;if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=QP(r);t=ul(o,null,i,r.layout||"center"),cP(t).customPathData=o}else if("image"===n)t=new Ta({}),cP(t).customImagePath=e.style.image;else if("text"===n)t=new Ga({});else if("group"===n)t=new xr;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=sl(n);if(!a){0,Vd("")}t=new a}return cP(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function SP(e,t,n,r,i,o,a,s,u,l){var c={},f={},d=t.isGroup?null:t;!n&&AP("shape",t,null,i,c,u),OP("shape",i,f),!n&&AP("extra",t,null,i,c,u),OP("extra",i,f),!n&&MP(t,null,i,c,u),function(e,t){BP(e,t,"position"),BP(e,t,"scale"),BP(e,t,"origin"),FP(e,t,"x"),FP(e,t,"y"),FP(e,t,"scaleX"),FP(e,t,"scaleY"),FP(e,t,"originX"),FP(e,t,"originY"),FP(e,t,"rotation")}(i,f);var h=a&&a.normal.cfg;if(h&&t.setTextConfig(h),"text"===t.type&&o){var p=o;fe(p,"textFill")&&(p.fill=p.textFill),fe(p,"textStroke")&&(p.stroke=p.textStroke)}if(o){var g=void 0,y=eI(t)?o.decal:null;e&&y&&(y.dirty=!0,g=qg(y,e)),o.__decalPattern=g}return!n&&EP(t,null,i,o,c,u),d&&fe(i,"invisible")&&(d.invisible=i.invisible),n||(TP(t,f,o),CP(t,r,i,s,c,u)),fe(i,"silent")&&(t.silent=i.silent),fe(i,"ignore")&&(t.ignore=i.ignore),l||fe(i,"info")&&(cP(t).info=i.info),o?t.dirty():t.markRedraw(),n?f:null}function TP(e,t,n){var r=e.isGroup?null:e;if(r&&n){var i=n.__decalPattern,o=void 0;i&&(o=n.decal,n.decal=i),r.useStyle(n),i&&(n.decal=o);for(var a=r.animators,s=0;s<a.length;s++){var u=a[s];"style"===u.targetName&&u.changeTarget(r.style)}}t&&e.attr(t)}function CP(e,t,n,r,i,o){if(i){var a=n.during;cP(e).userDuring=a;var s={dataIndex:t,isFrom:!0,during:a?z(RP,{el:e,userDuring:a}):null};o?ml(e,i,r,s):vl(e,i,r,s)}}function AP(e,t,n,r,i,o){var a=r[e];if(a){var s,u=t[e],l=a.enterFrom;if(o&&l){!s&&(s=i[e]={});for(var c=F(l),f=0;f<c.length;f++){s[b=c[f]]=l[b]}}if(!o&&u&&(null==n||"shape"!==e))if(a.transition){!s&&(s=i[e]={});var d=Jr(a.transition);for(f=0;f<d.length;f++){var h=u[b=d[f]];0,s[b]=h}}else if(I(r.transition,e)>=0){!s&&(s=i[e]={});var p=F(u);for(f=0;f<p.length;f++){h=u[b=p[f]];PP(a[b],h)&&(s[b]=h)}}var g=a.leaveTo;if(g){var y=IP(t),v=y[e]||(y[e]={}),m=F(g);for(f=0;f<m.length;f++){var b;v[b=m[f]]=g[b]}}}}function OP(e,t,n){var r=t[e];if(r)for(var i=n[e]={},o=F(r),a=0;a<o.length;a++){var s=o[a];i[s]=an(r[s])}}function MP(e,t,n,r,i){var o=n.enterFrom;if(i&&o)for(var a=F(o),s=0;s<a.length;s++){0,r[p=a[s]]=o[p]}if(!i)if(t){var u=function(e,t){if(!e||e===t||e.parent===t.parent)return e;var n=mP.transform||(mP.transform=lt([])),r=e.getComputedTransform();r?ct(n,r):lt(n);var i=t.parent;i&&i.getComputedTransform();return mP.originX=e.originX,mP.originY=e.originY,mP.parent=i,mP.decomposeTransform(),mP}(t,e);zP(r,"x",u),zP(r,"y",u),zP(r,"scaleX",u),zP(r,"scaleY",u),zP(r,"originX",u),zP(r,"originY",u),zP(r,"rotation",u)}else if(n.transition){var l=Jr(n.transition);for(s=0;s<l.length;s++){if("style"!==(p=l[s])&&"shape"!==p&&"extra"!==p){var c=e[p];0,r[p]=c}}}else zP(r,"x",e),zP(r,"y",e);var f=n.leaveTo;if(f){var d=IP(e),h=F(f);for(s=0;s<h.length;s++){var p;0,d[p=h[s]]=f[p]}}}function EP(e,t,n,r,i,o){if(r){var a,s=(t||e).style,u=r.enterFrom;if(o&&u){var l=F(u);!a&&(a=i.style={});for(var c=0;c<l.length;c++){a[w=l[c]]=u[w]}}if(!o&&s)if(r.transition){var f=Jr(r.transition);!a&&(a=i.style={});for(c=0;c<f.length;c++){var d=s[w=f[c]];a[w]=d}}else if(e.getAnimationStyleProps&&I(n.transition,"style")>=0){var h=e.getAnimationStyleProps(),p=h?h.style:null;if(p){!a&&(a=i.style={});var g=F(r);for(c=0;c<g.length;c++){if(p[w=g[c]]){d=s[w];a[w]=d}}}}var y=r.leaveTo;if(y){var v=F(y),m=IP(e),b=m.style||(m.style={});for(c=0;c<v.length;c++){var w;b[w=v[c]]=y[w]}}}}function PP(e,t){return L(e)?e!==t:null!=e&&isFinite(e)}function IP(e){var t=cP(e);return t.leaveToProps||(t.leaveToProps={})}var DP={},LP={setTransform:function(e,t){return DP.el[e]=t,this},getTransform:function(e){return DP.el[e]},setShape:function(e,t){return(DP.el.shape||(DP.el.shape={}))[e]=t,DP.isShapeDirty=!0,this},getShape:function(e){var t=DP.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=DP.el.style;return n&&(n[e]=t,DP.isStyleDirty=!0),this},getStyle:function(e){var t=DP.el.style;if(t)return t[e]},setExtra:function(e,t){return(DP.el.extra||(DP.el.extra={}))[e]=t,this},getExtra:function(e){var t=DP.el.extra;if(t)return t[e]}};function RP(){var e=this.el;if(e){var t=cP(e).userDuring,n=this.userDuring;t===n?(DP.el=e,DP.isShapeDirty=!1,DP.isStyleDirty=!1,n(LP),DP.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),DP.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()):this.el=this.userDuring=null}}function NP(e,t,n,r,i,o,a){var s=t.isGroup?null:t,u=i&&i[e].cfg;if(s){var l=s.ensureState(e);if(!1===r){var c=s.getState(e);c&&(c.style=null)}else l.style=r||null;u&&(l.textConfig=u),fs(s)}}function jP(e,t,n){var r="normal"===n,i=r?t:WP(t,n),o=i?i.z2:null;null!=o&&((r?e:e.ensureState(n)).z2=o||0)}function BP(e,t,n,r){var i=e[n],o=vP[n];i&&(r?(t[o[0]]=r[o[0]],t[o[1]]=r[o[1]]):(t[o[0]]=i[0],t[o[1]]=i[1]))}function FP(e,t,n,r){null!=e[n]&&(t[n]=r?r[n]:e[n])}function zP(e,t,n){n&&(e[t]=n[t])}function VP(e,t,n,r){var i=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):bP[o.type](o));for(var s,u,l=E({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.get(t.getDimension(e||0),n)},style:function(n,r){0;null==r&&(r=s);var i=t.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,u=m(r,"normal").getItemStyle();null!=o&&(u.fill=o),null!=a&&(u.opacity=a);var l={inheritColor:G(o)?o:"#000"},c=b(r,"normal"),f=zl(c,null,l,!1,!0);f.text=c.getShallow("show")?Q(e.getFormattedLabel(r,"normal"),Mb(t,r)):null;var d=Vl(c,l,!1);return x(n,u),u=jE(u,f,d),n&&w(u,n),u.legacy=!0,u},ordinalRawValue:function(e,n){null==n&&(n=s);var r=t.getDimensionInfo(e||0);if(!r)return;var i=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[i]:i},styleEmphasis:function(n,r){0;null==r&&(r=s);var i=m(r,"emphasis").getItemStyle(),o=b(r,"emphasis"),a=zl(o,null,null,!0,!0);a.text=o.getShallow("show")?ee(e.getFormattedLabel(r,"emphasis"),e.getFormattedLabel(r,"normal"),Mb(t,r)):null;var u=Vl(o,null,!0);return x(n,i),i=jE(i,a,u),n&&w(i,n),i.legacy=!0,i},visual:function(e,n){if(null==n&&(n=s),fe(fP,e)){var r=t.getItemVisual(n,"style");return r?r[fP[e]]:null}if(fe(dP,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===o.type){return function(e){var t=[],n=e.axis;if("category"===n.type){for(var r=n.getBandWidth(),i=0;i<e.count;i++)t.push(E({bandWidth:r,axisKey:"axis0",stackId:"__ec_stack_"+i},e));var o=mw(t),a=[];for(i=0;i<e.count;i++){var s=o.axis0["__ec_stack_"+i];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(E({axis:o.getBaseAxis()},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return Xl(e,n)}},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:HP(e.getData())},f={},d={},h={},p={},g=0;g<hP.length;g++){var y=hP[g];h[y]=e.getModel(pP[y]),p[y]=e.getModel(gP[y])}function v(e){return e===s?u||(u=t.getItemModel(e)):t.getItemModel(e)}function m(e,n){return t.hasItemOption?e===s?f[n]||(f[n]=v(e).getModel(pP[n])):v(e).getModel(pP[n]):h[n]}function b(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=v(e).getModel(gP[n])):v(e).getModel(gP[n]):p[n]}return function(e,n){return s=e,u=null,f={},d={},i&&i(E({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),l)};function w(e,t){for(var n in t)fe(t,n)&&(e[n]=t[n])}function x(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function HP(e){var t={};return R(e.dimensions,(function(n,r){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var o=i.coordDim;(t[o]=t[o]||[])[i.coordDimIndex]=r}})),t}function UP(e,t,n,r,i,o,a,s){if(r)return(t=GP(e,t,n,r,i,o,!0,s))&&a.setItemGraphicEl(n,t),As(t,r.focus,r.blurScope),t;tI(t,o)}function GP(e,t,n,r,i,o,a,s){var u=-1;t&&JP(t,r)&&(u=o.childrenRef().indexOf(t),t=null);var l=!t;t?t.clearStates():t=kP(r);var c=(cP(t).canMorph=r.morph&&eI(t))&&s&&s.hasFrom(),f=l&&!c;yP.normal.cfg=yP.normal.conOpt=yP.emphasis.cfg=yP.emphasis.conOpt=yP.blur.cfg=yP.blur.conOpt=yP.select.cfg=yP.select.conOpt=null,yP.isLegacy=!1,function(e,t,n,r,i,o){if(e.isGroup)return;XP(n,null,o),XP(n,"emphasis",o);var a=o.normal.conOpt,s=o.emphasis.conOpt,u=o.blur.conOpt,l=o.select.conOpt;if(null!=a||null!=s||null!=l||null!=u){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=kP(a),e.setTextContent(c));var f=a&&a.style;SP(null,c,null,t,a,f,null,r,i,!0);for(var d=0;d<hP.length;d++){var h=hP[d];if("normal"!==h){var p=o[h].conOpt;NP(h,c,0,qP(a,p,h),null)}}f?c.dirty():c.markRedraw()}}}(t,n,r,i,f,yP),function(e,t,n,r,i){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&JP(a,o)&&(a=null),a||(a=kP(o),e.setClipPath(a)),SP(null,a,null,t,o,null,null,r,i,!1)}}(t,n,r,i,f);var d=SP(e,t,c,n,r,r.style,yP,i,f,!1);c&&s.addTo(t,r,n,d);for(var h=0;h<hP.length;h++){var p=hP[h];if("normal"!==p){var g=WP(r,p);NP(p,t,0,qP(r,g,p),yP)}}return function(e,t,n,r){if(!e.isGroup){var i=e,o=n.currentZ,a=n.currentZLevel;i.z=o,i.zlevel=a;var s=t.z2;null!=s&&(i.z2=s||0);for(var u=0;u<hP.length;u++)jP(i,t,hP[u])}}(t,r,i),"group"===r.type&&function(e,t,n,r,i,o){var a=r.children,s=a?a.length:0,u=r.$mergeChildren,l="byName"===u||r.diffChildrenByName,c=!1===u;if(!s&&!l&&!c)return;if(l)return f={api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t,morphPreparation:o},void new Jm(f.oldChildren,f.newChildren,ZP,ZP,f).add(KP).update(KP).remove(YP).execute();var f;c&&t.removeAll();for(var d=0;d<s;d++)a[d]&&GP(e,t.childAt(d),n,a[d],i,t,!1,o);for(var h=t.childCount()-1;h>=d;h--)$P(t.childAt(h),i,t)}(e,t,n,r,i,s),u>=0?o.replaceAt(t,u):o.add(t),t}function JP(e,t){var n,r=cP(e),i=t.type,o=t.shape,a=t.style;return null!=i&&i!==r.customGraphicType||"path"===i&&((n=o)&&(fe(n,"pathData")||fe(n,"d")))&&QP(o)!==r.customPathData||"image"===i&&fe(a,"image")&&a.image!==r.customImagePath}function XP(e,t,n){var r=t?WP(e,t):e,i=t?qP(e,r,"emphasis"):e.style,o=e.type,a=r?r.textConfig:null,s=e.textContent,u=s?t?WP(s,t):s:null;if(i&&(n.isLegacy||LE(i,o,!!a,!!u))){n.isLegacy=!0;var l=RE(i,o,!t);!a&&l.textConfig&&(a=l.textConfig),!u&&l.textContent&&(u=l.textContent)}if(!t&&u){var c=u;!c.type&&(c.type="text")}var f=t?n[t]:n.normal;f.cfg=a,f.conOpt=u}function WP(e,t){return t?e?e[t]:null:e}function qP(e,t,n){var r=t&&t.style;return null==r&&"emphasis"===n&&e&&(r=e.styleEmphasis),r}function ZP(e,t){var n=e&&e.name;return null!=n?n:"e\0\0"+t}function KP(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;GP(n.api,i,n.dataIndex,r,n.seriesModel,n.group,0,n.morphPreparation)}function YP(e){var t=this.context;$P(t.oldChildren[e],t.seriesModel,t.group)}function $P(e,t,n){if(e){var r=cP(e).leaveToProps;r?vl(e,r,t,{cb:function(){n.remove(e)}}):n.remove(e)}}function QP(e){return e&&(e.pathData||e.d)}function eI(e){return e&&e instanceof ma}function tI(e,t){e&&t.remove(e)}var nI=function(){function e(e,t){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=e,this._transOpt=t}return e.prototype.hasFrom=function(){return!!this._fromList.length},e.prototype.findAndAddFrom=function(e){if(e&&(cP(e).canMorph&&this._fromList.push(e),e.isGroup))for(var t=e.childrenRef(),n=0;n<t.length;n++)this.findAndAddFrom(t[n])},e.prototype.addTo=function(e,t,n,r){e&&(this._toList.push(e),this._toElOptionList.push(t),this._toDataIndices.push(n),this._allPropsFinalList.push(r))},e.prototype.applyMorphing=function(){var e=this._type,t=this._fromList,n=this._toList.length,r=t.length;if(r&&n)if("oneToOne"===e)for(var i=0;i<n;i++)this._oneToOneForSingleTo(i,i);else if("manyToOne"===e)for(var o=Math.max(1,Math.floor(r/n)),a=(i=0,0);i<n;i++,a+=o){var s=i+1>=n?r-a:o;this._manyToOneForSingleTo(i,a>=r?null:a,s)}else if("oneToMany"===e)for(var u=Math.max(1,Math.floor(n/r)),l=0,c=0;l<n;l+=u,c++){var f=l+u>=n?n-l:u;this._oneToManyForSingleFrom(l,f,c>=r?null:c)}},e.prototype._oneToOneForSingleTo=function(e,t){var n,r=this._toList[e],i=this._toElOptionList[e],o=this._toDataIndices[e],a=this._allPropsFinalList[e],s=this._fromList[t],u=this._getOrCreateMorphConfig(o),l=u.duration;if(s&&tP(s)){if(TP(r,a,i.style),l){var c=nP([s],r,u,rI);this._processResultIndividuals(c,e,null)}}else{var f=l&&s&&(s!==r||(eP(n=s)||tP(n)))?s:null,d={};AP("shape",r,f,i,d,!1),AP("extra",r,f,i,d,!1),MP(r,f,i,d,!1),EP(r,f,i,i.style,d,!1),TP(r,a,i.style),f&&YE(f,r,u),CP(r,o,i,this._seriesModel,d,!1)}},e.prototype._manyToOneForSingleTo=function(e,t,n){var r=this._toList[e],i=this._toElOptionList[e];TP(r,this._allPropsFinalList[e],i.style);var o=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(o.duration&&null!=t){for(var a=[],s=t;s<n;s++)a.push(this._fromList[s]);var u=nP(a,r,o,rI);this._processResultIndividuals(u,e,null)}},e.prototype._oneToManyForSingleFrom=function(e,t,n){for(var r=null==n?null:this._fromList[n],i=this._toList,o=[],a=e;a<t;a++){var s=i[a];TP(s,this._allPropsFinalList[a],this._toElOptionList[a].style),o.push(s)}var u=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(u.duration&&r){var l=function(e,t,n,r){var i,o=t.length,a=n?n.dividingMethod:null,s=!1;if(tP(e)){var u=e.__combiningSubList;u.length===o?i=u:(i=uP(e,o,a),s=!0)}else i=uP(e,o,a),s=!0;re(i.length===o);for(var l=0;l<o;l++)s&&r&&r(e,i[l],!1),YE(i[l],t[l],n);return{fromIndividuals:i,toIndividuals:t,count:o}}(r,o,u,rI);this._processResultIndividuals(l,e,t)}},e.prototype._processResultIndividuals=function(e,t,n){for(var r=null!=n,i=0;i<e.count;i++){var o=e.fromIndividuals[i],a=e.toIndividuals[i],s=t+(r?i:0),u=this._toElOptionList[s],l=this._toDataIndices[s],c={};MP(a,o,u,c,!1),EP(a,o,u,u.style,c,!1),CP(a,l,u,this._seriesModel,c,!1)}},e.prototype._getOrCreateMorphConfig=function(e){var t,n,r,i=this._morphConfigList,o=i[e];if(o)return o;var a=this._seriesModel,s=this._transOpt;if(a.isAnimationEnabled()){var u=void 0;if(a&&a.ecModel){var l=a.ecModel.getUpdatePayload();u=l&&l.animation}if(u)t=u.duration||0,n=u.easing||"cubicOut",r=u.delay||0;else{n=a.get("animationEasingUpdate");var c=a.get("animationDelayUpdate");r=U(c)?c(e):c;var f=a.get("animationDurationUpdate");t=U(f)?f(e):f}}return o={duration:t||0,delay:r,easing:n,dividingMethod:s?s.dividingMethod:null},i[e]=o,o},e.prototype.reset=function(e){this._type=e,this._fromList.length=this._toList.length=this._toElOptionList.length=this._allPropsFinalList.length=this._toDataIndices.length=0},e}();function rI(e,t,n){t.style=n?C(e.style):e.style,t.zlevel=e.zlevel,t.z=e.z,t.z2=e.z2}var iI=ni(),oI=C,aI=z;function sI(e,t,n,r){(function e(t,n){if(W(t)&&W(n)){var r=!0;return R(n,(function(n,i){r=r&&e(t[i],n)})),!!r}return t===n})(iI(n).lastProp,r)||(iI(n).lastProp=r,t?vl(n,r,e):(n.stopAnimation(),n.attr(r)))}function uI(e,t){e[t.get(["label","show"])?"show":"hide"]()}function lI(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function cI(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}var fI=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var u={};this.makeElOption(u,i,e,t,n);var l=u.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var f=V(sI,t,c);this.updatePointerEl(a,u,f),this.updateLabelEl(a,u,f,t)}else a=this._group=new xr,this.createPointerEl(a,u,e,t),this.createLabelEl(a,u,e,t),n.getZr().add(a);cI(a,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=Q_(e).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,i){var o=t.pointer;if(o){var a=iI(e).pointerEl=new r[o.type](oI(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=iI(e).labelEl=new Ga(oI(t.label));e.add(i),uI(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=iI(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=iI(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),uI(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=El(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){Ke(e.event)},onmousedown:aI(this._onHandleDragMove,this,0,0),drift:aI(this._onHandleDragMove,this),ondragend:aI(this._onHandleDragEnd,this)}),r.add(i)),cI(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");H(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,qh(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){sI(this._axisPointerModel,!t&&this._moveAnimation,this._handle,lI(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(lI(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(lI(r)),iI(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function dI(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}function hI(e,t,n,r,i){var o=pI(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Fc(a.get("padding")||0),u=a.getFont(),l=On(o,u),c=i.position,f=l.width+s[1]+s[3],d=l.height+s[0]+s[2],h=i.align;"right"===h&&(c[0]-=f),"center"===h&&(c[0]-=f/2);var p=i.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,f,d,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:zl(a,{text:o,font:u,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function pI(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:h_(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),G(a)?o=a.replace("{value}",o):U(a)&&(o=a(s))}return o}function gI(e,t,n){var r=[1,0,0,1,0,0];return ht(r,r,n.rotation),dt(r,r,n.position),Sl([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function yI(e,t,n,r,i,o){var a=Z_.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),hI(t,r,i,o,{position:gI(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function vI(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function mI(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function bI(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var wI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),u=xI(a,o).getOtherAxis(o).getGlobalExtent(),l=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=dI(r),f=_I[s](o,l,u);f.style=c,e.graphicKey=f.type,e.pointer=f}yI(t,e,R_(a.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=R_(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=gI(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=xI(o,i).getOtherAxis(i).getGlobalExtent(),u="x"===i.dim?0:1,l=[e.x,e.y];l[u]+=t[u],l[u]=Math.min(a[1],l[u]),l[u]=Math.max(a[0],l[u]);var c=(s[1]+s[0])/2,f=[c,c];f[u]=l[u];return{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:f,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][u]}},t}(fI);function xI(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var _I={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:vI([t,n[0]],[t,n[1]],kI(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:mI([t-r/2,n[0]],[r,i],kI(e))}}};function kI(e){return"x"===e.dim?0:1}var SI=wI,TI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="axisPointer",t.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(lf),CI=ni(),AI=R;function OI(e,t,n){if(!f.node){var r=t.getZr();CI(r).records||(CI(r).records={}),function(e,t){if(CI(e).initialized)return;function n(n,r){e.on(n,(function(n){var i=function(e){var t={showTip:[],hideTip:[]};return{dispatchAction:function n(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))},pendings:t}}(t);AI(CI(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)}))}CI(e).initialized=!0,n("click",V(EI,"click")),n("mousemove",V(EI,"mousemove")),n("globalout",MI)}(r,t),(CI(r).records[e]||(CI(r).records[e]={})).handler=n}}function MI(e,t,n){e.handler("leave",null,n)}function EI(e,t,n,r){t.handler(e,n,r)}function PI(e,t){if(!f.node){var n=t.getZr();(CI(n).records||{})[e]&&(CI(n).records[e]=null)}}var II=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";OI("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){PI("axisPointer",t)},t.prototype.dispose=function(e,t){PI("axisPointer",t)},t.type="axisPointer",t}(Lh);function DI(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=ti(o,e);if(null==a||a<0||H(a))return{point:[]};var s=o.getItemGraphicEl(a),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),c=u.getOtherAxis(l).dim,f=l.dim,d="x"===c||"radius"===c?1:0,h=o.mapDimension(f),p=[];p[d]=o.get(h,a),p[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=u.dataToPoint(p)||[]}else r=u.dataToPoint(o.getValues(N(u.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var LI=ni();function RI(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||z(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){zI(i)&&(i=DI({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var u=zI(i),l=o.axesInfo,c=s.axesInfo,f="leave"===r||zI(i),d={},h={},p={list:[],map:{}},g={showPointer:V(jI,h),showTooltip:V(BI,p)};R(s.coordSysMap,(function(e,t){var n=u||e.containPoint(i);R(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(l,e);if(!f&&n&&(!l||o)){var a=o&&o.value;null!=a||u||(a=r.pointToData(i)),null!=a&&NI(e,a,g,!1,d)}}))}));var y={};return R(c,(function(e,t){var n=e.linkGroup;n&&!h[t]&&R(n.axesInfo,(function(t,r){var i=h[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,FI(t),FI(e)))),y[e.key]=o}}))})),R(y,(function(e,t){NI(c[t],e,g,!0,d)})),function(e,t,n){var r=n.axesInfo=[];R(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}(h,c,d),function(e,t,n,r){if(zI(t)||!e.list.length)return void r({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(p,i,e,a),function(e,t,n){var r=n.getZr(),i=LI(r).axisPointerLastHighlights||{},o=LI(r).axisPointerLastHighlights={};R(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&R(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e}))}));var a=[],s=[];R(i,(function(e,t){!o[t]&&s.push(e)})),R(o,(function(e,t){!i[t]&&a.push(e)})),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(c,0,n),d}}function NI(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return R(t.seriesModels,(function(t,u){var l,c,f=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(f,e,n);c=d.dataIndices,l=d.nestestValue}else{if(!(c=t.getData().indicesOfNearest(f[0],e,"category"===n.type?.5:null)).length)return;l=t.getData().get(f[0],c[0])}if(null!=l&&isFinite(l)){var h=e-l,p=Math.abs(h);p<=a&&((p<a||h>=0&&s<0)&&(a=p,s=h,i=l,o.length=0),R(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}(t,e),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==i.seriesIndex&&M(i,s[0]),!r&&e.snap&&o.containData(u)&&null!=u&&(t=u),n.showPointer(e,t,s),n.showTooltip(e,a,u)}else n.showPointer(e,t)}function jI(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function BI(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var u=t.coordSys.model,l=tk(u),c=e.map[l];c||(c=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function FI(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function zI(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function VI(e){rk.registerAxisPointerClass("CartesianAxisPointer",SI),e.registerComponentModel(TI),e.registerComponentView(II),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=K_(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},RI)}var HI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),u=o.dataToCoord(t),l=r.get("type");if(l&&"none"!==l){var c=dI(r),f=UI[l](o,a,u,s);f.style=c,e.graphicKey=f.type,e.pointer=f}var d=function(e,t,n,r,i){var o=t.axis,a=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var u,l,c,f=r.getRadiusAxis().getExtent();if("radius"===o.dim){var d=[1,0,0,1,0,0];ht(d,d,s),dt(d,d,[r.cx,r.cy]),u=Sl([a,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=Z_.innerTextLayout(s,h*Math.PI/180,-1);l=p.textAlign,c=p.textVerticalAlign}else{var g=f[1];u=r.coordToPoint([g+i,a]);var y=r.cx,v=r.cy;l=Math.abs(u[0]-y)/g<.3?"center":u[0]>y?"left":"right",c=Math.abs(u[1]-v)/g<.3?"middle":u[1]>v?"top":"bottom"}return{position:u,align:l,verticalAlign:c}}(t,n,0,a,r.get(["label","margin"]));hI(e,n,r,i,d)},t}(fI);var UI={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:vI(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:bI(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:bI(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},GI=HI,JI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},t}(lf),XI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ai).models[0]},t.type="polarAxis",t}(lf);D(XI,fx);var WI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="angleAxis",t}(XI),qI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="radiusAxis",t}(XI),ZI=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return a(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(D_);ZI.prototype.dataToRadius=D_.prototype.dataToCoord,ZI.prototype.radiusToData=D_.prototype.coordToData;var KI=ZI,YI=ni(),$I=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return a(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this.getLabelModel(),t=this.scale,n=t.getExtent(),r=t.count();if(n[1]-n[0]<1)return 0;var i=n[0],o=this.dataToCoord(i+1)-this.dataToCoord(i),a=Math.abs(o),s=On(null==i?"":i+"",e.getFont(),"center","top"),u=Math.max(s.height,7)/a;isNaN(u)&&(u=1/0);var l=Math.max(0,Math.floor(u)),c=YI(this.model),f=c.lastAutoInterval,d=c.lastTickCount;return null!=f&&null!=d&&Math.abs(f-l)<=1&&Math.abs(d-r)<=1&&f>l?l=f:(c.lastTickCount=r,c.lastAutoInterval=l),l},t}(D_);$I.prototype.dataToAngle=D_.prototype.dataToCoord,$I.prototype.angleToData=D_.prototype.coordToData;var QI=$I;function eD(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var tD=function(){function e(e){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new KI,this._angleAxis=new QI,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var u=Math.atan2(-n,t)/Math.PI*180,l=u<o?1:-1;u<o||u>a;)u+=360*l;return[s,u]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},e.prototype.convertToPixel=function(e,t,n){return eD(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return eD(t)===this?this.pointToData(n):null},e}();function nD(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();R(v_(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),R(v_(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),c_(r.scale,r.model),c_(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function rD(e,t){if(e.type=t.get("type"),e.scale=f_(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var iD={dimensions:tD.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new tD(r+"");i.update=nD;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),u=e.findAxisModel("angleAxis");rD(o,s),rD(a,u),function(e,t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight();e.cx=Or(r[0],i),e.cy=Or(r[1],o);var a=e.getRadiusAxis(),s=Math.min(i,o)/2,u=t.get("radius");null==u?u=[0,"100%"]:H(u)||(u=[0,u]);var l=[Or(u[0],s),Or(u[1],s)];a.inverse?a.setExtent(l[1],l[0]):a.setExtent(l[0],l[1])}(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",ai).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},oD=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function aD(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function sD(e){return e.getRadiusAxis().inverse?0:1}function uD(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var lD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return a(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=N(n.getViewLabels(),(function(e){e=C(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));uD(s),uD(o),R(oD,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||cD[t](this.group,e,r,o,a,i,s)}),this)}},t.type="angleAxis",t}(rk),cD={axisLine:function(e,t,n,r,i,o){var a,s=t.getModel(["axisLine","lineStyle"]),u=sD(n),l=u?0:1;(a=0===o[l]?new nu({shape:{cx:n.cx,cy:n.cy,r:o[u]},style:s.getLineStyle(),z2:1,silent:!0}):new _u({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[l]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,r,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=o[sD(n)],l=N(r,(function(e){return new Lu({shape:aD(n,[u,u+s],e.coord)})}));e.add(fl(l,{style:E(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),l=o[sD(n)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new Lu({shape:aD(n,[l,l+u],i[f][d].coord)}));e.add(fl(c,{style:E(s.getModel("lineStyle").getLineStyle(),E(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,o,a){var s=t.getCategories(!0),u=t.getModel("axisLabel"),l=u.get("margin"),c=t.get("triggerEvent");R(a,(function(r,i){var a=u,f=r.tickValue,d=o[sD(n)],h=n.coordToPoint([d+l,r.coord]),p=n.cx,g=n.cy,y=Math.abs(h[0]-p)/d<.3?"center":h[0]>p?"left":"right",v=Math.abs(h[1]-g)/d<.3?"middle":h[1]>g?"top":"bottom";if(s&&s[f]){var m=s[f];W(m)&&m.textStyle&&(a=new ac(m.textStyle,u,u.ecModel))}var b=new Ga({silent:Z_.isLabelSilent(t),style:zl(a,{x:h[0],y:h[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:v})});if(e.add(b),c){var w=Z_.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=r.rawLabel,Ja(b).eventData=w}}),this)},splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var l=[],c=0;c<r.length;c++){var f=u++%s.length;l[f]=l[f]||[],l[f].push(new Lu({shape:aD(n,o,r[c].coord)}))}for(c=0;c<l.length;c++)e.add(fl(l[c],{style:E({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],u=0;u<i.length;u++)for(var l=0;l<i[u].length;l++)s.push(new Lu({shape:aD(n,o,i[u][l].coord)}));e.add(fl(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,o){if(r.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var l=[],c=Math.PI/180,f=-r[0].coord*c,d=Math.min(o[0],o[1]),h=Math.max(o[0],o[1]),p=t.get("clockwise"),g=1,y=r.length;g<=y;g++){var v=g===y?r[0].coord:r[g].coord,m=u++%s.length;l[m]=l[m]||[],l[m].push(new bu({shape:{cx:n.cx,cy:n.cy,r0:d,r:h,startAngle:f,endAngle:-v*c,clockwise:p},silent:!0})),f=-v*c}for(g=0;g<l.length;g++)e.add(fl(l[g],{style:E({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},fD=lD,dD=["axisLine","axisTickLabel","axisName"],hD=["splitLine","splitArea","minorSplitLine"],pD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return a(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new xr;this.group.add(r);var i=e.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),u=i.getMinorTicksCoords(),l=a.getExtent()[0],c=i.getExtent(),f=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(o,e,l),d=new Z_(e,f);R(dD,d.add,d),r.add(d.getGroup()),Al(n,r,e),R(hD,(function(t){e.get([t,"show"])&&!i.scale.isBlank()&&gD[t](this.group,e,o,l,c,s,u)}),this)}},t.type="radiusAxis",t}(rk),gD={splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var l=[],c=0;c<o.length;c++){var f=u++%s.length;l[f]=l[f]||[],l[f].push(new nu({shape:{cx:n.cx,cy:n.cy,r:o[c].coord}}))}for(c=0;c<l.length;c++)e.add(fl(l[c],{style:E({stroke:s[c%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),u=[],l=0;l<a.length;l++)for(var c=0;c<a[l].length;c++)u.push(new nu({shape:{cx:n.cx,cy:n.cy,r:a[l][c].coord}}));e.add(fl(u,{style:E({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var l=[],c=o[0].coord,f=1;f<o.length;f++){var d=u++%s.length;l[d]=l[d]||[],l[d].push(new bu({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[f].coord}for(f=0;f<l.length;f++)e.add(fl(l[f],{style:E({fill:s[f%s.length]},a.getAreaStyle()),silent:!0}))}}};var yD=pD;function vD(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function mD(e,t){return t.dim+e.model.componentIndex}var bD=function(e,t,n){var r={},i=function(e){var t={};R(e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),a=mD(i,o),s=o.getExtent(),u="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),l=t[a]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=l.stacks;t[a]=l;var f=vD(e);c[f]||l.autoWidthCount++,c[f]=c[f]||{width:0,maxWidth:0};var d=Or(e.get("barWidth"),u),h=Or(e.get("barMaxWidth"),u),p=e.get("barGap"),g=e.get("barCategoryGap");d&&!c[f].width&&(d=Math.min(l.remainedWidth,d),c[f].width=d,l.remainedWidth-=d),h&&(c[f].maxWidth=h),null!=p&&(l.gap=p),null!=g&&(l.categoryGap=g)}));var n={};return R(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=Or(e.categoryGap,i),a=Or(e.gap,1),s=e.remainedWidth,u=e.autoWidthCount,l=(s-o)/(u+(u-1)*a);l=Math.max(l,0),R(r,(function(e,t){var n=e.maxWidth;n&&n<l&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,u--)})),l=(s-o)/(u+(u-1)*a),l=Math.max(l,0);var c,f=0;R(r,(function(e,t){e.width||(e.width=l),c=e,f+=e.width*(1+a)})),c&&(f-=c.width*a);var d=-f/2;R(r,(function(e,r){n[t][r]=n[t][r]||{offset:d,width:e.width},d+=e.width*(1+a)}))})),n}(B(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=mD(n,o),s=vD(e),u=i[a][s],l=u.offset,c=u.width,f=n.getOtherAxis(o),d=e.coordinateSystem.cx,h=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var y=t.mapDimension(f.dim),v=t.mapDimension(o.dim),m=Tb(t,y),b="radius"!==o.dim||!e.get("roundCap",!0),w=f.dataToCoord(0),x=0,_=t.count();x<_;x++){var k=t.get(y,x),S=t.get(v,x),T=k>=0?"p":"n",C=w;m&&(r[s][S]||(r[s][S]={p:w,n:w}),C=r[s][S][T]);var A=void 0,O=void 0,M=void 0,E=void 0;if("radius"===f.dim){var P=f.dataToCoord(k)-w,I=o.dataToCoord(S);Math.abs(P)<p&&(P=(P<0?-1:1)*p),A=C,O=C+P,E=(M=I-l)-c,m&&(r[s][S][T]=O)}else{var D=f.dataToCoord(k,b)-w,L=o.dataToCoord(S);Math.abs(D)<g&&(D=(D<0?-1:1)*g),O=(A=L+l)+c,M=C,E=C+D,m&&(r[s][S][T]=E)}t.setItemLayout(x,{cx:d,cy:h,r0:A,r:O,startAngle:-M*Math.PI/180,endAngle:-E*Math.PI/180})}}}))},wD={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},xD={splitNumber:5},_D=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="polar",t}(Lh);function kD(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},o=r.position,a=r.orient,s=n.getRect(),u=[s.x,s.x+s.width,s.y,s.y+s.height],l={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};i.position=["vertical"===a?l.vertical[o]:u[0],"horizontal"===a?l.horizontal[o]:u[3]];i.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),$(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var c=t.rotate;return null==c&&(c=e.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-c:c,i.z2=1,i}var SD=["axisLine","axisTickLabel","axisName"],TD=["splitArea","splitLine"],CD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return a(t,e),t.prototype.render=function(t,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new xr;var s=kD(t),u=new Z_(t,s);R(SD,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),R(TD,(function(e){t.get([e,"show"])&&AD[e](this,this.group,this._axisGroup,t)}),this),Al(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){ak(this)},t.type="singleAxis",t}(rk),AD={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var u=r.coordinateSystem.getRect(),l=i.isHorizontal(),c=[],f=0,d=i.getTicksCoords({tickModel:o}),h=[],p=[],g=0;g<d.length;++g){var y=i.toGlobalCoord(d[g].coord);l?(h[0]=y,h[1]=u.y,p[0]=y,p[1]=u.y+u.height):(h[0]=u.x,h[1]=y,p[0]=u.x+u.width,p[1]=y);var v=f++%s.length;c[v]=c[v]||[],c[v].push(new Lu({subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},silent:!0}))}var m=a.getLineStyle(["color"]);for(g=0;g<c.length;++g)t.add(fl(c[g],{style:E({stroke:s[g%s.length]},m),silent:!0}))}},splitArea:function(e,t,n,r){ok(e,n,r,r)}},OD=CD,MD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(lf);D(MD,fx.prototype);var ED=MD,PD=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return a(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(D_);function ID(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var DD=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=["single"],this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new PD(r,f_(e),[0,0],e.get("type"),e.get("position")),o="category"===i.type;i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();R(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),c_(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=ef({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.reverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){return ID(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return ID(t)===this?this.pointToData(n):null},e}();var LD={create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var o=new DD(r,e,t);o.name="single_"+i,o.resize(r,t),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",ai).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n},dimensions:DD.prototype.dimensions},RD=["x","y"],ND=["width","height"],jD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.coordinateSystem,s=zD(a,1-FD(o)),u=a.dataToPoint(t)[0],l=r.get("type");if(l&&"none"!==l){var c=dI(r),f=BD[l](o,u,s);f.style=c,e.graphicKey=f.type,e.pointer=f}yI(t,e,kD(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=kD(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=gI(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.coordinateSystem,a=FD(i),s=zD(o,a),u=[e.x,e.y];u[a]+=t[a],u[a]=Math.min(s[1],u[a]),u[a]=Math.max(s[0],u[a]);var l=zD(o,1-a),c=(l[1]+l[0])/2,f=[c,c];return f[a]=u[a],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},t}(fI),BD={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:vI([t,n[0]],[t,n[1]],FD(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:mI([t-r/2,n[0]],[r,i],FD(e))}}};function FD(e){return e.isHorizontal()?0:1}function zD(e,t){var n=e.getRect();return[n[RD[t]],n[RD[t]]+n[ND[t]]]}var VD=jD,HD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="single",t}(Lh);function UD(e,t){var n,r=e.cellSize;1===(n=H(r)?r:e.cellSize=[r,r]).length&&(n[1]=n[0]);var i=N([0,1],(function(e){return function(e,t){return null!=e[Yc[t][0]]||null!=e[Yc[t][1]]&&null!=e[Yc[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));rf(e,t,{type:"box",ignoreSize:i})}var GD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(t,n,r){var i=of(t);e.prototype.init.apply(this,arguments),UD(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),UD(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(lf),JD={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},XD={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},WD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient();this._renderDayRect(e,o,r),this._renderLines(e,o,a,r),this._renderYearText(e,o,a,r),this._renderMonthText(e,a,r),this._renderWeekText(e,o,a,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var u=r.dataToRect([s],!1).tl,l=new Da({shape:{x:u[0],y:u[1],width:o,height:a},cursor:"default",style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),u=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,c=0;l.time<=t.end.time;c++){d(l.formatedDate),0===c&&(l=o.getDateInfo(t.start.y+"-"+t.start.m));var f=l.date;f.setMonth(f.getMonth()+1),l=o.getDateInfo(f)}function d(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!1).tl);var u=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(u[0]),i._blpoints.push(u[u.length-1]),s&&i._drawSplitline(u,a,r)}d(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,u,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,u,n),a,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Eu({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),u=r.dataToRect([s.time],!1);o[2*s.day]=u.tl,o[2*s.day+1]=u["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return"string"===typeof e&&e?(n=e,R(t,(function(e,t){n=n.replace("{"+t+"}",r?Hc(e):e)})),n):"function"===typeof e?e(t):t.nameMap;var n,r},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var u=0;return"left"!==r&&"right"!==r||(u=Math.PI/2),{rotation:u,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,f={top:[u,s[c][1]],bottom:[u,s[1-c][1]],left:[s[1-c][0],l],right:[s[c][0],l]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var h=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(h,p),y=new Ga({z2:30,style:zl(i,{text:g})});y.attr(this._yearTextPositionControl(y,f[a],n,a,o)),r.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var o="left",a="top",s=e[0],u=e[1];return"horizontal"===n?(u+=i,t&&(o="center"),"start"===r&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===r&&(o="right")),{x:s,y:u,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n){var r=e.getModel("monthLabel");if(r.get("show")){var i=r.get("nameMap"),o=r.get("margin"),a=r.get("position"),s=r.get("align"),u=[this._tlpoints,this._blpoints];G(i)&&(i=JD[i.toUpperCase()]||[]);var l="start"===a?0:1,c="horizontal"===t?0:1;o="start"===a?-o:o;for(var f="center"===s,d=0;d<u[l].length-1;d++){var h=u[l][d].slice(),p=this._firstDayOfMonth[d];if(f){var g=this._firstDayPoints[d];h[c]=(g[c]+u[0][d+1][c])/2}var y=r.get("formatter"),v=i[+p.m-1],m={yyyy:p.y,yy:(p.y+"").slice(2),MM:p.m,M:+p.m,nameMap:v},b=this._formatterLabel(y,m),w=new Ga({z2:30,style:M(zl(r,{text:b}),this._monthTextPositionControl(h,f,t,a,o))});n.add(w)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var o="center",a="middle",s=e[0],u=e[1],l="start"===n;return"horizontal"===t?(s=s+r+(l?1:-1)*i[0]/2,o=l?"right":"left"):(u=u+r+(l?1:-1)*i[1]/2,a=l?"bottom":"top"),{x:s,y:u,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,r){var i=e.getModel("dayLabel");if(i.get("show")){var o=e.coordinateSystem,a=i.get("position"),s=i.get("nameMap"),u=i.get("margin"),l=o.getFirstDayOfWeek();G(s)&&(s=XD[s.toUpperCase()]||[]);var c=o.getNextNDay(t.end.time,7-t.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];u=Or(u,Math.min(f[1],f[0])),"start"===a&&(c=o.getNextNDay(t.start.time,-(7+t.fweek)).time,u=-u);for(var d=0;d<7;d++){var h,p=o.getNextNDay(c,d),g=o.dataToRect([p.time],!1).center;h=Math.abs((d+l)%7);var y=new Ga({z2:30,style:M(zl(i,{text:s[h]}),this._weekTextPositionControl(g,n,a,u,f))});r.add(y)}}},t.type="calendar",t}(Lh);function qD(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var ZD=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=Nr(e)).getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,a=e.getDay();return{y:t+"",m:r,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+r+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];R([0,1],(function(e){l(i,e)&&(o[r[e]]=i[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},u=this._rect=ef(o,s);function l(e,t){return null!=e[t]&&"auto"!==e[t]}R([0,1],(function(e){l(i,e)||(i[e]=u[r[e]]/a[e])})),this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t){H(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+864e5))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=qD(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=qD(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(H(t)&&1===t.length&&(t=t[0]),H(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a)for(var u=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-n[1].time)*u>0;)r-=u,i.setDate(s-u);var l=Math.floor((r+n[0].day+6)/7),c=t?1-l:l-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:l,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();var KD=ni(),YD={path:null,compoundPath:null,group:xr,image:Ta,text:Ga},$D=function(e){var t=e.graphic;H(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])},QD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return a(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,o=[];this._flatten(r,o,null);var a=Zr(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];R(a,(function(e,t){var n=e.newOption;n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var r=M({},n),i=e[t],o=n.$action||"merge";if("merge"===o){if(i)A(i,r,!0),rf(i,r,{ignoreSize:!0}),af(n,i);else e[t]=r}else"replace"===o?e[t]=r:"remove"===o&&i&&(e[t]=null)}(i,t,n),function(e,t){if(!e)return;if(e.hv=t.hv=[rL(t,["left","right"]),rL(t,["top","bottom"])],"group"===e.type){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[t],n))}),this);for(var u=i.length-1;u>=0;u--)null==i[u]?i.splice(u,1):delete i[u].$action},t.prototype._flatten=function(e,t,n){R(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;"group"===e.type&&r&&this._flatten(r,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(lf),eL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){this._elMap=ue()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group;R(t,(function(t){var i=$r(t.id,null),o=null!=i?n.get(i):null,a=$r(t.parentId,null),s=null!=a?n.get(a):r,u=t.type,l=t.style;"text"===u&&l&&t.hv&&t.hv[1]&&(l.textVerticalAlign=l.textBaseline=l.verticalAlign=l.align=null);var c=t.textContent,f=t.textConfig;if(l&&LE(l,u,!!f,!!c)){var d=RE(l,u,!0);!f&&d.textConfig&&(f=t.textConfig=d.textConfig),!c&&d.textContent&&(c=d.textContent)}var h=function(e){return e=M({},e),R(["id","parentId","$action","hv","bounding","textContent"].concat(Kc),(function(t){delete e[t]})),e}(t);var p=t.$action||"merge";"merge"===p?o?o.attr(h):tL(i,s,h,n):"replace"===p?(nL(o,n),tL(i,s,h,n)):"remove"===p&&nL(o,n);var g=n.get(i);if(g&&c)if("merge"===p){var y=g.getTextContent();y?y.attr(c):g.setTextContent(new Ga(c))}else"replace"===p&&g.setTextContent(new Ga(c));if(g){var v=KD(g);v.__ecGraphicWidthOption=t.width,v.__ecGraphicHeightOption=t.height,function(e,t,n){var r=Ja(e).eventData;e.silent||e.ignore||r||(r=Ja(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});r&&(r.info=n.info)}(g,e,t),Ll({el:g,componentModel:e,itemName:g.name,itemTooltipOption:t.tooltip})}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,o=t.getWidth(),a=t.getHeight(),s=0;s<n.length;s++){if((h=null!=(d=$r((f=n[s]).id,null))?i.get(d):null)&&h.isGroup){var u=(p=h.parent)===r,l=KD(h),c=KD(p);l.__ecGraphicWidth=Or(l.__ecGraphicWidthOption,u?o:c.__ecGraphicWidth)||0,l.__ecGraphicHeight=Or(l.__ecGraphicHeightOption,u?a:c.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){var f,d,h;if(h=null!=(d=$r((f=n[s]).id,null))?i.get(d):null){var p=h.parent;c=KD(p);tf(h,f,p===r?{width:o,height:a}:{width:c.__ecGraphicWidth,height:c.__ecGraphicHeight},null,{hv:f.hv,boundingMode:f.bounding})}}},t.prototype._clear=function(){var e=this._elMap;e.each((function(t){nL(t,e)})),this._elMap=ue()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Lh);function tL(e,t,n,r){var i=n.type;var o=new(fe(YD,i)?YD[i]:sl(i))(n);t.add(o),r.set(e,o),KD(o).__ecGraphicId=e}function nL(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){nL(e,t)})),t.removeKey(KD(e).__ecGraphicId),n.remove(e))}function rL(e,t){var n;return R(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var iL=["x","y","radius","angle","single"],oL=["cartesian2d","polar","singleAxis"];function aL(e){return e+"Axis"}function sL(e,t){var n,r=ue(),i=[],o=ue();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),i.push(e),e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function uL(e){var t=e.ecModel,n={infoList:[],infoMap:ue()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(aL(e),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var lL=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}();function cL(e){var t={};return R(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var fL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return a(t,e),t.prototype.init=function(e,t,n){var r=cL(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=cL(e);A(this.option,e,!0),A(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;R([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=ue();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return R(iL,(function(n){var r=this.getReferringComponents(aL(n),si);if(r.specified){t=!0;var i=new lL;R(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}r&&o(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function o(t,n){var i=t[0];if(i){var o=new lL;if(o.add(i.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",ai).models[0];a&&R(t,(function(e){i.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",ai).models[0]&&o.add(e.componentIndex)}))}}}r&&R(iL,(function(t){if(r){var i=n.findComponents({mainType:aL(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new lL;o.add(i[0].componentIndex),e.set(t,o),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=e[r[0]],a=null!=e[r[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":n?t[i]=n[i]:o&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(aL(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){R(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(aL(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;R([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;R(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={zlevel:0,z:4,filterMode:"filter",start:0,end:100},t}(lf),dL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.select",t}(fL),hL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(Lh),pL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.select",t}(hL),gL=R,yL=Er;var vL=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(function(e){var t=e.get("coordinateSystem");return I(oL,t)>=0}(t)){var n=aL(this._dimName),r=t.getReferringComponents(n,ai).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return C(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];gL(["start","end"],(function(u,l){var c=e[u],f=e[u+"Value"];"percent"===i[l]?(null==c&&(c=o[l]),f=r.parse(Ar(c,o,n))):(t=!0,c=Ar(f=null==f?n[l]:r.parse(f),n,o)),s[l]=f,a[l]=c})),yL(s),yL(a);var u=this._minMaxSpan;function l(e,t,n,i,o){var a=o?"Span":"ValueSpan";mA(0,e,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)t[s]=Ar(e[s],n,i,!0),o&&(t[s]=r.parse(t[s]))}return t?l(s,a,n,o,!1):l(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];gL(n,(function(e){!function(e,t,n){t&&R(v_(t,n),(function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])}))}(r,e.getData(),t)}));var i=e.getAxisModel(),o=s_(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&gL(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);r.length&&("weakFilter"===i?t.filterSelf((function(e){for(var n,i,a,s=0;s<r.length;s++){var u=t.get(r[s],e),l=!isNaN(u),c=u<o[0],f=u>o[1];if(l&&!c&&!f)return!0;l&&(a=!0),c&&(n=!0),f&&(i=!0)}return a&&n&&i})):gL(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}})),gL(r,(function(e){t.setApproximateExtent(o,e)})))}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;gL(["min","max"],(function(r){var i=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Ar(n[0]+o,n,[0,100],!0):null!=i&&(o=Ar(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Ir(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}(),mL={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=e.getComponent(aL(r),i);t(r,i,o,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new vL(t,r,o,e),n.push(i.__dzAxisProxy))}));var r=ue();return R(n,(function(e){R(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};var bL=!1;function wL(e){bL||(bL=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,mL),function(e){e.registerAction("dataZoom",(function(e,t){R(sL(t,e),(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function xL(e){e.registerComponentModel(dL),e.registerComponentView(pL),wL(e)}var _L=function(){},kL={};function SL(e,t){kL[e]=t}function TL(e){return kL[e]}var CL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;R(this.option.feature,(function(e,n){var r=TL(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),A(e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(lf);function AL(e,t){var n=Fc(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Da({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}var OL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var o=+e.get("itemSize"),a=e.get("feature")||{},s=this._features||(this._features={}),u=[];R(a,(function(e,t){u.push(t)})),new Jm(this._featureNames||[],u).add(l).update(l).remove(V(l,null)).execute(),this._featureNames=u,function(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ef(r,o,i);Qc(t.get("orient"),e,t.get("itemGap"),a.width,a.height),tf(e,r,o,i)}(i,e,n),i.add(AL(i.getBoundingRect(),e)),i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),u=s&&s.states.emphasis;if(u&&!U(u)&&t){var l=u.style||(u.style={}),c=On(t,Ga.makeFont(l)),f=e.x+i.x,d=!1;e.y+i.y+o+c.height>n.getHeight()&&(a.position="top",d=!0);var h=d?-5-c.height:o+8;f+c.width/2>n.getWidth()?(a.position=["100%",h],l.align="right"):f-c.width/2<0&&(a.position=[0,h],l.align="left")}}))}function l(l,c){var f,d=u[l],h=u[c],p=a[d],g=new ac(p,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===d&&(p.title=r.newTitle),d&&!h){if(function(e){return 0===e.indexOf("my")}(d))f={onclick:g.option.onclick,featureName:d};else{var y=TL(d);if(!y)return;f=new y}s[d]=f}else if(!(f=s[h]))return;if(f.uid=uc("toolbox-feature"),f.model=g,f.ecModel=t,f.api=n,f instanceof _L){if(!d&&h)return void(f.dispose&&f.dispose(t,n));if(!g.get("show")||f.unusable)return void(f.remove&&f.remove(t,n))}!function(r,a,s){var u,l,c=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),d=a instanceof _L&&a.getIcons?a.getIcons():r.get("icon"),h=r.get("title")||{};"string"===typeof d?(u={})[s]=d:u=d;"string"===typeof h?(l={})[s]=h:l=h;var p=r.iconPaths={};R(u,(function(s,u){var d=El(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(c.getItemStyle()),d.ensureState("emphasis").style=f.getItemStyle();var h=new Ga({style:{text:l[u],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null},ignore:!0});d.setTextContent(h),Ll({el:d,componentModel:e,itemName:u,formatterParamsExtra:{title:l[u]}}),d.__title=l[u],d.on("mouseover",(function(){var t=f.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";h.setStyle({fill:f.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),d.setTextConfig({position:f.get("textPosition")||n}),h.ignore=!e.get("showTitle"),ps(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&gs(this),h.hide()})),("emphasis"===r.get(["iconStatus",u])?ps:gs)(d),i.add(d),d.on("click",z(a.onclick,a,t,n,u)),p[u]=d}))}(g,f,d),g.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?ps:gs)(r[e])},f instanceof _L&&f.render&&f.render(g,t,n,r)}},t.prototype.updateView=function(e,t,n,r){R(this._features,(function(e){e instanceof _L&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){R(this._features,(function(n){n instanceof _L&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){R(this._features,(function(n){n instanceof _L&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Lh),ML=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||!f.browser.newEdge&&(f.browser.ie||f.browser.edge))if(window.navigator.msSaveOrOpenBlob||i){var s=a.split(","),u=s[0].indexOf("base64")>-1,l=i?decodeURIComponent(s[1]):s[1];u&&(l=atob(l));var c=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var d=l.length,h=new Uint8Array(d);d--;)h[d]=l.charCodeAt(d);var p=new Blob([h]);window.navigator.msSaveOrOpenBlob(p,c)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(l),v.close(),y.focus(),v.execCommand("SaveAs",!0,c),document.body.removeChild(g)}}else{var m=n.get("lang"),b='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',w=window.open();w.document.write(b),w.document.title=r}else{var x=document.createElement("a");x.download=r+"."+o,x.target="_blank",x.href=a;var _=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(_)}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocale(["toolbox","saveAsImage","lang"])}},t}(_L);ML.prototype.unusable=!f.canvasSupported;var EL=ML,PL=[["line","bar"],["stack"]],IL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return R(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(DL[n]){var o,a={series:[]};R(PL,(function(e){I(e,n)>=0&&R(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(e){var t=e.subType,i=e.id,o=DL[n](t,i,e,r);o&&(E(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var u=s.getAxesByScale("ordinal")[0];if(u){var l=u.dim+"Axis",c=e.getReferringComponents(l,ai).models[0].componentIndex;a[l]=a[l]||[];for(var f=0;f<=c;f++)a[l][c]=a[l][c]||{};a[l][c].boundaryGap="bar"===n}}})),"stack"===n&&(o=A({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title)),t.dispatchAction({type:"changeMagicType",currentType:n,newOption:a,newTitle:o,featureName:"magicType"})}},t}(_L),DL={line:function(e,t,n,r){if("bar"===e)return A({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return A({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i="__ec_magicType_stack__"===n.get("stack");if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),A({id:t,stack:i?"":"__ec_magicType_stack__"},r.get(["option","stack"])||{},!0)}};Vv({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var LL=IL,RL=new Array(60).join("-");function NL(e){var t=[];return R(e,(function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,o=[" "].concat(N(e.series,(function(e){return e.name}))),a=[r.model.getCategories()];R(e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(i),(function(e){return e})))}));for(var s=[o.join("\t")],u=0;u<a[0].length;u++){for(var l=[],c=0;c<a.length;c++)l.push(a[c][u]);s.push(l.join("\t"))}t.push(s.join("\n"))})),t.join("\n\n"+RL+"\n\n")}function jL(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var BL=new RegExp("[\t]+","g");function FL(e,t){var n=e.split(new RegExp("\n*"+RL+"\n*","g")),r={series:[]};return R(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf("\t")>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),n=[],r=N(jL(t.shift()).split(BL),(function(e){return{name:e,data:[]}})),i=0;i<t.length;i++){var o=jL(t[i]).split(BL);n.push(o.shift());for(var a=0;a<o.length;a++)r[a]&&(r[a].data[i]=o[a])}return{series:r,categories:n}}(e),o=t[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(e){for(var t=e.split(/\n+/g),n=jL(t.shift()),r=[],i=0;i<t.length;i++){var o=jL(t[i]);if(o){var a=o.split(BL),s="",u=void 0,l=!1;isNaN(a[0])?(l=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},u=r[i].value):u=r[i]=[];for(var c=0;c<a.length;c++)u.push(+a[c]);1===u.length&&(l?r[i].value=u[0]:r[i]=u[0])}}return{name:n,data:r}}(e);r.series.push(i)}})),r}var zL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin: 10px 20px;",o.style.color=r.get("textColor");var s=document.createElement("div"),u=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var l=r.get("optionToContent"),c=r.get("contentToOption"),f=function(e){var t,n=function(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:B([NL(n.seriesGroupByCategoryAxis),(t=n.other,N(t,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],o=t.getName(i),a=0;a<e-1;a++)r[a]=arguments[a];n.push((o?o+"\t":"")+r.join("\t"))})),n.join("\n")})).join("\n\n"+RL+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+RL+"\n\n"),meta:n.meta}}(e);if("function"===typeof l){var d=l(t.getOption());"string"===typeof d?s.innerHTML=d:K(d)&&s.appendChild(d)}else s.appendChild(u),u.readOnly=r.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=r.get("textColor"),u.style.borderColor=r.get("textareaBorderColor"),u.style.backgroundColor=r.get("textareaColor"),u.value=f.value;var h=f.meta,p=document.createElement("div");p.style.cssText="position:absolute;bottom:0;left:0;right:0;";var g="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),v=document.createElement("div");g+=";background-color:"+r.get("buttonColor"),g+=";color:"+r.get("buttonTextColor");var m=this;function b(){n.removeChild(i),m._dom=null}qe(y,"click",b),qe(v,"click",(function(){if(null==c&&null!=l||null!=c&&null==l)b();else{var e;try{e="function"===typeof c?c(s,t.getOption()):FL(u.value,h)}catch(n){throw b(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),b()}})),y.innerHTML=a[1],v.innerHTML=a[2],v.style.cssText=g,y.style.cssText=g,!r.get("readOnly")&&p.appendChild(v),p.appendChild(y),i.appendChild(o),i.appendChild(s),i.appendChild(p),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocale(["toolbox","dataView","title"]),lang:e.getLocale(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(_L);function VL(e,t){return N(e,(function(e,n){var r=t&&t[n];if(W(r)&&!H(r)){W(e)&&!H(e)||(e={value:e});var i=null!=r.name&&null==e.name;return e=E(e,r),i&&delete e.name,e}return e}))}Vv({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];R(e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:VL(e.data,i)})}else n.push(M({type:"scatter"},e))})),t.mergeOption(E({series:n},e.newOption))}));var HL=zL,UL=R,GL=ni();function JL(e){var t=GL(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var XL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){!function(e){GL(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocale(["toolbox","restore","title"])}},t}(_L);Vv({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var WL=XL,qL=["dataToPoint","pointToData"],ZL=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],KL=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=$L(t,e);R(QL,(function(e,t){(!n||!n.include||I(n.include,t)>=0)&&e(i,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=nR[e.brushType](0,n,t);e.__rangeOffset={offset:iR[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){R(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&R(r.coordSyses,(function(r){var i=nR[e.brushType](1,r,e.range);n(e,i.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){R(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=nR[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?iR[e.brushType](r.values,i.offset,function(e,t){var n=aR(e),r=aR(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}(r.xyMinMax,i.xyMinMax)):r.values}}),this)},e.prototype.makePanelOpts=function(e,t){return N(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:wO(r),isTargetByCursor:_O(r,e,n.coordSysModel),getLinearBrushOtherExtent:xO(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&I(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=$L(t,e),i=0;i<n.length;i++){var o=n[i],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<eR.length;s++)if(eR[s](r,o))return o}return!0},e}();function YL(e){return e[0]>e[1]&&e.reverse(),e}function $L(e,t){return ii(e,t,{includeMainTypes:ZL})}var QL={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=ue(),a={},s={};(n||r||i)&&(R(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),R(r,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),R(i,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var i=e.coordinateSystem,o=[];R(i.getCartesians(),(function(e,t){(I(n,e.getAxis("x").model)>=0||I(r,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:tR.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){R(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:tR.geo})}))}},eR=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],tR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(kl(e)),t}},nR={lineX:V(rR,0),lineY:V(rR,1),rect:function(e,t,n){var r=t[qL[e]]([n[0][0],n[1][0]]),i=t[qL[e]]([n[0][1],n[1][1]]),o=[YL([r[0],i[0]]),YL([r[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:N(n,(function(n){var i=t[qL[e]](n);return r[0][0]=Math.min(r[0][0],i[0]),r[1][0]=Math.min(r[1][0],i[1]),r[0][1]=Math.max(r[0][1],i[0]),r[1][1]=Math.max(r[1][1],i[1]),i})),xyMinMax:r}}};function rR(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=YL(N([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e])):i.toGlobalCoord(i.dataToCoord(r[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var iR={lineX:V(oR,0),lineY:V(oR,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return N(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function oR(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function aR(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var sR,uR,lR=KL,cR=R,fR="\0_ec_\0"+"toolbox-dataZoom_",dR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new bO(n.getZr()),this._brushController.on("brush",z(this._onBrush,this)).mount()),function(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new lR(pR(e),t,{include:["grid"]}).makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return JL(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){hR[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new lR(pR(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}})),function(e,t){var n=JL(e);UL(t,(function(t,r){for(var i=n.length-1;i>=0;i--){if(n[i][r])break}if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(t)}(r,n),this._dispatchZoomAction(n)}function i(e,t,i){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)})),r}(e,a,r),u=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=mA(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];cR(e,(function(e,n){t.push(C(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(_L),hR={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=JL(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return UL(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n]){r[n]=e;break}})),r}(this.ecModel))}};function pR(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}sR="dataZoom",uR=function(e){var t=e.getComponent("toolbox",0);if(t){var n=t.getModel(["feature","dataZoom"]),r=[],i=ii(e,pR(n));return cR(i.xAxisModels,(function(e){return o(e,"xAxis","xAxisIndex")})),cR(i.yAxisModels,(function(e){return o(e,"yAxis","yAxisIndex")})),r}function o(e,t,i){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:fR+t+o};a[i]=o,r.push(a)}},re(null==kf.get(sR)&&uR),kf.set(sR,uR);var gR=dR;var yR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(lf);function vR(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function mR(e){if(f.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var bR=mR(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function wR(e,t){if(!e)return t;t=Bc(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}function xR(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var _R=wR(mR(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),kR=wR(bR,"transform"),SR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(f.transform3dSupported?"will-change:transform;":"");function TR(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!f.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=f.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+kR+":"+a+";":[["top",0],["left",0],[bR,a]]}function CR(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),u=e.get("shadowOffsetX"),l=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=bh(e,"html"),h=u+"px "+l+"px "+a+"px "+s;return r.push("box-shadow:"+h),t&&i&&r.push(function(e,t){var n=" "+e/2+"s cubic-bezier(0.23,1,0.32,1)",r="opacity"+n+",visibility"+n;return t||(n=" "+e+"s cubic-bezier(0.23,1,0.32,1)",r+=f.transformSupported?","+bR+n:",left"+n+",top"+n),_R+":"+r}(i,n)),o&&(f.canvasSupported?r.push("background-color:"+o):(r.push("background-color:#"+Gt(o)),r.push("filter:alpha(opacity=70)"))),R(["width","color","radius"],(function(t){var n="border-"+t,i=Bc(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))})),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),R(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}(c)),null!=d&&r.push("padding:"+Fc(d).join("px ")+"px"),r.join(";")+";"}function AR(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,r,i){Fe(Be,t,r,i,!0)&&Fe(e,n,Be[0],Be[1])}(e,a,document.body,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var OR=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,f.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;AR(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(r):e.appendChild(r),this._container=e;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=i.handler;We(i.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=xR(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative"),e.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=SR+CR(e,!this._firstShow,this._longHide)+TR(i[0],i[1],!0)+"border-color:"+Wc(t)+";"+(e.get("extraCssText")||"")+";pointer-event:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){if(null!=e){var o=this.el;if(G(i)&&"item"===n.get("trigger")&&!vR(n)&&(e+=function(e,t,n){if(!G(n)||"inside"===n)return"";t=Wc(t);var r,i=r="left"===(r=n)?"right":"right"===r?"left":"top"===r?"bottom":"top",o=i+":-6px;",a=kR+":";I(["left","right"],i)>-1?(o+="top:50%",a+="translateY(-50%) rotate("+("left"===i?-225:-45)+"deg)"):(o+="left:50%",a+="translateX(-50%) rotate("+("top"===i?225:45)+"deg)");var s=t+" solid 1px;";return'<div style="'+["position:absolute;width:10px;height:10px;",o+";"+a+";","border-bottom:"+s,"border-right:"+s,"background-color:"+e+";","box-shadow:8px 8px 16px -3px #000;"].join("")+'"></div>'}(n.get("backgroundColor"),r,i)),G(e))o.innerHTML=e;else if(e){o.innerHTML="",H(e)||(e=[e]);for(var a=0;a<e.length;a++)K(e[a])&&e[a].parentNode!==o&&o.appendChild(e[a])}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.clientWidth,e.clientHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(AR(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;R(TR(n[0],n[1]),(function(e){r[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",f.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(z(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e.prototype.getOuterSize=function(){var e=this.el.clientWidth,t=this.el.clientHeight,n=xR(this.el);return n&&(e+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),t+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)),{width:e,height:t}},e}();function MR(e){return Math.max(0,e)}function ER(e){var t=MR(e.shadowBlur||0),n=MR(e.shadowOffsetX||0),r=MR(e.shadowOffsetY||0);return{left:MR(t-n),right:MR(t+n),top:MR(t-r),bottom:MR(t+r)}}function PR(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var IR=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),PR(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){e.get("alwaysShowContent")&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){W(e)&&Vd(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new Ga({style:{rich:t.richTextStyles,text:e,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:r,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:o.get("textShadowColor"),textShadowBlur:o.get("textShadowBlur")||0,textShadowOffsetX:o.get("textShadowOffsetX")||0,textShadowOffsetY:o.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:bh(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var a=this;this.el.on("mouseover",(function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0})),this.el.on("mouseout",(function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=ER(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;PR(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=MR(i.borderWidth||0),a=ER(i);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(z(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.getOuterSize=function(){var e=this.getSize();return{width:e[0],height:e[1]}},e.prototype.dispose=function(){this._zr.remove(this.el)},e}(),DR=z,LR=R,RR=Or,NR=new Da({shape:{x:-1,y:-1,width:2,height:2}});function jR(e,t,n){var r,i=t.ecModel;n?(r=new ac(n,i,i),r=new ac(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof ac&&(a=a.get("tooltip",!0)),G(a)&&(a={formatter:a}),a&&(r=new ac(a,r,i)))}return r}function BR(e,t){return e.dispatchAction||z(t.dispatchAction,t)}function FR(e){return"center"===e||"middle"===e}var zR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){if(!f.node){var n,r=e.getComponent("tooltip"),i=r.get("renderMode");this._renderMode="auto"===(n=i)?f.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===this._renderMode?new IR(t):new OR(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!f.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");OI("itemTooltip",this._api,DR((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!f.node){var i=BR(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(e,t,n){var r=oi(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o,a=ui(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(t){var n=Ja(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0})),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}(r,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var u=NR;u.x=r.x,u.y=r.y,u.update(),Ja(u).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:u},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=DI(r,t),c=l.point[0],d=l.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:l.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(BR(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s)if("axis"===jR([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,o;this._lastDataByCoordSys=null,pg(n,(function(e){return null!=Ja(e).dataIndex?(i=e,!0):null!=Ja(e).tooltipConfig?(o=e,!0):void 0}),!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=z(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=jR([t.tooltipOption],r),a=this._renderMode,s=[],u=fh("section",{blocks:[],noHeader:!0}),l=[],c=new wh;LR(e,(function(e){LR(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var i=pI(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),o=fh("section",{header:i,noHeader:!ie(i),sortBlocks:!0,blocks:[]});u.blocks.push(o),R(e.seriesDataIndices,(function(u){var f=n.getSeriesByIndex(u.seriesIndex),d=u.dataIndexInside,h=f.getDataParams(d);h.axisDim=e.axisDim,h.axisIndex=e.axisIndex,h.axisType=e.axisType,h.axisId=e.axisId,h.axisValue=h_(t.axis,{value:r}),h.axisValueLabel=i,h.marker=c.makeTooltipMarker("item",Wc(h.color),a);var p=jd(f.formatTooltip(d,!0,null));p.markupFragment&&o.blocks.push(p.markupFragment),p.markupText&&l.push(p.markupText),s.push(h)}))}}))})),u.blocks.reverse(),l.reverse();var f=t.position,d=o.get("order"),h=ph(u,c,a,d,n.get("useUTC"),o.get("textStyle"));h&&l.unshift(h);var p="richText"===a?"\n\n":"<br/>",g=l.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(o,f,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],f,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Ja(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,u=i.dataIndex,l=i.dataType,c=s.getData(l),f=this._renderMode,d=e.positionDefault,h=jR([c.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=h.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(u,l),y=new wh;g.marker=y.makeTooltipMarker("item",Wc(g.color),f);var v=jd(s.formatTooltip(u,!1,l)),m=h.get("order"),b=v.markupFragment?ph(v.markupFragment,y,f,m,r.get("useUTC"),h.get("textStyle")):v.markupText,w="item_"+s.name+"_"+u;this._showOrMove(h,(function(){this._showTooltipContent(h,b,g,w,e.offsetX,e.offsetY,e.position,e.target,y)})),n({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=Ja(t),i=r.tooltipConfig.option;if(G(i)){i={content:i,formatter:i}}var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a);var s=e.positionDefault,u=jR(o,this._tooltipModel,s?{position:s}:null),l=u.get("content"),c=Math.random()+"",f=new wh;this._showOrMove(u,(function(){var n=C(u.get("formatterParams")||{});this._showTooltipContent(u,l,n,c,e.offsetX,e.offsetY,e.position,t,f)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var l=this._tooltipContent,c=e.get("formatter");a=a||e.get("position");var f=t,d=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")).color;if(c&&G(c)){var h=e.ecModel.get("useUTC"),p=H(n)?n[0]:n;f=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(f=wc(p.axisValue,f,h)),f=Xc(f,n,!0)}else if(U(c)){var g=DR((function(t,r){t===this._ticket&&(l.setContent(r,u,e,d,a),this._updatePosition(e,a,i,o,l,n,s))}),this);this._ticket=r,f=c(n,r,g)}l.setContent(f,u,e,d,a),l.show(e,d),this._updatePosition(e,a,i,o,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||H(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:H(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var l=i.getSize(),c=e.get("align"),f=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),U(t)&&(t=t([n,r],o,i.el,d,{viewSize:[s,u],contentSize:l.slice()})),H(t))n=RR(t[0],s),r=RR(t[1],u);else if(W(t)){var h=t;h.width=l[0],h.height=l[1];var p=ef(h,{width:s,height:u});n=p.x,r=p.y,c=null,f=null}else if(G(t)&&a){var g=function(e,t,n){var r=n[0],i=n[1],o=0,a=0,s=t.width,u=t.height;switch(e){case"inside":o=t.x+s/2-r/2,a=t.y+u/2-i/2;break;case"top":o=t.x+s/2-r/2,a=t.y-i-10;break;case"bottom":o=t.x+s/2-r/2,a=t.y+u+10;break;case"left":o=t.x-r-10-5,a=t.y+u/2-i/2;break;case"right":o=t.x+s+10+5,a=t.y+u/2-i/2}return[o,a]}(t,d,l);n=g[0],r=g[1]}else{g=function(e,t,n,r,i,o,a){var s=n.getOuterSize(),u=s.width,l=s.height;null!=o&&(e+u+o+2>r?e-=u+o:e+=o);null!=a&&(t+l+a>i?t-=l+a:t+=a);return[e,t]}(n,r,i,s,u,c?null:20,f?null:20);n=g[0],r=g[1]}if(c&&(n-=FR(c)?l[0]/2:"right"===c?l[0]:0),f&&(r-=FR(f)?l[1]/2:"bottom"===f?l[1]:0),vR(e)){g=function(e,t,n,r,i){var o=n.getOuterSize(),a=o.width,s=o.height;return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,u);n=g[0],r=g[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&LR(t,(function(t,r){var i=t.dataByAxis||[],o=(e[r]||{}).dataByAxis||[];(n=n&&i.length===o.length)&&LR(i,(function(e,t){var r=o[t]||{},i=e.seriesDataIndices||[],a=r.seriesDataIndices||[];(n=n&&e.value===r.value&&e.axisType===r.axisType&&e.axisId===r.axisId&&i.length===a.length)&&LR(i,(function(e,t){var r=a[t];n=n&&e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){f.node||(this._tooltipContent.dispose(),PI("itemTooltip",t))},t.type="tooltip",t}(Lh);var VR=["rect","polygon","keep","clear"];function HR(e,t){var n=Jr(e?e.brush:[]);if(n.length){var r=[];R(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;H(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),function(e){var t={};R(e,(function(e){t[e]=1})),e.length=0,R(t,(function(t,n){e.push(n)}))}(s),t&&!s.length&&s.push.apply(s,VR)}}var UR=R;function GR(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function JR(e,t,n){var r={};return UR(t,(function(t){var i=r[t]=function(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}();UR(e[t],(function(e,r){if(TT.isValidType(r)){var o={type:r,visual:e};n&&n(o,t),i[r]=new TT(o),"opacity"===r&&((o=C(o)).type="colorAlpha",i.__hidden.__alphaForOpacity=new TT(o))}}))})),r}function XR(e,t,n){var r;R(n,(function(e){t.hasOwnProperty(e)&&GR(t[e])&&(r=!0)})),r&&R(n,(function(n){t.hasOwnProperty(n)&&GR(t[n])?e[n]=C(t[n]):delete e[n]}))}var WR={lineX:qR(0),lineY:qR(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&vy(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,o=e.y,a=e.width,s=e.height,u=r[0];return!!(vy(r,i,o)||vy(r,i+a,o)||vy(r,i,o+s)||vy(r,i+a,o+s)||_n.create(e).contain(u[0],u[1])||Pl(i,o,i+a,o,r)||Pl(i,o,i,o+s,r)||Pl(i+a,o,i+a,o+s,r)||Pl(i,o+s,i+a,o+s,r))||void 0}}};function qR(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range;return ZR(t[e],i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),ZR(s[0],a)||ZR(s[1],a)||ZR(a[0],s)||ZR(a[1],s)}}}}function ZR(e,t){return t[0]<=e&&e<=t[1]}var KR=["inBrush","outOfBrush"];function YR(e){e.eachComponent({mainType:"brush"},(function(t){(t.brushTargetManager=new lR(t.option,e)).setInputRanges(t.areas,e)}))}function $R(e,t,n){var r,i,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),YR(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:C(t.areas),selected:[]};o.push(a);var s=t.option,u=s.brushLink,l=[],c=[],f=[],d=!1;n||(r=s.throttleType,i=s.throttleDelay);var h=N(t.areas,(function(e){var t=tN[e.brushType],n=E({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(r){return WR[t].point(r,n,e)},rect:function(r){return WR[t].rect(r,n,e)}};return n}(n),n})),p=JR(t.option,KR,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===u||!!l[e]}function y(e){return!!e.length}H(u)&&R(u,(function(e){l[e]=1})),e.eachSeries((function(n,r){var i=f[r]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(c[t]=1)}))}(n,r):function(n,r,i){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(H(n)?I(n,t)<0:t!==n)}(t,r))return;if(R(h,(function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),d=d||y(i)})),g(r)&&y(i)){var o=n.getData();o.each((function(e){eN(n,i,o,e)&&(c[e]=1)}))}}(n,r,i)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var r=f[t],i=e.getData(),o=g(t)?function(e){return c[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return eN(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?d:y(r))&&function(e,t,n,r,i,o){var a,s={};function u(e){return Op(n,a,e)}function l(e,t){Ep(n,a,e,t)}function c(e,c){a=null==o?e:c;var f=n.getRawDataItem(a);if(!f||!1!==f.visualMap)for(var d=r.call(i,e),h=t[d],p=s[d],g=0,y=p.length;g<y;g++){var v=p[g];h[v]&&h[v].applyVisual(e,u,l)}}R(e,(function(e){var n=TT.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(c):n.each([o],c)}(KR,p,i,o)}))})),function(e,t,n,r,i){if(!i)return;var o=e.getZr();if(o.__ecInBrushSelectEvent)return;o.__ecBrushSelect||(o.__ecBrushSelect=QR);qh(o,"__ecBrushSelect",n,t)(e,r)}(t,r,i,o,n)}function QR(e,t){if(!e.isDisposed()){var n=e.getZr();n.__ecInBrushSelectEvent=!0,e.dispatchAction({type:"brushSelect",batch:t}),n.__ecInBrushSelectEvent=!1}}function eN(e,t,n,r){for(var i=0,o=t.length;i<o;i++){var a=t[i];if(e.brushSelector(r,n,a.selectors,a))return!0}}var tN={rect:function(e){return nN(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&nN(t)}};function nN(e){return new _n(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var rN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new bO(t.getZr())).on("brush",z(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){YR(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:C(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:C(n),$from:t})},t.type="brush",t}(Lh);function iN(e,t){return A({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new ac(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var oN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return a(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&XR(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=N(e,(function(e){return iN(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=iN(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(lf),aN=["rect","polygon","lineX","lineY","keep","clear"],sN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,n){var r,i,o;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=r,this._brushMode=i,R(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?o:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return R(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){return{show:!0,type:aN.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocale(["toolbox","brush","title"])}},t}(_L);var uN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return a(t,e),t.type="title",t.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(lf),lN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=Q(e.get("textBaseline"),e.get("textVerticalAlign")),u=new Ga({style:zl(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=u.getBoundingRect(),c=e.get("subtext"),f=new Ga({style:zl(o,{text:c,fill:o.getTextColor(),y:l.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),h=e.get("sublink"),p=e.get("triggerEvent",!0);u.silent=!d&&!p,f.silent=!h&&!p,d&&u.on("click",(function(){qc(d,"_"+e.get("target"))})),h&&f.on("click",(function(){qc(h,"_"+e.get("subtarget"))})),Ja(u).eventData=Ja(f).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(u),c&&r.add(f);var g=r.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=ef(y,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var m={align:a,verticalAlign:s};u.setStyle(m),f.setStyle(m),g=r.getBoundingRect();var b=v.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var x=new Da({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type="title",t}(Lh);var cN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],R(n,(function(t,n){var r,o=$r(qr(t),"");W(t)?(r=C(t)).value=n:r=n,e.push(r),i.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new mb([{name:"value",type:o}],this)).initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(lf),fN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="timeline.slider",t.defaultOption=lc(cN.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(cN);D(fN,Nd.prototype);var dN=fN,hN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="timeline",t}(Lh),pN=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o}return a(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(D_),gN=Math.PI,yN=ni();function vN(e,t,n,r,i,o){var a=t.get("color");i?(i.setColor(a),n.add(i),o&&o.onUpdate(i)):((i=Tg(e.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i));var s=t.getItemStyle(["color"]);i.setStyle(s),r=A({rectHover:!0,z2:100},r,!0);var u=e.get("symbolSize");u=u instanceof Array?u.slice():[+u,+u],r.scaleX=u[0]/2,r.scaleY=u[1]/2;var l=e.get("symbolOffset");l&&(r.x=r.x||0,r.y=r.y||0,r.x+=Or(l[0],u[0]),r.y+=Or(l[1],u[1]));var c=e.get("symbolRotate");return r.rotation=(c||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function mN(e,t,n,r,i,o){if(!e.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var u={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},u),t&&t.animateTo({shape:{x2:s}},u)}}}var bN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return fh("nameValue",{noName:!0,value:a.scale.getLabel({value:e})})},R(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,a,e)}),this),this._renderAxisLabel(r,o,a,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r,i,o,a=e.get(["label","position"]),s=e.get("orient"),u=function(e,t){return ef(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),l={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?u.y+u.height/2<t.getHeight()/2?"-":"+":u.x+u.width/2<t.getWidth()/2?"+":"-":G(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:gN/2},d="vertical"===s?u.height:u.width,h=e.getModel("controlStyle"),p=h.get("show",!0),g=p?h.get("itemSize"):0,y=p?h.get("itemGap"):0,v=g+y,m=e.get(["label","rotate"])||0;m=m*gN/180;var b=h.get("position",!0),w=p&&h.get("showPlayBtn",!0),x=p&&h.get("showPrevBtn",!0),_=p&&h.get("showNextBtn",!0),k=0,S=d;"left"===b||"bottom"===b?(w&&(r=[0,0],k+=v),x&&(i=[k,0],k+=v),_&&(o=[S-g,0],S-=v)):(w&&(r=[S-g,0],S-=v),x&&(i=[0,0],k+=v),_&&(o=[S-g,0],S-=v));var T=[k,S];return e.get("inverse")&&T.reverse(),{viewRect:u,mainLength:d,orient:s,rotation:f[s],labelRotation:m,labelPosOpt:n,labelAlign:e.get(["label","align"])||l[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:T,controlSize:g,controlGap:y}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var o=[1,0,0,1,0,0],a=i.x,s=i.y+i.height;dt(o,o,[-a,-s]),ht(o,o,-gN/2),dt(o,o,[a,s]),(i=i.clone()).applyTransform(o)}var u=y(i),l=y(n.getBoundingRect()),c=y(r.getBoundingRect()),f=[n.x,n.y],d=[r.x,r.y];d[0]=f[0]=u[0][0];var h,p=e.labelPosOpt;null==p||G(p)?(v(f,l,u,1,h="+"===p?0:1),v(d,c,u,1,1-h)):(v(f,l,u,1,h=p>=0?0:1),d[1]=f[1]+p);function g(e){e.originX=u[0][0]-e.x,e.originY=u[1][0]-e.y}function y(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(f),r.setPosition(d),n.rotation=r.rotation=e.rotation,g(n),g(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new Dx({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Jx({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Nx}}(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.niceTicks();var a=new pN("value",i,e.axisExtent,r);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new xr;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new Lu({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:M({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Lu({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:E({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],R(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),u=s.getModel("itemStyle"),l=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),f={x:a,y:0,onclick:z(i._changeTimeline,i,e.value)},d=vN(s,u,t,f);d.ensureState("emphasis").style=l.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),As(d);var h=Ja(d);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=r):h.dataIndex=h.dataModel=null,i._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();this._tickLabels=[],R(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),u=s.getModel("label"),l=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),f=n.dataToCoord(r.tickValue),d=new Ga({x:f,y:0,rotation:e.labelRotation-e.rotation,onclick:z(i._changeTimeline,i,a),silent:!1,style:zl(u,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=zl(l),d.ensureState("progress").style=zl(c),t.add(d),As(d),yN(d).dataIndex=a,i._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,o=e.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),u=r.getPlayState(),l=r.get("inverse",!0);function c(e,n,u,l){if(e){var c=In(Q(r.get(["controlStyle",n+"BtnSize"]),i),i),f=function(e,t,n,r){var i=r.style,o=El(e.get(["controlStyle",t]),r||{},new _n(n[0],n[1],n[2],n[3]));i&&o.setStyle(i);return o}(r,n+"Icon",[0,-c/2,c,c],{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-o:0,rectHover:!0,style:a,onclick:u});f.ensureState("emphasis").style=s,t.add(f),As(f)}}c(e.nextBtnPosition,"next",z(this._changeTimeline,this,l?"-":"+")),c(e.prevBtnPosition,"prev",z(this._changeTimeline,this,l?"+":"-")),c(e.playPosition,u?"stop":"play",z(this._handlePlayClick,this,!u),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,u={onCreate:function(e){e.draggable=!0,e.drift=z(s._handlePointerDrag,s),e.ondragend=z(s._handlePointerDragend,s),mN(e,s._progressLine,o,n,r,!0)},onUpdate:function(e){mN(e,s._progressLine,o,n,r)}};this._currentPointer=vN(a,a,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=Er(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var i=this._findNearestTick(n),o=this.model;(t||i!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(i)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return Sl(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-e);s<r&&(r=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",yN(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(hN);function wN(e){var t=e&&e.timeline;H(t)||(t=t?[t]:[]),R(t,(function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(xN(e),_N(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});_N(r,"position")||(r.position=e.controlPosition),"none"!==r.position||_N(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}R(e.data||[],(function(e){W(e)&&!H(e)&&(!_N(e,"value")&&_N(e,"name")&&(e.value=e.name),xN(e))}))}(e)}))}function xN(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};R(r,(function(e,t){o[t]||_N(i,t)||(i[t]=e)})),n.label&&!_N(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function _N(e,t){return e.hasOwnProperty(t)}function kN(e,t){if(!e)return!1;for(var n=H(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function SN(e){Xr(e,"label",["show"])}var TN=ni(),CN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(f.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=TN(e)[i];n&&n.data?(o?o._mergeOption(n,t,!0):(r&&SN(n),R(n.data,(function(e){e instanceof Array?(SN(e[0]),SN(e[1])):SN(e)})),M(o=this.createMarkerModelFromSeries(n,this,t),{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),TN(e)[i]=o):TN(e)[i]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),o=r.getName(e);return fh("section",{header:this.name,blocks:[fh("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return TN(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(lf);D(CN,Nd.prototype);var AN=CN,ON=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(AN);function MN(e,t,n,r,i,o){var a=[],s=Tb(t,r)?t.getCalculationInfo("stackResultDimension"):r,u=RN(t,s,e),l=t.indicesOfNearest(s,u)[0];a[i]=t.get(n,l),a[o]=t.get(s,l);var c=t.get(r,l),f=function(e){if(e=+e,isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}(t.get(r,l));return(f=Math.min(f,20))>=0&&(a[o]=+a[o].toFixed(f)),[a,c]}var EN={min:V(MN,"min"),max:V(MN,"max"),average:V(MN,"average"),median:V(MN,"median")};function PN(e,t){var n=e.getData(),r=e.coordinateSystem;if(t&&!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!H(t.coord)&&r){var i=r.dimensions,o=IN(t,n,r,e);if((t=C(t)).type&&EN[t.type]&&o.baseAxis&&o.valueAxis){var a=I(i,o.baseAxis.dim),s=I(i,o.valueAxis.dim),u=EN[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=u[0],t.value=u[1]}else{for(var l=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],c=0;c<2;c++)EN[l[c]]&&(l[c]=RN(n,n.mapDimension(i[c]),l[c]));t.coord=l}}return t}function IN(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(function(e,t){var n=e.getData(),r=n.dimensions;t=n.getDimension(t);for(var i=0;i<r.length;i++){var o=n.getDimensionInfo(r[i]);if(o.name===t)return o.coordDim}}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function DN(e,t){return!(e&&e.containData&&t.coord&&!function(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}(t))||e.containData(t.coord)}function LN(e,t,n,r){return r<2?e.coord&&e.coord[r]:e.value}function RN(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var NN=ni(),jN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){this.markerGroupMap=ue()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){NN(e).keep=!1})),t.eachSeries((function(e){var i=AN.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!NN(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){NN(e).keep=!0},t.prototype.blurSeries=function(e){var t=this;R(e,(function(e){var n=AN.getMarkerModelFromSeries(e,t.type);n&&n.getData().eachItemGraphicEl((function(e){e&&ys(e)}))}))},t.type="marker",t}(Lh);function BN(e,t,n){var r=t.coordinateSystem;e.each((function(i){var o,a=e.getItemModel(i),s=Or(a.get("x"),n.getWidth()),u=Or(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(u)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var l=e.get(r.dimensions[0],i),c=e.get(r.dimensions[1],i);o=r.dataToPoint([l,c])}}else o=[s,u];isNaN(s)||(o[0]=s),isNaN(u)||(o[1]=u),e.setItemLayout(i,o)}))}var FN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=AN.getMarkerModelFromSeries(e,"markPoint");t&&(BN(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new Nb),l=function(e,t,n){var r;r=e?N(e&&e.dimensions,(function(e){return E({name:e},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{})})):[{name:"value",type:"float"}];var i=new mb(r,n),o=N(n.get("data"),V(PN,t));e&&(o=B(o,V(DN,e)));return i.initData(o,null,e?LN:function(e){return e.value}),i}(i,e,t);t.setData(l),BN(t.getData(),e,r),l.each((function(e){var n=l.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate");if(U(r)||U(i)||U(o)){var s=t.getRawValue(e),u=t.getDataParams(e);U(r)&&(r=r(s,u)),U(i)&&(i=i(s,u)),U(o)&&(o=o(s,u))}var c=n.getModel("itemStyle").getItemStyle(),f=Mp(a,"color");c.fill||(c.fill=f),l.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:o,style:c})})),u.updateData(l),this.group.add(u.group),l.eachItemGraphicEl((function(e){e.traverse((function(e){Ja(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(jN);var zN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(AN),VN=ni(),HN=function(e,t,n,r){var i,o=e.getData();if(H(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,u=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),u=$(r.yAxis,r.xAxis);else{var l=IN(r,o,t,e);s=l.valueAxis,u=RN(o,Cb(o,l.valueDataDim),a)}var c="x"===s.dim?0:1,f=1-c,d=C(r),h={coord:[]};d.type=null,d.coord=[],d.coord[f]=-1/0,h.coord[f]=1/0;var p=n.get("precision");p>=0&&"number"===typeof u&&(u=+u.toFixed(Math.min(p,20))),d.coord[c]=h.coord[c]=u,i=[d,h,{type:a,valueIndex:r.valueIndex,value:u}]}else i=[]}var g=[PN(e,i[0]),PN(e,i[1]),M({},i[2])];return g[2].type=g[2].type||null,A(g[2],g[0]),A(g[2],g[1]),g};function UN(e){return!isNaN(e)&&!isFinite(e)}function GN(e,t,n,r){var i=1-e,o=r.dimensions[e];return UN(t[i])&&UN(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function JN(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(GN(1,n,r,e)||GN(0,n,r,e)))return!0}return DN(e,t[0])&&DN(e,t[1])}function XN(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),u=Or(s.get("x"),i.getWidth()),l=Or(s.get("y"),i.getHeight());if(isNaN(u)||isNaN(l)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);o=a.dataToPoint([f,d])}if(Qb(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;UN(e.get(c[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):UN(e.get(c[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(u)||(o[0]=u),isNaN(l)||(o[1]=l)}else o=[u,l];e.setItemLayout(t,o)}var WN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=AN.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=VN(t).from,o=VN(t).to;i.each((function(t){XN(i,t,!0,e,n),XN(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new TC);this.group.add(u.group);var l=function(e,t,n){var r;r=e?N(e&&e.dimensions,(function(e){return E({name:e},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{})})):[{name:"value",type:"float"}];var i=new mb(r,n),o=new mb(r,n),a=new mb([],n),s=N(n.get("data"),V(HN,t,e,n));e&&(s=B(s,V(JN,e)));var u=e?LN:function(e){return e.value};return i.initData(N(s,(function(e){return e[0]})),null,u),o.initData(N(s,(function(e){return e[1]})),null,u),a.initData(N(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}(i,e,t),c=l.from,f=l.to,d=l.line;VN(t).from=c,VN(t).to=f,t.setData(d);var h=t.get("symbol"),p=t.get("symbolSize"),g=t.get("symbolRotate"),y=t.get("symbolOffset");function v(t,n,i){var o=t.getItemModel(n);XN(t,n,i,e,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Mp(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Q(o.get("symbolOffset"),y[i?0:1]),symbolRotate:Q(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:Q(o.get("symbolSize"),p[i?0:1]),symbol:Q(o.get("symbol",!0),h[i?0:1]),style:s})}H(h)||(h=[h,h]),H(p)||(p=[p,p]),H(g)||(g=[g,g]),H(y)||(y=[y,y]),l.from.each((function(e){v(c,e,!0),v(f,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[c.getItemLayout(e),f.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:f.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(e,"symbolOffset"),toSymbolRotate:f.getItemVisual(e,"symbolRotate"),toSymbolSize:f.getItemVisual(e,"symbolSize"),toSymbol:f.getItemVisual(e,"symbol"),style:t})})),u.updateData(d),l.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){Ja(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(jN);var qN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(AN),ZN=ni(),KN=function(e,t,n,r){var i=PN(e,r[0]),o=PN(e,r[1]),a=i.coord,s=o.coord;a[0]=$(a[0],-1/0),a[1]=$(a[1],-1/0),s[0]=$(s[0],1/0),s[1]=$(s[1],1/0);var u=O([{},i,o]);return u.coord=[i.coord,o.coord],u.x0=i.x,u.y0=i.y,u.x1=o.x,u.y1=o.y,u};function YN(e){return!isNaN(e)&&!isFinite(e)}function $N(e,t,n,r){var i=1-e;return YN(t[i])&&YN(n[i])}function QN(e,t){var n=t.coord[0],r=t.coord[1];return!!(Qb(e,"cartesian2d")&&n&&r&&($N(1,n,r)||$N(0,n,r)))||(DN(e,{coord:n,x:t.x0,y:t.y0})||DN(e,{coord:r,x:t.x1,y:t.y1}))}function ej(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),u=Or(s.get(n[0]),i.getWidth()),l=Or(s.get(n[1]),i.getHeight());if(isNaN(u)||isNaN(l)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(n,t));else{var c=[h=e.get(n[0],t),p=e.get(n[1],t)];a.clampData&&a.clampData(c,c),o=a.dataToPoint(c,!0)}if(Qb(a,"cartesian2d")){var f=a.getAxis("x"),d=a.getAxis("y"),h=e.get(n[0],t),p=e.get(n[1],t);YN(h)?o[0]=f.toGlobalCoord(f.getExtent()["x0"===n[0]?0:1]):YN(p)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(o[0]=u),isNaN(l)||(o[1]=l)}else o=[u,l];return o}var tj=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];var nj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=AN.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=N(tj,(function(i){return ej(r,t,i,e,n)}));r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,{group:new xr});this.group.add(u.group),this.markKeep(u);var l=function(e,t,n){var r,i;e?(r=N(e&&e.dimensions,(function(e){var n=t.getData();return E({name:e},n.getDimensionInfo(n.mapDimension(e))||{})})),i=new mb(N(["x0","y0","x1","y1"],(function(e,t){return{name:e,type:r[t%2].type}})),n)):i=new mb(r=[{name:"value",type:"float"}],n);var o=N(n.get("data"),V(KN,t,e,n));e&&(o=B(o,V(QN,e)));var a=e?function(e,t,n,r){return e.coord[Math.floor(r/2)][r%2]}:function(e){return e.value};return i.initData(o,null,a),i.hasItemOption=!0,i}(i,e,t);t.setData(l),l.each((function(t){var n=N(tj,(function(n){return ej(l,t,n,e,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,u=o.getExtent(),c=s.getExtent(),f=[o.parse(l.get("x0",t)),o.parse(l.get("x1",t))],d=[s.parse(l.get("y0",t)),s.parse(l.get("y1",t))];Er(f),Er(d);var h=!!(u[0]>f[1]||u[1]<f[0]||c[0]>d[1]||c[1]<d[0]);l.setItemLayout(t,{points:n,allClipped:h});var p=l.getItemModel(t).getModel("itemStyle").getItemStyle(),g=Mp(a,"color");p.fill||(p.fill=g,"string"===typeof p.fill&&(p.fill=Wt(p.fill,.4))),p.stroke||(p.stroke=g),l.setItemVisual(t,"style",p)})),l.diff(ZN(u).data).add((function(e){var t=l.getItemLayout(e);if(!t.allClipped){var n=new Au({shape:{points:t.points}});l.setItemGraphicEl(e,n),u.group.add(n)}})).update((function(e,n){var r=ZN(u).data.getItemGraphicEl(n),i=l.getItemLayout(e);i.allClipped?r&&u.group.remove(r):(r?vl(r,{shape:{points:i.points}},t,e):r=new Au({shape:{points:i.points}}),l.setItemGraphicEl(e,r),u.group.add(r))})).remove((function(e){var t=ZN(u).data.getItemGraphicEl(e);u.group.remove(t)})).execute(),l.eachItemGraphicEl((function(e,n){var r=l.getItemModel(n),i=l.getItemVisual(n,"style");e.useStyle(l.getItemVisual(n,"style")),Bl(e,Fl(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||"",inheritColor:"string"===typeof i.fill?Wt(i.fill,1):"#000"}),Ps(e,r),As(e),Ja(e).dataModel=t})),ZN(u).data=l,u.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(jN);var rj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),H(t)&&R(t,(function(e,r){G(e)&&(e={type:e}),t[r]=A(e,function(e,t){return"all"===t?{type:"all",title:e.getLocale(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocale(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(a)),a.length?t=t.concat(a):i=!0}else i=!0;i&&Qr(r)&&t.push(r.name)})),this._availableNames=n;var r=N(this.get("data")||t,(function(e){return"string"!==typeof e&&"number"!==typeof e||(e={name:e}),new ac(e,this,this.ecModel)}),this);this._data=r},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&R(this._data,(function(e){t[e.get("name")]=!1}));t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;R(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;R(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&I(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolSize:"auto",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(lf),ij=V,oj=R,aj=xr;function sj(e,t,n,r){cj(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),lj(e,t,n,r)}function uj(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function lj(e,t,n,r){uj(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function cj(e,t,n,r){uj(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var fj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return a(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new aj),this.group.add(this._selectorGroup=new aj),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var u=e.getBoxLayoutParams(),l={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),f=ef(u,l,c),d=this.layoutInner(e,i,f,r,a,s),h=ef(E({width:d.width,height:d.height},u),l,c);this.group.x=h.x-d.x,this.group.y=h.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=AL(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),u=ue(),l=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),oj(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var f=new aj;return f.newline=!0,void s.add(f)}var d=n.getSeriesByName(a)[0];if(!u.get(a)){if(d){var h=d.getData(),p=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendSymbol"),y=h.getVisual("style");h.getVisual("symbolSize"),this._createItem(d,a,o,i,t,e,p,y,g,l).on("click",ij(sj,a,null,r,c)).on("mouseover",ij(lj,d.name,null,r,c)).on("mouseout",ij(cj,d.name,null,r,c)),u.set(a,!0)}else n.eachRawSeries((function(n){if(!u.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var f=s.indexOfName(a),d=s.getItemVisual(f,"style"),h=s.getItemVisual(f,"legendSymbol"),p=Vt(d.fill);p&&0===p[3]&&(p[3]=.2,d.fill=qt(p,"rgba")),this._createItem(n,a,o,i,t,e,{},d,h,l).on("click",ij(sj,null,a,r,c)).on("mouseover",ij(lj,null,a,r,c)).on("mouseout",ij(cj,null,a,r,c)),u.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();oj(e,(function(e){var r=e.type,i=new Ga({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Bl(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),As(i)}))},t.prototype._createItem=function(e,t,n,r,i,o,a,s,u,l){var c=e.visualDrawType,f=i.get("itemWidth"),d=i.get("itemHeight"),h=i.isSelected(t),p=r.get("symbolKeepAspect"),g=r.get("icon"),y=function(e,t,n,r,i,o,a){for(var s=t.getModel("itemStyle"),u=nc.concat([["decal"]]),l={},c=0;c<u.length;++c){var f=u[c][u[c].length-1],d=u[c][0];if("inherit"===(y=s.getShallow(f)))switch(d){case"fill":l.fill=i[o];break;case"stroke":l.stroke=i[e.startsWith("empty")?"fill":"stroke"];break;case"opacity":l.opacity=("fill"===o?i:r).opacity;break;default:l[d]=i[d]}else"auto"===y&&"lineWidth"===d?l.lineWidth=i.lineWidth>0?2:0:l[d]=y}var h=t.getModel("lineStyle"),p=Ql.concat([["inactiveColor"],["inactiveWidth"]]),g={};for(c=0;c<p.length;++c){var y;f=p[c][1],d=p[c][0];"inherit"===(y=h.getShallow(f))?g[d]=r[d]:"auto"===y&&"lineWidth"===d?g.lineWidth=r.lineWidth>0?2:0:g[d]=y}if("auto"===l.fill&&(l.fill=i.fill),"auto"===l.stroke&&(l.stroke=i.fill),"auto"===g.stroke&&(g.stroke=i.fill),!a){var v=t.get("inactiveBorderWidth"),m=l[e.indexOf("empty")>-1?"fill":"stroke"];l.lineWidth="auto"===v?i.lineWidth>0&&m?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),g.stroke=n.get("inactiveColor"),g.lineWidth=n.get("inactiveWidth")}return{itemStyle:l,lineStyle:g}}(u=g||u||"roundRect",r,i.getModel("lineStyle"),a,s,c,h),v=new aj,m=r.getModel("textStyle");"function"!==typeof e.getLegendIcon||g?v.add(function(e){var t=e.symbolType||"roundRect",n=Tg(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:f,itemHeight:d,symbolType:u,symbolKeepAspect:p,itemStyle:y.itemStyle,lineStyle:y.lineStyle})):v.add(e.getLegendIcon({itemWidth:f,itemHeight:d,symbolType:u,symbolKeepAspect:p,itemStyle:y.itemStyle,lineStyle:y.lineStyle}));var b="left"===o?f+5:-5,w=o,x=i.get("formatter"),_=t;"string"===typeof x&&x?_=x.replace("{name}",null!=t?t:""):"function"===typeof x&&(_=x(t));var k=r.get("inactiveColor");v.add(new Ga({style:zl(m,{text:_,x:b,y:d/2,fill:h?m.getTextColor():k,align:w,verticalAlign:"middle"})}));var S=new Da({shape:v.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&Ll({el:S,componentModel:i,itemName:t,itemTooltipOption:T.option}),v.add(S),v.eachChild((function(e){e.silent=!0})),S.silent=!l,this.getContentGroup().add(v),As(v),v.__legendDataIndex=n,v},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Qc(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var u=a.getBoundingRect(),l=[-u.x,-u.y];if(s.markRedraw(),a.markRedraw(),i){Qc("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),f=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),h=e.getOrient().index,p=0===h?"width":"height",g=0===h?"height":"width",y=0===h?"y":"x";"end"===o?f[h]+=u[p]+d:l[h]+=c[p]+d,f[1-h]+=u[g]/2-c[g]/2,s.x=f[0],s.y=f[1],a.x=l[0],a.y=l[1];var v={x:0,y:0};return v[p]=u[p]+d+c[p],v[g]=Math.max(u[g],c[g]),v[y]=Math.min(0,c[y]+f[1-h]),v}return a.x=l[0],a.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Lh);function dj(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function hj(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name)),R(n.getData(),(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function pj(e){e.registerComponentModel(rj),e.registerComponentView(fj),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,dj),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",V(hj,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",V(hj,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",V(hj,"inverseSelect")),e.registerAction("legendSelect","legendselected",V(hj,"select")),e.registerAction("legendUnSelect","legendunselected",V(hj,"unSelect"))}(e)}function gj(e,t,n){var r=[1,1];r[e.getOrient().index]=0,rf(t,n,{type:"box",ignoreSize:!!r})}var yj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=of(t);e.prototype.init.call(this,t,n,r),gj(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),gj(this,this.option,t)},t.type="legend.scroll",t.defaultOption=lc(rj.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(rj),vj=xr,mj=["width","height"],bj=["x","y"],wj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return a(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new vj),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vj)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,o,a,s){var u=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var l=this._controllerGroup,c=n.get("pageIconSize",!0),f=H(c)?c:[c,c];h("pagePrev",0);var d=n.getModel("pageTextStyle");function h(e,t){var r=e+"DataIndex",o=El(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:z(u._pageGo,u,r,n,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});o.name=e,l.add(o)}l.add(new Ga({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,u=mj[s],l=bj[s],c=mj[1-s],f=bj[1-s];i&&Qc("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),h=a.getBoundingRect(),p=[-h.x,-h.y],g=C(n);i&&(g[u]=n[u]-h[u]-d);var y=this._layoutContentAndController(e,r,g,s,u,c,f,l);if(i){if("end"===o)p[s]+=y[u]+d;else{var v=h[u]+d;p[s]-=v,y[l]-=v}y[u]+=h[u]+d,p[1-s]+=y[f]+y[c]/2-h[c]/2,y[c]=Math.max(y[c],h[c]),y[f]=Math.min(y[f],h[f]+p[1-s]),a.x=p[0],a.y=p[1],a.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var u=this.getContentGroup(),l=this._containerGroup,c=this._controllerGroup;Qc(e.get("orient"),u,e.get("itemGap"),r?n.width:null,r?null:n.height),Qc("horizontal",c,e.get("pageButtonItemGap",!0));var f=u.getBoundingRect(),d=c.getBoundingRect(),h=this._showController=f[i]>n[i],p=[-f.x,-f.y];t||(p[r]=u[s]);var g=[0,0],y=[-d.x,-d.y],v=Q(e.get("pageButtonGap",!0),e.get("itemGap",!0));h&&("end"===e.get("pageButtonPosition",!0)?y[r]+=n[i]-d[i]:g[r]+=d[i]+v);y[1-r]+=f[o]/2-d[o]/2,u.setPosition(p),l.setPosition(g),c.setPosition(y);var m={x:0,y:0};if(m[i]=h?n[i]:f[i],m[o]=Math.max(f[o],d[o]),m[a]=Math.min(0,d[a]+y[1-r]),l.__rectSize=n[i],h){var b={x:0,y:0};b[i]=Math.max(n[i]-d[i]-v,0),b[o]=m[o],l.setClipPath(new Da({shape:b})),l.__rectSize=b[i]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&vl(u,{x:w.contentPosition[0],y:w.contentPosition[1]},h?e:null),this._updatePageInfoView(e,w),m},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;R(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",G(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=mj[i],a=bj[i],s=this._findTargetItemIndex(t),u=n.children(),l=u[s],c=u.length,f=c?1:0,d={contentPosition:[n.x,n.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return d;var h=m(l);d.contentPosition[i]=-h.s;for(var p=s+1,g=h,y=h,v=null;p<=c;++p)(!(v=m(u[p]))&&y.e>g.s+r||v&&!b(v,g.s))&&(g=y.i>g.i?y:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),y=v;for(p=s-1,g=h,y=h,v=null;p>=-1;--p)(v=m(u[p]))&&b(y,v.s)||!(g.i<y.i)||(y=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function m(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(fj);function xj(e){Zv(pj),e.registerComponentModel(yj),e.registerComponentView(wj),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}var _j=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.inside",t.defaultOption=lc(fL.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(fL),kj=ni();function Sj(e,t,n){kj(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function Tj(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function Cj(e,t){e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Aj(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function Oj(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=kj(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=ue());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){R(uL(e).infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,function(e,t){var n={model:t,containsPoint:V(Aj,t),dispatchAction:V(Cj,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Nk(e.getZr());return R(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(i){if(t.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[e],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(t,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=ue())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(t=i.get(o))}if(t){var a=function(e){var t,n={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var i=e.model,o=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");n["type_"+o]>n["type_"+t]&&(t=o),r=r&&i.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(i);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),qh(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else Tj(r,e)}))}))}var Mj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return a(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),Sj(r,t,{pan:z(Ej.pan,this),zoom:z(Ej.zoom,this),scrollMove:z(Ej.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=kj(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var u=t.uid;s.get(u)&&(s.removeKey(u),s.keys().length||Tj(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(hL),Ej={zoom:function(e,t,n,r){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=Ij[t](null,[r.originX,r.originY],a,n,e),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],l=Math.max(1/r.scale,0);o[0]=(o[0]-u)*l+u,o[1]=(o[1]-u)*l+u;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return mA(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:Pj((function(e,t,n,r,i,o){var a=Ij[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:Pj((function(e,t,n,r,i,o){return Ij[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n).signal*(e[1]-e[0])*o.scrollDelta}))};function Pj(e){return function(t,n,r,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s)return mA(e(a,s,t,n,r,i),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var Ij={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},Dj=Mj;function Lj(e){wL(e),e.registerComponentModel(_j),e.registerComponentView(Dj),Oj(e)}var Rj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=lc(fL.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(fL),Nj=Da,jj=["line","bar","candlestick","scatter"],Bj={easing:"cubicOut",duration:100};function Fj(e){return"vertical"===e?"ns-resize":"ew-resize"}var zj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return a(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=z(this._onBrush,this),this._onBrushEnd=z(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),qh(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){var n=e[t];n&&n[Jh]&&(e[t]=n[Jh])}(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new xr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},o="horizontal"===this._orient?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=of(e.option);R(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=ef(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr("horizontal"!==n||i?"horizontal"===n&&i?{scaleY:a?1:-1,scaleX:-1}:"vertical"!==n||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new Nj({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new Nj({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:z(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=e.series,r=n.getRawData(),i=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=i){var o=r.getDataExtent(i),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,u=[0,t[1]],l=[0,t[0]],c=[[t[0],0],[0,0]],f=[],d=l[1]/(r.count()-1),h=0,p=Math.round(r.count()/t[0]);r.each([i],(function(e,t){if(p>0&&t%p)h+=d;else{var n=null==e||isNaN(e)||""===e,r=n?0:Ar(e,o,u,!0);n&&!s&&t?(c.push([c[c.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&s&&(c.push([h,0]),f.push([h,0])),c.push([h,r]),f.push([h,r]),h+=d,s=n}}));for(var g=this.dataZoomModel,y=0;y<3;y++){var v=m(1===y);this._displayables.sliderGroup.add(v),this._displayables.dataShadowSegs.push(v)}}}function m(e){var t=g.getModel(e?"selectedDataBackground":"dataBackground"),n=new xr,r=new Au({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Eu({shape:{points:f},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,o){R(e.getAxisProxy(i,o).getTargetSeriesModels(),(function(e){if(!n&&!(!0!==t&&I(jj,e.get("type"))<0)){var a,s=r.getComponent(aL(i),o).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[i],l=e.coordinateSystem;null!=u&&l.getOtherAxis&&(a=l.getOtherAxis(s).inverse),u=e.getData().mapDimension(u),n={thisAxis:s,series:e,thisDim:i,otherDim:u,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,u=a.get("borderRadius")||0,l=a.get("brushSelect"),c=t.filler=new Nj({silent:l,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new Nj({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),R([0,1],(function(t){var o=a.get("handleIcon");!_g[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Tg(o,-1,0,2,2,null,!0);s.attr({cursor:Fj(this._orient),draggable:!0,drift:z(this._onDragMove,this,t),ondragend:z(this._onDragEnd,this),onmouseover:z(this._showDataInfo,this,!0),onmouseout:z(this._showDataInfo,this,!1),z2:5});var u=s.getBoundingRect(),l=a.get("handleSize");this._handleHeight=Or(l,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),As(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[t]=s);var f=a.getModel("textStyle");e.add(r[t]=new Ga({silent:!0,invisible:!0,style:zl(f,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:f.getTextColor(),font:f.getFont()}),z2:10}))}),this);var f=c;if(l){var d=Or(a.get("moveHandleSize"),o[1]),h=t.moveHandle=new Da({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),p=.8*d,g=t.moveHandleIcon=Tg(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(d,10));(f=t.moveZone=new Da({invisible:!0,shape:{y:o[1]-y,height:d+y}})).on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),i.add(h),i.add(g),i.add(f)}f.attr({draggable:!0,cursor:Fj(this._orient),drift:z(this._onDragMove,this,"all"),ondragstart:z(this._showDataInfo,this,!0),ondragend:z(this._onDragEnd,this),onmouseover:z(this._showDataInfo,this,!0),onmouseout:z(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Ar(e[0],[0,100],t,!0),Ar(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];mA(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?Ar(o.minSpan,a,i,!0):null,null!=o.maxSpan?Ar(o.maxSpan,a,i,!0):null);var s=this._range,u=this._range=Er([Ar(r[0],i,a,!0),Ar(r[1],i,a,!0)]);return!s||s[0]!==u[0]||s[1]!==u[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Er(n.slice()),i=this._size;R([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:i[1]/2-o/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],u=0;u<a.length;u++){var l=a[u],c=l.getClipPath();c||(c=new Da,l.setClipPath(c)),c.setShape({x:s[u],y:0,width:s[u+1]-s[u],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,u=this._range,l=e?a.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var c=Er(this._handleEnds.slice());function f(e){var t=kl(n.handles[e].parent,this.group),a=Tl(0===e?"right":"left",t),s=this._handleWidth/2+5,u=Sl([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:u[0],y:u[1],verticalAlign:"horizontal"===i?"middle":a,align:"horizontal"===i?a:"center",text:o[e]})}f.call(this,0),f.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return U(r)?r(e,o):G(r)?r.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Ke(r.event);var i=Sl([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(e,i[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new hn(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Er([Ar(n.x,r,i,!0),Ar(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ke(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new Nj({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),u=a.transformCoordToLocal(o.x,o.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:u[0],y:0,width:s[0]-u[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Bj:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=uL(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(hL);function Vj(e){e.registerComponentModel(Rj),e.registerComponentView(zj),wL(e)}var Hj={get:function(e,t,n){var r=C((Uj[e]||{})[t]);return n&&H(r)?r[r.length-1]:r}},Uj={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Gj=Hj,Jj=TT.mapVisual,Xj=TT.eachVisual,Wj=H,qj=R,Zj=Er,Kj=Ar,Yj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;f.canvasSupported||(n.realtime=!1),!t&&XR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=z(e,this),this.controllerVisuals=JR(this.option.controller,t,e),this.targetVisuals=JR(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=Jr(e),t},t.prototype.eachTargetSeries=function(e,t){R(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],H(e)&&(e=e.slice(),r=!0);var u=t?e:r?[l(e[0]),l(e[1])]:l(e);return G(s)?s.replace("{value}",r?u[0]:u).replace("{value2}",r?u[1]:u):U(s)?r?s(e[0],e[1]):s(e):r?e[0]===a[0]?n[0]+" "+u[1]:e[1]===a[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function l(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=Zj([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimension=function(e){var t=this.option.dimension,n=e.dimensions;if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var o=r[i];if(!e.getDimensionInfo(o).isCalculationCoord)return o}}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});A(r,n),A(i,n);var o=this.isCategory();function a(n){Wj(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,r),a.call(this,i),function(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},qj(r,(function(e,t){if(TT.isValidType(t)){var n=Gj.get(t,"inactive",o);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";qj(this.stateList,(function(a){var s=this.itemSize,u=e[a];u||(u=e[a]={color:o?r:[r]}),null==u.symbol&&(u.symbol=t&&C(t)||(o?i:[i])),null==u.symbolSize&&(u.symbolSize=n&&C(n)||(o?s[0]:[s[0],s[0]])),u.symbol=Jj(u.symbol,(function(e){return"none"===e?i:e}));var l=u.symbolSize;if(null!=l){var c=-1/0;Xj(l,(function(e){e>c&&(c=e)})),u.symbolSize=Jj(l,(function(e){return Kj(e,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(lf),$j=[20,140];function Qj(e,t,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var eB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=$j[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=$j[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):H(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Er((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimension(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=Qj(this,"outOfRange",this.getExtent()),n=Qj(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,u=t.length;a<u&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&i(t[a],"outOfRange");for(var l=1;o<s;o++,l=0)l&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(l=1;a<u;a++)(!n.length||n[n.length-1]<t[a])&&(l&&(r.length&&i(r[r.length-1].value,"outOfRange"),l=0),i(t[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=lc(Yj.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(Yj),tB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return a(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Fc(t.get("padding")||0),r=e.getBoundingRect();e.add(new Da({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===t){var a=i.get("contentColor");o.color=a}function s(e){return o[e]}function u(e,t){o[e]=t}var l=i.controllerVisuals[r||i.getValueState(e)];return R(TT.prepareVisualTypes(l),(function(r){var i=l[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=l.__alphaForOpacity),TT.dependsOn(r,t)&&i&&i.applyVisual(e,s,u)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;tf(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(Lh),nB=[["left","right","width"],["top","bottom","height"]];function rB(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===r.orient?1:0,s=nB[a],u=[0,null,10],l={},c=0;c<3;c++)l[nB[1-a][c]]=u[c],l[s[c]]=2===c?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][a],d=ef(l,o,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+.5*d[f[1]]<.5*o[f[1]]?0:1]}function iB(e,t){return R(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var oB=Ar,aB=R,sB=Math.min,uB=Math.max;function lB(e,t,n,r){return new Au({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Ke(e.event)},ondragend:r})}function cB(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function fB(e){return"vertical"===e?"ns-resize":"ew-resize"}var dB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return a(t,e),t.prototype.doRender=function(e,t,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,u=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),l=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new Ga({style:{x:u[0],y:u[1],verticalAlign:"horizontal"===c?"middle":l,align:"horizontal"===c?l:"center",text:r,font:f.getFont(),fill:f.getTextColor()}}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,o=this._useHandle,a=rB(t,this.api,r),s=n.mainGroup=this._createBarGroup(a),u=new xr;s.add(u),u.add(n.outOfRange=lB()),u.add(n.inRange=lB(null,o?fB(this._orient):null,z(this._dragHandle,this,"all",!1),z(this._dragHandle,this,"all",!0))),u.setClipPath(new Da({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect("\u56fd"),c=uB(l.width,l.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,c,i),this._createHandle(t,s,1,r,c,i)),this._createIndicator(t,s,r,c,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,o){var a=z(this._dragHandle,this,n,!1),s=z(this._dragHandle,this,n,!0),u=In(e.get("handleSize"),r[0]),l=Tg(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),c=fB(this._orient);l.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){Ke(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel("handleStyle").getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Is(l,!0),t.add(l);var f=this.visualMapModel.textStyleModel,d=new Ga({cursor:c,draggable:!0,drift:a,onmousemove:function(e){Ke(e.event)},ondragend:s,style:{x:0,y:0,text:"",font:f.getFont(),fill:f.getTextColor()}});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var h=[u,0],p=this._shapes;p.handleThumbs[n]=l,p.handleLabelPoints[n]=h,p.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,r,i){var o=In(e.get("indicatorSize"),n[0]),a=Tg(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof Ta){var u=a.style;a.useStyle(M({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},s))}else a.useStyle(s);t.add(a);var l=this.visualMapModel.textStyleModel,c=new Ga({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:l.getFont(),fill:l.getTextColor()}});this.group.add(c);var f=[("horizontal"===i?r/2:6)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=f,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():cB(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[oB(t[0],n,r,!0),oB(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];mA(t,r,i,e,0);var o=n.getExtent();this._dataInterval=[oB(r[0],i,o,!0),oB(r[1],i,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],o=e?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,i),a=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new Ju(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],r=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<100;i++){var o=e[0]+r*i;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new xr("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();aB([0,1],(function(u){var l=i[u];l.setStyle("fill",t.handlesColor[u]),l.y=e[u];var c=oB(e[u],[0,a[1]],s,!0),f=this.getControllerVisual(c,"symbolSize");l.scaleX=l.scaleY=f/a[0],l.x=a[0]-f/2;var d=Sl(n.handleLabelPoints[u],kl(l,this.group));o[u].setStyle({x:d[0],y:d[1],text:r.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],u=this._shapes,l=u.indicator;if(l){l.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),f=this.getControllerVisual(e,"symbolSize"),d=oB(e,o,s,!0),h=a[0]-f/2,p={x:l.x,y:l.y};l.y=d,l.x=h;var g=Sl(u.indicatorLabelPoint,kl(l,this.group)),y=u.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",u.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:m?v:"middle",align:m?"center":v});var b={x:h,y:d,style:{fill:c}},w={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};l.x=p.x,l.y=p.y,l.animateTo(b,x),y.animateTo(w,x)}else l.attr(b),y.attr(w);this._firstShowIndicator=!1;var _=this._shapes.handleLabels;if(_)for(var k=0;k<_.length;k++)this._api.enterBlur(_[k])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=sB(uB(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();e=sB(uB(i[0],e),i[1]);var a=function(e,t,n){var r=6,i=e.get("hoverLinkDataSize");i&&(r=oB(i,t,n,!0)/2);return r}(n,o,i),s=[e-a,e+a],u=oB(e,i,o,!0),l=[oB(s[0],i,o,!0),oB(s[1],i,o,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(u,l[1],"< ",a):l[1]===1/0?this._showIndicator(u,l[0],"> ",a):this._showIndicator(u,u,"\u2248 ",a));var c=this._hoverLinkDataIndices,f=[];(t||cB(n))&&(f=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var d=function(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=$r(e[r].seriesId,null);if(null==o)return;for(var a=Jr(e[r].dataIndex),s=n&&n[o],u=0,l=a.length;u<l;u++){var c=a[u];s&&s[c]?s[c]=null:(t[o]||(t[o]={}))[c]=1}}}function o(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=o(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,f);this._dispatchHighDown("downplay",iB(d[0],n)),this._dispatchHighDown("highlight",iB(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Ja(t).dataIndex){var r=Ja(t),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(r.dataType),a=o.get(n.getDataDimension(o),r.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",iB(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=kl(t,r?null:this.group);return H(e)?Sl(e,i,n):Tl(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(tB),hB={type:"selectDataRange",event:"dataRangeSelected",update:"update"},pB=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},gB=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(function(e,t,n,r){var i={};return R(e,(function(e){var n=TT.prepareVisualTypes(t[e]);i[e]=n})),{progress:function(e,o){var a,s;function u(e){return Op(o,s,e)}function l(e,t){Ep(o,s,e,t)}for(null!=r&&(a=o.getDimension(r));null!=(s=e.next());){var c=o.getRawDataItem(s);if(!c||!1!==c.visualMap)for(var f=null!=r?o.get(a,s):s,d=n(f),h=t[d],p=i[d],g=0,y=p.length;g<y;g++){var v=p[g];h[v]&&h[v].applyVisual(f,u,l)}}}}}(t.stateList,t.targetVisuals,z(t.getValueState,t),t.getDataDimension(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(z(yB,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimension(n),a=n.getDimensionInfo(o);null!=a&&(i.dimension=a.index,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function yB(e,t,n,r){for(var i=t.targetVisuals[r],o=TT.prepareVisualTypes(i),a={color:Mp(e.getData(),"color")},s=0,u=o.length;s<u;s++){var l=o[s],c=i["opacity"===l?"__alphaForOpacity":l];c&&c.applyVisual(n,f,d)}return a.color;function f(e){return a[e]}function d(e,t){a[e]=t}}var vB=R;function mB(e){var t=e&&e.visualMap;H(t)||(t=t?[t]:[]),vB(t,(function(e){if(e){bB(e,"splitList")&&!bB(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&H(t)&&vB(t,(function(e){W(e)&&(bB(e,"start")&&!bB(e,"min")&&(e.min=e.start),bB(e,"end")&&!bB(e,"max")&&(e.max=e.end))}))}}))}function bB(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var wB=!1;function xB(e){wB||(wB=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(hB,pB),R(gB,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(mB))}function _B(e){e.registerComponentModel(eB),e.registerComponentView(dB),xB(e)}var kB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return a(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],SB[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=C(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=N(this._pieceList,(function(e){return e=C(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=TT.listVisualTypes(),i=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}R(t.pieces,(function(e){R(r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),R(n,(function(e,n){var r=!1;R(this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),!r&&R(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=Gj.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,R(r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;R(r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(o?i[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=C(e)},t.prototype.getValueState=function(e){var t=TT.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimension(o),(function(t,r){TT.findPieceIndex(t,n)===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return R(i,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=lc(Yj.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Yj),SB={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var u=a===i-1?r[1]:s+o;e.push({interval:[s,u],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),zr(e),R(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;R(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),TB(t,e)},pieces:function(e){var t=this.option;R(t.pieces,(function(t,n){W(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],u=[-1/0,1/0],l=[],c=0;c<2;c++){for(var f=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=t[f[d]],a[c]=s[d],l[c]=2===d;null==o[c]&&(o[c]=u[c])}l[0]&&o[1]===1/0&&(a[0]=0),l[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=TT.retrieveVisuals(t),e.push(r)}),this),TB(t,e),zr(e),R(e,(function(e){var t=e.close,n=[["<","\u2264"][t[1]],[">","\u2265"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function TB(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var CB=kB,AB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=t.itemSize,u=this._getViewData(),l=u.endsText,c=$(t.get("showLabel",!0),!l);l&&this._renderEndsText(e,l[0],s,c,a),R(u.viewPieceList,(function(r){var u=r.piece,l=new xr;l.onclick=z(this._onItemClick,this,u),this._enableHoverLink(l,r.indexInModelPieceList);var f=t.getRepresentValue(u);if(this._createItemSymbol(l,f,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(f);l.add(new Ga({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:u.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===d?.5:1}}))}e.add(l)}),this),l&&this._renderEndsText(e,l[1],s,c,a),Qc(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:iB(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return rB(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var o=new xr,a=this.visualMapModel.textStyleModel;o.add(new Ga({style:{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t,font:a.getFont(),fill:a.getTextColor()}})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=N(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Tg(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=C(n.selected),i=t.getSelectedMapKey(e);"single"===n.selectedMode?(r[i]=!0,R(r,(function(e,t){r[t]=t===i}))):r[i]=!r[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})},t.type="visualMap.piecewise",t}(tB);function OB(e){e.registerComponentModel(CB),e.registerComponentView(AB),xB(e)}var MB={label:{enabled:!0},decal:{show:!1}},EB=ni(),PB={};function IB(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=C(MB);A(r.label,e.getLocaleModel().get("aria"),!1),A(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var t=ue();e.eachSeries((function(e){if(e.useColorPaletteOnData){var n=t.get(e.type);n||(n={},t.set(e.type,n)),EB(e).scope=n}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if("function"!==typeof t.enableAriaDecal){var n=t.getData();if(t.useColorPaletteOnData){var r=t.getRawData(),i={},o=EB(t).scope;n.each((function(e){var t=n.getRawIndex(e);i[t]=e}));var a=r.count();r.each((function(e){var s=i[e],u=r.getName(e)||e+"",c=Ef(t.ecModel,u,o,a),f=n.getItemVisual(s,"decal");n.setItemVisual(s,"decal",l(f,c))}))}else{var s=Ef(t.ecModel,t.name,PB,e.getSeriesCount()),u=n.getVisual("decal");n.setVisual("decal",l(u,s))}}else t.enableAriaDecal();function l(e,t){var n=e?M(M({},t),e):t;return n.dirty=!0,n}}))}}(),function(){var r=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=E(o.option,r),!o.get("enabled"))return;var a=t.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,u=e.getSeriesCount(),l=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,f=Math.min(u,c);if(u<1)return;var d=function(){var t=e.get("title");t&&t.length&&(t=t[0]);return t&&t.text}();if(d){var h=o.get(["general","withTitle"]);s=i(h,{title:d})}else s=o.get(["general","withoutTitle"]);var p=[],g=u>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);s+=i(g,{seriesCount:u}),e.eachSeries((function(t,n){if(n<f){var r=void 0,a=t.get("name")?"withName":"withoutName";r=i(r=u>1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(b=t.subType,e.getLocaleModel().get(["series","typeNames"])[b]||"\u81ea\u5b9a\u4e49\u56fe")});var s=t.getData();if(s.count()>l)r+=i(o.get(["data","partialData"]),{displayCnt:l});else r+=o.get(["data","allData"]);for(var c=[],d=0;d<s.count();d++)if(d<l){var h=s.getName(d),g=Ld(s,d),y=o.get(["data",h?"withName":"withoutName"]);c.push(i(y,{name:h,value:g}))}var v=o.get(["data","separator","middle"]),m=o.get(["data","separator","end"]);r+=c.join(v)+m,p.push(r)}var b}));var y=o.getModel(["series","multiple","separator"]),v=y.get("middle"),m=y.get("end");s+=p.join(v)+m,a.setAttribute("aria-label",s)}()}function i(e,t){if("string"!==typeof e)return e;var n=e;return R(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}}function DB(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},R(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}var LB={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},RB=function(){function e(e){var t;if(null==(this._condVal=G(e)?new RegExp(e):(t=e,"[object RegExp]"===p.call(t)?e:null))){0,Vd("")}}return e.prototype.evaluate=function(e){var t=typeof e;return"string"===t?this._condVal.test(e):"number"===t&&this._condVal.test(e+"")},e}(),NB=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),jB=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),BB=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),FB=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),zB=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?n:t))return!1;return!0},e}();function VB(e,t){if(!0===e||!1===e){var n=new NB;return n.value=e,n}return UB(e)||Vd(""),e.and?HB("and",e,t):e.or?HB("or",e,t):e.not?function(e,t){var n=e.not;0;UB(n)||Vd("");var r=new FB;r.child=VB(n,t),r.child||Vd("");return r}(e,t):function(e,t){for(var n=t.prepareGetValue(e),r=[],i=F(e),o=e.parser,a=o?Gd(o):null,s=0;s<i.length;s++){var u=i[s];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var l=fe(LB,u)?LB[u]:u,c=e[u],f=a?a(c):c,d=Zd(l,f)||"reg"===l&&new RB(f);d||Vd(""),r.push(d)}}r.length||Vd("");var h=new zB;return h.valueGetterParam=n,h.valueParser=a,h.getValue=t.getValue,h.subCondList=r,h}(e,t)}function HB(e,t,n){var r=t[e];H(r)||Vd(""),r.length||Vd("");var i="and"===e?new jB:new BB;return i.children=N(r,(function(e){return VB(e,n)})),i.children.length||Vd(""),i}function UB(e){return W(e)&&!L(e)}var GB=function(){function e(e,t){this._cond=VB(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var JB={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,r=function(e,t){return new GB(e,t)}(e.config,{valueGetterAttrMap:ue({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;fe(e,"dimension")||Vd("");var r=n.getDimensionInfo(t);return r||Vd(""),{dimIdx:r.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),i=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),r.evaluate()&&i.push(t);return{data:i}}};var XB={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r=Jr(n);r.length||Vd("");var i=[];R(r,(function(e){var n=e.dimension,r=e.order,o=e.parser,a=e.incomparable;if(null==n&&Vd(""),"asc"!==r&&"desc"!==r&&Vd(""),a&&"min"!==a&&"max"!==a){0,Vd("")}if("asc"!==r&&"desc"!==r){0,Vd("")}var s=t.getDimensionInfo(n);s||Vd("");var u=o?Gd(o):null;o&&!u&&Vd(""),i.push({dimIdx:s.index,parser:u,comparator:new Wd(r,a)})}));var o=t.sourceFormat;"arrayRows"!==o&&"objectRows"!==o&&Vd("");for(var a=[],s=0,u=t.count();s<u;s++)a.push(t.getRawDataItem(s));return a.sort((function(e,n){for(var r=0;r<i.length;r++){var o=i[r],a=t.retrieveValueFromItem(e,o.dimIdx),s=t.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var u=o.comparator.evaluate(a,s);if(0!==u)return u}return 0})),{data:a}}};var WB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return a(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new ih(this),oh(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),oh(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:"column"},t}(lf),qB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return a(t,e),t.type="dataset",t}(Lh);Zv([function(e){e.registerPainter("canvas",em)}]),Zv([function(e){e.registerPainter("svg",Hm)}]),Zv([function(e){e.registerChartView(uw),e.registerSeriesModel(Ob),e.registerLayout(lw("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,dw("line"))},function(e){e.registerChartView(Gw),e.registerSeriesModel(Aw),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,V(ww,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xw),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,dw("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))},function(e){e.registerChartView(tx),e.registerSeriesModel(ix),dg("pie",e.registerAction),e.registerLayout(V(Ww,"pie")),e.registerProcessor(qw("pie"))},function(e){Zv(gk),e.registerSeriesModel(ox),e.registerChartView(lx),e.registerLayout(lw("scatter"))},function(e){Zv(Mk),e.registerChartView(wk),e.registerSeriesModel(xk),e.registerLayout(yk),e.registerProcessor(qw("radar")),e.registerPreprocessor(bk)},function(e){Zv(gS),e.registerChartView(Qk),e.registerSeriesModel(eS),e.registerLayout(nS),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,tS),dg("map",e.registerAction)},function(e){e.registerChartView(PS),e.registerSeriesModel(US),e.registerLayout(JS),e.registerVisual(XS),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=hS(t.coordinateSystem,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))}(e)},function(e){e.registerSeriesModel(eT),e.registerChartView(cT),e.registerVisual(AT),e.registerLayout(FT),function(e){for(var t=0;t<$S.length;t++)e.registerAction({type:$S[t],update:"updateView"},YS);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,n){var r=WS(e,["treemapZoomToNode","treemapRootToNode"],t);if(r){var i=t.getViewRoot();i&&(e.direction=ZS(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))}))}(e)},function(e){e.registerChartView(RC),e.registerSeriesModel(UC),e.registerProcessor(UT),e.registerVisual(GT),e.registerVisual(XT),e.registerLayout(tC),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,uC),e.registerLayout(cC),e.registerCoordinateSystem("graphView",{dimensions:oS.dimensions,create:fC}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),e.registerAction(GC,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=hS(t.coordinateSystem,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))},function(e){e.registerChartView(ZC),e.registerSeriesModel(KC)},function(e){e.registerChartView(QC),e.registerSeriesModel(eA),e.registerLayout(tA),e.registerProcessor(qw("funnel"))},function(e){Zv(OO),e.registerChartView(aA),e.registerSeriesModel(uA),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,cA)},function(e){e.registerChartView(PO),e.registerSeriesModel(IO),e.registerLayout(DO),e.registerVisual(JO),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},function(e){e.registerSeriesModel(qO),e.registerChartView(tM),e.registerVisual(nM),e.registerLayout(iM),e.registerTransform(oM)},function(e){e.registerChartView(mM),e.registerSeriesModel(wM),e.registerPreprocessor(xM),e.registerVisual(CM),e.registerLayout(MM)},function(e){e.registerChartView(IM),e.registerSeriesModel(DM),e.registerLayout(lw("effectScatter"))},function(e){e.registerChartView(VM),e.registerSeriesModel(JM),e.registerLayout(zM),e.registerVisual(WM)},function(e){e.registerChartView(KM),e.registerSeriesModel(YM)},function(e){e.registerChartView(mE),e.registerSeriesModel(bE),e.registerLayout(V(ww,"pictorialBar"))},function(e){e.registerChartView(wE),e.registerSeriesModel(xE),e.registerLayout(_E),e.registerProcessor(qw("themeRiver"))},function(e){e.registerChartView(TE),e.registerSeriesModel(CE),e.registerLayout(V(OE,"sunburst")),e.registerProcessor(V(qw,"sunburst")),e.registerVisual(ME),function(e){e.registerAction({type:"sunburstRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var r=WS(e,["sunburstRootToNode"],t);if(r){var i=t.getViewRoot();i&&(e.direction=ZS(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))})),e.registerAction({type:"sunburstHighlight",update:"none"},(function(e,t,n){e=M({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t){var n=WS(e,["sunburstHighlight"],t);n&&(e.dataIndex=n.node.dataIndex)})),n.dispatchAction(M(e,{type:"highlight"}))})),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(e,t,n){e=M({},e),n.dispatchAction(M(e,{type:"downplay"}))}))}(e)},function(e){e.registerChartView(xP),e.registerSeriesModel(wP)}]),Zv((function(e){Zv(gk),Zv(VI)})),Zv((function(e){Zv(VI),rk.registerAxisPointerClass("PolarAxisPointer",GI),e.registerCoordinateSystem("polar",iD),e.registerComponentModel(JI),e.registerComponentView(_D),xx(e,"angle",WI,wD),xx(e,"radius",qI,xD),e.registerComponentView(fD),e.registerComponentView(yD),e.registerLayout(V(bD,"bar"))})),Zv(gS),Zv((function(e){Zv(VI),rk.registerAxisPointerClass("SingleAxisPointer",VD),e.registerComponentView(HD),e.registerComponentView(OD),e.registerComponentModel(ED),xx(e,"single",ED,ED.defaultOption),e.registerCoordinateSystem("single",LD)})),Zv(OO),Zv((function(e){e.registerComponentModel(GD),e.registerComponentView(WD),e.registerCoordinateSystem("calendar",ZD)})),Zv((function(e){e.registerComponentModel(QD),e.registerComponentView(eL),e.registerPreprocessor($D)})),Zv((function(e){e.registerComponentModel(CL),e.registerComponentView(OL),SL("saveAsImage",EL),SL("magicType",LL),SL("dataView",HL),SL("dataZoom",gR),SL("restore",WL),Zv(xL)})),Zv((function(e){Zv(VI),e.registerComponentModel(yR),e.registerComponentView(zR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))})),Zv(VI),Zv((function(e){e.registerComponentView(rN),e.registerComponentModel(oN),e.registerPreprocessor(HR),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,$R),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){})),SL("brush",sN)})),Zv((function(e){e.registerComponentModel(uN),e.registerComponentView(lN)})),Zv((function(e){e.registerComponentModel(dN),e.registerComponentView(bN),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),E({currentIndex:n.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}(e),e.registerPreprocessor(wN)})),Zv((function(e){e.registerComponentModel(ON),e.registerComponentView(FN),e.registerPreprocessor((function(e){kN(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))})),Zv((function(e){e.registerComponentModel(zN),e.registerComponentView(WN),e.registerPreprocessor((function(e){kN(e.series,"markLine")&&(e.markLine=e.markLine||{})}))})),Zv((function(e){e.registerComponentModel(qN),e.registerComponentView(nj),e.registerPreprocessor((function(e){kN(e.series,"markArea")&&(e.markArea=e.markArea||{})}))})),Zv((function(e){Zv(pj),Zv(xj)})),Zv((function(e){Zv(Lj),Zv(Vj)})),Zv(Lj),Zv(Vj),Zv((function(e){Zv(_B),Zv(OB)})),Zv(_B),Zv(OB),Zv((function(e){e.registerPreprocessor(DB),e.registerVisual(e.PRIORITY.VISUAL.ARIA,IB)})),Zv((function(e){e.registerTransform(JB),e.registerTransform(XB)})),Zv((function(e){e.registerComponentModel(WB),e.registerComponentView(qB)}))},function(e,t,n){"use strict";n.r(t),n.d(t,"pack",(function(){return f})),n.d(t,"keccak256",(function(){return d})),n.d(t,"sha256",(function(){return h}));var r=n(25),i=n(5),o=n(29),a=n(85),s=n(37),u=new RegExp("^bytes([0-9]+)$"),l=new RegExp("^(u?int)([0-9]*)$"),c=new RegExp("^(.*)\\[([0-9]*)\\]$");function f(e,t){if(e.length!=t.length)throw new Error("type/value count mismatch");var n=[];return e.forEach((function(e,o){n.push(function e(t,n,o){switch(t){case"address":return o?Object(i.zeroPad)(n,32):Object(i.arrayify)(n);case"string":return Object(s.f)(n);case"bytes":return Object(i.arrayify)(n);case"bool":return n=n?"0x01":"0x00",o?Object(i.zeroPad)(n,32):Object(i.arrayify)(n)}var a=t.match(l);if(a){var f=parseInt(a[2]||"256");if(a[2]&&String(f)!==a[2]||f%8!==0||0===f||f>256)throw new Error("invalid number type - "+t);return o&&(f=256),n=r.a.from(n).toTwos(f),Object(i.zeroPad)(n,f/8)}if(a=t.match(u)){var d=parseInt(a[1]);if(String(d)!==a[1]||0===d||d>32)throw new Error("invalid bytes type - "+t);if(Object(i.arrayify)(n).byteLength!==d)throw new Error("invalid value for "+t);return o?Object(i.arrayify)((n+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):n}if((a=t.match(c))&&Array.isArray(n)){var h=a[1];if(parseInt(a[2]||String(n.length))!=n.length)throw new Error("invalid value for "+t);var p=[];return n.forEach((function(t){p.push(e(h,t,!0))})),Object(i.concat)(p)}throw new Error("invalid type - "+t)}(e,t[o]))})),Object(i.hexlify)(Object(i.concat)(n))}function d(e,t){return Object(o.keccak256)(f(e,t))}function h(e,t){return Object(a.c)(f(e,t))}},function(e,t,n){"use strict";n.r(t);var r=n(52);n.d(t,"ConstructorFragment",(function(){return r.a})),n.d(t,"EventFragment",(function(){return r.b})),n.d(t,"Fragment",(function(){return r.d})),n.d(t,"FunctionFragment",(function(){return r.e})),n.d(t,"ParamType",(function(){return r.f})),n.d(t,"FormatTypes",(function(){return r.c}));var i=n(135);n.d(t,"AbiCoder",(function(){return i.a})),n.d(t,"defaultAbiCoder",(function(){return i.b}));var o=n(133);n.d(t,"Interface",(function(){return o.b})),n.d(t,"Indexed",(function(){return o.a}));var a=n(41);n.d(t,"checkResultErrors",(function(){return a.d})),n.d(t,"LogDescription",(function(){return o.c})),n.d(t,"TransactionDescription",(function(){return o.d}))},function(e,t,n){"use strict";function r(e,t,n,r){var i=r?" !== ":" === ",o=r?" || ":" && ",a=r?"!":"",s=r?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(n?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(n?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var n in t=t||{},e)t[n]=e[n];return t},checkDataType:r,checkDataTypes:function(e,t,n){switch(e.length){case 1:return r(e[0],t,n,!0);default:var i="",a=o(e);for(var s in a.array&&a.object&&(i=a.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?" && ":"")+r(s,t,n,!0);return i}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++){var o=t[r];(i[o]||"array"===e&&"array"===o)&&(n[n.length]=o)}if(n.length)return n}else{if(i[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:o,getProperty:u,escapeQuotes:l,equal:n(205),ucs2length:n(507),varOccurences:function(e,t){t+="[^0-9]";var n=e.match(new RegExp(t,"g"));return n?n.length:0},varReplace:function(e,t,n){return t+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),n+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var n in e)if(t[n])return!0},schemaHasRulesExcept:function(e,t,n){if("boolean"==typeof e)return!e&&"not"!=n;for(var r in e)if(r!=n&&t[r])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var n in e)if(!t[n])return n},toQuotedString:c,getPathExpr:function(e,t,n,r){return h(e,n?"'/' + "+t+(r?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):r?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,n){var r=c(n?"/"+p(t):u(t));return h(e,r)},getData:function(e,t,n){var r,i,o,a;if(""===e)return"rootData";if("/"==e[0]){if(!f.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(a=e.match(d)))throw new Error("Invalid JSON-pointer: "+e);if(r=+a[1],"#"==(i=a[2])){if(r>=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(o="data"+(t-r||""),!i)return o}for(var s=o,l=i.split("/"),c=0;c<l.length;c++){var h=l[c];h&&(o+=u(g(h)),s+=" && "+o)}return s},unescapeFragment:function(e){return g(decodeURIComponent(e))},unescapeJsonPointer:g,escapeFragment:function(e){return encodeURIComponent(p(e))},escapeJsonPointer:p};var i=o(["string","number","integer","boolean","null"]);function o(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function u(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+l(e)+"']"}function l(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function c(e){return"'"+l(e)+"'"}var f=/^\/(?:[^~]|~0|~1)*$/,d=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function p(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function g(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},function(e,t,n){"use strict";n.r(t),n.d(t,"Wallet",(function(){return A})),n.d(t,"verifyMessage",(function(){return O})),n.d(t,"verifyTypedData",(function(){return M}));var r=n(4),i=n.n(r),o=n(11),a=n(13),s=n(24),u=n(16),l=n(17),c=n(28),f=n(70),d=n(76),h=n(5),p=n(193),g=n(160),y=n(46),v=n(29),m=n(7),b=n(127),w=n(61),x=n(118),_=n(140),k=n(36),S=n(8),T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},C=new S.Logger("wallet/5.1.0");var A=function(e){Object(u.a)(n,e);var t=Object(l.a)(n);function n(e,r){var i,a;if(Object(o.a)(this,n),C.checkNew(this instanceof n?this.constructor:void 0,n),i=t.call(this),null!=(a=e)&&Object(h.isHexString)(a.privateKey,32)&&null!=a.address){var u=new w.SigningKey(e.privateKey);if(Object(m.defineReadOnly)(Object(s.a)(i),"_signingKey",(function(){return u})),Object(m.defineReadOnly)(Object(s.a)(i),"address",Object(k.computeAddress)(i.publicKey)),i.address!==Object(c.getAddress)(e.address)&&C.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(e)){var l=e.mnemonic;Object(m.defineReadOnly)(Object(s.a)(i),"_mnemonic",(function(){return{phrase:l.phrase,path:l.path||y.defaultPath,locale:l.locale||"en"}}));var d=i.mnemonic,p=y.HDNode.fromMnemonic(d.phrase,null,d.locale).derivePath(d.path);Object(k.computeAddress)(p.privateKey)!==i.address&&C.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Object(m.defineReadOnly)(Object(s.a)(i),"_mnemonic",(function(){return null}))}else{if(w.SigningKey.isSigningKey(e))"secp256k1"!==e.curve&&C.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Object(m.defineReadOnly)(Object(s.a)(i),"_signingKey",(function(){return e}));else{"string"===typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);var g=new w.SigningKey(e);Object(m.defineReadOnly)(Object(s.a)(i),"_signingKey",(function(){return g}))}Object(m.defineReadOnly)(Object(s.a)(i),"_mnemonic",(function(){return null})),Object(m.defineReadOnly)(Object(s.a)(i),"address",Object(k.computeAddress)(i.publicKey))}return r&&!f.b.isProvider(r)&&C.throwArgumentError("invalid provider","provider",r),Object(m.defineReadOnly)(Object(s.a)(i),"provider",r||null),i}return Object(a.a)(n,[{key:"mnemonic",get:function(){return this._mnemonic()}},{key:"privateKey",get:function(){return this._signingKey().privateKey}},{key:"publicKey",get:function(){return this._signingKey().publicKey}},{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"connect",value:function(e){return new n(this,e)}},{key:"signTransaction",value:function(e){var t=this;return Object(m.resolveProperties)(e).then((function(n){null!=n.from&&(Object(c.getAddress)(n.from)!==t.address&&C.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete n.from);var r=t._signingKey().signDigest(Object(v.keccak256)(Object(k.serialize)(n)));return Object(k.serialize)(n,r)}))}},{key:"signMessage",value:function(e){return T(this,void 0,void 0,i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(h.joinSignature)(this._signingKey().signDigest(Object(p.a)(e))));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,n){return T(this,void 0,void 0,i.a.mark((function r(){var o,a=this;return i.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,g.a.resolveNames(e,t,n,(function(e){return null==a.provider&&C.throwError("cannot resolve ENS names without a provider",S.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),a.provider.resolveName(e)}));case 2:return o=r.sent,r.abrupt("return",Object(h.joinSignature)(this._signingKey().signDigest(g.a.hash(o.domain,t,o.value))));case 4:case"end":return r.stop()}}),r,this)})))}},{key:"encrypt",value:function(e,t,n){if("function"!==typeof t||n||(n=t,t={}),n&&"function"!==typeof n)throw new Error("invalid callback");return t||(t={}),Object(x.c)(this,e,t,n)}}],[{key:"createRandom",value:function(e){var t=Object(b.a)(16);e||(e={}),e.extraEntropy&&(t=Object(h.arrayify)(Object(h.hexDataSlice)(Object(v.keccak256)(Object(h.concat)([t,e.extraEntropy])),0,16)));var r=Object(y.entropyToMnemonic)(t,e.locale);return n.fromMnemonic(r,e.path,e.locale)}},{key:"fromEncryptedJson",value:function(e,t,r){return Object(_.decryptJsonWallet)(e,t,r).then((function(e){return new n(e)}))}},{key:"fromEncryptedJsonSync",value:function(e,t){return new n(Object(_.decryptJsonWalletSync)(e,t))}},{key:"fromMnemonic",value:function(e,t,r){return t||(t=y.defaultPath),new n(y.HDNode.fromMnemonic(e,null,r).derivePath(t))}}]),n}(d.a);function O(e,t){return Object(k.recoverAddress)(Object(p.a)(e),t)}function M(e,t,n,r){return Object(k.recoverAddress)(g.a.hash(e,t,n),r)}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}}(),e.exports=n(359)},function(e,t,n){"use strict";n.d(t,"b",(function(){return I})),n.d(t,"a",(function(){return D})),n.d(t,"c",(function(){return L}));var r=n(4),i=n.n(r),o=n(11),a=n(13),s=n(16),u=n(17),l=n(73),c=n.n(l),f=n(186),d=n.n(f),h=n(28),p=n(5),g=n(46),y=n(29),v=n(587),m=n(127),b=n(7),w=n(36),x=n(30),_=n(8),k=n(183),S=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},T=new _.Logger(k.a);function C(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}var A=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"isKeystoreAccount",value:function(e){return!(!e||!e._isKeystoreAccount)}}]),n}(b.Description);function O(e,t){var n=Object(x.b)(Object(x.c)(e,"crypto/ciphertext"));if(Object(p.hexlify)(Object(y.keccak256)(Object(p.concat)([t.slice(16,32),n]))).substring(2)!==Object(x.c)(e,"crypto/mac").toLowerCase())throw new Error("invalid password");var r=function(e,t,n){if("aes-128-ctr"===Object(x.c)(e,"crypto/cipher")){var r=Object(x.b)(Object(x.c)(e,"crypto/cipherparams/iv")),i=new c.a.Counter(r),o=new c.a.ModeOfOperation.ctr(t,i);return Object(p.arrayify)(o.decrypt(n))}return null}(e,t.slice(0,16),n);r||T.throwError("unsupported cipher",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var i=t.slice(32,64),o=Object(w.computeAddress)(r);if(e.address){var a=e.address.toLowerCase();if("0x"!==a.substring(0,2)&&(a="0x"+a),Object(h.getAddress)(a)!==o)throw new Error("address mismatch")}var s={_isKeystoreAccount:!0,address:o,privateKey:Object(p.hexlify)(r)};if("0.1"===Object(x.c)(e,"x-ethers/version")){var u=Object(x.b)(Object(x.c)(e,"x-ethers/mnemonicCiphertext")),l=Object(x.b)(Object(x.c)(e,"x-ethers/mnemonicCounter")),f=new c.a.Counter(l),d=new c.a.ModeOfOperation.ctr(i,f),v=Object(x.c)(e,"x-ethers/path")||g.defaultPath,m=Object(x.c)(e,"x-ethers/locale")||"en",b=Object(p.arrayify)(d.decrypt(u));try{var k=Object(g.entropyToMnemonic)(b,m),S=g.HDNode.fromMnemonic(k,null,m).derivePath(v);if(S.privateKey!=s.privateKey)throw new Error("mnemonic mismatch");s.mnemonic=S.mnemonic}catch(C){if(C.code!==_.Logger.errors.INVALID_ARGUMENT||"wordlist"!==C.argument)throw C}}return new A(s)}function M(e,t,n,r,i){return Object(p.arrayify)(Object(v.a)(e,t,n,r,i))}function E(e,t,n,r,i){return Promise.resolve(M(e,t,n,r,i))}function P(e,t,n,r,i){var o=Object(x.a)(t),a=Object(x.c)(e,"crypto/kdf");if(a&&"string"===typeof a){var s=function(e,t){return T.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===a.toLowerCase()){var u=Object(x.b)(Object(x.c)(e,"crypto/kdfparams/salt")),l=parseInt(Object(x.c)(e,"crypto/kdfparams/n")),c=parseInt(Object(x.c)(e,"crypto/kdfparams/r")),f=parseInt(Object(x.c)(e,"crypto/kdfparams/p"));l&&c&&f||s("kdf",a),0!==(l&l-1)&&s("N",l);var d=parseInt(Object(x.c)(e,"crypto/kdfparams/dklen"));return 32!==d&&s("dklen",d),r(o,u,l,c,f,64,i)}if("pbkdf2"===a.toLowerCase()){var h=Object(x.b)(Object(x.c)(e,"crypto/kdfparams/salt")),p=null,g=Object(x.c)(e,"crypto/kdfparams/prf");"hmac-sha256"===g?p="sha256":"hmac-sha512"===g?p="sha512":s("prf",g);var y=parseInt(Object(x.c)(e,"crypto/kdfparams/c")),v=parseInt(Object(x.c)(e,"crypto/kdfparams/dklen"));return 32!==v&&s("dklen",v),n(o,h,y,v,p)}}return T.throwArgumentError("unsupported key-derivation function","kdf",a)}function I(e,t){var n=JSON.parse(e);return O(n,P(n,t,M,d.a.syncScrypt))}function D(e,t,n){return S(this,void 0,void 0,i.a.mark((function r(){var o,a;return i.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=JSON.parse(e),r.next=3,P(o,t,E,d.a.scrypt,n);case 3:return a=r.sent,r.abrupt("return",O(o,a));case 5:case"end":return r.stop()}}),r)})))}function L(e,t,n,r){try{if(Object(h.getAddress)(e.address)!==Object(w.computeAddress)(e.privateKey))throw new Error("address/privateKey mismatch");if(C(e)){var i=e.mnemonic;if(g.HDNode.fromMnemonic(i.phrase,null,i.locale).derivePath(i.path||g.defaultPath).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(O){return Promise.reject(O)}"function"!==typeof n||r||(r=n,n={}),n||(n={});var o=Object(p.arrayify)(e.privateKey),a=Object(x.a)(t),s=null,u=null,l=null;if(C(e)){var f=e.mnemonic;s=Object(p.arrayify)(Object(g.mnemonicToEntropy)(f.phrase,f.locale||"en")),u=f.path||g.defaultPath,l=f.locale||"en"}var v=n.client;v||(v="ethers.js");var b=null;b=n.salt?Object(p.arrayify)(n.salt):Object(m.a)(32);var _=null;if(n.iv){if(16!==(_=Object(p.arrayify)(n.iv)).length)throw new Error("invalid iv")}else _=Object(m.a)(16);var k=null;if(n.uuid){if(16!==(k=Object(p.arrayify)(n.uuid)).length)throw new Error("invalid uuid")}else k=Object(m.a)(16);var S=1<<17,T=8,A=1;return n.scrypt&&(n.scrypt.N&&(S=n.scrypt.N),n.scrypt.r&&(T=n.scrypt.r),n.scrypt.p&&(A=n.scrypt.p)),d.a.scrypt(a,b,S,T,A,64,r).then((function(t){var n=(t=Object(p.arrayify)(t)).slice(0,16),r=t.slice(16,32),i=t.slice(32,64),a=new c.a.Counter(_),f=new c.a.ModeOfOperation.ctr(n,a),d=Object(p.arrayify)(f.encrypt(o)),h=Object(y.keccak256)(Object(p.concat)([r,d])),g={address:e.address.substring(2).toLowerCase(),id:Object(x.d)(k),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Object(p.hexlify)(_).substring(2)},ciphertext:Object(p.hexlify)(d).substring(2),kdf:"scrypt",kdfparams:{salt:Object(p.hexlify)(b).substring(2),n:S,dklen:32,p:A,r:T},mac:h.substring(2)}};if(s){var w=Object(m.a)(16),C=new c.a.Counter(w),O=new c.a.ModeOfOperation.ctr(i,C),M=Object(p.arrayify)(O.encrypt(s)),E=new Date,P=E.getUTCFullYear()+"-"+Object(x.e)(E.getUTCMonth()+1,2)+"-"+Object(x.e)(E.getUTCDate(),2)+"T"+Object(x.e)(E.getUTCHours(),2)+"-"+Object(x.e)(E.getUTCMinutes(),2)+"-"+Object(x.e)(E.getUTCSeconds(),2)+".0Z";g["x-ethers"]={client:v,gethFilename:"UTC--"+P+"--"+g.address,mnemonicCounter:Object(p.hexlify)(w).substring(2),mnemonicCiphertext:Object(p.hexlify)(M).substring(2),path:u,locale:l,version:"0.1"}}return JSON.stringify(g)}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"getNetwork",(function(){return c}));var r=new(n(8).Logger)("networks/5.1.0");function i(e){var t=function(t,n){null==n&&(n={});var r=[];if(t.InfuraProvider)try{r.push(new t.InfuraProvider(e,n.infura))}catch(s){}if(t.EtherscanProvider)try{r.push(new t.EtherscanProvider(e,n.etherscan))}catch(s){}if(t.AlchemyProvider){try{var i=new t.AlchemyProvider(e,n.alchemy);i.network&&-1===["goerli","ropsten","rinkeby"].indexOf(i.network.name)&&r.push(i)}catch(s){}}if(t.PocketProvider){try{var o=new t.PocketProvider(e);o.network&&-1===["goerli","ropsten","rinkeby"].indexOf(o.network.name)&&r.push(o)}catch(s){}}if(t.CloudflareProvider)try{r.push(new t.CloudflareProvider(e))}catch(s){}if(0===r.length)return null;if(t.FallbackProvider){var a=1;return null!=n.quorum?a=n.quorum:"homestead"===e&&(a=2),new t.FallbackProvider(r,a)}return r[0]};return t.renetwork=function(e){return i(e)},t}function o(e,t){var n=function(n,r){return n.JsonRpcProvider?new n.JsonRpcProvider(e,t):null};return n.renetwork=function(t){return o(e,t)},n}var a={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:i("homestead")},s={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:i("ropsten")},u={chainId:63,name:"classicMordor",_defaultProvider:o("https://www.ethercluster.com/mordor","classicMordor")},l={unspecified:{chainId:0,name:"unspecified"},homestead:a,mainnet:a,morden:{chainId:2,name:"morden"},ropsten:s,testnet:s,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:i("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:i("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:i("goerli")},classic:{chainId:61,name:"classic",_defaultProvider:o("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:u,classicTestnet:u,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:o("https://www.ethercluster.com/kotti","classicKotti")}};function c(e){if(null==e)return null;if("number"===typeof e){for(var t in l){var n=l[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"===typeof e){var i=l[e];return null==i?null:{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress,_defaultProvider:i._defaultProvider||null}}var o=l[e.name];if(!o)return"number"!==typeof e.chainId&&r.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==o.chainId&&r.throwArgumentError("network chainId mismatch","network",e);var a,s=e._defaultProvider||null;return null==s&&o._defaultProvider&&(s=(a=o._defaultProvider)&&"function"===typeof a.renetwork?o._defaultProvider.renetwork(e):o._defaultProvider),{name:e.name,chainId:o.chainId,ensAddress:e.ensAddress||o.ensAddress||null,_defaultProvider:s}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(142);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(179),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=Object(r.a)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=o},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return i.Box}}),Object.defineProperty(t,"Flex",{enumerable:!0,get:function(){return i.Flex}}),t.Card=t.Image=t.Button=t.Link=t.Heading=t.Text=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=o();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(410);function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)((function(e,t){return r.default.createElement(i.Box,a({ref:t,tx:"text"},e))}));t.Text=s;var u=(0,r.forwardRef)((function(e,t){return r.default.createElement(i.Box,a({ref:t,as:"h2",tx:"text",variant:"heading"},e,{__css:{fontSize:4,fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"}}))}));t.Heading=u;var l=(0,r.forwardRef)((function(e,t){return r.default.createElement(i.Box,a({ref:t,as:"a",variant:"link"},e))}));t.Link=l;var c=(0,r.forwardRef)((function(e,t){return r.default.createElement(i.Box,a({ref:t,as:"button",tx:"buttons",variant:"primary"},e,{__css:{appearance:"none",display:"inline-block",textAlign:"center",lineHeight:"inherit",textDecoration:"none",fontSize:"inherit",px:3,py:2,color:"white",bg:"primary",border:0,borderRadius:4}}))}));t.Button=c;var f=(0,r.forwardRef)((function(e,t){return r.default.createElement(i.Box,a({ref:t,as:"img"},e,{__css:{maxWidth:"100%",height:"auto"}}))}));t.Image=f;var d=(0,r.forwardRef)((function(e,t){return r.default.createElement(i.Box,a({ref:t,variant:"card"},e))}));t.Card=d},,function(e,t,n){"use strict";var r=n(494),i=n(504),o=n(203);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(5),i=n(8),o=n(320),a=new i.Logger(o.a),s=null;try{if(null==(s=window))throw new Error("try next")}catch(c){try{if(null==(s=e))throw new Error("try next")}catch(c){s={}}}var u=s.crypto||s.msCrypto;function l(e){(e<=0||e>1024||e%1)&&a.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return u.getRandomValues(t),Object(r.arrayify)(t)}u&&u.getRandomValues||(a.warn("WARNING: Missing strong random number source"),u={getRandomValues:function(e){return a.throwError("no secure random source avaialble",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,n(79))},function(e,t,n){var r=t;r.utils=n(81),r.common=n(131),r.sha=n(371),r.ripemd=n(375),r.hmac=n(376),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){e.exports=n(545)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=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 e=s(d);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),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(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(81),i=n(80);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){"use strict";var r=n(82),i=n(80);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return _}));var r=n(13),i=n(11),o=n(16),a=n(17),s=n(28),u=n(25),l=n(5),c=n(93),f=n(29),d=n(7),h=n(135),p=n(52),g=n(8),y=n(84),v=new g.Logger(y.a),m=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return n}(d.Description),b=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return n}(d.Description),w=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),n}(d.Description);function x(e,t){var n=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return n.error=t,n}var _=function(){function e(t){var n=this;Object(i.a)(this,e),v.checkNew(this instanceof e?this.constructor:void 0,e);var r=[];r="string"===typeof t?JSON.parse(t):t,Object(d.defineReadOnly)(this,"fragments",r.map((function(e){return p.d.from(e)})).filter((function(e){return null!=e}))),Object(d.defineReadOnly)(this,"_abiCoder",Object(d.getStatic)(this instanceof e?this.constructor:void 0,"getAbiCoder")()),Object(d.defineReadOnly)(this,"functions",{}),Object(d.defineReadOnly)(this,"errors",{}),Object(d.defineReadOnly)(this,"events",{}),Object(d.defineReadOnly)(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return n.deploy?void v.warn("duplicate definition - constructor"):void Object(d.defineReadOnly)(n,"deploy",e);case"function":t=n.functions;break;case"event":t=n.events;break;default:return}var r=e.format();t[r]?v.warn("duplicate definition - "+r):t[r]=e})),this.deploy||Object(d.defineReadOnly)(this,"deploy",p.a.from({payable:!1,type:"constructor"})),Object(d.defineReadOnly)(this,"_isInterface",!0)}return Object(r.a)(e,[{key:"format",value:function(e){e||(e=p.c.full),e===p.c.sighash&&v.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===p.c.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if(Object(l.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];v.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),r=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===n}));return 0===r.length?v.throwArgumentError("no matching function","name",n):r.length>1&&v.throwArgumentError("multiple matching functions","name",n),this.functions[r[0]]}var i=this.functions[p.e.fromString(e).format()];return i||v.throwArgumentError("no matching function","signature",e),i}},{key:"getEvent",value:function(e){if(Object(l.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];v.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var r=e.trim(),i=Object.keys(this.events).filter((function(e){return e.split("(")[0]===r}));return 0===i.length?v.throwArgumentError("no matching event","name",r):i.length>1&&v.throwArgumentError("multiple matching events","name",r),this.events[i[0]]}var o=this.events[p.b.fromString(e).format()];return o||v.throwArgumentError("no matching event","signature",e),o}},{key:"getSighash",value:function(e){return"string"===typeof e&&(e=this.getFunction(e)),Object(d.getStatic)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"===typeof e&&(e=this.getEvent(e)),Object(d.getStatic)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeFunctionData",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var n=Object(l.arrayify)(t);return Object(l.hexlify)(n.slice(0,4))!==this.getSighash(e)&&v.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(l.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Object(l.hexlify)(Object(l.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var n=Object(l.arrayify)(t),r=null,i=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(o){}break;case 4:"0x08c379a0"===Object(l.hexlify)(n.slice(0,4))&&(i="Error(string)",r=this._abiCoder.decode(["string"],n.slice(4))[0])}return v.throwError("call revert exception",g.Logger.errors.CALL_EXCEPTION,{method:e.format(),errorSignature:i,errorArgs:[r],reason:r})}},{key:"encodeFunctionResult",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Object(l.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var n=this;"string"===typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&v.throwError("too many arguments for "+e.format(),g.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var r=[];e.anonymous||r.push(this.getEventTopic(e));var i=function(e,t){return"string"===e.type?Object(c.a)(t):"bytes"===e.type?Object(f.keccak256)(Object(l.hexlify)(t)):("address"===e.type&&n._abiCoder.encode(["address"],[t]),Object(l.hexZeroPad)(Object(l.hexlify)(t),32))};for(t.forEach((function(t,n){var o=e.inputs[n];o.indexed?null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?v.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map((function(e){return i(o,e)}))):r.push(i(o,t)):null!=t&&v.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}},{key:"encodeEventLog",value:function(e,t){var n=this;"string"===typeof e&&(e=this.getEvent(e));var r=[],i=[],o=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&v.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,a){var s=t[a];if(e.indexed)if("string"===e.type)r.push(Object(c.a)(s));else if("bytes"===e.type)r.push(Object(f.keccak256)(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(n._abiCoder.encode([e.type],[s]))}else i.push(e),o.push(s)})),{data:this._abiCoder.encode(i,o),topics:r}}},{key:"decodeEventLog",value:function(e,t,n){if("string"===typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){var r=this.getEventTopic(e);Object(l.isHexString)(n[0],32)&&n[0].toLowerCase()===r||v.throwError("fragment/topic mismatch",g.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:r,value:n[0]}),n=n.slice(1)}var i=[],o=[],a=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(p.f.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(o.push(e),a.push(!1))}));var s=null!=n?this._abiCoder.decode(i,Object(l.concat)(n)):null,u=this._abiCoder.decode(o,t,!0),c=[],f=0,d=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)c[t]=new w({_isIndexed:!0,hash:null});else if(a[t])c[t]=new w({_isIndexed:!0,hash:s[d++]});else try{c[t]=s[d++]}catch(r){c[t]=r}else try{c[t]=u[f++]}catch(r){c[t]=r}if(e.name&&null==c[e.name]){var n=c[t];n instanceof Error?Object.defineProperty(c,e.name,{get:function(){throw x("property ".concat(JSON.stringify(e.name)),n)}}):c[e.name]=n}}));for(var h=function(e){var t=c[e];t instanceof Error&&Object.defineProperty(c,e,{get:function(){throw x("index ".concat(e),t)}})},y=0;y<c.length;y++)h(y);return Object.freeze(c)}},{key:"parseTransaction",value:function(e){var t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new b({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:u.a.from(e.value||"0")}):null}},{key:"parseLog",value:function(e){var t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new m({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}}],[{key:"getAbiCoder",value:function(){return h.b}},{key:"getAddress",value:function(e){return Object(s.getAddress)(e)}},{key:"getSighash",value:function(e){return Object(l.hexDataSlice)(Object(c.a)(e.format()),0,4)}},{key:"getEventTopic",value:function(e){return Object(c.a)(e.format())}},{key:"isInterface",value:function(e){return!(!e||!e._isInterface)}}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(127);n.d(t,"randomBytes",(function(){return r.a}));var i=n(249);n.d(t,"shuffled",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return j}));var r=n(11),i=n(13),o=n(5),a=n(7),s=n(8),u=n(84),l=n(41),c=n(16),f=n(17),d=n(28),h=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,"address","address",e,!1)}return Object(i.a)(n,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(e,t){try{Object(d.getAddress)(t)}catch(n){this._throwError(n.message,t)}return e.writeValue(t)}},{key:"decode",value:function(e){return Object(d.getAddress)(Object(o.hexZeroPad)(e.readValue().toHexString(),20))}}]),n}(l.a),p=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e){var i;return Object(r.a)(this,n),(i=t.call(this,e.name,e.type,void 0,e.dynamic)).coder=e,i}return Object(i.a)(n,[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(e,t){return this.coder.encode(e,t)}},{key:"decode",value:function(e){return this.coder.decode(e)}}]),n}(l.a),g=new s.Logger(u.a);function y(e,t,n){var r=null;if(Array.isArray(n))r=n;else if(n&&"object"===typeof n){var i={};r=t.map((function(e){var t=e.localName;return t||g.throwError("cannot encode object for signature with missing names",s.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),i[t]&&g.throwError("cannot encode object for signature with duplicate names",s.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),i[t]=!0,n[t]}))}else g.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&g.throwArgumentError("types/value length mismatch","tuple",n);var o=new l.c(e.wordSize),a=new l.c(e.wordSize),u=[];t.forEach((function(e,t){var n=r[t];if(e.dynamic){var i=a.length;e.encode(a,n);var s=o.writeUpdatableValue();u.push((function(e){s(e+i)}))}else e.encode(o,n)})),u.forEach((function(e){e(o.length)}));var c=e.appendWriter(o);return c+=e.appendWriter(a)}function v(e,t){var n=[],r=e.subReader(0);t.forEach((function(t){var i=null;if(t.dynamic){var o=e.readValue(),a=r.subReader(o.toNumber());try{i=t.decode(a)}catch(u){if(u.code===s.Logger.errors.BUFFER_OVERRUN)throw u;(i=u).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(u){if(u.code===s.Logger.errors.BUFFER_OVERRUN)throw u;(i=u).baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&n.push(i)}));var i=t.reduce((function(e,t){var n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});t.forEach((function(e,t){var r=e.localName;if(r&&1===i[r]&&("length"===r&&(r="_length"),null==n[r])){var o=n[t];o instanceof Error?Object.defineProperty(n,r,{get:function(){throw o}}):n[r]=o}}));for(var o=function(e){var t=n[e];t instanceof Error&&Object.defineProperty(n,e,{get:function(){throw t}})},a=0;a<n.length;a++)o(a);return Object.freeze(n)}var m=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e,i,o){var a;Object(r.a)(this,n);var s=e.type+"["+(i>=0?i:"")+"]",u=-1===i||e.dynamic;return(a=t.call(this,"array",s,o,u)).coder=e,a.length=i,a}return Object(i.a)(n,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],n=0;n<this.length;n++)t.push(e);return t}},{key:"encode",value:function(e,t){Array.isArray(t)||this._throwError("expected array value",t);var n=this.length;-1===n&&(n=t.length,e.writeValue(t.length)),g.checkArgumentCount(t.length,n,"coder array"+(this.localName?" "+this.localName:""));for(var r=[],i=0;i<t.length;i++)r.push(this.coder);return y(e,r,t)}},{key:"decode",value:function(e){var t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&g.throwError("insufficient data length",s.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var n=[],r=0;r<t;r++)n.push(new p(this.coder));return e.coerce(this.name,v(e,n))}}]),n}(l.a),b=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,"bool","bool",e,!1)}return Object(i.a)(n,[{key:"defaultValue",value:function(){return!1}},{key:"encode",value:function(e,t){return e.writeValue(t?1:0)}},{key:"decode",value:function(e){return e.coerce(this.type,!e.readValue().isZero())}}]),n}(l.a),w=n(54),x=n(42),_=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e,i){return Object(r.a)(this,n),t.call(this,e,e,i,!0)}return Object(i.a)(n,[{key:"defaultValue",value:function(){return"0x"}},{key:"encode",value:function(e,t){t=Object(o.arrayify)(t);var n=e.writeValue(t.length);return n+=e.writeBytes(t)}},{key:"decode",value:function(e){return e.readBytes(e.readValue().toNumber(),!0)}}]),n}(l.a),k=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,"bytes",e)}return Object(i.a)(n,[{key:"decode",value:function(e){return e.coerce(this.name,Object(o.hexlify)(Object(w.a)(Object(x.a)(n.prototype),"decode",this).call(this,e)))}}]),n}(_),S=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e,i){var o;Object(r.a)(this,n);var a="bytes"+String(e);return(o=t.call(this,a,a,i,!1)).size=e,o}return Object(i.a)(n,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}},{key:"encode",value:function(e,t){var n=Object(o.arrayify)(t);return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}},{key:"decode",value:function(e){return e.coerce(this.name,Object(o.hexlify)(e.readBytes(this.size)))}}]),n}(l.a),T=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,"null","",e,!1)}return Object(i.a)(n,[{key:"defaultValue",value:function(){return null}},{key:"encode",value:function(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}},{key:"decode",value:function(e){return e.readBytes(0),e.coerce(this.name,null)}}]),n}(l.a),C=n(25),A=n(107),O=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e,i,o){var a;Object(r.a)(this,n);var s=(i?"int":"uint")+8*e;return(a=t.call(this,s,s,o,!1)).size=e,a.signed=i,a}return Object(i.a)(n,[{key:"defaultValue",value:function(){return 0}},{key:"encode",value:function(e,t){var n=C.a.from(t),r=A.a.mask(8*e.wordSize);if(this.signed){var i=r.mask(8*this.size-1);(n.gt(i)||n.lt(i.add(A.c).mul(A.b)))&&this._throwError("value out-of-bounds",t)}else(n.lt(A.f)||n.gt(r.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return n=n.toTwos(8*this.size).mask(8*this.size),this.signed&&(n=n.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(n)}},{key:"decode",value:function(e){var t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}]),n}(l.a),M=n(37),E=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,"string",e)}return Object(i.a)(n,[{key:"defaultValue",value:function(){return""}},{key:"encode",value:function(e,t){return Object(w.a)(Object(x.a)(n.prototype),"encode",this).call(this,e,Object(M.f)(t))}},{key:"decode",value:function(e){return Object(M.h)(Object(w.a)(Object(x.a)(n.prototype),"decode",this).call(this,e))}}]),n}(_),P=function(e){Object(c.a)(n,e);var t=Object(f.a)(n);function n(e,i){var o;Object(r.a)(this,n);var a=!1,s=[];e.forEach((function(e){e.dynamic&&(a=!0),s.push(e.type)}));var u="tuple("+s.join(",")+")";return(o=t.call(this,"tuple",u,i,a)).coders=e,o}return Object(i.a)(n,[{key:"defaultValue",value:function(){var e=[];this.coders.forEach((function(t){e.push(t.defaultValue())}));var t=this.coders.reduce((function(e,t){var n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach((function(n,r){var i=n.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[r]))})),Object.freeze(e)}},{key:"encode",value:function(e,t){return y(e,this.coders,t)}},{key:"decode",value:function(e){return e.coerce(this.name,v(e,this.coders))}}]),n}(l.a),I=n(52),D=new s.Logger(u.a),L=new RegExp(/^bytes([0-9]*)$/),R=new RegExp(/^(u?int)([0-9]*)$/),N=function(){function e(t){Object(r.a)(this,e),D.checkNew(this instanceof e?this.constructor:void 0,e),Object(a.defineReadOnly)(this,"coerceFunc",t||null)}return Object(i.a)(e,[{key:"_getCoder",value:function(e){var t=this;switch(e.baseType){case"address":return new h(e.name);case"bool":return new b(e.name);case"string":return new E(e.name);case"bytes":return new k(e.name);case"array":return new m(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new P((e.components||[]).map((function(e){return t._getCoder(e)})),e.name);case"":return new T(e.name)}var n=e.type.match(R);if(n){var r=parseInt(n[2]||"256");return(0===r||r>256||r%8!==0)&&D.throwArgumentError("invalid "+n[1]+" bit length","param",e),new O(r/8,"int"===n[1],e.name)}if(n=e.type.match(L)){var i=parseInt(n[1]);return(0===i||i>32)&&D.throwArgumentError("invalid bytes length","param",e),new S(i,e.name)}return D.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new l.b(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new l.c(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,n=e.map((function(e){return t._getCoder(I.f.from(e))}));return new P(n,"_").defaultValue()}},{key:"encode",value:function(e,t){var n=this;e.length!==t.length&&D.throwError("types/values length mismatch",s.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var r=e.map((function(e){return n._getCoder(I.f.from(e))})),i=new P(r,"_"),o=this._getWriter();return i.encode(o,t),o.data}},{key:"decode",value:function(e,t,n){var r=this,i=e.map((function(e){return r._getCoder(I.f.from(e))}));return new P(i,"_").decode(this._getReader(Object(o.arrayify)(t),n))}}]),e}(),j=new N},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"decryptCrowdsale",(function(){return w})),n.d(t,"decryptKeystore",(function(){return _.a})),n.d(t,"decryptKeystoreSync",(function(){return _.b})),n.d(t,"encryptKeystore",(function(){return _.c})),n.d(t,"isCrowdsaleWallet",(function(){return x.b})),n.d(t,"isKeystoreWallet",(function(){return x.c})),n.d(t,"getJsonWalletAddress",(function(){return x.a})),n.d(t,"decryptJsonWallet",(function(){return k})),n.d(t,"decryptJsonWalletSync",(function(){return S}));var r=n(11),i=n(13),o=n(16),a=n(17),s=n(73),u=n.n(s),l=n(28),c=n(5),f=n(29),d=n(587),h=n(37),p=n(7),g=n(8),y=n(183),v=n(30),m=new g.Logger(y.a),b=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"isCrowdsaleAccount",value:function(e){return!(!e||!e._isCrowdsaleAccount)}}]),n}(p.Description);function w(e,t){var n=JSON.parse(e);t=Object(v.a)(t);var r=Object(l.getAddress)(Object(v.c)(n,"ethaddr")),i=Object(v.b)(Object(v.c)(n,"encseed"));i&&i.length%16===0||m.throwArgumentError("invalid encseed","json",e);for(var o=Object(c.arrayify)(Object(d.a)(t,t,2e3,32,"sha256")).slice(0,16),a=i.slice(0,16),s=i.slice(16),p=new u.a.ModeOfOperation.cbc(o,a),g=u.a.padding.pkcs7.strip(Object(c.arrayify)(p.decrypt(s))),y="",w=0;w<g.length;w++)y+=String.fromCharCode(g[w]);var x=Object(h.f)(y),_=Object(f.keccak256)(x);return new b({_isCrowdsaleAccount:!0,address:r,privateKey:_})}var x=n(103),_=n(118);function k(e,t,n){if(Object(x.b)(e)){n&&n(0);var r=w(e,t);return n&&n(1),Promise.resolve(r)}return Object(x.c)(e)?Object(_.a)(e,t,n):Promise.reject(new Error("invalid JSON wallet"))}function S(e,t){if(Object(x.b)(e))return w(e,t);if(Object(x.c)(e))return Object(_.b)(e,t);throw new Error("invalid JSON wallet")}},function(e,t,n){"use strict";var r=n(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(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),g=u(n),y=0;y<a.length;++y){var v=a[y];if(!o[v]&&(!r||!r[v])&&(!g||!g[v])&&(!s||!s[v])){var m=d(n,v);try{l(t,v,m)}catch(b){}}}}return t}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(120);function i(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(r.a)(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(42),i=n(121);var o=n(159);function a(e,t,n){return(a=Object(o.a)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Object(i.a)(o,n.prototype),o}).apply(null,arguments)}function s(e){var t="function"===typeof Map?new Map:void 0;return(s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return a(e,arguments,Object(r.a)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Object(i.a)(o,e)})(e)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";n.r(t);var r=n(190);n.d(t,"decode",(function(){return r.a})),n.d(t,"encode",(function(){return r.b}))},function(e,t,n){"use strict";var r=n(456),i=n(197),o=i.encodeText,a=i.decodeText,s=i.concat;function u(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: ".concat(e))}(t=e.exports=function(e,t){if(!t)throw new Error("requires an encoded Uint8Array");var n=u(e),r=n.name,i=n.codeBuf;return function(e,t){u(e).decode(a(t))}(r,t),s([i,t],i.length+t.length)}).encode=function(e,t){var n=u(e),r=o(n.encode(t));return s([n.codeBuf,r],n.codeBuf.length+r.length)},t.decode=function(e){e instanceof Uint8Array&&(e=a(e));var t=e[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase()),u(e[0]).decode(e.substring(1))},t.isEncoded=function(e){if(e instanceof Uint8Array&&(e=a(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return u(e[0]).name}catch(t){return!1}},t.encoding=u,t.encodingFromData=function(e){return e instanceof Uint8Array&&(e=a(e)),u(e[0])};var l=Object.freeze(r.names),c=Object.freeze(r.codes);t.names=l,t.codes=c},function(e,t,n){"use strict";var r=n(148).encoding,i=new TextDecoder("utf8");function o(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";return"utf8"===t||"utf-8"===t?i.decode(e):"ascii"===t?o(e):r(t).encode(e)}},function(e,t,n){"use strict";var r=n(96);e.exports=function(e,t){t||(t=e.reduce((function(e,t){return e+t.length}),0));var n,i=new Uint8Array(t),o=0,a=r(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.set(s,o),o+=s.length}}catch(u){a.e(u)}finally{a.f()}return i}},function(e,t,n){"use strict";var r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,docid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,json:512,messagepack:513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056});e.exports={baseTable:r}},function(e,t,n){"use strict";t.TextEncoder="undefined"!==typeof TextEncoder?TextEncoder:n(237).TextEncoder,t.TextDecoder="undefined"!==typeof TextDecoder?TextDecoder:n(237).TextDecoder},,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.sha256="sha256",e.sha512="sha512"}(r||(r={}))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.r(t),n.d(t,"get",(function(){return i})),n.d(t,"responsive",(function(){return d})),n.d(t,"css",(function(){return h}));var i=function(e,t,n,r,i){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e},o=[40,52,64].map((function(e){return e+"em"})),a={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},s={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},u={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},l={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},c=function(e,t){if("number"!==typeof t||t>=0)return i(e,t,t);var n=Math.abs(t),r=i(e,n,n);return"string"===typeof r?"-"+r:-1*r},f=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var n;return r({},e,((n={})[t]=c,n))}),{}),d=function(e){return function(t){var n={},r=i(t,"breakpoints",o),a=[null].concat(r.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var s in e){var u="function"===typeof e[s]?e[s](t):e[s];if(null!=u)if(Array.isArray(u))for(var l=0;l<u.slice(0,a.length).length;l++){var c=a[l];c?(n[c]=n[c]||{},null!=u[l]&&(n[c][s]=u[l])):n[s]=u[l]}else n[s]=u}return n}},h=function e(t){return function(n){void 0===n&&(n={});var o=r({},a,{},n.theme||n),c={},h="function"===typeof t?t(o):t,p=d(h)(o);for(var g in p){var y=p[g],v="function"===typeof y?y(o):y;if("variant"!==g)if(v&&"object"===typeof v)c[g]=e(v)(o);else{var m=i(s,g,g),b=i(l,m),w=i(o,b,i(o,m,{})),x=i(f,m,i)(w,v,v);if(u[m])for(var _=u[m],k=0;k<_.length;k++)c[_[k]]=x;else c[m]=x}else c=r({},c,{},e(i(o,v))(o))}return c}};t.default=h},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="bignumber/5.1.1"},function(e,t,n){"use strict";function r(){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(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(4),i=n.n(r),o=n(11),a=n(13),s=n(28),u=n(25),l=n(5),c=n(29),f=n(7),d=n(8),h=n(161),p=n(93),g=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},y=new d.Logger(h.a),v=new Uint8Array(32);v.fill(0);var m=u.a.from(-1),b=u.a.from(0),w=u.a.from(1),x=u.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var _=Object(l.hexZeroPad)(w.toHexString(),32),k=Object(l.hexZeroPad)(b.toHexString(),32),S={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},T=["name","version","chainId","verifyingContract","salt"];function C(e){return function(t){return"string"!==typeof t&&y.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var A={name:C("name"),version:C("version"),chainId:function(e){try{return u.a.from(e).toString()}catch(t){}return y.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Object(s.getAddress)(e).toLowerCase()}catch(t){}return y.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=Object(l.arrayify)(e);if(32!==t.length)throw new Error("bad length");return Object(l.hexlify)(t)}catch(n){}return y.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function O(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var n=""===t[1],r=parseInt(t[2]||"256");(r%8!==0||r>256||t[2]&&t[2]!==String(r))&&y.throwArgumentError("invalid numeric width","type",e);var i=x.mask(n?r-1:r),o=n?i.add(w).mul(m):b;return function(t){var n=u.a.from(t);return(n.lt(o)||n.gt(i))&&y.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),Object(l.hexZeroPad)(n.toTwos(256).toHexString(),32)}}var a=e.match(/^bytes(\d+)$/);if(a){var f=parseInt(a[1]);return(0===f||f>32||a[1]!==String(f))&&y.throwArgumentError("invalid bytes width","type",e),function(t){return Object(l.arrayify)(t).length!==f&&y.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=Object(l.arrayify)(e),n=t.length%32;return n?Object(l.hexConcat)([t,v.slice(n)]):Object(l.hexlify)(t)}(t)}}switch(e){case"address":return function(e){return Object(l.hexZeroPad)(Object(s.getAddress)(e),32)};case"bool":return function(e){return e?_:k};case"bytes":return function(e){return Object(c.keccak256)(e)};case"string":return function(e){return Object(p.a)(e)}}return null}function M(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var E=function(){function e(t){Object(o.a)(this,e),Object(f.defineReadOnly)(this,"types",Object.freeze(Object(f.deepCopy)(t))),Object(f.defineReadOnly)(this,"_encoderCache",{}),Object(f.defineReadOnly)(this,"_types",{});var n={},r={},i={};Object.keys(t).forEach((function(e){n[e]={},r[e]=[],i[e]={}}));var a=function(e){var i={};t[e].forEach((function(o){i[o.name]&&y.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o.name)," in ").concat(JSON.stringify(e)),"types",t),i[o.name]=!0;var a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===e&&y.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),O(a)||(r[a]||y.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",t),r[a].push(e),n[e][a]=!0)}))};for(var s in t)a(s);var u=Object.keys(r).filter((function(e){return 0===r[e].length}));for(var l in 0===u.length?y.throwArgumentError("missing primary type","types",t):u.length>1&&y.throwArgumentError("ambiguous primary types or unused types: ".concat(u.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),Object(f.defineReadOnly)(this,"primaryType",u[0]),function e(o,a){a[o]&&y.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),a[o]=!0,Object.keys(n[o]).forEach((function(t){r[t]&&(e(t,a),Object.keys(a).forEach((function(e){i[e][t]=!0})))})),delete a[o]}(this.primaryType,{}),i){var c=Object.keys(i[l]);c.sort(),this._types[l]=M(l,t[l])+c.map((function(e){return M(e,t[e])})).join("")}}return Object(a.a)(e,[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,n=O(e);if(n)return n;var r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){var i=r[1],o=this.getEncoder(i),a=parseInt(r[3]);return function(e){a>=0&&e.length!==a&&y.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var n=e.map(o);return t._types[i]&&(n=n.map(c.keccak256)),Object(c.keccak256)(Object(l.hexConcat)(n))}}var s=this.types[e];if(s){var u=Object(p.a)(this._types[e]);return function(e){var n=s.map((function(n){var r=n.name,i=n.type,o=t.getEncoder(i)(e[r]);return t._types[i]?Object(c.keccak256)(o):o}));return n.unshift(u),Object(l.hexConcat)(n)}}return y.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||y.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return Object(c.keccak256)(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,n){var r=this;if(O(e))return n(e,t);var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var o=i[1],a=parseInt(i[3]);return a>=0&&t.length!==a&&y.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return r._visit(o,e,n)}))}var s=this.types[e];return s?s.reduce((function(e,i){var o=i.name,a=i.type;return e[o]=r._visit(a,t[o],n),e}),{}):y.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}],[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,n,r){return e.from(n).hashStruct(t,r)}},{key:"hashDomain",value:function(t){var n=[];for(var r in t){var i=S[r];i||y.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(r)),"domain",t),n.push({name:r,type:i})}return n.sort((function(e,t){return T.indexOf(e.name)-T.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:n},t)}},{key:"encode",value:function(t,n,r){return Object(l.hexConcat)(["0x1901",e.hashDomain(t),e.from(n).hash(r)])}},{key:"hash",value:function(t,n,r){return Object(c.keccak256)(e.encode(t,n,r))}},{key:"resolveNames",value:function(t,n,r,o){return g(this,void 0,void 0,i.a.mark((function a(){var s,u,c;return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=Object(f.shallowCopy)(t),s={},t.verifyingContract&&!Object(l.isHexString)(t.verifyingContract,20)&&(s[t.verifyingContract]="0x"),(u=e.from(n)).visit(r,(function(e,t){return"address"!==e||Object(l.isHexString)(t,20)||(s[t]="0x"),t})),a.t0=i.a.keys(s);case 6:if((a.t1=a.t0()).done){a.next=13;break}return c=a.t1.value,a.next=10,o(c);case 10:s[c]=a.sent,a.next=6;break;case 13:return t.verifyingContract&&s[t.verifyingContract]&&(t.verifyingContract=s[t.verifyingContract]),r=u.visit(r,(function(e,t){return"address"===e&&s[t]?s[t]:t})),a.abrupt("return",{domain:t,value:r});case 16:case"end":return a.stop()}}),a)})))}},{key:"getPayload",value:function(t,n,r){e.hashDomain(t);var i={},o=[];T.forEach((function(e){var n=t[e];null!=n&&(i[e]=A[e](n),o.push({name:e,type:S[e]}))}));var a=e.from(n),s=Object(f.shallowCopy)(n);return s.EIP712Domain?y.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):s.EIP712Domain=o,a.encode(r),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(r,(function(e,t){if(e.match(/^bytes(\d*)/))return Object(l.hexlify)(Object(l.arrayify)(t));if(e.match(/^u?int/))return u.a.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!==typeof t&&y.throwArgumentError("invalid string","value",t),t}return y.throwArgumentError("unsupported type","type",e)}))}}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="hash/5.1.0"},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(37);function i(e,t){t||(t=function(e){return[parseInt(e,16)]});var n=0,r={};return e.split(",").forEach((function(e){var i=e.split(":");n+=parseInt(i[0],16),r[n]=t(i[1])})),r}function o(e){var t=0;return e.split(",").map((function(e){var n=e.split("-");return 1===n.length?n[1]="0":""===n[1]&&(n[1]="1"),{l:t+parseInt(n[0],16),h:t=parseInt(n[1],16)}}))}function a(e,t){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(e>=(n+=i.l)&&e<=n+i.h&&(e-n)%(i.d||1)===0){if(i.e&&-1!==i.e.indexOf(e-n))continue;return i}}return null}var s=o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),u="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),l=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],c=i("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),f=i("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),d=i("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!==0)throw new Error("bad data");for(var t=[],n=0;n<e.length;n+=4)t.push(parseInt(e.substring(n,n+4),16));return t})),h=o("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function p(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t,n=Object(r.g)(e);t=n.map((function(e){if(u.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];var t=function(e){var t=a(e,l);if(t)return[e+t.s];var n=c[e];if(n)return n;var r=f[e];if(r)return[e+r[0]];var i=d[e];return i||null}(e);return t||[e]})),n=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(n=Object(r.g)(Object(r.e)(n),r.a.NFKC)).forEach((function(e){if(a(e,h))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),n.forEach((function(e){if(a(e,s))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var i=Object(r.e)(n);if("-"===i.substring(0,1)||"--"===i.substring(2,4)||"-"===i.substring(i.length-1))throw new Error("invalid hyphen");if(i.length>63)throw new Error("too long");return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="0x0000000000000000000000000000000000000000000000000000000000000000"},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(69);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){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(e){return!1}}function u(e,t,n){return(u=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}).apply(null,arguments)}function l(e){var t="function"===typeof Map?new Map:void 0;return(l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var f=function(e){function t(){var t;return(t=e.call(this)||this).name=t.constructor.name,t.message="The user rejected the request.",t}return i(t,e),t}(l(Error));function d(e){var t=e.supportedChainIds,n=e.rpc;return t||(n?Object.keys(n).map((function(e){return Number(e)})):void 0)}var h=function(e){function t(t){var n;return(n=e.call(this,{supportedChainIds:d(t)})||this).config=t,n.handleChainChanged=n.handleChainChanged.bind(c(n)),n.handleAccountsChanged=n.handleAccountsChanged.bind(c(n)),n.handleDisconnect=n.handleDisconnect.bind(c(n)),n}i(t,e);var r=t.prototype;return r.handleChainChanged=function(e){this.emitUpdate({chainId:e})},r.handleAccountsChanged=function(e){this.emitUpdate({account:e[0]})},r.handleDisconnect=function(){this.emitDeactivate(),this.walletConnectProvider&&(this.walletConnectProvider.stop(),this.walletConnectProvider.removeListener("chainChanged",this.handleChainChanged),this.walletConnectProvider.removeListener("accountsChanged",this.handleAccountsChanged),this.walletConnectProvider=void 0),this.emitDeactivate()},r.activate=function(){try{var e=this,t=function(){function t(){return Promise.resolve(e.walletConnectProvider.enable().then((function(e){return e[0]})).catch((function(e){if("User closed modal"===e.message)throw new f;throw e}))).then((function(t){return e.walletConnectProvider.on("disconnect",e.handleDisconnect),e.walletConnectProvider.on("chainChanged",e.handleChainChanged),e.walletConnectProvider.on("accountsChanged",e.handleAccountsChanged),{provider:e.walletConnectProvider,account:t}}))}var n=function(){if(!e.walletConnectProvider.wc.connected)return Promise.resolve(e.walletConnectProvider.wc.createSession({chainId:e.supportedChainIds&&e.supportedChainIds.length>0?e.supportedChainIds[0]:1})).then((function(){e.emit("URI_AVAILABLE",e.walletConnectProvider.wc.uri)}))}();return n&&n.then?n.then(t):t()},r=function(){if(!e.walletConnectProvider)return Promise.resolve(Promise.all([n.e(0),n.e(5),n.e(8)]).then(n.t.bind(null,588,7)).then((function(e){var t;return null!=(t=null==e?void 0:e.default)?t:e}))).then((function(t){e.walletConnectProvider=new t(e.config)}))}();return Promise.resolve(r&&r.then?r.then(t):t())}catch(i){return Promise.reject(i)}},r.getProvider=function(){try{return Promise.resolve(this.walletConnectProvider)}catch(e){return Promise.reject(e)}},r.getChainId=function(){try{return Promise.resolve(this.walletConnectProvider.send("eth_chainId"))}catch(e){return Promise.reject(e)}},r.getAccount=function(){try{return Promise.resolve(this.walletConnectProvider.send("eth_accounts").then((function(e){return e[0]})))}catch(e){return Promise.reject(e)}},r.deactivate=function(){this.walletConnectProvider&&(this.walletConnectProvider.stop(),this.walletConnectProvider.removeListener("disconnect",this.handleDisconnect),this.walletConnectProvider.removeListener("chainChanged",this.handleChainChanged),this.walletConnectProvider.removeListener("accountsChanged",this.handleAccountsChanged))},r.close=function(){try{var e;return Promise.resolve(null==(e=this.walletConnectProvider)?void 0:e.close()).then((function(){}))}catch(t){return Promise.reject(t)}},t}(r.a)},,,,,,,,,,,,,,function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){(function(e,n){var r="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,l=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[r]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[o]=p["[object RegExp]"]=p[a]=p["[object String]"]=p["[object WeakMap]"]=!1;var g="object"==typeof e&&e&&e.Object===Object&&e,y="object"==typeof self&&self&&self.Object===Object&&self,v=g||y||Function("return this")(),m=t&&!t.nodeType&&t,b=m&&"object"==typeof n&&n&&!n.nodeType&&n,w=b&&b.exports===m&&g.process,x=function(){try{return w&&w.binding("util")}catch(e){}}(),_=x&&x.isTypedArray;function k(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function S(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function T(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function C(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function A(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function O(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var M,E,P=Array.prototype,I=Function.prototype,D=Object.prototype,L=v["__core-js_shared__"],R=function(){var e=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),N=I.toString,j=D.hasOwnProperty,B=D.toString,F=RegExp("^"+N.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=v.Symbol,V=v.Uint8Array,H=D.propertyIsEnumerable,U=P.splice,G=z?z.isConcatSpreadable:void 0,J=(M=Object.keys,E=Object,function(e){return M(E(e))}),X=Ae(v,"DataView"),W=Ae(v,"Map"),q=Ae(v,"Promise"),Z=Ae(v,"Set"),K=Ae(v,"WeakMap"),Y=Ae(Object,"create"),$=Ne(X),Q=Ne(W),ee=Ne(q),te=Ne(Z),ne=Ne(K),re=z?z.prototype:void 0,ie=re?re.valueOf:void 0,oe=re?re.toString:void 0;function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ue(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function le(e){var t=-1,n=e?e.length:0;for(this.__data__=new ue;++t<n;)this.add(e[t])}function ce(e){this.__data__=new se(e)}function fe(e,t){var n=ze(e)||Fe(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!j.call(e,o)||i&&("length"==o||Ee(o,r))||n.push(o);return n}function de(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1}ae.prototype.clear=function(){this.__data__=Y?Y(null):{}},ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ae.prototype.get=function(e){var t=this.__data__;if(Y){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return j.call(t,e)?t[e]:void 0},ae.prototype.has=function(e){var t=this.__data__;return Y?void 0!==t[e]:j.call(t,e)},ae.prototype.set=function(e,t){return this.__data__[e]=Y&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(e){var t=this.__data__,n=de(t,e);return!(n<0)&&(n==t.length-1?t.pop():U.call(t,n,1),!0)},se.prototype.get=function(e){var t=this.__data__,n=de(t,e);return n<0?void 0:t[n][1]},se.prototype.has=function(e){return de(this.__data__,e)>-1},se.prototype.set=function(e,t){var n=this.__data__,r=de(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ue.prototype.clear=function(){this.__data__={hash:new ae,map:new(W||se),string:new ae}},ue.prototype.delete=function(e){return Ce(this,e).delete(e)},ue.prototype.get=function(e){return Ce(this,e).get(e)},ue.prototype.has=function(e){return Ce(this,e).has(e)},ue.prototype.set=function(e,t){return Ce(this,e).set(e,t),this},le.prototype.add=le.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},le.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.clear=function(){this.__data__=new se},ce.prototype.delete=function(e){return this.__data__.delete(e)},ce.prototype.get=function(e){return this.__data__.get(e)},ce.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this;n=this.__data__=new ue(r)}return n.set(e,t),this};var he,pe,ge=(he=function(e,t){return e&&ye(e,t,qe)},function(e,t){if(null==e)return e;if(!Ve(e))return he(e,t);for(var n=e.length,r=pe?n:-1,i=Object(e);(pe?r--:++r<n)&&!1!==t(i[r],r,i););return e});var ye=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}();function ve(e,t){for(var n=0,r=(t=Pe(t,e)?[t]:Se(t)).length;null!=e&&n<r;)e=e[Re(t[n++])];return n&&n==r?e:void 0}function me(e,t){return null!=e&&t in Object(e)}function be(e,t,n,s,u){return e===t||(null==e||null==t||!Ge(e)&&!Je(t)?e!==e&&t!==t:function(e,t,n,s,u,l){var c=ze(e),f=ze(t),d="[object Array]",h="[object Array]";c||(d=(d=Oe(e))==r?o:d);f||(h=(h=Oe(t))==r?o:h);var p=d==o&&!C(e),g=h==o&&!C(t),y=d==h;if(y&&!p)return l||(l=new ce),c||We(e)?Te(e,t,n,s,u,l):function(e,t,n,r,o,s,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new V(e),new V(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Be(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var l=A;case a:var c=2&s;if(l||(l=O),e.size!=t.size&&!c)return!1;var f=u.get(e);if(f)return f==t;s|=1,u.set(e,t);var d=Te(l(e),l(t),r,o,s,u);return u.delete(e),d;case"[object Symbol]":if(ie)return ie.call(e)==ie.call(t)}return!1}(e,t,d,n,s,u,l);if(!(2&u)){var v=p&&j.call(e,"__wrapped__"),m=g&&j.call(t,"__wrapped__");if(v||m){var b=v?e.value():e,w=m?t.value():t;return l||(l=new ce),n(b,w,s,u,l)}}if(!y)return!1;return l||(l=new ce),function(e,t,n,r,i,o){var a=2&i,s=qe(e),u=s.length,l=qe(t).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var f=s[c];if(!(a?f in t:j.call(t,f)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);var p=a;for(;++c<u;){f=s[c];var g=e[f],y=t[f];if(r)var v=a?r(y,g,f,t,e,o):r(g,y,f,e,t,o);if(!(void 0===v?g===y||n(g,y,r,i,o):v)){h=!1;break}p||(p="constructor"==f)}if(h&&!p){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,s,u,l)}(e,t,be,n,s,u))}function we(e){return!(!Ge(e)||function(e){return!!R&&R in e}(e))&&(He(e)||C(e)?F:d).test(Ne(e))}function xe(e){return"function"==typeof e?e:null==e?Ze:"object"==typeof e?ze(e)?function(e,t){if(Pe(e)&&Ie(t))return De(Re(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:ve(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Pe(t,e)?[t]:Se(t);var r,i=-1,o=t.length;for(;++i<o;){var a=Re(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;return!!(o=e?e.length:0)&&Ue(o)&&Ee(a,o)&&(ze(e)||Fe(e))}(e,t,me)}(n,e):be(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=qe(e),n=t.length;for(;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ie(i)]}return t}(e);if(1==t.length&&t[0][2])return De(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var u=(s=n[i])[0],l=e[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in e))return!1}else{var f=new ce;if(r)var d=r(l,c,u,e,t,f);if(!(void 0===d?be(c,l,r,3,f):d))return!1}}return!0}(n,e,t)}}(e):function(e){return Pe(e)?(t=Re(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return ve(t,e)}}(e);var t}(e)}function _e(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||D;return e===n}(e))return J(e);var t=[];for(var n in Object(e))j.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ke(e,t){var n=-1,r=Ve(e)?Array(e.length):[];return ge(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function Se(e){return ze(e)?e:Le(e)}function Te(e,t,n,r,i,o){var a=2&i,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,f=!0,d=1&i?new le:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var h=e[c],p=t[c];if(r)var g=a?r(p,h,c,t,e,o):r(h,p,c,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!T(t,(function(e,t){if(!d.has(t)&&(h===e||n(h,e,r,i,o)))return d.add(t)}))){f=!1;break}}else if(h!==p&&!n(h,p,r,i,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Ce(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return we(n)?n:void 0}var Oe=function(e){return B.call(e)};function Me(e){return ze(e)||Fe(e)||!!(G&&e&&e[G])}function Ee(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||h.test(e))&&e>-1&&e%1==0&&e<t}function Pe(e,t){if(ze(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xe(e))||(u.test(e)||!s.test(e)||null!=t&&e in Object(t))}function Ie(e){return e===e&&!Ge(e)}function De(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(X&&"[object DataView]"!=Oe(new X(new ArrayBuffer(1)))||W&&Oe(new W)!=i||q&&"[object Promise]"!=Oe(q.resolve())||Z&&Oe(new Z)!=a||K&&"[object WeakMap]"!=Oe(new K))&&(Oe=function(e){var t=B.call(e),n=t==o?e.constructor:void 0,r=n?Ne(n):void 0;if(r)switch(r){case $:return"[object DataView]";case Q:return i;case ee:return"[object Promise]";case te:return a;case ne:return"[object WeakMap]"}return t});var Le=je((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Xe(e))return oe?oe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return l.test(e)&&n.push(""),e.replace(c,(function(e,t,r,i){n.push(r?i.replace(f,"$1"):t||e)})),n}));function Re(e){if("string"==typeof e||Xe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ne(e){if(null!=e){try{return N.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function je(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(je.Cache||ue),n}function Be(e,t){return e===t||e!==e&&t!==t}function Fe(e){return function(e){return Je(e)&&Ve(e)}(e)&&j.call(e,"callee")&&(!H.call(e,"callee")||B.call(e)==r)}je.Cache=ue;var ze=Array.isArray;function Ve(e){return null!=e&&Ue(e.length)&&!He(e)}function He(e){var t=Ge(e)?B.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Ue(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Je(e){return!!e&&"object"==typeof e}function Xe(e){return"symbol"==typeof e||Je(e)&&"[object Symbol]"==B.call(e)}var We=_?function(e){return function(t){return e(t)}}(_):function(e){return Je(e)&&Ue(e.length)&&!!p[B.call(e)]};function qe(e){return Ve(e)?fe(e):_e(e)}function Ze(e){return e}n.exports=function(e,t){return function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=Me),o||(o=[]);++a<s;){var u=t[a];n>0&&r(u)?n>1?e(u,n-1,r,i,o):S(o,u):i||(o[o.length]=u)}return o}(function(e,t){return(ze(e)?k:ke)(e,xe(t))}(e,t),1)}}).call(this,n(79),n(189)(e))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="json-wallets/5.1.0"},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(64),a=n(117);t.a=function(e){var t=e.children,n=e.type,s=void 0===n?"reach-portal":n,u=Object(r.useRef)(null),l=Object(r.useRef)(null),c=Object(r.useState)()[1];return Object(o.f)((function(){if(u.current){var e=u.current.ownerDocument;return l.current=null===e||void 0===e?void 0:e.createElement(s),e.body.appendChild(l.current),c({}),function(){l.current&&l.current.ownerDocument&&l.current.ownerDocument.body.removeChild(l.current)}}}),[s]),l.current?Object(a.createPortal)(t,l.current):i.a.createElement("span",{ref:u})}},function(e,t,n){"use strict";var r=n(426),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,l=!1;t||(t={}),t.debug;try{if(o=r(),a=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),"undefined"===typeof n.clipboardData){window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),a.selectNodeContents(u),s.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(c){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(c){n=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(n,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(a):s.removeAllRanges()),u&&document.body.removeChild(u),o()}return l}},function(e,t,n){"use strict";(function(t){!function(n){function r(e){var t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=1779033703,r=3144134277,i=1013904242,o=2773480762,a=1359893119,s=2600822924,u=528734635,l=1541459225,c=new Uint32Array(64);function f(e){for(var f=0,d=e.length;d>=64;){var h=n,p=r,g=i,y=o,v=a,m=s,b=u,w=l,x=void 0,_=void 0,k=void 0,S=void 0,T=void 0;for(_=0;_<16;_++)k=f+4*_,c[_]=(255&e[k])<<24|(255&e[k+1])<<16|(255&e[k+2])<<8|255&e[k+3];for(_=16;_<64;_++)S=((x=c[_-2])>>>17|x<<15)^(x>>>19|x<<13)^x>>>10,T=((x=c[_-15])>>>7|x<<25)^(x>>>18|x<<14)^x>>>3,c[_]=(S+c[_-7]|0)+(T+c[_-16]|0)|0;for(_=0;_<64;_++)S=(((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&m^~v&b)|0)+(w+(t[_]+c[_]|0)|0)|0,T=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&p^h&g^p&g)|0,w=b,b=m,m=v,v=y+S|0,y=g,g=p,p=h,h=S+T|0;n=n+h|0,r=r+p|0,i=i+g|0,o=o+y|0,a=a+v|0,s=s+m|0,u=u+b|0,l=l+w|0,f+=64,d-=64}}f(e);var d,h=e.length%64,p=e.length/536870912|0,g=e.length<<3,y=h<56?56:120,v=e.slice(e.length-h,e.length);for(v.push(128),d=h+1;d<y;d++)v.push(0);return v.push(p>>>24&255),v.push(p>>>16&255),v.push(p>>>8&255),v.push(p>>>0&255),v.push(g>>>24&255),v.push(g>>>16&255),v.push(g>>>8&255),v.push(g>>>0&255),f(v),[n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,l>>>24&255,l>>>16&255,l>>>8&255,l>>>0&255]}function i(e,t,n){e=e.length<=64?e:r(e);var i,o=64+t.length+4,a=new Array(o),s=new Array(64),u=[];for(i=0;i<64;i++)a[i]=54;for(i=0;i<e.length;i++)a[i]^=e[i];for(i=0;i<t.length;i++)a[64+i]=t[i];for(i=o-4;i<o;i++)a[i]=0;for(i=0;i<64;i++)s[i]=92;for(i=0;i<e.length;i++)s[i]^=e[i];function l(){for(var e=o-1;e>=o-4;e--){if(a[e]++,a[e]<=255)return;a[e]=0}}for(;n>=32;)l(),u=u.concat(r(s.concat(r(a)))),n-=32;return n>0&&(l(),u=u.concat(r(s.concat(r(a))).slice(0,n))),u}function o(e,t,n,r,i){var o;for(l(e,16*(2*n-1),i,0,16),o=0;o<2*n;o++)u(e,16*o,i,16),s(i,r),l(i,0,e,t+16*o,16);for(o=0;o<n;o++)l(e,t+2*o*16,e,16*o,16);for(o=0;o<n;o++)l(e,t+16*(2*o+1),e,16*(o+n),16)}function a(e,t){return e<<t|e>>>32-t}function s(e,t){l(e,0,t,0,16);for(var n=8;n>0;n-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(var r=0;r<16;++r)e[r]+=t[r]}function u(e,t,n,r){for(var i=0;i<r;i++)n[i]^=e[t+i]}function l(e,t,n,r,i){for(;i--;)n[r++]=e[t++]}function c(e){if(!e||"number"!==typeof e.length)return!1;for(var t=0;t<e.length;t++){var n=e[t];if("number"!==typeof n||n%1||n<0||n>=256)return!1}return!0}function f(e,t){if("number"!==typeof e||e%1)throw new Error("invalid "+t);return e}function d(e,n,r,a,s,d,h){if(r=f(r,"N"),a=f(a,"r"),s=f(s,"p"),d=f(d,"dkLen"),0===r||0!==(r&r-1))throw new Error("N must be power of 2");if(r>2147483647/128/a)throw new Error("N too large");if(a>2147483647/128/s)throw new Error("r too large");if(!c(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!c(n))throw new Error("salt must be an array or buffer");n=Array.prototype.slice.call(n);for(var p=i(e,n,128*s*a),g=new Uint32Array(32*s*a),y=0;y<g.length;y++){var v=4*y;g[y]=(255&p[v+3])<<24|(255&p[v+2])<<16|(255&p[v+1])<<8|(255&p[v+0])<<0}var m,b,w=new Uint32Array(64*a),x=new Uint32Array(32*a*r),_=32*a,k=new Uint32Array(16),S=new Uint32Array(16),T=s*r*2,C=0,A=null,O=!1,M=0,E=0,P=h?parseInt(1e3/a):4294967295,I="undefined"!==typeof t?t:setTimeout,D=function t(){if(O)return h(new Error("cancelled"),C/T);var n;switch(M){case 0:l(g,b=32*E*a,w,0,_),M=1,m=0;case 1:(n=r-m)>P&&(n=P);for(var c=0;c<n;c++)l(w,0,x,(m+c)*_,_),o(w,_,a,k,S);if(m+=n,C+=n,h){var f=parseInt(1e3*C/T);if(f!==A){if(O=h(null,C/T))break;A=f}}if(m<r)break;m=0,M=2;case 2:(n=r-m)>P&&(n=P);for(var y=0;y<n;y++){var v=w[16*(2*a-1)]&r-1;u(x,v*_,w,_),o(w,_,a,k,S)}if(m+=n,C+=n,h){var D=parseInt(1e3*C/T);if(D!==A){if(O=h(null,C/T))break;A=D}}if(m<r)break;if(l(w,0,g,b,_),++E<s){M=0;break}p=[];for(var L=0;L<g.length;L++)p.push(g[L]>>0&255),p.push(g[L]>>8&255),p.push(g[L]>>16&255),p.push(g[L]>>24&255);var R=i(e,p,d);return h&&h(null,1,R),R}h&&I(t)};if(!h)for(;;){var L=D();if(void 0!=L)return L}D()}var h={scrypt:function(e,t,n,r,i,o,a){return new Promise((function(s,u){var l=0;a&&a(0),d(e,t,n,r,i,o,(function(e,t,n){if(e)u(e);else if(n)a&&1!==l&&a(1),s(new Uint8Array(n));else if(a&&t!==l)return l=t,a(t)}))}))},syncScrypt:function(e,t,n,r,i,o){return new Uint8Array(d(e,t,n,r,i,o))}};e.exports=h}()}).call(this,n(337).setImmediate)},function(e,t,n){"use strict";var r=n(239),i=n(261),o=n(471),a=n(472),s=n(262),u=n(479);var l=n(480),c=n(484);e.exports=r({addPrefix:function(e,t){var n;if(e instanceof Uint8Array)n=s.varintUint8ArrayEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");n=a[e]}return u([n,t],n.length+t.length)},rmPrefix:function(e){return i.decode(e),e.slice(i.decode.bytes)},getCodec:function(e){var t=i.decode(e),n=o.get(t);if(void 0===n)throw new Error("Code ".concat(t," not found"));return n},getName:function(e){return o.get(e)},getNumber:function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return i.decode(t)},getCode:function(e){return i.decode(e)},getCodeVarint:function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},getVarint:function(e){return i.encode(e)},print:c},l)},function(e,t,n){"use strict";var r=n(485),i=n(489),o=n(493).names,a=n(149),s=n(199),u=n(150),l={};for(var c in o){var f=c;l[o[f]]=f}function d(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");var t=i.decode(e);if(!g(t))throw new Error("multihash unknown function code: 0x".concat(t.toString(16)));e=e.slice(i.decode.bytes);var n=i.decode(e);if(n<0)throw new Error("multihash invalid length: ".concat(n));if((e=e.slice(i.decode.bytes)).length!==n)throw new Error("multihash length inconsistent: 0x".concat(a(e,"base16")));return{code:t,name:l[t],length:n,digest:e}}function h(e){var t=e;if("string"===typeof e){if(void 0===o[e])throw new Error("Unrecognized hash function named: ".concat(e));t=o[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: ".concat(t));if(void 0===l[t]&&!p(t))throw new Error("Unrecognized function code: ".concat(t));return t}function p(e){return e>0&&e<16}function g(e){return!!p(e)||!!l[e]}function y(e){d(e)}e.exports={names:o,codes:Object.freeze(l),toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(e,"base16")},fromHexString:function(e){return s(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(r.encode("base58btc",e)).slice(1)},fromB58String:function(e){var t=e instanceof Uint8Array?a(e):e;return r.decode("z"+t)},decode:d,encode:function(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");var r=h(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");var o=i.encode(r),a=i.encode(n);return u([o,a,e],o.length+a.length+e.length)},coerceCode:h,isAppCode:p,validate:y,prefix:function(e){return y(e),e.subarray(0,2)},isValidCode:g}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(5);function i(e){e=atob(e);for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n));return Object(r.arrayify)(t)}function o(e){e=Object(r.arrayify)(e);for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(163),i=n(5),o=n(37);function a(e){var t=Object(o.f)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Object(i.hexlify)(Object(i.concat)([t,r.a]).slice(0,32))}function s(e){var t=Object(i.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var n=31;0===t[n-1];)n--;return Object(o.h)(t.slice(0,n))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(5),i=n(29),o=n(37),a="\x19Ethereum Signed Message:\n";function s(e){return"string"===typeof e&&(e=Object(o.f)(e)),Object(i.keccak256)(Object(r.concat)([Object(o.f)(a),Object(o.f)(String(e.length)),e]))}},function(e,t,n){"use strict";var r=function(){};e.exports=r},,function(e,t,n){"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var r=0;r<e.length;r++){var i=e.charAt(r),o=i.charCodeAt(0);if(255!==t[o])throw new TypeError(i+" is ambiguous");t[o]=r}var a=e.length,s=e.charAt(0),u=Math.log(a)/Math.log(256),l=Math.log(256)/Math.log(a);function c(e){if("string"!==typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var n=0;if(" "!==e[n]){for(var r=0,i=0;e[n]===s;)r++,n++;for(var o=(e.length-n)*u+1>>>0,l=new Uint8Array(o);e[n];){var c=t[e.charCodeAt(n)];if(255===c)return;for(var f=0,d=o-1;(0!==c||f<i)&&-1!==d;d--,f++)c+=a*l[d]>>>0,l[d]=c%256>>>0,c=c/256>>>0;if(0!==c)throw new Error("Non-zero carry");i=f,n++}if(" "!==e[n]){for(var h=o-i;h!==o&&0===l[h];)h++;for(var p=new Uint8Array(r+(o-h)),g=r;h!==o;)p[g++]=l[h++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*l+1>>>0,c=new Uint8Array(u);i!==o;){for(var f=t[i],d=0,h=u-1;(0!==f||d<r)&&-1!==h;h--,d++)f+=256*c[h]>>>0,c[h]=f%a>>>0,f=f/a>>>0;if(0!==f)throw new Error("Non-zero carry");r=d,i++}for(var p=u-r;p!==u&&0===c[p];)p++;for(var g=s.repeat(n);p<u;++p)g+=e.charAt(c[p]);return g},decodeUnsafe:c,decode:function(e){var t=c(e);if(t)return t;throw new Error("Non-base"+a+" character")}}}},function(e,t,n){"use strict";var r=n(96),i=new TextDecoder,o=new TextEncoder;e.exports={decodeText:function(e){return i.decode(e)},encodeText:function(e){return o.encode(e)},concat:function(e,t){var n,i=new Uint8Array(t),o=0,a=r(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.set(s,o),o+=s.length}}catch(u){a.e(u)}finally{a.f()}return i}}},function(e,t,n){e.exports={encode:n(459),decode:n(460),encodingLength:n(461)}},function(e,t,n){"use strict";var r=n(148).encoding,i=new TextEncoder;function o(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";return"utf8"===t||"utf-8"===t?i.encode(e):"ascii"===t?o(e):r(t).decode(e)}},function(e,t,n){"use strict";var r=n(96),i=n(152),o=i.TextEncoder,a=new(0,i.TextDecoder),s=new o;e.exports={decodeText:function(e){return a.decode(e)},encodeText:function(e){return s.encode(e)},concat:function(e,t){var n,i=new Uint8Array(t),o=0,a=r(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.set(s,o),o+=s.length}}catch(u){a.e(u)}finally{a.f()}return i}}},function(e,t,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(C){s=null}var u=function(){throw new o},l=s?function(){try{return u}catch(e){try{return s(arguments,"callee").get}catch(t){return u}}}():u,c=n(496)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"===typeof Uint8Array?void 0:f(Uint8Array),p={"%AggregateError%":"undefined"===typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":c?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"===typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"===typeof JSON?JSON:void 0,"%Map%":"undefined"===typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&c?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?void 0:Promise,"%Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&c?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?f(""[Symbol.iterator]()):void 0,"%Symbol%":c?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(202),v=n(499),m=y.call(Function.call,Array.prototype.concat),b=y.call(Function.apply,Array.prototype.splice),w=y.call(Function.call,String.prototype.replace),x=y.call(Function.call,String.prototype.slice),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,S=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return w(e,_,(function(e,t,n,r){i[i.length]=n?w(r,k,"$1"):t||e})),i},T=function(e,t){var n,i=e;if(v(g,i)&&(i="%"+(n=g[i])[0]+"%"),v(p,i)){var s=p[i];if(s===d&&(s=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=f(i.prototype))}return p[t]=n,n}(i)),"undefined"===typeof s&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new o('"allowMissing" argument must be a boolean');var n=S(e),i=n.length>0?n[0]:"",a=T("%"+i+"%",t),u=a.name,l=a.value,c=!1,f=a.alias;f&&(i=f[0],b(n,m([0,1],f)));for(var d=1,h=!0;d<n.length;d+=1){var g=n[d],y=x(g,0,1),w=x(g,-1);if(('"'===y||"'"===y||"`"===y||'"'===w||"'"===w||"`"===w)&&y!==w)throw new r("property names with quotes must have matching quotes");if("constructor"!==g&&h||(c=!0),v(p,u="%"+(i+="."+g)+"%"))l=p[u];else if(null!=l){if(!(g in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var _=s(l,g);l=(h=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:l[g]}else h=v(l,g),l=l[g];h&&!c&&(p[u]=l)}}return l}},function(e,t,n){"use strict";var r=n(498);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:a}},function(e,t,n){"use strict";var r=n(506),i=n(205),o=n(115),a=n(267),s=n(508);function u(e,t,n){var r=this._refs[n];if("string"==typeof r){if(!this._refs[r])return u.call(this,e,t,r);r=this._refs[r]}if((r=r||this._schemas[n])instanceof a)return p(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var i,o,s,c=l.call(this,t,n);return c&&(i=c.schema,t=c.root,s=c.baseId),i instanceof a?o=i.validate||e.call(this,i.schema,t,void 0,s):void 0!==i&&(o=p(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,s)),o}function l(e,t){var n=r.parse(t),i=y(n),o=g(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==o){var s=m(i),u=this._refs[s];if("string"==typeof u)return c.call(this,e,u,n);if(u instanceof a)u.validate||this._compile(u),e=u;else{if(!((u=this._schemas[s])instanceof a))return;if(u.validate||this._compile(u),s==m(t))return{schema:u,root:e,baseId:o};e=u}if(!e.schema)return;o=g(this._getId(e.schema))}return d.call(this,n,o,e.schema,e)}function c(e,t,n){var r=l.call(this,e,t);if(r){var i=r.schema,o=r.baseId;e=r.root;var a=this._getId(i);return a&&(o=b(o,a)),d.call(this,n,o,i,e)}}e.exports=u,u.normalizeId=m,u.fullPath=g,u.url=b,u.ids=function(e){var t=m(this._getId(e)),n={"":t},a={"":g(t,!1)},u={},l=this;return s(e,{allKeys:!0},(function(e,t,s,c,f,d,h){if(""!==t){var p=l._getId(e),g=n[c],y=a[c]+"/"+f;if(void 0!==h&&(y+="/"+("number"==typeof h?h:o.escapeFragment(h))),"string"==typeof p){p=g=m(g?r.resolve(g,p):p);var v=l._refs[p];if("string"==typeof v&&(v=l._refs[v]),v&&v.schema){if(!i(e,v.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=m(y))if("#"==p[0]){if(u[p]&&!i(e,u[p]))throw new Error('id "'+p+'" resolves to more than one schema');u[p]=e}else l._refs[p]=y}n[t]=g,a[t]=y}})),u},u.inlineRef=p,u.schema=l;var f=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function d(e,t,n,r){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),a=1;a<i.length;a++){var s=i[a];if(s){if(void 0===(n=n[s=o.unescapeFragment(s)]))break;var u;if(!f[s]&&((u=this._getId(n))&&(t=b(t,u)),n.$ref)){var c=b(t,n.$ref),d=l.call(this,r,c);d&&(n=d.schema,r=d.root,t=d.baseId)}}}return void 0!==n&&n!==r.schema?{schema:n,root:r,baseId:t}:void 0}}var h=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function p(e,t){return!1!==t&&(void 0===t||!0===t?function e(t){var n;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if("object"==typeof(n=t[r])&&!e(n))return!1}else for(var i in t){if("$ref"==i)return!1;if("object"==typeof(n=t[i])&&!e(n))return!1}return!0}(e):t?function e(t){var n,r=0;if(Array.isArray(t)){for(var i=0;i<t.length;i++)if("object"==typeof(n=t[i])&&(r+=e(n)),r==1/0)return 1/0}else for(var o in t){if("$ref"==o)return 1/0;if(h[o])r++;else if("object"==typeof(n=t[o])&&(r+=e(n)+1),r==1/0)return 1/0}return r}(e)<=t:void 0)}function g(e,t){return!1!==t&&(e=m(e)),y(r.parse(e))}function y(e){return r.serialize(e).split("#")[0]+"#"}var v=/#\/?$/;function m(e){return e?e.replace(v,""):""}function b(e,t){return t=m(t),r.resolve(e,t)}},function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},function(e,t,n){"use strict";var r=n(204);function i(e,t,n){this.message=n||i.message(e,t),this.missingRef=r.url(e,t),this.missingSchema=r.normalizeId(r.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(i)},i.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="0x0000000000000000000000000000000000000000"},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(11),i=n(13),o=n(24),a=n(16),s=n(17),u=n(7),l=n(8),c=n(34),f=n(67),d=new l.Logger(c.a),h=1;function p(e,t){return function(n,r){"eth_sign"==n&&(e.isMetaMask||e.isStatus)&&(n="personal_sign",r=[r[1],r[0]]);var i={method:n,params:r,id:h++,jsonrpc:"2.0"};return new Promise((function(e,n){t(i,(function(t,r){if(t)return n(t);if(r.error){var i=new Error(r.error.message);return i.code=r.error.code,i.data=r.error.data,n(i)}e(r.result)}))}))}}var g=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var a;Object(r.a)(this,n),d.checkNew(this instanceof n?this.constructor:void 0,n),null==e&&d.throwArgumentError("missing provider","provider",e);var s=null,l=null,c=null;return"function"===typeof e?(s="unknown:",l=e):(!(s=e.host||e.path||"")&&e.isMetaMask&&(s="metamask"),c=e,e.request?(""===s&&(s="eip-1193:"),l=function(e){return function(t,n){return null==n&&(n=[]),"eth_sign"==t&&(e.isMetaMask||e.isStatus)&&(t="personal_sign",n=[n[1],n[0]]),e.request({method:t,params:n})}}(e)):e.sendAsync?l=p(e,e.sendAsync.bind(e)):e.send?l=p(e,e.send.bind(e)):d.throwArgumentError("unsupported provider","provider",e),s||(s="unknown:")),a=t.call(this,s,i),Object(u.defineReadOnly)(Object(o.a)(a),"jsonRpcFetchFunc",l),Object(u.defineReadOnly)(Object(o.a)(a),"provider",c),a}return Object(i.a)(n,[{key:"send",value:function(e,t){return this.jsonRpcFetchFunc(e,t)}}]),n}(f.a)},,,,,,,,,,,,,,function(e,t,n){"use strict";for(var r="qpzry9x8gf2tvdw0s3jn54khce6mua7l",i={},o=0;o<r.length;o++){var a=r.charAt(o);if(void 0!==i[a])throw new TypeError(a+" is ambiguous");i[a]=o}function s(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function u(e){for(var t=1,n=0;n<e.length;++n){var r=e.charCodeAt(n);if(r<33||r>126)return"Invalid prefix ("+e+")";t=s(t)^r>>5}for(t=s(t),n=0;n<e.length;++n){var i=e.charCodeAt(n);t=s(t)^31&i}return t}function l(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),r=e.toUpperCase();if(e!==n&&e!==r)return"Mixed-case string "+e;var o=(e=n).lastIndexOf("1");if(-1===o)return"No separator character for "+e;if(0===o)return"Missing prefix for "+e;var a=e.slice(0,o),l=e.slice(o+1);if(l.length<6)return"Data too short";var c=u(a);if("string"===typeof c)return c;for(var f=[],d=0;d<l.length;++d){var h=l.charAt(d),p=i[h];if(void 0===p)return"Unknown character "+h;c=s(c)^p,d+6>=l.length||f.push(p)}return 1!==c?"Invalid checksum for "+e:{prefix:a,words:f}}function c(e,t,n,r){for(var i=0,o=0,a=(1<<n)-1,s=[],u=0;u<e.length;++u)for(i=i<<t|e[u],o+=t;o>=n;)o-=n,s.push(i>>o&a);if(r)o>0&&s.push(i<<n-o&a);else{if(o>=t)return"Excess padding";if(i<<n-o&a)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=l.apply(null,arguments);if("object"===typeof e)return e},decode:function(e){var t=l.apply(null,arguments);if("object"===typeof t)return t;throw new Error(t)},encode:function(e,t,n){if(n=n||90,e.length+7+t.length>n)throw new TypeError("Exceeds length limit");var i=u(e=e.toLowerCase());if("string"===typeof i)throw new Error(i);for(var o=e+"1",a=0;a<t.length;++a){var l=t[a];if(l>>5!==0)throw new Error("Non 5-bit word");i=s(i)^l,o+=r.charAt(l)}for(a=0;a<6;++a)i=s(i);for(i^=1,a=0;a<6;++a){o+=r.charAt(i>>5*(5-a)&31)}return o},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,i=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,u=/ +\s*(?![^(]*[)])/g,l=/ *[\0] */g,c=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,h=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,y=/:(read-only)/g,v=/\s+(?=[{\];=:>])/g,m=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,x=/([^\(])(:+) */g,_=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,T=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,M="-webkit-",E="-moz-",P="-ms-",I=59,D=125,L=123,R=40,N=41,j=10,B=13,F=32,z=45,V=42,H=44,U=58,G=47,J=1,X=1,W=0,q=1,Z=1,K=1,Y=0,$=0,Q=0,ee=[],te=[],ne=0,re=null,ie=0,oe=1,ae="",se="",ue="";function le(e,t,i,o,a){for(var s,u,c=0,f=0,d=0,h=0,v=0,m=0,b=0,w=0,_=0,S=0,T=0,C=0,A=0,O=0,E=0,P=0,Y=0,te=0,re=0,fe=i.length,ve=fe-1,me="",be="",we="",xe="",_e="",ke="";E<fe;){if(b=i.charCodeAt(E),E===ve&&f+h+d+c!==0&&(0!==f&&(b=f===G?j:G),h=d=c=0,fe++,ve++),f+h+d+c===0){if(E===ve&&(P>0&&(be=be.replace(r,"")),be.trim().length>0)){switch(b){case F:case 9:case I:case B:case j:break;default:be+=i.charAt(E)}b=I}if(1===Y)switch(b){case L:case D:case I:case 34:case 39:case R:case N:case H:Y=0;case 9:case B:case j:case F:break;default:for(Y=0,re=E,v=b,E--,b=I;re<fe;)switch(i.charCodeAt(re++)){case j:case B:case I:++E,b=v,re=fe;break;case U:P>0&&(++E,b=v);case L:re=fe}}switch(b){case L:for(v=(be=be.trim()).charCodeAt(0),T=1,re=++E;E<fe;){switch(b=i.charCodeAt(E)){case L:T++;break;case D:T--;break;case G:switch(m=i.charCodeAt(E+1)){case V:case G:E=ye(m,E,ve,i)}break;case 91:b++;case R:b++;case 34:case 39:for(;E++<ve&&i.charCodeAt(E)!==b;);}if(0===T)break;E++}switch(we=i.substring(re,E),0===v&&(v=(be=be.replace(n,"").trim()).charCodeAt(0)),v){case 64:switch(P>0&&(be=be.replace(r,"")),m=be.charCodeAt(1)){case 100:case 109:case 115:case z:s=t;break;default:s=ee}if(re=(we=le(t,s,we,m,a+1)).length,Q>0&&0===re&&(re=be.length),ne>0&&(u=ge(3,we,s=ce(ee,be,te),t,X,J,re,m,a,o),be=s.join(""),void 0!==u&&0===(re=(we=u.trim()).length)&&(m=0,we="")),re>0)switch(m){case 115:be=be.replace(k,pe);case 100:case 109:case z:we=be+"{"+we+"}";break;case 107:we=(be=be.replace(p,"$1 $2"+(oe>0?ae:"")))+"{"+we+"}",we=1===Z||2===Z&&he("@"+we,3)?"@"+M+we+"@"+we:"@"+we;break;default:we=be+we,112===o&&(xe+=we,we="")}else we="";break;default:we=le(t,ce(t,be,te),we,o,a+1)}_e+=we,C=0,Y=0,O=0,P=0,te=0,A=0,be="",we="",b=i.charCodeAt(++E);break;case D:case I:if((re=(be=(P>0?be.replace(r,""):be).trim()).length)>1)switch(0===O&&((v=be.charCodeAt(0))===z||v>96&&v<123)&&(re=(be=be.replace(" ",":")).length),ne>0&&void 0!==(u=ge(1,be,t,e,X,J,xe.length,o,a,o))&&0===(re=(be=u.trim()).length)&&(be="\0\0"),v=be.charCodeAt(0),m=be.charCodeAt(1),v){case 0:break;case 64:if(105===m||99===m){ke+=be+i.charAt(E);break}default:if(be.charCodeAt(re-1)===U)break;xe+=de(be,v,m,be.charCodeAt(2))}C=0,Y=0,O=0,P=0,te=0,be="",b=i.charCodeAt(++E)}}switch(b){case B:case j:if(f+h+d+c+$===0)switch(S){case N:case 39:case 34:case 64:case 126:case 62:case V:case 43:case G:case z:case U:case H:case I:case L:case D:break;default:O>0&&(Y=1)}f===G?f=0:q+C===0&&107!==o&&be.length>0&&(P=1,be+="\0"),ne*ie>0&&ge(0,be,t,e,X,J,xe.length,o,a,o),J=1,X++;break;case I:case D:if(f+h+d+c===0){J++;break}default:switch(J++,me=i.charAt(E),b){case 9:case F:if(h+c+f===0)switch(w){case H:case U:case 9:case F:me="";break;default:b!==F&&(me=" ")}break;case 0:me="\\0";break;case 12:me="\\f";break;case 11:me="\\v";break;case 38:h+f+c===0&&q>0&&(te=1,P=1,me="\f"+me);break;case 108:if(h+f+c+W===0&&O>0)switch(E-O){case 2:112===w&&i.charCodeAt(E-3)===U&&(W=w);case 8:111===_&&(W=_)}break;case U:h+f+c===0&&(O=E);break;case H:f+d+h+c===0&&(P=1,me+="\r");break;case 34:case 39:0===f&&(h=h===b?0:0===h?b:h);break;case 91:h+f+d===0&&c++;break;case 93:h+f+d===0&&c--;break;case N:h+f+c===0&&d--;break;case R:if(h+f+c===0){if(0===C)switch(2*w+3*_){case 533:break;default:T=0,C=1}d++}break;case 64:f+d+h+c+O+A===0&&(A=1);break;case V:case G:if(h+c+d>0)break;switch(f){case 0:switch(2*b+3*i.charCodeAt(E+1)){case 235:f=G;break;case 220:re=E,f=V}break;case V:b===G&&w===V&&re+2!==E&&(33===i.charCodeAt(re+2)&&(xe+=i.substring(re,E+1)),me="",f=0)}}if(0===f){if(q+h+c+A===0&&107!==o&&b!==I)switch(b){case H:case 126:case 62:case 43:case N:case R:if(0===C){switch(w){case 9:case F:case j:case B:me+="\0";break;default:me="\0"+me+(b===H?"":"\0")}P=1}else switch(b){case R:O+7===E&&108===w&&(O=0),C=++T;break;case N:0==(C=--T)&&(P=1,me+="\0")}break;case 9:case F:switch(w){case 0:case L:case D:case I:case H:case 12:case 9:case F:case j:case B:break;default:0===C&&(P=1,me+="\0")}}be+=me,b!==F&&9!==b&&(S=b)}}_=w,w=b,E++}if(re=xe.length,Q>0&&0===re&&0===_e.length&&0===t[0].length==0&&(109!==o||1===t.length&&(q>0?se:ue)===t[0])&&(re=t.join(",").length+2),re>0){if(s=0===q&&107!==o?function(e){for(var t,n,i=0,o=e.length,a=Array(o);i<o;++i){for(var s=e[i].split(l),u="",c=0,f=0,d=0,h=0,p=s.length;c<p;++c)if(!(0===(f=(n=s[c]).length)&&p>1)){if(d=u.charCodeAt(u.length-1),h=n.charCodeAt(0),t="",0!==c)switch(d){case V:case 126:case 62:case 43:case F:case R:break;default:t=" "}switch(h){case 38:n=t+se;case 126:case 62:case 43:case F:case N:case R:break;case 91:n=t+n+se;break;case U:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(K>0){n=t+n.substring(8,f-1);break}default:(c<1||s[c-1].length<1)&&(n=t+se+n)}break;case H:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(x,"$1"+se+"$2"):t+n+se}u+=n}a[i]=u.replace(r,"").trim()}return a}(t):t,ne>0&&void 0!==(u=ge(2,xe,s,e,X,J,re,o,a,o))&&0===(xe=u).length)return ke+xe+_e;if(xe=s.join(",")+"{"+xe+"}",Z*W!=0){switch(2!==Z||he(xe,2)||(W=0),W){case 111:xe=xe.replace(y,":-moz-$1")+xe;break;case 112:xe=xe.replace(g,"::"+M+"input-$1")+xe.replace(g,"::-moz-$1")+xe.replace(g,":-ms-input-$1")+xe}W=0}}return ke+xe+_e}function ce(e,t,n){var r=t.trim().split(c),i=r,o=r.length,a=e.length;switch(a){case 0:case 1:for(var s=0,u=0===a?"":e[0]+" ";s<o;++s)i[s]=fe(u,i[s],n,a).trim();break;default:s=0;var l=0;for(i=[];s<o;++s)for(var f=0;f<a;++f)i[l++]=fe(e[f]+" ",r[s],n,a).trim()}return i}function fe(e,t,n,r){var i=t,o=i.charCodeAt(0);switch(o<33&&(o=(i=i.trim()).charCodeAt(0)),o){case 38:switch(q+r){case 0:case 1:if(0===e.trim().length)break;default:return i.replace(f,"$1"+e.trim())}break;case U:switch(i.charCodeAt(1)){case 103:if(K>0&&q>0)return i.replace(d,"$1").replace(f,"$1"+ue);break;default:return e.trim()+i.replace(f,"$1"+e.trim())}default:if(n*q>0&&i.indexOf("\f")>0)return i.replace(f,(e.charCodeAt(0)===U?"":"$1")+e.trim())}return e+i}function de(e,t,n,r){var l,c=0,f=e+";",d=2*t+3*n+4*r;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),i=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*oe){case 0:break;case z:if(110!==e.charCodeAt(10))break;default:var o=i.split((i="",s)),a=0;for(n=0,t=o.length;a<t;n=0,++a){for(var l=o[a],c=l.split(u);l=c[n];){var f=l.charCodeAt(0);if(1===oe&&(f>64&&f<90||f>96&&f<123||95===f||f===z&&l.charCodeAt(1)!==z))switch(isNaN(parseFloat(l))+(-1!==l.indexOf("("))){case 1:switch(l){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:l+=ae}}c[n++]=l}i+=(0===a?"":",")+c.join(" ")}}return i=r+i+";",1===Z||2===Z&&he(i,1)?M+i+i:i}(f);if(0===Z||2===Z&&!he(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?M+f+f:f;case 951:return 116===f.charCodeAt(3)?M+f+f:f;case 963:return 110===f.charCodeAt(5)?M+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return M+f+f;case 978:return M+f+E+f+f;case 1019:case 983:return M+f+E+f+P+f+f;case 883:return f.charCodeAt(8)===z?M+f+f:f.indexOf("image-set(",11)>0?f.replace(O,"$1"+M+"$2")+f:f;case 932:if(f.charCodeAt(4)===z)switch(f.charCodeAt(5)){case 103:return M+"box-"+f.replace("-grow","")+M+f+P+f.replace("grow","positive")+f;case 115:return M+f+P+f.replace("shrink","negative")+f;case 98:return M+f+P+f.replace("basis","preferred-size")+f}return M+f+P+f+f;case 964:return M+f+P+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return l=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),M+"box-pack"+l+M+f+P+"flex-pack"+l+f;case 1005:return o.test(f)?f.replace(i,":"+M)+f.replace(i,":"+E)+f:f;case 1e3:switch(c=(l=f.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(c)){case 226:l=f.replace(_,"tb");break;case 232:l=f.replace(_,"tb-rl");break;case 220:l=f.replace(_,"lr");break;default:return f}return M+f+P+l+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(c=(f=e).length-10,d=(l=(33===f.charCodeAt(c)?f.substring(0,c):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:f=f.replace(l,M+l)+";"+f;break;case 207:case 102:f=f.replace(l,M+(d>102?"inline-":"")+"box")+";"+f.replace(l,M+l)+";"+f.replace(l,P+l+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===z)switch(f.charCodeAt(6)){case 105:return l=f.replace("-items",""),M+f+M+"box-"+l+P+"flex-"+l+f;case 115:return M+f+P+"flex-item-"+f.replace(T,"")+f;default:return M+f+P+"flex-line-pack"+f.replace("align-content","").replace(T,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==z||122===f.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?de(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):f.replace(l,M+l)+f.replace(l,E+l.replace("fill-",""))+f;break;case 962:if(f=M+f+(102===f.charCodeAt(5)?P+f:"")+f,n+r===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(a,"$1"+M+"$2")+f}return f}function he(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),i=e.substring(n+1,e.length-1);return re(2!==t?r:r.replace(C,"$1"),i,t)}function pe(e,t){var n=de(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function ge(e,t,n,r,i,o,a,s,u,l){for(var c,f=0,d=t;f<ne;++f)switch(c=te[f].call(me,e,d,n,r,i,o,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:d=c}if(d!==t)return d}function ye(e,t,n,r){for(var i=t+1;i<n;++i)switch(r.charCodeAt(i)){case G:if(e===V&&r.charCodeAt(i-1)===V&&t+2!==i)return i+1;break;case j:if(e===G)return i+1}return i}function ve(e){for(var t in e){var n=e[t];switch(t){case"keyframe":oe=0|n;break;case"global":K=0|n;break;case"cascade":q=0|n;break;case"compress":Y=0|n;break;case"semicolon":$=0|n;break;case"preserve":Q=0|n;break;case"prefix":re=null,n?"function"!=typeof n?Z=1:(Z=2,re=n):Z=0}}return ve}function me(t,n){if(void 0!==this&&this.constructor===me)return e(t);var i=t,o=i.charCodeAt(0);o<33&&(o=(i=i.trim()).charCodeAt(0)),oe>0&&(ae=i.replace(h,91===o?"":"-")),o=1,1===q?ue=i:se=i;var a,s=[ue];ne>0&&void 0!==(a=ge(-1,n,s,s,X,J,0,0,0,0))&&"string"==typeof a&&(n=a);var u=le(ee,s,n,0,0);return ne>0&&void 0!==(a=ge(-2,u,s,s,X,J,u.length,0,0,0))&&"string"!=typeof(u=a)&&(o=0),ae="",ue="",se="",W=0,X=1,J=1,Y*o==0?u:u.replace(r,"").replace(v,"").replace(m,"$1").replace(b,"$1").replace(w," ")}return me.use=function e(t){switch(t){case void 0:case null:ne=te.length=0;break;default:if("function"==typeof t)te[ne++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else ie=0|!!t}return e},me.set=ve,void 0!==t&&ve(t),me}(null)},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(47),a=n(18),s=n.n(a),u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var c=i.a.createContext||function(e,t){var n,i,a="__create-react-context-"+function(){var e="__global_unique_id__";return u[e]=(u[e]||0)+1}()+"__",c=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);c.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var f=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((i={})[a]=s.a.object,i),{Provider:c,Consumer:f}};t.a=c}).call(this,n(79))},function(e,t,n){var r=n(408);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],h=n.index;if(s+=e.slice(a,h),a=h+f.length,d)s+=d[1];else{var p=e[a],g=n[2],y=n[3],v=n[4],m=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var x=null!=g&&null!=p&&p!==g,_="+"===b||"*"===b,k="?"===b||"*"===b,S=n[2]||c,T=v||m;r.push({name:y||o++,prefix:g||"",delimiter:S,optional:k,repeat:_,partial:x,asterisk:!!w,pattern:T?l(T):w?".*":"[^"+u(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var c=e[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(r(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]),!n[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(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[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(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=u(l);else{var d=u(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+d+h+")*"),a+=h=l.optional?l.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var p=u(n.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(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},,function(e,t,n){"use strict";var r=n(145),i=n(146),o=n(259),a=n(148),s=n(463),u=n(466),l=n(150),c=n(149),f=n(467),d=s.nameToCode,h=Object.keys(d).reduce((function(e,t){return e[d[t]]=t,e}),{}),p=Symbol.for("@ipld/js-cid/CID"),g=function(){function e(t,n,i,u){if(r(this,e),this.version,this.codec,this.multihash,Object.defineProperty(this,p,{value:!0}),e.isCID(t)){var l=t;return this.version=l.version,this.codec=l.codec,this.multihash=l.multihash,void(this.multibaseName=l.multibaseName||(0===l.version?"base58btc":"base32"))}if("string"===typeof t){var c=a.isEncoded(t);if(c){var f=a.decode(t);this.version=parseInt(f[0].toString(),16),this.codec=s.getCodec(f.slice(1)),this.multihash=s.rmPrefix(f.slice(1)),this.multibaseName=c}else this.version=0,this.codec="dag-pb",this.multihash=o.fromB58String(t),this.multibaseName="base58btc";return e.validateCID(this),void Object.defineProperty(this,"string",{value:t})}if(t instanceof Uint8Array){var d=parseInt(t[0].toString(),16);if(1===d){var g=t;this.version=d,this.codec=s.getCodec(g.slice(1)),this.multihash=s.rmPrefix(g.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=t,this.multibaseName="base58btc";e.validateCID(this)}else this.version=t,"number"===typeof n&&(n=h[n]),this.codec=n,this.multihash=i,this.multibaseName=u||(0===t?"base58btc":"base32"),e.validateCID(this)}return i(e,[{key:"bytes",get:function(){var e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");var t=s.getCodeVarint(this.codec);e=l([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}Object.defineProperty(this,"_bytes",{value:e})}return e}},{key:"prefix",get:function(){var e=s.getCodeVarint(this.codec),t=o.prefix(this.multihash);return l([[this.version],e,t],1+e.byteLength+t.byteLength)}},{key:"code",get:function(){return d[this.codec]}},{key:"toV0",value:function(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");var t=o.decode(this.multihash),n=t.name,r=t.length;if("sha2-256"!==n)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==r)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new e(0,this.codec,this.multihash)}},{key:"toV1",value:function(){return new e(1,this.codec,this.multihash)}},{key:"toBaseEncodedString",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.multibaseName;if(this.string&&0!==this.string.length&&t===this.multibaseName)return this.string;if(0===this.version){if("base58btc"!==t)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");e=o.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");e=c(a.encode(t,this.bytes))}return t===this.multibaseName&&Object.defineProperty(this,"string",{value:e}),e}},{key:Symbol.for("nodejs.util.inspect.custom"),value:function(){return"CID("+this.toString()+")"}},{key:"toString",value:function(e){return this.toBaseEncodedString(e)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(e){return this.codec===e.codec&&this.version===e.version&&f(this.multihash,e.multihash)}}],[{key:"validateCID",value:function(e){var t=u.checkCIDComponents(e);if(t)throw new Error(t)}},{key:"isCID",value:function(t){return t instanceof e||Boolean(t&&t[p])}}]),e}();g.codecs=d,e.exports=g},,,function(e,t,n){"use strict";var r,i=(r=n(584))&&r.__esModule?r:{default:r};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.save=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.states,n=void 0===t?c:t,r=e.ignoreStates,i=void 0===r?f:r,o=e.namespace,a=void 0===o?l:o,s=e.namespaceSeparator,u=void 0===s?"_":s,h=e.debounce,p=void 0===h?0:h,v=e.disableWarnings,_=void 0!==v&&v;return function(e){return function(t){return function(r){function o(){0===n.length?S.setItem(a,s):n.forEach((function(e){var t=a+u+e,n=function(e,t){return 1<e.split(".").length?y(e.split("."),t):y([e],t)}(e,s);n?S.setItem(t,n):S.removeItem(t)}))}var s,h=g(_),v=t(r);b(n)||(n=c),b(i)||(i=f),0<i.length&&(i=i.filter((function(e){return w(e)?e:void 0}))),w(a)||(a=l),w(u)||(u="_"),x(p)||(p=0),s=0<i.length?k(i,e.getState()):e.getState();var S=new m(h);return p?(d&&clearTimeout(d),d=setTimeout((function(){o()}),p)):o(),v}}}},t.load=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.states,n=void 0===t?c:t,r=e.immutablejs,o=void 0!==r&&r,a=e.namespace,s=void 0===a?l:a,u=e.namespaceSeparator,f=void 0===u?"_":u,d=e.preloadedState,h=void 0===d?{}:d,p=e.disableWarnings,y=void 0!==p&&p,x=g(y);b(n)||(n=c),w(s)||(s=l),w(f)||(f="_"),!0===o&&x("Support for Immutable.js data structures has been deprecated as of version 2.0.0. Please use version 1.4.0 if you require this functionality.");var _=new m(x),k=h;if(0===n.length){var S=_.getItem(s);S&&(k=S)}else n.forEach((function(e){var t=s+f+e,n=_.getItem(t);n?k=i.default.recursive(k,v(e,n)):x("Invalid load '"+t+"' provided. Check your 'states' in 'load()'. If this is your first time running this app you may see this message. To disable it in future use the 'disableWarnings' flag, see documentation.")}));return k},t.combineLoads=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){for(var n in _(t)||(t={}),t)e[n]=t[n]})),e},t.clear=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.namespace,n=void 0===t?l:t,r=e.disableWarnings,i=void 0!==r&&r,o=g(i);w(n)||(n=l);for(var a,s=new m(o),u=s.length,c=0;c<u;c++)(a=s.key(c))&&a.slice(0,n.length)===n&&s.removeItem(a)};var l="redux_localstorage_simple",c=[],f=[],d=null;function h(e){}function p(){}var g=function(e){return e?p:h};function y(e,t){return void 0===t?null:1===e.length?t[e[0]]:y(e.slice(1),t[e[0]])}function v(e){function t(e,n){return 0===e.length?n:t(e.slice(1),u({},e[0],n))}var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t(e.split(".").reverse(),n)}function m(e){this.warnFn=e||h}function b(e){return"[object Array]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e}function x(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function _(e){return null!==e&&"object"===s(e)}function k(e,t){return Object.entries(t).reduce((function(n,r){var i=o(r,2),a=i[0];i[1];return-1===e.indexOf(a)&&(n[a]=t[a]),n}),{})}Object.defineProperty(m.prototype,"length",{get:function(){try{return localStorage.length}catch(r){this.warnFn(r)}return 0},configurable:!0,enumerable:!0}),m.prototype.key=function(e){try{return localStorage.key(e)}catch(e){this.warnFn(e)}return null},m.prototype.setItem=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){this.warnFn(e)}},m.prototype.getItem=function(e){try{return JSON.parse(localStorage.getItem(e))}catch(e){this.warnFn(e)}return null},m.prototype.removeItem=function(e){try{localStorage.removeItem(e)}catch(e){this.warnFn(e)}}},function(e,t,n){(function(e,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",p="[object GeneratorFunction]",g="[object Map]",y="[object Number]",v="[object Object]",m="[object RegExp]",b="[object Set]",w="[object String]",x="[object Symbol]",_="[object WeakMap]",k="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",C="[object Float64Array]",A="[object Int8Array]",O="[object Int16Array]",M="[object Int32Array]",E="[object Uint8Array]",P="[object Uint16Array]",I="[object Uint32Array]",D=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,R=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,j=/[&<>"']/g,B=RegExp(N.source),F=RegExp(j.source),z=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X=/[\\^$.*+?()[\]{}|]/g,W=RegExp(X.source),q=/^\s+/,Z=/\s/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Y=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",ge="["+he+"]",ye="["+de+"]",ve="\\d+",me="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+he+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xe="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="(?:"+be+"|"+we+")",Ae="(?:"+Te+"|"+we+")",Oe="(?:"+ye+"|"+xe+")"+"?",Me="[\\ufe0e\\ufe0f]?"+Oe+("(?:\\u200d(?:"+[_e,ke,Se].join("|")+")[\\ufe0e\\ufe0f]?"+Oe+")*"),Ee="(?:"+[me,ke,Se].join("|")+")"+Me,Pe="(?:"+[_e+ye+"?",ye,ke,Se,pe].join("|")+")",Ie=RegExp("['\u2019]","g"),De=RegExp(ye,"g"),Le=RegExp(xe+"(?="+xe+")|"+Pe+Me,"g"),Re=RegExp([Te+"?"+be+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[ge,Te,"$"].join("|")+")",Ae+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Te+Ce,"$"].join("|")+")",Te+"?"+Ce+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Te+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Ee].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),je=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Be=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fe=-1,ze={};ze[T]=ze[C]=ze[A]=ze[O]=ze[M]=ze[E]=ze["[object Uint8ClampedArray]"]=ze[P]=ze[I]=!0,ze[u]=ze[l]=ze[k]=ze[c]=ze[S]=ze[f]=ze[d]=ze[h]=ze[g]=ze[y]=ze[v]=ze[m]=ze[b]=ze[w]=ze[_]=!1;var Ve={};Ve[u]=Ve[l]=Ve[k]=Ve[S]=Ve[c]=Ve[f]=Ve[T]=Ve[C]=Ve[A]=Ve[O]=Ve[M]=Ve[g]=Ve[y]=Ve[v]=Ve[m]=Ve[b]=Ve[w]=Ve[x]=Ve[E]=Ve["[object Uint8ClampedArray]"]=Ve[P]=Ve[I]=!0,Ve[d]=Ve[h]=Ve[_]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,Ge=parseInt,Je="object"==typeof e&&e&&e.Object===Object&&e,Xe="object"==typeof self&&self&&self.Object===Object&&self,We=Je||Xe||Function("return this")(),qe=t&&!t.nodeType&&t,Ze=qe&&"object"==typeof r&&r&&!r.nodeType&&r,Ke=Ze&&Ze.exports===qe,Ye=Ke&&Je.process,$e=function(){try{var e=Ze&&Ze.require&&Ze.require("util").types;return e||Ye&&Ye.binding&&Ye.binding("util")}catch(t){}}(),Qe=$e&&$e.isArrayBuffer,et=$e&&$e.isDate,tt=$e&&$e.isMap,nt=$e&&$e.isRegExp,rt=$e&&$e.isSet,it=$e&&$e.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function ft(e,t){return!!(null==e?0:e.length)&&xt(e,t,0)>-1}function dt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ht(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function gt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function yt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var mt=Tt("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function wt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function xt(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,kt,n)}function _t(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function kt(e){return e!==e}function St(e,t){var n=null==e?0:e.length;return n?Ot(e,t)/n:NaN}function Tt(e){return function(t){return null==t?void 0:t[e]}}function Ct(e){return function(t){return null==e?void 0:e[t]}}function At(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Ot(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Mt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Et(e){return e?e.slice(0,qt(e)+1).replace(q,""):e}function Pt(e){return function(t){return e(t)}}function It(e,t){return ht(t,(function(t){return e[t]}))}function Dt(e,t){return e.has(t)}function Lt(e,t){for(var n=-1,r=e.length;++n<r&&xt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length;n--&&xt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var jt=Ct({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Bt=Ct({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+He[e]}function zt(e){return Ne.test(e)}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ht(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function Gt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Xt(e){return zt(e)?function(e){var t=Le.lastIndex=0;for(;Le.test(e);)++t;return t}(e):mt(e)}function Wt(e){return zt(e)?function(e){return e.match(Le)||[]}(e):function(e){return e.split("")}(e)}function qt(e){for(var t=e.length;t--&&Z.test(e.charAt(t)););return t}var Zt=Ct({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Kt=function e(t){var n=(t=null==t?We:Kt.defaults(We.Object(),t,Kt.pick(We,Be))).Array,r=t.Date,i=t.Error,Z=t.Function,de=t.Math,he=t.Object,pe=t.RegExp,ge=t.String,ye=t.TypeError,ve=n.prototype,me=Z.prototype,be=he.prototype,we=t["__core-js_shared__"],xe=me.toString,_e=be.hasOwnProperty,ke=0,Se=function(){var e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Te=be.toString,Ce=xe.call(he),Ae=We._,Oe=pe("^"+xe.call(_e).replace(X,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Ke?t.Buffer:void 0,Ee=t.Symbol,Pe=t.Uint8Array,Le=Me?Me.allocUnsafe:void 0,Ne=Ht(he.getPrototypeOf,he),He=he.create,Je=be.propertyIsEnumerable,Xe=ve.splice,qe=Ee?Ee.isConcatSpreadable:void 0,Ze=Ee?Ee.iterator:void 0,Ye=Ee?Ee.toStringTag:void 0,$e=function(){try{var e=Qi(he,"defineProperty");return e({},"",{}),e}catch(t){}}(),mt=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Ct=r&&r.now!==We.Date.now&&r.now,Yt=t.setTimeout!==We.setTimeout&&t.setTimeout,$t=de.ceil,Qt=de.floor,en=he.getOwnPropertySymbols,tn=Me?Me.isBuffer:void 0,nn=t.isFinite,rn=ve.join,on=Ht(he.keys,he),an=de.max,sn=de.min,un=r.now,ln=t.parseInt,cn=de.random,fn=ve.reverse,dn=Qi(t,"DataView"),hn=Qi(t,"Map"),pn=Qi(t,"Promise"),gn=Qi(t,"Set"),yn=Qi(t,"WeakMap"),vn=Qi(he,"create"),mn=yn&&new yn,bn={},wn=Ao(dn),xn=Ao(hn),_n=Ao(pn),kn=Ao(gn),Sn=Ao(yn),Tn=Ee?Ee.prototype:void 0,Cn=Tn?Tn.valueOf:void 0,An=Tn?Tn.toString:void 0;function On(e){if(Ga(e)&&!Da(e)&&!(e instanceof In)){if(e instanceof Pn)return e;if(_e.call(e,"__wrapped__"))return Oo(e)}return new Pn(e)}var Mn=function(){function e(){}return function(t){if(!Ua(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function En(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function In(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Rn;++t<n;)this.add(e[t])}function jn(e){var t=this.__data__=new Ln(e);this.size=t.size}function Bn(e,t){var n=Da(e),r=!n&&Ia(e),i=!n&&!r&&ja(e),o=!n&&!r&&!i&&$a(e),a=n||r||i||o,s=a?Mt(e.length,ge):[],u=s.length;for(var l in e)!t&&!_e.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ao(l,u))||s.push(l);return s}function Fn(e){var t=e.length;return t?e[Nr(0,t-1)]:void 0}function zn(e,t){return So(vi(e),Zn(t,0,e.length))}function Vn(e){return So(vi(e))}function Hn(e,t,n){(void 0!==n&&!Ma(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}function Un(e,t,n){var r=e[t];_e.call(e,t)&&Ma(r,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function Gn(e,t){for(var n=e.length;n--;)if(Ma(e[n][0],t))return n;return-1}function Jn(e,t,n,r){return er(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Xn(e,t){return e&&mi(t,ws(t),e)}function Wn(e,t,n){"__proto__"==t&&$e?$e(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function qn(e,t){for(var r=-1,i=t.length,o=n(i),a=null==e;++r<i;)o[r]=a?void 0:gs(e,t[r]);return o}function Zn(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Kn(e,t,n,r,i,o){var a,s=1&t,l=2&t,d=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ua(e))return e;var _=Da(e);if(_){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&_e.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return vi(e,a)}else{var D=no(e),L=D==h||D==p;if(ja(e))return fi(e,s);if(D==v||D==u||L&&!i){if(a=l||L?{}:io(e),!s)return l?function(e,t){return mi(e,to(e),t)}(e,function(e,t){return e&&mi(t,xs(t),e)}(a,e)):function(e,t){return mi(e,eo(e),t)}(e,Xn(a,e))}else{if(!Ve[D])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case k:return di(e);case c:case f:return new r(+e);case S:return function(e,t){var n=t?di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case C:case A:case O:case M:case E:case"[object Uint8ClampedArray]":case P:case I:return hi(e,n);case g:return new r;case y:case w:return new r(e);case m:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case x:return i=e,Cn?he(Cn.call(i)):{}}var i}(e,D,s)}}o||(o=new jn);var R=o.get(e);if(R)return R;o.set(e,a),Za(e)?e.forEach((function(r){a.add(Kn(r,t,n,r,e,o))})):Ja(e)&&e.forEach((function(r,i){a.set(i,Kn(r,t,n,i,e,o))}));var N=_?void 0:(d?l?Xi:Ji:l?xs:ws)(e);return st(N||e,(function(r,i){N&&(r=e[i=r]),Un(a,i,Kn(r,t,n,i,e,o))})),a}function Yn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function $n(e,t,n){if("function"!=typeof e)throw new ye(o);return wo((function(){e.apply(void 0,n)}),t)}function Qn(e,t,n,r){var i=-1,o=ft,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=ht(t,Pt(n))),r?(o=dt,a=!1):t.length>=200&&(o=Dt,a=!1,t=new Nn(t));e:for(;++i<s;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f===f){for(var d=l;d--;)if(t[d]===f)continue e;u.push(c)}else o(t,f,r)||u.push(c)}return u}On.templateSettings={escape:z,evaluate:V,interpolate:H,variable:"",imports:{_:On}},On.prototype=En.prototype,On.prototype.constructor=On,Pn.prototype=Mn(En.prototype),Pn.prototype.constructor=Pn,In.prototype=Mn(En.prototype),In.prototype.constructor=In,Dn.prototype.clear=function(){this.__data__=vn?vn(null):{},this.size=0},Dn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Dn.prototype.get=function(e){var t=this.__data__;if(vn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _e.call(t,e)?t[e]:void 0},Dn.prototype.has=function(e){var t=this.__data__;return vn?void 0!==t[e]:_e.call(t,e)},Dn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vn&&void 0===t?"__lodash_hash_undefined__":t,this},Ln.prototype.clear=function(){this.__data__=[],this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=Gn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Ln.prototype.get=function(e){var t=this.__data__,n=Gn(t,e);return n<0?void 0:t[n][1]},Ln.prototype.has=function(e){return Gn(this.__data__,e)>-1},Ln.prototype.set=function(e,t){var n=this.__data__,r=Gn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Rn.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(hn||Ln),string:new Dn}},Rn.prototype.delete=function(e){var t=Yi(this,e).delete(e);return this.size-=t?1:0,t},Rn.prototype.get=function(e){return Yi(this,e).get(e)},Rn.prototype.has=function(e){return Yi(this,e).has(e)},Rn.prototype.set=function(e,t){var n=Yi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},jn.prototype.clear=function(){this.__data__=new Ln,this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},jn.prototype.get=function(e){return this.__data__.get(e)},jn.prototype.has=function(e){return this.__data__.has(e)},jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ln){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Rn(r)}return n.set(e,t),this.size=n.size,this};var er=xi(ur),tr=xi(lr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a===a&&!Ya(a):n(a,s)))var s=a,u=o}return u}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?or(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var ar=_i(),sr=_i(!0);function ur(e,t){return e&&ar(e,t,ws)}function lr(e,t){return e&&sr(e,t,ws)}function cr(e,t){return ct(t,(function(t){return za(e[t])}))}function fr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[Co(t[n++])];return n&&n==r?e:void 0}function dr(e,t,n){var r=t(e);return Da(e)?r:pt(r,n(e))}function hr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ye&&Ye in he(e)?function(e){var t=_e.call(e,Ye),n=e[Ye];try{e[Ye]=void 0;var r=!0}catch(o){}var i=Te.call(e);r&&(t?e[Ye]=n:delete e[Ye]);return i}(e):function(e){return Te.call(e)}(e)}function pr(e,t){return e>t}function gr(e,t){return null!=e&&_e.call(e,t)}function yr(e,t){return null!=e&&t in he(e)}function vr(e,t,r){for(var i=r?dt:ft,o=e[0].length,a=e.length,s=a,u=n(a),l=1/0,c=[];s--;){var f=e[s];s&&t&&(f=ht(f,Pt(t))),l=sn(f.length,l),u[s]=!r&&(t||o>=120&&f.length>=120)?new Nn(s&&f):void 0}f=e[0];var d=-1,h=u[0];e:for(;++d<o&&c.length<l;){var p=f[d],g=t?t(p):p;if(p=r||0!==p?p:0,!(h?Dt(h,g):i(c,g,r))){for(s=a;--s;){var y=u[s];if(!(y?Dt(y,g):i(e[s],g,r)))continue e}h&&h.push(g),c.push(p)}}return c}function mr(e,t,n){var r=null==(e=yo(e,t=si(t,e)))?e:e[Co(Fo(t))];return null==r?void 0:ot(r,e,n)}function br(e){return Ga(e)&&hr(e)==u}function wr(e,t,n,r,i){return e===t||(null==e||null==t||!Ga(e)&&!Ga(t)?e!==e&&t!==t:function(e,t,n,r,i,o){var a=Da(e),s=Da(t),h=a?l:no(e),p=s?l:no(t),_=(h=h==u?v:h)==v,T=(p=p==u?v:p)==v,C=h==p;if(C&&ja(e)){if(!ja(t))return!1;a=!0,_=!1}if(C&&!_)return o||(o=new jn),a||$a(e)?Ui(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!o(new Pe(e),new Pe(t)));case c:case f:case y:return Ma(+e,+t);case d:return e.name==t.name&&e.message==t.message;case m:case w:return e==t+"";case g:var s=Vt;case b:var u=1&r;if(s||(s=Gt),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var h=Ui(s(e),s(t),r,i,o,a);return a.delete(e),h;case x:if(Cn)return Cn.call(e)==Cn.call(t)}return!1}(e,t,h,n,r,i,o);if(!(1&n)){var A=_&&_e.call(e,"__wrapped__"),O=T&&_e.call(t,"__wrapped__");if(A||O){var M=A?e.value():e,E=O?t.value():t;return o||(o=new jn),i(M,E,n,r,o)}}if(!C)return!1;return o||(o=new jn),function(e,t,n,r,i,o){var a=1&n,s=Ji(e),u=s.length,l=Ji(t).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var f=s[c];if(!(a?f in t:_e.call(t,f)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);var g=a;for(;++c<u;){f=s[c];var y=e[f],v=t[f];if(r)var m=a?r(v,y,f,t,e,o):r(y,v,f,e,t,o);if(!(void 0===m?y===v||i(y,v,n,r,o):m)){p=!1;break}g||(g="constructor"==f)}if(p&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o)}(e,t,n,r,wr,i))}function xr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=he(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var u=(s=n[i])[0],l=e[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in e))return!1}else{var f=new jn;if(r)var d=r(l,c,u,e,t,f);if(!(void 0===d?wr(c,l,3,r,f):d))return!1}}return!0}function _r(e){return!(!Ua(e)||(t=e,Se&&Se in t))&&(za(e)?Oe:ae).test(Ao(e));var t}function kr(e){return"function"==typeof e?e:null==e?Xs:"object"==typeof e?Da(e)?Mr(e[0],e[1]):Or(e):tu(e)}function Sr(e){if(!fo(e))return on(e);var t=[];for(var n in he(e))_e.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Tr(e){if(!Ua(e))return function(e){var t=[];if(null!=e)for(var n in he(e))t.push(n);return t}(e);var t=fo(e),n=[];for(var r in e)("constructor"!=r||!t&&_e.call(e,r))&&n.push(r);return n}function Cr(e,t){return e<t}function Ar(e,t){var r=-1,i=Ra(e)?n(e.length):[];return er(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Or(e){var t=$i(e);return 1==t.length&&t[0][2]?po(t[0][0],t[0][1]):function(n){return n===e||xr(n,e,t)}}function Mr(e,t){return uo(e)&&ho(t)?po(Co(e),t):function(n){var r=gs(n,e);return void 0===r&&r===t?ys(n,e):wr(t,r,3)}}function Er(e,t,n,r,i){e!==t&&ar(t,(function(o,a){if(i||(i=new jn),Ua(o))!function(e,t,n,r,i,o,a){var s=mo(e,n),u=mo(t,n),l=a.get(u);if(l)return void Hn(e,n,l);var c=o?o(s,u,n+"",e,t,a):void 0,f=void 0===c;if(f){var d=Da(u),h=!d&&ja(u),p=!d&&!h&&$a(u);c=u,d||h||p?Da(s)?c=s:Na(s)?c=vi(s):h?(f=!1,c=fi(u,!0)):p?(f=!1,c=hi(u,!0)):c=[]:Wa(u)||Ia(u)?(c=s,Ia(s)?c=as(s):Ua(s)&&!za(s)||(c=io(u))):f=!1}f&&(a.set(u,c),i(c,u,r,o,a),a.delete(u));Hn(e,n,c)}(e,t,a,n,Er,r,i);else{var s=r?r(mo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Hn(e,a,s)}}),xs)}function Pr(e,t){var n=e.length;if(n)return ao(t+=t<0?n:0,n)?e[t]:void 0}function Ir(e,t,n){t=t.length?ht(t,(function(e){return Da(e)?function(t){return fr(t,1===e.length?e[0]:e)}:e})):[Xs];var r=-1;return t=ht(t,Pt(Ki())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ar(e,(function(e,n,i){return{criteria:ht(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=pi(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Dr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=fr(e,a);n(s,a)&&Vr(o,si(a,e),s)}return o}function Lr(e,t,n,r){var i=r?_t:xt,o=-1,a=t.length,s=e;for(e===t&&(t=vi(t)),n&&(s=ht(e,Pt(n)));++o<a;)for(var u=0,l=t[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==e&&Xe.call(s,u,1),Xe.call(e,u,1);return e}function Rr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?Xe.call(e,i,1):Qr(e,i)}}return e}function Nr(e,t){return e+Qt(cn()*(t-e+1))}function jr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Qt(t/2))&&(e+=e)}while(t);return n}function Br(e,t){return xo(go(e,t,Xs),e+"")}function Fr(e){return Fn(Ms(e))}function zr(e,t){var n=Ms(e);return So(n,Zn(t,0,n.length))}function Vr(e,t,n,r){if(!Ua(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var u=Co(t[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=Ua(c)?c:ao(t[i+1])?[]:{})}Un(s,u,l),s=s[u]}return e}var Hr=mn?function(e,t){return mn.set(e,t),e}:Xs,Ur=$e?function(e,t){return $e(e,"toString",{configurable:!0,enumerable:!1,value:Us(t),writable:!0})}:Xs;function Gr(e){return So(Ms(e))}function Jr(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function Xr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Wr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ya(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return qr(e,t,Xs,n)}function qr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!==t,s=null===t,u=Ya(t),l=void 0===t;i<o;){var c=Qt((i+o)/2),f=n(e[c]),d=void 0!==f,h=null===f,p=f===f,g=Ya(f);if(a)var y=r||p;else y=l?p&&(r||d):s?p&&d&&(r||!h):u?p&&d&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);y?i=c+1:o=c}return sn(o,4294967294)}function Zr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ma(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Kr(e){return"number"==typeof e?e:Ya(e)?NaN:+e}function Yr(e){if("string"==typeof e)return e;if(Da(e))return ht(e,Yr)+"";if(Ya(e))return An?An.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $r(e,t,n){var r=-1,i=ft,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=dt;else if(o>=200){var l=t?null:ji(e);if(l)return Gt(l);a=!1,i=Dt,u=new Nn}else u=t?[]:s;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f===f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function Qr(e,t){return null==(e=yo(e,t=si(t,e)))||delete e[Co(Fo(t))]}function ei(e,t,n,r){return Vr(e,t,n(fr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Jr(e,r?0:o,r?o+1:i):Jr(e,r?o+1:0,r?i:o)}function ni(e,t){var n=e;return n instanceof In&&(n=n.value()),gt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ri(e,t,r){var i=e.length;if(i<2)return i?$r(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=Qn(a[o]||s,e[u],t,r));return $r(or(a,1),t,r)}function ii(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function oi(e){return Na(e)?e:[]}function ai(e){return"function"==typeof e?e:Xs}function si(e,t){return Da(e)?e:uo(e,t)?[e]:To(ss(e))}var ui=Br;function li(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Jr(e,t,n)}var ci=mt||function(e){return We.clearTimeout(e)};function fi(e,t){if(t)return e.slice();var n=e.length,r=Le?Le(n):new e.constructor(n);return e.copy(r),r}function di(e){var t=new e.constructor(e.byteLength);return new Pe(t).set(new Pe(e)),t}function hi(e,t){var n=t?di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function pi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=Ya(e),a=void 0!==t,s=null===t,u=t===t,l=Ya(t);if(!s&&!l&&!o&&e>t||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function gi(e,t,r,i){for(var o=-1,a=e.length,s=r.length,u=-1,l=t.length,c=an(a-s,0),f=n(l+c),d=!i;++u<l;)f[u]=t[u];for(;++o<s;)(d||o<a)&&(f[r[o]]=e[o]);for(;c--;)f[u++]=e[o++];return f}function yi(e,t,r,i){for(var o=-1,a=e.length,s=-1,u=r.length,l=-1,c=t.length,f=an(a-u,0),d=n(f+c),h=!i;++o<f;)d[o]=e[o];for(var p=o;++l<c;)d[p+l]=t[l];for(;++s<u;)(h||o<a)&&(d[p+r[s]]=e[o++]);return d}function vi(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function mi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?Wn(n,s,u):Un(n,s,u)}return n}function bi(e,t){return function(n,r){var i=Da(n)?at:Jn,o=t?t():{};return i(n,e,Ki(r,2),o)}}function wi(e){return Br((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=he(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function xi(e,t){return function(n,r){if(null==n)return n;if(!Ra(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=he(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function _i(e){return function(t,n,r){for(var i=-1,o=he(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function ki(e){return function(t){var n=zt(t=ss(t))?Wt(t):void 0,r=n?n[0]:t.charAt(0),i=n?li(n,1).join(""):t.slice(1);return r[e]()+i}}function Si(e){return function(t){return gt(zs(Is(t).replace(Ie,"")),e,"")}}function Ti(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Mn(e.prototype),r=e.apply(n,t);return Ua(r)?r:n}}function Ci(e){return function(t,n,r){var i=he(t);if(!Ra(t)){var o=Ki(n,3);t=ws(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Ai(e){return Gi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ye(o);if(i&&!s&&"wrapper"==qi(a))var s=new Pn([],!0)}for(r=s?r:n;++r<n;){var u=qi(a=t[r]),l="wrapper"==u?Wi(a):void 0;s=l&&lo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[qi(l[0])].apply(s,l[3]):1==a.length&&lo(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Da(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Oi(e,t,r,i,o,a,s,u,l,c){var f=128&t,d=1&t,h=2&t,p=24&t,g=512&t,y=h?void 0:Ti(e);return function v(){for(var m=arguments.length,b=n(m),w=m;w--;)b[w]=arguments[w];if(p)var x=Zi(v),_=Nt(b,x);if(i&&(b=gi(b,i,o,p)),a&&(b=yi(b,a,s,p)),m-=_,p&&m<c){var k=Ut(b,x);return Ri(e,t,Oi,v.placeholder,r,b,k,u,l,c-m)}var S=d?r:this,T=h?S[e]:e;return m=b.length,u?b=vo(b,u):g&&m>1&&b.reverse(),f&&l<m&&(b.length=l),this&&this!==We&&this instanceof v&&(T=y||Ti(T)),T.apply(S,b)}}function Mi(e,t){return function(n,r){return function(e,t,n,r){return ur(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Ei(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Yr(n),r=Yr(r)):(n=Kr(n),r=Kr(r)),i=e(n,r)}return i}}function Pi(e){return Gi((function(t){return t=ht(t,Pt(Ki())),Br((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Ii(e,t){var n=(t=void 0===t?" ":Yr(t)).length;if(n<2)return n?jr(t,e):t;var r=jr(t,$t(e/Xt(t)));return zt(t)?li(Wt(r),0,e).join(""):r.slice(0,e)}function Di(e){return function(t,r,i){return i&&"number"!=typeof i&&so(t,r,i)&&(r=i=void 0),t=ns(t),void 0===r?(r=t,t=0):r=ns(r),function(e,t,r,i){for(var o=-1,a=an($t((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,i=void 0===i?t<r?1:-1:ns(i),e)}}function Li(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=os(t),n=os(n)),e(t,n)}}function Ri(e,t,n,r,i,o,a,s,u,l){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var f=[e,t,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],d=n.apply(void 0,f);return lo(e)&&bo(d,f),d.placeholder=r,_o(d,e,t)}function Ni(e){var t=de[e];return function(e,n){if(e=os(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var ji=gn&&1/Gt(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Ys;function Bi(e){return function(t){var n=no(t);return n==g?Vt(t):n==b?Jt(t):function(e,t){return ht(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Fi(e,t,r,i,s,u,l,c){var f=2&t;if(!f&&"function"!=typeof e)throw new ye(o);var d=i?i.length:0;if(d||(t&=-97,i=s=void 0),l=void 0===l?l:an(rs(l),0),c=void 0===c?c:rs(c),d-=s?s.length:0,64&t){var h=i,p=s;i=s=void 0}var g=f?void 0:Wi(e),y=[e,t,r,i,s,h,p,u,l,c];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?gi(l,u,t[4]):u,e[4]=l?Ut(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?yi(l,u,t[6]):u,e[6]=l?Ut(e[5],a):t[6]);(u=t[7])&&(e[7]=u);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(y,g),e=y[0],t=y[1],r=y[2],i=y[3],s=y[4],!(c=y[9]=void 0===y[9]?f?0:e.length:an(y[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,r){var i=Ti(e);return function o(){for(var a=arguments.length,s=n(a),u=a,l=Zi(o);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:Ut(s,l);if((a-=c.length)<r)return Ri(e,t,Oi,o.placeholder,void 0,s,c,void 0,void 0,r-a);var f=this&&this!==We&&this instanceof o?i:e;return ot(f,this,s)}}(e,t,c):32!=t&&33!=t||s.length?Oi.apply(void 0,y):function(e,t,r,i){var o=1&t,a=Ti(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=i.length,f=n(c+u),d=this&&this!==We&&this instanceof t?a:e;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++s];return ot(d,o?r:this,f)}}(e,t,r,i);else var v=function(e,t,n){var r=1&t,i=Ti(e);return function t(){var o=this&&this!==We&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,r);return _o((g?Hr:bo)(v,y),e,t)}function zi(e,t,n,r){return void 0===e||Ma(e,be[n])&&!_e.call(r,n)?t:e}function Vi(e,t,n,r,i,o){return Ua(e)&&Ua(t)&&(o.set(t,e),Er(e,t,void 0,Vi,o),o.delete(t)),e}function Hi(e){return Wa(e)?void 0:e}function Ui(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=2&n?new Nn:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],g=t[f];if(r)var y=a?r(g,p,f,t,e,o):r(p,g,f,e,t,o);if(void 0!==y){if(y)continue;d=!1;break}if(h){if(!vt(t,(function(e,t){if(!Dt(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)}))){d=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Gi(e){return xo(go(e,void 0,Lo),e+"")}function Ji(e){return dr(e,ws,eo)}function Xi(e){return dr(e,xs,to)}var Wi=mn?function(e){return mn.get(e)}:Ys;function qi(e){for(var t=e.name+"",n=bn[t],r=_e.call(bn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Zi(e){return(_e.call(On,"placeholder")?On:e).placeholder}function Ki(){var e=On.iteratee||Ws;return e=e===Ws?kr:e,arguments.length?e(arguments[0],arguments[1]):e}function Yi(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function $i(e){for(var t=ws(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ho(i)]}return t}function Qi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return _r(n)?n:void 0}var eo=en?function(e){return null==e?[]:(e=he(e),ct(en(e),(function(t){return Je.call(e,t)})))}:iu,to=en?function(e){for(var t=[];e;)pt(t,eo(e)),e=Ne(e);return t}:iu,no=hr;function ro(e,t,n){for(var r=-1,i=(t=si(t,e)).length,o=!1;++r<i;){var a=Co(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ha(i)&&ao(a,i)&&(Da(e)||Ia(e))}function io(e){return"function"!=typeof e.constructor||fo(e)?{}:Mn(Ne(e))}function oo(e){return Da(e)||Ia(e)||!!(qe&&e&&e[qe])}function ao(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ue.test(e))&&e>-1&&e%1==0&&e<t}function so(e,t,n){if(!Ua(n))return!1;var r=typeof t;return!!("number"==r?Ra(n)&&ao(t,n.length):"string"==r&&t in n)&&Ma(n[t],e)}function uo(e,t){if(Da(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ya(e))||(G.test(e)||!U.test(e)||null!=t&&e in he(t))}function lo(e){var t=qi(e),n=On[t];if("function"!=typeof n||!(t in In.prototype))return!1;if(e===n)return!0;var r=Wi(n);return!!r&&e===r[0]}(dn&&no(new dn(new ArrayBuffer(1)))!=S||hn&&no(new hn)!=g||pn&&"[object Promise]"!=no(pn.resolve())||gn&&no(new gn)!=b||yn&&no(new yn)!=_)&&(no=function(e){var t=hr(e),n=t==v?e.constructor:void 0,r=n?Ao(n):"";if(r)switch(r){case wn:return S;case xn:return g;case _n:return"[object Promise]";case kn:return b;case Sn:return _}return t});var co=we?za:ou;function fo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||be)}function ho(e){return e===e&&!Ua(e)}function po(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in he(n)))}}function go(e,t,r){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=an(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=n(t+1);++o<t;)u[o]=i[o];return u[t]=r(s),ot(e,this,u)}}function yo(e,t){return t.length<2?e:fr(e,Jr(t,0,-1))}function vo(e,t){for(var n=e.length,r=sn(t.length,n),i=vi(e);r--;){var o=t[r];e[r]=ao(o,n)?i[o]:void 0}return e}function mo(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var bo=ko(Hr),wo=Yt||function(e,t){return We.setTimeout(e,t)},xo=ko(Ur);function _o(e,t,n){var r=t+"";return xo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(K,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Y);return t?t[1].split($):[]}(r),n)))}function ko(e){var t=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function So(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Nr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var To=function(e){var t=ka(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(J,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function Co(e){if("string"==typeof e||Ya(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ao(e){if(null!=e){try{return xe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Oo(e){if(e instanceof In)return e.clone();var t=new Pn(e.__wrapped__,e.__chain__);return t.__actions__=vi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Mo=Br((function(e,t){return Na(e)?Qn(e,or(t,1,Na,!0)):[]})),Eo=Br((function(e,t){var n=Fo(t);return Na(n)&&(n=void 0),Na(e)?Qn(e,or(t,1,Na,!0),Ki(n,2)):[]})),Po=Br((function(e,t){var n=Fo(t);return Na(n)&&(n=void 0),Na(e)?Qn(e,or(t,1,Na,!0),void 0,n):[]}));function Io(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),wt(e,Ki(t,3),i)}function Do(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),wt(e,Ki(t,3),i,!0)}function Lo(e){return(null==e?0:e.length)?or(e,1):[]}function Ro(e){return e&&e.length?e[0]:void 0}var No=Br((function(e){var t=ht(e,oi);return t.length&&t[0]===e[0]?vr(t):[]})),jo=Br((function(e){var t=Fo(e),n=ht(e,oi);return t===Fo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?vr(n,Ki(t,2)):[]})),Bo=Br((function(e){var t=Fo(e),n=ht(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?vr(n,void 0,t):[]}));function Fo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var zo=Br(Vo);function Vo(e,t){return e&&e.length&&t&&t.length?Lr(e,t):e}var Ho=Gi((function(e,t){var n=null==e?0:e.length,r=qn(e,t);return Rr(e,ht(t,(function(e){return ao(e,n)?+e:e})).sort(pi)),r}));function Uo(e){return null==e?e:fn.call(e)}var Go=Br((function(e){return $r(or(e,1,Na,!0))})),Jo=Br((function(e){var t=Fo(e);return Na(t)&&(t=void 0),$r(or(e,1,Na,!0),Ki(t,2))})),Xo=Br((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,$r(or(e,1,Na,!0),void 0,t)}));function Wo(e){if(!e||!e.length)return[];var t=0;return e=ct(e,(function(e){if(Na(e))return t=an(e.length,t),!0})),Mt(t,(function(t){return ht(e,Tt(t))}))}function qo(e,t){if(!e||!e.length)return[];var n=Wo(e);return null==t?n:ht(n,(function(e){return ot(t,void 0,e)}))}var Zo=Br((function(e,t){return Na(e)?Qn(e,t):[]})),Ko=Br((function(e){return ri(ct(e,Na))})),Yo=Br((function(e){var t=Fo(e);return Na(t)&&(t=void 0),ri(ct(e,Na),Ki(t,2))})),$o=Br((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,ri(ct(e,Na),void 0,t)})),Qo=Br(Wo);var ea=Br((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,qo(e,n)}));function ta(e){var t=On(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Gi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return qn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof In&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=bi((function(e,t,n){_e.call(e,n)?++e[n]:Wn(e,n,1)}));var oa=Ci(Io),aa=Ci(Do);function sa(e,t){return(Da(e)?st:er)(e,Ki(t,3))}function ua(e,t){return(Da(e)?ut:tr)(e,Ki(t,3))}var la=bi((function(e,t,n){_e.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var ca=Br((function(e,t,r){var i=-1,o="function"==typeof t,a=Ra(e)?n(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,r):mr(e,t,r)})),a})),fa=bi((function(e,t,n){Wn(e,n,t)}));function da(e,t){return(Da(e)?ht:Ar)(e,Ki(t,3))}var ha=bi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var pa=Br((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Ir(e,or(t,1),[])})),ga=Ct||function(){return We.Date.now()};function ya(e,t,n){return t=n?void 0:t,Fi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function va(e,t){var n;if("function"!=typeof t)throw new ye(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ma=Br((function(e,t,n){var r=1;if(n.length){var i=Ut(n,Zi(ma));r|=32}return Fi(e,r,t,n,i)})),ba=Br((function(e,t,n){var r=3;if(n.length){var i=Ut(n,Zi(ba));r|=32}return Fi(t,r,e,n,i)}));function wa(e,t,n){var r,i,a,s,u,l,c=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new ye(o);function p(t){var n=r,o=i;return r=i=void 0,c=t,s=e.apply(o,n)}function g(e){return c=e,u=wo(v,t),f?p(e):s}function y(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function v(){var e=ga();if(y(e))return m(e);u=wo(v,function(e){var n=t-(e-l);return d?sn(n,a-(e-c)):n}(e))}function m(e){return u=void 0,h&&r?p(e):(r=i=void 0,s)}function b(){var e=ga(),n=y(e);if(r=arguments,i=this,l=e,n){if(void 0===u)return g(l);if(d)return ci(u),u=wo(v,t),p(l)}return void 0===u&&(u=wo(v,t)),s}return t=os(t)||0,Ua(n)&&(f=!!n.leading,a=(d="maxWait"in n)?an(os(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==u&&ci(u),c=0,r=l=i=u=void 0},b.flush=function(){return void 0===u?s:m(ga())},b}var xa=Br((function(e,t){return $n(e,1,t)})),_a=Br((function(e,t,n){return $n(e,os(t)||0,n)}));function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(o);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ka.Cache||Rn),n}function Sa(e){if("function"!=typeof e)throw new ye(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Rn;var Ta=ui((function(e,t){var n=(t=1==t.length&&Da(t[0])?ht(t[0],Pt(Ki())):ht(or(t,1),Pt(Ki()))).length;return Br((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Ca=Br((function(e,t){return Fi(e,32,void 0,t,Ut(t,Zi(Ca)))})),Aa=Br((function(e,t){return Fi(e,64,void 0,t,Ut(t,Zi(Aa)))})),Oa=Gi((function(e,t){return Fi(e,256,void 0,void 0,void 0,t)}));function Ma(e,t){return e===t||e!==e&&t!==t}var Ea=Li(pr),Pa=Li((function(e,t){return e>=t})),Ia=br(function(){return arguments}())?br:function(e){return Ga(e)&&_e.call(e,"callee")&&!Je.call(e,"callee")},Da=n.isArray,La=Qe?Pt(Qe):function(e){return Ga(e)&&hr(e)==k};function Ra(e){return null!=e&&Ha(e.length)&&!za(e)}function Na(e){return Ga(e)&&Ra(e)}var ja=tn||ou,Ba=et?Pt(et):function(e){return Ga(e)&&hr(e)==f};function Fa(e){if(!Ga(e))return!1;var t=hr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wa(e)}function za(e){if(!Ua(e))return!1;var t=hr(e);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==rs(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ua(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ga(e){return null!=e&&"object"==typeof e}var Ja=tt?Pt(tt):function(e){return Ga(e)&&no(e)==g};function Xa(e){return"number"==typeof e||Ga(e)&&hr(e)==y}function Wa(e){if(!Ga(e)||hr(e)!=v)return!1;var t=Ne(e);if(null===t)return!0;var n=_e.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Ce}var qa=nt?Pt(nt):function(e){return Ga(e)&&hr(e)==m};var Za=rt?Pt(rt):function(e){return Ga(e)&&no(e)==b};function Ka(e){return"string"==typeof e||!Da(e)&&Ga(e)&&hr(e)==w}function Ya(e){return"symbol"==typeof e||Ga(e)&&hr(e)==x}var $a=it?Pt(it):function(e){return Ga(e)&&Ha(e.length)&&!!ze[hr(e)]};var Qa=Li(Cr),es=Li((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Ra(e))return Ka(e)?Wt(e):vi(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=no(e);return(t==g?Vt:t==b?Gt:Ms)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t===t?n?t-n:t:0}function is(e){return e?Zn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if(Ya(e))return NaN;if(Ua(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ua(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Et(e);var n=oe.test(e);return n||se.test(e)?Ge(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function as(e){return mi(e,xs(e))}function ss(e){return null==e?"":Yr(e)}var us=wi((function(e,t){if(fo(t)||Ra(t))mi(t,ws(t),e);else for(var n in t)_e.call(t,n)&&Un(e,n,t[n])})),ls=wi((function(e,t){mi(t,xs(t),e)})),cs=wi((function(e,t,n,r){mi(t,xs(t),e,r)})),fs=wi((function(e,t,n,r){mi(t,ws(t),e,r)})),ds=Gi(qn);var hs=Br((function(e,t){e=he(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=xs(o),s=-1,u=a.length;++s<u;){var l=a[s],c=e[l];(void 0===c||Ma(c,be[l])&&!_e.call(e,l))&&(e[l]=o[l])}return e})),ps=Br((function(e){return e.push(void 0,Vi),ot(ks,void 0,e)}));function gs(e,t,n){var r=null==e?void 0:fr(e,t);return void 0===r?n:r}function ys(e,t){return null!=e&&ro(e,t,yr)}var vs=Mi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),e[t]=n}),Us(Xs)),ms=Mi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),_e.call(e,t)?e[t].push(n):e[t]=[n]}),Ki),bs=Br(mr);function ws(e){return Ra(e)?Bn(e):Sr(e)}function xs(e){return Ra(e)?Bn(e,!0):Tr(e)}var _s=wi((function(e,t,n){Er(e,t,n)})),ks=wi((function(e,t,n,r){Er(e,t,n,r)})),Ss=Gi((function(e,t){var n={};if(null==e)return n;var r=!1;t=ht(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),mi(e,Xi(e),n),r&&(n=Kn(n,7,Hi));for(var i=t.length;i--;)Qr(n,t[i]);return n}));var Ts=Gi((function(e,t){return null==e?{}:function(e,t){return Dr(e,t,(function(t,n){return ys(e,n)}))}(e,t)}));function Cs(e,t){if(null==e)return{};var n=ht(Xi(e),(function(e){return[e]}));return t=Ki(t),Dr(e,n,(function(e,n){return t(e,n[0])}))}var As=Bi(ws),Os=Bi(xs);function Ms(e){return null==e?[]:It(e,ws(e))}var Es=Si((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Fs(ss(e).toLowerCase())}function Is(e){return(e=ss(e))&&e.replace(le,jt).replace(De,"")}var Ds=Si((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ls=Si((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Rs=ki("toLowerCase");var Ns=Si((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var js=Si((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var Bs=Si((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=ki("toUpperCase");function zs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return je.test(e)}(e)?function(e){return e.match(Re)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var Vs=Br((function(e,t){try{return ot(e,void 0,t)}catch(n){return Fa(n)?n:new i(n)}})),Hs=Gi((function(e,t){return st(t,(function(t){t=Co(t),Wn(e,t,ma(e[t],e))})),e}));function Us(e){return function(){return e}}var Gs=Ai(),Js=Ai(!0);function Xs(e){return e}function Ws(e){return kr("function"==typeof e?e:Kn(e,1))}var qs=Br((function(e,t){return function(n){return mr(n,e,t)}})),Zs=Br((function(e,t){return function(n){return mr(e,n,t)}}));function Ks(e,t,n){var r=ws(t),i=cr(t,r);null!=n||Ua(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=cr(t,ws(t)));var o=!(Ua(n)&&"chain"in n)||!!n.chain,a=za(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=vi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Ys(){}var $s=Pi(ht),Qs=Pi(lt),eu=Pi(vt);function tu(e){return uo(e)?Tt(Co(e)):function(e){return function(t){return fr(t,e)}}(e)}var nu=Di(),ru=Di(!0);function iu(){return[]}function ou(){return!1}var au=Ei((function(e,t){return e+t}),0),su=Ni("ceil"),uu=Ei((function(e,t){return e/t}),1),lu=Ni("floor");var cu=Ei((function(e,t){return e*t}),1),fu=Ni("round"),du=Ei((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new ye(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=ya,On.assign=us,On.assignIn=ls,On.assignInWith=cs,On.assignWith=fs,On.at=ds,On.before=va,On.bind=ma,On.bindAll=Hs,On.bindKey=ba,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Da(e)?e:[e]},On.chain=ta,On.chunk=function(e,t,r){t=(r?so(e,t,r):void 0===t)?1:an(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=n($t(i/t));o<i;)s[a++]=Jr(e,o,o+=t);return s},On.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},On.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(Da(r)?vi(r):[r],or(t,1))},On.cond=function(e){var t=null==e?0:e.length,n=Ki();return e=t?ht(e,(function(e){if("function"!=typeof e[1])throw new ye(o);return[n(e[0]),e[1]]})):[],Br((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},On.conforms=function(e){return function(e){var t=ws(e);return function(n){return Yn(n,e,t)}}(Kn(e,1))},On.constant=Us,On.countBy=ia,On.create=function(e,t){var n=Mn(e);return null==t?n:Xn(n,t)},On.curry=function e(t,n,r){var i=Fi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},On.curryRight=function e(t,n,r){var i=Fi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},On.debounce=wa,On.defaults=hs,On.defaultsDeep=ps,On.defer=xa,On.delay=_a,On.difference=Mo,On.differenceBy=Eo,On.differenceWith=Po,On.drop=function(e,t,n){var r=null==e?0:e.length;return r?Jr(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},On.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Jr(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},On.dropRightWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3),!0,!0):[]},On.dropWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3),!0):[]},On.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&so(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},On.filter=function(e,t){return(Da(e)?ct:ir)(e,Ki(t,3))},On.flatMap=function(e,t){return or(da(e,t),1)},On.flatMapDeep=function(e,t){return or(da(e,t),1/0)},On.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),or(da(e,t),n)},On.flatten=Lo,On.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},On.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:rs(t)):[]},On.flip=function(e){return Fi(e,512)},On.flow=Gs,On.flowRight=Js,On.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},On.functions=function(e){return null==e?[]:cr(e,ws(e))},On.functionsIn=function(e){return null==e?[]:cr(e,xs(e))},On.groupBy=la,On.initial=function(e){return(null==e?0:e.length)?Jr(e,0,-1):[]},On.intersection=No,On.intersectionBy=jo,On.intersectionWith=Bo,On.invert=vs,On.invertBy=ms,On.invokeMap=ca,On.iteratee=Ws,On.keyBy=fa,On.keys=ws,On.keysIn=xs,On.map=da,On.mapKeys=function(e,t){var n={};return t=Ki(t,3),ur(e,(function(e,r,i){Wn(n,t(e,r,i),e)})),n},On.mapValues=function(e,t){var n={};return t=Ki(t,3),ur(e,(function(e,r,i){Wn(n,r,t(e,r,i))})),n},On.matches=function(e){return Or(Kn(e,1))},On.matchesProperty=function(e,t){return Mr(e,Kn(t,1))},On.memoize=ka,On.merge=_s,On.mergeWith=ks,On.method=qs,On.methodOf=Zs,On.mixin=Ks,On.negate=Sa,On.nthArg=function(e){return e=rs(e),Br((function(t){return Pr(t,e)}))},On.omit=Ss,On.omitBy=function(e,t){return Cs(e,Sa(Ki(t)))},On.once=function(e){return va(2,e)},On.orderBy=function(e,t,n,r){return null==e?[]:(Da(t)||(t=null==t?[]:[t]),Da(n=r?void 0:n)||(n=null==n?[]:[n]),Ir(e,t,n))},On.over=$s,On.overArgs=Ta,On.overEvery=Qs,On.overSome=eu,On.partial=Ca,On.partialRight=Aa,On.partition=ha,On.pick=Ts,On.pickBy=Cs,On.property=tu,On.propertyOf=function(e){return function(t){return null==e?void 0:fr(e,t)}},On.pull=zo,On.pullAll=Vo,On.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Lr(e,t,Ki(n,2)):e},On.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Lr(e,t,void 0,n):e},On.pullAt=Ho,On.range=nu,On.rangeRight=ru,On.rearg=Oa,On.reject=function(e,t){return(Da(e)?ct:ir)(e,Sa(Ki(t,3)))},On.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Ki(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Rr(e,i),n},On.rest=function(e,t){if("function"!=typeof e)throw new ye(o);return Br(e,t=void 0===t?t:rs(t))},On.reverse=Uo,On.sampleSize=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),(Da(e)?zn:zr)(e,t)},On.set=function(e,t,n){return null==e?e:Vr(e,t,n)},On.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Vr(e,t,n,r)},On.shuffle=function(e){return(Da(e)?Vn:Gr)(e)},On.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&so(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),Jr(e,t,n)):[]},On.sortBy=pa,On.sortedUniq=function(e){return e&&e.length?Zr(e):[]},On.sortedUniqBy=function(e,t){return e&&e.length?Zr(e,Ki(t,2)):[]},On.split=function(e,t,n){return n&&"number"!=typeof n&&so(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!qa(t))&&!(t=Yr(t))&&zt(e)?li(Wt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new ye(o);return t=null==t?0:an(rs(t),0),Br((function(n){var r=n[t],i=li(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Jr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Jr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Jr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ye(o);return Ua(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:r,maxWait:t,trailing:i})},On.thru=na,On.toArray=ts,On.toPairs=As,On.toPairsIn=Os,On.toPath=function(e){return Da(e)?ht(e,Co):Ya(e)?[e]:vi(To(ss(e)))},On.toPlainObject=as,On.transform=function(e,t,n){var r=Da(e),i=r||ja(e)||$a(e);if(t=Ki(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ua(e)&&za(o)?Mn(Ne(e)):{}}return(i?st:ur)(e,(function(e,r,i){return t(n,e,r,i)})),n},On.unary=function(e){return ya(e,1)},On.union=Go,On.unionBy=Jo,On.unionWith=Xo,On.uniq=function(e){return e&&e.length?$r(e):[]},On.uniqBy=function(e,t){return e&&e.length?$r(e,Ki(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?$r(e,void 0,t):[]},On.unset=function(e,t){return null==e||Qr(e,t)},On.unzip=Wo,On.unzipWith=qo,On.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},On.values=Ms,On.valuesIn=function(e){return null==e?[]:It(e,xs(e))},On.without=Zo,On.words=zs,On.wrap=function(e,t){return Ca(ai(t),e)},On.xor=Ko,On.xorBy=Yo,On.xorWith=$o,On.zip=Qo,On.zipObject=function(e,t){return ii(e||[],t||[],Un)},On.zipObjectDeep=function(e,t){return ii(e||[],t||[],Vr)},On.zipWith=ea,On.entries=As,On.entriesIn=Os,On.extend=ls,On.extendWith=cs,Ks(On,On),On.add=au,On.attempt=Vs,On.camelCase=Es,On.capitalize=Ps,On.ceil=su,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))===n?n:0),void 0!==t&&(t=(t=os(t))===t?t:0),Zn(os(e),t,n)},On.clone=function(e){return Kn(e,4)},On.cloneDeep=function(e){return Kn(e,5)},On.cloneDeepWith=function(e,t){return Kn(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Kn(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Yn(e,t,ws(t))},On.deburr=Is,On.defaultTo=function(e,t){return null==e||e!==e?t:e},On.divide=uu,On.endsWith=function(e,t,n){e=ss(e),t=Yr(t);var r=e.length,i=n=void 0===n?r:Zn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},On.eq=Ma,On.escape=function(e){return(e=ss(e))&&F.test(e)?e.replace(j,Bt):e},On.escapeRegExp=function(e){return(e=ss(e))&&W.test(e)?e.replace(X,"\\$&"):e},On.every=function(e,t,n){var r=Da(e)?lt:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Ki(t,3))},On.find=oa,On.findIndex=Io,On.findKey=function(e,t){return bt(e,Ki(t,3),ur)},On.findLast=aa,On.findLastIndex=Do,On.findLastKey=function(e,t){return bt(e,Ki(t,3),lr)},On.floor=lu,On.forEach=sa,On.forEachRight=ua,On.forIn=function(e,t){return null==e?e:ar(e,Ki(t,3),xs)},On.forInRight=function(e,t){return null==e?e:sr(e,Ki(t,3),xs)},On.forOwn=function(e,t){return e&&ur(e,Ki(t,3))},On.forOwnRight=function(e,t){return e&&lr(e,Ki(t,3))},On.get=gs,On.gt=Ea,On.gte=Pa,On.has=function(e,t){return null!=e&&ro(e,t,gr)},On.hasIn=ys,On.head=Ro,On.identity=Xs,On.includes=function(e,t,n,r){e=Ra(e)?e:Ms(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Ka(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&xt(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),xt(e,t,i)},On.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=os(e),t,n)},On.invoke=bs,On.isArguments=Ia,On.isArray=Da,On.isArrayBuffer=La,On.isArrayLike=Ra,On.isArrayLikeObject=Na,On.isBoolean=function(e){return!0===e||!1===e||Ga(e)&&hr(e)==c},On.isBuffer=ja,On.isDate=Ba,On.isElement=function(e){return Ga(e)&&1===e.nodeType&&!Wa(e)},On.isEmpty=function(e){if(null==e)return!0;if(Ra(e)&&(Da(e)||"string"==typeof e||"function"==typeof e.splice||ja(e)||$a(e)||Ia(e)))return!e.length;var t=no(e);if(t==g||t==b)return!e.size;if(fo(e))return!Sr(e).length;for(var n in e)if(_e.call(e,n))return!1;return!0},On.isEqual=function(e,t){return wr(e,t)},On.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?wr(e,t,void 0,n):!!r},On.isError=Fa,On.isFinite=function(e){return"number"==typeof e&&nn(e)},On.isFunction=za,On.isInteger=Va,On.isLength=Ha,On.isMap=Ja,On.isMatch=function(e,t){return e===t||xr(e,t,$i(t))},On.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,xr(e,t,$i(t),n)},On.isNaN=function(e){return Xa(e)&&e!=+e},On.isNative=function(e){if(co(e))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _r(e)},On.isNil=function(e){return null==e},On.isNull=function(e){return null===e},On.isNumber=Xa,On.isObject=Ua,On.isObjectLike=Ga,On.isPlainObject=Wa,On.isRegExp=qa,On.isSafeInteger=function(e){return Va(e)&&e>=-9007199254740991&&e<=9007199254740991},On.isSet=Za,On.isString=Ka,On.isSymbol=Ya,On.isTypedArray=$a,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return Ga(e)&&no(e)==_},On.isWeakSet=function(e){return Ga(e)&&"[object WeakSet]"==hr(e)},On.join=function(e,t){return null==e?"":rn.call(e,t)},On.kebabCase=Ds,On.last=Fo,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):wt(e,kt,i,!0)},On.lowerCase=Ls,On.lowerFirst=Rs,On.lt=Qa,On.lte=es,On.max=function(e){return e&&e.length?rr(e,Xs,pr):void 0},On.maxBy=function(e,t){return e&&e.length?rr(e,Ki(t,2),pr):void 0},On.mean=function(e){return St(e,Xs)},On.meanBy=function(e,t){return St(e,Ki(t,2))},On.min=function(e){return e&&e.length?rr(e,Xs,Cr):void 0},On.minBy=function(e,t){return e&&e.length?rr(e,Ki(t,2),Cr):void 0},On.stubArray=iu,On.stubFalse=ou,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=cu,On.nth=function(e,t){return e&&e.length?Pr(e,rs(t)):void 0},On.noConflict=function(){return We._===this&&(We._=Ae),this},On.noop=Ys,On.now=ga,On.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Xt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ii(Qt(i),n)+e+Ii($t(i),n)},On.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Xt(e):0;return t&&r<t?e+Ii(t-r,n):e},On.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?Xt(e):0;return t&&r<t?Ii(t-r,n)+e:e},On.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ln(ss(e).replace(q,""),t||0)},On.random=function(e,t,n){if(n&&"boolean"!=typeof n&&so(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=cn();return sn(e+i*(t-e+Ue("1e-"+((i+"").length-1))),t)}return Nr(e,t)},On.reduce=function(e,t,n){var r=Da(e)?gt:At,i=arguments.length<3;return r(e,Ki(t,4),n,i,er)},On.reduceRight=function(e,t,n){var r=Da(e)?yt:At,i=arguments.length<3;return r(e,Ki(t,4),n,i,tr)},On.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),jr(ss(e),t)},On.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[Co(t[r])];void 0===o&&(r=i,o=n),e=za(o)?o.call(e):o}return e},On.round=fu,On.runInContext=e,On.sample=function(e){return(Da(e)?Fn:Fr)(e)},On.size=function(e){if(null==e)return 0;if(Ra(e))return Ka(e)?Xt(e):e.length;var t=no(e);return t==g||t==b?e.size:Sr(e).length},On.snakeCase=Ns,On.some=function(e,t,n){var r=Da(e)?vt:Xr;return n&&so(e,t,n)&&(t=void 0),r(e,Ki(t,3))},On.sortedIndex=function(e,t){return Wr(e,t)},On.sortedIndexBy=function(e,t,n){return qr(e,t,Ki(n,2))},On.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Wr(e,t);if(r<n&&Ma(e[r],t))return r}return-1},On.sortedLastIndex=function(e,t){return Wr(e,t,!0)},On.sortedLastIndexBy=function(e,t,n){return qr(e,t,Ki(n,2),!0)},On.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Wr(e,t,!0)-1;if(Ma(e[n],t))return n}return-1},On.startCase=js,On.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Zn(rs(n),0,e.length),t=Yr(t),e.slice(n,n+t.length)==t},On.subtract=du,On.sum=function(e){return e&&e.length?Ot(e,Xs):0},On.sumBy=function(e,t){return e&&e.length?Ot(e,Ki(t,2)):0},On.template=function(e,t,n){var r=On.templateSettings;n&&so(e,t,n)&&(t=void 0),e=ss(e),t=cs({},t,r,zi);var o,a,s=cs({},t.imports,r.imports,zi),u=ws(s),l=It(s,u),c=0,f=t.interpolate||ce,d="__p += '",h=pe((t.escape||ce).source+"|"+f.source+"|"+(f===H?ne:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),p="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fe+"]")+"\n";e.replace(h,(function(t,n,r,i,s,u){return r||(r=i),d+=e.slice(c,u).replace(fe,Ft),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),d+="';\n";var g=_e.call(t,"variable")&&t.variable;if(g){if(ee.test(g))throw new i("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(D,""):d).replace(L,"$1").replace(R,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=Vs((function(){return Z(u,p+"return "+d).apply(void 0,l)}));if(y.source=d,Fa(y))throw y;return y},On.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=Mt(r,t=Ki(t));++n<e;)t(n);return i},On.toFinite=ns,On.toInteger=rs,On.toLength=is,On.toLower=function(e){return ss(e).toLowerCase()},On.toNumber=os,On.toSafeInteger=function(e){return e?Zn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},On.toString=ss,On.toUpper=function(e){return ss(e).toUpperCase()},On.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return Et(e);if(!e||!(t=Yr(t)))return e;var r=Wt(e),i=Wt(t);return li(r,Lt(r,i),Rt(r,i)+1).join("")},On.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.slice(0,qt(e)+1);if(!e||!(t=Yr(t)))return e;var r=Wt(e);return li(r,0,Rt(r,Wt(t))+1).join("")},On.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(q,"");if(!e||!(t=Yr(t)))return e;var r=Wt(e);return li(r,Lt(r,Wt(t))).join("")},On.truncate=function(e,t){var n=30,r="...";if(Ua(t)){var i="separator"in t?t.separator:i;n="length"in t?rs(t.length):n,r="omission"in t?Yr(t.omission):r}var o=(e=ss(e)).length;if(zt(e)){var a=Wt(e);o=a.length}if(n>=o)return e;var s=n-Xt(r);if(s<1)return r;var u=a?li(a,0,s).join(""):e.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),qa(i)){if(e.slice(s).search(i)){var l,c=u;for(i.global||(i=pe(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,void 0===f?s:f)}}else if(e.indexOf(Yr(i),s)!=s){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},On.unescape=function(e){return(e=ss(e))&&B.test(e)?e.replace(N,Zt):e},On.uniqueId=function(e){var t=++ke;return ss(e)+t},On.upperCase=Bs,On.upperFirst=Fs,On.each=sa,On.eachRight=ua,On.first=Ro,Ks(On,function(){var e={};return ur(On,(function(t,n){_e.call(On.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),On.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),st(["drop","take"],(function(e,t){In.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new In(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},In.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;In.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ki(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");In.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");In.prototype[e]=function(){return this.__filtered__?new In(this):this[n](1)}})),In.prototype.compact=function(){return this.filter(Xs)},In.prototype.find=function(e){return this.filter(e).head()},In.prototype.findLast=function(e){return this.reverse().find(e)},In.prototype.invokeMap=Br((function(e,t){return"function"==typeof e?new In(this):this.map((function(n){return mr(n,e,t)}))})),In.prototype.reject=function(e){return this.filter(Sa(Ki(e)))},In.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new In(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},In.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},ur(In.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=On[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(On.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof In,u=a[0],l=s||Da(t),c=function(e){var t=i.apply(On,pt([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,d=!!this.__actions__.length,h=o&&!f,p=s&&!d;if(!o&&l){t=p?t:new In(this);var g=e.apply(t,a);return g.__actions__.push({func:na,args:[c],thisArg:void 0}),new Pn(g,f)}return h&&p?e.apply(this,a):(g=this.thru(c),h?r?g.value()[0]:g.value():g)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Da(i)?i:[],e)}return this[n]((function(n){return t.apply(Da(n)?n:[],e)}))}})),ur(In.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";_e.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}})),bn[Oi(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var e=new In(this.__wrapped__);return e.__actions__=vi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=vi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=vi(this.__views__),e},In.prototype.reverse=function(){if(this.__filtered__){var e=new In(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},In.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Da(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,h=sn(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return ni(e,this.__actions__);var p=[];e:for(;u--&&d<h;){for(var g=-1,y=e[l+=t];++g<f;){var v=c[g],m=v.iteratee,b=v.type,w=m(y);if(2==b)y=w;else if(!w){if(1==b)continue e;break e}}p[d++]=y}return p},On.prototype.at=ra,On.prototype.chain=function(){return ta(this)},On.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},On.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof En;){var r=Oo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof In){var t=e;return this.__actions__.length&&(t=new In(this)),(t=t.reverse()).__actions__.push({func:na,args:[Uo],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Uo)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,Ze&&(On.prototype[Ze]=function(){return this}),On}();We._=Kt,void 0===(i=function(){return Kt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(79),n(189)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return rt})),n.d(t,"b",(function(){return tt}));var r=n(0),i=n.n(r),o=n(184),a=n(64),s=n(35),u=n(20),l=n(18),c=n.n(l);function f(e,t){return function(e,t){var n=Object(r.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var d={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},h=function(e){var t=e.children;return r.createElement(r.Fragment,null,r.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:d}),t,t&&r.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:d}))};h.propTypes={},h.defaultProps={children:null};var p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function g(e){return e}function y(e,t){void 0===t&&(t=g);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function v(e,t){return void 0===t&&(t=g),y(e,t)}function m(e){void 0===e&&(e={});var t=y(null);return t.options=p({async:!0,ssr:!1},e),t}var b=v({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),w=v(),x=v(),_=m({async:!0}),k=[],S=r.forwardRef((function(e,t){var n,i=r.useState(),o=i[0],a=i[1],s=r.useRef(),l=r.useRef(!1),c=r.useRef(null),h=e.children,p=e.disabled,g=e.noFocusGuards,y=e.persistentFocus,v=e.crossFrame,m=e.autoFocus,x=(e.allowTextSelection,e.group),S=e.className,T=e.whiteList,C=e.shards,A=void 0===C?k:C,O=e.as,M=void 0===O?"div":O,E=e.lockProps,P=void 0===E?{}:E,I=e.sideCar,D=e.returnFocus,L=e.onActivation,R=e.onDeactivation,N=r.useState({})[0],j=r.useCallback((function(){c.current=c.current||document&&document.activeElement,s.current&&L&&L(s.current),l.current=!0}),[L]),B=r.useCallback((function(){l.current=!1,R&&R(s.current)}),[R]),F=r.useCallback((function(e){var t=c.current;if(Boolean(D)&&t&&t.focus){var n="object"===typeof D?D:void 0;c.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[D]),z=r.useCallback((function(e){l.current&&b.useMedium(e)}),[]),V=w.useMedium,H=r.useCallback((function(e){s.current!==e&&(s.current=e,a(e))}),[]);var U=Object(u.a)(((n={})["data-focus-lock-disabled"]=p&&"disabled",n["data-focus-lock"]=x,n),P),G=!0!==g,J=G&&"tail"!==g,X=f([t,H]);return r.createElement(r.Fragment,null,G&&[r.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:p?-1:0,style:d}),r.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:d})],!p&&r.createElement(I,{id:N,sideCar:_,observed:o,disabled:p,persistentFocus:y,crossFrame:v,autoFocus:m,whiteList:T,shards:A,onActivation:j,onDeactivation:B,returnFocus:F}),r.createElement(M,Object(u.a)({ref:X},U,{className:S,onBlur:V,onFocus:z}),h),J&&r.createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:d}))}));S.propTypes={},S.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var T=S,C=n(47),A=n(180);var O=function(e,t){return function(n){var o,a=[];function s(){o=e(a.map((function(e){return e.props}))),t(o)}var u=function(e){function t(){return e.apply(this,arguments)||this}Object(C.a)(t,e),t.peek=function(){return o};var r=t.prototype;return r.componentDidMount=function(){a.push(this),s()},r.componentDidUpdate=function(){s()},r.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),s()},r.render=function(){return i.a.createElement(n,this.props)},t}(r.PureComponent);return Object(A.a)(u,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),u}},M=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},E=function(e){return Array.isArray(e)?e:[e]},P=function(e){return E(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute("data-focus-lock");return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(M(function e(t){return t.parentNode?e(t.parentNode):t}(t).querySelectorAll('[data-focus-lock="'+n+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),e}),[])},I=function(e){return Boolean(M(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},D=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&P(e).reduce((function(e,n){return e||n.contains(t)||I(n)}),!1)},L=function(e){return"INPUT"===e.tagName&&"radio"===e.type},R=function(e,t){return L(e)&&e.name?function(e,t){return t.filter(L).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},N=function(e){return e[0]&&e.length>1?R(e[0],e):e[0]},j=function(e,t){return e.length>1?e.indexOf(R(e[t],e)):t},B=function e(t,n){var r=t.get(n);if(void 0!==r)return r;var i=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!((n=window.getComputedStyle(e,null))&&n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility")))&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode);var n}(n,e.bind(void 0,t));return t.set(n,i),i},F=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},z=function(e){return!F(e)},V=function(e){return Boolean(e)},H=function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],s=F(n);if(!(e.indexOf(n)>=0)){var u=t.indexOf(n),l=r?t.indexOf(r):u,c=r?e.indexOf(r):-1,f=u-l,d=t.indexOf(o),h=t.indexOf(a),p=function(e){var t=new Set;return e.forEach((function(n){return t.add(R(n,e))})),e.filter((function(e){return t.has(e)}))}(t),g=p.indexOf(n)-(r?p.indexOf(r):u),y=j(e,0),v=j(e,i-1);return-1===u||-1===c?"NEW_FOCUS":!f&&c>=0?c:u<=d&&s&&Math.abs(f)>1?v:u>=h&&s&&Math.abs(f)>1?y:f&&Math.abs(g)>1?c:u<=d?v:u>h?y:f?Math.abs(f)>1?c:(i+c+f)%i:void 0}},U=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},G=function(e,t,n){return M(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(U)},J=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),X=J+", [data-focus-guard]",W=function(e,t){return e.reduce((function(e,n){return e.concat(M(n.querySelectorAll(t?X:J)),n.parentNode?M(n.parentNode.querySelectorAll(J)).filter((function(e){return e===n})):[])}),[])},q=function(e,t){return M(e).filter((function(e){return B(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},Z=function(e,t,n){return G(q(W(e,n),t),!0,n)},K=function(e,t){return G(q(W(e),t),!1)},Y=function(e,t){return q(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return M(t).map((function(e){return W([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},$=function e(t,n){return void 0===n&&(n=[]),n.push(t),t.parentNode&&e(t.parentNode,n),n},Q=function(e,t){for(var n=$(e),r=$(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},ee=function(e,t,n){var r=E(e),i=E(t),o=r[0],a=!1;return i.filter(Boolean).forEach((function(e){a=Q(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Q(o,e);t&&(a=!a||t.contains(a)?t:Q(t,a))}))})),a},te=function(e,t){var n=document&&document.activeElement,r=P(e).filter(z),i=ee(n||e,e,r),o=new Map,a=K(r,o),s=Z(r,o).filter((function(e){var t=e.node;return z(t)}));if(s[0]||(s=a)[0]){var u,l=K([i],o).map((function(e){return e.node})),c=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(V)}(l,s),f=c.map((function(e){return e.node})),d=H(f,l,n,t);if("NEW_FOCUS"===d){var h=a.map((function(e){return e.node})).filter((u=function(e,t){return e.reduce((function(e,n){return e.concat(Y(n,t))}),[])}(r,o),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||u.indexOf(e)>=0}));return{node:h&&h.length?N(h):N(f)}}return void 0===d?d:c[d]}},ne=0,re=!1,ie=function(e,t){var n,r=te(e,t);if(!re&&r){if(ne>2)return re=!0,void setTimeout((function(){re=!1}),1);ne++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),ne--}};function oe(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var ae=function(){return document&&document.activeElement===document.body||document&&M(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},se=null,ue=null,le=null,ce=!1,fe=function(){return!0};function de(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var he=function(e){return e&&"current"in e?e.current:e},pe=function(){var e,t=!1;if(se){var n=se,r=n.observed,i=n.persistentFocus,o=n.autoFocus,a=n.shards,s=n.crossFrame,u=r||le&&le.portaledElement,l=document&&document.activeElement;if(u){var c=[u].concat(a.map(he).filter(Boolean));if(l&&!function(e){return(se.whiteList||fe)(e)}(l)||(i||(s?Boolean(ce):"meanwhile"===ce)||!ae()||!ue&&o)&&(!u||D(c)||(e=l,le&&le.portaledElement===e)||(document&&!ue&&l&&!o?(l.blur&&l.blur(),document.body.focus()):(t=ie(c,ue),le={})),ce=!1,ue=document&&document.activeElement),document){var f=document&&document.activeElement,d=function(e){var t=P(e).filter(z),n=ee(e,e,t),r=new Map,i=Z([n],r,!0),o=Z(t,r).filter((function(e){var t=e.node;return z(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:F(t)}}))}(c),h=d.map((function(e){return e.node})).indexOf(f);h>-1&&(d.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),de(h,d.length,1,d),de(h,-1,-1,d))}}}return t},ge=function(e){pe()&&e&&(e.stopPropagation(),e.preventDefault())},ye=function(){return oe(pe)},ve=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(le={observerNode:n,portaledElement:t})},me=function(){ce="just",setTimeout((function(){ce="meanwhile"}),0)};b.assignSyncMedium(ve),w.assignMedium(ye),x.assignMedium((function(e){return e({moveFocusInside:ie,focusInside:D})}));var be=O((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!se&&(document.addEventListener("focusin",ge,!0),document.addEventListener("focusout",ye),window.addEventListener("blur",me));var n=se,r=n&&t&&t.id===n.id;se=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(ue=null,r&&n.observed===t.observed||t.onActivation(),pe(),oe(pe)):(document.removeEventListener("focusin",ge,!0),document.removeEventListener("focusout",ye),window.removeEventListener("blur",me),ue=null)}))((function(){return null})),we=r.forwardRef((function(e,t){return r.createElement(T,Object(u.a)({sideCar:be,ref:t},e))})),xe=T.propTypes||{};xe.sideCar,Object(s.a)(xe,["sideCar"]);we.propTypes={};var _e=we;var ke=function(){return(ke=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var Se=m(),Te=function(){},Ce=r.forwardRef((function(e,t){var n=r.useRef(null),i=r.useState({onScrollCapture:Te,onWheelCapture:Te,onTouchMoveCapture:Te}),o=i[0],a=i[1],s=e.forwardProps,u=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noIsolation,y=e.inert,v=e.allowPinchZoom,m=e.as,b=void 0===m?"div":m,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=p,_=f([n,t]),k=ke({},w,o);return r.createElement(r.Fragment,null,d&&r.createElement(x,{sideCar:Se,removeScrollBar:c,shards:h,noIsolation:g,inert:y,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),s?r.cloneElement(r.Children.only(u),ke({},k,{ref:_})):r.createElement(b,ke({},k,{className:l,ref:_}),u))}));Ce.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ce.classNames={fullWidth:"width-before-scroll-bar",zeroRight:"right-scroll-bar-position"};var Ae,Oe=function(e){var t=e.sideCar,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return r.createElement(i,p({},n))};Oe.isSideCarExport=!0;function Me(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ae||n.nc;return t&&e.setAttribute("nonce",t),e}var Ee=function(){var e=0,t=null;return{add:function(n){var r,i;0==e&&(t=Me())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Pe=function(){var e=function(){var e=Ee();return function(t){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[])}}();return function(t){var n=t.styles;return e(n),null}},Ie={left:0,top:0,right:0,gap:0},De=function(e){return parseInt(e||"",10)||0},Le=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Ie;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[De(n),De(r),De(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Re=Pe(),Ne=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .with-scroll-bars-hidden {\n overflow: hidden "+r+";\n padding-right: "+s+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[t&&"position: relative "+r+";","margin"===n&&"\n padding-left: "+i+"px;\n padding-top: "+o+"px;\n padding-right: "+a+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+s+"px "+r+";\n ","padding"===n&&"padding-right: "+s+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n .right-scroll-bar-position {\n right: "+s+"px "+r+";\n }\n \n .width-before-scroll-bar {\n margin-right: "+s+"px "+r+";\n }\n \n .right-scroll-bar-position .right-scroll-bar-position {\n right: 0 "+r+";\n }\n \n .width-before-scroll-bar .width-before-scroll-bar {\n margin-right: 0 "+r+";\n }\n \n body {\n --removed-body-scroll-bar-size: "+s+"px;\n }\n"},je=function(e){var t=r.useState(Le(e.gapMode)),n=t[0],i=t[1];r.useEffect((function(){i(Le(e.gapMode))}),[e.gapMode]);var o=e.noRelative,a=e.noImportant,s=e.gapMode,u=void 0===s?"margin":s;return r.createElement(Re,{styles:Ne(n,!o,u,a?"":"!important")})},Be=function(e,t){var n=t;do{if(Fe(e,n)){var r=ze(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Fe=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"range"===e.type||"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},ze=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Ve=!1;if("undefined"!==typeof window)try{var He=Object.defineProperty({},"passive",{get:function(){return Ve=!0,!0}});window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(it){Ve=!1}var Ue=!!Ve&&{passive:!1},Ge=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Je=function(e){return[e.deltaX,e.deltaY]},Xe=function(e){return e&&"current"in e?e.current:e},We=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},qe=0,Ze=[];var Ke,Ye=(Ke=function(e){var t=r.useRef([]),n=r.useRef([0,0]),i=r.useRef(),o=r.useState(qe++)[0],a=r.useState((function(){return Pe()}))[0],s=r.useRef(e);r.useEffect((function(){s.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Xe)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var r,o=Ge(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-o[0],l="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,f=Math.abs(u)>Math.abs(l)?"h":"v",d=Be(f,c);if(!d)return!0;if(d?r=f:(r="v"===f?"h":"v",d=Be(f,c)),!d)return!1;if(!i.current&&"changedTouches"in e&&(u||l)&&(i.current=r),!r)return!0;var h=i.current||r;return function(e,t,n,r,i){var o=r,a=n.target,s=t.contains(a),u=!1,l=o>0,c=0,f=0;do{var d=ze(e,a),h=d[0],p=d[1]-d[2]-h;(h||p)&&Fe(e,a)&&(c+=p,f+=h),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&(i&&0===c||!i&&o>c)||!l&&(i&&0===f||!i&&-o>f))&&(u=!0),u}(h,t,e,"h"===h?u:l,!0)}),[]),l=r.useCallback((function(e){var n=e;if(Ze.length&&Ze[Ze.length-1]===a){var r="deltaY"in n?Je(n):Ge(n),i=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i}))[0];if(i&&i.should)n.preventDefault();else if(!i){var o=(s.current.shards||[]).map(Xe).filter(Boolean).filter((function(e){return e.contains(n.target)}));(o.length>0?u(n,o[0]):!s.current.noIsolation)&&n.preventDefault()}}}),[]),c=r.useCallback((function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),f=r.useCallback((function(e){n.current=Ge(e),i.current=void 0}),[]),d=r.useCallback((function(t){c(t.type,Je(t),t.target,u(t,e.lockRef.current))}),[]),h=r.useCallback((function(t){c(t.type,Ge(t),t.target,u(t,e.lockRef.current))}),[]);r.useEffect((function(){return Ze.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ue),document.addEventListener("touchmove",l,Ue),document.addEventListener("touchstart",f,Ue),function(){Ze=Ze.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,Ue),document.removeEventListener("touchmove",l,Ue),document.removeEventListener("touchstart",f,Ue)}}),[]);var p=e.removeScrollBar,g=e.inert;return r.createElement(r.Fragment,null,g?r.createElement(a,{styles:We(o)}):null,p?r.createElement(je,{gapMode:"margin"}):null)},Se.useMedium(Ke),Oe),$e=r.forwardRef((function(e,t){return r.createElement(Ce,ke({},e,{ref:t,sideCar:Ye}))}));$e.classNames=Ce.classNames;var Qe=$e;function et(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}c.a.bool,c.a.bool,c.a.bool,c.a.func;var tt=Object(r.forwardRef)((function(e,t){var n=e.isOpen,s=void 0===n||n,u=et(e,["isOpen"]);return Object(r.useEffect)((function(){return Object(a.a)("dialog")}),[]),Object(r.useEffect)((function(){s?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame((function(){window.__REACH_DISABLE_TOOLTIPS=!1}))}),[s]),s?i.a.createElement(o.a,{"data-reach-dialog-wrapper":""},i.a.createElement(nt,Object.assign({ref:t},u))):null}));var nt=Object(r.forwardRef)((function(e,t){var n=e.allowPinchZoom,o=e.dangerouslyBypassFocusLock,s=void 0!==o&&o,u=e.dangerouslyBypassScrollLock,l=void 0!==u&&u,c=e.initialFocusRef,f=e.onClick,d=e.onDismiss,h=void 0===d?a.d:d,p=e.onKeyDown,g=e.onMouseDown,y=e.unstable_lockFocusAcrossFrames,v=void 0===y||y,m=et(e,["allowPinchZoom","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"]),b=Object(r.useRef)(null),w=Object(r.useRef)(null),x=Object(a.e)(w,t),_=Object(r.useCallback)((function(){c&&c.current&&c.current.focus()}),[c]);return Object(r.useEffect)((function(){return w.current?function(e){var t=[],n=[],r=Object(a.b)(e)||document;if(!e)return a.d;return Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var i,o;if(r!==(null===(i=e.parentNode)||void 0===i||null===(o=i.parentNode)||void 0===o?void 0:o.parentNode)){var a=r.getAttribute("aria-hidden");null!==a&&"false"!==a||(t.push(a),n.push(r),r.setAttribute("aria-hidden","true"))}})),function(){n.forEach((function(e,n){var r=t[n];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}}(w.current):void 0}),[]),i.a.createElement(_e,{autoFocus:!0,returnFocus:!0,onActivation:_,disabled:s,crossFrame:v},i.a.createElement(Qe,{allowPinchZoom:n,enabled:!l},i.a.createElement("div",Object.assign({},m,{ref:x,"data-reach-dialog-overlay":"",onClick:Object(a.g)(f,(function(e){b.current===e.target&&(e.stopPropagation(),h(e))})),onKeyDown:Object(a.g)(p,(function(e){"Escape"===e.key&&(e.stopPropagation(),h(e))})),onMouseDown:Object(a.g)(g,(function(e){b.current=e.target}))}))))}));var rt=Object(r.forwardRef)((function(e,t){var n=e.onClick,r=(e.onKeyDown,et(e,["onClick","onKeyDown"]));return i.a.createElement("div",Object.assign({"aria-modal":"true",role:"dialog",tabIndex:-1},r,{ref:t,"data-reach-dialog-content":"",onClick:Object(a.g)(n,(function(e){e.stopPropagation()}))}))}))},function(e,t,n){"use strict";var r=n(62),i=n.n(r),o=n(55),a=n.n(o),s=n(49),u=n.n(s),l=n(50),c=n.n(l),f=n(91),d=n.n(f),h=n(98),p=n.n(h),g=n(99),y=n.n(g),v=n(57),m=n.n(v),b=n(294),w=n.n(b),x={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var n;console&&console[e]&&(n=console)[e].apply(n,w()(t))}},_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,e),this.init(t,n)}return c()(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||x,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"===typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,a()({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),k=function(){function e(){u()(this,e),this.observers={}}return c()(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){var n=this;this.observers[e]&&this.observers[e].forEach((function(){if(t){var r=n.observers[e].indexOf(t);r>-1&&n.observers[e].splice(r,1)}else delete n.observers[e]}))}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function S(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function T(e){return null==e?"":""+e}function C(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function A(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"===typeof e}for(var o="string"!==typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return i()?{}:{obj:e,k:r(o.shift())}}function O(e,t,n){var r=A(e,t,Object);r.obj[r.k]=n}function M(e,t){var n=A(e,t),r=n.obj,i=n.k;if(r)return r[i]}function E(e,t,n){for(var r in t)r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):E(e[r],t[r],n):e[r]=t[r];return e}function P(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(function(e){return I[e]})):e}var L=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return u()(this,t),n=d()(this,p()(t).call(this)),k.call(m()(m()(n))),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return y()(t,e),c()(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];return n&&"string"!==typeof n&&(o=o.concat(n)),n&&"string"===typeof n&&(o=o.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=e.split(".")),M(this.data,o)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),O(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!==typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var u=M(this.data,s)||{};r?E(u,n,i):u=a()({},u,n),O(this.data,s,u),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?a()({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(k),R={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}},N=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u()(this,t),n=d()(this,p()(t).call(this)),k.call(m()(m()(n))),C(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat"],e,m()(m()(n))),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=_.create("translator"),n}return y()(t,e),c()(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t){var n=this;if("object"!==i()(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=this.extractFromKey(e[e.length-1],t),s=o.key,u=o.namespaces,l=u[u.length-1],c=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=t.nsSeparator||this.options.nsSeparator;return l+d+s}return s}var h=this.resolve(e,t),p=h&&h.res,g=h&&h.usedKey||s,y=h&&h.exactUsedKey||s,v=Object.prototype.toString.apply(p),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!==typeof p&&"boolean"!==typeof p&&"number"!==typeof p;if(w&&p&&x&&m.indexOf(v)<0&&("string"!==typeof b||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,p,t):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(r){var _="[object Array]"===v,k=_?[]:{},S=_?y:g;for(var T in p)if(Object.prototype.hasOwnProperty.call(p,T)){var C="".concat(S).concat(r).concat(T);k[T]=this.translate(C,a()({},t,{joinArrays:!1,ns:u})),k[T]===C&&(k[T]=p[T])}p=k}}else if(w&&"string"===typeof b&&"[object Array]"===v)(p=p.join(b))&&(p=this.extendTranslation(p,e,t));else{var A=!1,O=!1;if(!this.isValidLookup(p)&&void 0!==t.defaultValue){if(A=!0,void 0!==t.count){var M=this.pluralResolver.getSuffix(c,t.count);p=t["defaultValue".concat(M)]}p||(p=t.defaultValue)}this.isValidLookup(p)||(O=!0,p=s);var E=t.defaultValue&&t.defaultValue!==p&&this.options.updateMissing;if(O||A||E){this.logger.log(E?"updateKey":"missingKey",c,l,s,E?t.defaultValue:p);var P=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var D=0;D<I.length;D++)P.push(I[D]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(t.lng||this.language):P.push(t.lng||this.language);var L=function(e,r){n.options.missingKeyHandler?n.options.missingKeyHandler(e,l,r,E?t.defaultValue:p,E,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,l,r,E?t.defaultValue:p,E,t),n.emit("missingKey",e,l,r,p)};if(this.options.saveMissing){var R=void 0!==t.count&&"string"!==typeof t.count;this.options.saveMissingPlurals&&R?P.forEach((function(e){n.pluralResolver.getPluralFormsOfKey(e,s).forEach((function(t){return L([e],t)}))})):L(P,s)}}p=this.extendTranslation(p,e,t,h),O&&p===s&&this.options.appendNamespaceToMissingKey&&(p="".concat(l,":").concat(s)),O&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:"extendTranslation",value:function(e,t,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(a()({},n,{interpolation:a()({},this.options.interpolation,n.interpolation)}));var o=n.replace&&"string"!==typeof n.replace?n.replace:n;this.options.interpolation.defaultVariables&&(o=a()({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,n.lng||this.language,n),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){return i.translate.apply(i,arguments)}),n)),n.interpolation&&this.interpolator.reset()}var s=n.postProcess||this.options.postProcess,u="string"===typeof s?[s]:s;return void 0!==e&&null!==e&&u&&u.length&&!1!==n.applyPostProcessor&&(e=R.handle(u,e,t,n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),l=u.key;n=l;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!==typeof s.count,d=void 0!==s.context&&"string"===typeof s.context&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(o=e,h.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u,c=l,h=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(h,l,n,e,s);else f&&(o=a.pluralResolver.getSuffix(n,s.count)),f&&d&&h.push(c+o),d&&h.push(c+="".concat(a.options.contextSeparator).concat(s.context)),f&&h.push(c+=o);for(;u=h.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}]),t}(k);function j(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){u()(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=_.create("languageUtils")}return c()(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=j(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=j(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=j(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isWhitelisted(e)?i.push(e):n.logger.warn("rejecting non-whitelisted language code: ".concat(e)))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"===typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),F=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],z={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||e>10)&&e%10==0?2:3)}};function V(){var e={};return F.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:z[t.fc]}}))})),e}var H=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,e),this.languageUtils=t,this.options=n,this.logger=_.create("pluralResolver"),this.rules=V()}return c()(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=this,r=[],i=this.getRule(e);return i?(i.numbers.forEach((function(i){var o=n.getSuffix(e,i);r.push("".concat(t).concat(o))})),r):r}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"===typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,e),this.logger=_.create("interpolator"),this.init(t,!0)}return c()(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e}),e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?P(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?P(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?P(n.nestingPrefix):n.nestingPrefixEscaped||P("$t("),this.nestingSuffix=n.nestingSuffix?P(n.nestingSuffix):n.nestingSuffixEscaped||P(")"),this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this;function u(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0)return M(t,e);var r=e.split(s.formatSeparator),i=r.shift().trim(),o=r.join(s.formatSeparator).trim();return s.format(M(t,i),o,n)};this.resetRegExp();var c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;(i=this.regexpUnescape.exec(e))&&(o=l(i[1].trim()),e=e.replace(i[0],o),this.regexpUnescape.lastIndex=0,!(++a>=this.maxReplaces)););for(a=0;i=this.regexp.exec(e);){if(void 0===(o=l(i[1].trim())))if("function"===typeof c){var f=c(e,i,r);o="string"===typeof f?f:""}else this.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),o="";else"string"===typeof o||this.useRawValueToEscape||(o=T(o));if(o=this.escapeValue?u(this.escape(o)):u(o),e=e.replace(i[0],o),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:"nest",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=a()({},i);function s(e,t){if(e.indexOf(",")<0)return e;var n=e.split(",");e=n.shift();var r=n.join(",");r=(r=this.interpolate(r,o)).replace(/'/g,'"');try{o=JSON.parse(r),t&&(o=a()({},t,o))}catch(i){this.logger.error("failed parsing options string in nesting for key ".concat(e),i)}return e}for(o.applyPostProcessor=!1;n=this.nestingRegexp.exec(e);){if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=T(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),G=n(92),J=n.n(G);var X=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return u()(this,t),i=d()(this,p()(t).call(this)),k.call(m()(m()(i))),i.backend=e,i.store=n,i.languageUtils=r.languageUtils,i.options=o,i.logger=_.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return y()(t,e),c()(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o=[],a=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=J()(r,2),o=i[0],a=i[1];t&&this.emit("failedLoading",o,a,t),n&&this.store.addResourceBundle(o,a,n),this.state[e]=t?-1:2;var s={};this.queue.forEach((function(n){!function(e,t,n,r){var i=A(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[o],a),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){s[e]||(s[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){s[e].indexOf(t)<0&&s[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,u){s&&u&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=J()(r,2),o=i[0],a=i[1];this.read(o,a,"read",null,null,(function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),t.loaded(e,r,i)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,a()({},o,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r)}}]),t}(k);function W(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===i()(e[1])&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===i()(e[2])||"object"===i()(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}}}function q(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}function Z(){}var K=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(u()(this,t),e=d()(this,p()(t).call(this)),k.call(m()(m()(e))),e.options=q(n),e.services={},e.logger=_,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),d()(e,m()(m()(e)));setTimeout((function(){e.init(n,r)}),0)}return e}return y()(t,e),c()(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"===typeof e?new e:e:null}if("function"===typeof t&&(n=t,t={}),this.options=a()({},W(),this.options,q(t)),this.format=this.options.interpolation.format,n||(n=Z),!this.options.isClone){this.modules.logger?_.init(r(this.modules.logger),this.options):_.init(null,this.options);var i=new B(this.options);this.store=new L(this.options.resources,this.options);var o=this.services;o.logger=_,o.resourceStore=this.store,o.languageUtils=i,o.pluralResolver=new H(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o.interpolator=new U(this.options),o.backendConnector=new X(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new N(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}var s=["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=S(),l=function(){e.changeLanguage(e.options.lng,(function(t,r){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)}))};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z;if(!this.options.resources||this.options.partialBundledLanguages){if(this.language&&"cimode"===this.language.toLowerCase())return t();var n=[],r=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(e){n.indexOf(e)<0&&n.push(e)}))};if(this.language)r(this.language);else{var i=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);i.forEach((function(e){return r(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return r(e)})),this.services.backendConnector.load(n,this.options.ns,t)}else t(null)}},{key:"reloadResources",value:function(e,t,n){var r=S();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Z),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&R.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this,r=S();this.emit("languageChanging",e);var i=function(e){e&&(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.translator.language||n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources((function(i){!function(e,i){n.translator.changeLanguage(i),i&&(n.emit("languageChanged",i),n.logger.log("languageChanged",i)),r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(i,e)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o=a()({},r);if("object"!==i()(r)){for(var s=arguments.length,u=new Array(s>2?s-2:0),l=2;l<s;l++)u[l-2]=arguments[l];o=n.options.overloadTranslationOptionHandler([t,r].concat(u))}return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"===typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"loadNamespaces",value:function(e,t){var n=this,r=S();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=S();"string"===typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,i=a()({},this.options,n,{isClone:!0}),o=new t(i),s=["store","services","language"];return s.forEach((function(t){o[t]=e[t]})),o.translator=new N(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o}}]),t}(k));t.a=K,K.changeLanguage.bind(K),K.cloneInstance.bind(K),K.createInstance.bind(K),K.dir.bind(K),K.exists.bind(K),K.getFixedT.bind(K),K.init.bind(K),K.loadLanguages.bind(K),K.loadNamespaces.bind(K),K.loadResources.bind(K),K.off.bind(K),K.on.bind(K),K.setDefaultNamespace.bind(K),K.t.bind(K),K.use.bind(K)},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&v(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,console&&console.warn}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var l=u.length,c=y(u,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(481),i=n(482),o=n(238),a=n(483);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),u=r[n];n<o;u=r[++n])g(u)||!w(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(n,r){if("undefined"!==typeof e&&!0===e.noDeprecation)return n;if("undefined"===typeof e)return function(){return t.deprecate(n,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation,i=!0}return n.apply(this,arguments)}};var o,a={};function s(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=c(e,i,r)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),_(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(k(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return f(n)}var l,w="",S=!1,C=["{","}"];(h(n)&&(S=!0,C=["[","]"]),k(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),x(n)&&(w=" "+Date.prototype.toUTCString.call(n)),_(n)&&(w=" "+f(n)),0!==a.length||S&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=S?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)T(t,String(a))?o.push(d(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return d(e,n,r,s,t,S)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,C)):C[0]+w+C[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),T(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"===typeof e}function g(e){return null===e}function y(e){return"number"===typeof e}function v(e){return"string"===typeof e}function m(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"===typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===S(e)}function _(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function k(e){return"function"===typeof e}function S(e){return Object.prototype.toString.call(e)}t.debuglog=function(n){if(m(o)&&(o=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_CHAIN_ID:"4",REACT_APP_API_URL:"/api"}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){e.pid;a[n]=function(){t.format.apply(t,arguments)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=p,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=v,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=m,t.isRegExp=b,t.isObject=w,t.isDate=x,t.isError=_,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(475);function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){},t.inherits=n(476),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var C="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!==typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(a){n(a)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),C&&Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=C,t.callbackify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(A,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}}).call(this,n(130))},function(e,t,n){var r=n(340);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(338);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},,,,function(e,t,n){"use strict";var r=n(81).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(81),i=n(131),o=n(243),a=n(80),s=r.sum32,u=r.sum32_4,l=r.sum32_5,c=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,g=o.g1_256,y=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(m,y),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(g(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],y=this.h[2],v=this.h[3],m=this.h[4],b=this.h[5],w=this.h[6],x=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var _=l(x,h(m),c(m,b,w),this.k[r],n[r]),k=s(d(i),f(i,o,y));x=w,w=b,b=m,m=s(v,_),v=y,y=o,o=i,i=s(_,k)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],x)},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(81),i=n(131),o=n(80),a=r.rotr64_hi,s=r.rotr64_lo,u=r.shr64_hi,l=r.shr64_lo,c=r.sum64,f=r.sum64_hi,d=r.sum64_lo,h=r.sum64_4_hi,p=r.sum64_4_lo,g=r.sum64_5_hi,y=r.sum64_5_lo,v=i.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function w(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function x(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function _(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function k(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function S(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function C(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function A(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function O(e,t){var n=a(e,t,1)^a(e,t,8)^u(e,t,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=s(e,t,1)^s(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function E(e,t){var n=a(e,t,19)^a(t,e,29)^u(e,t,6);return n<0&&(n+=4294967296),n}function P(e,t){var n=s(e,t,19)^s(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,v),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=E(n[r-4],n[r-3]),o=P(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],u=O(n[r-30],n[r-29]),l=M(n[r-30],n[r-29]),c=n[r-32],f=n[r-31];n[r]=h(i,o,a,s,u,l,c,f),n[r+1]=p(i,o,a,s,u,l,c,f)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],l=this.h[5],h=this.h[6],p=this.h[7],v=this.h[8],m=this.h[9],b=this.h[10],O=this.h[11],M=this.h[12],E=this.h[13],P=this.h[14],I=this.h[15];o(this.k.length===n.length);for(var D=0;D<n.length;D+=2){var L=P,R=I,N=C(v,m),j=A(v,m),B=w(v,m,b,O,M),F=x(v,m,b,O,M,E),z=this.k[D],V=this.k[D+1],H=n[D],U=n[D+1],G=g(L,R,N,j,B,F,z,V,H,U),J=y(L,R,N,j,B,F,z,V,H,U);L=S(r,i),R=T(r,i),N=_(r,i,a,s,u),j=k(r,i,a,s,u,l);var X=f(L,R,N,j),W=d(L,R,N,j);P=M,I=E,M=b,E=O,b=v,O=m,v=f(h,p,G,J),m=d(p,p,G,J),h=u,p=l,u=a,l=s,a=r,s=i,r=f(G,J,X,W),i=d(G,J,X,W)}c(this.h,0,r,i),c(this.h,2,a,s),c(this.h,4,u,l),c(this.h,6,h,p),c(this.h,8,v,m),c(this.h,10,b,O),c(this.h,12,M,E),c(this.h,14,P,I)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(82).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(82),i=n(132),o=n(246),a=n(80),s=r.sum32,u=r.sum32_4,l=r.sum32_5,c=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,g=o.g1_256,y=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(m,y),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(g(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],y=this.h[2],v=this.h[3],m=this.h[4],b=this.h[5],w=this.h[6],x=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var _=l(x,h(m),c(m,b,w),this.k[r],n[r]),k=s(d(i),f(i,o,y));x=w,w=b,b=m,m=s(v,_),v=y,y=o,o=i,i=s(_,k)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],x)},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(82),i=n(132),o=n(80),a=r.rotr64_hi,s=r.rotr64_lo,u=r.shr64_hi,l=r.shr64_lo,c=r.sum64,f=r.sum64_hi,d=r.sum64_lo,h=r.sum64_4_hi,p=r.sum64_4_lo,g=r.sum64_5_hi,y=r.sum64_5_lo,v=i.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function w(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function x(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function _(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function k(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function S(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function C(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function A(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function O(e,t){var n=a(e,t,1)^a(e,t,8)^u(e,t,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=s(e,t,1)^s(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function E(e,t){var n=a(e,t,19)^a(t,e,29)^u(e,t,6);return n<0&&(n+=4294967296),n}function P(e,t){var n=s(e,t,19)^s(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,v),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=E(n[r-4],n[r-3]),o=P(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],u=O(n[r-30],n[r-29]),l=M(n[r-30],n[r-29]),c=n[r-32],f=n[r-31];n[r]=h(i,o,a,s,u,l,c,f),n[r+1]=p(i,o,a,s,u,l,c,f)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],l=this.h[5],h=this.h[6],p=this.h[7],v=this.h[8],m=this.h[9],b=this.h[10],O=this.h[11],M=this.h[12],E=this.h[13],P=this.h[14],I=this.h[15];o(this.k.length===n.length);for(var D=0;D<n.length;D+=2){var L=P,R=I,N=C(v,m),j=A(v,m),B=w(v,m,b,O,M),F=x(v,m,b,O,M,E),z=this.k[D],V=this.k[D+1],H=n[D],U=n[D+1],G=g(L,R,N,j,B,F,z,V,H,U),J=y(L,R,N,j,B,F,z,V,H,U);L=S(r,i),R=T(r,i),N=_(r,i,a,s,u),j=k(r,i,a,s,u,l);var X=f(L,R,N,j),W=d(L,R,N,j);P=M,I=E,M=b,E=O,b=v,O=m,v=f(h,p,G,J),m=d(p,p,G,J),h=u,p=l,u=a,l=s,a=r,s=i,r=f(G,J,X,W),i=d(G,J,X,W)}c(this.h,0,r,i),c(this.h,2,a,s),c(this.h,4,u,l),c(this.h,6,h,p),c(this.h,8,v,m),c(this.h,10,b,O),c(this.h,12,M,E),c(this.h,14,P,I)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";function r(e){for(var t=(e=e.slice()).length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}n.d(t,"a",(function(){return r}))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(251);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},,,function(e,t,n){var r=n(420),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,l=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:l})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?t=0:r===s?t=(i-o)/u:i===s?t=2+(o-r)/u:o===s&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(e){return(l-e)/6/c+.5};return 0===c?i=o=0:(o=c/l,t=f(a),n=f(s),r=f(u),a===l?i=r-n:s===l?i=1/3+t-r:u===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,a,s=1/0;for(var u in r)if(r.hasOwnProperty(u)){var l=r[u],c=(o=e,a=l,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<s&&(s=c,n=u)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var l=0;l<3;l++)(r=a+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[l]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,u=e[0]/360,l=e[1]/100,c=e[2]/100,f=l+c;switch(f>1&&(l/=f,c/=f),r=6*u-(t=Math.floor(6*u)),0!==(1&t)&&(r=1-r),i=l+r*((n=1-c)-l),t){default:case 6:case 0:o=n,a=i,s=l;break;case 1:o=i,a=n,s=l;break;case 2:o=l,a=n,s=i;break;case 3:o=l,a=i,s=n;break;case 4:o=i,a=l,s=n;break;case 5:o=n,a=l,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return t=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},,,,function(e,t,n){"use strict";var r=n(148),i=n(198),o=n(462).names,a=n(149),s=n(199),u=n(150),l={};for(var c in o){var f=c;l[o[f]]=f}function d(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");var t=i.decode(e);if(!g(t))throw new Error("multihash unknown function code: 0x".concat(t.toString(16)));e=e.slice(i.decode.bytes);var n=i.decode(e);if(n<0)throw new Error("multihash invalid length: ".concat(n));if((e=e.slice(i.decode.bytes)).length!==n)throw new Error("multihash length inconsistent: 0x".concat(a(e,"base16")));return{code:t,name:l[t],length:n,digest:e}}function h(e){var t=e;if("string"===typeof e){if(void 0===o[e])throw new Error("Unrecognized hash function named: ".concat(e));t=o[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: ".concat(t));if(void 0===l[t]&&!p(t))throw new Error("Unrecognized function code: ".concat(t));return t}function p(e){return e>0&&e<16}function g(e){return!!p(e)||!!l[e]}function y(e){d(e)}Object.freeze(l),e.exports={names:o,codes:l,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(e,"base16")},fromHexString:function(e){return s(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(r.encode("base58btc",e)).slice(1)},fromB58String:function(e){var t=e instanceof Uint8Array?a(e):e;return r.decode("z"+t)},decode:d,encode:function(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");var r=h(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");var o=i.encode(r),a=i.encode(n);return u([o,a,e],o.length+a.length+e.length)},coerceCode:h,isAppCode:p,validate:y,prefix:function(e){return y(e),e.subarray(0,2)},isValidCode:g}},function(e,t,n){"use strict";var r=n(198),i=n(149),o=n(199);function a(e){return parseInt(i(e,"base16"),16)}e.exports={numberToUint8Array:function(e){var t=e.toString(16);t.length%2===1&&(t="0"+t);return o(t,"base16")},uint8ArrayToNumber:a,varintUint8ArrayEncode:function(e){return Uint8Array.from(r.encode(a(e)))},varintEncode:function(e){return Uint8Array.from(r.encode(e))}}},function(e,t,n){e.exports={encode:n(468),decode:n(469),encodingLength:n(470)}},function(e,t,n){"use strict";var r=n(261),i=n(473),o=n(478);function a(e){return parseInt(i(e,"base16"),16)}e.exports={numberToUint8Array:function(e){var t=e.toString(16);t.length%2===1&&(t="0"+t);return o(t,"base16")},uint8ArrayToNumber:a,varintUint8ArrayEncode:function(e){return Uint8Array.from(r.encode(a(e)))},varintEncode:function(e){return Uint8Array.from(r.encode(e))}}},function(e,t,n){"use strict";var r=n(196),i=n(474),o=n(477).rfc4648,a=n(264),s=a.decodeText,u=a.encodeText,l=[["identity","\0",function(){return{encode:s,decode:u}},""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=l.reduce((function(e,t){return e[t[0]]=new i(t[0],t[1],t[2],t[3]),e}),{}),f=l.reduce((function(e,t){return e[t[1]]=c[t[0]],e}),{});e.exports={names:c,codes:f}},function(e,t,n){"use strict";var r=n(96),i=n(152),o=i.TextEncoder,a=new(0,i.TextDecoder),s=new o;e.exports={decodeText:function(e){return a.decode(e)},encodeText:function(e){return s.encode(e)},concat:function(e,t){var n,i=new Uint8Array(t),o=0,a=r(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.set(s,o),o+=s.length}}catch(u){a.e(u)}finally{a.f()}return i}}},,function(e,t,n){"use strict";var r=n(203),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var l=s[u],c=a[l];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",l=0;l<s.length;++l){var c=s.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?u+=s.charAt(l):c<128?u+=a[c]:c<2048?u+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?u+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(l)),u+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},function(e,t,n){"use strict";var r=n(115);e.exports=function(e){r.copy(e,this)}},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var n,r="boolean"===typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"===typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,u=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<u.length;n++){var l=u[n],c=e(t[l]);c&&(a&&(a+=","),a+=JSON.stringify(l)+":"+c)}return o.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var u="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(u);e.logger.warn(u)}}if(e.isTop&&(r+=" var validate = ",i&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){var l=e.level,c=e.dataLevel,f=e.schema["false schema"],d=e.schemaPath+e.util.getProperty("false schema"),h=e.errSchemaPath+"/false schema",p=!e.opts.allErrors,g="data"+(c||""),y="valid"+l;if(!1===e.schema){e.isTop?p=!0:r+=" var "+y+" = false; ",(K=K||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var v=r;r=K.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?r+=i?" return data; ":" validate.errors = null; return true; ":r+=" var "+y+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var m=e.isTop;l=e.level=0,c=e.dataLevel=0,g="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{l=e.level,g="data"+((c=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+l+" = errors;"}y="valid"+l,p=!e.opts.allErrors;var w="",x="",_=e.schema.type,k=Array.isArray(_);if(_&&e.opts.nullable&&!0===e.schema.nullable&&(k?-1==_.indexOf("null")&&(_=_.concat("null")):"null"!=_&&(_=[_,"null"],k=!0)),k&&1==_.length&&(_=_[0],k=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),_){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,_);var T=e.RULES.types[_];if(S||k||!0===T||T&&!Y(T)){d=e.schemaPath+".type",h=e.errSchemaPath+"/type",d=e.schemaPath+".type",h=e.errSchemaPath+"/type";var C=k?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[C](_,g,e.opts.strictNumbers,!0)+") { ",S){var A="dataType"+l,O="coerced"+l;r+=" var "+A+" = typeof "+g+"; var "+O+" = undefined; ","array"==e.opts.coerceTypes&&(r+=" if ("+A+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+A+" = typeof "+g+"; if ("+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+") "+O+" = "+g+"; } "),r+=" if ("+O+" !== undefined) ; ";var M=S;if(M)for(var E,P=-1,I=M.length-1;P<I;)"string"==(E=M[P+=1])?r+=" else if ("+A+" == 'number' || "+A+" == 'boolean') "+O+" = '' + "+g+"; else if ("+g+" === null) "+O+" = ''; ":"number"==E||"integer"==E?(r+=" else if ("+A+" == 'boolean' || "+g+" === null || ("+A+" == 'string' && "+g+" && "+g+" == +"+g+" ","integer"==E&&(r+=" && !("+g+" % 1)"),r+=")) "+O+" = +"+g+"; "):"boolean"==E?r+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+O+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+O+" = true; ":"null"==E?r+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+O+" = null; ":"array"==e.opts.coerceTypes&&"array"==E&&(r+=" else if ("+A+" == 'string' || "+A+" == 'number' || "+A+" == 'boolean' || "+g+" == null) "+O+" = ["+g+"]; ");r+=" else { ",(K=K||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",r+=k?""+_.join(","):""+_,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+_.join(","):""+_,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";v=r;r=K.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+O+" !== undefined) { ";var D=c?"data"+(c-1||""):"parentData";r+=" "+g+" = "+O+"; ",c||(r+="if ("+D+" !== undefined)"),r+=" "+D+"["+(c?e.dataPathArr[c]:"parentDataProperty")+"] = "+O+"; } "}else{(K=K||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",r+=k?""+_.join(","):""+_,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+_.join(","):""+_,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";v=r;r=K.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!o)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",p&&(r+=" } if (errors === ",r+=m?"0":"errs_"+l,r+=") { ",x+="}");else{var L=e.RULES;if(L)for(var R=-1,N=L.length-1;R<N;)if(Y(T=L[R+=1])){if(T.type&&(r+=" if ("+e.util.checkDataType(T.type,g,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==T.type&&e.schema.properties){f=e.schema.properties;var j=Object.keys(f);if(j)for(var B,F=-1,z=j.length-1;F<z;){if(void 0!==(U=f[B=j[F+=1]]).default){var V=g+e.util.getProperty(B);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+V;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else r+=" if ("+V+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+V+" === null || "+V+" === '' "),r+=" ) "+V+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(U.default)+" ":r+=" "+JSON.stringify(U.default)+" ",r+="; "}}}else if("array"==T.type&&Array.isArray(e.schema.items)){var H=e.schema.items;if(H){P=-1;for(var U,G=H.length-1;P<G;)if(void 0!==(U=H[P+=1]).default){V=g+"["+P+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+V;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else r+=" if ("+V+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+V+" === null || "+V+" === '' "),r+=" ) "+V+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(U.default)+" ":r+=" "+JSON.stringify(U.default)+" ",r+="; "}}}var J=T.rules;if(J)for(var X,W=-1,q=J.length-1;W<q;)if($(X=J[W+=1])){var Z=X.code(e,X.keyword,T.type);Z&&(r+=" "+Z+" ",p&&(w+="}"))}if(p&&(r+=" "+w+" ",w=""),T.type&&(r+=" } ",_&&_===T.type&&!S)){r+=" else { ";var K;d=e.schemaPath+".type",h=e.errSchemaPath+"/type";(K=K||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",r+=k?""+_.join(","):""+_,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+_.join(","):""+_,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";v=r;r=K.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}p&&(r+=" if (errors === ",r+=m?"0":"errs_"+l,r+=") { ",x+="}")}}function Y(e){for(var t=e.rules,n=0;n<t.length;n++)if($(t[n]))return!0}function $(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var n=t.implements,r=0;r<n.length;r++)if(void 0!==e.schema[n[r]])return!0}(t)}return p&&(r+=" "+x+" "),m?(i?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+y+" = errors === errs_"+l+";",r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),d=e.opts.$data&&s&&s.$data;d?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s;var h="maximum"==t,p=h?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[p],y=e.opts.$data&&g&&g.$data,v=h?"<":">",m=h?">":"<",b=void 0;if(!d&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!y&&void 0!==g&&"number"!=typeof g&&"boolean"!=typeof g)throw new Error(p+" must be number or boolean");if(y){var w=e.util.getData(g.$data,a,e.dataPathArr),x="exclusive"+o,_="exclType"+o,k="exclIsNumber"+o,S="' + "+(A="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+w+"; ",i+=" var "+x+"; var "+_+" = typeof "+(w="schemaExcl"+o)+"; if ("+_+" != 'boolean' && "+_+" != 'undefined' && "+_+" != 'number') { ";var T;b=p;(T=T||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+p+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var C=i;i=T.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+_+" == 'number' ? ( ("+x+" = "+r+" === undefined || "+w+" "+v+"= "+r+") ? "+f+" "+m+"= "+w+" : "+f+" "+m+" "+r+" ) : ( ("+x+" = "+w+" === true) ? "+f+" "+m+"= "+r+" : "+f+" "+m+" "+r+" ) || "+f+" !== "+f+") { var op"+o+" = "+x+" ? '"+v+"' : '"+v+"='; ",void 0===s&&(b=p,l=e.errSchemaPath+"/"+p,r=w,d=y)}else{S=v;if((k="number"==typeof g)&&d){var A="'"+S+"'";i+=" if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" ( "+r+" === undefined || "+g+" "+v+"= "+r+" ? "+f+" "+m+"= "+g+" : "+f+" "+m+" "+r+" ) || "+f+" !== "+f+") { "}else{k&&void 0===s?(x=!0,b=p,l=e.errSchemaPath+"/"+p,r=g,m+="="):(k&&(r=Math[h?"min":"max"](g,s)),g===(!k||r)?(x=!0,b=p,l=e.errSchemaPath+"/"+p,m+="="):(x=!1,S+="="));A="'"+S+"'";i+=" if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+f+" "+m+" "+r+" || "+f+" !== "+f+") { "}}b=b||t,(T=T||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+A+", limit: "+r+", exclusive: "+x+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+S+" ",i+=d?"' + "+r:r+"'"),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";C=i;return i=T.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),d=e.opts.$data&&s&&s.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+f+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var h=t,p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=d?"' + "+r+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=p.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),d=e.opts.$data&&s&&s.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";i+="if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?i+=" "+f+".length ":i+=" ucs2length("+f+") ",i+=" "+h+" "+r+") { ";var p=t,g=g||[];g.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=d?"' + "+r+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var y=i;return i=g.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),d=e.opts.$data&&s&&s.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var h=t,p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=d?"' + "+r+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=p.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(65);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(65),i=n(550),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n(279)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(o)})),e.exports=s}).call(this,n(130))},function(e,t,n){"use strict";var r=n(65),i=n(551),o=n(553),a=n(276),s=n(554),u=n(557),l=n(558),c=n(280);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+g)}var y=s(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||l(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(m){if("json"!==e.responseType)throw m}"function"===typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(552);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(65);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(o,l),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,l),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"props",(function(){return a})),n.d(t,"createShouldForwardProp",(function(){return s}));var r=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},i=n(122),o=n(53),a=Object(o.compose)(o.space,o.typography,o.color,o.layout,o.flexbox,o.border,o.background,o.position,o.grid,o.shadow,o.buttonStyle,o.textStyle,o.colorStyle).propNames,s=function(e){var t=new RegExp("^("+e.join("|")+")$");return r((function(e){return Object(i.a)(e)&&!t.test(e)}))};t.default=s(a)},function(e,t,n){(function(t,n){!function(){"use strict";var r="object"===typeof window?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"===typeof t&&t.versions&&t.versions.node&&(r=n);for(var i=!r.JS_SHA3_NO_COMMON_JS&&"object"===typeof e&&e.exports,o="0123456789abcdef".split(""),a=[0,8,16,24],s=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],u=[224,256,384,512],l=["hex","buffer","arrayBuffer","array"],c=function(e,t,n){return function(r){return new x(e,t,e).update(r)[n]()}},f=function(e,t,n){return function(r,i){return new x(e,t,i).update(r)[n]()}},d=function(e,t){var n=c(e,t,"hex");n.create=function(){return new x(e,t,e)},n.update=function(e){return n.create().update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=c(e,t,i)}return n},h=[{name:"keccak",padding:[1,256,65536,16777216],bits:u,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:u,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var n=f(e,t,"hex");n.create=function(n){return new x(e,t,n)},n.update=function(e,t){return n.create(t).update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=f(e,t,i)}return n}}],p={},g=[],y=0;y<h.length;++y)for(var v=h[y],m=v.bits,b=0;b<m.length;++b){var w=v.name+"_"+m[b];g.push(w),p[w]=v.createMethod(m[b],v.padding)}function x(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}x.prototype.update=function(e){var t="string"!==typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var n,r,i=e.length,o=this.blocks,s=this.byteCount,u=this.blockCount,l=0,c=this.s;l<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<u+1;++n)o[n]=0;if(t)for(n=this.start;l<i&&n<s;++l)o[n>>2]|=e[l]<<a[3&n++];else for(n=this.start;l<i&&n<s;++l)(r=e.charCodeAt(l))<128?o[n>>2]|=r<<a[3&n++]:r<2048?(o[n>>2]|=(192|r>>6)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):r<55296||r>=57344?(o[n>>2]|=(224|r>>12)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++l)),o[n>>2]|=(240|r>>18)<<a[3&n++],o[n>>2]|=(128|r>>12&63)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];_(c),this.reset=!0}else this.start=n}return this},x.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];_(r)},x.prototype.toString=x.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,a=0,s=0,u="";s<r;){for(a=0;a<t&&s<r;++a,++s)e=n[a],u+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];s%t===0&&(_(n),a=0)}return i&&(e=n[a],i>0&&(u+=o[e>>4&15]+o[15&e]),i>1&&(u+=o[e>>12&15]+o[e>>8&15]),i>2&&(u+=o[e>>20&15]+o[e>>16&15])),u},x.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)u[a]=n[o];a%t===0&&_(n)}return i&&(u[o]=n[o],e=e.slice(0,s)),e},x.prototype.buffer=x.prototype.arrayBuffer,x.prototype.digest=x.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%n===0&&_(r)}return o&&(e=s<<2,t=r[a],o>0&&(u[e]=255&t),o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u};var _=function(e){var t,n,r,i,o,a,u,l,c,f,d,h,p,g,y,v,m,b,w,x,_,k,S,T,C,A,O,M,E,P,I,D,L,R,N,j,B,F,z,V,H,U,G,J,X,W,q,Z,K,Y,$,Q,ee,te,ne,re,ie,oe,ae,se,ue,le,ce;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|u>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(u<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|c>>>31),n=o^(c<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(f<<1|d>>>31),n=u^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(h<<1|p>>>31),n=c^(p<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,g=e[0],y=e[1],W=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,E=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,U=e[40]<<18|e[41]>>>14,G=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,K=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,I=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,D=e[45]<<29|e[44]>>>3,L=e[44]<<29|e[45]>>>3,T=e[6]<<28|e[7]>>>4,C=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,z=e[27]<<25|e[26]>>>7,x=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,J=e[8]<<27|e[9]>>>5,X=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,O=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,V=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=g^~v&b,e[1]=y^~m&w,e[10]=T^~A&M,e[11]=C^~O&E,e[20]=R^~j&F,e[21]=N^~B&z,e[30]=J^~W&Z,e[31]=X^~q&K,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=v^~b&x,e[3]=m^~w&_,e[12]=A^~M&P,e[13]=O^~E&I,e[22]=j^~F&V,e[23]=B^~z&H,e[32]=W^~Z&Y,e[33]=q^~K&$,e[42]=re^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~x&k,e[5]=w^~_&S,e[14]=M^~P&D,e[15]=E^~I&L,e[24]=F^~V&U,e[25]=z^~H&G,e[34]=Z^~Y&Q,e[35]=K^~$&ee,e[44]=oe^~se&le,e[45]=ae^~ue&ce,e[6]=x^~k&g,e[7]=_^~S&y,e[16]=P^~D&T,e[17]=I^~L&C,e[26]=V^~U&R,e[27]=H^~G&N,e[36]=Y^~Q&J,e[37]=$^~ee&X,e[46]=se^~le&te,e[47]=ue^~ce&ne,e[8]=k^~g&v,e[9]=S^~y&m,e[18]=D^~T&A,e[19]=L^~C&O,e[28]=U^~R&j,e[29]=G^~N&B,e[38]=Q^~J&W,e[39]=ee^~X&q,e[48]=le^~te&re,e[49]=ce^~ne&ie,e[0]^=s[r],e[1]^=s[r+1]};if(i)e.exports=p;else for(y=0;y<g.length;++y)r[g[y]]=p[g[y]]}()}).call(this,n(130),n(79))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return H}));var r=n(27),i=n.n(r),o=n(83),a=n.n(o);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function s(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&n.path)}},n.exports),n.exports}var u=l;function l(e,t){if(!e)throw new Error(t||"Assertion failed")}l.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var c=s((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!==typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}})),f=s((function(e,t){var n=t;n.assert=u,n.toArray=c.toArray,n.zero2=c.zero2,n.toHex=c.toHex,n.encode=c.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,l=t.andln(3)+o&3;3===u&&(u=-1),3===l&&(l=-1),a=0===(1&u)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==l?u:-u,n[0].push(a),s=0===(1&l)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==u?l:-l,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i.a(e,"hex","le")}})),d=f.getNAF,h=f.getJSF,p=f.assert;function g(e,t){this.type=e,this.p=new i.a(t.p,16),this.red=t.prime?i.a.red(t.prime):i.a.mont(this.p),this.zero=new i.a(0).toRed(this.red),this.one=new i.a(1).toRed(this.red),this.two=new i.a(2).toRed(this.red),this.n=t.n&&new i.a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var y=g;function v(e,t){this.curve=e,this.type=t,this.precomputed=null}g.prototype.point=function(){throw new Error("Not implemented")},g.prototype.validate=function(){throw new Error("Not implemented")},g.prototype._fixedNafMul=function(e,t){p(e.precomputed);var n=e._getDoubles(),r=d(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2===0?2:1);i/=3;var o,a,s=[];for(o=0;o<r.length;o+=n.step){a=0;for(var u=o+n.step-1;u>=o;u--)a=(a<<1)+r[u];s.push(a)}for(var l=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o<s.length;o++)(a=s[o])===f?c=c.mixedAdd(n.points[o]):a===-f&&(c=c.mixedAdd(n.points[o].neg()));l=l.add(c)}return l.toP()},g.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=d(t,n,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var l=o[s];p(0!==l),a="affine"===e.type?l>0?a.mixedAdd(i[l-1>>1]):a.mixedAdd(i[-l-1>>1].neg()):l>0?a.add(i[l-1>>1]):a.add(i[-l-1>>1].neg())}return"affine"===e.type?a.toP():a},g.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,u=this._wnafT1,l=this._wnafT2,c=this._wnafT3,f=0;for(o=0;o<r;o++){var p=(s=t[o])._getNAFPoints(e);u[o]=p.wnd,l[o]=p.points}for(o=r-1;o>=1;o-=2){var g=o-1,y=o;if(1===u[g]&&1===u[y]){var v=[t[g],null,null,t[y]];0===t[g].y.cmp(t[y].y)?(v[1]=t[g].add(t[y]),v[2]=t[g].toJ().mixedAdd(t[y].neg())):0===t[g].y.cmp(t[y].y.redNeg())?(v[1]=t[g].toJ().mixedAdd(t[y]),v[2]=t[g].add(t[y].neg())):(v[1]=t[g].toJ().mixedAdd(t[y]),v[2]=t[g].toJ().mixedAdd(t[y].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],b=h(n[g],n[y]);for(f=Math.max(b[0].length,f),c[g]=new Array(f),c[y]=new Array(f),a=0;a<f;a++){var w=0|b[0][a],x=0|b[1][a];c[g][a]=m[3*(w+1)+(x+1)],c[y][a]=0,l[g]=v}}else c[g]=d(n[g],u[g],this._bitLength),c[y]=d(n[y],u[y],this._bitLength),f=Math.max(c[g].length,f),f=Math.max(c[y].length,f)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(o=f;o>=0;o--){for(var S=0;o>=0;){var T=!0;for(a=0;a<r;a++)k[a]=0|c[a][o],0!==k[a]&&(T=!1);if(!T)break;S++,o--}if(o>=0&&S++,_=_.dblp(S),o<0)break;for(a=0;a<r;a++){var C=k[a];0!==C&&(C>0?s=l[a][C-1>>1]:C<0&&(s=l[a][-C-1>>1].neg()),_="affine"===s.type?_.mixedAdd(s):_.add(s))}}for(o=0;o<r;o++)l[o]=null;return i?_:_.toP()},g.BasePoint=v,v.prototype.eq=function(){throw new Error("Not implemented")},v.prototype.validate=function(){return this.curve.validate(this)},g.prototype.decodePoint=function(e,t){e=f.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1===2*n)return 6===e[0]?p(e[e.length-1]%2===0):7===e[0]&&p(e[e.length-1]%2===1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},v.prototype.encodeCompressed=function(e){return this.encode(e,!0)},v.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},v.prototype.encode=function(e,t){return f.encode(this._encode(t),e)},v.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},v.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},v.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},v.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},v.prototype._getBeta=function(){return null},v.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var m=s((function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),b=f.assert;function w(e){y.call(this,"short",e),this.a=new i.a(e.a,16).toRed(this.red),this.b=new i.a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}m(w,y);var x=w;function _(e,t,n,r){y.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i.a(t,16),this.y=new i.a(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function k(e,t,n,r){y.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i.a(0)):(this.x=new i.a(t,16),this.y=new i.a(n,16),this.z=new i.a(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}w.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i.a(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i.a(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],b(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i.a(e.a,16),b:new i.a(e.b,16)}})):this._getEndoBasis(n)}}},w.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.a.mont(e),n=new i.a(2).toRed(t).redInvm(),r=n.redNeg(),o=new i.a(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},w.prototype._getEndoBasis=function(e){for(var t,n,r,o,a,s,u,l,c,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i.a(1),g=new i.a(0),y=new i.a(0),v=new i.a(1),m=0;0!==d.cmpn(0);){var b=h.div(d);l=h.sub(b.mul(d)),c=y.sub(b.mul(p));var w=v.sub(b.mul(g));if(!r&&l.cmp(f)<0)t=u.neg(),n=p,r=l.neg(),o=c;else if(r&&2===++m)break;u=l,h=d,d=l,y=p,p=c,v=g,g=w}a=l.neg(),s=c;var x=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(x)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),l=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:u.add(l).neg()}},w.prototype.pointFromX=function(e,t){(e=new i.a(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),r[2*o]=s,r[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var l=this._wnafMulAdd(1,r,i,2*o,n),c=0;c<2*o;c++)r[c]=null,i[c]=null;return l},m(_,y.BasePoint),w.prototype.point=function(e,t,n){return new _(this,e,t,n)},w.prototype.pointFromJSON=function(e,t){return _.fromJSON(this,e,t)},_.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},_.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},_.fromJSON=function(e,t,n){"string"===typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},_.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},_.prototype.isInfinity=function(){return this.inf},_.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},_.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},_.prototype.getX=function(){return this.x.fromRed()},_.prototype.getY=function(){return this.y.fromRed()},_.prototype.mul=function(e){return e=new i.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},_.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},_.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},_.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},_.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},_.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},m(k,y.BasePoint),w.prototype.jpoint=function(e,t,n){return new k(this,e,t,n)},k.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},k.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},k.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),f=r.redMul(l),d=u.redSqr().redIAdd(c).redISub(f).redISub(f),h=u.redMul(f.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},k.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),c=n.redMul(u),f=s.redSqr().redIAdd(l).redISub(c).redISub(c),d=s.redMul(c.redISub(f)).redISub(i.redMul(l)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},k.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),l=a.redAdd(a);for(t=0;t<e;t++){var c=o.redSqr(),f=l.redSqr(),d=f.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(r.redMul(u)),p=o.redMul(f),g=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(g),v=h.redMul(y);v=v.redIAdd(v).redISub(d);var m=l.redMul(s);t+1<e&&(u=u.redMul(d)),o=g,s=m,l=v}return this.curve.jpoint(o,l.redMul(i),s)},k.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},k.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),u=s.redSqr().redISub(a).redISub(a),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=u,t=s.redMul(a.redISub(u)).redISub(l),n=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(c).redISub(d);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),g=p.redSqr(),y=d.redIAdd(d);y=(y=y.redIAdd(y)).redIAdd(y),e=g.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},k.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(a.redISub(u)).redISub(l),n=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),g=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(g),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(c);var y=f.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,n)},k.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),l=(u=u.redIAdd(u)).redMul(a),c=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(c),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=n.redAdd(n).redMul(r);return this.curve.jpoint(c,h,p)},k.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=r.redIAdd(r);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var l=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),c=t.redMul(l);c=(c=c.redIAdd(c)).redIAdd(c);var f=this.x.redMul(s).redISub(c);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(l.redMul(u.redISub(l)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,d,h)},k.prototype.mul=function(e,t){return e=new i.a(e,t),this.curve._wnafMul(this,e)},k.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},k.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},k.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},k.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var S=s((function(e,t){var n=t;n.base=y,n.short=x,n.mont=null,n.edwards=null})),T=s((function(e,t){var n,r=t,i=f.assert;function o(e){"short"===e.type?this.curve=new S.short(e):"edwards"===e.type?this.curve=new S.edwards(e):this.curve=new S.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(u){n=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function C(e){if(!(this instanceof C))return new C(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=c.toArray(e.entropy,e.entropyEnc||"hex"),n=c.toArray(e.nonce,e.nonceEnc||"hex"),r=c.toArray(e.pers,e.persEnc||"hex");u(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var A=C;C.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},C.prototype._hmac=function(){return new a.a.hmac(this.hash,this.K)},C.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},C.prototype.reseed=function(e,t,n,r){"string"!==typeof t&&(r=n,n=t,t=null),e=c.toArray(e,t),n=c.toArray(n,r),u(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},C.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(r=n,n=t,t=null),n&&(n=c.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(n),this._reseed++,c.encode(o,t)};var O=f.assert;function M(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var E=M;M.fromPublic=function(e,t,n){return t instanceof M?t:new M(e,{pub:t,pubEnc:n})},M.fromPrivate=function(e,t,n){return t instanceof M?t:new M(e,{priv:t,privEnc:n})},M.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},M.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},M.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(e,t){this.priv=new i.a(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?O(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||O(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},M.prototype.derive=function(e){return e.validate()||O(e.validate(),"public point not validated"),e.mul(this.priv).getX()},M.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},M.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},M.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var P=f.assert;function I(e,t){if(e instanceof I)return e;this._importDER(e,t)||(P(e.r&&e.s,"Signature without r or s"),this.r=new i.a(e.r,16),this.s=new i.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var D=I;function L(){this.place=0}function R(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function N(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function j(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}I.prototype._importDER=function(e,t){e=f.toArray(e,t);var n=new L;if(48!==e[n.place++])return!1;var r=R(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=R(e,n);if(!1===o)return!1;var a=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var s=R(e,n);if(!1===s)return!1;if(e.length!==s+n.place)return!1;var u=e.slice(n.place,s+n.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i.a(a),this.s=new i.a(u),this.recoveryParam=null,!0},I.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=N(t),n=N(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];j(r,t.length),(r=r.concat(t)).push(2),j(r,n.length);var i=r.concat(n),o=[48];return j(o,i.length),o=o.concat(i),f.encode(o,e)};var B=function(){throw new Error("unsupported")},F=f.assert;function z(e){if(!(this instanceof z))return new z(e);"string"===typeof e&&(F(Object.prototype.hasOwnProperty.call(T,e),"Unknown curve "+e),e=T[e]),e instanceof T.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var V=z;z.prototype.keyPair=function(e){return new E(this,e)},z.prototype.keyFromPrivate=function(e,t){return E.fromPrivate(this,e,t)},z.prototype.keyFromPublic=function(e,t){return E.fromPublic(this,e,t)},z.prototype.genKeyPair=function(e){e||(e={});for(var t=new A({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||B(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i.a(2));;){var o=new i.a(t.generate(n));if(!(o.cmp(r)>0))return o.iaddn(1),this.keyFromPrivate(o)}},z.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},z.prototype.sign=function(e,t,n,r){"object"===typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new i.a(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),u=new A({hash:this.hash,entropy:a,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),l=this.n.sub(new i.a(1)),c=0;;c++){var f=r.k?r.k(c):new i.a(u.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(l)>=0)){var d=this.g.mul(f);if(!d.isInfinity()){var h=d.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var g=f.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(d.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return r.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new D({r:p,s:g,recoveryParam:y})}}}}}},z.prototype.verify=function(e,t,n,r){e=this._truncateToN(new i.a(e,16)),n=this.keyFromPublic(n,r);var o=(t=new D(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),l=u.mul(e).umod(this.n),c=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),c)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,n.getPublic(),c)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},z.prototype.recoverPubKey=function(e,t,n,r){F((3&n)===n,"The recovery param is more than two bits"),t=new D(t,r);var o=this.n,a=new i.a(e),s=t.r,u=t.s,l=1&n,c=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");s=c?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var f=t.r.invm(o),d=o.sub(a).mul(f).umod(o),h=u.mul(f).umod(o);return this.g.mulAdd(d,s,h)},z.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new D(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var H=s((function(e,t){var n=t;n.version="6.5.4",n.utils=f,n.rand=function(){throw new Error("unsupported")},n.curve=S,n.curves=T,n.ec=V,n.eddsa=null})).ec}).call(this,n(79))},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(69);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){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(e){return!1}}function l(e,t,n){return(l=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&s(i,n.prototype),i}).apply(null,arguments)}function c(e){var t="function"===typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}"undefined"!==typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!==typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function d(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function h(e){return e.hasOwnProperty("result")?e.result:e}var p=function(e){function t(){var t;return(t=e.call(this)||this).name=t.constructor.name,t.message="No Ethereum provider was found on window.ethereum.",t}return o(t,e),t}(c(Error)),g=function(e){function t(){var t;return(t=e.call(this)||this).name=t.constructor.name,t.message="The user rejected the request.",t}return o(t,e),t}(c(Error)),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleNetworkChanged=n.handleNetworkChanged.bind(f(n)),n.handleChainChanged=n.handleChainChanged.bind(f(n)),n.handleAccountsChanged=n.handleAccountsChanged.bind(f(n)),n.handleClose=n.handleClose.bind(f(n)),n}o(t,e);var n=t.prototype;return n.handleChainChanged=function(e){this.emitUpdate({chainId:e,provider:window.ethereum})},n.handleAccountsChanged=function(e){0===e.length?this.emitDeactivate():this.emitUpdate({account:e[0]})},n.handleClose=function(e,t){this.emitDeactivate()},n.handleNetworkChanged=function(e){this.emitUpdate({chainId:e,provider:window.ethereum})},n.activate=function(){try{var e,t=function(t){if(n)return t;function r(){return i({provider:window.ethereum},e?{account:e}:{})}var o=function(){if(!e)return Promise.resolve(window.ethereum.enable().then((function(e){return e&&h(e)[0]}))).then((function(t){e=t}))}();return o&&o.then?o.then(r):r()},n=!1;if(!window.ethereum)throw new p;window.ethereum.on&&(window.ethereum.on("chainChanged",this.handleChainChanged),window.ethereum.on("accountsChanged",this.handleAccountsChanged),window.ethereum.on("close",this.handleClose),window.ethereum.on("networkChanged",this.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var r=d((function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then((function(e){return h(e)[0]}))).then((function(t){e=t}))}),(function(e){if(4001===e.code)throw new g}));return Promise.resolve(r&&r.then?r.then(t):t(r))}catch(o){return Promise.reject(o)}},n.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(e){return Promise.reject(e)}},n.getChainId=function(){try{var e,t=function(){function t(){if(!e)try{e=h(window.ethereum.send({method:"net_version"}))}catch(t){}return e||(e=window.ethereum.isDapper?h(window.ethereum.cachedResults.net_version):window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),e}var n=function(){if(!e){var t=d((function(){return Promise.resolve(window.ethereum.send("net_version").then(h)).then((function(t){e=t}))}),(function(){}));if(t&&t.then)return t.then((function(){}))}}();return n&&n.then?n.then(t):t()};if(!window.ethereum)throw new p;var n=d((function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(h)).then((function(t){e=t}))}),(function(){}));return Promise.resolve(n&&n.then?n.then(t):t())}catch(r){return Promise.reject(r)}},n.getAccount=function(){try{var e,t=function(){function t(){return e||(e=h(window.ethereum.send({method:"eth_accounts"}))[0]),e}var n=function(){if(!e){var t=d((function(){return Promise.resolve(window.ethereum.enable().then((function(e){return h(e)[0]}))).then((function(t){e=t}))}),(function(){}));if(t&&t.then)return t.then((function(){}))}}();return n&&n.then?n.then(t):t()};if(!window.ethereum)throw new p;var n=d((function(){return Promise.resolve(window.ethereum.send("eth_accounts").then((function(e){return h(e)[0]}))).then((function(t){e=t}))}),(function(){}));return Promise.resolve(n&&n.then?n.then(t):t())}catch(r){return Promise.reject(r)}},n.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},n.isAuthorized=function(){try{return window.ethereum?Promise.resolve(d((function(){return Promise.resolve(window.ethereum.send("eth_accounts").then((function(e){return h(e).length>0})))}),(function(){return!1}))):Promise.resolve(!1)}catch(e){return Promise.reject(e)}},t}(r.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(69);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=function(e){var t,r;function a(t){var n,r=t.url,i=t.appName,o=t.appLogoUrl,a=t.darkMode;return(n=e.call(this,{supportedChainIds:[1]})||this).url=r,n.appName=i,n.appLogoUrl=o,n.darkMode=a||!1,n}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,o(t,r);var s=a.prototype;return s.activate=function(){try{var e=this,t=function(){return Promise.resolve(e.provider.send("eth_requestAccounts").then((function(e){return e[0]}))).then((function(t){return e.provider.on("chainChanged",e.handleChainChanged),e.provider.on("accountsChanged",e.handleAccountsChanged),{provider:e.provider,chainId:1,account:t}}))},r=function(){if(!e.walletLink)return Promise.resolve(Promise.all([n.e(0),n.e(6),n.e(9)]).then(n.t.bind(null,589,7)).then((function(e){var t;return null!=(t=null==e?void 0:e.default)?t:e}))).then((function(t){e.walletLink=new t(i({appName:e.appName,darkMode:e.darkMode},e.appLogoUrl?{appLogoUrl:e.appLogoUrl}:{})),e.provider=e.walletLink.makeWeb3Provider(e.url,1)}))}();return Promise.resolve(r&&r.then?r.then(t):t())}catch(o){return Promise.reject(o)}},s.getProvider=function(){try{return Promise.resolve(this.provider)}catch(e){return Promise.reject(e)}},s.getChainId=function(){return Promise.resolve(1)},s.getAccount=function(){try{return Promise.resolve(this.provider.send("eth_accounts").then((function(e){return e[0]})))}catch(e){return Promise.reject(e)}},s.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},s.close=function(){try{return this.provider.close(),this.emitDeactivate(),Promise.resolve()}catch(e){return Promise.reject(e)}},s.handleChainChanged=function(e){this.emitUpdate({chainId:e})},s.handleAccountsChanged=function(e){this.emitUpdate({account:e[0]})},a}(r.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(69),i=n(33);function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan",100:"xdai",30:"orchid",31:"orchidTestnet",99:"core",77:"sokol",61:"classic",8:"ubiq",108:"thundercore",18:"thundercoreTestnet",163:"lightstreams",122:"fuse",15001:"maticTestnet"},u=function(e){var t,r;function u(t){var n,r=t.dAppId,o=t.networks,u=t.config,l=void 0===u?{}:u,c=o.map((function(e){return"number"===typeof e?e:Number(e.chainId)}));return c.every((function(e){return!!s[e]}))||Object(i.default)(!1),(n=e.call(this,{supportedChainIds:c})||this).dAppId=r,n.networks=o,n.config=l,n.handleOnLogout=n.handleOnLogout.bind(a(n)),n.handleOnActiveWalletChanged=n.handleOnActiveWalletChanged.bind(a(n)),n.handleOnError=n.handleOnError.bind(a(n)),n}r=e,(t=u).prototype=Object.create(r.prototype),t.prototype.constructor=t,o(t,r);var l=u.prototype;return l.handleOnLogout=function(){this.emitDeactivate()},l.handleOnActiveWalletChanged=function(e){this.emitUpdate({account:e})},l.handleOnError=function(e){this.emitError(e)},l.activate=function(){try{var e=this,t=function(){return e.portis.onLogout(e.handleOnLogout),e.portis.onActiveWalletChanged(e.handleOnActiveWalletChanged),e.portis.onError(e.handleOnError),Promise.resolve(e.portis.provider.enable().then((function(e){return e[0]}))).then((function(t){return{provider:e.portis.provider,account:t}}))},r=function(){if(!e.portis)return Promise.resolve(n.e(7).then(n.t.bind(null,590,7)).then((function(e){var t;return null!=(t=null==e?void 0:e.default)?t:e}))).then((function(t){e.portis=new t(e.dAppId,"number"===typeof e.networks[0]?s[e.networks[0]]:e.networks[0],e.config)}))}();return Promise.resolve(r&&r.then?r.then(t):t())}catch(i){return Promise.reject(i)}},l.getProvider=function(){try{return Promise.resolve(this.portis.provider)}catch(e){return Promise.reject(e)}},l.getChainId=function(){try{return Promise.resolve(this.portis.provider.send("eth_chainId"))}catch(e){return Promise.reject(e)}},l.getAccount=function(){try{return Promise.resolve(this.portis.provider.send("eth_accounts").then((function(e){return e[0]})))}catch(e){return Promise.reject(e)}},l.deactivate=function(){this.portis.onLogout((function(){})),this.portis.onActiveWalletChanged((function(){})),this.portis.onError((function(){}))},l.changeNetwork=function(e,t){try{return"number"===typeof e?(s[e]||Object(i.default)(!1),this.portis.changeNetwork(s[e],t),this.emitUpdate({chainId:e})):(this.portis.changeNetwork(e,t),this.emitUpdate({chainId:Number(e.chainId)})),Promise.resolve()}catch(n){return Promise.reject(n)}},l.close=function(){try{var e=this;return Promise.resolve(e.portis.logout()).then((function(){e.emitDeactivate()}))}catch(t){return Promise.reject(t)}},u}(r.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(69),i=n(33);var o={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan"},a=function(e){var t,r;function a(t){var n,r=t.apiKey,a=t.chainId;return Object.keys(o).includes(a.toString())||Object(i.default)(!1),(n=e.call(this,{supportedChainIds:[a]})||this).apiKey=r,n.chainId=a,n}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=a.prototype;return s.activate=function(){try{var e=function(){return Promise.resolve(t.fortmatic.getProvider().enable().then((function(e){return e[0]}))).then((function(e){return{provider:t.fortmatic.getProvider(),chainId:t.chainId,account:e}}))},t=this,r=function(){if(!t.fortmatic)return Promise.resolve(n.e(1).then(n.t.bind(null,591,7)).then((function(e){var t;return null!=(t=null==e?void 0:e.default)?t:e}))).then((function(e){t.fortmatic=new e(t.apiKey,1===t.chainId||4===t.chainId?void 0:o[t.chainId])}))}();return Promise.resolve(r&&r.then?r.then(e):e())}catch(i){return Promise.reject(i)}},s.getProvider=function(){try{return Promise.resolve(this.fortmatic.getProvider())}catch(e){return Promise.reject(e)}},s.getChainId=function(){try{return Promise.resolve(this.chainId)}catch(e){return Promise.reject(e)}},s.getAccount=function(){try{return Promise.resolve(this.fortmatic.getProvider().send("eth_accounts").then((function(e){return e[0]})))}catch(e){return Promise.reject(e)}},s.deactivate=function(){},s.close=function(){try{var e=this;return Promise.resolve(e.fortmatic.user.logout()).then((function(){e.emitDeactivate()}))}catch(t){return Promise.reject(t)}},a}(r.a)},function(e,t,n){var r=n(385),i=n(386),o=n(252),a=n(387);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports={parse:n(392),stringify:n(395)}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(396).default;e.exports=r,e.exports.default=r},function(e,t,n){var r=n(399).default;e.exports=r,e.exports.default=r},,,,,,,function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(n){}}return function(n,r,i,o,a,s,u,l,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},function(e){e.exports=JSON.parse('{"a":[{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"amountADesired","type":"uint256"},{"internalType":"uint256","name":"amountBDesired","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"reserveA","type":"uint256"},{"internalType":"uint256","name":"reserveB","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETHSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermit","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityWithPermit","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapETHForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETHSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"}]}')},function(e){e.exports=JSON.parse('{"a":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"PairCreated","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allPairs","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allPairsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"createPair","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeToSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"setFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"setFeeToSetter","outputs":[],"stateMutability":"nonpayable","type":"function"}]}')},,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="random/5.1.0"},function(e,t,n){var r,i=n(412),o=n(413),a=n(415),s=n(424);function u(e,t,n,i,o){var a=e.rect(0,0,n,n);a.rotate(360*r.random());var s=n/o*r.random()+i*n/o;a.translate(s),a.rotate(180*r.random()),a.attr("fill",l(t)),a.attr("stroke","none")}function l(e){r.random();var t=Math.floor(e.length*r.random());return e.splice(t,1)[0]}e.exports=function(e,t){r=new i(t);var n=o(e),c=n.paper,f=n.container,d=function(e,t){var n=30*t.random()-15;return e.map((function(e){var t=a(e);return t.rotate(n),t.hexString()}))}(s.slice(),r),h=c.rect(0,0,e,e);h.attr("fill",l(d)),h.attr("stroke","none");for(var p=0;p<3;p++)u(c,d,e,p,3);return f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return X}));var r,i=n(0),o=n.n(i);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function l(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}!function(e){e.OnStart="start",e.OnChange="change",e.OnEnd="end"}(r||(r={}));var c=function(){},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.forEach((function(e){return e.apply(void 0,n)}))}},d=function(e,t){return e.map((function(e,n){return e+t[n]}))},h=function(e,t){return e.map((function(e,n){return e-t[n]}))},p=function(e){return function(t,n,r){var i=e?"addEventListener":"removeEventListener";n.forEach((function(e){var n=e[0],o=e[1];return t[i](n,o,r)}))}},g=p(!0),y=p(!1);function v(e){return{shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function m(e){return s({xy:[e.deltaX,e.deltaY]},v(e))}function b(e){var t=e.touches,n=e.buttons,r=e.changedTouches,i=t&&t.length>0?t:r&&r.length>0?r:null,o=i?i[0]:e,a=o.clientX,u=o.clientY,l=i&&i.length>0||n>0;return s({xy:[a,u],touches:i&&i.length||0,down:l,buttons:n},v(e))}function w(e){var t=e.touches,n=t[1].clientX-t[0].clientX,r=t[1].clientY-t[0].clientY;return s({da:[Math.hypot(n,r),-180*Math.atan2(n,r)/Math.PI],origin:[(t[1].clientX+t[0].clientX)/2,(t[1].clientY+t[0].clientY)/2],touches:2,down:t.length>0},v(e))}function x(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function _(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function k(e){return Math.hypot.apply(Math,e)}function S(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function T(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:_(t,n),velocity:x(t,n,r),distance:k(e),direction:S(t,r)}}function C(){try{return"constructor"in GestureEvent}catch(e){return!1}}var A={drag:{stateKey:"drag",handlerKey:"onDrag"},pinch:{stateKey:"pinch",handlerKey:"onPinch"},move:{stateKey:"move",handlerKey:"onMove"},scroll:{stateKey:"scroll",handlerKey:"onScroll"},wheel:{stateKey:"wheel",handlerKey:"onWheel"},hover:{stateKey:"move",handlerKey:"onHover"}},O={domTarget:void 0,event:{passive:!0,capture:!1},window:"undefined"!==typeof window?window:void 0,dragDelay:!1,passiveEvents:!0,pointerEvents:!1,enabled:!0,drag:!0,pinch:!0,scroll:!0,wheel:!0,hover:!0,move:!0},M={event:void 0,currentTarget:void 0,pointerId:void 0,values:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,time:void 0,cancel:c,canceled:!1,memo:void 0,args:void 0},E={xy:[0,0],vxvy:[0,0],velocity:0,distance:0},P={da:[0,0],vdva:[0,0],origin:void 0,turns:0},I={shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},move:s({},M,{},E),drag:s({},M,{},E),scroll:s({},M,{},E),wheel:s({},M,{},E),pinch:s({},M,{},P)},D={first:!1,last:!0,active:!1},L=function(){function e(e,t,n){var i=this;void 0===n&&(n=[]),this.gestureKey=e,this.controller=t,this.args=n,this.continuousGesture=!1,this.setTimeout=function(e,t){var n;void 0===t&&(t=140);for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];i.controller.timeouts[i.stateKey]=(n=window).setTimeout.apply(n,[e,t].concat(o))},this.clearTimeout=function(){clearTimeout(i.controller.timeouts[i.stateKey])},this.addWindowListeners=function(e){i.controller.addWindowListeners(i.stateKey,e)},this.removeWindowListeners=function(){i.controller.removeWindowListeners(i.stateKey)},this.updateState=function(e,t){i.controller.updateState(e,t,i.stateKey)},this.fireGestureHandler=function(e){i.controller.fireGestureHandler(i.gestureKey,e)},this.onStart=function(e,t){var n=i.getPayloadFromEvent(e),o=n.values,a=n.gesturePayload,u=n.sharedPayload,l=s({},I[i.stateKey],{values:o,event:e,first:!0,active:!0,time:e.timeStamp,args:i.args}),c=i.state,f=c.values,d=c.offset;i.continuousGesture?(l.initial=l.previous=f,l.delta=l.movement=h(o,f),l.offset=o,Object.assign(l,T(l.movement,l.delta,0))):(l.initial=l.previous=o,l.offset=d),i.updateState(s({},i.sharedStartState,{},u),s({},l,{},a,{},t)),i.fireGestureHandler(r.OnStart)},this.onChange=function(e,t){var n=i.getPayloadFromEvent(e),o=n.values,a=n.gesturePayload,u=n.sharedPayload,l=i.getKinematics(o,e);i.updateState(s({},u),s({first:!1},l,{},a,{},t)),i.fireGestureHandler(r.OnChange)},this.onEnd=function(e,t){i.state.active&&(i.removeWindowListeners(),i.updateState(i.sharedEndState,s({event:e},D,{},t)),i.fireGestureHandler(r.OnEnd))},this.onCancel=function(e){i.updateState(null,{canceled:!0,cancel:c}),requestAnimationFrame((function(){return i.onEnd(e)}))},this.timeoutHandler=function(e){i.enabled&&(i.clearTimeout(),i.setTimeout(i.onEnd),i.state.active?i.onChange(e):i.onStart(e))},this.stateKey=A[e].stateKey}var t,n,i;return t=e,(n=[{key:"enabled",get:function(){return this.controller.config.enabled&&this.controller.config[this.gestureKey]}},{key:"state",get:function(){return this.controller.state[this.stateKey]}}])&&a(t.prototype,n),i&&a(t,i),e}(),R=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.getKinematics=function(e,t){var n=this.state,r=n.values,i=n.initial,o=n.offset,a=n.time,s=h(e,i),u=h(e,r),l=T(s,u,t.timeStamp-a),c=l.velocity,f=l.velocities,p=l.distance,g=l.direction;return{event:t,values:e,movement:s,offset:d(o,u),delta:u,velocity:c,vxvy:f,distance:p,direction:g,previous:r,time:t.timeStamp}},t}(L),N=function(e){function t(t,n){var r;return(r=e.call(this,"drag",t,n)||this).sharedStartState={dragging:!0,down:!0},r.sharedEndState={dragging:!1,down:!1,buttons:0,touches:0},r.delayedEvent=!1,r.onDragStart=function(e){if(r.enabled&&!(b(e).touches>1)){var t=e.currentTarget,n=e.pointerId;if(r.controller.config.pointerEvents)t&&t.setPointerCapture(n);else{r.removeWindowListeners();var i=[["mousemove",r.onDragChange],["touchmove",r.onDragChange],["mouseup",r.onDragEnd],["touchend",r.onDragEnd],["touchcancel",r.onDragEnd]];r.addWindowListeners(i)}if(r.controller.config.dragDelay){var o="number"===typeof r.controller.config.dragDelay?r.controller.config.dragDelay:180;"function"===typeof e.persist&&e.persist(),r.delayedEvent=!0,r.setTimeout((function(){return r.startDrag(e)}),o)}else r.startDrag(e)}},r.startDrag=function(e){var t=e.currentTarget,n=e.pointerId;r.onStart(e,{currentTarget:t,pointerId:n,cancel:function(){return r.onCancel(e)}}),r.delayedEvent=!1},r.onDragChange=function(e){var t=r.state,n=t.canceled,i=t.active;if(!n)if(i){var o=b(e),a=o.buttons,s=o.touches;0!==a||0!==s?r.onChange(e,{cancel:function(){return r.onCancel(e)}}):r.onEnd(e)}else r.delayedEvent&&(r.clearTimeout(),r.startDrag(e))},r.onDragEnd=function(e){if(r.clearTimeout(),r.delayedEvent=!1,r.state.active){var t=r.state,n=t.currentTarget,i=t.pointerId;n&&r.controller.config.pointerEvents&&n.releasePointerCapture(i),r.onEnd(e)}},r}u(t,e);var n=t.prototype;return n.getPayloadFromEvent=function(e){var t=b(e);return{values:t.xy,sharedPayload:l(t,["xy"])}},n.getEventBindings=function(){return this.controller.config.pointerEvents?[["onPointerDown",this.onDragStart],["onPointerMove",this.onDragChange],[["onPointerUp"],this.onDragEnd]]:[[["onMouseDown","onTouchStart"],this.onDragStart]]},t}(R),j=function(e){function t(t,n){var r;return(r=e.call(this,"scroll",t,n)||this).sharedStartState={scrolling:!0},r.sharedEndState={scrolling:!1,velocity:0,vxvy:[0,0]},r.continuousGesture=!0,r}u(t,e);var n=t.prototype;return n.getPayloadFromEvent=function(e){var t=function(e){var t=e.currentTarget,n=t.scrollX,r=t.scrollY,i=t.scrollLeft,o=t.scrollTop;return s({xy:[n||i||0,r||o||0]},v(e))}(e);return{values:t.xy,sharedPayload:l(t,["xy"])}},n.getEventBindings=function(){return[["onScroll",this.timeoutHandler]]},t}(R),B=function(e){function t(t,n){var r;return(r=e.call(this,"wheel",t,n)||this).sharedStartState={wheeling:!0},r.sharedEndState={wheeling:!1,velocity:0,vxvy:[0,0]},r.continuousGesture=!0,r.onWheel=function(e){e.ctrlKey&&r.controller.actions.has("onPinch")||r.timeoutHandler(e)},r}u(t,e);var n=t.prototype;return n.getPayloadFromEvent=function(e){var t=this.state.xy,n=m(e),r=n.xy,i=l(n,["xy"]);return{values:d(r,t),sharedPayload:i}},n.getEventBindings=function(){return[["onWheel",this.onWheel]]},t}(R),F=function(e){function t(t,n){var r;return(r=e.call(this,"move",t,n)||this).sharedStartState={moving:!0},r.sharedEndState={moving:!1,velocity:0,vxvy:[0,0]},r}u(t,e);var n=t.prototype;return n.getPayloadFromEvent=function(e){var t=b(e);return{values:t.xy,sharedPayload:l(t,["xy"])}},n.getEventBindings=function(){return this.controller.config.pointerEvents?[["onPointerMove",this.timeoutHandler]]:[["onMouseMove",this.timeoutHandler]]},t}(R),z=function(e){function t(t,n){var i;return(i=e.call(this,"hover",t,n)||this).onPointerEnter=function(e){if(i.enabled){var t=i.getPayloadFromEvent(e),n=t.values,o=t.sharedPayload;i.updateState(s({hovering:!0},o),{values:n,event:e,args:i.args}),i.fireGestureHandler(r.OnChange)}},i.onPointerLeave=function(e){if(i.enabled){var t=i.getPayloadFromEvent(e),n=t.values,o=t.sharedPayload,a=i.getKinematics(n,e);i.updateState(s({hovering:!1,moving:!1},o),s({},a,{},D,{velocity:0,vxvy:[0,0]})),i.controller.fireGestureHandler("move",r.OnEnd),i.controller.fireGestureHandler("hover",r.OnChange)}},i}u(t,e);var n=t.prototype;return n.getPayloadFromEvent=function(e){var t=b(e);return{values:t.xy,sharedPayload:l(t,["xy"])}},n.getEventBindings=function(){return this.controller.config.pointerEvents?[["onPointerEnter",this.onPointerEnter],["onPointerLeave",this.onPointerLeave]]:[["onMouseEnter",this.onPointerEnter],["onMouseLeave",this.onPointerLeave]]},t}(R),V=function(e){function t(t,n,r){return void 0===r&&(r=[]),e.call(this,t,n,r)||this}return u(t,e),t.prototype.getKinematics=function(e,t){var n=e[0],r=e[1],i=this.state,o=i.values,a=i.turns,s=i.initial,u=i.offset,l=i.time;r=void 0!==r?r:o[1];var c=n-o[0],f=r-o[1],h=Math.abs(f)>270?a+Math.sign(f):a,p=[c,f-=360*(h-a)],g=[n-s[0],r-360*h-s[1]],y=_(p,t.timeStamp-l),v=S(p);return{event:t,values:[n,r],movement:g,delta:p,offset:d(u,p),vdva:y,direction:v,turns:h,previous:o,time:t.timeStamp}},t}(L),H=function(e){function t(t,n){var r;return(r=e.call(this,"pinch",t,n)||this).sharedStartState={pinching:!0},r.sharedEndState={pinching:!1,down:!1,touches:0},r.onPinchStart=function(e){r.enabled&&2===e.touches.length&&r.onStart(e,{cancel:function(){return r.onCancel(e)}})},r.onPinchChange=function(e){var t=r.state,n=t.canceled,i=t.active,o=t.time;!n&&i&&2===e.touches.length&&e.timeStamp!==o&&r.onChange(e,{cancel:function(){return r.onCancel(e)}})},r}u(t,e);var n=t.prototype;return n.getPayloadFromEvent=function(e){var t=w(e);return{values:t.da,gesturePayload:{origin:t.origin},sharedPayload:l(t,["da","origin"])}},n.getEventBindings=function(){return[["onTouchStart",this.onPinchStart],["onTouchMove",this.onPinchChange],[["onTouchEnd","onTouchCancel"],this.onEnd]]},t}(V),U=function(e){function t(t,n){var r;return(r=e.call(this,"pinch",t,n)||this).sharedStartState={pinching:!0},r.sharedEndState={pinching:!1},r.onWheel=function(e){e.ctrlKey&&(r.controller.config.passiveEvents||e.preventDefault(),r.timeoutHandler(e))},r}u(t,e);var n=t.prototype;return n.getPayloadFromEvent=function(e){var t=m(e),n=t.xy[1],r=l(t,["xy"]),i=this.state.da,o=i[0],a=i[1];return{values:[o-n,void 0!==a?a:0],gesturePayload:{origin:[e.clientX,e.clientY]},sharedPayload:r}},n.getEventBindings=function(){return[["onWheel",this.onWheel]]},t}(V),G=function(e){function t(t,n){var r;return(r=e.call(this,"pinch",t,n)||this).sharedStartState={pinching:!0,down:!0,touches:2},r.sharedEndState={pinching:!1,down:!1,touches:0},r.onPinchStart=function(e){if(r.enabled){e.preventDefault();var t=r.origin?r.origin:[e.clientX,e.clientY];r.onStart(e,{origin:t,cancel:function(){return r.onCancel(e)}})}},r.onPinchChange=function(e){var t=r.state,n=t.canceled,i=t.active;!n&&i&&(e.preventDefault(),r.onChange(e,{cancel:function(){return r.onCancel(e)}}))},r.onGestureEnd=function(e){r.onEnd(e),e.preventDefault(),r.origin=void 0},r.updateTouchData=function(e){if(r.enabled&&2===e.touches.length){var t=w(e).origin;r.origin=t}},r}u(t,e);var n=t.prototype;return n.getPayloadFromEvent=function(e){return{values:[260*e.scale,e.rotation]}},n.getEventBindings=function(){return[["onGestureStart",this.onPinchStart],["onGestureChange",this.onPinchChange],[["onGestureEnd","onTouchCancel"],this.onGestureEnd],[["onTouchStart","onTouchMove"],this.updateTouchData]]},t}(V),J=function(e,t){var n=this;this.handlers=e,this.config=t,this.state=I,this.timeouts={},this.bindings={},this.domListeners=[],this.windowListeners={},this.clean=function(){n.cleanOnBind(),Object.values(n.timeouts).forEach(clearTimeout),Object.keys(n.windowListeners).forEach((function(e){return n.removeWindowListeners(e)}))},this.cleanOnBind=function(){n.bindings={};var e=n.config.domTarget;e&&(y(e,n.domListeners,n.config.event),n.domListeners=[])},this.updateState=function(e,t,r){var i,o=s({},n.state[r],{},t);"da"in o?o.da=o.values:"xy"in o&&(o.xy=o.values),n.state=s({},n.state,((i={shared:s({},n.state.shared,{},e)})[r]=o,i))},this.fireGestureHandler=function(e,t){var i=A[e],o=i.stateKey,a=i.handlerKey,u=s({},n.state.shared,{},n.state[o]);if(u.event&&(u.event.gesture=e),t===r.OnStart){var l=a+"Start",c=n.handlers[l];c&&c(u)}var f=n.handlers[a];if(f){var d=f(u);n.state[o].memo=void 0!==d?d:n.state[o].memo}if(t===r.OnEnd){var h=a+"End",p=n.handlers[h];p&&p(u)}},this.addWindowListeners=function(e,t){n.config.window&&(n.windowListeners[e]=t,g(n.config.window,t,n.config.event))},this.removeWindowListeners=function(e){if(n.config.window){var t=n.windowListeners[e];t&&(y(n.config.window,t,n.config.event),delete n.windowListeners[e])}},this.addRecognizer=function(e){e.getEventBindings().map(n.addEventBindings)},this.addEventBindings=function(e){var t=e[0],r=e[1];(Array.isArray(t)?t:[t]).forEach((function(e){n.bindings[e]=n.bindings[e]?[].concat(n.bindings[e],[r]):[r]}))},this.addDomTargetListeners=function(){var e=n.config.domTarget;Object.entries(n.bindings).forEach((function(e){var t=e[0],r=e[1];n.domListeners.push([t.substr(2).toLowerCase(),f.apply(void 0,r)])})),g(e,n.domListeners,n.config.event)},this.getBindings=function(){var e={},t=n.config.event.capture?"Capture":"";return Object.entries(n.bindings).forEach((function(n){var r=n[0],i=n[1],o=Array.isArray(i)?i:[i];e[r+t]=f.apply(void 0,o)})),e},this.bind=function(){var e=n.config.domTarget,t=s({},n.handlers);n.cleanOnBind();for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.actions.has("onDrag")&&(n.addRecognizer(new N(n,i)),delete t.onDrag,delete t.onDragStart,delete t.onDragEnd),n.actions.has("onScroll")&&(n.addRecognizer(new j(n,i)),delete t.onScroll,delete t.onScrollStart,delete t.onScrollEnd),n.actions.has("onWheel")&&(n.addRecognizer(new B(n,i)),delete t.onWheel,delete t.onWheelStart,delete t.onWheelEnd),n.actions.has("onMove")&&(n.addRecognizer(new F(n,i)),delete t.onMove,delete t.onMoveStart,delete t.onMoveEnd),n.actions.has("onHover")&&(n.addRecognizer(new z(n,i)),delete t.onHover),n.actions.has("onPinch")&&(e&&C()?n.addRecognizer(new G(n,i)):(n.addRecognizer(new H(n,i)),n.addRecognizer(new U(n,i))),delete t.onPinch,delete t.onPinchStart,delete t.onPinchEnd),Object.entries(t).map((function(e){var t=e[0],r=e[1];n.addEventBindings([t,r])})),e?(n.addDomTargetListeners(),n.clean):n.getBindings()},this.actions=new Set(Object.keys(this.handlers).map((function(e){return e.replace(/End|Start/,"")})))};function X(e,t){var n=o.a.useRef();return n.current||(n.current=new J(e,W(t))),o.a.useEffect((function(){n.current.config=W(t),n.current.handlers=e}),[e,t]),o.a.useEffect((function(){return n.current.clean}),[]),n.current.bind}function W(e){var t=s({},O,{},e),n=t.domTarget,r=n&&"current"in n?n.current:n;t.domTarget=r;var i=void 0===t.event.passive||t.event.passive;return t.passiveEvents=!t.domTarget||i,t}},,function(e,t){var n="undefined"!==typeof Element,r="function"===typeof Map,i="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,t){try{return function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,u,l,c;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(u=s;0!==u--;)if(!e(t[u],a[u]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(c=t.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;for(c=t.entries();!(u=c.next()).done;)if(!e(u.value[1],a.get(u.value[0])))return!1;return!0}if(i&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(c=t.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(u=s;0!==u--;)if(t[u]!==a[u])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((s=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(n&&t instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!t.$$typeof)&&!e(t[l[u]],a[l[u]]))return!1;return!0}return t!==t&&a!==a}(e,t)}catch(a){if((a.message||"").match(/stack|recursion/i))return!1;throw a}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(20),i=n(47),o=n(78),a=n(86),s=n(0),u=(n(35),"object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()});function l(e){cancelAnimationFrame(e.id)}function c(e,t){var n=u();var r={id:requestAnimationFrame((function i(){u()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var f=null;function d(e){if(void 0===e&&(e=!1),null===f||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?f="positive-descending":(t.scrollLeft=1,f=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),f}return f}var h=function(e,t){return e};function p(e){var t,n,u=e.getItemOffset,f=e.getEstimatedTotalSize,p=e.getItemSize,y=e.getOffsetForIndexAndAlignment,v=e.getStartIndexForOffset,m=e.getStopIndexForStartIndex,b=e.initInstanceProps,w=e.shouldResetStyleCacheOnItemSizeChange,x=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=b(n.props,Object(o.a)(Object(o.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(o.a)(Object(o.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Object(a.a)((function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})})),n._callOnScroll=void 0,n._callOnScroll=Object(a.a)((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,o=r.itemSize,a=r.layout,s=n._getItemStyleCache(w&&o,w&&a,w&&i);if(s.hasOwnProperty(e))t=s[e];else{var l=u(n.props,e,n._instanceProps),c=p(n.props,e,n._instanceProps),f="horizontal"===i||"horizontal"===a,d="rtl"===i,h=f?l:0;s[e]=t={position:"absolute",left:d?void 0:h,right:d?h:void 0,top:f?0:l,height:f?"100%":c,width:f?c:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Object(a.a)((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,a=i;if("rtl"===t)switch(d()){case"negative":a=-i;break;case"positive-descending":a=o-r-i}return a=Math.max(0,Math.min(a,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;n.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&l(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=c(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return g(e,t),x(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(y(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(d()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&l(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,a=e.innerRef,u=e.innerElementType,l=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,g=void 0===p?h:p,y=e.layout,v=e.outerElementType,m=e.outerTagName,b=e.style,w=e.useIsScrolling,x=e.width,_=this.state.isScrolling,k="horizontal"===i||"horizontal"===y,S=k?this._onScrollHorizontal:this._onScrollVertical,T=this._getRangeToRender(),C=T[0],A=T[1],O=[];if(c>0)for(var M=C;M<=A;M++)O.push(Object(s.createElement)(t,{data:d,key:g(M,d),index:M,isScrolling:w?_:void 0,style:this._getItemStyle(M)}));var E=f(this.props,this._instanceProps);return Object(s.createElement)(v||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:o,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},Object(s.createElement)(u||l||"div",{children:O,ref:a,style:{height:k?"100%":E,pointerEvents:_?"none":void 0,width:k?E:"100%"}}))},n._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"===typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,u=o.scrollUpdateWasRequested;this._callOnScroll(a,s,u)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=v(this.props,a,this._instanceProps),u=m(this.props,s,a,this._instanceProps),l=i&&"backward"!==o?1:Math.max(1,n),c=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,s-l),Math.max(0,Math.min(t-1,u+c)),s,u]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var g=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},y=p({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var i=e.direction,o=e.height,a=e.itemCount,s=e.itemSize,u=e.layout,l=e.width,c="horizontal"===i||"horizontal"===u?l:o,f=Math.max(0,a*s-c),d=Math.min(f,t*s),h=Math.max(0,t*s-c+s);switch("smart"===n&&(n=r>=h-c&&r<=d+c?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var p=Math.round(h+(d-h)/2);return p<Math.ceil(c/2)?0:p>f+Math.floor(c/2)?f:p;case"auto":default:return r>=h&&r<=d?r:r<h?h:d}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,s=e.layout,u=e.width,l=t*a,c="horizontal"===r||"horizontal"===s?u:i,f=Math.ceil((c+n-l)/a);return Math.max(0,Math.min(o-1,t+f-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}})},function(e,t,n){"use strict";(function(e){var r=n(0);function i(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof self?self:e;var r="undefined"!==typeof document&&document.attachEvent;if(!r){var i=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),o=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){if(!(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},u=!1,l="",c="animationstart",f="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(u=!0),!1===u)for(var p=0;p<f.length;p++)if(void 0!==h.style[f[p]+"AnimationName"]){l="-"+f[p].toLowerCase()+"-",c=d[p],u=!0;break}var g="resizeanim",y="@"+l+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",v=l+"animation: 1ms "+g+"; "}return{addResizeListener:function(e,i){if(r)e.attachEvent("onresize",i);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,u=n.getComputedStyle(e);u&&"static"==u.position&&(e.style.position="relative"),function(e){if(!e.getElementById("detectElementResize")){var n=(y||"")+".resize-triggers { "+(v||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],i=e.createElement("style");i.id="detectElementResize",i.type="text/css",null!=t&&i.setAttribute("nonce",t),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(e.createTextNode(n)),r.appendChild(i)}}(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var l=o.createElement("div");l.className="expand-trigger",l.appendChild(o.createElement("div"));var f=o.createElement("div");f.className="contract-trigger",e.__resizeTriggers__.appendChild(l),e.__resizeTriggers__.appendChild(f),e.appendChild(e.__resizeTriggers__),a(e),e.addEventListener("scroll",s,!0),c&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==g&&a(e)},e.__resizeTriggers__.addEventListener(c,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(i)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(c,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}var o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},l=function(e){function t(){var e,n,r;o(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,i=e.onResize;if(r._parentNode){var o=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},u=parseInt(s.paddingLeft,10)||0,l=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,f=parseInt(s.paddingBottom,10)||0,d=o-c-f,h=a-u-l;(!t&&r.state.height!==d||!n&&r.state.width!==h)&&(r.setState({height:o-c-f,width:a-u-l}),i({height:o,width:a}))}},r._setRef=function(e){r._autoSizer=e},u(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=i(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.disableHeight,o=e.disableWidth,a=e.style,u=this.state,l=u.height,c=u.width,f={overflow:"visible"},d={},h=!1;return i||(0===l&&(h=!0),f.height=0,d.height=l),o||(0===c&&(h=!0),f.width=0,d.width=c),Object(r.createElement)("div",{className:n,ref:this._setRef,style:s({},f,a)},!h&&t(d))}}]),t}(r.PureComponent);l.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},t.a=l}).call(this,n(79))},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://uniswap.org/tokenlist.schema.json","title":"Uniswap Token List","description":"Schema for lists of tokens compatible with the Uniswap Interface","definitions":{"Version":{"type":"object","description":"The version of the list, used in change detection","examples":[{"major":1,"minor":0,"patch":0}],"additionalProperties":false,"properties":{"major":{"type":"integer","description":"The major version of the list. Must be incremented when tokens are removed from the list or token addresses are changed.","minimum":0,"examples":[1,2]},"minor":{"type":"integer","description":"The minor version of the list. Must be incremented when tokens are added to the list.","minimum":0,"examples":[0,1]},"patch":{"type":"integer","description":"The patch version of the list. Must be incremented for any changes to the list.","minimum":0,"examples":[0,1]}},"required":["major","minor","patch"]},"TagIdentifier":{"type":"string","description":"The unique identifier of a tag","minLength":1,"maxLength":10,"pattern":"^[\\\\w]+$","examples":["compound","stablecoin"]},"ExtensionIdentifier":{"type":"string","description":"The name of a token extension property","minLength":1,"maxLength":30,"pattern":"^[\\\\w]+$","examples":["color","is_fee_on_transfer","aliases"]},"ExtensionValue":{"anyOf":[{"type":"string","minLength":1,"maxLength":42,"examples":["#00000"]},{"type":"boolean","examples":[true]},{"type":"number","examples":[15]},{"type":"null"}]},"TagDefinition":{"type":"object","description":"Definition of a tag that can be associated with a token via its identifier","additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the tag","pattern":"^[ \\\\w]+$","minLength":1,"maxLength":20},"description":{"type":"string","description":"A user-friendly description of the tag","pattern":"^[ \\\\w\\\\.,]+$","minLength":1,"maxLength":200}},"required":["name","description"],"examples":[{"name":"Stablecoin","description":"A token with value pegged to another asset"}]},"TokenInfo":{"type":"object","description":"Metadata for a single token in a token list","additionalProperties":false,"properties":{"chainId":{"type":"integer","description":"The chain ID of the Ethereum network where this token is deployed","minimum":1,"examples":[1,42]},"address":{"type":"string","description":"The checksummed address of the token on the specified chain ID","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]},"decimals":{"type":"integer","description":"The number of decimals for the token balance","minimum":0,"maximum":255,"examples":[18]},"name":{"type":"string","description":"The name of the token","minLength":1,"maxLength":40,"pattern":"^[ \\\\w.\'+\\\\-%/\xc0-\xd6\xd8-\xf6\xf8-\xff\\\\:]+$","examples":["USD Coin"]},"symbol":{"type":"string","description":"The symbol for the token; must be alphanumeric","pattern":"^[a-zA-Z0-9+\\\\-%/\\\\$]+$","minLength":1,"maxLength":20,"examples":["USDC"]},"logoURI":{"type":"string","description":"A URI to the token logo asset; if not set, interface will attempt to find a logo based on the token address; suggest SVG or PNG of size 64x64","format":"uri","examples":["ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"]},"tags":{"type":"array","description":"An array of tag identifiers associated with the token; tags are defined at the list level","items":{"$ref":"#/definitions/TagIdentifier"},"maxLength":10,"examples":["stablecoin","compound"]},"extensions":{"type":"object","description":"An object containing any arbitrary or vendor-specific token metadata","propertyNames":{"$ref":"#/definitions/ExtensionIdentifier"},"additionalProperties":{"$ref":"#/definitions/ExtensionValue"},"maxProperties":10,"examples":[{"color":"#000000","is_verified_by_me":true}]}},"required":["chainId","address","decimals","name","symbol"]}},"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the token list","minLength":1,"maxLength":20,"pattern":"^[\\\\w ]+$","examples":["My Token List"]},"timestamp":{"type":"string","format":"date-time","description":"The timestamp of this list version; i.e. when this immutable version of the list was created"},"version":{"$ref":"#/definitions/Version"},"tokens":{"type":"array","description":"The list of tokens included in the list","items":{"$ref":"#/definitions/TokenInfo"},"minItems":1,"maxItems":10000},"keywords":{"type":"array","description":"Keywords associated with the contents of the list; may be used in list discoverability","items":{"type":"string","description":"A keyword to describe the contents of the list","minLength":1,"maxLength":20,"pattern":"^[\\\\w ]+$","examples":["compound","lending","personal tokens"]},"maxItems":20,"uniqueItems":true},"tags":{"type":"object","description":"A mapping of tag identifiers to their name and description","propertyNames":{"$ref":"#/definitions/TagIdentifier"},"additionalProperties":{"$ref":"#/definitions/TagDefinition"},"maxProperties":20,"examples":[{"stablecoin":{"name":"Stablecoin","description":"A token with value pegged to another asset"}}]},"logoURI":{"type":"string","description":"A URI for the logo of the token list; prefer SVG or PNG of size 256x256","format":"uri","examples":["ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"]}},"required":["name","timestamp","version","tokens"]}')},function(e,t,n){"use strict";var r=n(505),i=n(204),o=n(509),a=n(267),s=n(268),u=n(510),l=n(511),c=n(532),f=n(115);e.exports=v,v.prototype.validate=function(e,t){var n;if("string"==typeof e){if(!(n=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var i=n(t);!0!==n.$async&&(this.errors=n.errors);return i},v.prototype.compile=function(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)},v.prototype.addSchema=function(e,t,n,r){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,n,r);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return k(this,t=i.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,n,r,!0),this},v.prototype.addMetaSchema=function(e,t,n){return this.addSchema(e,t,n,!0),this},v.prototype.validateSchema=function(e,t){var n=e.$schema;if(void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(!(n=n||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(p)?p:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var r=this.validate(n,e);if(!r&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return r},v.prototype.getSchema=function(e){var t=m(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var n=i.schema.call(e,{schema:{}},t);if(n){var o=n.schema,s=n.root,u=n.baseId,l=r.call(e,o,s,void 0,u);return e._fragments[t]=new a({ref:t,fragment:!0,schema:o,root:s,baseId:u,validate:l}),l}}(this,e)}},v.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=m(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var n=this._opts.serialize,r=n?n(e):e;this._cache.del(r);var o=this._getId(e);o&&(o=i.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},v.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},v.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var n=void 0===(t=t||{}).separator?", ":t.separator,r=void 0===t.dataVar?"data":t.dataVar,i="",o=0;o<e.length;o++){var a=e[o];a&&(i+=r+a.dataPath+" "+a.message+n)}return i.slice(0,-n.length)},v.prototype._addSchema=function(e,t,n,r){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,s=o?o(e):e,u=this._cache.get(s);if(u)return u;r=r||!1!==this._opts.addUsedSchema;var l=i.normalizeId(this._getId(e));l&&r&&k(this,l);var c,f=!1!==this._opts.validateSchema&&!t;f&&!(c=l&&l==i.normalizeId(e.$schema))&&this.validateSchema(e,!0);var d=i.ids.call(this,e),h=new a({id:l,schema:e,localRefs:d,cacheKey:s,meta:n});"#"!=l[0]&&r&&(this._refs[l]=h);this._cache.put(s,h),f&&c&&this.validateSchema(e,!0);return h},v.prototype._compile=function(e,t){if(e.compiling)return e.validate=o,o.schema=e.schema,o.errors=null,o.root=t||o,!0===e.schema.$async&&(o.$async=!0),o;var n,i;e.compiling=!0,e.meta&&(n=this._opts,this._opts=this._metaOpts);try{i=r.call(this,e.schema,t,e.localRefs)}catch(a){throw delete e.validate,a}finally{e.compiling=!1,e.meta&&(this._opts=n)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function o(){var t=e.validate,n=t.apply(this,arguments);return o.errors=t.errors,n}},v.prototype.compileAsync=n(533);var d=n(534);v.prototype.addKeyword=d.add,v.prototype.getKeyword=d.get,v.prototype.removeKeyword=d.remove,v.prototype.validateKeyword=d.validate;var h=n(206);v.ValidationError=h.Validation,v.MissingRefError=h.MissingRef,v.$dataMetaSchema=c;var p="http://json-schema.org/draft-07/schema",g=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],y=["/properties"];function v(e){if(!(this instanceof v))return new v(e);e=this._opts=f.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:S,warn:S,error:S};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=u(e.format),this._cache=e.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=function(e){switch(e.schemaId){case"auto":return _;case"id":return w;default:return x}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=f.copy(e._opts),n=0;n<g.length;n++)delete t[g[n]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}(this),function(e){var t;e._opts.$data&&(t=n(537),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=n(274);e._opts.$data&&(r=c(r,y));e.addMetaSchema(r,p,!0),e._refs["http://json-schema.org/schema"]=p}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var n in t)e.addSchema(t[n],n)}(this)}function m(e,t){return t=i.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,n){for(var r in t){var i=t[r];i.meta||n&&!n.test(r)||(e._cache.del(i.cacheKey),delete t[r])}}function w(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function x(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function _(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function k(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function S(){}},,,,,,,function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e).slice(8,-1)}function i(e){return"Undefined"===r(e)}function o(e){return"Null"===r(e)}function a(e){return"Object"===r(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function s(e){return"Array"===r(e)}function u(e){return"Symbol"===r(e)}var l,c,f,d,h;l=o,c=i;function p(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function g(e,t,n,r){var i=r.propertyIsEnumerable(t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function y(e,t,n){if(!a(t))return n&&s(n)&&n.forEach((function(n){t=n(e,t)})),t;var r={};a(e)&&(r=p(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce((function(n,r){var i=e[r];return(!u(r)&&!Object.getOwnPropertyNames(t).includes(r)||u(r)&&!Object.getOwnPropertySymbols(t).includes(r))&&g(n,r,i,e),n}),{}));return p(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t)).reduce((function(r,i){var o=t[i],u=a(e)?e[i]:void 0;return n&&s(n)&&n.forEach((function(e){o=e(u,o)})),void 0!==u&&a(o)&&(o=y(u,o,n)),g(r,i,o,t),r}),r)}t.a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null,i=e;return a(e)&&e.extensions&&1===Object.keys(e).length&&(i={},r=e.extensions),t.reduce((function(e,t){return y(e,t,r)}),i)}},function(e,t,n){"use strict";(function(e){var r=n(417),i=n(418),o=n(339);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,n,r):"string"===typeof t?function(e,t,n){"string"===typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||(r=t.length)!==r?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(l(e,o+d)!==l(t,d)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return H(z(t,e.length-n),e,n,r)}function x(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return x(e,t,n,r)}function k(e,t,n,r){return H(V(t),e,n,r)}function S(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"===typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=F(e[o]);return i}function E(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:z(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(79))},function(e,t,n){(function(e){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(411),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(79))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(63),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,p=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,y="function"===typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" 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 w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||m}function x(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||m}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var k=_.prototype=new x;k.constructor=_,r(k,w.prototype),k.isPureReactComponent=!0;var S={current:null},T=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!C.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:S.current}}function O(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var M=/\/+/g,E=[];function P(e,t,n,r){if(E.length){var i=E.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>E.length&&E.push(e)}function D(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+L(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var c=n+L(s=t[l],l);u+=e(s,c,r,i)}else if(null===t||"object"!==typeof t?c=null:c="function"===typeof(c=y&&t[y]||t["@@iterator"])?c:null,"function"===typeof c)for(t=c.call(t),l=0;!(s=t.next()).done;)u+=e(s=s.value,c=n+L(s,l++),r,i);else if("object"===s)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}(e,"",t,n)}function L(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function N(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?j(e,r,n,(function(e){return e})):null!=e&&(O(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(M,"$&/")+"/")+n)),r.push(e))}function j(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(M,"$&/")+"/"),D(e,N,t=P(t,o,r,i)),I(t)}var B={current:null};function F(){var e=B.current;if(null===e)throw Error(v(321));return e}var z={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return j(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;D(e,R,t=P(null,null,t,n)),I(t)},count:function(e){return D(e,(function(){return null}),null)},toArray:function(e){var t=[];return j(e,t,null,(function(e){return e})),t},only:function(e){if(!O(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=l,t.PureComponent=_,t.StrictMode=u,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(v(267,e));var i=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)T.call(t,c)&&!C.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;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:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.14.0"},function(e,t,n){},function(e,t,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",l="vendor",c="version",f="mobile",d="tablet",h="smarttv",p={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"===typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"===typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"undefined"===typeof t?e:e.substring(0,255)}},g={rgx:function(e,t){for(var n,r,i,o,a,s,u=0;u<t.length&&!a;){var l=t[u],c=t[u+1];for(n=r=0;n<l.length&&!a;)if(a=l[n++].exec(e))for(i=0;i<c.length;i++)s=a[++r],"object"===typeof(o=c[i])&&o.length>0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!==typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},str:function(e,t){for(var n in t)if("object"===typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(p.has(t[n][r],e))return"?"===n?void 0:n}else if(p.has(t[n],e))return"?"===n?void 0:n;return e}},y={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},v={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[c,[s,"Chrome"]],[/(?:edge|edgios|edga|edg)\/([\w\.]+)/i],[c,[s,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[s,c],[/opios[\/\s]+([\w\.]+)/i],[c,[s,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[c,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,c],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[c,[s,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[c,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[c,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[c,[s,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[c,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[c,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],c],[/focus\/([\w\.]+)/i],[c,[s,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[c,[s,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[c,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[c,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[c,[s,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[s,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[c,[s,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],c],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[s,c],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[s],[/;fbav\/([\w\.]+);/i],[c,[s,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[s,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[s,c],[/\bgsa\/([\w\.]+)\s.*safari\//i],[c,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[s,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],c],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[c,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[s,c],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[c,[s,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[c,s],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[s,[c,g.str,y.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[s,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[s,"Netscape"],c],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[c,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[s,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",p.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",p.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",p.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[a,[l,"Samsung"],[u,d]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[a,[l,"Samsung"],[u,f]],[/\((ip(?:hone|od)[\s\w]*);/i],[a,[l,"Apple"],[u,f]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[l,"Apple"],[u,d]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[a,[l,"Huawei"],[u,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[a,[l,"Huawei"],[u,f]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[a,/_/g," "],[l,"Xiaomi"],[u,f]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[a,/_/g," "],[l,"Xiaomi"],[u,d]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[a,[l,"OPPO"],[u,f]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[a,[l,"Vivo"],[u,f]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[a,[l,"Realme"],[u,f]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[a,[l,"Motorola"],[u,f]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[l,"Motorola"],[u,d]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[a,[l,"LG"],[u,d]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[a,[l,"LG"],[u,f]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[a,[l,"Lenovo"],[u,d]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[a,/_/g," "],[l,"Nokia"],[u,f]],[/droid.+;\s(pixel\sc)[\s)]/i],[a,[l,"Google"],[u,d]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[a,[l,"Google"],[u,f]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[l,"Sony"],[u,f]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[a,"Xperia Tablet"],[l,"Sony"],[u,d]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[a,[l,"OnePlus"],[u,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[a,[l,"Amazon"],[u,d]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[a,"Fire Phone"],[l,"Amazon"],[u,f]],[/\((playbook);[\w\s\),;-]+(rim)/i],[a,l,[u,d]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[a,[l,"BlackBerry"],[u,f]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[a,[l,"ASUS"],[u,d]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[a,[l,"ASUS"],[u,f]],[/(nexus\s9)/i],[a,[l,"HTC"],[u,d]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[l,[a,/_/g," "],[u,f]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[a,[l,"Acer"],[u,d]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[a,[l,"Meizu"],[u,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[l,a,[u,f]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[l,a,[u,d]],[/\s(surface\sduo)\s/i],[a,[l,"Microsoft"],[u,d]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[a,[l,"Fairphone"],[u,f]],[/\s(u304aa)\sbuild/i],[a,[l,"AT&T"],[u,f]],[/sie-(\w*)/i],[a,[l,"Siemens"],[u,f]],[/[;\/]\s?(rct\w+)\sbuild/i],[a,[l,"RCA"],[u,d]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[a,[l,"Dell"],[u,d]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[a,[l,"Verizon"],[u,d]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[a,[l,"Barnes & Noble"],[u,d]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[a,[l,"NuVision"],[u,d]],[/;\s(k88)\sbuild/i],[a,[l,"ZTE"],[u,d]],[/;\s(nx\d{3}j)\sbuild/i],[a,[l,"ZTE"],[u,f]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[a,[l,"Swiss"],[u,f]],[/[;\/]\s?(zur\d{3})\sbuild/i],[a,[l,"Swiss"],[u,d]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[a,[l,"Zeki"],[u,d]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[l,"Dragon Touch"],a,[u,d]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[a,[l,"Insignia"],[u,d]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[a,[l,"NextBook"],[u,d]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[l,"Voice"],a,[u,f]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[l,"LvTel"],a,[u,f]],[/;\s(ph-1)\s/i],[a,[l,"Essential"],[u,f]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[a,[l,"Envizen"],[u,d]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[a,[l,"MachSpeed"],[u,d]],[/[;\/]\s?tu_(1491)\sbuild/i],[a,[l,"Rotor"],[u,d]],[/(shield[\w\s]+)\sbuild/i],[a,[l,"Nvidia"],[u,d]],[/(sprint)\s(\w+)/i],[l,a,[u,f]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[l,"Microsoft"],[u,f]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[l,"Zebra"],[u,d]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[l,"Zebra"],[u,f]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[l,a,[u,"console"]],[/droid.+;\s(shield)\sbuild/i],[a,[l,"Nvidia"],[u,"console"]],[/(playstation\s[345portablevi]+)/i],[a,[l,"Sony"],[u,"console"]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[a,[l,"Microsoft"],[u,"console"]],[/smart-tv.+(samsung)/i],[l,[u,h]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[l,"Samsung"],[u,h]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[l,"LG"],[u,h]],[/(apple)\s?tv/i],[l,[a,"Apple TV"],[u,h]],[/crkey/i],[[a,"Chromecast"],[l,"Google"],[u,h]],[/droid.+aft([\w])(\sbuild\/|\))/i],[a,[l,"Amazon"],[u,h]],[/\(dtv[\);].+(aquos)/i],[a,[l,"Sharp"],[u,h]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[l,p.trim],[a,p.trim],[u,h]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[u,h]],[/((pebble))app\/[\d\.]+\s/i],[l,a,[u,"wearable"]],[/droid.+;\s(glass)\s\d/i],[a,[l,"Google"],[u,"wearable"]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[a,[l,"Zebra"],[u,"wearable"]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[l,[u,"embedded"]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[a,[u,f]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[a,[u,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[u,p.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[l,"Generic"]],[/(phone)/i],[[u,f]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[c,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[s,c],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[c,s]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[s,c],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[s,[c,g.str,y.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[s,"Windows"],[c,g.str,y.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[c,/_/g,"."],[s,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[s,"Mac OS"],[c,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[s,c],[/\(bb(10);/i],[c,[s,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[c,[s,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[c,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[c,[s,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[s,"Chromium OS"],c],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[s,c],[/(sunos)\s?([\w\.\d]*)/i],[[s,"Solaris"],c],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[s,c]]},m=function e(t,n){if("object"===typeof t&&(n=t,t=void 0),!(this instanceof e))return new e(t,n).getResult();var r=t||("undefined"!==typeof i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),o=n?p.extend(v,n):v;return this.getBrowser=function(){var e={name:void 0,version:void 0};return g.rgx.call(e,r,o.browser),e.major=p.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return g.rgx.call(e,r,o.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return g.rgx.call(e,r,o.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return g.rgx.call(e,r,o.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return g.rgx.call(e,r,o.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r="string"===typeof e&&e.length>255?p.trim(e,255):e,this},this.setUA(r),this};m.VERSION="0.7.28",m.BROWSER={NAME:s,MAJOR:"major",VERSION:c},m.CPU={ARCHITECTURE:"architecture"},m.DEVICE={MODEL:a,VENDOR:l,TYPE:u,CONSOLE:"console",MOBILE:f,SMARTTV:h,TABLET:d,WEARABLE:"wearable",EMBEDDED:"embedded"},m.ENGINE={NAME:s,VERSION:c},m.OS={NAME:s,VERSION:c},"undefined"!==typeof t?("undefined"!==typeof e&&e.exports&&(t=e.exports=m),t.UAParser=m):void 0===(r=function(){return m}.call(t,n,t,e))||(e.exports=r);var b="undefined"!==typeof i&&(i.jQuery||i.Zepto);if(b&&!b.ua){var w=new m;b.ua=w.getResult(),b.ua.get=function(){return w.getUA()},b.ua.set=function(e){w.setUA(e);var t=w.getResult();for(var n in t)b.ua[n]=t[n]}}}("object"===typeof window?window:this)},function(e,t,n){"use strict";var r=n(0),i=n(63),o=n(360);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var u=!1,l=null,c=!1,f=null,d={onError:function(e){u=!0,l=e}};function h(e,t,n,r,i,o,a,c,f){u=!1,l=null,s.apply(d,arguments)}var p=null,g=null,y=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=y(n),function(e,t,n,r,i,o,s,d,p){if(h.apply(this,arguments),u){if(!u)throw Error(a(198));var g=l;u=!1,l=null,c||(c=!0,f=g)}}(r,t,void 0,e),e.currentTarget=null}var m=null,b={};function w(){if(m)for(var e in b){var t=b[e],n=m.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!_[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in _[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,u=r;if(k.hasOwnProperty(u))throw Error(a(99,u));k[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&x(l[i],s,u);i=!0}else o.registrationName?(x(o.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function x(e,t,n){if(S[e])throw Error(a(100,e));S[e]=t,T[e]=t.eventTypes[n].dependencies}var _=[],k={},S={},T={};function C(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var A=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),O=null,M=null,E=null;function P(e){if(e=g(e)){if("function"!==typeof O)throw Error(a(280));var t=e.stateNode;t&&(t=p(t),O(e.stateNode,e.type,t))}}function I(e){M?E?E.push(e):E=[e]:M=e}function D(){if(M){var e=M,t=E;if(E=M=null,P(e),t)for(e=0;e<t.length;e++)P(t[e])}}function L(e,t){return e(t)}function R(e,t,n,r,i){return e(t,n,r,i)}function N(){}var j=L,B=!1,F=!1;function z(){null===M&&null===E||(N(),D())}function V(e,t,n){if(F)return e(t,n);F=!0;try{return j(e,t,n)}finally{F=!1,z()}}var H=/^[: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]*$/,U=Object.prototype.hasOwnProperty,G={},J={};function X(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){W[e]=new X(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];W[t]=new X(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new X(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new X(e,2,!1,e,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(e){W[e]=new X(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new X(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new X(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new X(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new X(e,5,!1,e.toLowerCase(),null,!1)}));var q=/[\-:]([a-z])/g;function Z(e){return e[1].toUpperCase()}"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(e){var t=e.replace(q,Z);W[t]=new X(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(q,Z);W[t]=new X(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(q,Z);W[t]=new X(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new X(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new X("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new X(e,1,!1,e.toLowerCase(),null,!0)}));var K=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e,t,n,r){var i=W.hasOwnProperty(t)?W[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!U.call(J,e)||!U.call(G,e)&&(H.test(e)?J[e]=!0:(G[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}K.hasOwnProperty("ReactCurrentDispatcher")||(K.ReactCurrentDispatcher={current:null}),K.hasOwnProperty("ReactCurrentBatchConfig")||(K.ReactCurrentBatchConfig={suspense:null});var $=/^(.*)[\\\/]/,Q="function"===typeof Symbol&&Symbol.for,ee=Q?Symbol.for("react.element"):60103,te=Q?Symbol.for("react.portal"):60106,ne=Q?Symbol.for("react.fragment"):60107,re=Q?Symbol.for("react.strict_mode"):60108,ie=Q?Symbol.for("react.profiler"):60114,oe=Q?Symbol.for("react.provider"):60109,ae=Q?Symbol.for("react.context"):60110,se=Q?Symbol.for("react.concurrent_mode"):60111,ue=Q?Symbol.for("react.forward_ref"):60112,le=Q?Symbol.for("react.suspense"):60113,ce=Q?Symbol.for("react.suspense_list"):60120,fe=Q?Symbol.for("react.memo"):60115,de=Q?Symbol.for("react.lazy"):60116,he=Q?Symbol.for("react.block"):60121,pe="function"===typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function ye(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case ce:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ye(e.type);case he:return ye(e.render);case de:if(e=1===e._status?e._result:null)return ye(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=ye(e.type);n=null,r&&(n=ye(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace($,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function me(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ke(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=me(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Y(e,"checked",t,!1)}function Te(e,t){Se(e,t);var n=me(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ae(e,t.type,me(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ae(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Me(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+me(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:me(n)}}function Ie(e,t){var n=me(t.value),r=me(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function De(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Le="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function Ne(e){switch(e){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 je(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ne(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Be,Fe=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((Be=Be||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Be.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Ue={},Ge={};function Je(e){if(Ue[e])return Ue[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ge)return Ue[e]=n[t];return e}A&&(Ge=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var Xe=Je("animationend"),We=Je("animationiteration"),qe=Je("animationstart"),Ze=Je("transitionend"),Ke="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye=new("function"===typeof WeakMap?WeakMap:Map);function $e(e){var t=Ye.get(e);return void 0===t&&(t=new Map,Ye.set(e,t)),t}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Qe(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(c)throw e=f,c=!1,f=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!A)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var ct=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,n,r){if(ct.length){var i=ct.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=An(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ut(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,u=0;u<_.length;u++){var l=_[u];l&&(l=l.extractEvents(r,t,o,i,a))&&(s=rt(s,l))}st(s)}}function pt(e,t,n){if(!n.has(e)){switch(e){case"scroll":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ke.indexOf(e)&&Wt(e,t)}n.set(e,null)}}var gt,yt,vt,mt=!1,bt=[],wt=null,xt=null,_t=null,kt=new Map,St=new Map,Tt=[],Ct="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(" "),At="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ot(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Mt(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Et(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ot(t,n,r,i,o),null!==t&&(null!==(t=On(t))&&yt(t)),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=An(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;var t=$t(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=On(t);return null!==n&&yt(n),e.blockedOn=t,!1}return!0}function Dt(e,t,n){It(e)&&n.delete(t)}function Lt(){for(mt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=On(e.blockedOn))&>(e);break}var t=$t(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==wt&&It(wt)&&(wt=null),null!==xt&&It(xt)&&(xt=null),null!==_t&&It(_t)&&(_t=null),kt.forEach(Dt),St.forEach(Dt)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,mt||(mt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Lt)))}function Nt(e){function t(t){return Rt(t,e)}if(0<bt.length){Rt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&Rt(wt,e),null!==xt&&Rt(xt,e),null!==_t&&Rt(_t,e),kt.forEach(t),St.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Pt(n),null===n.blockedOn&&Tt.shift()}var jt={},Bt=new Map,Ft=new Map,zt=["abort","abort",Xe,"animationEnd",We,"animationIteration",qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ze,"transitionEnd","waiting","waiting"];function Vt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Ft.set(r,t),Bt.set(r,o),jt[i]=o}}Vt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Vt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Vt(zt,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ut=0;Ut<Ht.length;Ut++)Ft.set(Ht[Ut],0);var Gt=o.unstable_UserBlockingPriority,Jt=o.unstable_runWithPriority,Xt=!0;function Wt(e,t){qt(t,e,!1)}function qt(e,t,n){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=Zt.bind(null,t,1,e);break;case 1:r=Kt.bind(null,t,1,e);break;default:r=Yt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Zt(e,t,n,r){B||N();var i=Yt,o=B;B=!0;try{R(i,e,t,n,r)}finally{(B=o)||z()}}function Kt(e,t,n,r){Jt(Gt,Yt.bind(null,e,t,n,r))}function Yt(e,t,n,r){if(Xt)if(0<bt.length&&-1<Ct.indexOf(e))e=Ot(null,e,t,n,r),bt.push(e);else{var i=$t(e,t,n,r);if(null===i)Mt(e,r);else if(-1<Ct.indexOf(e))e=Ot(i,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return wt=Et(wt,e,t,n,r,i),!0;case"dragenter":return xt=Et(xt,e,t,n,r,i),!0;case"mouseover":return _t=Et(_t,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kt.set(o,Et(kt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,St.set(o,Et(St.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Mt(e,r),e=dt(e,r,null,t);try{V(ht,e)}finally{ft(e)}}}}function $t(e,t,n,r){if(null!==(n=An(n=ut(r)))){var i=Qe(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(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)}}e=dt(e,r,n,t);try{V(ht,e)}finally{ft(e)}return null}var Qt={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},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Qt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var rn=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 on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){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}}var sn=Le;function un(e,t){var n=$e(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=T[t];for(var r=0;r<t.length;r++)pt(t[r],e,n)}function ln(){}function cn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function hn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn=null,yn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function mn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bn="function"===typeof setTimeout?setTimeout:void 0,wn="function"===typeof clearTimeout?clearTimeout:void 0;function xn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function _n(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var kn=Math.random().toString(36).slice(2),Sn="__reactInternalInstance$"+kn,Tn="__reactEventHandlers$"+kn,Cn="__reactContainere$"+kn;function An(e){var t=e[Sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[Sn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=_n(e);null!==e;){if(n=e[Sn])return n;e=_n(e)}return t}n=(e=n).parentNode}return null}function On(e){return!(e=e[Sn]||e[Cn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Mn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function En(e){return e[Tn]||null}function Pn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function In(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}function Dn(e,t,n){(t=In(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Ln(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Pn(t);for(t=n.length;0<t--;)Dn(n[t],"captured",e);for(t=0;t<n.length;t++)Dn(n[t],"bubbled",e)}}function Rn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=In(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Nn(e){e&&e.dispatchConfig.registrationName&&Rn(e._targetInst,null,e)}function jn(e){it(e,Ln)}var Bn=null,Fn=null,zn=null;function Vn(){if(zn)return zn;var e,t,n=Fn,r=n.length,i="value"in Bn?Bn.value:Bn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return zn=i.slice(e,1<t?1-t:void 0)}function Hn(){return!0}function Un(){return!1}function Gn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Hn:Un,this.isPropagationStopped=Un,this}function Jn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Xn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Wn(e){e.eventPool=[],e.getPooled=Jn,e.release=Xn}i(Gn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){this.isPersistent=Hn},isPersistent:Un,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Un,this._dispatchInstances=this._dispatchListeners=null}}),Gn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Wn(n),n},Wn(Gn);var qn=Gn.extend({data:null}),Zn=Gn.extend({data:null}),Kn=[9,13,27,32],Yn=A&&"CompositionEvent"in window,$n=null;A&&"documentMode"in document&&($n=document.documentMode);var Qn=A&&"TextEvent"in window&&!$n,er=A&&(!Yn||$n&&8<$n&&11>=$n),tr=String.fromCharCode(32),nr={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(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Yn)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=Vn()):(Fn="value"in(Bn=r)?Bn.value:Bn.textContent,ar=!0)),o=qn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),jn(o),i=o):i=null,(e=Qn?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Yn&&ir(e,t)?(e=Vn(),zn=Fn=Bn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Zn.getPooled(nr.beforeInput,t,n,r)).data=e,jn(t)):t=null,null===i?t:null===t?i:[i,t]}},ur={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 lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ur[e.type]:"textarea"===t}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=Gn.getPooled(cr.change,e,t,n)).type="change",I(n),jn(e),e}var dr=null,hr=null;function pr(e){st(e)}function gr(e){if(xe(Mn(e)))return e}function yr(e,t){if("change"===e)return t}var vr=!1;function mr(){dr&&(dr.detachEvent("onpropertychange",br),hr=dr=null)}function br(e){if("value"===e.propertyName&&gr(hr))if(e=fr(hr,e,ut(e)),B)st(e);else{B=!0;try{L(pr,e)}finally{B=!1,z()}}}function wr(e,t,n){"focus"===e?(mr(),hr=n,(dr=t).attachEvent("onpropertychange",br)):"blur"===e&&mr()}function xr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return gr(hr)}function _r(e,t){if("click"===e)return gr(t)}function kr(e,t){if("input"===e||"change"===e)return gr(t)}A&&(vr=lt("input")&&(!document.documentMode||9<document.documentMode));var Sr={eventTypes:cr,_isInputEventSupported:vr,extractEvents:function(e,t,n,r){var i=t?Mn(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=yr;else if(lr(i))if(vr)a=kr;else{a=xr;var s=wr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=_r);if(a&&(a=a(e,t)))return fr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Ae(i,"number",i.value)}},Tr=Gn.extend({view:null,detail:null}),Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ar(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function Or(){return Ar}var Mr=0,Er=0,Pr=!1,Ir=!1,Dr=Tr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Or,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Mr;return Mr=e.screenX,Pr?"mousemove"===e.type?e.screenX-t:0:(Pr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Er;return Er=e.screenY,Ir?"mousemove"===e.type?e.screenY-t:0:(Ir=!0,0)}}),Lr=Dr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Rr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Nr={eventTypes:Rr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?An(t):null)&&(t!==Qe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Dr,u=Rr.mouseLeave,l=Rr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Lr,u=Rr.pointerLeave,l=Rr.pointerEnter,c="pointer");if(e=null==a?o:Mn(a),o=null==t?o:Mn(t),(u=s.getPooled(u,a,n,r)).type=c+"leave",u.target=e,u.relatedTarget=o,(n=s.getPooled(l,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(l=c,a=0,e=s=r;e;e=Pn(e))a++;for(e=0,t=l;t;t=Pn(t))e++;for(;0<a-e;)s=Pn(s),a--;for(;0<e-a;)l=Pn(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=Pn(s),l=Pn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=Pn(r);for(r=[];c&&c!==l&&(null===(a=c.alternate)||a!==l);)r.push(c),c=Pn(c);for(c=0;c<s.length;c++)Rn(s[c],"bubbled",u);for(c=r.length;0<c--;)Rn(r[c],"captured",n);return 0===(64&i)?[u]:[u,n]}};var jr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Br=Object.prototype.hasOwnProperty;function Fr(e,t){if(jr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Br.call(t,n[r])||!jr(e[n[r]],t[n[r]]))return!1;return!0}var zr=A&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Hr=null,Ur=null,Gr=null,Jr=!1;function Xr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Jr||null==Hr||Hr!==cn(n)?null:("selectionStart"in(n=Hr)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gr&&Fr(Gr,n)?null:(Gr=n,(e=Gn.getPooled(Vr.select,Ur,e,t)).type="select",e.target=Hr,jn(e),e))}var Wr={eventTypes:Vr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=$e(i),o=T.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Mn(t):window,e){case"focus":(lr(i)||"true"===i.contentEditable)&&(Hr=i,Ur=t,Gr=null);break;case"blur":Gr=Ur=Hr=null;break;case"mousedown":Jr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Jr=!1,Xr(n,r);case"selectionchange":if(zr)break;case"keydown":case"keyup":return Xr(n,r)}return null}},qr=Gn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zr=Gn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kr=Tr.extend({relatedTarget:null});function Yr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var $r={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qr={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"},ei=Tr.extend({key:function(e){if(e.key){var t=$r[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Qr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Or,charCode:function(e){return"keypress"===e.type?Yr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=Dr.extend({dataTransfer:null}),ni=Tr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Or}),ri=Gn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Dr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:jt,extractEvents:function(e,t,n,r){var i=Bt.get(e);if(!i)return null;switch(e){case"keypress":if(0===Yr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Kr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case Xe:case We:case qe:e=qr;break;case Ze:e=ri;break;case"scroll":e=Tr;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Zr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Lr;break;default:e=Gn}return jn(t=e.getPooled(i,t,n,r)),t}};if(m)throw Error(a(101));m=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),p=En,g=On,y=Mn,C({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Nr,ChangeEventPlugin:Sr,SelectEventPlugin:Wr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function ui(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function li(e,t){si++,ai[si]=e.current,e.current=t}var ci={},fi={current:ci},di={current:!1},hi=ci;function pi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){ui(di),ui(fi)}function vi(e,t,n){if(fi.current!==ci)throw Error(a(168));li(fi,t),li(di,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ye(t)||"Unknown",o));return i({},n,{},r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,hi=fi.current,li(fi,e),li(di,di.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,ui(di),ui(fi),li(fi,e)):ui(di),li(di,n)}var xi=o.unstable_runWithPriority,_i=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,Si=o.unstable_requestPaint,Ti=o.unstable_now,Ci=o.unstable_getCurrentPriorityLevel,Ai=o.unstable_ImmediatePriority,Oi=o.unstable_UserBlockingPriority,Mi=o.unstable_NormalPriority,Ei=o.unstable_LowPriority,Pi=o.unstable_IdlePriority,Ii={},Di=o.unstable_shouldYield,Li=void 0!==Si?Si:function(){},Ri=null,Ni=null,ji=!1,Bi=Ti(),Fi=1e4>Bi?Ti:function(){return Ti()-Bi};function zi(){switch(Ci()){case Ai:return 99;case Oi:return 98;case Mi:return 97;case Ei:return 96;case Pi:return 95;default:throw Error(a(332))}}function Vi(e){switch(e){case 99:return Ai;case 98:return Oi;case 97:return Mi;case 96:return Ei;case 95:return Pi;default:throw Error(a(332))}}function Hi(e,t){return e=Vi(e),xi(e,t)}function Ui(e,t,n){return e=Vi(e),_i(e,t,n)}function Gi(e){return null===Ri?(Ri=[e],Ni=_i(Ai,Xi)):Ri.push(e),Ii}function Ji(){if(null!==Ni){var e=Ni;Ni=null,ki(e)}Xi()}function Xi(){if(!ji&&null!==Ri){ji=!0;var e=0;try{var t=Ri;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(n){throw null!==Ri&&(Ri=Ri.slice(e+1)),_i(Ai,Ji),n}finally{ji=!1}}}function Wi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function qi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Zi={current:null},Ki=null,Yi=null,$i=null;function Qi(){$i=Yi=Ki=null}function eo(e){var t=Zi.current;ui(Zi),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){Ki=e,$i=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ea=!0),e.firstContext=null)}function ro(e,t){if($i!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||($i=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Ki)throw Error(a(308));Yi=t,Ki.dependencies={expirationTime:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function uo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function co(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,o.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var l=o.baseState,c=0,f=null,d=null,h=null;if(null!==u)for(var p=u;;){if((s=p.expirationTime)<r){var g={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===h?(d=h=g,f=l):h=h.next=g,s>c&&(c=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),ou(s,p.suspenseConfig);e:{var y=e,v=p;switch(s=t,g=n,v.tag){case 1:if("function"===typeof(y=v.payload)){l=y.call(g,l,s);break e}l=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null===(s="function"===typeof(y=v.payload)?y.call(g,l,s):y)||void 0===s)break e;l=i({},l,s);break e;case 2:io=!0}}null!==p.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[p]:s.push(p))}if(null===(p=p.next)||p===u){if(null===(s=o.shared.pending))break;p=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===h?f=l:h.next=d,o.baseState=f,o.baseQueue=h,au(c),e.expirationTime=c,e.memoizedState=l}}function fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(a(191,r));r.call(i)}}}var ho=K.ReactCurrentBatchConfig,po=(new r.Component).refs;function go(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Xs(),i=ho.suspense;(i=so(r=Ws(r,e,i),i)).payload=t,void 0!==n&&null!==n&&(i.callback=n),uo(e,i),qs(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Xs(),i=ho.suspense;(i=so(r=Ws(r,e,i),i)).tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),uo(e,i),qs(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Xs(),r=ho.suspense;(r=so(n=Ws(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),uo(e,r),qs(e,n)}};function vo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Fr(n,r)||!Fr(i,o))}function mo(e,t,n){var r=!1,i=ci,o=t.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=gi(t)?hi:fi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?pi(e,i):ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=po,oo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=gi(t)?hi:fi.current,i.context=pi(e,o)),co(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),co(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var xo=Array.isArray;function _o(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===po&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ko(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Cu(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Mu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=_o(e,t,n),r.return=e,r):((r=Au(n.type,n.key,n.props,null,e.mode,r)).ref=_o(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Eu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Ou(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Mu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Au(t.type,t.key,t.props,null,e.mode,n)).ref=_o(e,null,t),n.return=e,n;case te:return(t=Eu(t,e.mode,n)).return=e,t}if(xo(t)||ge(t))return(t=Ou(t,e.mode,n,null)).return=e,t;ko(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(xo(n)||ge(n))return null!==i?null:f(e,t,n,r,null);ko(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(xo(r)||ge(r))return f(t,e=e.get(n)||null,r,i,null);ko(t,r)}return null}function g(i,a,s,u){for(var l=null,c=null,f=a,g=a=0,y=null;null!==f&&g<s.length;g++){f.index>g?(y=f,f=null):y=f.sibling;var v=h(i,f,s[g],u);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(i,f),a=o(v,a,g),null===c?l=v:c.sibling=v,c=v,f=y}if(g===s.length)return n(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=r(i,f);g<s.length;g++)null!==(y=p(f,i,g,s[g],u))&&(e&&null!==y.alternate&&f.delete(null===y.key?g:y.key),a=o(y,a,g),null===c?l=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(i,e)})),l}function y(i,s,u,l){var c=ge(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,y=s=0,v=null,m=u.next();null!==g&&!m.done;y++,m=u.next()){g.index>y?(v=g,g=null):v=g.sibling;var b=h(i,g,m.value,l);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(i,g),s=o(b,s,y),null===f?c=b:f.sibling=b,f=b,g=v}if(m.done)return n(i,g),c;if(null===g){for(;!m.done;y++,m=u.next())null!==(m=d(i,m.value,l))&&(s=o(m,s,y),null===f?c=m:f.sibling=m,f=m);return c}for(g=r(i,g);!m.done;y++,m=u.next())null!==(m=p(g,i,y,m.value,l))&&(e&&null!==m.alternate&&g.delete(null===m.key?y:m.key),s=o(m,s,y),null===f?c=m:f.sibling=m,f=m);return e&&g.forEach((function(e){return t(i,e)})),c}return function(e,r,o,u){var l="object"===typeof o&&null!==o&&o.type===ne&&null===o.key;l&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case ee:e:{for(c=o.key,l=r;null!==l;){if(l.key===c){switch(l.tag){case 7:if(o.type===ne){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}break;default:if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=_o(e,l,o),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}o.type===ne?((r=Ou(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Au(o.type,o.key,o.props,null,e.mode,u)).ref=_o(e,r,o),u.return=e,e=u)}return s(e);case te:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Eu(o,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Mu(o,e.mode,u)).return=e,e=r),s(e);if(xo(o))return g(e,r,o,u);if(ge(o))return y(e,r,o,u);if(c&&ko(e,o),"undefined"===typeof o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var To=So(!0),Co=So(!1),Ao={},Oo={current:Ao},Mo={current:Ao},Eo={current:Ao};function Po(e){if(e===Ao)throw Error(a(174));return e}function Io(e,t){switch(li(Eo,t),li(Mo,e),li(Oo,Ao),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,"");break;default:t=je(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Oo),li(Oo,t)}function Do(){ui(Oo),ui(Mo),ui(Eo)}function Lo(e){Po(Eo.current);var t=Po(Oo.current),n=je(t,e.type);t!==n&&(li(Mo,e),li(Oo,n))}function Ro(e){Mo.current===e&&(ui(Oo),ui(Mo))}var No={current:0};function jo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Bo(e,t){return{responder:e,props:t}}var Fo=K.ReactCurrentDispatcher,zo=K.ReactCurrentBatchConfig,Vo=0,Ho=null,Uo=null,Go=null,Jo=!1;function Xo(){throw Error(a(321))}function Wo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jr(e[n],t[n]))return!1;return!0}function qo(e,t,n,r,i,o){if(Vo=o,Ho=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Fo.current=null===e||null===e.memoizedState?va:ma,e=n(r,i),t.expirationTime===Vo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Go=Uo=null,t.updateQueue=null,Fo.current=ba,e=n(r,i)}while(t.expirationTime===Vo)}if(Fo.current=ya,t=null!==Uo&&null!==Uo.next,Vo=0,Go=Uo=Ho=null,Jo=!1,t)throw Error(a(300));return e}function Zo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Go?Ho.memoizedState=Go=e:Go=Go.next=e,Go}function Ko(){if(null===Uo){var e=Ho.alternate;e=null!==e?e.memoizedState:null}else e=Uo.next;var t=null===Go?Ho.memoizedState:Go.next;if(null!==t)Go=t,Uo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Uo=e).memoizedState,baseState:Uo.baseState,baseQueue:Uo.baseQueue,queue:Uo.queue,next:null},null===Go?Ho.memoizedState=Go=e:Go=Go.next=e}return Go}function Yo(e,t){return"function"===typeof t?t(e):t}function $o(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Uo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,l=i;do{var c=l.expirationTime;if(c<Vo){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,c>Ho.expirationTime&&(Ho.expirationTime=c,au(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),ou(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?o=r:u.next=s,jr(r,t.memoizedState)||(Ea=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Qo(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);jr(o,t.memoizedState)||(Ea=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Zo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:e}).dispatch=ga.bind(null,Ho,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ho.updateQueue)?(t={lastEffect:null},Ho.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Ko().memoizedState}function ra(e,t,n,r){var i=Zo();Ho.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=Ko();r=void 0===r?null:r;var o=void 0;if(null!==Uo){var a=Uo.memoizedState;if(o=a.destroy,null!==r&&Wo(r,a.deps))return void ta(t,n,o,r)}Ho.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function sa(e,t){return ia(4,2,e,t)}function ua(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function la(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ia(4,2,ua.bind(null,t,e),n)}function ca(){}function fa(e,t){return Zo().memoizedState=[e,void 0===t?null:t],e}function da(e,t){var n=Ko();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ha(e,t){var n=Ko();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pa(e,t,n){var r=zi();Hi(98>r?98:r,(function(){e(!0)})),Hi(97<r?97:r,(function(){var r=zo.suspense;zo.suspense=void 0===t?null:t;try{e(!1),n()}finally{zo.suspense=r}}))}function ga(e,t,n){var r=Xs(),i=ho.suspense;i={expirationTime:r=Ws(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Ho||null!==o&&o===Ho)Jo=!0,i.expirationTime=Vo,Ho.expirationTime=Vo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,jr(s,a))return}catch(u){}qs(e,r)}}var ya={readContext:ro,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useResponder:Xo,useDeferredValue:Xo,useTransition:Xo},va={readContext:ro,useCallback:fa,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ra(4,2,ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Zo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ga.bind(null,Ho,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Zo().memoizedState=e},useState:ea,useDebugValue:ca,useResponder:Bo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[fa(pa.bind(null,t,e),[t,e]),n]}},ma={readContext:ro,useCallback:da,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:ha,useReducer:$o,useRef:na,useState:function(){return $o(Yo)},useDebugValue:ca,useResponder:Bo,useDeferredValue:function(e,t){var n=$o(Yo),r=n[0],i=n[1];return aa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=$o(Yo),n=t[0];return t=t[1],[da(pa.bind(null,t,e),[t,e]),n]}},ba={readContext:ro,useCallback:da,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:ha,useReducer:Qo,useRef:na,useState:function(){return Qo(Yo)},useDebugValue:ca,useResponder:Bo,useDeferredValue:function(e,t){var n=Qo(Yo),r=n[0],i=n[1];return aa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Qo(Yo),n=t[0];return t=t[1],[da(pa.bind(null,t,e),[t,e]),n]}},wa=null,xa=null,_a=!1;function ka(e,t){var n=Su(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ta(e){if(_a){var t=xa;if(t){var n=t;if(!Sa(e,t)){if(!(t=xn(n.nextSibling))||!Sa(e,t))return e.effectTag=-1025&e.effectTag|2,_a=!1,void(wa=e);ka(wa,n)}wa=e,xa=xn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,_a=!1,wa=e}}function Ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function Aa(e){if(e!==wa)return!1;if(!_a)return Ca(e),_a=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!mn(t,e.memoizedProps))for(t=xa;t;)ka(e,t),t=xn(t.nextSibling);if(Ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){xa=xn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}xa=null}}else xa=wa?xn(e.stateNode.nextSibling):null;return!0}function Oa(){xa=wa=null,_a=!1}var Ma=K.ReactCurrentOwner,Ea=!1;function Pa(e,t,n,r){t.child=null===e?Co(t,null,n,r):To(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=qo(e,t,n,r,o,i),null===e||Ea?(t.effectTag|=1,Pa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),qa(e,t,i))}function Da(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Tu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Au(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,La(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Fr)(i,r)&&e.ref===t.ref)?qa(e,t,o):(t.effectTag|=1,(e=Cu(a,r)).ref=t.ref,e.return=t,t.child=e)}function La(e,t,n,r,i,o){return null!==e&&Fr(e.memoizedProps,r)&&e.ref===t.ref&&(Ea=!1,i<o)?(t.expirationTime=e.expirationTime,qa(e,t,o)):Na(e,t,n,r,o)}function Ra(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Na(e,t,n,r,i){var o=gi(n)?hi:fi.current;return o=pi(t,o),no(t,i),n=qo(e,t,n,r,o,i),null===e||Ea?(t.effectTag|=1,Pa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),qa(e,t,i))}function ja(e,t,n,r,i){if(gi(n)){var o=!0;bi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),mo(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=ro(l):l=pi(t,l=gi(n)?hi:fi.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&bo(t,a,r,l),io=!1;var d=t.memoizedState;a.state=d,co(t,r,a,i),u=t.memoizedState,s!==r||d!==u||di.current||io?("function"===typeof c&&(go(t,n,c,r),u=t.memoizedState),(s=io||vo(t,n,s,r,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&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:qi(t.type,s),u=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=ro(l):l=pi(t,l=gi(n)?hi:fi.current),(f="function"===typeof(c=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&bo(t,a,r,l),io=!1,u=t.memoizedState,a.state=u,co(t,r,a,i),d=t.memoizedState,s!==r||u!==d||di.current||io?("function"===typeof c&&(go(t,n,c,r),d=t.memoizedState),(c=io||vo(t,n,s,r,u,d,l))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Ba(e,t,n,r,o,i)}function Ba(e,t,n,r,i,o){Ra(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return i&&wi(t,n,!1),qa(e,t,o);r=t.stateNode,Ma.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=To(t,e.child,null,o),t.child=To(t,null,s,o)):Pa(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Io(e,t.containerInfo)}var za,Va,Ha,Ua={dehydrated:null,retryTime:0};function Ga(e,t,n){var r,i=t.mode,o=t.pendingProps,a=No.current,s=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),li(No,1&a),null===e){if(void 0!==o.fallback&&Ta(t),s){if(s=o.fallback,(o=Ou(null,i,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Ou(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ua,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Co(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Cu(e,e.pendingProps)).return=t,0===(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Cu(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ua,t.child=n,i}return n=To(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Ou(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Ou(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ua,t.child=o,n}return t.memoizedState=null,t.child=To(t,e,o.children,n)}function Ja(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function Xa(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Wa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pa(e,t,r.children,n),0!==(2&(r=No.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ja(e,n);else if(19===e.tag)Ja(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(li(No,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===jo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xa(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===jo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xa(t,!0,n,null,o,t.lastEffect);break;case"together":Xa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&au(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Cu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Cu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Za(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ka(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return gi(t.type)&&yi(),null;case 3:return Do(),ui(di),ui(fi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Aa(t)||(t.effectTag|=4),null;case 5:Ro(t),n=Po(Eo.current);var o=t.type;if(null!==e&&null!=t.stateNode)Va(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Po(Oo.current),Aa(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Sn]=t,r[Tn]=s,o){case"iframe":case"object":case"embed":Wt("load",r);break;case"video":case"audio":for(e=0;e<Ke.length;e++)Wt(Ke[e],r);break;case"source":Wt("error",r);break;case"img":case"image":case"link":Wt("error",r),Wt("load",r);break;case"form":Wt("reset",r),Wt("submit",r);break;case"details":Wt("toggle",r);break;case"input":ke(r,s),Wt("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Wt("invalid",r),un(n,"onChange");break;case"textarea":Pe(r,s),Wt("invalid",r),un(n,"onChange")}for(var u in on(o,s),e=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"===typeof l?r.textContent!==l&&(e=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(e=["children",""+l]):S.hasOwnProperty(u)&&null!=l&&un(n,u)}switch(o){case"input":we(r),Ce(r,s,!0);break;case"textarea":we(r),De(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Ne(o)),e===sn?"script"===o?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(o,{is:r.is}):(e=u.createElement(o),"select"===o&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,o),e[Sn]=t,e[Tn]=r,za(e,t),t.stateNode=e,u=an(o,r),o){case"iframe":case"object":case"embed":Wt("load",e),l=r;break;case"video":case"audio":for(l=0;l<Ke.length;l++)Wt(Ke[l],e);l=r;break;case"source":Wt("error",e),l=r;break;case"img":case"image":case"link":Wt("error",e),Wt("load",e),l=r;break;case"form":Wt("reset",e),Wt("submit",e),l=r;break;case"details":Wt("toggle",e),l=r;break;case"input":ke(e,r),l=_e(e,r),Wt("invalid",e),un(n,"onChange");break;case"option":l=Oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),Wt("invalid",e),un(n,"onChange");break;case"textarea":Pe(e,r),l=Ee(e,r),Wt("invalid",e),un(n,"onChange");break;default:l=r}on(o,l);var c=l;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?nn(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Fe(e,f):"children"===s?"string"===typeof f?("textarea"!==o||""!==f)&&ze(e,f):"number"===typeof f&&ze(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=f&&un(n,s):null!=f&&Y(e,s,f,u))}switch(o){case"input":we(e),Ce(e,r,!1);break;case"textarea":we(e),De(e);break;case"option":null!=r.value&&e.setAttribute("value",""+me(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Me(e,!!r.multiple,n,!1):null!=r.defaultValue&&Me(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(e.onclick=ln)}vn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ha(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Po(Eo.current),Po(Oo.current),Aa(t)?(n=t.stateNode,r=t.memoizedProps,n[Sn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Sn]=t,t.stateNode=n)}return null;case 13:return ui(No),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Aa(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&No.current)?As===ws&&(As=xs):(As!==ws&&As!==xs||(As=_s),0!==Is&&null!==Ss&&(Du(Ss,Cs),Lu(Ss,Is)))),(n||r)&&(t.effectTag|=4),null);case 4:return Do(),null;case 10:return eo(t),null;case 17:return gi(t.type)&&yi(),null;case 19:if(ui(No),null===(r=t.memoizedState))return null;if(o=0!==(64&t.effectTag),null===(s=r.rendering)){if(o)Za(r,!1);else if(As!==ws||null!==e&&0!==(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=jo(s))){for(t.effectTag|=64,Za(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return li(No,1&No.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=jo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Za(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Za(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Fi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=No.current,li(No,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ya(e){switch(e.tag){case 1:gi(e.type)&&yi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Do(),ui(di),ui(fi),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ro(e),null;case 13:return ui(No),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ui(No),null;case 4:return Do(),null;case 10:return eo(e),null;default:return null}}function $a(e,t){return{value:e,source:t,stack:ve(t)}}za=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,u,l=t.stateNode;switch(Po(Oo.current),e=null,n){case"input":a=_e(l,a),r=_e(l,r),e=[];break;case"option":a=Oe(l,a),r=Oe(l,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Ee(l,a),r=Ee(l,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(l.onclick=ln)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in l=a[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(s,c)):"children"===s?l===c||"string"!==typeof c&&"number"!==typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=c&&un(o,s),e||l===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Ha=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Qa="function"===typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ye(n.type),t=t.value,null!==e&&1===e.tag&&ye(e.type)}function ts(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){mu(e,n)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:qi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Nt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"===typeof _u&&_u(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Hi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(o){mu(i,o)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){mu(e,n)}}(t,n);break;case 5:ts(t);break;case 4:cs(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function us(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:{for(var t=e.return;null!==t;){if(us(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||us(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=ln));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function cs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var u=e,l=o,c=n,f=l;;)if(as(u,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break e;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=r,l=o.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(as(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function fs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Tn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?nn(n,u):"dangerouslySetInnerHTML"===s?Fe(n,u):"children"===s?ze(n,u):Y(n,s,u,t)}switch(e){case"input":Te(n,r);break;case"textarea":Ie(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Me(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Me(n,!!r.multiple,r.defaultValue,!0):Me(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Nt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ls=Fi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=void 0!==(i=e.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,o.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ds(t);case 19:return void ds(t);case 17:return}throw Error(a(163))}function ds(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qa),t.forEach((function(t){var r=wu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ns||(Ns=!0,js=r),es(e,t)},n}function gs(e,t,n){(n=so(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return es(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Bs?Bs=new Set([this]):Bs.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var ys,vs=Math.ceil,ms=K.ReactCurrentDispatcher,bs=K.ReactCurrentOwner,ws=0,xs=3,_s=4,ks=0,Ss=null,Ts=null,Cs=0,As=ws,Os=null,Ms=1073741823,Es=1073741823,Ps=null,Is=0,Ds=!1,Ls=0,Rs=null,Ns=!1,js=null,Bs=null,Fs=!1,zs=null,Vs=90,Hs=null,Us=0,Gs=null,Js=0;function Xs(){return 0!==(48&ks)?1073741821-(Fi()/10|0):0!==Js?Js:Js=1073741821-(Fi()/10|0)}function Ws(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=zi();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(16&ks))return Cs;if(null!==n)e=Wi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Wi(e,150,100);break;case 97:case 96:e=Wi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Ss&&e===Cs&&--e,e}function qs(e,t){if(50<Us)throw Us=0,Gs=null,Error(a(185));if(null!==(e=Zs(e,t))){var n=zi();1073741823===t?0!==(8&ks)&&0===(48&ks)?Qs(e):(Ys(e),0===ks&&Ji()):Ys(e),0===(4&ks)||98!==n&&99!==n||(null===Hs?Hs=new Map([[e,t]]):(void 0===(n=Hs.get(e))||n>t)&&Hs.set(e,t))}}function Zs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ss===i&&(au(t),As===_s&&Du(i,Cs)),Lu(i,t)),i}function Ks(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Iu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ys(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Gi(Qs.bind(null,e));else{var t=Ks(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Xs();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ii&&ki(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Gi(Qs.bind(null,e)):Ui(r,$s.bind(null,e),{timeout:10*(1073741821-t)-Fi()}),e.callbackNode=t}}}function $s(e,t){if(Js=0,t)return Ru(e,t=Xs()),Ys(e),null;var n=Ks(e);if(0!==n){if(t=e.callbackNode,0!==(48&ks))throw Error(a(327));if(gu(),e===Ss&&n===Cs||nu(e,n),null!==Ts){var r=ks;ks|=16;for(var i=iu();;)try{uu();break}catch(u){ru(e,u)}if(Qi(),ks=r,ms.current=i,1===As)throw t=Os,nu(e,n),Du(e,n),Ys(e),t;if(null===Ts)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=As,Ss=null,r){case ws:case 1:throw Error(a(345));case 2:Ru(e,2<n?2:n);break;case xs:if(Du(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(i)),1073741823===Ms&&10<(i=Ls+500-Fi())){if(Ds){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nu(e,n);break}}if(0!==(o=Ks(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(du.bind(null,e),i);break}du(e);break;case _s:if(Du(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(i)),Ds&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nu(e,n);break}if(0!==(i=Ks(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Es?r=10*(1073741821-Es)-Fi():1073741823===Ms?r=0:(r=10*(1073741821-Ms)-5e3,0>(r=(i=Fi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vs(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=bn(du.bind(null,e),r);break}du(e);break;case 5:if(1073741823!==Ms&&null!==Ps){o=Ms;var s=Ps;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Fi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Du(e,n),e.timeoutHandle=bn(du.bind(null,e),r);break}}du(e);break;default:throw Error(a(329))}if(Ys(e),e.callbackNode===t)return $s.bind(null,e)}}return null}function Qs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&ks))throw Error(a(327));if(gu(),e===Ss&&t===Cs||nu(e,t),null!==Ts){var n=ks;ks|=16;for(var r=iu();;)try{su();break}catch(i){ru(e,i)}if(Qi(),ks=n,ms.current=r,1===As)throw n=Os,nu(e,t),Du(e,t),Ys(e),n;if(null!==Ts)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ss=null,du(e),Ys(e)}return null}function eu(e,t){var n=ks;ks|=1;try{return e(t)}finally{0===(ks=n)&&Ji()}}function tu(e,t){var n=ks;ks&=-2,ks|=8;try{return e(t)}finally{0===(ks=n)&&Ji()}}function nu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Do(),ui(di),ui(fi);break;case 5:Ro(r);break;case 4:Do();break;case 13:case 19:ui(No);break;case 10:eo(r)}n=n.return}Ss=e,Ts=Cu(e.current,null),Cs=t,As=ws,Os=null,Es=Ms=1073741823,Ps=null,Is=0,Ds=!1}function ru(e,t){for(;;){try{if(Qi(),Fo.current=ya,Jo)for(var n=Ho.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Vo=0,Go=Uo=Ho=null,Jo=!1,null===Ts||null===Ts.return)return As=1,Os=t,Ts=null;e:{var i=e,o=Ts.return,a=Ts,s=t;if(t=Cs,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!==(1&No.current),f=o;do{var d;if(d=13===f.tag){var h=f.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var p=f.memoizedProps;d=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!c)}}if(d){var g=f.updateQueue;if(null===g){var y=new Set;y.add(u),f.updateQueue=y}else g.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=so(1073741823,null);v.tag=2,uo(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var m=i.pingCache;if(null===m?(m=i.pingCache=new hs,s=new Set,m.set(u,s)):void 0===(s=m.get(u))&&(s=new Set,m.set(u,s)),!s.has(a)){s.add(a);var b=bu.bind(null,i,u,a);u.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((ye(a.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."+ve(a))}5!==As&&(As=2),s=$a(s,a),f=o;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=t,lo(f,ps(f,u,t));break e;case 1:u=s;var w=f.type,x=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Bs||!Bs.has(x)))){f.effectTag|=4096,f.expirationTime=t,lo(f,gs(f,u,t));break e}}f=f.return}while(null!==f)}Ts=cu(Ts)}catch(_){t=_;continue}break}}function iu(){var e=ms.current;return ms.current=ya,null===e?ya:e}function ou(e,t){e<Ms&&2<e&&(Ms=e),null!==t&&e<Es&&2<e&&(Es=e,Ps=t)}function au(e){e>Is&&(Is=e)}function su(){for(;null!==Ts;)Ts=lu(Ts)}function uu(){for(;null!==Ts&&!Di();)Ts=lu(Ts)}function lu(e){var t=ys(e.alternate,e,Cs);return e.memoizedProps=e.pendingProps,null===t&&(t=cu(e)),bs.current=null,t}function cu(e){Ts=e;do{var t=Ts.alternate;if(e=Ts.return,0===(2048&Ts.effectTag)){if(t=Ka(t,Ts,Cs),1===Cs||1!==Ts.childExpirationTime){for(var n=0,r=Ts.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ts.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ts.firstEffect),null!==Ts.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ts.firstEffect),e.lastEffect=Ts.lastEffect),1<Ts.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ts:e.firstEffect=Ts,e.lastEffect=Ts))}else{if(null!==(t=Ya(Ts)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ts.sibling))return t;Ts=e}while(null!==Ts);return As===ws&&(As=5),null}function fu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function du(e){var t=zi();return Hi(99,hu.bind(null,e,t)),null}function hu(e,t){do{gu()}while(null!==zs);if(0!==(48&ks))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=fu(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ss&&(Ts=Ss=null,Cs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=ks;ks|=32,bs.current=null,gn=Xt;var s=hn();if(pn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{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(C){u=null;break e}var d=0,h=-1,p=-1,g=0,y=0,v=s,m=null;t:for(;;){for(var b;v!==u||0!==c&&3!==v.nodeType||(h=d+c),v!==f||0!==l&&3!==v.nodeType||(p=d+l),3===v.nodeType&&(d+=v.nodeValue.length),null!==(b=v.firstChild);)m=v,v=b;for(;;){if(v===s)break t;if(m===u&&++g===c&&(h=d),m===f&&++y===l&&(p=d),null!==(b=v.nextSibling))break;m=(v=m).parentNode}v=b}u=-1===h||-1===p?null:{start:h,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;yn={activeElementDetached:null,focusedElem:s,selectionRange:u},Xt=!1,Rs=i;do{try{pu()}catch(C){if(null===Rs)throw Error(a(330));mu(Rs,C),Rs=Rs.nextEffect}}while(null!==Rs);Rs=i;do{try{for(s=e,u=t;null!==Rs;){var w=Rs.effectTag;if(16&w&&ze(Rs.stateNode,""),128&w){var x=Rs.alternate;if(null!==x){var _=x.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&w){case 2:ls(Rs),Rs.effectTag&=-3;break;case 6:ls(Rs),Rs.effectTag&=-3,fs(Rs.alternate,Rs);break;case 1024:Rs.effectTag&=-1025;break;case 1028:Rs.effectTag&=-1025,fs(Rs.alternate,Rs);break;case 4:fs(Rs.alternate,Rs);break;case 8:cs(s,c=Rs,u),ss(c)}Rs=Rs.nextEffect}}catch(C){if(null===Rs)throw Error(a(330));mu(Rs,C),Rs=Rs.nextEffect}}while(null!==Rs);if(_=yn,x=hn(),w=_.focusedElem,u=_.selectionRange,x!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==u&&pn(w)&&(x=u.start,void 0===(_=u.end)&&(_=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(_,w.value.length)):(_=(x=w.ownerDocument||document)&&x.defaultView||window).getSelection&&(_=_.getSelection(),c=w.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!_.extend&&s>u&&(c=u,u=s,s=c),c=dn(w,s),f=dn(w,u),c&&f&&(1!==_.rangeCount||_.anchorNode!==c.node||_.anchorOffset!==c.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&((x=x.createRange()).setStart(c.node,c.offset),_.removeAllRanges(),s>u?(_.addRange(x),_.extend(f.node,f.offset)):(x.setEnd(f.node,f.offset),_.addRange(x))))),x=[];for(_=w;_=_.parentNode;)1===_.nodeType&&x.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<x.length;w++)(_=x[w]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Xt=!!gn,yn=gn=null,e.current=n,Rs=i;do{try{for(w=e;null!==Rs;){var k=Rs.effectTag;if(36&k&&os(w,Rs.alternate,Rs),128&k){x=void 0;var S=Rs.ref;if(null!==S){var T=Rs.stateNode;switch(Rs.tag){case 5:x=T;break;default:x=T}"function"===typeof S?S(x):S.current=x}}Rs=Rs.nextEffect}}catch(C){if(null===Rs)throw Error(a(330));mu(Rs,C),Rs=Rs.nextEffect}}while(null!==Rs);Rs=null,Li(),ks=o}else e.current=n;if(Fs)Fs=!1,zs=e,Vs=t;else for(Rs=i;null!==Rs;)t=Rs.nextEffect,Rs.nextEffect=null,Rs=t;if(0===(t=e.firstPendingTime)&&(Bs=null),1073741823===t?e===Gs?Us++:(Us=0,Gs=e):Us=0,"function"===typeof xu&&xu(n.stateNode,r),Ys(e),Ns)throw Ns=!1,e=js,js=null,e;return 0!==(8&ks)||Ji(),null}function pu(){for(;null!==Rs;){var e=Rs.effectTag;0!==(256&e)&&ns(Rs.alternate,Rs),0===(512&e)||Fs||(Fs=!0,Ui(97,(function(){return gu(),null}))),Rs=Rs.nextEffect}}function gu(){if(90!==Vs){var e=97<Vs?97:Vs;return Vs=90,Hi(e,yu)}}function yu(){if(null===zs)return!1;var e=zs;if(zs=null,0!==(48&ks))throw Error(a(331));var t=ks;for(ks|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(r){if(null===e)throw Error(a(330));mu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return ks=t,Ji(),!0}function vu(e,t,n){uo(e,t=ps(e,t=$a(n,t),1073741823)),null!==(e=Zs(e,1073741823))&&Ys(e)}function mu(e,t){if(3===e.tag)vu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Bs||!Bs.has(r))){uo(n,e=gs(n,e=$a(t,e),1073741823)),null!==(n=Zs(n,1073741823))&&Ys(n);break}}n=n.return}}function bu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ss===e&&Cs===n?As===_s||As===xs&&1073741823===Ms&&Fi()-Ls<500?nu(e,Cs):Ds=!0:Iu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ys(e)))}function wu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ws(t=Xs(),e,null)),null!==(e=Zs(e,t))&&Ys(e)}ys=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||di.current)Ea=!0;else{if(r<n){switch(Ea=!1,t.tag){case 3:Fa(t),Oa();break;case 5:if(Lo(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:gi(t.type)&&bi(t);break;case 4:Io(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,li(Zi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ga(e,t,n):(li(No,1&No.current),null!==(t=qa(e,t,n))?t.sibling:null);li(No,1&No.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Wa(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),li(No,No.current),!r)return null}return qa(e,t,n)}Ea=!1}}else Ea=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=pi(t,fi.current),no(t,n),i=qo(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var o=!0;bi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&go(t,r,s,e),i.updater=yo,t.stateNode=i,i._reactInternalFiber=t,wo(t,r,e,n),t=Ba(null,t,r,!0,o,n)}else t.tag=0,Pa(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"===typeof e)return Tu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===fe)return 14}return 2}(i),e=qi(i,e),o){case 0:t=Na(null,t,i,e,n);break e;case 1:t=ja(null,t,i,e,n);break e;case 11:t=Ia(null,t,i,e,n);break e;case 14:t=Da(null,t,i,qi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Na(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,ja(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 3:if(Fa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),co(t,r,null,n),(r=t.memoizedState.element)===i)Oa(),t=qa(e,t,n);else{if((i=t.stateNode.hydrate)&&(xa=xn(t.stateNode.containerInfo.firstChild),wa=t,i=_a=!0),i)for(n=Co(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Pa(e,t,r,n),Oa();t=t.child}return t;case 5:return Lo(t),null===e&&Ta(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,mn(r,i)?s=null:null!==o&&mn(r,o)&&(t.effectTag|=16),Ra(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Pa(e,t,s,n),t=t.child),t;case 6:return null===e&&Ta(t),null;case 13:return Ga(e,t,n);case 4:return Io(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=To(t,null,r,n):Pa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 7:return Pa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var u=t.type._context;if(li(Zi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=jr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!di.current){t=qa(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===u.tag&&((c=so(n,null)).tag=2,uo(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),to(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Pa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,Pa(e,t,r,n),t.child;case 14:return o=qi(i=t.type,t.pendingProps),Da(e,t,i,o=qi(i.type,o),r,n);case 15:return La(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,gi(r)?(e=!0,bi(t)):e=!1,no(t,n),mo(t,r,i),wo(t,r,i,n),Ba(null,t,r,!0,e,n);case 19:return Wa(e,t,n)}throw Error(a(156,t.tag))};var xu=null,_u=null;function ku(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Su(e,t,n,r){return new ku(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Cu(e,t){var n=e.alternate;return null===n?((n=Su(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Au(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Tu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case ne:return Ou(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=Su(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case le:return(e=Su(13,n,t,i)).type=le,e.elementType=le,e.expirationTime=o,e;case ce:return(e=Su(19,n,t,i)).elementType=ce,e.expirationTime=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case ue:s=11;break e;case fe:s=14;break e;case de:s=16,r=null;break e;case he:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Su(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Ou(e,t,n,r){return(e=Su(7,e,r,t)).expirationTime=n,e}function Mu(e,t,n){return(e=Su(6,e,null,t)).expirationTime=n,e}function Eu(e,t,n){return(t=Su(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Iu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Du(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Lu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ru(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Nu(e,t,n,r){var i=t.current,o=Xs(),s=ho.suspense;o=Ws(o,i,s);e:if(n){t:{if(Qe(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(gi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(gi(l)){n=mi(n,l,u);break e}}n=u}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),uo(i,t),qs(i,o),o}function ju(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Bu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Fu(e,t){Bu(e,t),(e=e.alternate)&&Bu(e,t)}function zu(e,t,n){var r=new Pu(e,t,n=null!=n&&!0===n.hydrate),i=Su(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[Cn]=r.current,n&&0!==t&&function(e,t){var n=$e(t);Ct.forEach((function(e){pt(e,t,n)})),At.forEach((function(e){pt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Vu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=ju(a);s.call(e)}}Nu(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new zu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var e=ju(a);u.call(e)}}tu((function(){Nu(t,a,e,i)}))}return ju(a)}function Uu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Gu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Vu(t))throw Error(a(200));return Uu(e,t,null,n)}zu.prototype.render=function(e){Nu(e,this._internalRoot,null,null)},zu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Nu(null,e,null,(function(){t[Cn]=null}))},gt=function(e){if(13===e.tag){var t=Wi(Xs(),150,100);qs(e,t),Fu(e,t)}},yt=function(e){13===e.tag&&(qs(e,3),Fu(e,3))},vt=function(e){if(13===e.tag){var t=Xs();qs(e,t=Ws(t,e,null)),Fu(e,t)}},O=function(e,t,n){switch(t){case"input":if(Te(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=En(r);if(!i)throw Error(a(90));xe(r),Te(r,i)}}}break;case"textarea":Ie(e,n);break;case"select":null!=(t=n.value)&&Me(e,!!n.multiple,t,!1)}},L=eu,R=function(e,t,n,r,i){var o=ks;ks|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(ks=o)&&Ji()}},N=function(){0===(49&ks)&&(function(){if(null!==Hs){var e=Hs;Hs=null,e.forEach((function(e,t){Ru(t,e),Ys(t)})),Ji()}}(),gu())},j=function(e,t){var n=ks;ks|=2;try{return e(t)}finally{0===(ks=n)&&Ji()}};var Ju={Events:[On,Mn,En,C,k,jn,function(e){it(e,Nn)},I,D,Yt,st,gu,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);xu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},_u=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:An,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ju,t.createPortal=Gu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&ks))throw Error(a(187));var n=ks;ks|=1;try{return Hi(99,e.bind(null,t))}finally{ks=n,Ji()}},t.hydrate=function(e,t,n){if(!Vu(t))throw Error(a(200));return Hu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Vu(t))throw Error(a(200));return Hu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Vu(e))throw Error(a(40));return!!e._reactRootContainer&&(tu((function(){Hu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Cn]=null}))})),!0)},t.unstable_batchedUpdates=eu,t.unstable_createPortal=function(e,t){return Gu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vu(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Hu(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(361)},function(e,t,n){"use strict";var r,i,o,a,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,l=null,c=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(c,0))},i=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,p=window.setTimeout,g=window.clearTimeout;if("undefined"!==typeof console){window.cancelAnimationFrame;window.requestAnimationFrame}if("object"===typeof d&&"function"===typeof d.now)t.unstable_now=function(){return d.now()};else{var y=h.now();t.unstable_now=function(){return h.now()-y}}var v=!1,m=null,b=-1,w=5,x=0;a=function(){return t.unstable_now()>=x},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e||(w=0<e?Math.floor(1e3/e):5)};var _=new MessageChannel,k=_.port2;_.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();x=e+w;try{m(!0,e)?k.postMessage(null):(v=!1,m=null)}catch(n){throw k.postMessage(null),n}}else v=!1},r=function(e){m=e,v||(v=!0,k.postMessage(null))},i=function(e,n){b=p((function(){e(t.unstable_now())}),n)},o=function(){g(b),b=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function T(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,u=e[s];if(void 0!==a&&0>A(a,n))void 0!==u&&0>A(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>A(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],M=[],E=1,P=null,I=3,D=!1,L=!1,R=!1;function N(e){for(var t=T(M);null!==t;){if(null===t.callback)C(M);else{if(!(t.startTime<=e))break;C(M),t.sortIndex=t.expirationTime,S(O,t)}t=T(M)}}function j(e){if(R=!1,N(e),!L)if(null!==T(O))L=!0,r(B);else{var t=T(M);null!==t&&i(j,t.startTime-e)}}function B(e,n){L=!1,R&&(R=!1,o()),D=!0;var r=I;try{for(N(n),P=T(O);null!==P&&(!(P.expirationTime>n)||e&&!a());){var s=P.callback;if(null!==s){P.callback=null,I=P.priorityLevel;var u=s(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?P.callback=u:P===T(O)&&C(O),N(n)}else C(O);P=T(O)}if(null!==P)var l=!0;else{var c=T(M);null!==c&&i(j,c.startTime-n),l=!1}return l}finally{P=null,I=r,D=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||D||(L=!0,r(B))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return T(O)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.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:F(e)}else a=F(e),u=s;return e={id:E++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(e.sortIndex=u,S(M,e),null===T(O)&&e===T(M)&&(R?o():R=!0,i(j,u-s))):(e.sortIndex=a,S(O,e),L||D||(L=!0,r(B))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();N(e);var n=T(O);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},function(e,t,n){"use strict";var r=n(363);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case a:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case v:case y:case l:return e;default:return t}}case o:return t}}}function k(e){return _(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||_(e)===f},t.isConcurrentMode=k,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===y},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===u||e===s||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===b||e.$$typeof===w||e.$$typeof===x||e.$$typeof===m)},t.typeOf=_},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var i,o,a,s,u,l,c,f,d,h,p,g,y,v,m,b,w,x,_,k,S,T,C,A,O,M=r(n(366)),E=r(n(33)),P=(r(n(106)),n(28)),I=r(n(368)),D=r(n(369)),L=r(n(370)),R=n(113),N=n(75),j=n(119),B=n(109),F=r(n(384));(C=t.ChainId||(t.ChainId={}))[C.MAINNET=1]="MAINNET",C[C.ROPSTEN=3]="ROPSTEN",C[C.RINKEBY=4]="RINKEBY",C[C["G\xd6RLI"]=5]="G\xd6RLI",C[C.KOVAN=42]="KOVAN",C[C.BSC=56]="BSC",C[C.HECO=128]="HECO",(A=t.TradeType||(t.TradeType={}))[A.EXACT_INPUT=0]="EXACT_INPUT",A[A.EXACT_OUTPUT=1]="EXACT_OUTPUT",(O=t.Rounding||(t.Rounding={}))[O.ROUND_DOWN=0]="ROUND_DOWN",O[O.ROUND_HALF_UP=1]="ROUND_HALF_UP",O[O.ROUND_UP=2]="ROUND_UP";var z,V=((i={})[t.ChainId.MAINNET]="0x41198f8a3d2b90cffbb82ace3f3fc023766335c2478bc655239ed0104e91dd91",i[t.ChainId.ROPSTEN]="0xa32d839bf3b18632f93621fb986ac92bf66fdd314acaed343f7c44c50dcc01cd",i[t.ChainId.RINKEBY]="0x7d7485384ede212d8c0a453a26b26cec26bf9c13cc2318a8d6529624166265c4",i[t.ChainId.G\u00d6RLI]="0xa32d839bf3b18632f93621fb986ac92bf66fdd314acaed343f7c44c50dcc01cd",i[t.ChainId.KOVAN]="0xa32d839bf3b18632f93621fb986ac92bf66fdd314acaed343f7c44c50dcc01cd",i[t.ChainId.BSC]="0x41198f8a3d2b90cffbb82ace3f3fc023766335c2478bc655239ed0104e91dd91",i[t.ChainId.HECO]="0xa32d839bf3b18632f93621fb986ac92bf66fdd314acaed343f7c44c50dcc01cd",i),H=((o={})[t.ChainId.MAINNET]="0x6Dd7F02B6025426E46088F598F45212124478182",o[t.ChainId.ROPSTEN]="0xc35DADB65012eC5796536bD9864eD8773aBc74C4",o[t.ChainId.RINKEBY]="0x361C8EFfa2359b54c33aEca631bD4d000bEBB48f",o[t.ChainId.G\u00d6RLI]="0xc35DADB65012eC5796536bD9864eD8773aBc74C4",o[t.ChainId.KOVAN]="0xc35DADB65012eC5796536bD9864eD8773aBc74C4",o[t.ChainId.BSC]="0xFF6ad8728C0aa5215FeFae3459D46B90a37b9546",o[t.ChainId.HECO]="0xc35DADB65012eC5796536bD9864eD8773aBc74C4",o),U=((a={})[t.ChainId.MAINNET]="0xF73bA36cf5466AbF1CFbc16CE4096Eea135B5eA1",a[t.ChainId.ROPSTEN]="0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",a[t.ChainId.RINKEBY]="0xB20Ad357fD682E91BDdCcf408DaBA9E837920914",a[t.ChainId.G\u00d6RLI]="0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",a[t.ChainId.KOVAN]="0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",a[t.ChainId.BSC]="0x0e3fFbcdF9B699370F3dF4D9716F18F22a0974B7",a[t.ChainId.HECO]="0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",a),G=((s={})[t.ChainId.MAINNET]="0x66Bb15Df3F9B4b68109799Ab5D89BC42d07113F2",s[t.ChainId.ROPSTEN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",s[t.ChainId.RINKEBY]="0xB19A2DeD0A539472866775372ecA115610e8F1D8",s[t.ChainId.G\u00d6RLI]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",s[t.ChainId.KOVAN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",s[t.ChainId.BSC]="0xCddCab8497898778075E2cf8f0D39Ac6Cf2E082D",s[t.ChainId.HECO]="",s),J=((u={})[t.ChainId.MAINNET]="",u[t.ChainId.ROPSTEN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",u[t.ChainId.RINKEBY]="0x596848D1da6092385D44f5dC62771Fa7b0f5A284",u[t.ChainId.G\u00d6RLI]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",u[t.ChainId.KOVAN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",u[t.ChainId.BSC]="0x5b484e19B3600528C1F0bfbb87Bb2C249a933689",u[t.ChainId.HECO]="",u),X=((l={})[t.ChainId.MAINNET]="",l[t.ChainId.ROPSTEN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",l[t.ChainId.RINKEBY]="0x90FB6179560092F997a19C0bdFe66BFc543E75A5",l[t.ChainId.G\u00d6RLI]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",l[t.ChainId.KOVAN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",l[t.ChainId.BSC]="0x6b524C6e5B07e76C79EFb51213Fe7bf21224F8C5",l[t.ChainId.HECO]="",l),W=((c={})[t.ChainId.MAINNET]="",c[t.ChainId.ROPSTEN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",c[t.ChainId.RINKEBY]="0xd7DEb10C6725BB61D11f4480CD488F24f555FD42",c[t.ChainId.G\u00d6RLI]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",c[t.ChainId.KOVAN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",c[t.ChainId.BSC]="0x3AdFb7861e0Cff98196FDeB3E4D47f6b54199E21",c[t.ChainId.HECO]="",c),q=((f={})[t.ChainId.MAINNET]="",f[t.ChainId.ROPSTEN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",f[t.ChainId.RINKEBY]="0x5ba7a1398440BE37822dA865d68e02745048854F",f[t.ChainId.G\u00d6RLI]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",f[t.ChainId.KOVAN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",f[t.ChainId.BSC]="0xe197DcaC8535c6abaf99Fa1Be81ACf2E3b14EA1D",f[t.ChainId.HECO]="",f),Z=((d={})[t.ChainId.MAINNET]="",d[t.ChainId.ROPSTEN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",d[t.ChainId.RINKEBY]="0x59dBaaAcc9B06F3397c86d2f3fBee4ba684cBBd4",d[t.ChainId.G\u00d6RLI]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",d[t.ChainId.KOVAN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",d[t.ChainId.BSC]="0x877411eebA78C96193695A12f0d33Cd284b6375E",d[t.ChainId.HECO]="",d),K=((h={})[t.ChainId.MAINNET]="",h[t.ChainId.ROPSTEN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",h[t.ChainId.RINKEBY]="0x1B07FF120d8345B678C257202966b8CB53637485",h[t.ChainId.G\u00d6RLI]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",h[t.ChainId.KOVAN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",h[t.ChainId.BSC]="0xc53B5c0181816f656f55E98cA585D4598A057882",h[t.ChainId.HECO]="",h),Y=((p={})[t.ChainId.MAINNET]="",p[t.ChainId.ROPSTEN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",p[t.ChainId.RINKEBY]="0x940a1378D8C2f442b104e322DD10584BC78E9513",p[t.ChainId.G\u00d6RLI]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",p[t.ChainId.KOVAN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",p[t.ChainId.BSC]="0x68F71f053D6fd8086A149b9F93882327F3Cb06A8",p[t.ChainId.HECO]="",p),$=((g={})[t.ChainId.MAINNET]="0xE22d44c58A076749CADAc6c97402A3818ca5f39a",g[t.ChainId.ROPSTEN]="0x9ecAF90972b85f9e16bbE25345B952fDbC232F83",g[t.ChainId.RINKEBY]="0xD99b6e13EC627A2d1ec44BB02aD58E82638C4f70",g[t.ChainId.G\u00d6RLI]="0x9ecAF90972b85f9e16bbE25345B952fDbC232F83",g[t.ChainId.KOVAN]="0x9ecAF90972b85f9e16bbE25345B952fDbC232F83",g[t.ChainId.BSC]="0xc44804330eb4a39953bd69A7F77902D12293873C",g[t.ChainId.HECO]="0x9ecAF90972b85f9e16bbE25345B952fDbC232F83",g),Q=((y={})[t.ChainId.MAINNET]="0xa8A1e64894578e7c1093CCc9d936D18c23047080",y[t.ChainId.ROPSTEN]="0x4ef9a1c56f85a4bBa0aA12e0CDcdAB852EC5cE98",y[t.ChainId.RINKEBY]="0x2534751bc596Fc91736f102FccF8d258b6F422FC",y[t.ChainId.G\u00d6RLI]="0x4ef9a1c56f85a4bBa0aA12e0CDcdAB852EC5cE98",y[t.ChainId.KOVAN]="0x4ef9a1c56f85a4bBa0aA12e0CDcdAB852EC5cE98",y[t.ChainId.BSC]="0xc8Fd4fEcaC84C34BFCc275f2F291EBc39D2259FA",y[t.ChainId.HECO]="0x4ef9a1c56f85a4bBa0aA12e0CDcdAB852EC5cE98",y),ee=((v={})[t.ChainId.MAINNET]="0xF456E8B2F8C61751e559b69CB4E21ee87D6AA35f",v[t.ChainId.ROPSTEN]="0xF456E8B2F8C61751e559b69CB4E21ee87D6AA35f",v[t.ChainId.RINKEBY]="0xF456E8B2F8C61751e559b69CB4E21ee87D6AA35f",v[t.ChainId.G\u00d6RLI]="0xF456E8B2F8C61751e559b69CB4E21ee87D6AA35f",v[t.ChainId.KOVAN]="0xF456E8B2F8C61751e559b69CB4E21ee87D6AA35f",v[t.ChainId.BSC]="0xF456E8B2F8C61751e559b69CB4E21ee87D6AA35f",v[t.ChainId.HECO]="0xF456E8B2F8C61751e559b69CB4E21ee87D6AA35f",v),te=((m={})[t.ChainId.MAINNET]=[{pid:0,lpToken:"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",isPair:!1,symbol0:"CC",symbol1:"-",token0:"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f"},{pid:1,lpToken:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",isPair:!1,symbol0:"WETH",symbol1:"-",token0:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},{pid:2,lpToken:"0x69af81e73A73B40adF4f3d4223Cd9b1ECE623074",isPair:!1,symbol0:"MASK",symbol1:"-",token0:"0x69af81e73A73B40adF4f3d4223Cd9b1ECE623074"},{pid:3,lpToken:"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",isPair:!1,symbol0:"SNX",symbol1:"-",token0:"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F"},{pid:4,lpToken:"0x5e21b09365731777778A6b7088CAd87857Ce1392",isPair:!0,symbol0:"CC",symbol1:"WETH",token0:"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",token1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},{pid:5,lpToken:"0x8774540530D5D311248C03f2f1e3830afaFEcc57",isPair:!0,symbol0:"USDT",symbol1:"USDC",token0:"0xdac17f958d2ee523a2206206994597c13d831ec7",token1:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{pid:6,lpToken:"0x60Fa657cEC375E8208E23f50c4ec03167f7c6076",isPair:!0,symbol0:"WETH",symbol1:"USDT",token0:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",token1:"0xdac17f958d2ee523a2206206994597c13d831ec7"},{pid:7,lpToken:"0xA6E0e7914918b9fc8460d3f97071e9520Ce1F3A8",isPair:!0,symbol0:"UNI",symbol1:"WETH",token0:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",token1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},{pid:8,lpToken:"0xa70EdD5a61F9DeA9eEF3426b5131a8462e3FBfBE",isPair:!0,symbol0:"CC",symbol1:"USDT",token0:"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",token1:"0xdac17f958d2ee523a2206206994597c13d831ec7"}],m[t.ChainId.ROPSTEN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",m[t.ChainId.RINKEBY]=[{pid:0,lpToken:"0xC89BC9A5Ca6fb91Af4cb8Cf71deDb101Ae61C9B3",isPair:!0,symbol0:"CC",symbol1:"USDT",token0:"0x81978a665b416308bce0ae8a65fe8d28620334a4",token1:"0xb569c0399fc5062249ec0c80917d83bc982cb24a"},{pid:1,lpToken:"0x0FDb4AC811634aB89B1Bbcb7680D9E992FDA8b5F",isPair:!0,symbol0:"CC",symbol1:"TEST1",token0:"0x81978a665b416308bce0ae8a65fe8d28620334a4",token1:"0xc62b3bdade228b867f2f7165ec899e46d09ab21b"}],m[t.ChainId.G\u00d6RLI]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",m[t.ChainId.KOVAN]="0x80C7DD17B01855a6D2347444a0FCC36136a314de",m[t.ChainId.BSC]=[{pid:0,lpToken:"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",isPair:!1,symbol0:"CC",symbol1:"-",token0:"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f"},{pid:1,lpToken:"0x0677FB47b0AB26E3d4FB8805dAd986171640D0a2",isPair:!0,symbol0:"WETH",symbol1:"CC",token0:"0x2170ed0880ac9a755fd29b2688956bd959f933f8",token1:"0xb7fbff4ce5200215c690cc95855e5d6c5236ee9f"},{pid:2,lpToken:"0x1E8424476120DE0004ACA30C695b560382926caf",isPair:!0,symbol0:"CC",symbol1:"BUSD",token0:"0xb7fbff4ce5200215c690cc95855e5d6c5236ee9f",token1:"0xe9e7cea3dedca5984780bafc599bd69add087d56"},{pid:3,lpToken:"0x8E9913d14CfD3ea95c51D6C05420f1A588AA8A96",isPair:!0,symbol0:"CC",symbol1:"WBNB",token0:"0xb7fbff4ce5200215c690cc95855e5d6c5236ee9f",token1:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"},{pid:4,lpToken:"0xD33EE692e636fC743f6ebCC820cc40879eCe9088",isPair:!0,symbol0:"Cake",symbol1:"CC",token0:"0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",token1:"0xb7fbff4ce5200215c690cc95855e5d6c5236ee9f"},{pid:5,lpToken:"0xeef8dAe893884FA3a0c162D9FC2C31F98888E1E7",isPair:!0,symbol0:"CC",symbol1:"BUNNY",token0:"0xb7fbff4ce5200215c690cc95855e5d6c5236ee9f",token1:"0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51"},{pid:6,lpToken:"0xAfA388809850AFe024e6f23089bEdA5C1D23624f",isPair:!0,symbol0:"ALPACA",symbol1:"CC",token0:"0x8f0528ce5ef7b51152a59745befdd91d97091d2f",token1:"0xb7fbff4ce5200215c690cc95855e5d6c5236ee9f"},{pid:7,lpToken:"0xB499dDF1e2D15014654437074f930Ca3b6337E63",isPair:!0,symbol0:"CC",symbol1:"XVS",token0:"0xb7fbff4ce5200215c690cc95855e5d6c5236ee9f",token1:"0xcf6bb5389c92bdda8a3747ddb454cb7a64626c63"},{pid:8,lpToken:"0x1D81a199ebEEdF40d9e1C019538836eBECe99A46",isPair:!0,symbol0:"USDT",symbol1:"BUSD",token0:"0x55d398326f99059ff775485246999027b3197955",token1:"0xe9e7cea3dedca5984780bafc599bd69add087d56"},{pid:9,lpToken:"0x401A2aE2e046Ab8587BD47A833b537eaae1aF410",isPair:!0,symbol0:"WBNB",symbol1:"BUSD",token0:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",token1:"0xe9e7cea3dedca5984780bafc599bd69add087d56"},{pid:10,lpToken:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",isPair:!1,symbol0:"WBNB",symbol1:"-",token0:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"},{pid:11,lpToken:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",isPair:!1,symbol0:"BTCB",symbol1:"-",token0:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c"},{pid:12,lpToken:"0xC9849E6fdB743d08fAeE3E34dd2D1bc69EA11a51",isPair:!1,symbol0:"BUNNY",symbol1:"-",token0:"0xC9849E6fdB743d08fAeE3E34dd2D1bc69EA11a51"},{pid:13,lpToken:"0x8F0528cE5eF7B51152A59745bEfDD91D97091d2F",isPair:!1,symbol0:"ALPACA",symbol1:"-",token0:"0x8F0528cE5eF7B51152A59745bEfDD91D97091d2F"},{pid:14,lpToken:"0xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63",isPair:!1,symbol0:"XVS",symbol1:"-",token0:"0xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63"},{pid:15,lpToken:"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",isPair:!1,symbol0:"Cake",symbol1:"-",token0:"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82"},{pid:16,lpToken:"0x843D4a358471547f51534e3e51fae91cb4Dc3F28",isPair:!1,symbol0:"lowb",symbol1:"-",token0:"0x843D4a358471547f51534e3e51fae91cb4Dc3F28"}],m[t.ChainId.HECO]=[],m),ne=((b={})[t.ChainId.MAINNET]="https://ethnode.ccswap.org",b[t.ChainId.ROPSTEN]="",b[t.ChainId.RINKEBY]="https://rinkeby.infura.io/v3/3b86233dcd574b5aa50d2e859c2b078c",b[t.ChainId.G\u00d6RLI]="",b[t.ChainId.KOVAN]="",b[t.ChainId.BSC]="https://bsc-dataseed.binance.org",b[t.ChainId.HECO]="https://heconode.ccswap.org",b),re=((w={})[t.ChainId.MAINNET]="wss://ethnodews.ccswap.org",w[t.ChainId.ROPSTEN]="",w[t.ChainId.RINKEBY]="wss://rinkeby.infura.io/ws/v3/3b86233dcd574b5aa50d2e859c2b078c",w[t.ChainId.G\u00d6RLI]="",w[t.ChainId.KOVAN]="",w[t.ChainId.BSC]="wss://bsc.getblock.io/mainnet/?api_key=af09acf8-957b-4d3d-bc56-22cbdf0f8a75",w[t.ChainId.HECO]="https://heconodews.ccswap.org",w),ie=((x={})[t.ChainId.MAINNET]="0x6B3595068778DD592e39A122f4f5a5cF09C90fE2",x[t.ChainId.ROPSTEN]="0x0769fd68dFb93167989C6f7254cd0D766Fb2841F",x[t.ChainId.RINKEBY]="0x0769fd68dFb93167989C6f7254cd0D766Fb2841F",x[t.ChainId.G\u00d6RLI]="0x0769fd68dFb93167989C6f7254cd0D766Fb2841F",x[t.ChainId.KOVAN]="0x0769fd68dFb93167989C6f7254cd0D766Fb2841F",x[t.ChainId.BSC]="",x[t.ChainId.HECO]="",x),oe=((_={})[t.ChainId.MAINNET]="0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272",_[t.ChainId.ROPSTEN]="0x1be211D8DA40BC0ae8719c6663307Bfc987b1d6c",_[t.ChainId.RINKEBY]="0x1be211D8DA40BC0ae8719c6663307Bfc987b1d6c",_[t.ChainId.G\u00d6RLI]="0x1be211D8DA40BC0ae8719c6663307Bfc987b1d6c",_[t.ChainId.KOVAN]="0x1be211D8DA40BC0ae8719c6663307Bfc987b1d6c",_[t.ChainId.BSC]="",_[t.ChainId.HECO]="",_),ae=((k={})[t.ChainId.MAINNET]="0x9a8541Ddf3a932a9A922B607e9CF7301f1d47bD1",k[t.ChainId.ROPSTEN]="",k[t.ChainId.RINKEBY]="",k[t.ChainId.G\u00d6RLI]="",k[t.ChainId.KOVAN]="",k[t.ChainId.BSC]="",k[t.ChainId.HECO]="",k),se=((S={})[t.ChainId.MAINNET]="0xE11fc0B43ab98Eb91e9836129d1ee7c3Bc95df50",S[t.ChainId.ROPSTEN]="0x1b9d177CcdeA3c79B6c8F40761fc8Dc9d0500EAa",S[t.ChainId.RINKEBY]="0x1b9d177CcdeA3c79B6c8F40761fc8Dc9d0500EAa",S[t.ChainId.G\u00d6RLI]="0x1b9d177CcdeA3c79B6c8F40761fc8Dc9d0500EAa",S[t.ChainId.KOVAN]="0x1b9d177CcdeA3c79B6c8F40761fc8Dc9d0500EAa",S[t.ChainId.BSC]="",S[t.ChainId.HECO]="",S),ue=M.BigInt(1e3),le=M.BigInt(0),ce=M.BigInt(1),fe=M.BigInt(2),de=M.BigInt(3),he=M.BigInt(5),pe=M.BigInt(10),ge=M.BigInt(100),ye=M.BigInt(997),ve=M.BigInt(1e3);(z=t.SolidityType||(t.SolidityType={})).uint8="uint8",z.uint256="uint256";var me=((T={})[t.SolidityType.uint8]=M.BigInt("0xff"),T[t.SolidityType.uint256]=M.BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),T);function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function we(e,t,n){return t&&be(e.prototype,t),n&&be(e,n),e}function xe(){return(xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Se(e,t){return(Se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Te(){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(r){return!1}}function Ce(e,t,n){return(Ce=Te()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Se(i,n.prototype),i}).apply(null,arguments)}function Ae(e){var t="function"==typeof Map?new Map:void 0;return(Ae=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ce(e,arguments,ke(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Se(n,e)})(e)}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ee(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Me(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Me(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var Pe,Ie="setPrototypeOf"in Object,De=function(e){function t(){var n;return(n=e.call(this)||this).isInsufficientReservesError=!0,n.name=n.constructor.name,Ie&&Object.setPrototypeOf(Oe(n),(this instanceof t?this.constructor:void 0).prototype),n}return _e(t,e),t}(Ae(Error)),Le=function(e){function t(){var n;return(n=e.call(this)||this).isInsufficientInputAmountError=!0,n.name=n.constructor.name,Ie&&Object.setPrototypeOf(Oe(n),(this instanceof t?this.constructor:void 0).prototype),n}return _e(t,e),t}(Ae(Error));function Re(e,t){M.greaterThanOrEqual(e,le)||E(!1),M.lessThanOrEqual(e,me[t])||E(!1)}function Ne(e){try{return P.getAddress(e)}catch(e){E(!1)}}function je(e){return e instanceof M?e:M.BigInt("bigint"==typeof e?e.toString():e)}function Be(e){Re(e,t.SolidityType.uint256);var n,r=le;if(M.greaterThan(e,de))for(r=e,n=M.add(M.divide(e,fe),ce);M.lessThan(n,r);)r=n,n=M.divide(M.add(M.divide(e,n),n),fe);else M.notEqual(e,le)&&(r=ce);return r}function Fe(e,t,n,r){if(n>0||E(!1),e.length<=n||E(!1),0===e.length)return e.push(t),null;var i=e.length===n;if(i&&r(e[e.length-1],t)<=0)return t;for(var o=0,a=e.length;o<a;){var s=o+a>>>1;r(e[s],t)<=0?o=s+1:a=s}return e.splice(o,0,t),i?e.pop():null}var ze=function(){function e(e,n,r){Re(M.BigInt(e),t.SolidityType.uint8),this.decimals=e,this.symbol=n,this.name=r}e.getNativeCurrency=function(t){if(!t)throw Error("No chainId "+t);if(!(t in e.NATIVE))throw Error("No native currency defined for chainId "+t);return e.NATIVE[t]},e.getNativeCurrencySymbol=function(e){return this.getNativeCurrency(e).symbol},e.getNativeCurrencyName=function(e){return this.getNativeCurrency(e).name};var n=e.prototype;return n.getSymbol=function(t){return t&&"ETH"===(null==this?void 0:this.symbol)?e.getNativeCurrencySymbol(t):null==this?void 0:this.symbol},n.getName=function(t){return t&&"Ether"===(null==this?void 0:this.name)?e.getNativeCurrencyName(t):null==this?void 0:this.name},e}();ze.ETHER=new ze(18,"ETH","Ether"),ze.BNB=new ze(18,"BNB","Binance Coin"),ze.FTM=new ze(18,"FTM","Fantom"),ze.MATIC=new ze(18,"MATIC","Matic"),ze.XDAI=new ze(18,"XDAI","xDai"),ze.GLMR=new ze(18,"GLMR","Glimmer"),ze.AVAX=new ze(18,"AVAX","Avalanche"),ze.HT=new ze(18,"HT","Heco Token"),ze.ONE=new ze(18,"ONE","Harmony"),ze.NATIVE=((Pe={})[t.ChainId.MAINNET]=ze.ETHER,Pe[t.ChainId.ROPSTEN]=ze.ETHER,Pe[t.ChainId.RINKEBY]=ze.ETHER,Pe[t.ChainId.G\u00d6RLI]=ze.ETHER,Pe[t.ChainId.KOVAN]=ze.ETHER,Pe[t.ChainId.BSC]=ze.BNB,Pe[t.ChainId.HECO]=ze.HT,Pe);var Ve,He,Ue,Ge,Je,Xe,We,qe,Ze,Ke,Ye,$e,Qe,et,tt=ze.ETHER,nt=function(e){function t(t,n,r,i,o){var a;return(a=e.call(this,r,i,o)||this).chainId=t,a.address=Ne(n),a}_e(t,e);var n=t.prototype;return n.equals=function(e){return this===e||this.chainId===e.chainId&&this.address===e.address},n.sortsBefore=function(e){return this.chainId!==e.chainId&&E(!1),this.address===e.address&&E(!1),this.address.toLowerCase()<e.address.toLowerCase()},we(t,[{key:"wrapped",get:function(){return this}}]),t}(ze);function rt(e,t){return e instanceof nt&&t instanceof nt?e.equals(t):!(e instanceof nt||t instanceof nt||e!==t)}var it,ot,at=((Ve={})[t.ChainId.MAINNET]=new nt(t.ChainId.MAINNET,"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18,"WETH","Wrapped Ether"),Ve[t.ChainId.RINKEBY]=new nt(t.ChainId.RINKEBY,"0xC35bFD9e21fD241D6386B2d190527a1374cAc539",18,"WETH","Wrapped Ether"),Ve[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",18,"WBNB","Wrapped BNB"),Ve[t.ChainId.HECO]=new nt(t.ChainId.HECO,"0x5545153CCFcA01fbd7Dd11C0b23ba694D9509A6F",18,"WHT","Wrapped HT"),Ve[t.ChainId.ROPSTEN]=new nt(t.ChainId.ROPSTEN,"0xC35bFD9e21fD241D6386B2d190527a1374cAc539",18,"WETH","Wrapped Ether"),Ve[t.ChainId.G\u00d6RLI]=new nt(t.ChainId.G\u00d6RLI,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),Ve[t.ChainId.KOVAN]=new nt(t.ChainId.KOVAN,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),Ve),st=((He={})[t.ChainId.MAINNET]=new nt(t.ChainId.MAINNET,"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",18,"CC","CCSwap Coin"),He[t.ChainId.RINKEBY]=new nt(t.ChainId.RINKEBY,"0x81978A665B416308bCe0ae8a65FE8D28620334a4",18,"CC","CCSwap Coin"),He[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",18,"CC","CCSwap Coin"),He[t.ChainId.HECO]=new nt(t.ChainId.HECO,"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",18,"CC","CCSwap Coin"),He[t.ChainId.ROPSTEN]=new nt(t.ChainId.ROPSTEN,"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",18,"WETH","Wrapped Ether"),He[t.ChainId.G\u00d6RLI]=new nt(t.ChainId.G\u00d6RLI,"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",18,"WETH","Wrapped Ether"),He[t.ChainId.KOVAN]=new nt(t.ChainId.KOVAN,"0xb7fbFf4Ce5200215c690cc95855e5d6C5236Ee9f",18,"WETH","Wrapped Ether"),He),ut=((Ue={})[t.ChainId.MAINNET]=new nt(t.ChainId.MAINNET,"0xdAC17F958D2ee523a2206206994597C13D831ec7",6,"USDT","Tether USD"),Ue[t.ChainId.RINKEBY]=new nt(t.ChainId.RINKEBY,"0xB569C0399Fc5062249ec0C80917D83Bc982Cb24A",18,"USDT","Tether USD"),Ue[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56",18,"BUSD","Binance USD"),Ue[t.ChainId.HECO]=new nt(t.ChainId.BSC,"0xdAC17F958D2ee523a2206206994597C13D831ec7",6,"USDT","Tether USD"),Ue[t.ChainId.ROPSTEN]=new nt(t.ChainId.ROPSTEN,"0xC35bFD9e21fD241D6386B2d190527a1374cAc539",6,"WETH","Tether USD"),Ue[t.ChainId.G\u00d6RLI]=new nt(t.ChainId.G\u00d6RLI,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),Ue[t.ChainId.KOVAN]=new nt(t.ChainId.KOVAN,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),Ue),lt=((Ge={})[t.ChainId.MAINNET]=new nt(t.ChainId.MAINNET,"0x69af81e73A73B40adF4f3d4223Cd9b1ECE623074",18,"MASK","MASK COIN"),Ge[t.ChainId.RINKEBY]="",Ge[t.ChainId.BSC]="",Ge[t.ChainId.HECO]="",Ge[t.ChainId.ROPSTEN]="",Ge[t.ChainId.G\u00d6RLI]="",Ge[t.ChainId.KOVAN]="",Ge),ct=((Je={})[t.ChainId.MAINNET]=new nt(t.ChainId.MAINNET,"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",18,"SNX","Synthetix Network Token"),Je[t.ChainId.RINKEBY]="",Je[t.ChainId.BSC]="",Je[t.ChainId.HECO]="",Je[t.ChainId.ROPSTEN]="",Je[t.ChainId.G\u00d6RLI]="",Je[t.ChainId.KOVAN]="",Je),ft=((Xe={})[t.ChainId.MAINNET]=new nt(t.ChainId.MAINNET,"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",18,"UNI","UNI COIN"),Xe[t.ChainId.RINKEBY]="",Xe[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0xBf5140A22578168FD562DCcF235E5D43A02ce9B1",18,"UNI","UNI COIN"),Xe[t.ChainId.HECO]="",Xe[t.ChainId.ROPSTEN]="",Xe[t.ChainId.G\u00d6RLI]="",Xe[t.ChainId.KOVAN]="",Xe),dt=((We={})[t.ChainId.MAINNET]="",We[t.ChainId.RINKEBY]="",We[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0x8f0528ce5ef7b51152a59745befdd91d97091d2f",18,"ALPACA","ALPACA COIN"),We[t.ChainId.HECO]="",We[t.ChainId.ROPSTEN]="",We[t.ChainId.G\u00d6RLI]="",We[t.ChainId.KOVAN]="",We),ht=((qe={})[t.ChainId.MAINNET]="",qe[t.ChainId.RINKEBY]="",qe[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",18,"BTCB","BTCB COIN"),qe[t.ChainId.HECO]="",qe[t.ChainId.ROPSTEN]="",qe[t.ChainId.G\u00d6RLI]="",qe[t.ChainId.KOVAN]="",qe),pt=((Ze={})[t.ChainId.MAINNET]="",Ze[t.ChainId.RINKEBY]="",Ze[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0xC9849E6fdB743d08fAeE3E34dd2D1bc69EA11a51",18,"BUNNY","BUNNY COIN"),Ze[t.ChainId.HECO]="",Ze[t.ChainId.ROPSTEN]="",Ze[t.ChainId.G\u00d6RLI]="",Ze[t.ChainId.KOVAN]="",Ze),gt=((Ke={})[t.ChainId.MAINNET]="",Ke[t.ChainId.RINKEBY]="",Ke[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",18,"Cake","Cake COIN"),Ke[t.ChainId.HECO]="",Ke[t.ChainId.ROPSTEN]="",Ke[t.ChainId.G\u00d6RLI]="",Ke[t.ChainId.KOVAN]="",Ke),yt=((Ye={})[t.ChainId.MAINNET]="",Ye[t.ChainId.RINKEBY]="",Ye[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0x843D4a358471547f51534e3e51fae91cb4Dc3F28",18,"lowb","lowb COIN"),Ye[t.ChainId.HECO]="",Ye[t.ChainId.ROPSTEN]="",Ye[t.ChainId.G\u00d6RLI]="",Ye[t.ChainId.KOVAN]="",Ye),vt=(($e={})[t.ChainId.MAINNET]="",$e[t.ChainId.RINKEBY]="",$e[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63",18,"XVS","XVS COIN"),$e[t.ChainId.HECO]="",$e[t.ChainId.ROPSTEN]="",$e[t.ChainId.G\u00d6RLI]="",$e[t.ChainId.KOVAN]="",$e),mt=((Qe={})[t.ChainId.MAINNET]=new nt(t.ChainId.MAINNET,"0x96b1b007165c372810Af040d455116eB14CEA8a2",18,"CCv","CC voucher"),Qe[t.ChainId.RINKEBY]=new nt(t.ChainId.RINKEBY,"0xaa93605675f4f91445aA71700e628fa8B972B58B",18,"CCv","CC voucher"),Qe[t.ChainId.BSC]=new nt(t.ChainId.BSC,"0x933B010241A3396CAE7FED81235D42a47bab9897",18,"CCv","CC voucher"),Qe[t.ChainId.HECO]=new nt(t.ChainId.HECO,"0xfD379DA6bA970c38c10292DaF4115130CA360BE5",18,"CCv","CC voucher"),Qe[t.ChainId.ROPSTEN]=new nt(t.ChainId.ROPSTEN,"0xfD379DA6bA970c38c10292DaF4115130CA360BE5",18,"CCv","CC voucher"),Qe[t.ChainId.G\u00d6RLI]=new nt(t.ChainId.G\u00d6RLI,"0xfD379DA6bA970c38c10292DaF4115130CA360BE5",18,"CCv","CC voucher"),Qe[t.ChainId.KOVAN]=new nt(t.ChainId.KOVAN,"0xfD379DA6bA970c38c10292DaF4115130CA360BE5",18,"CCv","CC voucher"),Qe),bt=((et={})[t.ChainId.MAINNET]=[st[t.ChainId.MAINNET],ut[t.ChainId.MAINNET],at[t.ChainId.MAINNET],lt[t.ChainId.MAINNET],ct[t.ChainId.MAINNET],ft[t.ChainId.MAINNET]],et[t.ChainId.ROPSTEN]="",et[t.ChainId.RINKEBY]=[],et[t.ChainId.G\u00d6RLI]="",et[t.ChainId.KOVAN]="",et[t.ChainId.BSC]=[st[t.ChainId.BSC],ut[t.ChainId.BSC],at[t.ChainId.BSC],dt[t.ChainId.BSC],ht[t.ChainId.BSC],pt[t.ChainId.BSC],yt[t.ChainId.BSC],vt[t.ChainId.BSC],new nt(t.ChainId.BSC,"0x2170ed0880ac9a755fd29b2688956bd959f933f8",18,"WETH","WETH COIN")],et[t.ChainId.HECO]=[],et),wt=D(L),xt=D(I),_t=((it={})[t.Rounding.ROUND_DOWN]=wt.ROUND_DOWN,it[t.Rounding.ROUND_HALF_UP]=wt.ROUND_HALF_UP,it[t.Rounding.ROUND_UP]=wt.ROUND_UP,it),kt=((ot={})[t.Rounding.ROUND_DOWN]=0,ot[t.Rounding.ROUND_HALF_UP]=1,ot[t.Rounding.ROUND_UP]=3,ot),St=function(){function e(e,t){void 0===t&&(t=ce),this.numerator=je(e),this.denominator=je(t)}var n=e.prototype;return n.invert=function(){return new e(this.denominator,this.numerator)},n.add=function(t){var n=t instanceof e?t:new e(je(t));return M.equal(this.denominator,n.denominator)?new e(M.add(this.numerator,n.numerator),this.denominator):new e(M.add(M.multiply(this.numerator,n.denominator),M.multiply(n.numerator,this.denominator)),M.multiply(this.denominator,n.denominator))},n.subtract=function(t){var n=t instanceof e?t:new e(je(t));return M.equal(this.denominator,n.denominator)?new e(M.subtract(this.numerator,n.numerator),this.denominator):new e(M.subtract(M.multiply(this.numerator,n.denominator),M.multiply(n.numerator,this.denominator)),M.multiply(this.denominator,n.denominator))},n.lessThan=function(t){var n=t instanceof e?t:new e(je(t));return M.lessThan(M.multiply(this.numerator,n.denominator),M.multiply(n.numerator,this.denominator))},n.equalTo=function(t){var n=t instanceof e?t:new e(je(t));return M.equal(M.multiply(this.numerator,n.denominator),M.multiply(n.numerator,this.denominator))},n.greaterThan=function(t){var n=t instanceof e?t:new e(je(t));return M.greaterThan(M.multiply(this.numerator,n.denominator),M.multiply(n.numerator,this.denominator))},n.multiply=function(t){var n=t instanceof e?t:new e(je(t));return new e(M.multiply(this.numerator,n.numerator),M.multiply(this.denominator,n.denominator))},n.divide=function(t){var n=t instanceof e?t:new e(je(t));return new e(M.multiply(this.numerator,n.denominator),M.multiply(this.denominator,n.numerator))},n.toSignificant=function(e,n,r){void 0===n&&(n={groupSeparator:""}),void 0===r&&(r=t.Rounding.ROUND_HALF_UP),Number.isInteger(e)||E(!1),e>0||E(!1),wt.set({precision:e+1,rounding:_t[r]});var i=new wt(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return i.toFormat(i.decimalPlaces(),n)},n.toFixed=function(e,n,r){return void 0===n&&(n={groupSeparator:""}),void 0===r&&(r=t.Rounding.ROUND_HALF_UP),Number.isInteger(e)||E(!1),e>=0||E(!1),xt.DP=e,xt.RM=kt[r],new xt(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,n)},we(e,[{key:"quotient",get:function(){return M.divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new e(M.remainder(this.numerator,this.denominator),this.denominator)}}]),e}(),Tt=D(I),Ct=function(e){function n(n,r){var i,o=je(r);return Re(o,t.SolidityType.uint256),(i=e.call(this,o,M.exponentiate(pe,M.BigInt(n.decimals)))||this).currency=n,i}_e(n,e),n.ether=function(e){return new n(tt,e)};var r=n.prototype;return r.add=function(e){return rt(this.currency,e.currency)||E(!1),new n(this.currency,M.add(this.raw,e.raw))},r.subtract=function(e){return rt(this.currency,e.currency)||E(!1),new n(this.currency,M.subtract(this.raw,e.raw))},r.toSignificant=function(n,r,i){return void 0===n&&(n=6),void 0===i&&(i=t.Rounding.ROUND_DOWN),e.prototype.toSignificant.call(this,n,r,i)},r.toFixed=function(n,r,i){return void 0===n&&(n=this.currency.decimals),void 0===i&&(i=t.Rounding.ROUND_DOWN),n<=this.currency.decimals||E(!1),e.prototype.toFixed.call(this,n,r,i)},r.toExact=function(e){return void 0===e&&(e={groupSeparator:""}),Tt.DP=this.currency.decimals,new Tt(this.numerator.toString()).div(this.denominator.toString()).toFormat(e)},we(n,[{key:"raw",get:function(){return this.numerator}}]),n}(St),At=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).token=t,r}_e(t,e);var n=t.prototype;return n.add=function(e){return this.token.equals(e.token)||E(!1),new t(this.token,M.add(this.raw,e.raw))},n.subtract=function(e){return this.token.equals(e.token)||E(!1),new t(this.token,M.subtract(this.raw,e.raw))},t}(Ct),Ot=function(e){function t(t,n,r,i){var o;return(o=e.call(this,i,r)||this).baseCurrency=t,o.quoteCurrency=n,o.scalar=new St(M.exponentiate(pe,M.BigInt(t.decimals)),M.exponentiate(pe,M.BigInt(n.decimals))),o}_e(t,e),t.fromRoute=function(e){for(var n,r=[],i=Ee(e.pairs.entries());!(n=i()).done;){var o=n.value,a=o[1];r.push(e.path[o[0]].equals(a.token0)?new t(a.reserve0.currency,a.reserve1.currency,a.reserve0.raw,a.reserve1.raw):new t(a.reserve1.currency,a.reserve0.currency,a.reserve1.raw,a.reserve0.raw))}return r.slice(1).reduce((function(e,t){return e.multiply(t)}),r[0])};var n=t.prototype;return n.invert=function(){return new t(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},n.multiply=function(n){rt(this.quoteCurrency,n.baseCurrency)||E(!1);var r=e.prototype.multiply.call(this,n);return new t(this.baseCurrency,n.quoteCurrency,r.denominator,r.numerator)},n.quote=function(t){return rt(t.currency,this.baseCurrency)||E(!1),this.quoteCurrency instanceof nt?new At(this.quoteCurrency,e.prototype.multiply.call(this,t.raw).quotient):Ct.ether(e.prototype.multiply.call(this,t.raw).quotient)},n.toSignificant=function(e,t,n){return void 0===e&&(e=6),this.adjusted.toSignificant(e,t,n)},n.toFixed=function(e,t,n){return void 0===e&&(e=4),this.adjusted.toFixed(e,t,n)},we(t,[{key:"raw",get:function(){return new St(this.numerator,this.denominator)}},{key:"adjusted",get:function(){return e.prototype.multiply.call(this,this.scalar)}}]),t}(St),Mt={},Et=function(){function e(t,n){var r=t.token.sortsBefore(n.token)?[t,n]:[n,t];this.liquidityToken=new nt(r[0].token.chainId,e.getAddress(r[0].token,r[1].token),18,"UNI-V2","Uniswap V2"),this.tokenAmounts=r}e.getAddress=function(e,t){var n,r,i,o,a,s=e.sortsBefore(t)?[e,t]:[t,e];return void 0===(null===(n=Mt)||void 0===n||null===(r=n[s[0].address])||void 0===r?void 0:r[s[1].address])&&(Mt=xe({},Mt,((a={})[s[0].address]=xe({},null===(i=Mt)||void 0===i?void 0:i[s[0].address],((o={})[s[1].address]=P.getCreate2Address(H[e.chainId],R.keccak256(["bytes"],[R.pack(["address","address"],[s[0].address,s[1].address])]),V[e.chainId]),o)),a))),Mt[s[0].address][s[1].address]};var t=e.prototype;return t.involvesToken=function(e){return e.equals(this.token0)||e.equals(this.token1)},t.priceOf=function(e){return this.involvesToken(e)||E(!1),e.equals(this.token0)?this.token0Price:this.token1Price},t.reserveOf=function(e){return this.involvesToken(e)||E(!1),e.equals(this.token0)?this.reserve0:this.reserve1},t.getOutputAmount=function(t){if(this.involvesToken(t.token)||E(!1),M.equal(this.reserve0.raw,le)||M.equal(this.reserve1.raw,le))throw new De;var n=this.reserveOf(t.token),r=this.reserveOf(t.token.equals(this.token0)?this.token1:this.token0),i=M.multiply(t.raw,ye),o=M.multiply(i,r.raw),a=M.add(M.multiply(n.raw,ve),i),s=new At(t.token.equals(this.token0)?this.token1:this.token0,M.divide(o,a));if(M.equal(s.raw,le))throw new Le;return[s,new e(n.add(t),r.subtract(s))]},t.getInputAmount=function(t){if(this.involvesToken(t.token)||E(!1),M.equal(this.reserve0.raw,le)||M.equal(this.reserve1.raw,le)||M.greaterThanOrEqual(t.raw,this.reserveOf(t.token).raw))throw new De;var n=this.reserveOf(t.token),r=this.reserveOf(t.token.equals(this.token0)?this.token1:this.token0),i=M.multiply(M.multiply(r.raw,t.raw),ve),o=M.multiply(M.subtract(n.raw,t.raw),ye),a=new At(t.token.equals(this.token0)?this.token1:this.token0,M.add(M.divide(i,o),ce));return[a,new e(r.add(a),n.subtract(t))]},t.getLiquidityMinted=function(e,t,n){e.token.equals(this.liquidityToken)||E(!1);var r,i=t.token.sortsBefore(n.token)?[t,n]:[n,t];if(i[0].token.equals(this.token0)&&i[1].token.equals(this.token1)||E(!1),M.equal(e.raw,le))r=M.subtract(Be(M.multiply(i[0].raw,i[1].raw)),ue);else{var o=M.divide(M.multiply(i[0].raw,e.raw),this.reserve0.raw),a=M.divide(M.multiply(i[1].raw,e.raw),this.reserve1.raw);r=M.lessThanOrEqual(o,a)?o:a}if(!M.greaterThan(r,le))throw new Le;return new At(this.liquidityToken,r)},t.getLiquidityValue=function(e,t,n,r,i){var o;if(void 0===r&&(r=!1),this.involvesToken(e)||E(!1),t.token.equals(this.liquidityToken)||E(!1),n.token.equals(this.liquidityToken)||E(!1),M.lessThanOrEqual(n.raw,t.raw)||E(!1),r){i||E(!1);var a=je(i);if(M.equal(a,le))o=t;else{var s=Be(M.multiply(this.reserve0.raw,this.reserve1.raw)),u=Be(a);if(M.greaterThan(s,u)){var l=M.multiply(t.raw,M.subtract(s,u)),c=M.add(M.multiply(s,he),u),f=M.divide(l,c);o=t.add(new At(this.liquidityToken,f))}else o=t}}else o=t;return new At(e,M.divide(M.multiply(n.raw,this.reserveOf(e).raw),o.raw))},we(e,[{key:"token0Price",get:function(){return new Ot(this.token0,this.token1,this.tokenAmounts[0].raw,this.tokenAmounts[1].raw)}},{key:"token1Price",get:function(){return new Ot(this.token1,this.token0,this.tokenAmounts[1].raw,this.tokenAmounts[0].raw)}},{key:"chainId",get:function(){return this.token0.chainId}},{key:"token0",get:function(){return this.tokenAmounts[0].token}},{key:"token1",get:function(){return this.tokenAmounts[1].token}},{key:"reserve0",get:function(){return this.tokenAmounts[0]}},{key:"reserve1",get:function(){return this.tokenAmounts[1]}}]),e}(),Pt=function(){function e(e,t,n){e.length>0||E(!1),e.every((function(t){return t.chainId===e[0].chainId}))||E(!1),t instanceof nt&&e[0].involvesToken(t)||t===tt&&e[0].involvesToken(at[e[0].chainId])||E(!1),void 0===n||n instanceof nt&&e[e.length-1].involvesToken(n)||n===tt&&e[e.length-1].involvesToken(at[e[0].chainId])||E(!1);for(var r,i=[t instanceof nt?t:at[e[0].chainId]],o=Ee(e.entries());!(r=o()).done;){var a=r.value,s=a[1],u=i[a[0]];u.equals(s.token0)||u.equals(s.token1)||E(!1);var l=u.equals(s.token0)?s.token1:s.token0;i.push(l)}this.pairs=e,this.path=i,this.midPrice=Ot.fromRoute(this),this.input=t,this.output=null!=n?n:i[i.length-1]}return we(e,[{key:"chainId",get:function(){return this.pairs[0].chainId}}]),e}(),It=new St(ge),Dt=function(e){function t(){return e.apply(this,arguments)||this}_e(t,e);var n=t.prototype;return n.toSignificant=function(e,t,n){return void 0===e&&(e=5),this.multiply(It).toSignificant(e,t,n)},n.toFixed=function(e,t,n){return void 0===e&&(e=2),this.multiply(It).toFixed(e,t,n)},t}(St);function Lt(e,t){return rt(e.inputAmount.currency,t.inputAmount.currency)||E(!1),rt(e.outputAmount.currency,t.outputAmount.currency)||E(!1),e.outputAmount.equalTo(t.outputAmount)?e.inputAmount.equalTo(t.inputAmount)?0:e.inputAmount.lessThan(t.inputAmount)?-1:1:e.outputAmount.lessThan(t.outputAmount)?1:-1}function Rt(e,t){var n=Lt(e,t);return 0!==n?n:e.priceImpact.lessThan(t.priceImpact)?-1:e.priceImpact.greaterThan(t.priceImpact)?1:e.route.path.length-t.route.path.length}function Nt(e,t){return e instanceof At?e:e.currency===tt?new At(at[t],e.raw):void E(!1)}function jt(e,t){return e instanceof nt?e:e===tt?at[t]:void E(!1)}var Bt=function(){function e(e,n,r){var i,o,a,s=new Array(e.path.length),u=new Array(e.pairs.length);if(r===t.TradeType.EXACT_INPUT){rt(n.currency,e.input)||E(!1),s[0]=Nt(n,e.chainId);for(var l=0;l<e.path.length-1;l++){var c=e.pairs[l].getOutputAmount(s[l]),f=c[1];s[l+1]=c[0],u[l]=f}}else{rt(n.currency,e.output)||E(!1),s[s.length-1]=Nt(n,e.chainId);for(var d=e.path.length-1;d>0;d--){var h=e.pairs[d-1].getInputAmount(s[d]),p=h[1];s[d-1]=h[0],u[d-1]=p}}this.route=e,this.tradeType=r,this.inputAmount=r===t.TradeType.EXACT_INPUT?n:e.input===tt?Ct.ether(s[0].raw):s[0],this.outputAmount=r===t.TradeType.EXACT_OUTPUT?n:e.output===tt?Ct.ether(s[s.length-1].raw):s[s.length-1],this.executionPrice=new Ot(this.inputAmount.currency,this.outputAmount.currency,this.inputAmount.raw,this.outputAmount.raw),this.nextMidPrice=Ot.fromRoute(new Pt(u,e.input)),this.priceImpact=(i=this.outputAmount,a=(o=e.midPrice.raw.multiply(this.inputAmount.raw)).subtract(i.raw).divide(o),new Dt(a.numerator,a.denominator))}e.exactIn=function(n,r){return new e(n,r,t.TradeType.EXACT_INPUT)},e.exactOut=function(n,r){return new e(n,r,t.TradeType.EXACT_OUTPUT)};var n=e.prototype;return n.minimumAmountOut=function(e){if(e.lessThan(le)&&E(!1),this.tradeType===t.TradeType.EXACT_OUTPUT)return this.outputAmount;var n=new St(ce).add(e).invert().multiply(this.outputAmount.raw).quotient;return this.outputAmount instanceof At?new At(this.outputAmount.token,n):Ct.ether(n)},n.maximumAmountIn=function(e){if(e.lessThan(le)&&E(!1),this.tradeType===t.TradeType.EXACT_INPUT)return this.inputAmount;var n=new St(ce).add(e).multiply(this.inputAmount.raw).quotient;return this.inputAmount instanceof At?new At(this.inputAmount.token,n):Ct.ether(n)},e.bestTradeExactIn=function(n,r,i,o,a,s,u){var l=void 0===o?{}:o,c=l.maxNumResults,f=void 0===c?3:c,d=l.maxHops,h=void 0===d?3:d;void 0===a&&(a=[]),void 0===s&&(s=r),void 0===u&&(u=[]),n.length>0||E(!1),h>0||E(!1),s===r||a.length>0||E(!1);var p=r instanceof At?r.token.chainId:i instanceof nt?i.chainId:void 0;void 0===p&&E(!1);for(var g=Nt(r,p),y=jt(i,p),v=0;v<n.length;v++){var m=n[v];if((m.token0.equals(g.token)||m.token1.equals(g.token))&&!m.reserve0.equalTo(le)&&!m.reserve1.equalTo(le)){var b=void 0;try{b=m.getOutputAmount(g)[0]}catch(e){if(e.isInsufficientInputAmountError)continue;throw e}if(b.token.equals(y))Fe(u,new e(new Pt([].concat(a,[m]),s.currency,i),s,t.TradeType.EXACT_INPUT),f,Rt);else if(h>1&&n.length>1){var w=n.slice(0,v).concat(n.slice(v+1,n.length));e.bestTradeExactIn(w,b,i,{maxNumResults:f,maxHops:h-1},[].concat(a,[m]),s,u)}}}return u},e.bestTradeExactOut=function(n,r,i,o,a,s,u){var l=void 0===o?{}:o,c=l.maxNumResults,f=void 0===c?3:c,d=l.maxHops,h=void 0===d?3:d;void 0===a&&(a=[]),void 0===s&&(s=i),void 0===u&&(u=[]),n.length>0||E(!1),h>0||E(!1),s===i||a.length>0||E(!1);var p=i instanceof At?i.token.chainId:r instanceof nt?r.chainId:void 0;void 0===p&&E(!1);for(var g=Nt(i,p),y=jt(r,p),v=0;v<n.length;v++){var m=n[v];if((m.token0.equals(g.token)||m.token1.equals(g.token))&&!m.reserve0.equalTo(le)&&!m.reserve1.equalTo(le)){var b=void 0;try{b=m.getInputAmount(g)[0]}catch(e){if(e.isInsufficientReservesError)continue;throw e}if(b.token.equals(y))Fe(u,new e(new Pt([m].concat(a),r,s.currency),s,t.TradeType.EXACT_OUTPUT),f,Rt);else if(h>1&&n.length>1){var w=n.slice(0,v).concat(n.slice(v+1,n.length));e.bestTradeExactOut(w,r,b,{maxNumResults:f,maxHops:h-1},[m].concat(a),s,u)}}}return u},e}();function Ft(e){return"0x"+e.raw.toString(16)}var zt,Vt=function(){function e(){}return e.swapCallParameters=function(e,n){var r=e.inputAmount.currency===tt,i=e.outputAmount.currency===tt;r&&i&&E(!1),!("ttl"in n)||n.ttl>0||E(!1);var o,a,s,u=Ne(n.recipient),l=Ft(e.maximumAmountIn(n.allowedSlippage)),c=Ft(e.minimumAmountOut(n.allowedSlippage)),f=e.route.path.map((function(e){return e.address})),d="ttl"in n?"0x"+(Math.floor((new Date).getTime()/1e3)+n.ttl).toString(16):"0x"+n.deadline.toString(16),h=Boolean(n.feeOnTransfer);switch(e.tradeType){case t.TradeType.EXACT_INPUT:r?(o=h?"swapExactETHForTokensSupportingFeeOnTransferTokens":"swapExactETHForTokens",a=[c,f,u,d],s=l):i?(o=h?"swapExactTokensForETHSupportingFeeOnTransferTokens":"swapExactTokensForETH",a=[l,c,f,u,d],s="0x0"):(o=h?"swapExactTokensForTokensSupportingFeeOnTransferTokens":"swapExactTokensForTokens",a=[l,c,f,u,d],s="0x0");break;case t.TradeType.EXACT_OUTPUT:h&&E(!1),r?(o="swapETHForExactTokens",a=[c,f,u,d],s=l):i?(o="swapTokensForExactETH",a=[c,l,f,u,d],s="0x0"):(o="swapTokensForExactTokens",a=[c,l,f,u,d],s="0x0")}return{methodName:o,args:a,value:s}},e}(),Ht=[{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}],Ut=((zt={})[t.ChainId.MAINNET]={"0xE0B7927c4aF23765Cb51314A0E0521A9645F0E2A":9},zt),Gt=function(){function e(){}return e.fetchTokenData=function(e,t,n,r,i){try{var o,a,s=function(n){return new nt(e,t,n,r,i)};void 0===n&&(n=B.getDefaultProvider(j.getNetwork(e)));var u="number"==typeof(null===(o=Ut)||void 0===o||null===(a=o[e])||void 0===a?void 0:a[t]);return Promise.resolve(u?s(Ut[e][t]):Promise.resolve(new N.Contract(t,Ht,n).decimals().then((function(n){var r,i,o;return Ut=xe({},Ut,((o={})[e]=xe({},null===(r=Ut)||void 0===r?void 0:r[e],((i={})[t]=n,i)),o)),n}))).then(s))}catch(e){return Promise.reject(e)}},e.fetchPairData=function(e,t,n){try{void 0===n&&(n=B.getDefaultProvider(j.getNetwork(e.chainId))),e.chainId!==t.chainId&&E(!1);var r=Et.getAddress(e,t);return Promise.resolve(new N.Contract(r,F.abi,n).getReserves()).then((function(n){var r=n[0],i=n[1],o=e.sortsBefore(t)?[r,i]:[i,r];return new Et(new At(e,o[0]),new At(t,o[1]))}))}catch(e){return Promise.reject(e)}},e}();t.JSBI=M,t.ALPACA=dt,t.BAR_ADDRESS=oe,t.BTCB=ht,t.BUNNY=pt,t.CC=st,t.CCV=mt,t.COIN_LIST=bt,t.Cake=gt,t.Currency=ze,t.CurrencyAmount=Ct,t.ETHER=tt,t.FACTORY_ADDRESS=H,t.FIVE=he,t.Fetcher=Gt,t.Fraction=St,t.INIT_CODE_HASH=V,t.InsufficientInputAmountError=Le,t.InsufficientReservesError=De,t.MAKER_ADDRESS=se,t.MASK=lt,t.MASTERCHEF_ADDRESS=G,t.MINIMUM_LIQUIDITY=ue,t.ONE=ce,t.Pair=Et,t.Percent=Dt,t.Price=Ot,t.ROUTER_ADDRESS=U,t.Route=Pt,t.Router=Vt,t.SNX=ct,t.SOLIDITY_TYPE_MAXIMA=me,t.STAKELIST=te,t.SUSHI_ADDRESS=ie,t.TEN=pe,t.THREE=de,t.TIMELOCK_ADDRESS=ae,t.TWO=fe,t.Token=nt,t.TokenAmount=At,t.Trade=Bt,t.UNI=ft,t.USDT=ut,t.WETH=at,t.XVS=vt,t.ZERO=le,t._100=ge,t._1000=ve,t._997=ye,t.boostingchef_abi=[{inputs:[{internalType:"contract ICC",name:"_cc",type:"address"},{internalType:"contract IERC20",name:"_boostToken",type:"address"},{internalType:"uint256",name:"_ccPerBlock",type:"uint256"},{internalType:"uint256",name:"_startBlock",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"pid",type:"uint256"},{indexed:!1,internalType:"uint256",name:"lpAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"boostAmount",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"pid",type:"uint256"},{indexed:!1,internalType:"uint256",name:"lpAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"boostAmount",type:"uint256"}],name:"EmergencyWithdraw",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"pid",type:"uint256"},{indexed:!1,internalType:"uint256",name:"lpAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"boostAmount",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[],name:"EPS",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_allocPoint",type:"uint256"},{internalType:"uint256",name:"_boostRate",type:"uint256"},{internalType:"contract IERC20",name:"_lpToken",type:"address"},{internalType:"bool",name:"_withUpdate",type:"bool"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"boostToken",outputs:[{internalType:"contract IERC20",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"boostRate",type:"uint256"},{internalType:"uint256",name:"lpAmount",type:"uint256"},{internalType:"uint256",name:"boostAmount",type:"uint256"}],name:"calculateShare",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"cc",outputs:[{internalType:"contract ICC",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"ccPerBlock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_pid",type:"uint256"},{internalType:"uint256",name:"_lpAmount",type:"uint256"},{internalType:"uint256",name:"_boostAmount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_pid",type:"uint256"}],name:"emergencyWithdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_from",type:"uint256"},{internalType:"uint256",name:"_to",type:"uint256"}],name:"getMultiplier",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"massUpdatePools",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxBoostRate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_pid",type:"uint256"},{internalType:"address",name:"_user",type:"address"}],name:"pendingCC",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"poolInfo",outputs:[{internalType:"contract IERC20",name:"lpToken",type:"address"},{internalType:"uint256",name:"allocPoint",type:"uint256"},{internalType:"uint256",name:"boostRate",type:"uint256"},{internalType:"uint256",name:"lastRewardBlock",type:"uint256"},{internalType:"uint256",name:"accCCPerShare",type:"uint256"},{internalType:"uint256",name:"totalLPAmount",type:"uint256"},{internalType:"uint256",name:"totalShare",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"poolLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxyAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_pid",type:"uint256"},{internalType:"uint256",name:"_lpAmount",type:"uint256"},{internalType:"uint256",name:"_boostAmount",type:"uint256"},{internalType:"address",name:"userAddress",type:"address"}],name:"proxyDeposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_pid",type:"uint256"},{internalType:"uint256",name:"_lpAmount",type:"uint256"},{internalType:"address",name:"userAddress",type:"address"}],name:"proxyUnlock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_pid",type:"uint256"},{internalType:"uint256",name:"_allocPoint",type:"uint256"},{internalType:"uint256",name:"_boostRate",type:"uint256"},{internalType:"bool",name:"_withUpdate",type:"bool"}],name:"set",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_pid",type:"uint256"},{internalType:"uint256",name:"_boostRate",type:"uint256"}],name:"setBoostRate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_ccPerBlock",type:"uint256"}],name:"setCCPerBlock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxBoostRate",type:"uint256"}],name:"setMaxBoostRate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"setPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_proxyAddress",type:"address"}],name:"setProxyAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setSetter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"setter",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"startBlock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalAllocPoint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_pid",type:"uint256"}],name:"updatePool",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"userInfo",outputs:[{internalType:"uint256",name:"lpAmount",type:"uint256"},{internalType:"uint256",name:"proxyLPAmount",type:"uint256"},{internalType:"uint256",name:"boostAmount",type:"uint256"},{internalType:"uint256",name:"share",type:"uint256"},{internalType:"uint256",name:"rewardDebt",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_pid",type:"uint256"},{internalType:"uint256",name:"_lpAmount",type:"uint256"},{internalType:"uint256",name:"_boostAmount",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"}],t.boostingchef_address=$,t.ccv_abi=[{inputs:[{internalType:"uint256",name:"_maxSupply",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"_addMinter",type:"address"}],name:"addMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"_ccvSpenders",type:"address[]"},{internalType:"uint256[]",name:"_ccvAmounts",type:"uint256[]"}],name:"batchApprove",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_delMinter",type:"address"}],name:"delMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getMinter",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMinterLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"isMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mint",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],t.ccv_batch_approve_abi=[{inputs:[{internalType:"address",name:"_ccv",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{internalType:"address[]",name:"_ccvSpenders",type:"address[]"},{internalType:"uint256[]",name:"_ccvAmounts",type:"uint256[]"}],name:"Approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"SetCcv",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"ccv",outputs:[{internalType:"contract ICCV",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],t.ccv_batch_approve_address=ee,t.claimTool_address=J,t.currencyEquals=rt,t.escrow_abi=[{inputs:[{internalType:"contract IERC20",name:"_cc",type:"address"},{internalType:"contract ICCV",name:"_ccv",type:"address"},{internalType:"contract IBoostingChef",name:"_chef",type:"address"},{internalType:"uint256",name:"_ccPID",type:"uint256"},{internalType:"uint256",name:"_minLockPeriod",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"uint256",name:"ccAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"ccvAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"startTime",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTime",type:"uint256"}],name:"Lock",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"}],name:"UnLock",type:"event"},{inputs:[],name:"MAX_RATE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ccAmount",type:"uint256"},{internalType:"uint256",name:"lockPeriod",type:"uint256"}],name:"calculateCCV",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"cc",outputs:[{internalType:"contract IERC20",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"ccPID",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"ccv",outputs:[{internalType:"contract ICCV",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"chef",outputs:[{internalType:"contract IBoostingChef",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ccAmount",type:"uint256"},{internalType:"uint256",name:"lockPeriod",type:"uint256"}],name:"lock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"lockLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxLockPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"minLockPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_ccPID",type:"uint256"}],name:"setCCPID",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IBoostingChef",name:"_chef",type:"address"}],name:"setChef",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxLockPeriod",type:"uint256"}],name:"setMaxLockPeriod",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_minLockPeriod",type:"uint256"}],name:"setMinLockPeriod",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"unlock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"userLockRecord",outputs:[{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"ccAmount",type:"uint256"},{internalType:"uint256",name:"ccvAmount",type:"uint256"},{internalType:"bool",name:"isLock",type:"bool"}],stateMutability:"view",type:"function"}],t.escrow_address=Q,t.inputOutputComparator=Lt,t.lottery_address=W,t.lowb=yt,t.networkUrl=ne,t.repurchase_abi=[{inputs:[{internalType:"address",name:"_targetToken",type:"address"},{internalType:"address",name:"_lotteryAddress",type:"address"},{internalType:"address",name:"_swapMiningAddress",type:"address"},{internalType:"address",name:"_destroyAddress",type:"address"},{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_emergencyAddress",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"pair",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"EmergencyWithdraw",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"lotteryAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"swapMiningAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"destroyAmount",type:"uint256"}],name:"Spend",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tokenIn",type:"address"},{indexed:!1,internalType:"address",name:"tokenOut",type:"address"},{indexed:!1,internalType:"uint256",name:"amountIn",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amountOut",type:"uint256"}],name:"Swap",type:"event"},{inputs:[{internalType:"address",name:"_caller",type:"address"}],name:"addCaller",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_addToken",type:"address"}],name:"addIntermediator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"address",name:"token",type:"address"}],name:"autoSwap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pair",type:"address"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_delCaller",type:"address"}],name:"delCaller",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_delToken",type:"address"}],name:"delIntermediator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"destroyAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"destroyAllocPoint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"emergencyAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"emergencyWithdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getCaller",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCallerLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getIntermediator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIntermediatorLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_caller",type:"address"}],name:"isCaller",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"isIntermediator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"lotteryAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"lotteryAllocPoint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"pairs",type:"address[]"}],name:"multiBurn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"pairs",type:"address[]"}],name:"pack",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pair",type:"address"}],name:"purchase",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setDestroyAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_destroyAllocPoint",type:"uint256"}],name:"setDestroyAllocPoint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setEmergencyAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setFactory",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setLotteryAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_lotteryAllocPoint",type:"uint256"}],name:"setLotteryAllocPoint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setSwapMiningAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_swapMiningAllocPoint",type:"uint256"}],name:"setSwapMiningAllocPoint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_targetToken",type:"address"}],name:"setTargetToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"}],name:"swap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"swapMiningAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"swapMiningAllocPoint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"targetToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"toSpender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalAllocPoint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pair",type:"address"}],name:"updatePurchase",outputs:[],stateMutability:"nonpayable",type:"function"}],t.repurchase_address=X,t.swapMining_address=Z,t.tradeComparator=Rt,t.tradeMining_address=K,t.updater_abi=[{inputs:[{internalType:"address",name:"_volumeBook",type:"address"},{internalType:"address",name:"_repurchase",type:"address"},{internalType:"address",name:"_lottery",type:"address"},{internalType:"address",name:"_oracle",type:"address"},{internalType:"address",name:"_admin",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"drawLottery",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"forceUpdate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"lottery",outputs:[{internalType:"contract ILottery",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"oracle",outputs:[{internalType:"contract IOracle",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"repurchase",outputs:[{internalType:"contract IRepurchase",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setLottery",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setOracle",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setRepurchase",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setVolumeBook",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"update",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"updateOracle",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"updateWithoutMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"volumeBook",outputs:[{internalType:"contract IVolumeBook",name:"",type:"address"}],stateMutability:"view",type:"function"}],t.updater_address=Y,t.volumeBook_abi=[{inputs:[{internalType:"address",name:"_router",type:"address"},{internalType:"address",name:"_oracle",type:"address"},{internalType:"address",name:"_anchorToken",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"uint256",name:"cyleNum",type:"uint256"},{indexed:!1,internalType:"uint256",name:"volume",type:"uint256"}],name:"AddVolume",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"PERIOD",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"addCycleNum",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_addToken",type:"address"}],name:"addIntermediator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"address",name:"input",type:"address"},{internalType:"address",name:"output",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"addVolume",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_addToken",type:"address"}],name:"addWhitelist",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"anchorToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"canUpdate",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"currentCycleNum",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"cycleTotalTradeVolume",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"cycleUserTradeVolume",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_delToken",type:"address"}],name:"delIntermediator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_delToken",type:"address"}],name:"delWhitelist",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getIntermediator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIntermediatorLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"outputToken",type:"address"},{internalType:"uint256",name:"outputAmount",type:"uint256"}],name:"getQuantity",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"cycleNum",type:"uint256"}],name:"getTotalTradeVolume",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"uint256",name:"cycleNum",type:"uint256"}],name:"getUserVolume",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getWhitelist",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getWhitelistLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"isIntermediator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"isWhitelist",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"lastUpdateTime",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"lottery",outputs:[{internalType:"contract ILottery",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"oracle",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"router",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setAnchorToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setLottery",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setOracle",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setRouter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAddress",type:"address"}],name:"setUpdater",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"updater",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],t.volumeBook_address=q,t.wssUrl=re},function(e,t,n){e.exports=function(){"use strict";var e=Math.imul,t=Math.clz32;function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){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(e){return!1}}function l(){return(l=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&s(i,n.prototype),i}).apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){function n(){return l(e,arguments,a(this).constructor)}if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof t){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)})(e)}function f(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){var t=u();return function(){var n,r=a(e);if(t){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var g=function(e){var t=Math.abs,r=Math.max;function a(e,t){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),e>a.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return(n=s.call(this,e)).sign=t,n}o(a,e);var s=d(a);return i(a,[{key:"toDebugString",value:function(){var e,t=["BigInt["],n=p(this);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push((r?(r>>>0).toString(16):r)+", ")}}catch(e){n.e(e)}finally{n.f()}return t.push("]"),t.join("")}},{key:"toString",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?a.__toStringBasePowerOfTwo(this,e):a.__toStringGeneric(this,e,!1)}},{key:"__copy",value:function(){for(var e=new a(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:"__trim",value:function(){for(var e=this.length,t=this[e-1];0===t;)t=this[--e-1],this.pop();return 0===e&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var e=0;e<this.length;e++)this[e]=0}},{key:"__clzmsd",value:function(){return a.__clz32(this[this.length-1])}},{key:"__inplaceMultiplyAdd",value:function(e,t,n){n>this.length&&(n=this.length);for(var r=65535&e,i=e>>>16,o=0,s=65535&t,u=t>>>16,l=0;l<n;l++){var c=this.__digit(l),f=65535&c,d=c>>>16,h=a.__imul(f,r),p=a.__imul(f,i),g=a.__imul(d,r),y=a.__imul(d,i),v=s+(65535&h),m=u+o+(v>>>16)+(h>>>16)+(65535&p)+(65535&g);o=(s=(p>>>16)+(g>>>16)+(65535&y)+(m>>>16))>>>16,s&=65535,u=y>>>16,this.__setDigit(l,65535&v|m<<16)}if(0!==o||0!==s||0!==u)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,n){for(var r,i=0,o=0;o<n;o++)i=(r=this.__halfDigit(t+o)+e.__halfDigit(o)+i)>>>16,this.__setHalfDigit(t+o,r);return i}},{key:"__inplaceSub",value:function(e,t,n){var r=0;if(1&t){t>>=1;for(var i=this.__digit(t),o=65535&i,a=0;a<n-1>>>1;a++){var s=e.__digit(a),u=(i>>>16)-(65535&s)-r;r=1&u>>>16,this.__setDigit(t+a,u<<16|65535&o),r=1&(o=(65535&(i=this.__digit(t+a+1)))-(s>>>16)-r)>>>16}var l=e.__digit(a),c=(i>>>16)-(65535&l)-r;if(r=1&c>>>16,this.__setDigit(t+a,c<<16|65535&o),t+a+1>=this.length)throw new RangeError("out of bounds");0==(1&n)&&(r=1&(o=(65535&(i=this.__digit(t+a+1)))-(l>>>16)-r)>>>16,this.__setDigit(t+e.length,4294901760&i|65535&o))}else{t>>=1;for(var f=0;f<e.length-1;f++){var d=this.__digit(t+f),h=e.__digit(f),p=(65535&d)-(65535&h)-r,g=(d>>>16)-(h>>>16)-(r=1&p>>>16);r=1&g>>>16,this.__setDigit(t+f,g<<16|65535&p)}var y=this.__digit(t+f),v=e.__digit(f),m=(65535&y)-(65535&v)-r;r=1&m>>>16;var b=0;0==(1&n)&&(r=1&(b=(y>>>16)-(v>>>16)-r)>>>16),this.__setDigit(t+f,b<<16|65535&m)}return r}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t,n=this.__digit(0)>>>e,r=this.length-1,i=0;i<r;i++)t=this.__digit(i+1),this.__setDigit(i,t<<32-e|n),n=t>>>e;this.__setDigit(r,n)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return 65535>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 65535&this[e>>>1]>>>((1&e)<<4)}},{key:"__setHalfDigit",value:function(e,t){var n=e>>>1,r=this.__digit(n),i=1&e?65535&r|t<<16:4294901760&r|65535&t;this.__setDigit(n,i)}}],[{key:"BigInt",value:function(e){var t=Math.floor,r=Number.isFinite;if("number"==typeof e){if(0===e)return a.__zero();if((0|e)===e)return 0>e?a.__oneDigit(-e,!0):a.__oneDigit(e,!1);if(!r(e)||t(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return a.__fromDouble(e)}if("string"==typeof e){var i=a.__fromString(e);if(null===i)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return i}if("boolean"==typeof e)return!0===e?a.__oneDigit(1,!1):a.__zero();if("object"===n(e)){if(e.constructor===a)return e;var o=a.__toPrimitive(e);return a.BigInt(o)}throw new TypeError("Cannot convert "+e+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var n=e.__unsignedDigit(0);return e.sign?-n:n}var r=e.__digit(t-1),i=a.__clz32(r),o=32*t-i;if(1024<o)return e.sign?-1/0:1/0;var s=o-1,u=r,l=t-1,c=i+1,f=32===c?0:u<<c;f>>>=12;var d=c-12,h=12<=c?0:u<<20+c,p=20+c;0<d&&0<l&&(l--,f|=(u=e.__digit(l))>>>32-d,h=u<<d,p=d),0<p&&0<l&&(l--,h|=(u=e.__digit(l))>>>32-p,p-=32);var g=a.__decideRounding(e,p,l,u);if((1===g||0===g&&1==(1&h))&&0===(h=h+1>>>0)&&0!=++f>>>20&&(f=0,1023<++s))return e.sign?-1/0:1/0;var y=e.sign?-2147483648:0;return s=s+1023<<20,a.__kBitConversionInts[1]=y|s|f,a.__kBitConversionInts[0]=h,a.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?a.__absoluteSubOne(e).__trim():a.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return a.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?a.unaryMinus(e):e;if(1<t.length)throw new RangeError("BigInt too big");var n=t.__unsignedDigit(0);if(1===n)return e;if(n>=a.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var r=1+(n>>>5),i=new a(r,e.sign&&0!=(1&n));i.__initializeDigits();var o=1<<(31&n);return i.__setDigit(r-1,o),i}var s=null,u=e;for(0!=(1&n)&&(s=e),n>>=1;0!==n;n>>=1)u=a.multiply(u,u),0!=(1&n)&&(s=null===s?u:a.multiply(s,u));return s}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var n=e.length+t.length;32<=e.__clzmsd()+t.__clzmsd()&&n--;var r=new a(n,e.sign!==t.sign);r.__initializeDigits();for(var i=0;i<e.length;i++)a.__multiplyAccumulate(t,e.__digit(i),r,i);return r.__trim()}},{key:"divide",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>a.__absoluteCompare(e,t))return a.__zero();var n,r=e.sign!==t.sign,i=t.__unsignedDigit(0);if(1===t.length&&65535>=i){if(1===i)return r===e.sign?e:a.unaryMinus(e);n=a.__absoluteDivSmall(e,i,null)}else n=a.__absoluteDivLarge(e,t,!0,!1);return n.sign=r,n.__trim()}},{key:"remainder",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>a.__absoluteCompare(e,t))return e;var n=t.__unsignedDigit(0);if(1===t.length&&65535>=n){if(1===n)return a.__zero();var r=a.__absoluteModSmall(e,n);return 0===r?a.__zero():a.__oneDigit(r,e.sign)}var i=a.__absoluteDivLarge(e,t,!1,!0);return i.sign=e.sign,i.__trim()}},{key:"add",value:function(e,t){var n=e.sign;return n===t.sign?a.__absoluteAdd(e,t,n):0<=a.__absoluteCompare(e,t)?a.__absoluteSub(e,t,n):a.__absoluteSub(t,e,!n)}},{key:"subtract",value:function(e,t){var n=e.sign;return n===t.sign?0<=a.__absoluteCompare(e,t)?a.__absoluteSub(e,t,n):a.__absoluteSub(t,e,!n):a.__absoluteAdd(e,t,n)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?a.__rightShiftByAbsolute(e,t):a.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?a.__leftShiftByAbsolute(e,t):a.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return 0>a.__compareToBigInt(e,t)}},{key:"lessThanOrEqual",value:function(e,t){return 0>=a.__compareToBigInt(e,t)}},{key:"greaterThan",value:function(e,t){return 0<a.__compareToBigInt(e,t)}},{key:"greaterThanOrEqual",value:function(e,t){return 0<=a.__compareToBigInt(e,t)}},{key:"equal",value:function(e,t){if(e.sign!==t.sign)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e.__digit(n)!==t.__digit(n))return!1;return!0}},{key:"notEqual",value:function(e,t){return!a.equal(e,t)}},{key:"bitwiseAnd",value:function(e,t){if(!e.sign&&!t.sign)return a.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var n=r(e.length,t.length)+1,i=a.__absoluteSubOne(e,n),o=a.__absoluteSubOne(t);return i=a.__absoluteOr(i,o,i),a.__absoluteAddOne(i,!0,i).__trim()}if(e.sign){var s=[t,e];e=s[0],t=s[1]}return a.__absoluteAndNot(e,a.__absoluteSubOne(t)).__trim()}},{key:"bitwiseXor",value:function(e,t){if(!e.sign&&!t.sign)return a.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var n=r(e.length,t.length),i=a.__absoluteSubOne(e,n),o=a.__absoluteSubOne(t);return a.__absoluteXor(i,o,i).__trim()}var s=r(e.length,t.length)+1;if(e.sign){var u=[t,e];e=u[0],t=u[1]}var l=a.__absoluteSubOne(t,s);return l=a.__absoluteXor(l,e,l),a.__absoluteAddOne(l,!0,l).__trim()}},{key:"bitwiseOr",value:function(e,t){var n=r(e.length,t.length);if(!e.sign&&!t.sign)return a.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var i=a.__absoluteSubOne(e,n),o=a.__absoluteSubOne(t);return i=a.__absoluteAnd(i,o,i),a.__absoluteAddOne(i,!0,i).__trim()}if(e.sign){var s=[t,e];e=s[0],t=s[1]}var u=a.__absoluteSubOne(t,n);return u=a.__absoluteAndNot(u,e,u),a.__absoluteAddOne(u,!0,u).__trim()}},{key:"asIntN",value:function(e,t){if(0===t.length)return t;if(0===e)return a.__zero();if(e>=a.__kMaxLengthBits)return t;var n=e+31>>>5;if(t.length<n)return t;var r=t.__unsignedDigit(n-1),i=1<<(31&e-1);if(t.length===n&&r<i)return t;if((r&i)!==i)return a.__truncateToNBits(e,t);if(!t.sign)return a.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(r&i-1)){for(var o=n-2;0<=o;o--)if(0!==t.__digit(o))return a.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===n&&r===i?t:a.__truncateToNBits(e,t)}return a.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:"asUintN",value:function(e,t){if(0===t.length)return t;if(0===e)return a.__zero();if(t.sign){if(e>a.__kMaxLengthBits)throw new RangeError("BigInt too big");return a.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=a.__kMaxLengthBits)return t;var n=e+31>>>5;if(t.length<n)return t;var r=31&e;if(t.length==n){if(0===r)return t;if(0==t.__digit(n-1)>>>r)return t}return a.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=a.__toPrimitive(e),t=a.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=a.__toNumeric(e),t=a.__toNumeric(t),a.__isBigInt(e)&&a.__isBigInt(t))return a.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return a.__compare(e,t,0)}},{key:"LE",value:function(e,t){return a.__compare(e,t,1)}},{key:"GT",value:function(e,t){return a.__compare(e,t,2)}},{key:"GE",value:function(e,t){return a.__compare(e,t,3)}},{key:"EQ",value:function(e,t){for(;;){if(a.__isBigInt(e))return a.__isBigInt(t)?a.equal(e,t):a.EQ(t,e);if("number"==typeof e){if(a.__isBigInt(t))return a.__equalToNumber(t,e);if("object"!==n(t))return e==t;t=a.__toPrimitive(t)}else if("string"==typeof e){if(a.__isBigInt(t))return null!==(e=a.__fromString(e))&&a.equal(e,t);if("object"!==n(t))return e==t;t=a.__toPrimitive(t)}else if("boolean"==typeof e){if(a.__isBigInt(t))return a.__equalToNumber(t,+e);if("object"!==n(t))return e==t;t=a.__toPrimitive(t)}else if("symbol"===n(e)){if(a.__isBigInt(t))return!1;if("object"!==n(t))return e==t;t=a.__toPrimitive(t)}else{if("object"!==n(e))return e==t;if("object"===n(t)&&t.constructor!==a)return e==t;e=a.__toPrimitive(e)}}}},{key:"NE",value:function(e,t){return!a.EQ(e,t)}},{key:"__zero",value:function(){return new a(0,!1)}},{key:"__oneDigit",value:function(e,t){var n=new a(1,t);return n.__setDigit(0,e),n}},{key:"__decideRounding",value:function(e,t,n,r){if(0<t)return-1;var i;if(0>t)i=-t-1;else{if(0===n)return-1;n--,r=e.__digit(n),i=31}var o=1<<i;if(0==(r&o))return-1;if(0!=(r&(o-=1)))return 1;for(;0<n;)if(n--,0!==e.__digit(n))return 1;return 0}},{key:"__fromDouble",value:function(e){a.__kBitConversionDouble[0]=e;var t,n=(2047&a.__kBitConversionInts[1]>>>20)-1023,r=1+(n>>>5),i=new a(r,0>e),o=1048575&a.__kBitConversionInts[1]|1048576,s=a.__kBitConversionInts[0],u=31&n,l=0;if(u<20){var c=20-u;l=c+32,t=o>>>c,o=o<<32-c|s>>>c,s<<=32-c}else if(20===u)l=32,t=o,o=s;else{var f=u-20;l=32-f,t=o<<f|s>>>32-f,o=s<<f}i.__setDigit(r-1,t);for(var d=r-2;0<=d;d--)0<l?(l-=32,t=o,o=s):t=0,i.__setDigit(d,t);return i.__trim()}},{key:"__isWhitespace",value:function(e){return!!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?10>=(e&=131071)||40==e||41==e||47==e||95==e||4096==e:65279==e)}},{key:"__fromString",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=0,r=e.length,i=0;if(i===r)return a.__zero();for(var o=e.charCodeAt(i);a.__isWhitespace(o);){if(++i===r)return a.__zero();o=e.charCodeAt(i)}if(43===o){if(++i===r)return null;o=e.charCodeAt(i),n=1}else if(45===o){if(++i===r)return null;o=e.charCodeAt(i),n=-1}if(0===t){if(t=10,48===o){if(++i===r)return a.__zero();if(88===(o=e.charCodeAt(i))||120===o){if(t=16,++i===r)return null;o=e.charCodeAt(i)}else if(79===o||111===o){if(t=8,++i===r)return null;o=e.charCodeAt(i)}else if(66===o||98===o){if(t=2,++i===r)return null;o=e.charCodeAt(i)}}}else if(16===t&&48===o){if(++i===r)return a.__zero();if(88===(o=e.charCodeAt(i))||120===o){if(++i===r)return null;o=e.charCodeAt(i)}}for(;48===o;){if(++i===r)return a.__zero();o=e.charCodeAt(i)}var s=r-i,u=a.__kMaxBitsPerChar[t],l=a.__kBitsPerCharTableMultiplier-1;if(s>1073741824/u)return null;var c=u*s+l>>>a.__kBitsPerCharTableShift,f=new a(c+31>>>5,!1),d=10>t?t:10,h=10<t?t-10:0;if(0==(t&t-1)){u>>=a.__kBitsPerCharTableShift;var p=[],g=[],y=!1;do{for(var v,m=0,b=0;;){if(v=void 0,o-48>>>0<d)v=o-48;else{if(!((32|o)-97>>>0<h)){y=!0;break}v=(32|o)-87}if(b+=u,m=m<<u|v,++i===r){y=!0;break}if(o=e.charCodeAt(i),32<b+u)break}p.push(m),g.push(b)}while(!y);a.__fillFromParts(f,p,g)}else{f.__initializeDigits();var w=!1,x=0;do{for(var _,k=0,S=1;;){if(_=void 0,o-48>>>0<d)_=o-48;else{if(!((32|o)-97>>>0<h)){w=!0;break}_=(32|o)-87}var T=S*t;if(4294967295<T)break;if(S=T,k=k*t+_,x++,++i===r){w=!0;break}o=e.charCodeAt(i)}var C=u*x+(l=32*a.__kBitsPerCharTableMultiplier-1)>>>a.__kBitsPerCharTableShift+5;f.__inplaceMultiplyAdd(S,k,C)}while(!w)}if(i!==r){if(!a.__isWhitespace(o))return null;for(i++;i<r;i++)if(o=e.charCodeAt(i),!a.__isWhitespace(o))return null}return 0!==n&&10!==t?null:(f.sign=-1===n,f.__trim())}},{key:"__fillFromParts",value:function(e,t,n){for(var r=0,i=0,o=0,a=t.length-1;0<=a;a--){var s=t[a],u=n[a];i|=s<<o,32===(o+=u)?(e.__setDigit(r++,i),o=0,i=0):32<o&&(e.__setDigit(r++,i),i=s>>>u-(o-=32))}if(0!==i){if(r>=e.length)throw new Error("implementation bug");e.__setDigit(r++,i)}for(;r<e.length;r++)e.__setDigit(r,0)}},{key:"__toStringBasePowerOfTwo",value:function(e,t){var n=e.length,r=t-1,i=r=(15&(r=(51&(r=(85&r>>>1)+(85&r))>>>2)+(51&r))>>>4)+(15&r),o=t-1,s=e.__digit(n-1),u=0|(32*n-a.__clz32(s)+i-1)/i;if(e.sign&&u++,268435456<u)throw new Error("string too long");for(var l=Array(u),c=u-1,f=0,d=0,h=0;h<n-1;h++){var p=e.__digit(h),g=(f|p<<d)&o;l[c--]=a.__kConversionChars[g];var y=i-d;for(f=p>>>y,d=32-y;d>=i;)l[c--]=a.__kConversionChars[f&o],f>>>=i,d-=i}var v=(f|s<<d)&o;for(l[c--]=a.__kConversionChars[v],f=s>>>i-d;0!==f;)l[c--]=a.__kConversionChars[f&o],f>>>=i;if(e.sign&&(l[c--]="-"),-1!==c)throw new Error("implementation bug");return l.join("")}},{key:"__toStringGeneric",value:function(e,t,n){var r=e.length;if(0===r)return"";if(1===r){var i=e.__unsignedDigit(0).toString(t);return!1===n&&e.sign&&(i="-"+i),i}var o,s,u=32*r-a.__clz32(e.__digit(r-1)),l=a.__kMaxBitsPerChar[t]-1,c=u*a.__kBitsPerCharTableMultiplier,f=1+(c=0|(c+=l-1)/l)>>1,d=a.exponentiate(a.__oneDigit(t,!1),a.__oneDigit(f,!1)),h=d.__unsignedDigit(0);if(1===d.length&&65535>=h){(o=new a(e.length,!1)).__initializeDigits();for(var p,g=0,y=2*e.length-1;0<=y;y--)p=g<<16|e.__halfDigit(y),o.__setHalfDigit(y,0|p/h),g=0|p%h;s=g.toString(t)}else{var v=a.__absoluteDivLarge(e,d,!0,!0);o=v.quotient;var m=v.remainder.__trim();s=a.__toStringGeneric(m,t,!0)}o.__trim();for(var b=a.__toStringGeneric(o,t,!0);s.length<f;)s="0"+s;return!1===n&&e.sign&&(b="-"+b),b+s}},{key:"__unequalSign",value:function(e){return e?-1:1}},{key:"__absoluteGreater",value:function(e){return e?-1:1}},{key:"__absoluteLess",value:function(e){return e?1:-1}},{key:"__compareToBigInt",value:function(e,t){var n=e.sign;if(n!==t.sign)return a.__unequalSign(n);var r=a.__absoluteCompare(e,t);return 0<r?a.__absoluteGreater(n):0>r?a.__absoluteLess(n):0}},{key:"__compareToNumber",value:function(e,n){if(!0|n){var r=e.sign,i=0>n;if(r!==i)return a.__unequalSign(r);if(0===e.length){if(i)throw new Error("implementation bug");return 0===n?0:-1}if(1<e.length)return a.__absoluteGreater(r);var o=t(n),s=e.__unsignedDigit(0);return s>o?a.__absoluteGreater(r):s<o?a.__absoluteLess(r):0}return a.__compareToDouble(e,n)}},{key:"__compareToDouble",value:function(e,t){if(t!==t)return t;if(t===1/0)return-1;if(t===-1/0)return 1;var n=e.sign;if(n!==0>t)return a.__unequalSign(n);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;a.__kBitConversionDouble[0]=t;var r=2047&a.__kBitConversionInts[1]>>>20;if(2047==r)throw new Error("implementation bug: handled elsewhere");var i=r-1023;if(0>i)return a.__absoluteGreater(n);var o=e.length,s=e.__digit(o-1),u=a.__clz32(s),l=32*o-u,c=i+1;if(l<c)return a.__absoluteLess(n);if(l>c)return a.__absoluteGreater(n);var f=1048576|1048575&a.__kBitConversionInts[1],d=a.__kBitConversionInts[0],h=31-u;if(h!==(l-1)%31)throw new Error("implementation bug");var p,g=0;if(h<20){var y=20-h;g=y+32,p=f>>>y,f=f<<32-y|d>>>y,d<<=32-y}else if(20===h)g=32,p=f,f=d;else{var v=h-20;g=32-v,p=f<<v|d>>>32-v,f=d<<v}if((s>>>=0)>(p>>>=0))return a.__absoluteGreater(n);if(s<p)return a.__absoluteLess(n);for(var m=o-2;0<=m;m--){0<g?(g-=32,p=f>>>0,f=d,d=0):p=0;var b=e.__unsignedDigit(m);if(b>p)return a.__absoluteGreater(n);if(b<p)return a.__absoluteLess(n)}if(0!==f||0!==d){if(0===g)throw new Error("implementation bug");return a.__absoluteLess(n)}return 0}},{key:"__equalToNumber",value:function(e,n){return n|0===n?0===n?0===e.length:1===e.length&&e.sign===0>n&&e.__unsignedDigit(0)===t(n):0===a.__compareToDouble(e,n)}},{key:"__comparisonResultToBool",value:function(e,t){switch(t){case 0:return 0>e;case 1:return 0>=e;case 2:return 0<e;case 3:return 0<=e}throw new Error("unreachable")}},{key:"__compare",value:function(e,t,n){if(e=a.__toPrimitive(e),t=a.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(n){case 0:return e<t;case 1:return e<=t;case 2:return e>t;case 3:return e>=t}if(a.__isBigInt(e)&&"string"==typeof t)return null!==(t=a.__fromString(t))&&a.__comparisonResultToBool(a.__compareToBigInt(e,t),n);if("string"==typeof e&&a.__isBigInt(t))return null!==(e=a.__fromString(e))&&a.__comparisonResultToBool(a.__compareToBigInt(e,t),n);if(e=a.__toNumeric(e),t=a.__toNumeric(t),a.__isBigInt(e)){if(a.__isBigInt(t))return a.__comparisonResultToBool(a.__compareToBigInt(e,t),n);if("number"!=typeof t)throw new Error("implementation bug");return a.__comparisonResultToBool(a.__compareToNumber(e,t),n)}if("number"!=typeof e)throw new Error("implementation bug");if(a.__isBigInt(t))return a.__comparisonResultToBool(a.__compareToNumber(t,e),2^n);if("number"!=typeof t)throw new Error("implementation bug");return 0===n?e<t:1===n?e<=t:2===n?e>t:3===n?e>=t:void 0}},{key:"__absoluteAdd",value:function(e,t,n){if(e.length<t.length)return a.__absoluteAdd(t,e,n);if(0===e.length)return e;if(0===t.length)return e.sign===n?e:a.unaryMinus(e);var r=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&r++;for(var i=new a(r,n),o=0,s=0;s<t.length;s++){var u=t.__digit(s),l=e.__digit(s),c=(65535&l)+(65535&u)+o,f=(l>>>16)+(u>>>16)+(c>>>16);o=f>>>16,i.__setDigit(s,65535&c|f<<16)}for(;s<e.length;s++){var d=e.__digit(s),h=(65535&d)+o,p=(d>>>16)+(h>>>16);o=p>>>16,i.__setDigit(s,65535&h|p<<16)}return s<i.length&&i.__setDigit(s,o),i.__trim()}},{key:"__absoluteSub",value:function(e,t,n){if(0===e.length)return e;if(0===t.length)return e.sign===n?e:a.unaryMinus(e);for(var r=new a(e.length,n),i=0,o=0;o<t.length;o++){var s=e.__digit(o),u=t.__digit(o),l=(65535&s)-(65535&u)-i,c=(s>>>16)-(u>>>16)-(i=1&l>>>16);i=1&c>>>16,r.__setDigit(o,65535&l|c<<16)}for(;o<e.length;o++){var f=e.__digit(o),d=(65535&f)-i,h=(f>>>16)-(i=1&d>>>16);i=1&h>>>16,r.__setDigit(o,65535&d|h<<16)}return r.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length;null===n?n=new a(r,t):n.sign=t;for(var i,o=!0,s=0;s<r;s++){if(i=e.__digit(s),o){var u=-1===i;i=0|i+1,o=u}n.__setDigit(s,i)}return o&&n.__setDigitGrow(r,1),n}},{key:"__absoluteSubOne",value:function(e,t){for(var n,r=e.length,i=new a(t=t||r,!1),o=!0,s=0;s<r;s++){if(n=e.__digit(s),o){var u=0===n;n=0|n-1,o=u}i.__setDigit(s,n)}if(o)throw new Error("implementation bug");for(var l=r;l<t;l++)i.__setDigit(l,0);return i}},{key:"__absoluteAnd",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){o=r;var s=e,u=r;e=t,r=i,t=s,i=u}var l=o;null===n?n=new a(l,!1):l=n.length;for(var c=0;c<o;c++)n.__setDigit(c,e.__digit(c)&t.__digit(c));for(;c<l;c++)n.__setDigit(c,0);return n}},{key:"__absoluteAndNot",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;r<i&&(o=r);var s=r;null===n?n=new a(s,!1):s=n.length;for(var u=0;u<o;u++)n.__setDigit(u,e.__digit(u)&~t.__digit(u));for(;u<r;u++)n.__setDigit(u,e.__digit(u));for(;u<s;u++)n.__setDigit(u,0);return n}},{key:"__absoluteOr",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){o=r;var s=e,u=r;e=t,r=i,t=s,i=u}var l=r;null===n?n=new a(l,!1):l=n.length;for(var c=0;c<o;c++)n.__setDigit(c,e.__digit(c)|t.__digit(c));for(;c<r;c++)n.__setDigit(c,e.__digit(c));for(;c<l;c++)n.__setDigit(c,0);return n}},{key:"__absoluteXor",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){o=r;var s=e,u=r;e=t,r=i,t=s,i=u}var l=r;null===n?n=new a(l,!1):l=n.length;for(var c=0;c<o;c++)n.__setDigit(c,e.__digit(c)^t.__digit(c));for(;c<r;c++)n.__setDigit(c,e.__digit(c));for(;c<l;c++)n.__setDigit(c,0);return n}},{key:"__absoluteCompare",value:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var r=e.length-1;0<=r&&e.__digit(r)===t.__digit(r);)r--;return 0>r?0:e.__unsignedDigit(r)>t.__unsignedDigit(r)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,n,r){if(0!==t){for(var i=65535&t,o=t>>>16,s=0,u=0,l=0,c=0;c<e.length;c++,r++){var f=n.__digit(r),d=65535&f,h=f>>>16,p=e.__digit(c),g=65535&p,y=p>>>16,v=a.__imul(g,i),m=a.__imul(g,o),b=a.__imul(y,i),w=a.__imul(y,o);s=(u=(m>>>16)+(b>>>16)+(65535&w)+(s=(h+=l+s+((d+=u+(65535&v))>>>16)+(v>>>16)+(65535&m)+(65535&b))>>>16))>>>16,u&=65535,l=w>>>16,f=65535&d|h<<16,n.__setDigit(r,f)}for(;0!==s||0!==u||0!==l;r++){var x=n.__digit(r),_=(65535&x)+u,k=(x>>>16)+(_>>>16)+l+s;u=0,l=0,s=k>>>16,x=65535&_|k<<16,n.__setDigit(r,x)}}}},{key:"__internalMultiplyAdd",value:function(e,t,n,r,i){for(var o=n,s=0,u=0;u<r;u++){var l=e.__digit(u),c=a.__imul(65535&l,t),f=(65535&c)+s+o;o=f>>>16;var d=a.__imul(l>>>16,t),h=(65535&d)+(c>>>16)+o;o=h>>>16,s=d>>>16,i.__setDigit(u,h<<16|65535&f)}if(i.length>r)for(i.__setDigit(r++,o+s);r<i.length;)i.__setDigit(r++,0);else if(0!==o+s)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(e,t,n){null===n&&(n=new a(e.length,!1));for(var r=0,i=2*e.length-1;0<=i;i-=2){var o=(r<<16|e.__halfDigit(i))>>>0,s=0|o/t,u=0|(o=((r=0|o%t)<<16|e.__halfDigit(i-1))>>>0)/t;r=0|o%t,n.__setDigit(i>>>1,s<<16|u)}return n}},{key:"__absoluteModSmall",value:function(e,t){for(var n=0,r=2*e.length-1;0<=r;r--)n=0|((n<<16|e.__halfDigit(r))>>>0)%t;return n}},{key:"__absoluteDivLarge",value:function(e,t,n,r){var i=t.__halfDigitLength(),o=t.length,s=e.__halfDigitLength()-i,u=null;n&&(u=new a(s+2>>>1,!1)).__initializeDigits();var l=new a(i+2>>>1,!1);l.__initializeDigits();var c=a.__clz16(t.__halfDigit(i-1));0<c&&(t=a.__specialLeftShift(t,c,0));for(var f=a.__specialLeftShift(e,c,1),d=t.__halfDigit(i-1),h=0,p=s;0<=p;p--){var g=65535,y=f.__halfDigit(p+i);if(y!==d){var v=(y<<16|f.__halfDigit(p+i-1))>>>0;g=0|v/d;for(var m=0|v%d,b=t.__halfDigit(i-2),w=f.__halfDigit(p+i-2);a.__imul(g,b)>>>0>(m<<16|w)>>>0&&(g--,!(65535<(m+=d))););}a.__internalMultiplyAdd(t,g,0,o,l);var x=f.__inplaceSub(l,p,i+1);0!==x&&(x=f.__inplaceAdd(t,p,i),f.__setHalfDigit(p+i,f.__halfDigit(p+i)+x),g--),n&&(1&p?h=g<<16:u.__setDigit(p>>>1,h|g))}return r?(f.__inplaceRightShift(c),n?{quotient:u,remainder:f}:f):n?u:void 0}},{key:"__clz16",value:function(e){return a.__clz32(e)-16}},{key:"__specialLeftShift",value:function(e,t,n){var r=e.length,i=new a(r+n,!1);if(0===t){for(var o=0;o<r;o++)i.__setDigit(o,e.__digit(o));return 0<n&&i.__setDigit(r,0),i}for(var s,u=0,l=0;l<r;l++)s=e.__digit(l),i.__setDigit(l,s<<t|u),u=s>>>32-t;return 0<n&&i.__setDigit(r,u),i}},{key:"__leftShiftByAbsolute",value:function(e,t){var n=a.__toShiftAmount(t);if(0>n)throw new RangeError("BigInt too big");var r=n>>>5,i=31&n,o=e.length,s=0!==i&&0!=e.__digit(o-1)>>>32-i,u=o+r+(s?1:0),l=new a(u,e.sign);if(0===i){for(var c=0;c<r;c++)l.__setDigit(c,0);for(;c<u;c++)l.__setDigit(c,e.__digit(c-r))}else{for(var f=0,d=0;d<r;d++)l.__setDigit(d,0);for(var h,p=0;p<o;p++)h=e.__digit(p),l.__setDigit(p+r,h<<i|f),f=h>>>32-i;if(s)l.__setDigit(o+r,f);else if(0!==f)throw new Error("implementation bug")}return l.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var n=e.length,r=e.sign,i=a.__toShiftAmount(t);if(0>i)return a.__rightShiftByMaximum(r);var o=i>>>5,s=31&i,u=n-o;if(0>=u)return a.__rightShiftByMaximum(r);var l=!1;if(r)if(0!=(e.__digit(o)&(1<<s)-1))l=!0;else for(var c=0;c<o;c++)if(0!==e.__digit(c)){l=!0;break}l&&0===s&&0==~e.__digit(n-1)&&u++;var f=new a(u,r);if(0===s)for(var d=o;d<n;d++)f.__setDigit(d-o,e.__digit(d));else{for(var h,p=e.__digit(o)>>>s,g=n-o-1,y=0;y<g;y++)h=e.__digit(y+o+1),f.__setDigit(y,h<<32-s|p),p=h>>>s;f.__setDigit(g,p)}return l&&(f=a.__absoluteAddOne(f,!0,f)),f.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?a.__oneDigit(1,!0):a.__zero()}},{key:"__toShiftAmount",value:function(e){if(1<e.length)return-1;var t=e.__unsignedDigit(0);return t>a.__kMaxLengthBits?-1:t}},{key:"__toPrimitive",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if("object"!==n(e))return e;if(e.constructor===a)return e;var r=e[Symbol.toPrimitive];if(r){var i=r(t);if("object"!==n(i))return i;throw new TypeError("Cannot convert object to primitive value")}var o=e.valueOf;if(o){var s=o.call(e);if("object"!==n(s))return s}var u=e.toString;if(u){var l=u.call(e);if("object"!==n(l))return l}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(e){return a.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function(e){return"object"===n(e)&&e.constructor===a}},{key:"__truncateToNBits",value:function(e,t){for(var n=e+31>>>5,r=new a(n,t.sign),i=n-1,o=0;o<i;o++)r.__setDigit(o,t.__digit(o));var s=t.__digit(i);if(0!=(31&e)){var u=32-(31&e);s=s<<u>>>u}return r.__setDigit(i,s),r.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,n){for(var r=Math.min,i=e+31>>>5,o=new a(i,n),s=0,u=i-1,l=0,c=r(u,t.length);s<c;s++){var f=t.__digit(s),d=0-(65535&f)-l,h=0-(f>>>16)-(l=1&d>>>16);l=1&h>>>16,o.__setDigit(s,65535&d|h<<16)}for(;s<u;s++)o.__setDigit(s,0|-l);var p,g=u<t.length?t.__digit(u):0,y=31&e;if(0===y){var v=0-(65535&g)-l;p=65535&v|0-(g>>>16)-(l=1&v>>>16)<<16}else{var m=32-y,b=1<<32-m,w=(65535&b)-(65535&(g=g<<m>>>m))-l;p=65535&w|(b>>>16)-(g>>>16)-(l=1&w>>>16)<<16,p&=b-1}return o.__setDigit(u,p),o.__trim()}},{key:"__digitPow",value:function(e,t){for(var n=1;0<t;)1&t&&(n*=e),t>>>=1,e*=e;return n}}]),a}(c(Array));return g.__kMaxLength=33554432,g.__kMaxLengthBits=g.__kMaxLength<<5,g.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],g.__kBitsPerCharTableShift=5,g.__kBitsPerCharTableMultiplier=1<<g.__kBitsPerCharTableShift,g.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],g.__kBitConversionBuffer=new ArrayBuffer(8),g.__kBitConversionDouble=new Float64Array(g.__kBitConversionBuffer),g.__kBitConversionInts=new Int32Array(g.__kBitConversionBuffer),g.__clz32=t||function(e){var t=Math.LN2,n=Math.log;return 0===e?32:0|31-(0|n(e>>>0)/t)},g.__imul=e||function(e,t){return 0|e*t},g}()},,function(e,t,n){var r;!function(i){"use strict";var o,a="[big.js] ",s=a+"Invalid ",u=s+"decimal places",l={},c=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function f(e,t,n,r){var i=e.c,o=e.e+t+1;if(o<i.length){if(1===n)r=i[o]>=5;else if(2===n)r=i[o]>5||5==i[o]&&(r||o<0||void 0!==i[o+1]||1&i[o-1]);else if(3===n)r=r||!!i[0];else if(r=!1,0!==n)throw Error("[big.js] Invalid rounding mode");if(o<1)i.length=1,r?(e.e=-t,i[0]=1):i[0]=e.e=0;else{if(i.length=o--,r)for(;++i[o]>9;)i[o]=0,o--||(++e.e,i.unshift(1));for(o=i.length;!i[--o];)i.pop()}}else if(n<0||n>3||n!==~~n)throw Error("[big.js] Invalid rounding mode");return e}function d(e,t,n,r){var i,o,a=e.constructor,l=!e.c[0];if(void 0!==n){if(n!==~~n||n<(3==t)||n>1e6)throw Error(3==t?s+"precision":u);for(n=r-(e=new a(e)).e,e.c.length>++r&&f(e,n,a.RM),2==t&&(r=e.e+n+1);e.c.length<r;)e.c.push(0)}if(i=e.e,n=(o=e.c.join("")).length,2!=t&&(1==t||3==t&&r<=i||i<=a.NE||i>=a.PE))o=o.charAt(0)+(n>1?"."+o.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)o="0"+o;o="0."+o}else if(i>0)if(++i>n)for(i-=n;i--;)o+="0";else i<n&&(o=o.slice(0,i)+"."+o.slice(i));else n>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&(!l||4==t)?"-"+o:o}l.abs=function(){var e=new this.constructor(this);return e.s=1,e},l.cmp=function(e){var t,n=this,r=n.c,i=(e=new n.constructor(e)).c,o=n.s,a=e.s,s=n.e,u=e.e;if(!r[0]||!i[0])return r[0]?o:i[0]?-a:0;if(o!=a)return o;if(t=o<0,s!=u)return s>u^t?1:-1;for(a=(s=r.length)<(u=i.length)?s:u,o=-1;++o<a;)if(r[o]!=i[o])return r[o]>i[o]^t?1:-1;return s==u?0:s>u^t?1:-1},l.div=function(e){var t=this,n=t.constructor,r=t.c,i=(e=new n(e)).c,o=t.s==e.s?1:-1,a=n.DP;if(a!==~~a||a<0||a>1e6)throw Error(u);if(!i[0])throw Error("[big.js] Division by zero");if(!r[0])return new n(0*o);var s,l,c,d,h,p=i.slice(),g=s=i.length,y=r.length,v=r.slice(0,s),m=v.length,b=e,w=b.c=[],x=0,_=a+(b.e=t.e-e.e)+1;for(b.s=o,o=_<0?0:_,p.unshift(0);m++<s;)v.push(0);do{for(c=0;c<10;c++){if(s!=(m=v.length))d=s>m?1:-1;else for(h=-1,d=0;++h<s;)if(i[h]!=v[h]){d=i[h]>v[h]?1:-1;break}if(!(d<0))break;for(l=m==s?i:p;m;){if(v[--m]<l[m]){for(h=m;h&&!v[--h];)v[h]=9;--v[h],v[m]+=10}v[m]-=l[m]}for(;!v[0];)v.shift()}w[x++]=d?c:++c,v[0]&&d?v[m]=r[g]||0:v=[r[g]]}while((g++<y||void 0!==v[0])&&o--);return w[0]||1==x||(w.shift(),b.e--),x>_&&f(b,a,n.RM,void 0!==v[0]),b},l.eq=function(e){return!this.cmp(e)},l.gt=function(e){return this.cmp(e)>0},l.gte=function(e){return this.cmp(e)>-1},l.lt=function(e){return this.cmp(e)<0},l.lte=function(e){return this.cmp(e)<1},l.minus=l.sub=function(e){var t,n,r,i,o=this,a=o.constructor,s=o.s,u=(e=new a(e)).s;if(s!=u)return e.s=-u,o.plus(e);var l=o.c.slice(),c=o.e,f=e.c,d=e.e;if(!l[0]||!f[0])return f[0]?(e.s=-u,e):new a(l[0]?o:0);if(s=c-d){for((i=s<0)?(s=-s,r=l):(d=c,r=f),r.reverse(),u=s;u--;)r.push(0);r.reverse()}else for(n=((i=l.length<f.length)?l:f).length,s=u=0;u<n;u++)if(l[u]!=f[u]){i=l[u]<f[u];break}if(i&&(r=l,l=f,f=r,e.s=-e.s),(u=(n=f.length)-(t=l.length))>0)for(;u--;)l[t++]=0;for(u=t;n>s;){if(l[--n]<f[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=f[n]}for(;0===l[--u];)l.pop();for(;0===l[0];)l.shift(),--d;return l[0]||(e.s=1,l=[d=0]),e.c=l,e.e=d,e},l.mod=function(e){var t,n=this,r=n.constructor,i=n.s,o=(e=new r(e)).s;if(!e.c[0])throw Error("[big.js] Division by zero");return n.s=e.s=1,t=1==e.cmp(n),n.s=i,e.s=o,t?new r(n):(i=r.DP,o=r.RM,r.DP=r.RM=0,n=n.div(e),r.DP=i,r.RM=o,this.minus(n.times(e)))},l.plus=l.add=function(e){var t,n=this,r=n.constructor,i=n.s,o=(e=new r(e)).s;if(i!=o)return e.s=-o,n.minus(e);var a=n.e,s=n.c,u=e.e,l=e.c;if(!s[0]||!l[0])return l[0]?e:new r(s[0]?n:0*i);if(s=s.slice(),i=a-u){for(i>0?(u=a,t=l):(i=-i,t=s),t.reverse();i--;)t.push(0);t.reverse()}for(s.length-l.length<0&&(t=l,l=s,s=t),i=l.length,o=0;i;s[i]%=10)o=(s[--i]=s[i]+l[i]+o)/10|0;for(o&&(s.unshift(o),++u),i=s.length;0===s[--i];)s.pop();return e.c=s,e.e=u,e},l.pow=function(e){var t=this,n=new t.constructor(1),r=n,i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(s+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?n.div(r):r},l.round=function(e,t){var n=this.constructor;if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(u);return f(new n(this),e,void 0===t?n.RM:t)},l.sqrt=function(){var e,t,n,r=this,i=r.constructor,o=r.s,s=r.e,u=new i(.5);if(!r.c[0])return new i(r);if(o<0)throw Error(a+"No square root");0===(o=Math.sqrt(r+""))||o===1/0?((t=r.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new i(((o=Math.sqrt(t))==1/0?"1e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+s)):e=new i(o),s=e.e+(i.DP+=4);do{n=e,e=u.times(n.plus(r.div(n)))}while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return f(e,i.DP-=4,i.RM)},l.times=l.mul=function(e){var t,n=this,r=n.constructor,i=n.c,o=(e=new r(e)).c,a=i.length,s=o.length,u=n.e,l=e.e;if(e.s=n.s==e.s?1:-1,!i[0]||!o[0])return new r(0*e.s);for(e.e=u+l,a<s&&(t=i,i=o,o=t,l=a,a=s,s=l),t=new Array(l=a+s);l--;)t[l]=0;for(u=s;u--;){for(s=0,l=a+u;l>u;)s=t[l]+o[u]*i[l-u-1]+s,t[l--]=s%10,s=s/10|0;t[l]=(t[l]+s)%10}for(s?++e.e:t.shift(),u=t.length;!t[--u];)t.pop();return e.c=t,e},l.toExponential=function(e){return d(this,1,e,e)},l.toFixed=function(e){return d(this,2,e,this.e+e)},l.toPrecision=function(e){return d(this,3,e,e-1)},l.toString=function(){return d(this)},l.valueOf=l.toJSON=function(){return d(this,4)},(o=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice()):function(e,t){var n,r,i;if(0===t&&1/t<0)t="-0";else if(!c.test(t+=""))throw Error(s+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".",""));(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length);for(i=t.length,r=0;r<i&&"0"==t.charAt(r);)++r;if(r==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=n-r-1,e.c=[],n=0;r<=i;)e.c[n++]=+t.charAt(r++)}}(r,n),r.constructor=t}return t.prototype=l,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.version="5.2.2",t}()).default=o.Big=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){e.exports&&(e.exports=function(e){"use strict";return e.prototype.toFormat=function(e,t,n){if(!this.e&&0!==this.e)return this.toString();var r,i,o,a,s,u,l,c,f,d,h,p,g,y,v,m=this.format||{},b=this.constructor.format||{};if(e!=s?"object"==typeof e?(n=e,e=s):t!=s?"object"==typeof t?(n=t,t=s):"object"!=typeof n&&(n={}):n={}:n={},c=(r=this.toFixed(e,t).split("."))[0],f=r[1],u=(l=this.s<0?c.slice(1):c).length,(d=n.decimalSeparator)==s&&(d=m.decimalSeparator)==s&&(d=b.decimalSeparator)==s&&(d="."),(h=n.groupSeparator)==s&&(h=m.groupSeparator)==s&&(h=b.groupSeparator),h&&((p=n.groupSize)==s&&(p=m.groupSize)==s&&(p=b.groupSize)==s&&(p=0),(g=n.secondaryGroupSize)==s&&(g=m.secondaryGroupSize)==s&&(g=b.secondaryGroupSize)==s&&(g=0),g?(i=+g,u-=o=+p):(i=+p,o=+g),i>0&&u>0)){for(a=u%i||i,c=l.substr(0,a);a<u;a+=i)c+=h+l.substr(a,i);o>0&&(c+=h+l.slice(a)),this.s<0&&(c="-"+c)}return f?((y=n.fractionGroupSeparator)==s&&(y=m.fractionGroupSeparator)==s&&(y=b.fractionGroupSeparator),y&&((v=n.fractionGroupSize)==s&&(v=m.fractionGroupSize)==s&&(v=b.fractionGroupSize)==s&&(v=0),(v=+v)&&(f=f.replace(new RegExp("\\d{"+v+"}\\B","g"),"$&"+y))),c+d+f):c},e.format={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"",fractionGroupSize:0},e})},function(e,t,n){var r;!function(i){"use strict";var o,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,u="[DecimalError] ",l=u+"Invalid argument: ",c=u+"Exponent out of range: ",f=Math.floor,d=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=1e7,g=f(1286742750677284.5),y={};function v(e,t){var n,r,i,o,a,u,l,c,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),s?A(t,d):t;if(l=e.d,c=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i){for(o<0?(r=l,o=-o,u=c.length):(r=c,i=a,u=l.length),o>(u=(a=Math.ceil(d/7))>u?a+1:u+1)&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((u=l.length)-(o=c.length)<0&&(o=u,r=c,c=l,l=r),n=0;o;)n=(l[--o]=l[o]+c[o]+n)/p|0,l[o]%=p;for(n&&(l.unshift(n),++i),u=l.length;0==l[--u];)l.pop();return t.d=l,t.e=i,s?A(t,d):t}function m(e,t,n){if(e!==~~e||e<t||e>n)throw Error(l+e)}function b(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=S(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=S(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return o+a}y.absoluteValue=y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},y.comparedTo=y.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},y.dividedBy=y.div=function(e){return w(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return A(w(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return _(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return this.cmp(e)<0},y.lessThanOrEqualTo=y.lte=function(e){return this.cmp(e)<1},y.logarithm=y.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(u+"NaN");if(n.s<1)throw Error(u+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(s=!1,t=w(T(n,a),T(e,a),a),s=!0,A(t,i))},y.minus=y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):v(t,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(u+"NaN");return n.s?(s=!1,t=w(n,e,0,1).times(e),s=!0,n.minus(t)):A(new r(n),i)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return T(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v(t,e):O(t,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(l+e);if(t=_(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},y.squareRoot=y.sqrt=function(){var e,t,n,r,i,o,a,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(u+"NaN")}for(e=_(l),s=!1,0==(i=Math.sqrt(+l))||i==1/0?(((t=b(l.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(i.toString()),i=a=(n=c.precision)+3;;)if(r=(o=r).plus(w(l,o,a+2)).times(.5),b(o.d).slice(0,a)===(t=b(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(A(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if("9999"!=t)break;a+=4}return s=!0,A(r,n)},y.times=y.mul=function(e){var t,n,r,i,o,a,u,l,c,f=this,d=f.constructor,h=f.d,g=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,(l=h.length)<(c=g.length)&&(o=h,h=g,g=o,a=l,l=c,c=a),o=[],r=a=l+c;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)u=o[i]+g[r]*h[i-r-1]+t,o[i--]=u%p|0,t=u/p|0;o[i]=(o[i]+t)%p|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,s?A(e,d.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(m(e,0,1e9),void 0===t?t=r.rounding:m(t,0,8),A(n,e+_(n)+1,t))},y.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=M(r,!0):(m(e,0,1e9),void 0===t?t=i.rounding:m(t,0,8),n=M(r=A(new i(r),e+1,t),!0,e+1)),n},y.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?M(i):(m(e,0,1e9),void 0===t?t=o.rounding:m(t,0,8),n=M((r=A(new o(i),e+_(i)+1,t)).abs(),!1,e+_(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var e=this,t=e.constructor;return A(new t(e),_(e)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,n,r,i,a,l,c=this,d=c.constructor,h=+(e=new d(e));if(!e.s)return new d(o);if(!(c=new d(c)).s){if(e.s<1)throw Error(u+"Infinity");return c}if(c.eq(o))return c;if(r=d.precision,e.eq(o))return A(c,r);if(l=(t=e.e)>=(n=e.d.length-1),a=c.s,l){if((n=h<0?-h:h)<=9007199254740991){for(i=new d(o),t=Math.ceil(r/7+4),s=!1;n%2&&E((i=i.times(c)).d,t),0!==(n=f(n/2));)E((c=c.times(c)).d,t);return s=!0,e.s<0?new d(o).div(i):A(i,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,s=!1,i=e.times(T(c,r+12)),s=!0,(i=x(i)).s=a,i},y.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=M(i,(n=_(i))<=o.toExpNeg||n>=o.toExpPos):(m(e,1,1e9),void 0===t?t=o.rounding:m(t,0,8),r=M(i=A(new o(i),e,t),e<=(n=_(i))||n<=o.toExpNeg,e)),r},y.toSignificantDigits=y.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(m(e,1,1e9),void 0===t?t=n.rounding:m(t,0,8)),A(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=this,t=_(e),n=e.constructor;return M(e,t<=n.toExpNeg||t>=n.toExpPos)};var w=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%p|0,r=n/p|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*p+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var s,l,c,f,d,h,g,y,v,m,b,w,x,k,S,T,C,O,M=r.constructor,E=r.s==i.s?1:-1,P=r.d,I=i.d;if(!r.s)return new M(r);if(!i.s)throw Error(u+"Division by zero");for(l=r.e-i.e,C=I.length,S=P.length,y=(g=new M(E)).d=[],c=0;I[c]==(P[c]||0);)++c;if(I[c]>(P[c]||0)&&--l,(w=null==o?o=M.precision:a?o+(_(r)-_(i))+1:o)<0)return new M(0);if(w=w/7+2|0,c=0,1==C)for(f=0,I=I[0],w++;(c<S||f)&&w--;c++)x=f*p+(P[c]||0),y[c]=x/I|0,f=x%I|0;else{for((f=p/(I[0]+1)|0)>1&&(I=e(I,f),P=e(P,f),C=I.length,S=P.length),k=C,m=(v=P.slice(0,C)).length;m<C;)v[m++]=0;(O=I.slice()).unshift(0),T=I[0],I[1]>=p/2&&++T;do{f=0,(s=t(I,v,C,m))<0?(b=v[0],C!=m&&(b=b*p+(v[1]||0)),(f=b/T|0)>1?(f>=p&&(f=p-1),1==(s=t(d=e(I,f),v,h=d.length,m=v.length))&&(f--,n(d,C<h?O:I,h))):(0==f&&(s=f=1),d=I.slice()),(h=d.length)<m&&d.unshift(0),n(v,d,m),-1==s&&(s=t(I,v,C,m=v.length))<1&&(f++,n(v,C<m?O:I,m)),m=v.length):0===s&&(f++,v=[0]),y[c++]=f,s&&v[0]?v[m++]=P[k]||0:(v=[P[k]],m=1)}while((k++<S||void 0!==v[0])&&w--)}return y[0]||y.shift(),g.e=l,A(g,a?o+_(g)+1:o)}}();function x(e,t){var n,r,i,a,u,l=0,f=0,h=e.constructor,p=h.precision;if(_(e)>16)throw Error(c+_(e));if(!e.s)return new h(o);for(null==t?(s=!1,u=p):u=t,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(u+=Math.log(d(2,f))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=u;;){if(r=A(r.times(e),u),n=n.times(++l),b((a=i.plus(w(r,n,u))).d).slice(0,u)===b(i.d).slice(0,u)){for(;f--;)i=A(i.times(i),u);return h.precision=p,null==t?(s=!0,A(i,p)):i}i=a}}function _(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function k(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(u+"LN10 precision limit exceeded");return A(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function T(e,t){var n,r,i,a,l,c,f,d,h,p=1,g=e,y=g.d,v=g.constructor,m=v.precision;if(g.s<1)throw Error(u+(g.s?"NaN":"-Infinity"));if(g.eq(o))return new v(0);if(null==t?(s=!1,d=m):d=t,g.eq(10))return null==t&&(s=!0),k(v,d);if(d+=10,v.precision=d,r=(n=b(y)).charAt(0),a=_(g),!(Math.abs(a)<15e14))return f=k(v,d+2,m).times(a+""),g=T(new v(r+"."+n.slice(1)),d-10).plus(f),v.precision=m,null==t?(s=!0,A(g,m)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((g=g.times(e)).d)).charAt(0),p++;for(a=_(g),r>1?(g=new v("0."+n),a++):g=new v(r+"."+n.slice(1)),c=l=g=w(g.minus(o),g.plus(o),d),h=A(g.times(g),d),i=3;;){if(l=A(l.times(h),d),b((f=c.plus(w(l,new v(i),d))).d).slice(0,d)===b(c.d).slice(0,d))return c=c.times(2),0!==a&&(c=c.plus(k(v,d+2,m).times(a+""))),c=w(c,new v(p),d),v.precision=m,null==t?(s=!0,A(c,m)):c;c=f,i+=2}}function C(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=f(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),s&&(e.e>g||e.e<-g))throw Error(c+n)}else e.s=0,e.e=0,e.d=[0];return e}function A(e,t,n){var r,i,o,a,u,l,h,y,v=e.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=7,i=t,h=v[y=0];else{if((y=Math.ceil((r+1)/7))>=(o=v.length))return e;for(h=o=v[y],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(u=h/(o=d(10,a-i-1))%10|0,l=t<0||void 0!==v[y+1]||h%o,l=n<4?(u||l)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||l||6==n&&(r>0?i>0?h/d(10,a-i):0:v[y-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return l?(o=_(e),v.length=1,t=t-o-1,v[0]=d(10,(7-t%7)%7),e.e=f(-t/7)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==r?(v.length=y,o=1,y--):(v.length=y+1,o=d(10,7-r),v[y]=i>0?(h/d(10,a-i)%d(10,i)|0)*o:0),l)for(;;){if(0==y){(v[0]+=o)==p&&(v[0]=1,++e.e);break}if(v[y]+=o,v[y]!=p)break;v[y--]=0,o=1}for(r=v.length;0===v[--r];)v.pop();if(s&&(e.e>g||e.e<-g))throw Error(c+_(e));return e}function O(e,t){var n,r,i,o,a,u,l,c,f,d,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),s?A(t,g):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r){for((f=a<0)?(n=l,a=-a,u=d.length):(n=d,r=c,u=l.length),a>(i=Math.max(Math.ceil(g/7),u)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=l.length)<(u=d.length))&&(u=i),i=0;i<u;i++)if(l[i]!=d[i]){f=l[i]<d[i];break}a=0}for(f&&(n=l,l=d,d=n,t.s=-t.s),u=l.length,i=d.length-u;i>0;--i)l[u++]=0;for(i=d.length;i>a;){if(l[--i]<d[i]){for(o=i;o&&0===l[--o];)l[o]=p-1;--l[o],l[i]+=p}l[i]-=d[i]}for(;0===l[--u];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(t.d=l,t.e=r,s?A(t,g):t):new h(0)}function M(e,t,n){var r,i=_(e),o=b(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+S(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+S(-i-1)+o,n&&(r=n-a)>0&&(o+=S(r))):i>=a?(o+=S(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+S(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=S(r))),e.s<0?"-"+o:o}function E(e,t){if(e.length>t)return e.length=t,!0}function P(e){if(!e||"object"!==typeof e)throw Error(u+"Object expected");var t,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(f(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}(a=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(l+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):C(t,e.toString())}if("string"!==typeof e)throw Error(l+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(l+e);C(t,e)}if(o.prototype=y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=P,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(a)).default=a.Decimal=a,o=new a(1),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";t.sha1=n(372),t.sha224=n(373),t.sha256=n(244),t.sha384=n(374),t.sha512=n(245)},function(e,t,n){"use strict";var r=n(81),i=n(131),o=n(243),a=r.rotl32,s=r.sum32,u=r.sum32_5,l=o.ft_1,c=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),g=u(a(i,5),l(p,o,c,d),h,n[r],f[p]);h=d,d=c,c=a(o,30),o=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(81),i=n(244);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(81),i=n(245);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(81),i=n(131),o=r.rotl32,a=r.sum32,s=r.sum32_3,u=r.sum32_4,l=i.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(c,l),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],c=this.h[4],m=n,b=r,w=i,x=l,_=c,k=0;k<80;k++){var S=a(o(u(n,f(k,r,i,l),e[p[k]+t],d(k)),y[k]),c);n=c,c=l,l=o(i,10),i=r,r=S,S=a(o(u(m,f(79-k,b,w,x),e[g[k]+t],h(k)),v[k]),_),m=_,_=x,x=o(w,10),w=b,b=S}S=s(this.h[1],i,x),this.h[1]=s(this.h[2],l,_),this.h[2]=s(this.h[3],c,m),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,w),this.h[0]=S},c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[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],g=[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],y=[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],v=[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]},function(e,t,n){"use strict";var r=n(81),i=n(80);function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(C){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new k(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var c={};function f(){}function d(){}function h(){}var p={};p[i]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(S([])));y&&y!==t&&n.call(y,i)&&(p=y);var v=h.prototype=f.prototype=Object.create(p);function m(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,d.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},m(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),s(v,a,"Generator"),v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,k.prototype={constructor:k,reset:function(e){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(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";t.sha1=n(379),t.sha224=n(380),t.sha256=n(247),t.sha384=n(381),t.sha512=n(248)},function(e,t,n){"use strict";var r=n(82),i=n(132),o=n(246),a=r.rotl32,s=r.sum32,u=r.sum32_5,l=o.ft_1,c=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),g=u(a(i,5),l(p,o,c,d),h,n[r],f[p]);h=d,d=c,c=a(o,30),o=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(82),i=n(247);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(82),i=n(248);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(82),i=n(132),o=r.rotl32,a=r.sum32,s=r.sum32_3,u=r.sum32_4,l=i.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(c,l),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],c=this.h[4],m=n,b=r,w=i,x=l,_=c,k=0;k<80;k++){var S=a(o(u(n,f(k,r,i,l),e[p[k]+t],d(k)),y[k]),c);n=c,c=l,l=o(i,10),i=r,r=S,S=a(o(u(m,f(79-k,b,w,x),e[g[k]+t],h(k)),v[k]),_),m=_,_=x,x=o(w,10),w=b,b=S}S=s(this.h[1],i,x),this.h[1]=s(this.h[2],l,_),this.h[2]=s(this.h[3],c,m),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,w),this.h[0]=S},c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[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],g=[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],y=[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],v=[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]},function(e,t,n){"use strict";var r=n(82),i=n(80);function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e){e.exports=JSON.parse('{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"reserve0","type":"uint112"},{"internalType":"uint112","name":"reserve1","type":"uint112"},{"internalType":"uint32","name":"blockTimestampLast","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"kLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[],"name":"sync","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"linkReferences":{},"object":"","opcodes":"","sourceMap":""}},"metadata":"{\\"compiler\\":{\\"version\\":\\"0.5.16+commit.9c3226ce\\"},\\"language\\":\\"Solidity\\",\\"output\\":{\\"abi\\":[{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"internalType\\":\\"address\\",\\"name\\":\\"owner\\",\\"type\\":\\"address\\"},{\\"indexed\\":true,\\"internalType\\":\\"address\\",\\"name\\":\\"spender\\",\\"type\\":\\"address\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"value\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"Approval\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"internalType\\":\\"address\\",\\"name\\":\\"sender\\",\\"type\\":\\"address\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount0\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount1\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":true,\\"internalType\\":\\"address\\",\\"name\\":\\"to\\",\\"type\\":\\"address\\"}],\\"name\\":\\"Burn\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"internalType\\":\\"address\\",\\"name\\":\\"sender\\",\\"type\\":\\"address\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount0\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount1\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"Mint\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"internalType\\":\\"address\\",\\"name\\":\\"sender\\",\\"type\\":\\"address\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount0In\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount1In\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount0Out\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount1Out\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":true,\\"internalType\\":\\"address\\",\\"name\\":\\"to\\",\\"type\\":\\"address\\"}],\\"name\\":\\"Swap\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":false,\\"internalType\\":\\"uint112\\",\\"name\\":\\"reserve0\\",\\"type\\":\\"uint112\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint112\\",\\"name\\":\\"reserve1\\",\\"type\\":\\"uint112\\"}],\\"name\\":\\"Sync\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"internalType\\":\\"address\\",\\"name\\":\\"from\\",\\"type\\":\\"address\\"},{\\"indexed\\":true,\\"internalType\\":\\"address\\",\\"name\\":\\"to\\",\\"type\\":\\"address\\"},{\\"indexed\\":false,\\"internalType\\":\\"uint256\\",\\"name\\":\\"value\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"Transfer\\",\\"type\\":\\"event\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"DOMAIN_SEPARATOR\\",\\"outputs\\":[{\\"internalType\\":\\"bytes32\\",\\"name\\":\\"\\",\\"type\\":\\"bytes32\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"MINIMUM_LIQUIDITY\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"pure\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"PERMIT_TYPEHASH\\",\\"outputs\\":[{\\"internalType\\":\\"bytes32\\",\\"name\\":\\"\\",\\"type\\":\\"bytes32\\"}],\\"payable\\":false,\\"stateMutability\\":\\"pure\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"owner\\",\\"type\\":\\"address\\"},{\\"internalType\\":\\"address\\",\\"name\\":\\"spender\\",\\"type\\":\\"address\\"}],\\"name\\":\\"allowance\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"spender\\",\\"type\\":\\"address\\"},{\\"internalType\\":\\"uint256\\",\\"name\\":\\"value\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"approve\\",\\"outputs\\":[{\\"internalType\\":\\"bool\\",\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"owner\\",\\"type\\":\\"address\\"}],\\"name\\":\\"balanceOf\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"to\\",\\"type\\":\\"address\\"}],\\"name\\":\\"burn\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount0\\",\\"type\\":\\"uint256\\"},{\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount1\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"decimals\\",\\"outputs\\":[{\\"internalType\\":\\"uint8\\",\\"name\\":\\"\\",\\"type\\":\\"uint8\\"}],\\"payable\\":false,\\"stateMutability\\":\\"pure\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"factory\\",\\"outputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"getReserves\\",\\"outputs\\":[{\\"internalType\\":\\"uint112\\",\\"name\\":\\"reserve0\\",\\"type\\":\\"uint112\\"},{\\"internalType\\":\\"uint112\\",\\"name\\":\\"reserve1\\",\\"type\\":\\"uint112\\"},{\\"internalType\\":\\"uint32\\",\\"name\\":\\"blockTimestampLast\\",\\"type\\":\\"uint32\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"\\",\\"type\\":\\"address\\"},{\\"internalType\\":\\"address\\",\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"name\\":\\"initialize\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"kLast\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"to\\",\\"type\\":\\"address\\"}],\\"name\\":\\"mint\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"liquidity\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"name\\",\\"outputs\\":[{\\"internalType\\":\\"string\\",\\"name\\":\\"\\",\\"type\\":\\"string\\"}],\\"payable\\":false,\\"stateMutability\\":\\"pure\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"owner\\",\\"type\\":\\"address\\"}],\\"name\\":\\"nonces\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"owner\\",\\"type\\":\\"address\\"},{\\"internalType\\":\\"address\\",\\"name\\":\\"spender\\",\\"type\\":\\"address\\"},{\\"internalType\\":\\"uint256\\",\\"name\\":\\"value\\",\\"type\\":\\"uint256\\"},{\\"internalType\\":\\"uint256\\",\\"name\\":\\"deadline\\",\\"type\\":\\"uint256\\"},{\\"internalType\\":\\"uint8\\",\\"name\\":\\"v\\",\\"type\\":\\"uint8\\"},{\\"internalType\\":\\"bytes32\\",\\"name\\":\\"r\\",\\"type\\":\\"bytes32\\"},{\\"internalType\\":\\"bytes32\\",\\"name\\":\\"s\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"permit\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"price0CumulativeLast\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"price1CumulativeLast\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"to\\",\\"type\\":\\"address\\"}],\\"name\\":\\"skim\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount0Out\\",\\"type\\":\\"uint256\\"},{\\"internalType\\":\\"uint256\\",\\"name\\":\\"amount1Out\\",\\"type\\":\\"uint256\\"},{\\"internalType\\":\\"address\\",\\"name\\":\\"to\\",\\"type\\":\\"address\\"},{\\"internalType\\":\\"bytes\\",\\"name\\":\\"data\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"swap\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"symbol\\",\\"outputs\\":[{\\"internalType\\":\\"string\\",\\"name\\":\\"\\",\\"type\\":\\"string\\"}],\\"payable\\":false,\\"stateMutability\\":\\"pure\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[],\\"name\\":\\"sync\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"token0\\",\\"outputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"token1\\",\\"outputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"totalSupply\\",\\"outputs\\":[{\\"internalType\\":\\"uint256\\",\\"name\\":\\"\\",\\"type\\":\\"uint256\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"to\\",\\"type\\":\\"address\\"},{\\"internalType\\":\\"uint256\\",\\"name\\":\\"value\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"transfer\\",\\"outputs\\":[{\\"internalType\\":\\"bool\\",\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"internalType\\":\\"address\\",\\"name\\":\\"from\\",\\"type\\":\\"address\\"},{\\"internalType\\":\\"address\\",\\"name\\":\\"to\\",\\"type\\":\\"address\\"},{\\"internalType\\":\\"uint256\\",\\"name\\":\\"value\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"transferFrom\\",\\"outputs\\":[{\\"internalType\\":\\"bool\\",\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"}],\\"devdoc\\":{\\"methods\\":{}},\\"userdoc\\":{\\"methods\\":{}}},\\"settings\\":{\\"compilationTarget\\":{\\"contracts/interfaces/IUniswapV2Pair.sol\\":\\"IUniswapV2Pair\\"},\\"evmVersion\\":\\"istanbul\\",\\"libraries\\":{},\\"optimizer\\":{\\"enabled\\":true,\\"runs\\":999999},\\"remappings\\":[]},\\"sources\\":{\\"contracts/interfaces/IUniswapV2Pair.sol\\":{\\"keccak256\\":\\"0x7c9bc70e5996c763e02ff38905282bc24fb242b0ef2519a003b36824fc524a4b\\",\\"urls\\":[\\"bzz-raw://85d5ad2dd23ee127f40907a12865a1e8cb5828814f6f2480285e1827dd72dedf\\",\\"dweb:/ipfs/QmayKQWJgWmr46DqWseADyUanmqxh662hPNdAkdHRjiQQH\\"]}},\\"version\\":1}","interface":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"reserve0","type":"uint112"},{"internalType":"uint112","name":"reserve1","type":"uint112"},{"internalType":"uint32","name":"blockTimestampLast","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"kLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[],"name":"sync","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":""}')},function(e,t,n){var r=n(251);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=/(?:<!--[\S\s]*?-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=n(393),o=Object.create?Object.create(null):{};function a(e,t,n,r,i){var o=t.indexOf("<",r),a=t.slice(r,-1===o?void 0:o);/^\s*$/.test(a)&&(a=" "),(!i&&o>-1&&n+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}e.exports=function(e,t){t||(t={}),t.components||(t.components=o);var n,s=[],u=-1,l=[],c={},f=!1;return e.replace(r,(function(r,o){if(f){if(r!=="</"+n.name+">")return;f=!1}var d,h="/"!==r.charAt(1),p=0===r.indexOf("\x3c!--"),g=o+r.length,y=e.charAt(g);h&&!p&&(u++,"tag"===(n=i(r)).type&&t.components[n.name]&&(n.type="component",f=!0),n.voidElement||f||!y||"<"===y||a(n.children,e,u,g,t.ignoreWhitespace),c[n.tagName]=n,0===u&&s.push(n),(d=l[u-1])&&d.children.push(n),l[u]=n),(p||!h||n.voidElement)&&(p||u--,!f&&"<"!==y&&y&&a(d=-1===u?s:l[u].children,e,u,g,t.ignoreWhitespace))})),!s.length&&e.length&&a(s,e,0,0,t.ignoreWhitespace),s}},function(e,t,n){var r=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,i=n(394);e.exports=function(e){var t,n=0,o=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(r,(function(r){if("="===r)return o=!0,void n++;o?0===n?((i[r]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=r):(a.attrs[t]=r.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=r),n++,o=!1})),a}},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t){function n(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(n,"")+"</"+t.name+">"}}e.exports=function(e){return e.reduce((function(e,t){return e+n("",t)}),"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(397)),a=n(398),s=(r=a)&&r.__esModule?r:{default:r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:s.default}}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e),this.init(t,n),this.type="backend"}return i(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=o.defaults(t,this.options||{},l())}},{key:"readMulti",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath(e,t));var i=this.services.interpolator.interpolate(r,{lng:e.join("+"),ns:t.join("+")});this.loadUrl(i,n)}},{key:"read",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath([e],[t]));var i=this.services.interpolator.interpolate(r,{lng:e,ns:t});this.loadUrl(i,n)}},{key:"loadUrl",value:function(e,t){var n=this;this.options.ajax(e,this.options,(function(r,i){if(i.status>=500&&i.status<600)return t("failed loading "+e,!0);if(i.status>=400&&i.status<500)return t("failed loading "+e,!1);var o=void 0,a=void 0;try{o=n.options.parse(r,e)}catch(s){a="failed parsing "+e+" to json"}if(a)return t(a,!1);t(null,o)}))}},{key:"create",value:function(e,t,n,r){var i=this;"string"===typeof e&&(e=[e]);var o={};o[n]=r||"",e.forEach((function(e){var n=i.services.interpolator.interpolate(i.options.addPath,{lng:e,ns:t});i.options.ajax(n,i.options,(function(e,t){}),o)}))}}]),e}();c.type="backend",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=function(e){return i.call(o.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},t.extend=function(e){return i.call(o.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e};var r=[],i=r.forEach,o=r.slice},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e,t){if(t&&"object"===("undefined"===typeof t?"undefined":r(t))){var n="",i=encodeURIComponent;for(var o in t)n+="&"+i(o)+"="+i(t[o]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e}t.default=function(e,t,n,o,a){o&&"object"===("undefined"===typeof o?"undefined":r(o))&&(a||(o._t=new Date),o=i("",o).slice(1)),t.queryStringParams&&(e=i(e,t.queryStringParams));try{var s;(s=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(o?"POST":"GET",e,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,o&&s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var u=t.customHeaders;if(u)for(var l in u)s.setRequestHeader(l,u[l]);s.onreadystatechange=function(){s.readyState>3&&n&&n(s.responseText,s)},s.send(o)}catch(c){console}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(400)),o=d(n(401)),a=d(n(402)),s=d(n(403)),u=d(n(404)),l=d(n(405)),c=d(n(406)),f=d(n(407));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return r(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=i.defaults(t,this.options||{},{order:["querystring","cookie","localStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(o.default),this.addDetector(a.default),this.addDetector(s.default),this.addDetector(u.default),this.addDetector(l.default),this.addDetector(c.default),this.addDetector(f.default)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}}));var r=void 0;if(n.forEach((function(e){if(!r){var n=t.services.languageUtils.formatLanguageCode(e);t.options.checkWhitelist&&!t.services.languageUtils.isWhitelisted(n)||(r=n)}})),!r){var i=this.i18nOptions.fallbackLng;"string"===typeof i&&(i=[i]),i||(i=[]),r="[object Array]"===Object.prototype.toString.apply(i)?i[0]:i[0]||i.default&&i.default[0]}return r}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();p.type="languageDetector",t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=function(e){return i.call(o.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},t.extend=function(e){return i.call(o.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e};var r=[],i=r.forEach,o=r.slice},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){var i=void 0;if(n){var o=new Date;o.setTime(o.getTime()+60*n*1e3),i="; expires="+o.toGMTString()}else i="";r=r?"domain="+r+";":"",document.cookie=e+"="+t+i+";"+r+"path=/"},i=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null};t.default={name:"cookie",lookup:function(e){var t=void 0;if(e.lookupCookie&&"undefined"!==typeof document){var n=i(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!==typeof document&&r(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"querystring",lookup:function(e){var t=void 0;if("undefined"!==typeof window)for(var n=window.location.search.substring(1).split("&"),r=0;r<n.length;r++){var i=n[r].indexOf("=");if(i>0)n[r].substring(0,i)===e.lookupQuerystring&&(t=n[r].substring(i+1))}return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0;try{r="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(i){r=!1}t.default={name:"localStorage",lookup:function(e){var t=void 0;if(e.lookupLocalStorage&&r){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&r&&window.localStorage.setItem(t.lookupLocalStorage,e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"navigator",lookup:function(e){var t=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"htmlTag",lookup:function(e){var t=void 0,n=e.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(t=n.getAttribute("lang")),t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"path",lookup:function(e){var t=void 0;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"===typeof e.lookupFromPathIndex){if("string"!==typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"subdomain",lookup:function(e){var t=void 0;if("undefined"!==typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"===typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){var r=n(250);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Flex=t.Box=void 0;u(n(0));var r=u(n(2)),i=n(53),o=function(e){if(e&&e.__esModule)return e;var t=s();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}}n.default=e,t&&t.set(e,n);return n}(n(155)),a=u(n(287));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}var l=(0,r.default)("div",{shouldForwardProp:a.default})({boxSizing:"border-box",margin:0,minWidth:0},(function(e){return(0,o.default)(e.__css)(e.theme)}),(function(e){var t=e.theme,n=e.variant,r=e.tx,i=void 0===r?"variants":r;return(0,o.default)((0,o.get)(t,i+"."+n,(0,o.get)(t,n)))(t)}),(function(e){return(0,o.default)(e.sx)(e.theme)}),(function(e){return e.css}),(0,i.compose)(i.space,i.layout,i.typography,i.color,i.flexbox));t.Box=l;var c=(0,r.default)(l)({display:"flex"});t.Flex=c},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i=1,o={},a=!1,s=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){c(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&c(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){c(e.data)},r=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;r=function(t){var n=s.createElement("script");n.onreadystatechange=function(){c(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():r=function(e){setTimeout(c,0,e)},u.setImmediate=function(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return o[i]=a,r(i),i++},u.clearImmediate=l}function l(e){delete o[e]}function c(e){if(a)setTimeout(c,0,e);else{var t=o[e];if(t){a=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{l(e),a=!1}}}}}("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,n(79),n(130))},function(e,t){var n=function(e){void 0==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};n.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++){e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0}},n.prototype.init_by_array=function(e,t){var n,r,i;for(this.init_seed(19650218),n=1,r=0,i=this.N>t?this.N:t;i;i--){var o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1664525*((4294901760&o)>>>16)<<16)+1664525*(65535&o))+e[r]+r,this.mt[n]>>>=0,r++,++n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),r>=t&&(r=0)}for(i=this.N-1;i;i--){o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1566083941*((4294901760&o)>>>16)<<16)+1566083941*(65535&o))-n,this.mt[n]>>>=0,++n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648},n.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[1&e];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},n.prototype.random_int31=function(){return this.random_int()>>>1},n.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},n.prototype.random=function(){return this.random_int()*(1/4294967296)},n.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},n.prototype.random_long=function(){return(67108864*(this.random_int()>>>5)+(this.random_int()>>>6))*(1/9007199254740992)},e.exports=n},function(e,t,n){var r=n(414);e.exports=function(e){var t=document.createElement("div");return t.style.borderRadius="50px",t.style.overflow="hidden",t.style.padding="0px",t.style.margin="0px",t.style.width=e+"px",t.style.height=e+"px",t.style.display="inline-block",{paper:r(t,100,100),container:t}}},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){var r,i;r=[n(2)],void 0===(i=function(e){function t(r){if(t.is(r,"function"))return n?r():e.on("raphael.DOMload",r);if(t.is(r,E))return t._engine.create[h](t,r.splice(0,3+t.is(r[0],M))).add(r);var i=Array.prototype.slice.call(arguments,0);if(t.is(i[i.length-1],"function")){var o=i.pop();return n?o.call(t._engine.create[h](t,i)):e.on("raphael.DOMload",(function(){o.call(t._engine.create[h](t,i))}))}return t._engine.create[h](t,arguments)}t.version="2.3.0",t.eve=e;var n,r,i,o,a=/[, ]+/,s={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},u=/\{(\d+)\}/g,l="hasOwnProperty",c={doc:document,win:window},f={was:Object.prototype[l].call(c.win,"Raphael"),is:c.win.Raphael},d=function(){this.ca=this.customAttributes={}},h="apply",p="concat",g="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,y="",v=" ",m=String,b="split",w="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[b](v),x={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},_=m.prototype.toLowerCase,k=Math,S=k.max,T=k.min,C=k.abs,A=k.pow,O=k.PI,M="number",E="array",P=Object.prototype.toString,I=(t._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),D={NaN:1,Infinity:1,"-Infinity":1},L=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,R=k.round,N=parseFloat,j=parseInt,B=m.prototype.toUpperCase,F=t._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},z=t._availableAnimAttrs={blur:M,"clip-rect":"csv",cx:M,cy:M,fill:"colour","fill-opacity":M,"font-size":M,height:M,opacity:M,path:"path",r:M,rx:M,ry:M,stroke:"colour","stroke-opacity":M,"stroke-width":M,transform:"transform",width:M,x:M,y:M},V=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,H={hs:1,rg:1},U=/,?([achlmqrstvxz]),?/gi,G=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,J=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,X=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,W=(t._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),q=function(e,t){return N(e)-N(t)},Z=function(e){return e},K=t._rectPath=function(e,t,n,r,i){return i?[["M",e+i,t],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]]},Y=function(e,t,n,r){return null==r&&(r=n),[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]]},$=t._getPath={path:function(e){return e.attr("path")},circle:function(e){var t=e.attrs;return Y(t.cx,t.cy,t.r)},ellipse:function(e){var t=e.attrs;return Y(t.cx,t.cy,t.rx,t.ry)},rect:function(e){var t=e.attrs;return K(t.x,t.y,t.width,t.height,t.r)},image:function(e){var t=e.attrs;return K(t.x,t.y,t.width,t.height)},text:function(e){var t=e._getBBox();return K(t.x,t.y,t.width,t.height)},set:function(e){var t=e._getBBox();return K(t.x,t.y,t.width,t.height)}},Q=t.mapPath=function(e,t){if(!t)return e;var n,r,i,o,a,s,u;for(i=0,a=(e=Ae(e)).length;i<a;i++)for(o=1,s=(u=e[i]).length;o<s;o+=2)n=t.x(u[o],u[o+1]),r=t.y(u[o],u[o+1]),u[o]=n,u[o+1]=r;return e};if(t._g=c,t.type=c.win.SVGAngle||c.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==t.type){var ee,te=c.doc.createElement("div");if(te.innerHTML='<v:shape adj="1"/>',(ee=te.firstChild).style.behavior="url(#default#VML)",!ee||"object"!=typeof ee.adj)return t.type=y;te=null}function ne(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)e[l](n)&&(t[n]=ne(e[n]));return t}t.svg=!(t.vml="VML"==t.type),t._Paper=d,t.fn=r=d.prototype=t.prototype,t._id=0,t.is=function(e,t){return"finite"==(t=_.call(t))?!D[l](+e):"array"==t?e instanceof Array:"null"==t&&null===e||t==typeof e&&null!==e||"object"==t&&e===Object(e)||"array"==t&&Array.isArray&&Array.isArray(e)||P.call(e).slice(8,-1).toLowerCase()==t},t.angle=function(e,n,r,i,o,a){if(null==o){var s=e-r,u=n-i;return s||u?(180+180*k.atan2(-u,-s)/O+360)%360:0}return t.angle(e,n,o,a)-t.angle(r,i,o,a)},t.rad=function(e){return e%360*O/180},t.deg=function(e){return Math.round(180*e/O%360*1e3)/1e3},t.snapTo=function(e,n,r){if(r=t.is(r,"finite")?r:10,t.is(e,E)){for(var i=e.length;i--;)if(C(e[i]-n)<=r)return e[i]}else{var o=n%(e=+e);if(o<r)return n-o;if(o>e-r)return n-o+e}return n},t.createUUID=(i=/[xy]/g,o=function(e){var t=16*k.random()|0;return("x"==e?t:3&t|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(i,o).toUpperCase()}),t.setWindow=function(n){e("raphael.setWindow",t,c.win,n),c.win=n,c.doc=c.win.document,t._engine.initWin&&t._engine.initWin(c.win)};var re=function(e){if(t.vml){var n,r=/^\s+|\s+$/g;try{var i=new ActiveXObject("htmlfile");i.write("<body>"),i.close(),n=i.body}catch(e){n=createPopup().document.body}var o=n.createTextRange();re=le((function(e){try{n.style.color=m(e).replace(r,y);var t=o.queryCommandValue("ForeColor");return"#"+("000000"+(t=(255&t)<<16|65280&t|(16711680&t)>>>16).toString(16)).slice(-6)}catch(e){return"none"}}))}else{var a=c.doc.createElement("i");a.title="Rapha\xebl Colour Picker",a.style.display="none",c.doc.body.appendChild(a),re=le((function(e){return a.style.color=e,c.doc.defaultView.getComputedStyle(a,y).getPropertyValue("color")}))}return re(e)},ie=function(){return"hsb("+[this.h,this.s,this.b]+")"},oe=function(){return"hsl("+[this.h,this.s,this.l]+")"},ae=function(){return this.hex},se=function(e,n,r){if(null==n&&t.is(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(r=e.b,n=e.g,e=e.r),null==n&&t.is(e,"string")){var i=t.getRGB(e);e=i.r,n=i.g,r=i.b}return(e>1||n>1||r>1)&&(e/=255,n/=255,r/=255),[e,n,r]},ue=function(e,n,r,i){var o={r:e*=255,g:n*=255,b:r*=255,hex:t.rgb(e,n,r),toString:ae};return t.is(i,"finite")&&(o.opacity=i),o};function le(e,t,n){return function r(){var i=Array.prototype.slice.call(arguments,0),o=i.join("\u2400"),a=r.cache=r.cache||{},s=r.count=r.count||[];return a[l](o)?(function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}(s,o),n?n(a[o]):a[o]):(s.length>=1e3&&delete a[s.shift()],s.push(o),a[o]=e[h](t,i),n?n(a[o]):a[o])}}function ce(){return this.hex}function fe(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var o=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4==r?o[3]={x:+e[0],y:+e[1]}:i-2==r&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[i-2],y:+e[i-1]}:i-4==r?o[3]=o[2]:r||(o[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}t.color=function(e){var n;return t.is(e,"object")&&"h"in e&&"s"in e&&"b"in e?(n=t.hsb2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.hex=n.hex):t.is(e,"object")&&"h"in e&&"s"in e&&"l"in e?(n=t.hsl2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.hex=n.hex):(t.is(e,"string")&&(e=t.getRGB(e)),t.is(e,"object")&&"r"in e&&"g"in e&&"b"in e?(n=t.rgb2hsl(e),e.h=n.h,e.s=n.s,e.l=n.l,n=t.rgb2hsb(e),e.v=n.b):(e={hex:"none"}).r=e.g=e.b=e.h=e.s=e.v=e.l=-1),e.toString=ae,e},t.hsb2rgb=function(e,t,n,r){var i,o,a,s,u;return this.is(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(n=e.b,t=e.s,r=e.o,e=e.h),s=(u=n*t)*(1-C((e=(e*=360)%360/60)%2-1)),i=o=a=n-u,ue(i+=[u,s,0,0,s,u][e=~~e],o+=[s,u,u,s,0,0][e],a+=[0,0,s,u,u,s][e],r)},t.hsl2rgb=function(e,t,n,r){var i,o,a,s,u;return this.is(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(n=e.l,t=e.s,e=e.h),(e>1||t>1||n>1)&&(e/=360,t/=100,n/=100),s=(u=2*t*(n<.5?n:1-n))*(1-C((e=(e*=360)%360/60)%2-1)),i=o=a=n-u/2,ue(i+=[u,s,0,0,s,u][e=~~e],o+=[s,u,u,s,0,0][e],a+=[0,0,s,u,u,s][e],r)},t.rgb2hsb=function(e,t,n){var r,i;return e=(n=se(e,t,n))[0],t=n[1],n=n[2],{h:((0==(i=(r=S(e,t,n))-T(e,t,n))?null:r==e?(t-n)/i:r==t?(n-e)/i+2:(e-t)/i+4)+360)%6*60/360,s:0==i?0:i/r,b:r,toString:ie}},t.rgb2hsl=function(e,t,n){var r,i,o,a;return e=(n=se(e,t,n))[0],t=n[1],n=n[2],r=((i=S(e,t,n))+(o=T(e,t,n)))/2,{h:((0==(a=i-o)?null:i==e?(t-n)/a:i==t?(n-e)/a+2:(e-t)/a+4)+360)%6*60/360,s:0==a?0:r<.5?a/(2*r):a/(2-2*r),l:r,toString:oe}},t._path2string=function(){return this.join(",").replace(U,"$1")},t._preload=function(e,t){var n=c.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){t.call(this),this.onload=null,c.doc.body.removeChild(this)},n.onerror=function(){c.doc.body.removeChild(this)},c.doc.body.appendChild(n),n.src=e},t.getRGB=le((function(e){if(!e||(e=m(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ce};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none",toString:ce};!H[l](e.toLowerCase().substring(0,2))&&"#"!=e.charAt()&&(e=re(e));var n,r,i,o,a,s,u=e.match(I);return u?(u[2]&&(i=j(u[2].substring(5),16),r=j(u[2].substring(3,5),16),n=j(u[2].substring(1,3),16)),u[3]&&(i=j((a=u[3].charAt(3))+a,16),r=j((a=u[3].charAt(2))+a,16),n=j((a=u[3].charAt(1))+a,16)),u[4]&&(s=u[4][b](V),n=N(s[0]),"%"==s[0].slice(-1)&&(n*=2.55),r=N(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),i=N(s[2]),"%"==s[2].slice(-1)&&(i*=2.55),"rgba"==u[1].toLowerCase().slice(0,4)&&(o=N(s[3])),s[3]&&"%"==s[3].slice(-1)&&(o/=100)),u[5]?(s=u[5][b](V),n=N(s[0]),"%"==s[0].slice(-1)&&(n*=2.55),r=N(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),i=N(s[2]),"%"==s[2].slice(-1)&&(i*=2.55),("deg"==s[0].slice(-3)||"\xb0"==s[0].slice(-1))&&(n/=360),"hsba"==u[1].toLowerCase().slice(0,4)&&(o=N(s[3])),s[3]&&"%"==s[3].slice(-1)&&(o/=100),t.hsb2rgb(n,r,i,o)):u[6]?(s=u[6][b](V),n=N(s[0]),"%"==s[0].slice(-1)&&(n*=2.55),r=N(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),i=N(s[2]),"%"==s[2].slice(-1)&&(i*=2.55),("deg"==s[0].slice(-3)||"\xb0"==s[0].slice(-1))&&(n/=360),"hsla"==u[1].toLowerCase().slice(0,4)&&(o=N(s[3])),s[3]&&"%"==s[3].slice(-1)&&(o/=100),t.hsl2rgb(n,r,i,o)):((u={r:n,g:r,b:i,toString:ce}).hex="#"+(16777216|i|r<<8|n<<16).toString(16).slice(1),t.is(o,"finite")&&(u.opacity=o),u)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ce}}),t),t.hsb=le((function(e,n,r){return t.hsb2rgb(e,n,r).hex})),t.hsl=le((function(e,n,r){return t.hsl2rgb(e,n,r).hex})),t.rgb=le((function(e,t,n){function r(e){return e+.5|0}return"#"+(16777216|r(n)|r(t)<<8|r(e)<<16).toString(16).slice(1)})),t.getColor=function(e){var t=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||.75},n=this.hsb2rgb(t.h,t.s,t.b);return t.h+=.075,t.h>1&&(t.h=0,t.s-=.2,t.s<=0&&(this.getColor.start={h:0,s:1,b:t.b})),n.hex},t.getColor.reset=function(){delete this.start},t.parsePathString=function(e){if(!e)return null;var n=de(e);if(n.arr)return be(n.arr);var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[];return t.is(e,E)&&t.is(e[0],E)&&(i=be(e)),i.length||m(e).replace(G,(function(e,t,n){var o=[],a=t.toLowerCase();if(n.replace(X,(function(e,t){t&&o.push(+t)})),"m"==a&&o.length>2&&(i.push([t][p](o.splice(0,2))),a="l",t="m"==t?"l":"L"),"r"==a)i.push([t][p](o));else for(;o.length>=r[a]&&(i.push([t][p](o.splice(0,r[a]))),r[a]););})),i.toString=t._path2string,n.arr=be(i),i},t.parseTransformString=le((function(e){if(!e)return null;var n=[];return t.is(e,E)&&t.is(e[0],E)&&(n=be(e)),n.length||m(e).replace(J,(function(e,t,r){var i=[];_.call(t),r.replace(X,(function(e,t){t&&i.push(+t)})),n.push([t][p](i))})),n.toString=t._path2string,n}),this,(function(e){if(!e)return e;for(var t=[],n=0;n<e.length;n++){for(var r=[],i=0;i<e[n].length;i++)r.push(e[n][i]);t.push(r)}return t}));var de=function e(t){var n=e.ps=e.ps||{};return n[t]?n[t].sleep=100:n[t]={sleep:100},setTimeout((function(){for(var e in n)n[l](e)&&e!=t&&(n[e].sleep--,!n[e].sleep&&delete n[e])})),n[t]};function he(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n}function pe(e,t,n,r,i,o,a,s,u){null==u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,h=0;h<12;h++){var p=l*c[h]+l,g=he(p,e,n,i,a),y=he(p,t,r,o,s),v=g*g+y*y;d+=f[h]*k.sqrt(v)}return l*d}function ge(e,t,n,r,i,o,a,s){if(!(S(e,n)<T(i,a)||T(e,n)>S(i,a)||S(t,r)<T(o,s)||T(t,r)>S(o,s))){var u=(e-n)*(o-s)-(t-r)*(i-a);if(u){var l=((e*r-t*n)*(i-a)-(e-n)*(i*s-o*a))/u,c=((e*r-t*n)*(o-s)-(t-r)*(i*s-o*a))/u,f=+l.toFixed(2),d=+c.toFixed(2);if(!(f<+T(e,n).toFixed(2)||f>+S(e,n).toFixed(2)||f<+T(i,a).toFixed(2)||f>+S(i,a).toFixed(2)||d<+T(t,r).toFixed(2)||d>+S(t,r).toFixed(2)||d<+T(o,s).toFixed(2)||d>+S(o,s).toFixed(2)))return{x:l,y:c}}}}function ye(e,n,r){var i=t.bezierBBox(e),o=t.bezierBBox(n);if(!t.isBBoxIntersect(i,o))return r?0:[];for(var a=pe.apply(0,e),s=pe.apply(0,n),u=S(~~(a/5),1),l=S(~~(s/5),1),c=[],f=[],d={},h=r?0:[],p=0;p<u+1;p++){var g=t.findDotsAtSegment.apply(t,e.concat(p/u));c.push({x:g.x,y:g.y,t:p/u})}for(p=0;p<l+1;p++)g=t.findDotsAtSegment.apply(t,n.concat(p/l)),f.push({x:g.x,y:g.y,t:p/l});for(p=0;p<u;p++)for(var y=0;y<l;y++){var v=c[p],m=c[p+1],b=f[y],w=f[y+1],x=C(m.x-v.x)<.001?"y":"x",_=C(w.x-b.x)<.001?"y":"x",k=ge(v.x,v.y,m.x,m.y,b.x,b.y,w.x,w.y);if(k){if(d[k.x.toFixed(4)]==k.y.toFixed(4))continue;d[k.x.toFixed(4)]=k.y.toFixed(4);var A=v.t+C((k[x]-v[x])/(m[x]-v[x]))*(m.t-v.t),O=b.t+C((k[_]-b[_])/(w[_]-b[_]))*(w.t-b.t);A>=0&&A<=1.001&&O>=0&&O<=1.001&&(r?h++:h.push({x:k.x,y:k.y,t1:T(A,1),t2:T(O,1)}))}}return h}function ve(e,n,r){e=t._path2curve(e),n=t._path2curve(n);for(var i,o,a,s,u,l,c,f,d,h,p=r?0:[],g=0,y=e.length;g<y;g++){var v=e[g];if("M"==v[0])i=u=v[1],o=l=v[2];else{"C"==v[0]?(d=[i,o].concat(v.slice(1)),i=d[6],o=d[7]):(d=[i,o,i,o,u,l,u,l],i=u,o=l);for(var m=0,b=n.length;m<b;m++){var w=n[m];if("M"==w[0])a=c=w[1],s=f=w[2];else{"C"==w[0]?(h=[a,s].concat(w.slice(1)),a=h[6],s=h[7]):(h=[a,s,a,s,c,f,c,f],a=c,s=f);var x=ye(d,h,r);if(r)p+=x;else{for(var _=0,k=x.length;_<k;_++)x[_].segment1=g,x[_].segment2=m,x[_].bez1=d,x[_].bez2=h;p=p.concat(x)}}}}}return p}t.findDotsAtSegment=function(e,t,n,r,i,o,a,s,u){var l=1-u,c=A(l,3),f=A(l,2),d=u*u,h=d*u,p=c*e+3*f*u*n+3*l*u*u*i+h*a,g=c*t+3*f*u*r+3*l*u*u*o+h*s,y=e+2*u*(n-e)+d*(i-2*n+e),v=t+2*u*(r-t)+d*(o-2*r+t),m=n+2*u*(i-n)+d*(a-2*i+n),b=r+2*u*(o-r)+d*(s-2*o+r),w=l*e+u*n,x=l*t+u*r,_=l*i+u*a,S=l*o+u*s,T=90-180*k.atan2(y-m,v-b)/O;return(y>m||v<b)&&(T+=180),{x:p,y:g,m:{x:y,y:v},n:{x:m,y:b},start:{x:w,y:x},end:{x:_,y:S},alpha:T}},t.bezierBBox=function(e,n,r,i,o,a,s,u){t.is(e,"array")||(e=[e,n,r,i,o,a,s,u]);var l=Ce.apply(null,e);return{x:l.min.x,y:l.min.y,x2:l.max.x,y2:l.max.y,width:l.max.x-l.min.x,height:l.max.y-l.min.y}},t.isPointInsideBBox=function(e,t,n){return t>=e.x&&t<=e.x2&&n>=e.y&&n<=e.y2},t.isBBoxIntersect=function(e,n){var r=t.isPointInsideBBox;return r(n,e.x,e.y)||r(n,e.x2,e.y)||r(n,e.x,e.y2)||r(n,e.x2,e.y2)||r(e,n.x,n.y)||r(e,n.x2,n.y)||r(e,n.x,n.y2)||r(e,n.x2,n.y2)||(e.x<n.x2&&e.x>n.x||n.x<e.x2&&n.x>e.x)&&(e.y<n.y2&&e.y>n.y||n.y<e.y2&&n.y>e.y)},t.pathIntersection=function(e,t){return ve(e,t)},t.pathIntersectionNumber=function(e,t){return ve(e,t,1)},t.isPointInsidePath=function(e,n,r){var i=t.pathBBox(e);return t.isPointInsideBBox(i,n,r)&&ve(e,[["M",n,r],["H",i.x2+10]],1)%2==1},t._removedFactory=function(t){return function(){e("raphael.log",null,"Rapha\xebl: you are calling to method \u201c"+t+"\u201d of removed object",t)}};var me=t.pathBBox=function(e){var t=de(e);if(t.bbox)return ne(t.bbox);if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var n,r=0,i=0,o=[],a=[],s=0,u=(e=Ae(e)).length;s<u;s++)if("M"==(n=e[s])[0])r=n[1],i=n[2],o.push(r),a.push(i);else{var l=Ce(r,i,n[1],n[2],n[3],n[4],n[5],n[6]);o=o[p](l.min.x,l.max.x),a=a[p](l.min.y,l.max.y),r=n[5],i=n[6]}var c=T[h](0,o),f=T[h](0,a),d=S[h](0,o),g=S[h](0,a),y=d-c,v=g-f,m={x:c,y:f,x2:d,y2:g,width:y,height:v,cx:c+y/2,cy:f+v/2};return t.bbox=ne(m),m},be=function(e){var n=ne(e);return n.toString=t._path2string,n},we=t._pathToRelative=function(e){var n=de(e);if(n.rel)return be(n.rel);t.is(e,E)&&t.is(e&&e[0],E)||(e=t.parsePathString(e));var r=[],i=0,o=0,a=0,s=0,u=0;"M"==e[0][0]&&(a=i=e[0][1],s=o=e[0][2],u++,r.push(["M",i,o]));for(var l=u,c=e.length;l<c;l++){var f=r[l]=[],d=e[l];if(d[0]!=_.call(d[0]))switch(f[0]=_.call(d[0]),f[0]){case"a":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+(d[6]-i).toFixed(3),f[7]=+(d[7]-o).toFixed(3);break;case"v":f[1]=+(d[1]-o).toFixed(3);break;case"m":a=d[1],s=d[2];default:for(var h=1,p=d.length;h<p;h++)f[h]=+(d[h]-(h%2?i:o)).toFixed(3)}else{f=r[l]=[],"m"==d[0]&&(a=d[1]+i,s=d[2]+o);for(var g=0,y=d.length;g<y;g++)r[l][g]=d[g]}var v=r[l].length;switch(r[l][0]){case"z":i=a,o=s;break;case"h":i+=+r[l][v-1];break;case"v":o+=+r[l][v-1];break;default:i+=+r[l][v-2],o+=+r[l][v-1]}}return r.toString=t._path2string,n.rel=be(r),r},xe=t._pathToAbsolute=function(e){var n=de(e);if(n.abs)return be(n.abs);if(t.is(e,E)&&t.is(e&&e[0],E)||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var r=[],i=0,o=0,a=0,s=0,u=0;"M"==e[0][0]&&(a=i=+e[0][1],s=o=+e[0][2],u++,r[0]=["M",i,o]);for(var l,c,f=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),d=u,h=e.length;d<h;d++){if(r.push(l=[]),(c=e[d])[0]!=B.call(c[0]))switch(l[0]=B.call(c[0]),l[0]){case"A":l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=+(c[6]+i),l[7]=+(c[7]+o);break;case"V":l[1]=+c[1]+o;break;case"H":l[1]=+c[1]+i;break;case"R":for(var g=[i,o][p](c.slice(1)),y=2,v=g.length;y<v;y++)g[y]=+g[y]+i,g[++y]=+g[y]+o;r.pop(),r=r[p](fe(g,f));break;case"M":a=+c[1]+i,s=+c[2]+o;default:for(y=1,v=c.length;y<v;y++)l[y]=+c[y]+(y%2?i:o)}else if("R"==c[0])g=[i,o][p](c.slice(1)),r.pop(),r=r[p](fe(g,f)),l=["R"][p](c.slice(-2));else for(var m=0,b=c.length;m<b;m++)l[m]=c[m];switch(l[0]){case"Z":i=a,o=s;break;case"H":i=l[1];break;case"V":o=l[1];break;case"M":a=l[l.length-2],s=l[l.length-1];default:i=l[l.length-2],o=l[l.length-1]}}return r.toString=t._path2string,n.abs=be(r),r},_e=function(e,t,n,r){return[e,t,n,r,n,r]},ke=function(e,t,n,r,i,o){return[1/3*e+2/3*n,1/3*t+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},Se=function e(t,n,r,i,o,a,s,u,l,c){var f,d=120*O/180,h=O/180*(+o||0),g=[],y=le((function(e,t,n){return{x:e*k.cos(n)-t*k.sin(n),y:e*k.sin(n)+t*k.cos(n)}}));if(c)M=c[0],E=c[1],T=c[2],A=c[3];else{t=(f=y(t,n,-h)).x,n=f.y,u=(f=y(u,l,-h)).x,l=f.y,k.cos(O/180*o),k.sin(O/180*o);var v=(t-u)/2,m=(n-l)/2,w=v*v/(r*r)+m*m/(i*i);w>1&&(r*=w=k.sqrt(w),i*=w);var x=r*r,_=i*i,S=(a==s?-1:1)*k.sqrt(C((x*_-x*m*m-_*v*v)/(x*m*m+_*v*v))),T=S*r*m/i+(t+u)/2,A=S*-i*v/r+(n+l)/2,M=k.asin(((n-A)/i).toFixed(9)),E=k.asin(((l-A)/i).toFixed(9));(M=t<T?O-M:M)<0&&(M=2*O+M),(E=u<T?O-E:E)<0&&(E=2*O+E),s&&M>E&&(M-=2*O),!s&&E>M&&(E-=2*O)}var P=E-M;if(C(P)>d){var I=E,D=u,L=l;E=M+d*(s&&E>M?1:-1),g=e(u=T+r*k.cos(E),l=A+i*k.sin(E),r,i,o,0,s,D,L,[E,I,T,A])}P=E-M;var R=k.cos(M),N=k.sin(M),j=k.cos(E),B=k.sin(E),F=k.tan(P/4),z=4/3*r*F,V=4/3*i*F,H=[t,n],U=[t+z*N,n-V*R],G=[u+z*B,l-V*j],J=[u,l];if(U[0]=2*H[0]-U[0],U[1]=2*H[1]-U[1],c)return[U,G,J][p](g);for(var X=[],W=0,q=(g=[U,G,J][p](g).join()[b](",")).length;W<q;W++)X[W]=W%2?y(g[W-1],g[W],h).y:y(g[W],g[W+1],h).x;return X},Te=function(e,t,n,r,i,o,a,s,u){var l=1-u;return{x:A(l,3)*e+3*A(l,2)*u*n+3*l*u*u*i+A(u,3)*a,y:A(l,3)*t+3*A(l,2)*u*r+3*l*u*u*o+A(u,3)*s}},Ce=le((function(e,t,n,r,i,o,a,s){var u,l=i-2*n+e-(a-2*i+n),c=2*(n-e)-2*(i-n),f=e-n,d=(-c+k.sqrt(c*c-4*l*f))/2/l,p=(-c-k.sqrt(c*c-4*l*f))/2/l,g=[t,s],y=[e,a];return C(d)>"1e12"&&(d=.5),C(p)>"1e12"&&(p=.5),d>0&&d<1&&(u=Te(e,t,n,r,i,o,a,s,d),y.push(u.x),g.push(u.y)),p>0&&p<1&&(u=Te(e,t,n,r,i,o,a,s,p),y.push(u.x),g.push(u.y)),l=o-2*r+t-(s-2*o+r),f=t-r,d=(-(c=2*(r-t)-2*(o-r))+k.sqrt(c*c-4*l*f))/2/l,p=(-c-k.sqrt(c*c-4*l*f))/2/l,C(d)>"1e12"&&(d=.5),C(p)>"1e12"&&(p=.5),d>0&&d<1&&(u=Te(e,t,n,r,i,o,a,s,d),y.push(u.x),g.push(u.y)),p>0&&p<1&&(u=Te(e,t,n,r,i,o,a,s,p),y.push(u.x),g.push(u.y)),{min:{x:T[h](0,y),y:T[h](0,g)},max:{x:S[h](0,y),y:S[h](0,g)}}})),Ae=t._path2curve=le((function(e,t){var n=!t&&de(e);if(!t&&n.curve)return be(n.curve);for(var r=xe(e),i=t&&xe(t),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(e,t,n){var r,i;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"][p](Se[h](0,[t.x,t.y][p](e.slice(1))));break;case"S":"C"==n||"S"==n?(r=2*t.x-t.bx,i=2*t.y-t.by):(r=t.x,i=t.y),e=["C",r,i][p](e.slice(1));break;case"T":"Q"==n||"T"==n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"][p](ke(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"][p](ke(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"][p](_e(t.x,t.y,e[1],e[2]));break;case"H":e=["C"][p](_e(t.x,t.y,e[1],t.y));break;case"V":e=["C"][p](_e(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"][p](_e(t.x,t.y,t.X,t.Y))}return e},u=function(e,t){if(e[t].length>7){e[t].shift();for(var n=e[t];n.length;)c[t]="A",i&&(f[t]="A"),e.splice(t++,0,["C"][p](n.splice(0,6)));e.splice(t,1),v=S(r.length,i&&i.length||0)}},l=function(e,t,n,o,a){e&&t&&"M"==e[a][0]&&"M"!=t[a][0]&&(t.splice(a,0,["M",o.x,o.y]),n.bx=0,n.by=0,n.x=e[a][1],n.y=e[a][2],v=S(r.length,i&&i.length||0))},c=[],f=[],d="",g="",y=0,v=S(r.length,i&&i.length||0);y<v;y++){r[y]&&(d=r[y][0]),"C"!=d&&(c[y]=d,y&&(g=c[y-1])),r[y]=s(r[y],o,g),"A"!=c[y]&&"C"==d&&(c[y]="C"),u(r,y),i&&(i[y]&&(d=i[y][0]),"C"!=d&&(f[y]=d,y&&(g=f[y-1])),i[y]=s(i[y],a,g),"A"!=f[y]&&"C"==d&&(f[y]="C"),u(i,y)),l(r,i,o,a,y),l(i,r,a,o,y);var m=r[y],b=i&&i[y],w=m.length,x=i&&b.length;o.x=m[w-2],o.y=m[w-1],o.bx=N(m[w-4])||o.x,o.by=N(m[w-3])||o.y,a.bx=i&&(N(b[x-4])||a.x),a.by=i&&(N(b[x-3])||a.y),a.x=i&&b[x-2],a.y=i&&b[x-1]}return i||(n.curve=be(r)),i?[r,i]:r}),null,be),Oe=(t._parseDots=le((function(e){for(var n=[],r=0,i=e.length;r<i;r++){var o={},a=e[r].match(/^([^:]*):?([\d\.]*)/);if(o.color=t.getRGB(a[1]),o.color.error)return null;o.opacity=o.color.opacity,o.color=o.color.hex,a[2]&&(o.offset=a[2]+"%"),n.push(o)}for(r=1,i=n.length-1;r<i;r++)if(!n[r].offset){for(var s=N(n[r-1].offset||0),u=0,l=r+1;l<i;l++)if(n[l].offset){u=n[l].offset;break}u||(u=100,l=i);for(var c=((u=N(u))-s)/(l-r+1);r<l;r++)s+=c,n[r].offset=s+"%"}return n})),t._tear=function(e,t){e==t.top&&(t.top=e.prev),e==t.bottom&&(t.bottom=e.next),e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next)}),Me=(t._tofront=function(e,t){t.top!==e&&(Oe(e,t),e.next=null,e.prev=t.top,t.top.next=e,t.top=e)},t._toback=function(e,t){t.bottom!==e&&(Oe(e,t),e.next=t.bottom,e.prev=null,t.bottom.prev=e,t.bottom=e)},t._insertafter=function(e,t,n){Oe(e,n),t==n.top&&(n.top=e),t.next&&(t.next.prev=e),e.next=t.next,e.prev=t,t.next=e},t._insertbefore=function(e,t,n){Oe(e,n),t==n.bottom&&(n.bottom=e),t.prev&&(t.prev.next=e),e.prev=t.prev,t.prev=e,e.next=t},t.toMatrix=function(e,t){var n=me(e),r={_:{transform:y},getBBox:function(){return n}};return Ee(r,t),r.matrix}),Ee=(t.transformPath=function(e,t){return Q(e,Me(e,t))},t._extractTransform=function(e,n){if(null==n)return e._.transform;n=m(n).replace(/\.{3}|\u2026/g,e._.transform||y);var r,i,o=t.parseTransformString(n),a=0,s=1,u=1,l=e._,c=new De;if(l.transform=o||[],o)for(var f=0,d=o.length;f<d;f++){var h,p,g,v,b,w=o[f],x=w.length,_=m(w[0]).toLowerCase(),k=w[0]!=_,S=k?c.invert():0;"t"==_&&3==x?k?(h=S.x(0,0),p=S.y(0,0),g=S.x(w[1],w[2]),v=S.y(w[1],w[2]),c.translate(g-h,v-p)):c.translate(w[1],w[2]):"r"==_?2==x?(b=b||e.getBBox(1),c.rotate(w[1],b.x+b.width/2,b.y+b.height/2),a+=w[1]):4==x&&(k?(g=S.x(w[2],w[3]),v=S.y(w[2],w[3]),c.rotate(w[1],g,v)):c.rotate(w[1],w[2],w[3]),a+=w[1]):"s"==_?2==x||3==x?(b=b||e.getBBox(1),c.scale(w[1],w[x-1],b.x+b.width/2,b.y+b.height/2),s*=w[1],u*=w[x-1]):5==x&&(k?(g=S.x(w[3],w[4]),v=S.y(w[3],w[4]),c.scale(w[1],w[2],g,v)):c.scale(w[1],w[2],w[3],w[4]),s*=w[1],u*=w[2]):"m"==_&&7==x&&c.add(w[1],w[2],w[3],w[4],w[5],w[6]),l.dirtyT=1,e.matrix=c}e.matrix=c,l.sx=s,l.sy=u,l.deg=a,l.dx=r=c.e,l.dy=i=c.f,1==s&&1==u&&!a&&l.bbox?(l.bbox.x+=+r,l.bbox.y+=+i):l.dirtyT=1}),Pe=function(e){var t=e[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return 4==e.length?[t,0,e[2],e[3]]:[t,0];case"s":return 5==e.length?[t,1,1,e[3],e[4]]:3==e.length?[t,1,1]:[t,1]}},Ie=t._equaliseTransform=function(e,n){n=m(n).replace(/\.{3}|\u2026/g,e),e=t.parseTransformString(e)||[],n=t.parseTransformString(n)||[];for(var r,i,o,a,s=S(e.length,n.length),u=[],l=[],c=0;c<s;c++){if(o=e[c]||Pe(n[c]),a=n[c]||Pe(o),o[0]!=a[0]||"r"==o[0].toLowerCase()&&(o[2]!=a[2]||o[3]!=a[3])||"s"==o[0].toLowerCase()&&(o[3]!=a[3]||o[4]!=a[4]))return;for(u[c]=[],l[c]=[],r=0,i=S(o.length,a.length);r<i;r++)r in o&&(u[c][r]=o[r]),r in a&&(l[c][r]=a[r])}return{from:u,to:l}};function De(e,t,n,r,i,o){null!=e?(this.a=+e,this.b=+t,this.c=+n,this.d=+r,this.e=+i,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}t._getContainer=function(e,n,r,i){var o;if(null!=(o=null!=i||t.is(e,"object")?e:c.doc.getElementById(e)))return o.tagName?null==n?{container:o,width:o.style.pixelWidth||o.offsetWidth,height:o.style.pixelHeight||o.offsetHeight}:{container:o,width:n,height:r}:{container:1,x:e,y:n,width:r,height:i}},t.pathToRelative=we,t._engine={},t.path2curve=Ae,t.matrix=function(e,t,n,r,i,o){return new De(e,t,n,r,i,o)},function(e){function n(e){return e[0]*e[0]+e[1]*e[1]}function r(e){var t=k.sqrt(n(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}e.add=function(e,t,n,r,i,o){var a,s,u,l,c=[[],[],[]],f=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],d=[[e,n,i],[t,r,o],[0,0,1]];for(e&&e instanceof De&&(d=[[e.a,e.c,e.e],[e.b,e.d,e.f],[0,0,1]]),a=0;a<3;a++)for(s=0;s<3;s++){for(l=0,u=0;u<3;u++)l+=f[a][u]*d[u][s];c[a][s]=l}this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2]},e.invert=function(){var e=this,t=e.a*e.d-e.b*e.c;return new De(e.d/t,-e.b/t,-e.c/t,e.a/t,(e.c*e.f-e.d*e.e)/t,(e.b*e.e-e.a*e.f)/t)},e.clone=function(){return new De(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(e,t){this.add(1,0,0,1,e,t)},e.scale=function(e,t,n,r){null==t&&(t=e),(n||r)&&this.add(1,0,0,1,n,r),this.add(e,0,0,t,0,0),(n||r)&&this.add(1,0,0,1,-n,-r)},e.rotate=function(e,n,r){e=t.rad(e),n=n||0,r=r||0;var i=+k.cos(e).toFixed(9),o=+k.sin(e).toFixed(9);this.add(i,o,-o,i,n,r),this.add(1,0,0,1,-n,-r)},e.x=function(e,t){return e*this.a+t*this.c+this.e},e.y=function(e,t){return e*this.b+t*this.d+this.f},e.get=function(e){return+this[m.fromCharCode(97+e)].toFixed(4)},e.toString=function(){return t.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},e.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var i=[[this.a,this.c],[this.b,this.d]];e.scalex=k.sqrt(n(i[0])),r(i[0]),e.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*e.shear,i[1][1]-i[0][1]*e.shear],e.scaley=k.sqrt(n(i[1])),r(i[1]),e.shear/=e.scaley;var o=-i[0][1],a=i[1][1];return a<0?(e.rotate=t.deg(k.acos(a)),o<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(k.asin(o)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(e){var t=e||this[b]();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[t.dx,t.dy]:y)+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:y)+(t.rotate?"r"+[t.rotate,0,0]:y)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(De.prototype);for(var Le=function(){this.returnValue=!1},Re=function(){return this.originalEvent.preventDefault()},Ne=function(){this.cancelBubble=!0},je=function(){return this.originalEvent.stopPropagation()},Be=function(e){var t=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,n=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft;return{x:e.clientX+n,y:e.clientY+t}},Fe=c.doc.addEventListener?function(e,t,n,r){var i=function(e){var t=Be(e);return n.call(r,e,t.x,t.y)};if(e.addEventListener(t,i,!1),g&&x[t]){var o=function(t){for(var i=Be(t),o=t,a=0,s=t.targetTouches&&t.targetTouches.length;a<s;a++)if(t.targetTouches[a].target==e){(t=t.targetTouches[a]).originalEvent=o,t.preventDefault=Re,t.stopPropagation=je;break}return n.call(r,t,i.x,i.y)};e.addEventListener(x[t],o,!1)}return function(){return e.removeEventListener(t,i,!1),g&&x[t]&&e.removeEventListener(x[t],o,!1),!0}}:c.doc.attachEvent?function(e,t,n,r){var i=function(e){e=e||c.win.event;var t=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,i=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft,o=e.clientX+i,a=e.clientY+t;return e.preventDefault=e.preventDefault||Le,e.stopPropagation=e.stopPropagation||Ne,n.call(r,e,o,a)};return e.attachEvent("on"+t,i),function(){return e.detachEvent("on"+t,i),!0}}:void 0,ze=[],Ve=function(t){for(var n,r=t.clientX,i=t.clientY,o=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,a=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft,s=ze.length;s--;){if(n=ze[s],g&&t.touches){for(var u,l=t.touches.length;l--;)if((u=t.touches[l]).identifier==n.el._drag.id){r=u.clientX,i=u.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var f,d=n.el.node,h=d.nextSibling,p=d.parentNode,y=d.style.display;c.win.opera&&p.removeChild(d),d.style.display="none",f=n.el.paper.getElementByPoint(r,i),d.style.display=y,c.win.opera&&(h?p.insertBefore(d,h):p.appendChild(d)),f&&e("raphael.drag.over."+n.el.id,n.el,f),r+=a,i+=o,e("raphael.drag.move."+n.el.id,n.move_scope||n.el,r-n.el._drag.x,i-n.el._drag.y,r,i,t)}},He=function n(r){t.unmousemove(Ve).unmouseup(n);for(var i,o=ze.length;o--;)(i=ze[o]).el._drag={},e("raphael.drag.end."+i.el.id,i.end_scope||i.start_scope||i.move_scope||i.el,r);ze=[]},Ue=t.el={},Ge=w.length;Ge--;)!function(e){t[e]=Ue[e]=function(n,r){return t.is(n,"function")&&(this.events=this.events||[],this.events.push({name:e,f:n,unbind:Fe(this.shape||this.node||c.doc,e,n,r||this)})),this},t["un"+e]=Ue["un"+e]=function(n){for(var r=this.events||[],i=r.length;i--;)r[i].name!=e||!t.is(n,"undefined")&&r[i].f!=n||(r[i].unbind(),r.splice(i,1),!r.length&&delete this.events);return this}}(w[Ge]);Ue.data=function(n,r){var i=W[this.id]=W[this.id]||{};if(0==arguments.length)return i;if(1==arguments.length){if(t.is(n,"object")){for(var o in n)n[l](o)&&this.data(o,n[o]);return this}return e("raphael.data.get."+this.id,this,i[n],n),i[n]}return i[n]=r,e("raphael.data.set."+this.id,this,r,n),this},Ue.removeData=function(e){return null==e?delete W[this.id]:W[this.id]&&delete W[this.id][e],this},Ue.getData=function(){return ne(W[this.id]||{})},Ue.hover=function(e,t,n,r){return this.mouseover(e,n).mouseout(t,r||n)},Ue.unhover=function(e,t){return this.unmouseover(e).unmouseout(t)};var Je=[];function Xe(){return this.x+v+this.y+v+this.width+" \xd7 "+this.height}Ue.drag=function(n,r,i,o,a,s){function u(u){(u.originalEvent||u).preventDefault();var l=u.clientX,f=u.clientY,d=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,h=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft;if(this._drag.id=u.identifier,g&&u.touches)for(var p,y=u.touches.length;y--;)if(p=u.touches[y],this._drag.id=p.identifier,p.identifier==this._drag.id){l=p.clientX,f=p.clientY;break}this._drag.x=l+h,this._drag.y=f+d,!ze.length&&t.mousemove(Ve).mouseup(He),ze.push({el:this,move_scope:o,start_scope:a,end_scope:s}),r&&e.on("raphael.drag.start."+this.id,r),n&&e.on("raphael.drag.move."+this.id,n),i&&e.on("raphael.drag.end."+this.id,i),e("raphael.drag.start."+this.id,a||o||this,this._drag.x,this._drag.y,u)}return this._drag={},Je.push({el:this,start:u}),this.mousedown(u),this},Ue.onDragOver=function(t){t?e.on("raphael.drag.over."+this.id,t):e.unbind("raphael.drag.over."+this.id)},Ue.undrag=function(){for(var n=Je.length;n--;)Je[n].el==this&&(this.unmousedown(Je[n].start),Je.splice(n,1),e.unbind("raphael.drag.*."+this.id));!Je.length&&t.unmousemove(Ve).unmouseup(He),ze=[]},r.circle=function(e,n,r){var i=t._engine.circle(this,e||0,n||0,r||0);return this.__set__&&this.__set__.push(i),i},r.rect=function(e,n,r,i,o){var a=t._engine.rect(this,e||0,n||0,r||0,i||0,o||0);return this.__set__&&this.__set__.push(a),a},r.ellipse=function(e,n,r,i){var o=t._engine.ellipse(this,e||0,n||0,r||0,i||0);return this.__set__&&this.__set__.push(o),o},r.path=function(e){e&&!t.is(e,"string")&&!t.is(e[0],E)&&(e+=y);var n=t._engine.path(t.format[h](t,arguments),this);return this.__set__&&this.__set__.push(n),n},r.image=function(e,n,r,i,o){var a=t._engine.image(this,e||"about:blank",n||0,r||0,i||0,o||0);return this.__set__&&this.__set__.push(a),a},r.text=function(e,n,r){var i=t._engine.text(this,e||0,n||0,m(r));return this.__set__&&this.__set__.push(i),i},r.set=function(e){!t.is(e,"array")&&(e=Array.prototype.splice.call(arguments,0,arguments.length));var n=new ft(e);return this.__set__&&this.__set__.push(n),n.paper=this,n.type="set",n},r.setStart=function(e){this.__set__=e||this.set()},r.setFinish=function(e){var t=this.__set__;return delete this.__set__,t},r.getSize=function(){var e=this.canvas.parentNode;return{width:e.offsetWidth,height:e.offsetHeight}},r.setSize=function(e,n){return t._engine.setSize.call(this,e,n)},r.setViewBox=function(e,n,r,i,o){return t._engine.setViewBox.call(this,e,n,r,i,o)},r.top=r.bottom=null,r.raphael=t,r.getElementByPoint=function(e,t){var n,r,i,o,a,s,u,l=this.canvas,f=c.doc.elementFromPoint(e,t);if(c.win.opera&&"svg"==f.tagName){var d=(r=(n=l).getBoundingClientRect(),o=(i=n.ownerDocument).body,s=(a=i.documentElement).clientTop||o.clientTop||0,u=a.clientLeft||o.clientLeft||0,{y:r.top+(c.win.pageYOffset||a.scrollTop||o.scrollTop)-s,x:r.left+(c.win.pageXOffset||a.scrollLeft||o.scrollLeft)-u}),h=l.createSVGRect();h.x=e-d.x,h.y=t-d.y,h.width=h.height=1;var p=l.getIntersectionList(h,null);p.length&&(f=p[p.length-1])}if(!f)return null;for(;f.parentNode&&f!=l.parentNode&&!f.raphael;)f=f.parentNode;return f==this.canvas.parentNode&&(f=l),f&&f.raphael?this.getById(f.raphaelid):null},r.getElementsByBBox=function(e){var n=this.set();return this.forEach((function(r){t.isBBoxIntersect(r.getBBox(),e)&&n.push(r)})),n},r.getById=function(e){for(var t=this.bottom;t;){if(t.id==e)return t;t=t.next}return null},r.forEach=function(e,t){for(var n=this.bottom;n;){if(!1===e.call(t,n))return this;n=n.next}return this},r.getElementsByPoint=function(e,t){var n=this.set();return this.forEach((function(r){r.isPointInside(e,t)&&n.push(r)})),n},Ue.isPointInside=function(e,n){var r=this.realPath=$[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(r=t.transformPath(r,this.attr("transform"))),t.isPointInsidePath(r,e,n)},Ue.getBBox=function(e){if(this.removed)return{};var t=this._;return e?(!t.dirty&&t.bboxwt||(this.realPath=$[this.type](this),t.bboxwt=me(this.realPath),t.bboxwt.toString=Xe,t.dirty=0),t.bboxwt):((t.dirty||t.dirtyT||!t.bbox)&&(!t.dirty&&this.realPath||(t.bboxwt=0,this.realPath=$[this.type](this)),t.bbox=me(Q(this.realPath,this.matrix)),t.bbox.toString=Xe,t.dirty=t.dirtyT=0),t.bbox)},Ue.clone=function(){if(this.removed)return null;var e=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(e),e},Ue.glow=function(e){if("text"==this.type)return null;var t={width:((e=e||{}).width||10)+(+this.attr("stroke-width")||1),fill:e.fill||!1,opacity:null==e.opacity?.5:e.opacity,offsetx:e.offsetx||0,offsety:e.offsety||0,color:e.color||"#000"},n=t.width/2,r=this.paper,i=r.set(),o=this.realPath||$[this.type](this);o=this.matrix?Q(o,this.matrix):o;for(var a=1;a<n+1;a++)i.push(r.path(o).attr({stroke:t.color,fill:t.fill?t.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(t.width/n*a).toFixed(3),opacity:+(t.opacity/n).toFixed(3)}));return i.insertBefore(this).translate(t.offsetx,t.offsety)};var We=function(e,n,r,i,o,a,s,u,l){return null==l?pe(e,n,r,i,o,a,s,u):t.findDotsAtSegment(e,n,r,i,o,a,s,u,function(e,t,n,r,i,o,a,s,u){if(!(u<0||pe(e,t,n,r,i,o,a,s)<u)){var l,c=.5,f=1-c;for(l=pe(e,t,n,r,i,o,a,s,f);C(l-u)>.01;)l=pe(e,t,n,r,i,o,a,s,f+=(l<u?1:-1)*(c/=2));return f}}(e,n,r,i,o,a,s,u,l))},qe=function(e,n){return function(r,i,o){for(var a,s,u,l,c,f="",d={},h=0,p=0,g=(r=Ae(r)).length;p<g;p++){if("M"==(u=r[p])[0])a=+u[1],s=+u[2];else{if(h+(l=We(a,s,u[1],u[2],u[3],u[4],u[5],u[6]))>i){if(n&&!d.start){if(f+=["C"+(c=We(a,s,u[1],u[2],u[3],u[4],u[5],u[6],i-h)).start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],o)return f;d.start=f,f=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,u[5],u[6]].join(),h+=l,a=+u[5],s=+u[6];continue}if(!e&&!n)return{x:(c=We(a,s,u[1],u[2],u[3],u[4],u[5],u[6],i-h)).x,y:c.y,alpha:c.alpha}}h+=l,a=+u[5],s=+u[6]}f+=u.shift()+u}return d.end=f,(c=e?h:n?d:t.findDotsAtSegment(a,s,u[0],u[1],u[2],u[3],u[4],u[5],1)).alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},Ze=qe(1),Ke=qe(),Ye=qe(0,1);t.getTotalLength=Ze,t.getPointAtLength=Ke,t.getSubpath=function(e,t,n){if(this.getTotalLength(e)-n<1e-6)return Ye(e,t).end;var r=Ye(e,n,1);return t?Ye(r,t).end:r},Ue.getTotalLength=function(){var e=this.getPath();if(e)return this.node.getTotalLength?this.node.getTotalLength():Ze(e)},Ue.getPointAtLength=function(e){var t=this.getPath();if(t)return Ke(t,e)},Ue.getPath=function(){var e,n=t._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return n&&(e=n(this)),e},Ue.getSubpath=function(e,n){var r=this.getPath();if(r)return t.getSubpath(r,e,n)};var $e=t.easing_formulas={linear:function(e){return e},"<":function(e){return A(e,1.7)},">":function(e){return A(e,.48)},"<>":function(e){var t=.48-e/1.04,n=k.sqrt(.1734+t*t),r=n-t,i=-n-t,o=A(C(r),1/3)*(r<0?-1:1)+A(C(i),1/3)*(i<0?-1:1)+.5;return 3*(1-o)*o*o+o*o*o},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},elastic:function(e){return e==!!e?e:A(2,-10*e)*k.sin(2*O*(e-.075)/.3)+1},bounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}};$e.easeIn=$e["ease-in"]=$e["<"],$e.easeOut=$e["ease-out"]=$e[">"],$e.easeInOut=$e["ease-in-out"]=$e["<>"],$e["back-in"]=$e.backIn,$e["back-out"]=$e.backOut;var Qe=[],et=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,16)},tt=function n(){for(var r=+new Date,i=0;i<Qe.length;i++){var o=Qe[i];if(!o.el.removed&&!o.paused){var a,s,u=r-o.start,c=o.ms,f=o.easing,d=o.from,h=o.diff,g=o.to,y=(o.t,o.el),m={},b={};if(o.initstatus?(u=(o.initstatus*o.anim.top-o.prev)/(o.percent-o.prev)*c,o.status=o.initstatus,delete o.initstatus,o.stop&&Qe.splice(i--,1)):o.status=(o.prev+(o.percent-o.prev)*(u/c))/o.anim.top,!(u<0))if(u<c){var w=f(u/c);for(var x in d)if(d[l](x)){switch(z[x]){case M:a=+d[x]+w*c*h[x];break;case"colour":a="rgb("+[nt(R(d[x].r+w*c*h[x].r)),nt(R(d[x].g+w*c*h[x].g)),nt(R(d[x].b+w*c*h[x].b))].join(",")+")";break;case"path":a=[];for(var _=0,k=d[x].length;_<k;_++){a[_]=[d[x][_][0]];for(var S=1,T=d[x][_].length;S<T;S++)a[_][S]=+d[x][_][S]+w*c*h[x][_][S];a[_]=a[_].join(v)}a=a.join(v);break;case"transform":if(h[x].real)for(a=[],_=0,k=d[x].length;_<k;_++)for(a[_]=[d[x][_][0]],S=1,T=d[x][_].length;S<T;S++)a[_][S]=d[x][_][S]+w*c*h[x][_][S];else{var C=function(e){return+d[x][e]+w*c*h[x][e]};a=[["m",C(0),C(1),C(2),C(3),C(4),C(5)]]}break;case"csv":if("clip-rect"==x)for(a=[],_=4;_--;)a[_]=+d[x][_]+w*c*h[x][_];break;default:var A=[][p](d[x]);for(a=[],_=y.paper.customAttributes[x].length;_--;)a[_]=+A[_]+w*c*h[x][_]}m[x]=a}y.attr(m),function(t,n,r){setTimeout((function(){e("raphael.anim.frame."+t,n,r)}))}(y.id,y,o.anim)}else{if(function(n,r,i){setTimeout((function(){e("raphael.anim.frame."+r.id,r,i),e("raphael.anim.finish."+r.id,r,i),t.is(n,"function")&&n.call(r)}))}(o.callback,y,o.anim),y.attr(g),Qe.splice(i--,1),o.repeat>1&&!o.next){for(s in g)g[l](s)&&(b[s]=o.totalOrigin[s]);o.el.attr(b),ot(o.anim,o.el,o.anim.percents[0],null,o.totalOrigin,o.repeat-1)}o.next&&!o.stop&&ot(o.anim,o.el,o.next,null,o.totalOrigin,o.repeat)}}}Qe.length&&et(n)},nt=function(e){return e>255?255:e<0?0:e};function rt(e,t,n,r,i,o){var a=3*t,s=3*(r-t)-a,u=1-a-s,l=3*n,c=3*(i-n)-l,f=1-l-c;function d(e){return((u*e+s)*e+a)*e}return function(e,t){var n=function(e,t){var n,r,i,o,l,c;for(i=e,c=0;c<8;c++){if(o=d(i)-e,C(o)<t)return i;if(C(l=(3*u*i+2*s)*i+a)<1e-6)break;i-=o/l}if((i=e)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=d(i),C(o-e)<t)return i;e>o?n=i:r=i,i=(r-n)/2+n}return i}(e,t);return((f*n+c)*n+l)*n}(e,1/(200*o))}function it(e,t){var n=[],r={};if(this.ms=t,this.times=1,e){for(var i in e)e[l](i)&&(r[N(i)]=e[i],n.push(N(i)));n.sort(q)}this.anim=r,this.top=n[n.length-1],this.percents=n}function ot(n,r,i,o,s,u){i=N(i);var c,f,d,h,g,y,v=n.ms,w={},x={},_={};if(o)for(S=0,T=Qe.length;S<T;S++){var k=Qe[S];if(k.el.id==r.id&&k.anim==n){k.percent!=i?(Qe.splice(S,1),d=1):f=k,r.attr(k.totalOrigin);break}}else o=+x;for(var S=0,T=n.percents.length;S<T;S++){if(n.percents[S]==i||n.percents[S]>o*n.top){i=n.percents[S],g=n.percents[S-1]||0,v=v/n.top*(i-g),h=n.percents[S+1],c=n.anim[i];break}o&&r.attr(n.anim[n.percents[S]])}if(c){if(f)f.initstatus=o,f.start=new Date-f.ms*o;else{for(var C in c)if(c[l](C)&&(z[l](C)||r.paper.customAttributes[l](C)))switch(w[C]=r.attr(C),null==w[C]&&(w[C]=F[C]),x[C]=c[C],z[C]){case M:_[C]=(x[C]-w[C])/v;break;case"colour":w[C]=t.getRGB(w[C]);var A=t.getRGB(x[C]);_[C]={r:(A.r-w[C].r)/v,g:(A.g-w[C].g)/v,b:(A.b-w[C].b)/v};break;case"path":var O=Ae(w[C],x[C]),E=O[1];for(w[C]=O[0],_[C]=[],S=0,T=w[C].length;S<T;S++){_[C][S]=[0];for(var P=1,I=w[C][S].length;P<I;P++)_[C][S][P]=(E[S][P]-w[C][S][P])/v}break;case"transform":var D=r._,R=Ie(D[C],x[C]);if(R)for(w[C]=R.from,x[C]=R.to,_[C]=[],_[C].real=!0,S=0,T=w[C].length;S<T;S++)for(_[C][S]=[w[C][S][0]],P=1,I=w[C][S].length;P<I;P++)_[C][S][P]=(x[C][S][P]-w[C][S][P])/v;else{var j=r.matrix||new De,B={_:{transform:D.transform},getBBox:function(){return r.getBBox(1)}};w[C]=[j.a,j.b,j.c,j.d,j.e,j.f],Ee(B,x[C]),x[C]=B._.transform,_[C]=[(B.matrix.a-j.a)/v,(B.matrix.b-j.b)/v,(B.matrix.c-j.c)/v,(B.matrix.d-j.d)/v,(B.matrix.e-j.e)/v,(B.matrix.f-j.f)/v]}break;case"csv":var V=m(c[C])[b](a),H=m(w[C])[b](a);if("clip-rect"==C)for(w[C]=H,_[C]=[],S=H.length;S--;)_[C][S]=(V[S]-w[C][S])/v;x[C]=V;break;default:for(V=[][p](c[C]),H=[][p](w[C]),_[C]=[],S=r.paper.customAttributes[C].length;S--;)_[C][S]=((V[S]||0)-(H[S]||0))/v}var U=c.easing,G=t.easing_formulas[U];if(!G)if((G=m(U).match(L))&&5==G.length){var J=G;G=function(e){return rt(e,+J[1],+J[2],+J[3],+J[4],v)}}else G=Z;if(k={anim:n,percent:i,timestamp:y=c.start||n.start||+new Date,start:y+(n.del||0),status:0,initstatus:o||0,stop:!1,ms:v,easing:G,from:w,diff:_,to:x,el:r,callback:c.callback,prev:g,next:h,repeat:u||n.times,origin:r.attr(),totalOrigin:s},Qe.push(k),o&&!f&&!d&&(k.stop=!0,k.start=new Date-v*o,1==Qe.length))return tt();d&&(k.start=new Date-k.ms*o),1==Qe.length&&et(tt)}e("raphael.anim.start."+r.id,r,n)}}function at(e){for(var t=0;t<Qe.length;t++)Qe[t].el.paper==e&&Qe.splice(t--,1)}Ue.animateWith=function(e,n,r,i,o,a){if(this.removed)return a&&a.call(this),this;var s=r instanceof it?r:t.animation(r,i,o,a);ot(s,this,s.percents[0],null,this.attr());for(var u=0,l=Qe.length;u<l;u++)if(Qe[u].anim==n&&Qe[u].el==e){Qe[l-1].start=Qe[u].start;break}return this},Ue.onAnimation=function(t){return t?e.on("raphael.anim.frame."+this.id,t):e.unbind("raphael.anim.frame."+this.id),this},it.prototype.delay=function(e){var t=new it(this.anim,this.ms);return t.times=this.times,t.del=+e||0,t},it.prototype.repeat=function(e){var t=new it(this.anim,this.ms);return t.del=this.del,t.times=k.floor(S(e,0))||1,t},t.animation=function(e,n,r,i){if(e instanceof it)return e;!t.is(r,"function")&&r||(i=i||r||null,r=null),e=Object(e),n=+n||0;var o,a,s={};for(a in e)e[l](a)&&N(a)!=a&&N(a)+"%"!=a&&(o=!0,s[a]=e[a]);if(o)return r&&(s.easing=r),i&&(s.callback=i),new it({100:s},n);if(i){var u=0;for(var c in e){var f=j(c);e[l](c)&&f>u&&(u=f)}!e[u+="%"].callback&&(e[u].callback=i)}return new it(e,n)},Ue.animate=function(e,n,r,i){if(this.removed)return i&&i.call(this),this;var o=e instanceof it?e:t.animation(e,n,r,i);return ot(o,this,o.percents[0],null,this.attr()),this},Ue.setTime=function(e,t){return e&&null!=t&&this.status(e,T(t,e.ms)/e.ms),this},Ue.status=function(e,t){var n,r,i=[],o=0;if(null!=t)return ot(e,this,-1,T(t,1)),this;for(n=Qe.length;o<n;o++)if((r=Qe[o]).el.id==this.id&&(!e||r.anim==e)){if(e)return r.status;i.push({anim:r.anim,status:r.status})}return e?0:i},Ue.pause=function(t){for(var n=0;n<Qe.length;n++)Qe[n].el.id!=this.id||t&&Qe[n].anim!=t||!1!==e("raphael.anim.pause."+this.id,this,Qe[n].anim)&&(Qe[n].paused=!0);return this},Ue.resume=function(t){for(var n=0;n<Qe.length;n++)if(Qe[n].el.id==this.id&&(!t||Qe[n].anim==t)){var r=Qe[n];!1!==e("raphael.anim.resume."+this.id,this,r.anim)&&(delete r.paused,this.status(r.anim,r.status))}return this},Ue.stop=function(t){for(var n=0;n<Qe.length;n++)Qe[n].el.id!=this.id||t&&Qe[n].anim!=t||!1!==e("raphael.anim.stop."+this.id,this,Qe[n].anim)&&Qe.splice(n--,1);return this},e.on("raphael.remove",at),e.on("raphael.clear",at),Ue.toString=function(){return"Rapha\xebl\u2019s object"};var st,ut,lt,ct,ft=function e(t){if(this.items=[],this.length=0,this.type="set",t)for(var n=0,r=t.length;n<r;n++)!t[n]||t[n].constructor!=Ue.constructor&&t[n].constructor!=e||(this[this.items.length]=this.items[this.items.length]=t[n],this.length++)},dt=ft.prototype;for(var ht in dt.push=function(){for(var e,t,n=0,r=arguments.length;n<r;n++)!(e=arguments[n])||e.constructor!=Ue.constructor&&e.constructor!=ft||(this[t=this.items.length]=this.items[t]=e,this.length++);return this},dt.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},dt.forEach=function(e,t){for(var n=0,r=this.items.length;n<r;n++)if(!1===e.call(t,this.items[n],n))return this;return this},Ue)Ue[l](ht)&&(dt[ht]=function(e){return function(){var t=arguments;return this.forEach((function(n){n[e][h](n,t)}))}}(ht));return dt.attr=function(e,n){if(e&&t.is(e,E)&&t.is(e[0],"object"))for(var r=0,i=e.length;r<i;r++)this.items[r].attr(e[r]);else for(var o=0,a=this.items.length;o<a;o++)this.items[o].attr(e,n);return this},dt.clear=function(){for(;this.length;)this.pop()},dt.splice=function(e,t,n){e=e<0?S(this.length+e,0):e,t=S(0,T(this.length-e,t));var r,i=[],o=[],a=[];for(r=2;r<arguments.length;r++)a.push(arguments[r]);for(r=0;r<t;r++)o.push(this[e+r]);for(;r<this.length-e;r++)i.push(this[e+r]);var s=a.length;for(r=0;r<s+i.length;r++)this.items[e+r]=this[e+r]=r<s?a[r]:i[r-s];for(r=this.items.length=this.length-=t-s;this[r];)delete this[r++];return new ft(o)},dt.exclude=function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]==e)return this.splice(t,1),!0},dt.animate=function(e,n,r,i){(t.is(r,"function")||!r)&&(i=r||null);var o,a,s=this.items.length,u=s,l=this;if(!s)return this;i&&(a=function(){!--s&&i.call(l)}),r=t.is(r,"string")?r:a;var c=t.animation(e,n,r,a);for(o=this.items[--u].animate(c);u--;)this.items[u]&&!this.items[u].removed&&this.items[u].animateWith(o,c,c),this.items[u]&&!this.items[u].removed||s--;return this},dt.insertAfter=function(e){for(var t=this.items.length;t--;)this.items[t].insertAfter(e);return this},dt.getBBox=function(){for(var e=[],t=[],n=[],r=[],i=this.items.length;i--;)if(!this.items[i].removed){var o=this.items[i].getBBox();e.push(o.x),t.push(o.y),n.push(o.x+o.width),r.push(o.y+o.height)}return{x:e=T[h](0,e),y:t=T[h](0,t),x2:n=S[h](0,n),y2:r=S[h](0,r),width:n-e,height:r-t}},dt.clone=function(e){e=this.paper.set();for(var t=0,n=this.items.length;t<n;t++)e.push(this.items[t].clone());return e},dt.toString=function(){return"Rapha\xebl\u2018s set"},dt.glow=function(e){var t=this.paper.set();return this.forEach((function(n,r){var i=n.glow(e);null!=i&&i.forEach((function(e,n){t.push(e)}))})),t},dt.isPointInside=function(e,t){var n=!1;return this.forEach((function(r){if(r.isPointInside(e,t))return n=!0,!1})),n},t.registerFont=function(e){if(!e.face)return e;this.fonts=this.fonts||{};var t={w:e.w,face:{},glyphs:{}},n=e.face["font-family"];for(var r in e.face)e.face[l](r)&&(t.face[r]=e.face[r]);if(this.fonts[n]?this.fonts[n].push(t):this.fonts[n]=[t],!e.svg)for(var i in t.face["units-per-em"]=j(e.face["units-per-em"],10),e.glyphs)if(e.glyphs[l](i)){var o=e.glyphs[i];if(t.glyphs[i]={w:o.w,k:{},d:o.d&&"M"+o.d.replace(/[mlcxtrv]/g,(function(e){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[e]||"M"}))+"z"},o.k)for(var a in o.k)o[l](a)&&(t.glyphs[i].k[a]=o.k[a])}return e},r.getFont=function(e,n,r,i){if(i=i||"normal",r=r||"normal",n=+n||{normal:400,bold:700,lighter:300,bolder:800}[n]||400,t.fonts){var o,a=t.fonts[e];if(!a){var s=new RegExp("(^|\\s)"+e.replace(/[^\w\d\s+!~.:_-]/g,y)+"(\\s|$)","i");for(var u in t.fonts)if(t.fonts[l](u)&&s.test(u)){a=t.fonts[u];break}}if(a)for(var c=0,f=a.length;c<f&&((o=a[c]).face["font-weight"]!=n||o.face["font-style"]!=r&&o.face["font-style"]||o.face["font-stretch"]!=i);c++);return o}},r.print=function(e,n,r,i,o,s,u,l){s=s||"middle",u=S(T(u||0,1),-1),l=S(T(l||1,3),1);var c,f=m(r)[b](y),d=0,h=0,p=y;if(t.is(i,"string")&&(i=this.getFont(i)),i){c=(o||16)/i.face["units-per-em"];for(var g=i.face.bbox[b](a),v=+g[0],w=g[3]-g[1],x=0,_=+g[1]+("baseline"==s?w+ +i.face.descent:w/2),k=0,C=f.length;k<C;k++){if("\n"==f[k])d=0,O=0,h=0,x+=w*l;else{var A=h&&i.glyphs[f[k-1]]||{},O=i.glyphs[f[k]];d+=h?(A.w||i.w)+(A.k&&A.k[f[k]]||0)+i.w*u:0,h=1}O&&O.d&&(p+=t.transformPath(O.d,["t",d*c,x*c,"s",c,c,v,_,"t",(e-v)/c,(n-_)/c]))}}return this.path(p).attr({fill:"#000",stroke:"none"})},r.add=function(e){if(t.is(e,"array"))for(var n,r=this.set(),i=0,o=e.length;i<o;i++)n=e[i]||{},s[l](n.type)&&r.push(this[n.type]().attr(n));return r},t.format=function(e,n){var r=t.is(n,E)?[0][p](n):arguments;return e&&t.is(e,"string")&&r.length-1&&(e=e.replace(u,(function(e,t){return null==r[++t]?y:r[t]}))),e||y},t.fullfill=(st=/\{([^\}]+)\}/g,ut=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(e,t){return String(e).replace(st,(function(e,n){return function(e,t,n){var r=n;return t.replace(ut,(function(e,t,n,i,o){t=t||i,r&&(t in r&&(r=r[t]),"function"==typeof r&&o&&(r=r()))})),r=(null==r||r==n?e:r)+""}(e,n,t)}))}),t.ninja=function(){if(f.was)c.win.Raphael=f.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(e){}}return t},t.st=dt,e.on("raphael.DOMload",(function(){n=!0})),null==(lt=document).readyState&<.addEventListener&&(lt.addEventListener("DOMContentLoaded",ct=function(){lt.removeEventListener("DOMContentLoaded",ct,!1),lt.readyState="complete"},!1),lt.readyState="loading"),function e(){/in/.test(lt.readyState)?setTimeout(e,9):t.eve("raphael.DOMload")}(),t}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[n(0),n(3),n(4)],void 0===(i=function(e){return e}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i,o,a,s,u,l,c,f,d,h,p,g,y;a="hasOwnProperty",s=/[\.\/]/,u=/\s*,\s*/,l=function(e,t){return e-t},c={n:{}},f=function(){for(var e=0,t=this.length;e<t;e++)if(void 0!==this[e])return this[e]},d=function(){for(var e=this.length;--e;)if(void 0!==this[e])return this[e]},h=Object.prototype.toString,p=String,g=Array.isArray||function(e){return e instanceof Array||"[object Array]"==h.call(e)},(y=function(e,t){var n,r=o,a=Array.prototype.slice.call(arguments,2),s=y.listeners(e),u=0,c=[],h={},p=[],g=i;p.firstDefined=f,p.lastDefined=d,i=e,o=0;for(var v=0,m=s.length;v<m;v++)"zIndex"in s[v]&&(c.push(s[v].zIndex),s[v].zIndex<0&&(h[s[v].zIndex]=s[v]));for(c.sort(l);c[u]<0;)if(n=h[c[u++]],p.push(n.apply(t,a)),o)return o=r,p;for(v=0;v<m;v++)if("zIndex"in(n=s[v]))if(n.zIndex==c[u]){if(p.push(n.apply(t,a)),o)break;do{if((n=h[c[++u]])&&p.push(n.apply(t,a)),o)break}while(n)}else h[n.zIndex]=n;else if(p.push(n.apply(t,a)),o)break;return o=r,i=g,p})._events=c,y.listeners=function(e){var t,n,r,i,o,a,u,l,f=g(e)?e:e.split(s),d=c,h=[d],p=[];for(i=0,o=f.length;i<o;i++){for(l=[],a=0,u=h.length;a<u;a++)for(n=[(d=h[a].n)[f[i]],d["*"]],r=2;r--;)(t=n[r])&&(l.push(t),p=p.concat(t.f||[]));h=l}return p},y.separator=function(e){e?(e="["+(e=p(e).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",s=new RegExp(e)):s=/[\.\/]/},y.on=function(e,t){if("function"!=typeof t)return function(){};for(var n=g(e)?g(e[0])?e:[e]:p(e).split(u),r=0,i=n.length;r<i;r++)!function(e){for(var n,r=g(e)?e:p(e).split(s),i=c,o=0,a=r.length;o<a;o++)i=(i=i.n).hasOwnProperty(r[o])&&i[r[o]]||(i[r[o]]={n:{}});for(i.f=i.f||[],o=0,a=i.f.length;o<a;o++)if(i.f[o]==t){n=!0;break}!n&&i.f.push(t)}(n[r]);return function(e){+e==+e&&(t.zIndex=+e)}},y.f=function(e){var t=[].slice.call(arguments,1);return function(){y.apply(null,[e,null].concat(t).concat([].slice.call(arguments,0)))}},y.stop=function(){o=1},y.nt=function(e){var t=g(i)?i.join("."):i;return e?new RegExp("(?:\\.|\\/|^)"+e+"(?:\\.|\\/|$)").test(t):t},y.nts=function(){return g(i)?i:i.split(s)},y.off=y.unbind=function(e,t){if(e){var n=g(e)?g(e[0])?e:[e]:p(e).split(u);if(n.length>1)for(var r=0,i=n.length;r<i;r++)y.off(n[r],t);else{n=g(e)?e:p(e).split(s);var o,l,f,d,h,v=[c];for(r=0,i=n.length;r<i;r++)for(d=0;d<v.length;d+=f.length-2){if(f=[d,1],o=v[d].n,"*"!=n[r])o[n[r]]&&f.push(o[n[r]]);else for(l in o)o[a](l)&&f.push(o[l]);v.splice.apply(v,f)}for(r=0,i=v.length;r<i;r++)for(o=v[r];o.n;){if(t){if(o.f){for(d=0,h=o.f.length;d<h;d++)if(o.f[d]==t){o.f.splice(d,1);break}!o.f.length&&delete o.f}for(l in o.n)if(o.n[a](l)&&o.n[l].f){var m=o.n[l].f;for(d=0,h=m.length;d<h;d++)if(m[d]==t){m.splice(d,1);break}!m.length&&delete o.n[l].f}}else for(l in delete o.f,o.n)o.n[a](l)&&o.n[l].f&&delete o.n[l].f;o=o.n}}}else y._events=c={n:{}}},y.once=function(e,t){return y.on(e,(function n(){return y.off(e,n),t.apply(this,arguments)}))},y.version="0.5.0",y.toString=function(){return"You are running Eve 0.5.0"},e.exports?e.exports=y:void 0===(r=function(){return y}.apply(t,[]))||(e.exports=r)},function(e,t,n){var r,i;r=[n(0)],void 0===(i=function(e){if(!e||e.svg){var t="hasOwnProperty",n=String,r=parseFloat,i=parseInt,o=Math,a=o.max,s=o.abs,u=o.pow,l=/[, ]+/,c=e.eve,f="",d=" ",h="http://www.w3.org/1999/xlink",p={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},g={};e.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\xebl "+this.version};var y=function r(i,o){if(o)for(var a in"string"==typeof i&&(i=r(i)),o)o[t](a)&&("xlink:"==a.substring(0,6)?i.setAttributeNS(h,a.substring(6),n(o[a])):i.setAttribute(a,n(o[a])));else(i=e._g.doc.createElementNS("http://www.w3.org/2000/svg",i)).style&&(i.style.webkitTapHighlightColor="rgba(0,0,0,0)");return i},v=function(t,i){var l="linear",c=t.id+i,d=.5,h=.5,p=t.node,g=t.paper,v=p.style,b=e._g.doc.getElementById(c);if(!b){if(i=(i=n(i).replace(e._radial_gradient,(function(e,t,n){if(l="radial",t&&n){d=r(t);var i=2*((h=r(n))>.5)-1;u(d-.5,2)+u(h-.5,2)>.25&&(h=o.sqrt(.25-u(d-.5,2))*i+.5)&&.5!=h&&(h=h.toFixed(5)-1e-5*i)}return f}))).split(/\s*\-\s*/),"linear"==l){var w=i.shift();if(w=-r(w),isNaN(w))return null;var x=[0,0,o.cos(e.rad(w)),o.sin(e.rad(w))],_=1/(a(s(x[2]),s(x[3]))||1);x[2]*=_,x[3]*=_,x[2]<0&&(x[0]=-x[2],x[2]=0),x[3]<0&&(x[1]=-x[3],x[3]=0)}var k=e._parseDots(i);if(!k)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),t.gradient&&c!=t.gradient.id&&(g.defs.removeChild(t.gradient),delete t.gradient),!t.gradient){b=y(l+"Gradient",{id:c}),t.gradient=b,y(b,"radial"==l?{fx:d,fy:h}:{x1:x[0],y1:x[1],x2:x[2],y2:x[3],gradientTransform:t.matrix.invert()}),g.defs.appendChild(b);for(var S=0,T=k.length;S<T;S++)b.appendChild(y("stop",{offset:k[S].offset?k[S].offset:S?"100%":"0%","stop-color":k[S].color||"#fff","stop-opacity":isFinite(k[S].opacity)?k[S].opacity:1}))}}return y(p,{fill:m(c),opacity:1,"fill-opacity":1}),v.fill=f,v.opacity=1,v.fillOpacity=1,1},m=function(e){if((t=document.documentMode)&&(9===t||10===t))return"url('#"+e+"')";var t,n=document.location;return"url('"+n.protocol+"//"+n.host+n.pathname+n.search+"#"+e+"')"},b=function(e){var t=e.getBBox(1);y(e.pattern,{patternTransform:e.matrix.invert()+" translate("+t.x+","+t.y+")"})},w=function(r,i,o){if("path"==r.type){for(var a,s,u,l,c,d=n(i).toLowerCase().split("-"),h=r.paper,v=o?"end":"start",m=r.node,b=r.attrs,w=b["stroke-width"],x=d.length,_="classic",k=3,S=3,T=5;x--;)switch(d[x]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":_=d[x];break;case"wide":S=5;break;case"narrow":S=2;break;case"long":k=5;break;case"short":k=2}if("open"==_?(k+=2,S+=2,T+=2,u=1,l=o?4:1,c={fill:"none",stroke:b.stroke}):(l=u=k/2,c={fill:b.stroke,stroke:"none"}),r._.arrows?o?(r._.arrows.endPath&&g[r._.arrows.endPath]--,r._.arrows.endMarker&&g[r._.arrows.endMarker]--):(r._.arrows.startPath&&g[r._.arrows.startPath]--,r._.arrows.startMarker&&g[r._.arrows.startMarker]--):r._.arrows={},"none"!=_){var C="raphael-marker-"+_,A="raphael-marker-"+v+_+k+S+"-obj"+r.id;e._g.doc.getElementById(C)?g[C]++:(h.defs.appendChild(y(y("path"),{"stroke-linecap":"round",d:p[_],id:C})),g[C]=1);var O,M=e._g.doc.getElementById(A);M?(g[A]++,O=M.getElementsByTagName("use")[0]):(M=y(y("marker"),{id:A,markerHeight:S,markerWidth:k,orient:"auto",refX:l,refY:S/2}),O=y(y("use"),{"xlink:href":"#"+C,transform:(o?"rotate(180 "+k/2+" "+S/2+") ":f)+"scale("+k/T+","+S/T+")","stroke-width":(1/((k/T+S/T)/2)).toFixed(4)}),M.appendChild(O),h.defs.appendChild(M),g[A]=1),y(O,c);var E=u*("diamond"!=_&&"oval"!=_);o?(a=r._.arrows.startdx*w||0,s=e.getTotalLength(b.path)-E*w):(a=E*w,s=e.getTotalLength(b.path)-(r._.arrows.enddx*w||0)),(c={})["marker-"+v]="url(#"+A+")",(s||a)&&(c.d=e.getSubpath(b.path,a,s)),y(m,c),r._.arrows[v+"Path"]=C,r._.arrows[v+"Marker"]=A,r._.arrows[v+"dx"]=E,r._.arrows[v+"Type"]=_,r._.arrows[v+"String"]=i}else o?(a=r._.arrows.startdx*w||0,s=e.getTotalLength(b.path)-a):(a=0,s=e.getTotalLength(b.path)-(r._.arrows.enddx*w||0)),r._.arrows[v+"Path"]&&y(m,{d:e.getSubpath(b.path,a,s)}),delete r._.arrows[v+"Path"],delete r._.arrows[v+"Marker"],delete r._.arrows[v+"dx"],delete r._.arrows[v+"Type"],delete r._.arrows[v+"String"];for(c in g)if(g[t](c)&&!g[c]){var P=e._g.doc.getElementById(c);P&&P.parentNode.removeChild(P)}}},x={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},_=function(e,t,r){if(t=x[n(t).toLowerCase()]){for(var i=e.attrs["stroke-width"]||"1",o={round:i,square:i,butt:0}[e.attrs["stroke-linecap"]||r["stroke-linecap"]]||0,a=[],s=t.length;s--;)a[s]=t[s]*i+(s%2?1:-1)*o;y(e.node,{"stroke-dasharray":a.join(",")})}else y(e.node,{"stroke-dasharray":"none"})},k=function(r,o){var u=r.node,c=r.attrs,d=u.style.visibility;for(var p in u.style.visibility="hidden",o)if(o[t](p)){if(!e._availableAttrs[t](p))continue;var g=o[p];switch(c[p]=g,p){case"blur":r.blur(g);break;case"title":var m=u.getElementsByTagName("title");if(m.length&&(m=m[0]))m.firstChild.nodeValue=g;else{m=y("title");var x=e._g.doc.createTextNode(g);m.appendChild(x),u.appendChild(m)}break;case"href":case"target":var k=u.parentNode;if("a"!=k.tagName.toLowerCase()){var T=y("a");k.insertBefore(T,u),T.appendChild(u),k=T}"target"==p?k.setAttributeNS(h,"show","blank"==g?"new":g):k.setAttributeNS(h,p,g);break;case"cursor":u.style.cursor=g;break;case"transform":r.transform(g);break;case"arrow-start":w(r,g);break;case"arrow-end":w(r,g,1);break;case"clip-rect":var C=n(g).split(l);if(4==C.length){r.clip&&r.clip.parentNode.parentNode.removeChild(r.clip.parentNode);var A=y("clipPath"),O=y("rect");A.id=e.createUUID(),y(O,{x:C[0],y:C[1],width:C[2],height:C[3]}),A.appendChild(O),r.paper.defs.appendChild(A),y(u,{"clip-path":"url(#"+A.id+")"}),r.clip=O}if(!g){var M=u.getAttribute("clip-path");if(M){var E=e._g.doc.getElementById(M.replace(/(^url\(#|\)$)/g,f));E&&E.parentNode.removeChild(E),y(u,{"clip-path":f}),delete r.clip}}break;case"path":"path"==r.type&&(y(u,{d:g?c.path=e._pathToAbsolute(g):"M0,0"}),r._.dirty=1,r._.arrows&&("startString"in r._.arrows&&w(r,r._.arrows.startString),"endString"in r._.arrows&&w(r,r._.arrows.endString,1)));break;case"width":if(u.setAttribute(p,g),r._.dirty=1,!c.fx)break;p="x",g=c.x;case"x":c.fx&&(g=-c.x-(c.width||0));case"rx":if("rx"==p&&"rect"==r.type)break;case"cx":u.setAttribute(p,g),r.pattern&&b(r),r._.dirty=1;break;case"height":if(u.setAttribute(p,g),r._.dirty=1,!c.fy)break;p="y",g=c.y;case"y":c.fy&&(g=-c.y-(c.height||0));case"ry":if("ry"==p&&"rect"==r.type)break;case"cy":u.setAttribute(p,g),r.pattern&&b(r),r._.dirty=1;break;case"r":"rect"==r.type?y(u,{rx:g,ry:g}):u.setAttribute(p,g),r._.dirty=1;break;case"src":"image"==r.type&&u.setAttributeNS(h,"href",g);break;case"stroke-width":1==r._.sx&&1==r._.sy||(g/=a(s(r._.sx),s(r._.sy))||1),u.setAttribute(p,g),c["stroke-dasharray"]&&_(r,c["stroke-dasharray"],o),r._.arrows&&("startString"in r._.arrows&&w(r,r._.arrows.startString),"endString"in r._.arrows&&w(r,r._.arrows.endString,1));break;case"stroke-dasharray":_(r,g,o);break;case"fill":var P=n(g).match(e._ISURL);if(P){A=y("pattern");var I=y("image");A.id=e.createUUID(),y(A,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),y(I,{x:0,y:0,"xlink:href":P[1]}),A.appendChild(I),function(t){e._preload(P[1],(function(){var e=this.offsetWidth,n=this.offsetHeight;y(t,{width:e,height:n}),y(I,{width:e,height:n})}))}(A),r.paper.defs.appendChild(A),y(u,{fill:"url(#"+A.id+")"}),r.pattern=A,r.pattern&&b(r);break}var D=e.getRGB(g);if(D.error){if(("circle"==r.type||"ellipse"==r.type||"r"!=n(g).charAt())&&v(r,g)){if("opacity"in c||"fill-opacity"in c){var L=e._g.doc.getElementById(u.getAttribute("fill").replace(/^url\(#|\)$/g,f));if(L){var R=L.getElementsByTagName("stop");y(R[R.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=g,c.fill="none";break}}else delete o.gradient,delete c.gradient,!e.is(c.opacity,"undefined")&&e.is(o.opacity,"undefined")&&y(u,{opacity:c.opacity}),!e.is(c["fill-opacity"],"undefined")&&e.is(o["fill-opacity"],"undefined")&&y(u,{"fill-opacity":c["fill-opacity"]});D[t]("opacity")&&y(u,{"fill-opacity":D.opacity>1?D.opacity/100:D.opacity});case"stroke":D=e.getRGB(g),u.setAttribute(p,D.hex),"stroke"==p&&D[t]("opacity")&&y(u,{"stroke-opacity":D.opacity>1?D.opacity/100:D.opacity}),"stroke"==p&&r._.arrows&&("startString"in r._.arrows&&w(r,r._.arrows.startString),"endString"in r._.arrows&&w(r,r._.arrows.endString,1));break;case"gradient":("circle"==r.type||"ellipse"==r.type||"r"!=n(g).charAt())&&v(r,g);break;case"opacity":c.gradient&&!c[t]("stroke-opacity")&&y(u,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(c.gradient){(L=e._g.doc.getElementById(u.getAttribute("fill").replace(/^url\(#|\)$/g,f)))&&(R=L.getElementsByTagName("stop"),y(R[R.length-1],{"stop-opacity":g}));break}default:"font-size"==p&&(g=i(g,10)+"px");var N=p.replace(/(\-.)/g,(function(e){return e.substring(1).toUpperCase()}));u.style[N]=g,r._.dirty=1,u.setAttribute(p,g)}}S(r,o),u.style.visibility=d},S=function(r,o){if("text"==r.type&&(o[t]("text")||o[t]("font")||o[t]("font-size")||o[t]("x")||o[t]("y"))){var a=r.attrs,s=r.node,u=s.firstChild?i(e._g.doc.defaultView.getComputedStyle(s.firstChild,f).getPropertyValue("font-size"),10):10;if(o[t]("text")){for(a.text=o.text;s.firstChild;)s.removeChild(s.firstChild);for(var l,c=n(o.text).split("\n"),d=[],h=0,p=c.length;h<p;h++)l=y("tspan"),h&&y(l,{dy:1.2*u,x:a.x}),l.appendChild(e._g.doc.createTextNode(c[h])),s.appendChild(l),d[h]=l}else for(h=0,p=(d=s.getElementsByTagName("tspan")).length;h<p;h++)h?y(d[h],{dy:1.2*u,x:a.x}):y(d[0],{dy:0});y(s,{x:a.x,y:a.y}),r._.dirty=1;var g=r._getBBox(),v=a.y-(g.y+g.height/2);v&&e.is(v,"finite")&&y(d[0],{dy:v})}},T=function(e){return e.parentNode&&"a"===e.parentNode.tagName.toLowerCase()?e.parentNode:e},C=function(t,n){this[0]=this.node=t,t.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),t.raphaelid=this.id,this.matrix=e.matrix(),this.realPath=null,this.paper=n,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},A=e.el;C.prototype=A,A.constructor=C,e._engine.path=function(e,t){var n=y("path");t.canvas&&t.canvas.appendChild(n);var r=new C(n,t);return r.type="path",k(r,{fill:"none",stroke:"#000",path:e}),r},A.rotate=function(e,t,i){if(this.removed)return this;if((e=n(e).split(l)).length-1&&(t=r(e[1]),i=r(e[2])),e=r(e[0]),null==i&&(t=i),null==t||null==i){var o=this.getBBox(1);t=o.x+o.width/2,i=o.y+o.height/2}return this.transform(this._.transform.concat([["r",e,t,i]])),this},A.scale=function(e,t,i,o){if(this.removed)return this;if((e=n(e).split(l)).length-1&&(t=r(e[1]),i=r(e[2]),o=r(e[3])),e=r(e[0]),null==t&&(t=e),null==o&&(i=o),null==i||null==o)var a=this.getBBox(1);return i=null==i?a.x+a.width/2:i,o=null==o?a.y+a.height/2:o,this.transform(this._.transform.concat([["s",e,t,i,o]])),this},A.translate=function(e,t){return this.removed||((e=n(e).split(l)).length-1&&(t=r(e[1])),e=r(e[0])||0,t=+t||0,this.transform(this._.transform.concat([["t",e,t]]))),this},A.transform=function(n){var r=this._;if(null==n)return r.transform;if(e._extractTransform(this,n),this.clip&&y(this.clip,{transform:this.matrix.invert()}),this.pattern&&b(this),this.node&&y(this.node,{transform:this.matrix}),1!=r.sx||1!=r.sy){var i=this.attrs[t]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":i})}return this},A.hide=function(){return this.removed||(this.node.style.display="none"),this},A.show=function(){return this.removed||(this.node.style.display=""),this},A.remove=function(){var t=T(this.node);if(!this.removed&&t.parentNode){var n=this.paper;for(var r in n.__set__&&n.__set__.exclude(this),c.unbind("raphael.*.*."+this.id),this.gradient&&n.defs.removeChild(this.gradient),e._tear(this,n),t.parentNode.removeChild(t),this.removeData(),this)this[r]="function"==typeof this[r]?e._removedFactory(r):null;this.removed=!0}},A._getBBox=function(){if("none"==this.node.style.display){this.show();var e=!0}var t,n=!1;this.paper.canvas.parentElement?t=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(t=this.paper.canvas.parentNode.style),t&&"none"==t.display&&(n=!0,t.display="");var r={};try{r=this.node.getBBox()}catch(e){r={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{r=r||{},n&&(t.display="none")}return e&&this.hide(),r},A.attr=function(n,r){if(this.removed)return this;if(null==n){var i={};for(var o in this.attrs)this.attrs[t](o)&&(i[o]=this.attrs[o]);return i.gradient&&"none"==i.fill&&(i.fill=i.gradient)&&delete i.gradient,i.transform=this._.transform,i}if(null==r&&e.is(n,"string")){if("fill"==n&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==n)return this._.transform;for(var a=n.split(l),s={},u=0,f=a.length;u<f;u++)(n=a[u])in this.attrs?s[n]=this.attrs[n]:e.is(this.paper.customAttributes[n],"function")?s[n]=this.paper.customAttributes[n].def:s[n]=e._availableAttrs[n];return f-1?s:s[a[0]]}if(null==r&&e.is(n,"array")){for(s={},u=0,f=n.length;u<f;u++)s[n[u]]=this.attr(n[u]);return s}if(null!=r){var d={};d[n]=r}else null!=n&&e.is(n,"object")&&(d=n);for(var h in d)c("raphael.attr."+h+"."+this.id,this,d[h]);for(h in this.paper.customAttributes)if(this.paper.customAttributes[t](h)&&d[t](h)&&e.is(this.paper.customAttributes[h],"function")){var p=this.paper.customAttributes[h].apply(this,[].concat(d[h]));for(var g in this.attrs[h]=d[h],p)p[t](g)&&(d[g]=p[g])}return k(this,d),this},A.toFront=function(){if(this.removed)return this;var t=T(this.node);t.parentNode.appendChild(t);var n=this.paper;return n.top!=this&&e._tofront(this,n),this},A.toBack=function(){if(this.removed)return this;var t=T(this.node),n=t.parentNode;return n.insertBefore(t,n.firstChild),e._toback(this,this.paper),this.paper,this},A.insertAfter=function(t){if(this.removed||!t)return this;var n=T(this.node),r=T(t.node||t[t.length-1].node);return r.nextSibling?r.parentNode.insertBefore(n,r.nextSibling):r.parentNode.appendChild(n),e._insertafter(this,t,this.paper),this},A.insertBefore=function(t){if(this.removed||!t)return this;var n=T(this.node),r=T(t.node||t[0].node);return r.parentNode.insertBefore(n,r),e._insertbefore(this,t,this.paper),this},A.blur=function(t){var n=this;if(0!=+t){var r=y("filter"),i=y("feGaussianBlur");n.attrs.blur=t,r.id=e.createUUID(),y(i,{stdDeviation:+t||1.5}),r.appendChild(i),n.paper.defs.appendChild(r),n._blur=r,y(n.node,{filter:"url(#"+r.id+")"})}else n._blur&&(n._blur.parentNode.removeChild(n._blur),delete n._blur,delete n.attrs.blur),n.node.removeAttribute("filter");return n},e._engine.circle=function(e,t,n,r){var i=y("circle");e.canvas&&e.canvas.appendChild(i);var o=new C(i,e);return o.attrs={cx:t,cy:n,r:r,fill:"none",stroke:"#000"},o.type="circle",y(i,o.attrs),o},e._engine.rect=function(e,t,n,r,i,o){var a=y("rect");e.canvas&&e.canvas.appendChild(a);var s=new C(a,e);return s.attrs={x:t,y:n,width:r,height:i,rx:o||0,ry:o||0,fill:"none",stroke:"#000"},s.type="rect",y(a,s.attrs),s},e._engine.ellipse=function(e,t,n,r,i){var o=y("ellipse");e.canvas&&e.canvas.appendChild(o);var a=new C(o,e);return a.attrs={cx:t,cy:n,rx:r,ry:i,fill:"none",stroke:"#000"},a.type="ellipse",y(o,a.attrs),a},e._engine.image=function(e,t,n,r,i,o){var a=y("image");y(a,{x:n,y:r,width:i,height:o,preserveAspectRatio:"none"}),a.setAttributeNS(h,"href",t),e.canvas&&e.canvas.appendChild(a);var s=new C(a,e);return s.attrs={x:n,y:r,width:i,height:o,src:t},s.type="image",s},e._engine.text=function(t,n,r,i){var o=y("text");t.canvas&&t.canvas.appendChild(o);var a=new C(o,t);return a.attrs={x:n,y:r,"text-anchor":"middle",text:i,"font-family":e._availableAttrs["font-family"],"font-size":e._availableAttrs["font-size"],stroke:"none",fill:"#000"},a.type="text",k(a,a.attrs),a},e._engine.setSize=function(e,t){return this.width=e||this.width,this.height=t||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},e._engine.create=function(){var t=e._getContainer.apply(0,arguments),n=t&&t.container;if(!n)throw new Error("SVG container not found.");var r,i=t.x,o=t.y,a=t.width,s=t.height,u=y("svg"),l="overflow:hidden;";return i=i||0,o=o||0,y(u,{height:s=s||342,version:1.1,width:a=a||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==n?(u.style.cssText=l+"position:absolute;left:"+i+"px;top:"+o+"px",e._g.doc.body.appendChild(u),r=1):(u.style.cssText=l+"position:relative",n.firstChild?n.insertBefore(u,n.firstChild):n.appendChild(u)),(n=new e._Paper).width=a,n.height=s,n.canvas=u,n.clear(),n._left=n._top=0,r&&(n.renderfix=function(){}),n.renderfix(),n},e._engine.setViewBox=function(e,t,n,r,i){c("raphael.setViewBox",this,this._viewBox,[e,t,n,r,i]);var o,s,u=this.getSize(),l=a(n/u.width,r/u.height),f=this.top,h=i?"xMidYMid meet":"xMinYMin";for(null==e?(this._vbSize&&(l=1),delete this._vbSize,o="0 0 "+this.width+d+this.height):(this._vbSize=l,o=e+d+t+d+n+d+r),y(this.canvas,{viewBox:o,preserveAspectRatio:h});l&&f;)s="stroke-width"in f.attrs?f.attrs["stroke-width"]:1,f.attr({"stroke-width":s}),f._.dirty=1,f._.dirtyT=1,f=f.prev;return this._viewBox=[e,t,n,r,!!i],this},e.prototype.renderfix=function(){var e,t=this.canvas,n=t.style;try{e=t.getScreenCTM()||t.createSVGMatrix()}catch(n){e=t.createSVGMatrix()}var r=-e.e%1,i=-e.f%1;(r||i)&&(r&&(this._left=(this._left+r)%1,n.left=this._left+"px"),i&&(this._top=(this._top+i)%1,n.top=this._top+"px"))},e.prototype.clear=function(){e.eve("raphael.clear",this);for(var t=this.canvas;t.firstChild;)t.removeChild(t.firstChild);this.bottom=this.top=null,(this.desc=y("desc")).appendChild(e._g.doc.createTextNode("Created with Rapha\xebl "+e.version)),t.appendChild(this.desc),t.appendChild(this.defs=y("defs"))},e.prototype.remove=function(){for(var t in c("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?e._removedFactory(t):null};var O=e.st;for(var M in A)A[t](M)&&!O[t](M)&&(O[M]=function(e){return function(){var t=arguments;return this.forEach((function(n){n[e].apply(n,t)}))}}(M))}}.apply(t,r))||(e.exports=i)},function(e,t,n){var r,i;r=[n(0)],void 0===(i=function(e){if(!e||e.vml){var t="hasOwnProperty",n=String,r=parseFloat,i=Math,o=i.round,a=i.max,s=i.min,u=i.abs,l=/[, ]+/,c=e.eve,f=" ",d="",h={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},p=/([clmz]),?([^clmz]*)/gi,g=/ progid:\S+Blur\([^\)]+\)/g,y=/-?[^,\s-]+/g,v="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",m=21600,b={path:1,rect:1,image:1},w={circle:1,ellipse:1},x=function(t,n,r){var i=e.matrix();return i.rotate(-t,.5,.5),{dx:i.x(n,r),dy:i.y(n,r)}},_=function(e,t,n,r,i,o){var a=e._,s=e.matrix,l=a.fillpos,c=e.node,d=c.style,h=1,p="",g=m/t,y=m/n;if(d.visibility="hidden",t&&n){if(c.coordsize=u(g)+f+u(y),d.rotation=o*(t*n<0?-1:1),o){var v=x(o,r,i);r=v.dx,i=v.dy}if(t<0&&(p+="x"),n<0&&(p+=" y")&&(h=-1),d.flip=p,c.coordorigin=r*-g+f+i*-y,l||a.fillsize){var b=c.getElementsByTagName("fill");b=b&&b[0],c.removeChild(b),l&&(v=x(o,s.x(l[0],l[1]),s.y(l[0],l[1])),b.position=v.dx*h+f+v.dy*h),a.fillsize&&(b.size=a.fillsize[0]*u(t)+f+a.fillsize[1]*u(n)),c.appendChild(b)}d.visibility="visible"}};e.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\xebl "+this.version};var k,S=function(e,t,r){for(var i=n(t).toLowerCase().split("-"),o=r?"end":"start",a=i.length,s="classic",u="medium",l="medium";a--;)switch(i[a]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=i[a];break;case"wide":case"narrow":l=i[a];break;case"long":case"short":u=i[a]}var c=e.node.getElementsByTagName("stroke")[0];c[o+"arrow"]=s,c[o+"arrowlength"]=u,c[o+"arrowwidth"]=l},T=function(i,u){i.attrs=i.attrs||{};var c=i.node,g=i.attrs,v=c.style,x=b[i.type]&&(u.x!=g.x||u.y!=g.y||u.width!=g.width||u.height!=g.height||u.cx!=g.cx||u.cy!=g.cy||u.rx!=g.rx||u.ry!=g.ry||u.r!=g.r),T=w[i.type]&&(g.cx!=u.cx||g.cy!=u.cy||g.r!=u.r||g.rx!=u.rx||g.ry!=u.ry),A=i;for(var O in u)u[t](O)&&(g[O]=u[O]);if(x&&(g.path=e._getPath[i.type](i),i._.dirty=1),u.href&&(c.href=u.href),u.title&&(c.title=u.title),u.target&&(c.target=u.target),u.cursor&&(v.cursor=u.cursor),"blur"in u&&i.blur(u.blur),(u.path&&"path"==i.type||x)&&(c.path=function(t){var r=/[ahqstv]/gi,i=e._pathToAbsolute;if(n(t).match(r)&&(i=e._path2curve),r=/[clmz]/g,i==e._pathToAbsolute&&!n(t).match(r)){var a=n(t).replace(p,(function(e,t,n){var r=[],i="m"==t.toLowerCase(),a=h[t];return n.replace(y,(function(e){i&&2==r.length&&(a+=r+h["m"==t?"l":"L"],r=[]),r.push(o(e*m))})),a+r}));return a}var s,u,l=i(t);a=[];for(var c=0,g=l.length;c<g;c++){s=l[c],"z"==(u=l[c][0].toLowerCase())&&(u="x");for(var v=1,b=s.length;v<b;v++)u+=o(s[v]*m)+(v!=b-1?",":d);a.push(u)}return a.join(f)}(~n(g.path).toLowerCase().indexOf("r")?e._pathToAbsolute(g.path):g.path),i._.dirty=1,"image"==i.type&&(i._.fillpos=[g.x,g.y],i._.fillsize=[g.width,g.height],_(i,1,1,0,0,0))),"transform"in u&&i.transform(u.transform),T){var M=+g.cx,E=+g.cy,P=+g.rx||+g.r||0,I=+g.ry||+g.r||0;c.path=e.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",o((M-P)*m),o((E-I)*m),o((M+P)*m),o((E+I)*m),o(M*m)),i._.dirty=1}if("clip-rect"in u){var D=n(u["clip-rect"]).split(l);if(4==D.length){D[2]=+D[2]+ +D[0],D[3]=+D[3]+ +D[1];var L=c.clipRect||e._g.doc.createElement("div"),R=L.style;R.clip=e.format("rect({1}px {2}px {3}px {0}px)",D),c.clipRect||(R.position="absolute",R.top=0,R.left=0,R.width=i.paper.width+"px",R.height=i.paper.height+"px",c.parentNode.insertBefore(L,c),L.appendChild(c),c.clipRect=L)}u["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(i.textpath){var N=i.textpath.style;u.font&&(N.font=u.font),u["font-family"]&&(N.fontFamily='"'+u["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,d)+'"'),u["font-size"]&&(N.fontSize=u["font-size"]),u["font-weight"]&&(N.fontWeight=u["font-weight"]),u["font-style"]&&(N.fontStyle=u["font-style"])}if("arrow-start"in u&&S(A,u["arrow-start"]),"arrow-end"in u&&S(A,u["arrow-end"],1),null!=u.opacity||null!=u.fill||null!=u.src||null!=u.stroke||null!=u["stroke-width"]||null!=u["stroke-opacity"]||null!=u["fill-opacity"]||null!=u["stroke-dasharray"]||null!=u["stroke-miterlimit"]||null!=u["stroke-linejoin"]||null!=u["stroke-linecap"]){var j=c.getElementsByTagName("fill");if(!(j=j&&j[0])&&(j=k("fill")),"image"==i.type&&u.src&&(j.src=u.src),u.fill&&(j.on=!0),null!=j.on&&"none"!=u.fill&&null!==u.fill||(j.on=!1),j.on&&u.fill){var B=n(u.fill).match(e._ISURL);if(B){j.parentNode==c&&c.removeChild(j),j.rotate=!0,j.src=B[1],j.type="tile";var F=i.getBBox(1);j.position=F.x+f+F.y,i._.fillpos=[F.x,F.y],e._preload(B[1],(function(){i._.fillsize=[this.offsetWidth,this.offsetHeight]}))}else j.color=e.getRGB(u.fill).hex,j.src=d,j.type="solid",e.getRGB(u.fill).error&&(A.type in{circle:1,ellipse:1}||"r"!=n(u.fill).charAt())&&C(A,u.fill,j)&&(g.fill="none",g.gradient=u.fill,j.rotate=!1)}if("fill-opacity"in u||"opacity"in u){var z=((+g["fill-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+e.getRGB(u.fill).o+1||2)-1);z=s(a(z,0),1),j.opacity=z,j.src&&(j.color="none")}c.appendChild(j);var V=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],H=!1;!V&&(H=V=k("stroke")),(u.stroke&&"none"!=u.stroke||u["stroke-width"]||null!=u["stroke-opacity"]||u["stroke-dasharray"]||u["stroke-miterlimit"]||u["stroke-linejoin"]||u["stroke-linecap"])&&(V.on=!0),("none"==u.stroke||null===u.stroke||null==V.on||0==u.stroke||0==u["stroke-width"])&&(V.on=!1);var U=e.getRGB(u.stroke);V.on&&u.stroke&&(V.color=U.hex),z=((+g["stroke-opacity"]+1||2)-1)*((+g.opacity+1||2)-1)*((+U.o+1||2)-1);var G=.75*(r(u["stroke-width"])||1);if(z=s(a(z,0),1),null==u["stroke-width"]&&(G=g["stroke-width"]),u["stroke-width"]&&(V.weight=G),G&&G<1&&(z*=G)&&(V.weight=1),V.opacity=z,u["stroke-linejoin"]&&(V.joinstyle=u["stroke-linejoin"]||"miter"),V.miterlimit=u["stroke-miterlimit"]||8,u["stroke-linecap"]&&(V.endcap="butt"==u["stroke-linecap"]?"flat":"square"==u["stroke-linecap"]?"square":"round"),"stroke-dasharray"in u){var J={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};V.dashstyle=J[t](u["stroke-dasharray"])?J[u["stroke-dasharray"]]:d}H&&c.appendChild(V)}if("text"==A.type){A.paper.canvas.style.display=d;var X=A.paper.span,W=g.font&&g.font.match(/\d+(?:\.\d*)?(?=px)/);v=X.style,g.font&&(v.font=g.font),g["font-family"]&&(v.fontFamily=g["font-family"]),g["font-weight"]&&(v.fontWeight=g["font-weight"]),g["font-style"]&&(v.fontStyle=g["font-style"]),W=r(g["font-size"]||W&&W[0])||10,v.fontSize=100*W+"px",A.textpath.string&&(X.innerHTML=n(A.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var q=X.getBoundingClientRect();A.W=g.w=(q.right-q.left)/100,A.H=g.h=(q.bottom-q.top)/100,A.X=g.x,A.Y=g.y+A.H/2,("x"in u||"y"in u)&&(A.path.v=e.format("m{0},{1}l{2},{1}",o(g.x*m),o(g.y*m),o(g.x*m)+1));for(var Z=["x","y","text","font","font-family","font-weight","font-style","font-size"],K=0,Y=Z.length;K<Y;K++)if(Z[K]in u){A._.dirty=1;break}switch(g["text-anchor"]){case"start":A.textpath.style["v-text-align"]="left",A.bbx=A.W/2;break;case"end":A.textpath.style["v-text-align"]="right",A.bbx=-A.W/2;break;default:A.textpath.style["v-text-align"]="center",A.bbx=0}A.textpath.style["v-text-kern"]=!0}},C=function(t,o,a){t.attrs=t.attrs||{},t.attrs;var s=Math.pow,u="linear",l=".5 .5";if(t.attrs.gradient=o,o=(o=n(o).replace(e._radial_gradient,(function(e,t,n){return u="radial",t&&n&&(t=r(t),n=r(n),s(t-.5,2)+s(n-.5,2)>.25&&(n=i.sqrt(.25-s(t-.5,2))*(2*(n>.5)-1)+.5),l=t+f+n),d}))).split(/\s*\-\s*/),"linear"==u){var c=o.shift();if(c=-r(c),isNaN(c))return null}var h=e._parseDots(o);if(!h)return null;if(t=t.shape||t.node,h.length){t.removeChild(a),a.on=!0,a.method="none",a.color=h[0].color,a.color2=h[h.length-1].color;for(var p=[],g=0,y=h.length;g<y;g++)h[g].offset&&p.push(h[g].offset+f+h[g].color);a.colors=p.length?p.join():"0% "+a.color,"radial"==u?(a.type="gradientTitle",a.focus="100%",a.focussize="0 0",a.focusposition=l,a.angle=0):(a.type="gradient",a.angle=(270-c)%360),t.appendChild(a)}return 1},A=function(t,n){this[0]=this.node=t,t.raphael=!0,this.id=e._oid++,t.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=n,this.matrix=e.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},O=e.el;A.prototype=O,O.constructor=A,O.transform=function(t){if(null==t)return this._.transform;var r,i=this.paper._viewBoxShift,o=i?"s"+[i.scale,i.scale]+"-1-1t"+[i.dx,i.dy]:d;i&&(r=t=n(t).replace(/\.{3}|\u2026/g,this._.transform||d)),e._extractTransform(this,o+t);var a,s=this.matrix.clone(),u=this.skew,l=this.node,c=~n(this.attrs.fill).indexOf("-"),h=!n(this.attrs.fill).indexOf("url(");if(s.translate(1,1),h||c||"image"==this.type)if(u.matrix="1 0 0 1",u.offset="0 0",a=s.split(),c&&a.noRotation||!a.isSimple){l.style.filter=s.toFilter();var p=this.getBBox(),g=this.getBBox(1),y=p.x-g.x,v=p.y-g.y;l.coordorigin=y*-m+f+v*-m,_(this,1,1,y,v,0)}else l.style.filter=d,_(this,a.scalex,a.scaley,a.dx,a.dy,a.rotate);else l.style.filter=d,u.matrix=n(s),u.offset=s.offset();return null!==r&&(this._.transform=r,e._extractTransform(this,r)),this},O.rotate=function(e,t,i){if(this.removed)return this;if(null!=e){if((e=n(e).split(l)).length-1&&(t=r(e[1]),i=r(e[2])),e=r(e[0]),null==i&&(t=i),null==t||null==i){var o=this.getBBox(1);t=o.x+o.width/2,i=o.y+o.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",e,t,i]])),this}},O.translate=function(e,t){return this.removed||((e=n(e).split(l)).length-1&&(t=r(e[1])),e=r(e[0])||0,t=+t||0,this._.bbox&&(this._.bbox.x+=e,this._.bbox.y+=t),this.transform(this._.transform.concat([["t",e,t]]))),this},O.scale=function(e,t,i,o){if(this.removed)return this;if((e=n(e).split(l)).length-1&&(t=r(e[1]),i=r(e[2]),o=r(e[3]),isNaN(i)&&(i=null),isNaN(o)&&(o=null)),e=r(e[0]),null==t&&(t=e),null==o&&(i=o),null==i||null==o)var a=this.getBBox(1);return i=null==i?a.x+a.width/2:i,o=null==o?a.y+a.height/2:o,this.transform(this._.transform.concat([["s",e,t,i,o]])),this._.dirtyT=1,this},O.hide=function(){return!this.removed&&(this.node.style.display="none"),this},O.show=function(){return!this.removed&&(this.node.style.display=d),this},O.auxGetBBox=e.el.getBBox,O.getBBox=function(){var e=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var t={},n=1/this.paper._viewBoxShift.scale;return t.x=e.x-this.paper._viewBoxShift.dx,t.x*=n,t.y=e.y-this.paper._viewBoxShift.dy,t.y*=n,t.width=e.width*n,t.height=e.height*n,t.x2=t.x+t.width,t.y2=t.y+t.height,t}return e},O._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},O.remove=function(){if(!this.removed&&this.node.parentNode){for(var t in this.paper.__set__&&this.paper.__set__.exclude(this),e.eve.unbind("raphael.*.*."+this.id),e._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[t]="function"==typeof this[t]?e._removedFactory(t):null;this.removed=!0}},O.attr=function(n,r){if(this.removed)return this;if(null==n){var i={};for(var o in this.attrs)this.attrs[t](o)&&(i[o]=this.attrs[o]);return i.gradient&&"none"==i.fill&&(i.fill=i.gradient)&&delete i.gradient,i.transform=this._.transform,i}if(null==r&&e.is(n,"string")){if("fill"==n&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var a=n.split(l),s={},u=0,f=a.length;u<f;u++)(n=a[u])in this.attrs?s[n]=this.attrs[n]:e.is(this.paper.customAttributes[n],"function")?s[n]=this.paper.customAttributes[n].def:s[n]=e._availableAttrs[n];return f-1?s:s[a[0]]}if(this.attrs&&null==r&&e.is(n,"array")){for(s={},u=0,f=n.length;u<f;u++)s[n[u]]=this.attr(n[u]);return s}var d;for(var h in null!=r&&((d={})[n]=r),null==r&&e.is(n,"object")&&(d=n),d)c("raphael.attr."+h+"."+this.id,this,d[h]);if(d){for(h in this.paper.customAttributes)if(this.paper.customAttributes[t](h)&&d[t](h)&&e.is(this.paper.customAttributes[h],"function")){var p=this.paper.customAttributes[h].apply(this,[].concat(d[h]));for(var g in this.attrs[h]=d[h],p)p[t](g)&&(d[g]=p[g])}d.text&&"text"==this.type&&(this.textpath.string=d.text),T(this,d)}return this},O.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&e._tofront(this,this.paper),this},O.toBack=function(){return this.removed||this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),e._toback(this,this.paper)),this},O.insertAfter=function(t){return this.removed||(t.constructor==e.st.constructor&&(t=t[t.length-1]),t.node.nextSibling?t.node.parentNode.insertBefore(this.node,t.node.nextSibling):t.node.parentNode.appendChild(this.node),e._insertafter(this,t,this.paper)),this},O.insertBefore=function(t){return this.removed||(t.constructor==e.st.constructor&&(t=t[0]),t.node.parentNode.insertBefore(this.node,t.node),e._insertbefore(this,t,this.paper)),this},O.blur=function(t){var n=this.node.runtimeStyle,r=n.filter;return r=r.replace(g,d),0!=+t?(this.attrs.blur=t,n.filter=r+f+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+t||1.5)+")",n.margin=e.format("-{0}px 0 0 -{0}px",o(+t||1.5))):(n.filter=r,n.margin=0,delete this.attrs.blur),this},e._engine.path=function(e,t){var n=k("shape");n.style.cssText=v,n.coordsize=m+f+m,n.coordorigin=t.coordorigin;var r=new A(n,t),i={fill:"none",stroke:"#000"};e&&(i.path=e),r.type="path",r.path=[],r.Path=d,T(r,i),t.canvas&&t.canvas.appendChild(n);var o=k("skew");return o.on=!0,n.appendChild(o),r.skew=o,r.transform(d),r},e._engine.rect=function(t,n,r,i,o,a){var s=e._rectPath(n,r,i,o,a),u=t.path(s),l=u.attrs;return u.X=l.x=n,u.Y=l.y=r,u.W=l.width=i,u.H=l.height=o,l.r=a,l.path=s,u.type="rect",u},e._engine.ellipse=function(e,t,n,r,i){var o=e.path();return o.attrs,o.X=t-r,o.Y=n-i,o.W=2*r,o.H=2*i,o.type="ellipse",T(o,{cx:t,cy:n,rx:r,ry:i}),o},e._engine.circle=function(e,t,n,r){var i=e.path();return i.attrs,i.X=t-r,i.Y=n-r,i.W=i.H=2*r,i.type="circle",T(i,{cx:t,cy:n,r:r}),i},e._engine.image=function(t,n,r,i,o,a){var s=e._rectPath(r,i,o,a),u=t.path(s).attr({stroke:"none"}),l=u.attrs,c=u.node,f=c.getElementsByTagName("fill")[0];return l.src=n,u.X=l.x=r,u.Y=l.y=i,u.W=l.width=o,u.H=l.height=a,l.path=s,u.type="image",f.parentNode==c&&c.removeChild(f),f.rotate=!0,f.src=n,f.type="tile",u._.fillpos=[r,i],u._.fillsize=[o,a],c.appendChild(f),_(u,1,1,0,0,0),u},e._engine.text=function(t,r,i,a){var s=k("shape"),u=k("path"),l=k("textpath");r=r||0,i=i||0,a=a||"",u.v=e.format("m{0},{1}l{2},{1}",o(r*m),o(i*m),o(r*m)+1),u.textpathok=!0,l.string=n(a),l.on=!0,s.style.cssText=v,s.coordsize=m+f+m,s.coordorigin="0 0";var c=new A(s,t),h={fill:"#000",stroke:"none",font:e._availableAttrs.font,text:a};c.shape=s,c.path=u,c.textpath=l,c.type="text",c.attrs.text=n(a),c.attrs.x=r,c.attrs.y=i,c.attrs.w=1,c.attrs.h=1,T(c,h),s.appendChild(l),s.appendChild(u),t.canvas.appendChild(s);var p=k("skew");return p.on=!0,s.appendChild(p),c.skew=p,c.transform(d),c},e._engine.setSize=function(t,n){var r=this.canvas.style;return this.width=t,this.height=n,t==+t&&(t+="px"),n==+n&&(n+="px"),r.width=t,r.height=n,r.clip="rect(0 "+t+" "+n+" 0)",this._viewBox&&e._engine.setViewBox.apply(this,this._viewBox),this},e._engine.setViewBox=function(t,n,r,i,o){e.eve("raphael.setViewBox",this,this._viewBox,[t,n,r,i,o]);var a,s,u=this.getSize(),l=u.width,c=u.height;return o&&(r*(a=c/i)<l&&(t-=(l-r*a)/2/a),i*(s=l/r)<c&&(n-=(c-i*s)/2/s)),this._viewBox=[t,n,r,i,!!o],this._viewBoxShift={dx:-t,dy:-n,scale:u},this.forEach((function(e){e.transform("...")})),this},e._engine.initWin=function(e){var t=e.document;t.styleSheets.length<31?t.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):t.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!t.namespaces.rvml&&t.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),k=function(e){return t.createElement("<rvml:"+e+' class="rvml">')}}catch(e){k=function(e){return t.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},e._engine.initWin(e._g.win),e._engine.create=function(){var t=e._getContainer.apply(0,arguments),n=t.container,r=t.height,i=t.width,o=t.x,a=t.y;if(!n)throw new Error("VML container not found.");var s=new e._Paper,u=s.canvas=e._g.doc.createElement("div"),l=u.style;return o=o||0,a=a||0,i=i||512,r=r||342,s.width=i,s.height=r,i==+i&&(i+="px"),r==+r&&(r+="px"),s.coordsize="21600000 21600000",s.coordorigin="0 0",s.span=e._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",u.appendChild(s.span),l.cssText=e.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",i,r),1==n?(e._g.doc.body.appendChild(u),l.left=o+"px",l.top=a+"px",l.position="absolute"):n.firstChild?n.insertBefore(u,n.firstChild):n.appendChild(u),s.renderfix=function(){},s},e.prototype.clear=function(){e.eve("raphael.clear",this),this.canvas.innerHTML=d,this.span=e._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},e.prototype.remove=function(){for(var t in e.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?e._removedFactory(t):null;return!0};var M=e.st;for(var E in O)O[t](E)&&!M[t](E)&&(M[E]=function(e){return function(){var t=arguments;return this.forEach((function(n){n[e].apply(n,t)}))}}(E))}}.apply(t,r))||(e.exports=i)}])},function(e,t,n){var r=n(416),i=n(419),o=n(422),a=function e(t){if(t instanceof e)return t;if(!(this instanceof e))return new e(t);var n;if(this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},"string"===typeof t)if(n=o.getRgba(t))this.setValues("rgb",n);else if(n=o.getHsla(t))this.setValues("hsl",n);else{if(!(n=o.getHwb(t)))throw new Error('Unable to parse color from string "'+t+'"');this.setValues("hwb",n)}else if("object"===typeof t)if(void 0!==(n=t).r||void 0!==n.red)this.setValues("rgb",n);else if(void 0!==n.l||void 0!==n.lightness)this.setValues("hsl",n);else if(void 0!==n.v||void 0!==n.value)this.setValues("hsv",n);else if(void 0!==n.w||void 0!==n.whiteness)this.setValues("hwb",n);else{if(void 0===n.c&&void 0===n.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(t));this.setValues("cmyk",n)}};(a.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){return 1!==this.values.alpha?this.values.hwb.concat([this.values.alpha]):this.values.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){return this.values.rgb.concat([this.values.alpha])},rgbaArrayNormalized:function(){for(var e=this.values.rgb,t=[],n=0;n<3;n++)t[n]=e[n]/255;return t.push(this.values.alpha),t},hslaArray:function(){return this.values.hsl.concat([this.values.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return o.hexString(this.values.rgb)},rgbString:function(){return o.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return o.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return o.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return o.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return o.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return o.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return o.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){return this.values.rgb[0]<<16|this.values.rgb[1]<<8|this.values.rgb[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t=(t+e)%360)<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,i=2*r-1,o=this.alpha()-n.alpha(),a=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e=new a;return e.values=r(this.values),e}}).getValues=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=this.values[e][n];return 1!==this.values.alpha&&(t.a=this.values.alpha),t},a.prototype.setValues=function(e,t){var n,r,o={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},a={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},s=1;if("alpha"===e)s=t;else if(t.length)this.values[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)this.values[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[o[e][0]]){var u=o[e];for(n=0;n<e.length;n++)this.values[e][n]=t[u[n]];s=t.alpha}if(this.values.alpha=Math.max(0,Math.min(1,void 0===s?this.values.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)r=Math.max(0,Math.min(a[e][n],this.values[e][n])),this.values[e][n]=Math.round(r);for(var l in o)for(l!==e&&(this.values[l]=i[e][l](this.values[e])),n=0;n<l.length;n++)r=Math.max(0,Math.min(a[l][n],this.values[l][n])),this.values[l][n]=Math.round(r);return!0},a.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"===typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},a.prototype.setChannel=function(e,t,n){return void 0===n?this.values[e][t]:(n===this.values[e][t]||(this.values[e][t]=n,this.setValues(e,this.values[e])),this)},e.exports=a},function(e,t,n){(function(t){var n=function(){"use strict";function e(n,i,o,a){"object"===typeof i&&(o=i.depth,a=i.prototype,i.filter,i=i.circular);var s=[],u=[],l="undefined"!=typeof t;return"undefined"==typeof i&&(i=!0),"undefined"==typeof o&&(o=1/0),function n(o,c){if(null===o)return null;if(0==c)return o;var f,d;if("object"!=typeof o)return o;if(e.__isArray(o))f=[];else if(e.__isRegExp(o))f=new RegExp(o.source,r(o)),o.lastIndex&&(f.lastIndex=o.lastIndex);else if(e.__isDate(o))f=new Date(o.getTime());else{if(l&&t.isBuffer(o))return f=t.allocUnsafe?t.allocUnsafe(o.length):new t(o.length),o.copy(f),f;"undefined"==typeof a?(d=Object.getPrototypeOf(o),f=Object.create(d)):(f=Object.create(a),d=a)}if(i){var h=s.indexOf(o);if(-1!=h)return u[h];s.push(o),u.push(f)}for(var p in o){var g;d&&(g=Object.getOwnPropertyDescriptor(d,p)),g&&null==g.set||(f[p]=n(o[p],c-1))}return f}(n,o)}function n(e){return Object.prototype.toString.call(e)}function r(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=n,e.__isDate=function(e){return"object"===typeof e&&"[object Date]"===n(e)},e.__isArray=function(e){return"object"===typeof e&&"[object Array]"===n(e)},e.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===n(e)},e.__getRegExpFlags=r,e}();e.exports&&(e.exports=n)}).call(this,n(336).Buffer)},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*g}},function(e,t,n){var r=n(255),i=n(421),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(255);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(r[i]),a=o.length,s=0;s<a;s++){var u=o[s],l=t[u];-1===l.distance&&(l.distance=t[i].distance+1,l.parent=i,n.unshift(u))}return t}function o(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){for(var t=i(e),n={},r=Object.keys(t),o=r.length,s=0;s<o;s++){var u=r[s];null!==t[u].parent&&(n[u]=a(u,t))}return n}},function(e,t,n){var r=n(423);function i(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3})$/);if(i){i=i[1];for(var o=0;o<t.length;o++)t[o]=parseInt(i[o]+i[o],16)}else if(i=e.match(/^#([a-fA-F0-9]{6})$/)){i=i[1];for(o=0;o<t.length;o++)t[o]=parseInt(i.slice(2*o,2*o+2),16)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(o=0;o<t.length;o++)t[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=e.match(/(\D+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=r[i[1]]))return}for(o=0;o<t.length;o++)t[o]=c(t[o],0,255);return n=n||0==n?c(n,0,1):1,t[3]=n,t}}function o(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[c(parseInt(t[1]),0,360),c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function a(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[c(parseInt(t[1]),0,360),c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function u(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function l(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function c(e,t,n){return Math.min(Math.max(t,e),n)}function f(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:o,getRgb:function(e){var t=i(e);return t&&t.slice(0,3)},getHsl:function(e){var t=o(e);return t&&t.slice(0,3)},getHwb:a,getAlpha:function(e){var t=i(e);if(t)return t[3];if(t=o(e))return t[3];if(t=a(e))return t[3]},hexString:function(e){return"#"+f(e[0])+f(e[1])+f(e[2])},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return s(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return u(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:u,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return l(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:l,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return d[e.slice(0,3)]}};var d={};for(var h in r)d[r[h]]=h},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t){e.exports=["#01888C","#FC7500","#034F5D","#F73F01","#FC1960","#C7144C","#F3C100","#1598F2","#2465E1","#F19E02"]},function(e,t,n){},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(196),i=n(457),o=n(458).rfc4648,a=n(197),s=a.decodeText,u=a.encodeText,l=[["identity","\0",function(){return{encode:s,decode:u}},""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=l.reduce((function(e,t){return e[t[0]]=new i(t[0],t[1],t[2],t[3]),e}),{}),f=l.reduce((function(e,t){return e[t[1]]=c[t[0]],e}),{});e.exports={names:c,codes:f}},function(e,t,n){"use strict";var r=n(96),i=n(145),o=n(146),a=n(197).encodeText,s=function(){function e(t,n,r,o){i(this,e),this.name=t,this.code=n,this.codeBuf=a(this.code),this.alphabet=o,this.codec=r(o)}return o(e,[{key:"encode",value:function(e){return this.codec.encode(e)}},{key:"decode",value:function(e){var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(this.alphabet&&this.alphabet.indexOf(i)<0)throw new Error("invalid character '".concat(i,"' in '").concat(e,"'"))}}catch(o){n.e(o)}finally{n.f()}return this.codec.decode(e)}}]),e}();e.exports=s},function(e,t,n){"use strict";e.exports={rfc4648:function(e){return function(t){return{encode:function(n){return function(e,t,n){for(var r="="===t[t.length-1],i=(1<<n)-1,o="",a=0,s=0,u=0;u<e.length;++u)for(s=s<<8|e[u],a+=8;a>n;)o+=t[i&s>>(a-=n)];if(a&&(o+=t[i&s<<n-a]),r)for(;o.length*n&7;)o+="=";return o}(n,t,e)},decode:function(n){return function(e,t,n){for(var r={},i=0;i<t.length;++i)r[t[i]]=i;for(var o=e.length;"="===e[o-1];)--o;for(var a=new Uint8Array(o*n/8|0),s=0,u=0,l=0,c=0;c<o;++c){var f=r[e[c]];if(void 0===f)throw new SyntaxError("Invalid character "+e[c]);u=u<<n|f,(s+=n)>=8&&(s-=8,a[l++]=255&u>>s)}if(s>=n||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a}(n,t,e)}}}}}},function(e,t){e.exports=function e(t,r,i){r=r||[];var o=i=i||0;for(;t>=n;)r[i++]=255&t|128,t/=128;for(;-128&t;)r[i++]=255&t|128,t>>>=7;return r[i]=0|t,e.bytes=i-o+1,r};var n=Math.pow(2,31)},function(e,t){e.exports=function e(t,n){var r,i=0,o=0,a=n=n||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[a++],i+=o<28?(127&r)<<o:(127&r)*Math.pow(2,o),o+=7}while(r>=128);return e.bytes=a-n,i}},function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),o=Math.pow(2,28),a=Math.pow(2,35),s=Math.pow(2,42),u=Math.pow(2,49),l=Math.pow(2,56),c=Math.pow(2,63);e.exports=function(e){return e<n?1:e<r?2:e<i?3:e<o?4:e<a?5:e<s?6:e<u?7:e<l?8:e<c?9:10}},function(e,t,n){"use strict";var r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:r}},function(e,t,n){"use strict";var r=n(239),i=n(198),o=n(150),a=n(260),s=n(464),u=s.nameToVarint,l=s.constantToCode,c=s.nameToCode,f=s.codeToName;function d(e){var t=i.decode(e),n=f[t];if(void 0===n)throw new Error('Code "'.concat(t,'" not found'));return n}function h(e){return f[e]}function p(e){var t=c[e];if(void 0===t)throw new Error('Codec "'.concat(e,'" not found'));return t}function g(e){return i.decode(e)}function y(e){var t=u[e];if(void 0===t)throw new Error('Codec "'.concat(e,'" not found'));return t}function v(e){return a.varintEncode(e)}e.exports=r(r({addPrefix:function(e,t){var n;if(e instanceof Uint8Array)n=a.varintUint8ArrayEncode(e);else{if(!u[e])throw new Error("multicodec not recognized");n=u[e]}return o([n,t],n.length+t.length)},rmPrefix:function(e){return i.decode(e),e.slice(i.decode.bytes)},getNameFromData:d,getNameFromCode:h,getCodeFromName:p,getCodeFromData:g,getVarintFromName:y,getVarintFromCode:v,getCodec:function(e){return d(e)},getName:function(e){return h(e)},getNumber:function(e){return p(e)},getCode:function(e){return g(e)},getCodeVarint:function(e){return y(e)},getVarint:function(e){return Array.from(v(e))}},l),{},{nameToVarint:u,nameToCode:c,codeToName:f})},function(e,t,n){"use strict";var r=n(465).baseTable,i=n(260).varintEncode,o={},a={},s={};for(var u in r){var l=u,c=r[l];o[l]=i(c),a[l.toUpperCase().replace(/-/g,"_")]=c,s[c]||(s[c]=l)}Object.freeze(o),Object.freeze(a),Object.freeze(s);var f=Object.freeze(r);e.exports={nameToVarint:o,constantToCode:a,nameToCode:f,codeToName:s}},function(e,t,n){"use strict";var r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,docid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,json:512,messagepack:513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056});e.exports={baseTable:r}},function(e,t,n){"use strict";var r=n(259),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{r.validate(e.multihash)}catch(n){var t=n.message;return t||(t="Multihash validation failed"),t}}};e.exports=i},function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}},function(e,t){e.exports=function e(t,r,i){if(Number.MAX_SAFE_INTEGER&&t>Number.MAX_SAFE_INTEGER)throw e.bytes=0,new RangeError("Could not encode varint");r=r||[];var o=i=i||0;for(;t>=n;)r[i++]=255&t|128,t/=128;for(;-128&t;)r[i++]=255&t|128,t>>>=7;return r[i]=0|t,e.bytes=i-o+1,r};var n=Math.pow(2,31)},function(e,t){e.exports=function e(t,n){var r,i=0,o=0,a=n=n||0,s=t.length;do{if(a>=s||o>49)throw e.bytes=0,new RangeError("Could not decode varint");r=t[a++],i+=o<28?(127&r)<<o:(127&r)*Math.pow(2,o),o+=7}while(r>=128);return e.bytes=a-n,i}},function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),o=Math.pow(2,28),a=Math.pow(2,35),s=Math.pow(2,42),u=Math.pow(2,49),l=Math.pow(2,56),c=Math.pow(2,63);e.exports=function(e){return e<n?1:e<r?2:e<i?3:e<o?4:e<a?5:e<s?6:e<u?7:e<l?8:e<c?9:10}},function(e,t,n){"use strict";var r=n(151).baseTable,i=new Map;for(var o in r){var a=r[o];i.set(a,o)}e.exports=Object.freeze(i)},function(e,t,n){"use strict";var r=n(151).baseTable,i=n(262).varintEncode,o={};for(var a in r){var s=r[a];o[a]=i(s)}e.exports=Object.freeze(o)},function(e,t,n){"use strict";var r=n(263).names,i=new(0,n(152).TextDecoder)("utf8");function o(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if("utf8"===t||"utf-8"===t)return i.decode(e);if("ascii"===t)return o(e);var n=r[t];if(!n)throw new Error("Unknown base");return n.encode(e)}},function(e,t,n){"use strict";var r=n(96),i=n(145),o=n(146),a=n(264).encodeText,s=function(){function e(t,n,r,o){i(this,e),this.name=t,this.code=n,this.codeBuf=a(this.code),this.alphabet=o,this.codec=r(o)}return o(e,[{key:"encode",value:function(e){return this.codec.encode(e)}},{key:"decode",value:function(e){var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(this.alphabet&&this.alphabet.indexOf(i)<0)throw new Error("invalid character '".concat(i,"' in '").concat(e,"'"))}}catch(o){n.e(o)}finally{n.f()}return this.codec.decode(e)}}]),e}();e.exports=s},function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";e.exports={rfc4648:function(e){return function(t){return{encode:function(n){return function(e,t,n){for(var r="="===t[t.length-1],i=(1<<n)-1,o="",a=0,s=0,u=0;u<e.length;++u)for(s=s<<8|e[u],a+=8;a>n;)o+=t[i&s>>(a-=n)];if(a&&(o+=t[i&s<<n-a]),r)for(;o.length*n&7;)o+="=";return o}(n,t,e)},decode:function(n){return function(e,t,n){for(var r={},i=0;i<t.length;++i)r[t[i]]=i;for(var o=e.length;"="===e[o-1];)--o;for(var a=new Uint8Array(o*n/8|0),s=0,u=0,l=0,c=0;c<o;++c){var f=r[e[c]];if(void 0===f)throw new SyntaxError("Invalid character "+e[c]);u=u<<n|f,(s+=n)>=8&&(s-=8,a[l++]=255&u>>s)}if(s>=n||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a}(n,t,e)}}}}}},function(e,t,n){"use strict";var r=n(263).names,i=new(0,n(152).TextEncoder);function o(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if("utf8"===t||"utf-8"===t)return i.encode(e);if("ascii"===t)return o(e);var n=r[t];if(!n)throw new Error("Unknown base");return n.decode(e)}},function(e,t,n){"use strict";var r=n(96);e.exports=function(e,t){t||(t=e.reduce((function(e,t){return e+t.length}),0));var n,i=new Uint8Array(t),o=0,a=r(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.set(s,o),o+=s.length}}catch(u){a.e(u)}finally{a.f()}return i}},function(e,t,n){"use strict";for(var r=n(236),i=n(151).baseTable,o={},a=0,s=Object.entries(i);a<s.length;a++){var u=r(s[a],2),l=u[0],c=u[1];o[l.toUpperCase().replace(/-/g,"_")]=c}e.exports=Object.freeze(o)},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";for(var r=n(236),i=n(151).baseTable,o={},a=0,s=Object.entries(i);a<s.length;a++){var u=r(s[a],2),l=u[0],c=u[1];void 0===o[c]&&(o[c]=l)}e.exports=Object.freeze(o)},function(e,t,n){"use strict";var r=n(486),i=n(200),o=i.encodeText,a=i.decodeText,s=i.concat;function u(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: ".concat(e))}(t=e.exports=function(e,t){if(!t)throw new Error("requires an encoded Uint8Array");var n=u(e),r=n.name,i=n.codeBuf;return function(e,t){u(e).decode(a(t))}(r,t),s([i,t],i.length+t.length)}).encode=function(e,t){var n=u(e),r=o(n.encode(t));return s([n.codeBuf,r],n.codeBuf.length+r.length)},t.decode=function(e){e instanceof Uint8Array&&(e=a(e));var t=e[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase()),u(e[0]).decode(e.substring(1))},t.isEncoded=function(e){if(e instanceof Uint8Array&&(e=a(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return u(e[0]).name}catch(t){return!1}},t.encoding=u,t.encodingFromData=function(e){return e instanceof Uint8Array&&(e=a(e)),u(e[0])},t.names=Object.freeze(r.names),t.codes=Object.freeze(r.codes)},function(e,t,n){"use strict";var r=n(196),i=n(487),o=n(488).rfc4648,a=n(200),s=a.decodeText,u=a.encodeText,l=[["identity","\0",function(){return{encode:s,decode:u}},""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=l.reduce((function(e,t){return e[t[0]]=new i(t[0],t[1],t[2],t[3]),e}),{}),f=l.reduce((function(e,t){return e[t[1]]=c[t[0]],e}),{});e.exports={names:c,codes:f}},function(e,t,n){"use strict";var r=n(96),i=n(145),o=n(146),a=n(200).encodeText,s=function(){function e(t,n,r,o){i(this,e),this.name=t,this.code=n,this.codeBuf=a(this.code),this.alphabet=o,this.codec=r(o)}return o(e,[{key:"encode",value:function(e){return this.codec.encode(e)}},{key:"decode",value:function(e){var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(this.alphabet&&this.alphabet.indexOf(i)<0)throw new Error("invalid character '".concat(i,"' in '").concat(e,"'"))}}catch(o){n.e(o)}finally{n.f()}return this.codec.decode(e)}}]),e}();e.exports=s},function(e,t,n){"use strict";e.exports={rfc4648:function(e){return function(t){return{encode:function(n){return function(e,t,n){for(var r="="===t[t.length-1],i=(1<<n)-1,o="",a=0,s=0,u=0;u<e.length;++u)for(s=s<<8|e[u],a+=8;a>n;)o+=t[i&s>>(a-=n)];if(a&&(o+=t[i&s<<n-a]),r)for(;o.length*n&7;)o+="=";return o}(n,t,e)},decode:function(n){return function(e,t,n){for(var r={},i=0;i<t.length;++i)r[t[i]]=i;for(var o=e.length;"="===e[o-1];)--o;for(var a=new Uint8Array(o*n/8|0),s=0,u=0,l=0,c=0;c<o;++c){var f=r[e[c]];if(void 0===f)throw new SyntaxError("Invalid character "+e[c]);u=u<<n|f,(s+=n)>=8&&(s-=8,a[l++]=255&u>>s)}if(s>=n||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a}(n,t,e)}}}}}},function(e,t,n){e.exports={encode:n(490),decode:n(491),encodingLength:n(492)}},function(e,t){e.exports=function e(t,r,i){if(Number.MAX_SAFE_INTEGER&&t>Number.MAX_SAFE_INTEGER)throw e.bytes=0,new RangeError("Could not encode varint");r=r||[];var o=i=i||0;for(;t>=n;)r[i++]=255&t|128,t/=128;for(;-128&t;)r[i++]=255&t|128,t>>>=7;return r[i]=0|t,e.bytes=i-o+1,r};var n=Math.pow(2,31)},function(e,t){e.exports=function e(t,n){var r,i=0,o=0,a=n=n||0,s=t.length;do{if(a>=s||o>49)throw e.bytes=0,new RangeError("Could not decode varint");r=t[a++],i+=o<28?(127&r)<<o:(127&r)*Math.pow(2,o),o+=7}while(r>=128);return e.bytes=a-n,i}},function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),o=Math.pow(2,28),a=Math.pow(2,35),s=Math.pow(2,42),u=Math.pow(2,49),l=Math.pow(2,56),c=Math.pow(2,63);e.exports=function(e){return e<n?1:e<r?2:e<i?3:e<o?4:e<a?5:e<s?6:e<u?7:e<l?8:e<c?9:10}},function(e,t,n){"use strict";var r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:r}},function(e,t,n){"use strict";var r=n(495),i=n(266),o=n(203),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,d=o.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,a,s,l,f,d,p,g,y,v,m,b,w){var x,_=t;if(w.has(t))throw new RangeError("Cyclic object value");if("function"===typeof f?_=f(n,_):_ instanceof Date?_=g(_):"comma"===o&&u(_)&&(_=i.maybeMap(_,(function(e){return e instanceof Date?g(e):e}))),null===_){if(a)return l&&!m?l(n,h.encoder,b,"key",y):n;_=""}if("string"===typeof(x=_)||"number"===typeof x||"boolean"===typeof x||"symbol"===typeof x||"bigint"===typeof x||i.isBuffer(_))return l?[v(m?n:l(n,h.encoder,b,"key",y))+"="+v(l(_,h.encoder,b,"value",y))]:[v(n)+"="+v(String(_))];var k,S=[];if("undefined"===typeof _)return S;if("comma"===o&&u(_))k=[{value:_.length>0?_.join(",")||null:void 0}];else if(u(f))k=f;else{var T=Object.keys(_);k=d?T.sort(d):T}for(var C=0;C<k.length;++C){var A=k[C],O="object"===typeof A&&void 0!==A.value?A.value:_[A];if(!s||null!==O){var M=u(_)?"function"===typeof o?o(n,A):n:n+(p?"."+A:"["+A+"]");w.set(t,!0);var E=r();c(S,e(O,M,o,a,s,l,f,d,p,g,y,v,m,b,E))}}return S};e.exports=function(e,t){var n,i=e,l=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=h.filter;return("function"===typeof e.filter||u(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"===typeof l.filter?i=(0,l.filter)("",i):u(l.filter)&&(n=l.filter);var f,d=[];if("object"!==typeof i||null===i)return"";f=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[f];n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var y=r(),v=0;v<n.length;++v){var m=n[v];l.skipNulls&&null===i[m]||c(d,p(i[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,y))}var b=d.join(l.delimiter),w=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},function(e,t,n){"use strict";var r=n(201),i=n(500),o=n(502),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return l(e,r)}else if(u){if(t)return d(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return f(e,r)}else if(u){if(t)return p(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),c(e,r,i)):u?(t||(t=new u),h(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(497);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!==typeof t||"[object Function]"!==o.call(t))throw new TypeError(r+t);for(var n,a=i.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(i.call(arguments)))},u=Math.max(0,t.length-a.length),l=[],c=0;c<u;c++)l.push("$"+c);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var f=function(){};f.prototype=t.prototype,n.prototype=new f,f.prototype=null}return n}},function(e,t,n){"use strict";var r=n(202);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(201),i=n(501),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},function(e,t,n){"use strict";var r=n(202),i=n(201),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(d){l=null}e.exports=function(e){var t=s(r,a,arguments);if(u&&l){var n=u(t,"length");n.configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return s(r,o,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},function(e,t,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"===typeof u.get?u.get:null,c=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,y=Function.prototype.toString,v=String.prototype.match,m="function"===typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,x="function"===typeof Symbol&&"object"===typeof Symbol.iterator,_=Object.prototype.propertyIsEnumerable,k=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),S=n(503).custom,T=S&&E(S)?S:null,C="function"===typeof Symbol&&"undefined"!==typeof Symbol.toStringTag?Symbol.toStringTag:null;function A(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function O(e){return String(e).replace(/"/g,""")}function M(e){return"[object Array]"===D(e)&&(!C||!("object"===typeof e&&C in e))}function E(e){if(x)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!w)return!1;try{return w.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(I(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!I(s,"customInspect")||s.customInspect;if("boolean"!==typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(I(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return e(t.slice(0,n.maxStringLength),n)+i}return A(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,R),"single",n)}(t,s);if("number"===typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"===typeof t)return String(t)+"n";var g="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=g&&g>0&&"object"===typeof t)return M(t)?"[Array]":"[Object]";var b=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,r);if("undefined"===typeof i)i=[];else if(L(i,t)>=0)return"[Circular]";function _(t,n,o){if(n&&(i=i.slice()).push(n),o){var a={depth:s.depth};return I(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"===typeof t){var S=function(e){if(e.name)return e.name;var t=v.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),P=z(t,_);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(P.length>0?" { "+P.join(", ")+" }":"")}if(E(t)){var V=x?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(t);return"object"!==typeof t||x?V:N(V)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var H="<"+String(t.nodeName).toLowerCase(),U=t.attributes||[],G=0;G<U.length;G++)H+=" "+U[G].name+"="+A(O(U[G].value),"double",s);return H+=">",t.childNodes&&t.childNodes.length&&(H+="..."),H+="</"+String(t.nodeName).toLowerCase()+">"}if(M(t)){if(0===t.length)return"[]";var J=z(t,_);return b&&!function(e){for(var t=0;t<e.length;t++)if(L(e[t],"\n")>=0)return!1;return!0}(J)?"["+F(J,b)+"]":"[ "+J.join(", ")+" ]"}if(function(e){return"[object Error]"===D(e)&&(!C||!("object"===typeof e&&C in e))}(t)){var X=z(t,_);return 0===X.length?"["+String(t)+"]":"{ ["+String(t)+"] "+X.join(", ")+" }"}if("object"===typeof t&&u){if(T&&"function"===typeof t[T])return t[T]();if("function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{l.call(e)}catch(H){return!0}return e instanceof Map}catch(t){}return!1}(t)){var W=[];return a.call(t,(function(e,n){W.push(_(n,t,!0)+" => "+_(e,t))})),B("Map",o.call(t),W,b)}if(function(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var q=[];return c.call(t,(function(e){q.push(_(e,t))})),B("Set",l.call(t),q,b)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(H){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return j("WeakMap");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(H){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return j("WeakSet");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return j("WeakRef");if(function(e){return"[object Number]"===D(e)&&(!C||!("object"===typeof e&&C in e))}(t))return N(_(Number(t)));if(function(e){if(!e||"object"!==typeof e||!m)return!1;try{return m.call(e),!0}catch(t){}return!1}(t))return N(_(m.call(t)));if(function(e){return"[object Boolean]"===D(e)&&(!C||!("object"===typeof e&&C in e))}(t))return N(p.call(t));if(function(e){return"[object String]"===D(e)&&(!C||!("object"===typeof e&&C in e))}(t))return N(_(String(t)));if(!function(e){return"[object Date]"===D(e)&&(!C||!("object"===typeof e&&C in e))}(t)&&!function(e){return"[object RegExp]"===D(e)&&(!C||!("object"===typeof e&&C in e))}(t)){var Z=z(t,_),K=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,Y=t instanceof Object?"":"null prototype",$=!K&&C&&Object(t)===t&&C in t?D(t).slice(8,-1):Y?"Object":"",Q=(K||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+($||Y?"["+[].concat($||[],Y||[]).join(": ")+"] ":"");return 0===Z.length?Q+"{}":b?Q+"{"+F(Z,b)+"}":Q+"{ "+Z.join(", ")+" }"}return String(t)};var P=Object.prototype.hasOwnProperty||function(e){return e in this};function I(e,t){return P.call(e,t)}function D(e){return g.call(e)}function L(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function R(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function N(e){return"Object("+e+")"}function j(e){return e+" { ? }"}function B(e,t,n,r){return e+" ("+t+") {"+(r?F(n,r):n.join(", "))+"}"}function F(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function z(e,t){var n=M(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=I(e,i)?t(e[i],e):""}var o,a="function"===typeof b?b(e):[];if(x){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)I(e,u)&&(n&&String(Number(u))===u&&u<e.length||x&&o["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"===typeof b)for(var l=0;l<a.length;l++)_.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}},,function(e,t,n){"use strict";var r=n(266),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&null!==(s=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:u(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[l]=i:a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),h=n,n=d.length);for(n=0;n<d.length;++n)if(n!==h){var g,y,v=d[n],m=v.indexOf("]="),b=-1===m?v.indexOf("="):m+1;-1===b?(g=t.decoder(v,a.decoder,p,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,b),a.decoder,p,"key"),y=r.maybeMap(u(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=s(y)),v.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(l,g)?l[g]=r.combine(l[g],y):l[g]=y}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(c),h=0;h<d.length;++h){var p=d[h],g=l(p,c[p],n,"string"===typeof e);f=r.merge(f,g,n)}return!0===n.allowSparse?f:r.compact(f)}},function(e,t,n){"use strict";var r=n(204),i=n(115),o=n(206),a=n(268),s=n(269),u=i.ucs2length,l=n(205),c=o.Validation;function f(e,t,n){var r=h.call(this,e,t,n);return r>=0?{index:r,compiling:!0}:(r=this._compilations.length,this._compilations[r]={schema:e,root:t,baseId:n},{index:r,compiling:!1})}function d(e,t,n){var r=h.call(this,e,t,n);r>=0&&this._compilations.splice(r,1)}function h(e,t,n){for(var r=0;r<this._compilations.length;r++){var i=this._compilations[r];if(i.schema==e&&i.root==t&&i.baseId==n)return r}return-1}function p(e,t){return"var pattern"+e+" = new RegExp("+i.toQuotedString(t[e])+");"}function g(e){return"var default"+e+" = defaults["+e+"];"}function y(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function v(e){return"var customRule"+e+" = customRules["+e+"];"}function m(e,t){if(!e.length)return"";for(var n="",r=0;r<e.length;r++)n+=t(r,e);return n}e.exports=function e(t,n,h,b){var w=this,x=this._opts,_=[void 0],k={},S=[],T={},C=[],A={},O=[];n=n||{schema:t,refVal:_,refs:k};var M=f.call(this,t,n,b),E=this._compilations[M.index];if(M.compiling)return E.callValidate=function e(){var t=E.validate,n=t.apply(this,arguments);return e.errors=t.errors,n};var P=this._formats,I=this.RULES;try{var D=R(t,n,h,b);E.validate=D;var L=E.callValidate;return L&&(L.schema=D.schema,L.errors=null,L.refs=D.refs,L.refVal=D.refVal,L.root=D.root,L.$async=D.$async,x.sourceCode&&(L.source=D.source)),D}finally{d.call(this,t,n,b)}function R(t,a,f,d){var h=!a||a&&a.schema==t;if(a.schema!=n.schema)return e.call(w,t,a,f,d);var b,T=!0===t.$async,A=s({isTop:!0,schema:t,isRoot:h,baseId:d,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:I,validate:s,util:i,resolve:r,resolveRef:N,usePattern:F,useDefault:z,useCustomRule:V,opts:x,formats:P,logger:w.logger,self:w});A=m(_,y)+m(S,p)+m(C,g)+m(O,v)+A,x.processCode&&(A=x.processCode(A,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",A)(w,I,P,n,_,C,O,l,u,c),_[0]=b}catch(M){throw w.logger.error("Error compiling schema, function code:",A),M}return b.schema=t,b.errors=null,b.refs=k,b.refVal=_,b.root=h?b:a,T&&(b.$async=!0),!0===x.sourceCode&&(b.source={code:A,patterns:S,defaults:C}),b}function N(t,i,o){i=r.url(t,i);var a,s,u=k[i];if(void 0!==u)return B(a=_[u],s="refVal["+u+"]");if(!o&&n.refs){var l=n.refs[i];if(void 0!==l)return B(a=n.refVal[l],s=j(i,a))}s=j(i);var c=r.call(w,R,n,i);if(void 0===c){var f=h&&h[i];f&&(c=r.inlineRef(f,x.inlineRefs)?f:e.call(w,f,n,h,t))}if(void 0!==c)return function(e,t){var n=k[e];_[n]=t}(i,c),B(c,s);!function(e){delete k[e]}(i)}function j(e,t){var n=_.length;return _[n]=t,k[e]=n,"refVal"+n}function B(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function F(e){var t=T[e];return void 0===t&&(t=T[e]=S.length,S[t]=e),"pattern"+t}function z(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),n=A[t];return void 0===n&&(n=A[t]=C.length,C[n]=e),"default"+n}}function V(e,t,n,r){if(!1!==w._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(n,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var o=e.definition.validateSchema;if(o)if(!o(t)){var a="keyword schema is invalid: "+w.errorsText(o.errors);if("log"!=w._opts.validateSchema)throw new Error(a);w.logger.error(a)}}var s,u=e.definition.compile,l=e.definition.inline,c=e.definition.macro;if(u)s=u.call(w,t,n,r);else if(c)s=c.call(w,t,n,r),!1!==x.validateSchema&&w.validateSchema(s,!0);else if(l)s=l.call(w,r,e.keyword,t,n);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=O.length;return O[f]=s,{code:"customRule"+f,validate:s}}}},function(e,t,n){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,i=1;i<r;++i)t[i]=t[i].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){var r=t("[0-9]","[A-Fa-f]"),i=n(n("%[EFef]"+r+"%"+r+r+"%"+r+r)+"|"+n("%[89A-Fa-f]"+r+"%"+r+r)+"|"+n("%"+r+r)),o="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",a=t("[\\:\\/\\?\\#\\[\\]\\@]",o),s=e?"[\\uE000-\\uF8FF]":"[]",u=t("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),l=n("[A-Za-z]"+t("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),c=n(n(i+"|"+t(u,o,"[\\:]"))+"*"),f=(n(n("25[0-5]")+"|"+n("2[0-4][0-9]")+"|"+n("1[0-9][0-9]")+"|"+n("[1-9][0-9]")+"|[0-9]"),n(n("25[0-5]")+"|"+n("2[0-4][0-9]")+"|"+n("1[0-9][0-9]")+"|"+n("0?[1-9][0-9]")+"|0?0?[0-9]")),d=n(f+"\\."+f+"\\."+f+"\\."+f),h=n(r+"{1,4}"),p=n(n(h+"\\:"+h)+"|"+d),g=n(n(h+"\\:")+"{6}"+p),y=n("\\:\\:"+n(h+"\\:")+"{5}"+p),v=n(n(h)+"?\\:\\:"+n(h+"\\:")+"{4}"+p),m=n(n(n(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+n(h+"\\:")+"{3}"+p),b=n(n(n(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+n(h+"\\:")+"{2}"+p),w=n(n(n(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+p),x=n(n(n(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+p),_=n(n(n(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),k=n(n(n(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),S=n([g,y,v,m,b,w,x,_,k].join("|")),T=n(n(u+"|"+i)+"+"),C=(n(S+"\\%25"+T),n(S+n("\\%25|\\%(?!"+r+"{2})")+T)),A=n("[vV]"+r+"+\\."+t(u,o,"[\\:]")+"+"),O=n("\\["+n(C+"|"+S+"|"+A)+"\\]"),M=n(n(i+"|"+t(u,o))+"*"),E=n(O+"|"+d+"(?!"+M+")|"+M),P=n("[0-9]*"),I=n(n(c+"@")+"?"+E+n("\\:"+P)+"?"),D=n(i+"|"+t(u,o,"[\\:\\@]")),L=n(D+"*"),R=n(D+"+"),N=n(n(i+"|"+t(u,o,"[\\@]"))+"+"),j=n(n("\\/"+L)+"*"),B=n("\\/"+n(R+j)+"?"),F=n(N+j),z=n(R+j),V="(?!"+D+")",H=(n(j+"|"+B+"|"+F+"|"+z+"|"+V),n(n(D+"|"+t("[\\/\\?]",s))+"*")),U=n(n(D+"|[\\/\\?]")+"*"),G=n(n("\\/\\/"+I+j)+"|"+B+"|"+z+"|"+V),J=n(l+"\\:"+G+n("\\?"+H)+"?"+n("\\#"+U)+"?"),X=n(n("\\/\\/"+I+j)+"|"+B+"|"+F+"|"+V),W=n(X+n("\\?"+H)+"?"+n("\\#"+U)+"?");return n(J+"|"+W),n(l+"\\:"+G+n("\\?"+H)+"?"),n(n("\\/\\/("+n("("+c+")@")+"?("+E+")"+n("\\:("+P+")")+"?)")+"?("+j+"|"+B+"|"+z+"|"+V+")"),n("\\?("+H+")"),n("\\#("+U+")"),n(n("\\/\\/("+n("("+c+")@")+"?("+E+")"+n("\\:("+P+")")+"?)")+"?("+j+"|"+B+"|"+F+"|"+V+")"),n("\\?("+H+")"),n("\\#("+U+")"),n(n("\\/\\/("+n("("+c+")@")+"?("+E+")"+n("\\:("+P+")")+"?)")+"?("+j+"|"+B+"|"+z+"|"+V+")"),n("\\?("+H+")"),n("\\#("+U+")"),n("("+c+")@"),n("\\:("+P+")"),{NOT_SCHEME:new RegExp(t("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,o),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,o),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,o),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,o),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,o,"[\\:\\@\\/\\?]",s),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,o,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,o),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,a),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+n(n("\\%25|\\%(?!"+r+"{2})")+"("+T+")")+"?\\]?$")}}var a=o(!1),s=o(!0),u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=2147483647,c=/^xn--/,f=/[^\0-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,g=String.fromCharCode;function y(e){throw new RangeError(h[e])}function v(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var i=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(d,".")).split("."),t).join(".");return r+i}function m(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var b=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},w=function(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))},x=function(e){var t,n=[],r=e.length,i=0,o=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var u=0;u<s;++u)e.charCodeAt(u)>=128&&y("not-basic"),n.push(e.charCodeAt(u));for(var c=s>0?s+1:0;c<r;){for(var f=i,d=1,h=36;;h+=36){c>=r&&y("invalid-input");var g=(t=e.charCodeAt(c++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(g>=36||g>p((l-i)/d))&&y("overflow"),i+=g*d;var v=h<=a?1:h>=a+26?26:h-a;if(g<v)break;var m=36-v;d>p(l/m)&&y("overflow"),d*=m}var b=n.length+1;a=w(i-f,b,0==f),p(i/b)>l-o&&y("overflow"),o+=p(i/b),i%=b,n.splice(i++,0,o)}return String.fromCodePoint.apply(String,n)},_=function(e){var t=[],n=(e=m(e)).length,r=128,i=0,o=72,a=!0,s=!1,u=void 0;try{for(var c,f=e[Symbol.iterator]();!(a=(c=f.next()).done);a=!0){var d=c.value;d<128&&t.push(g(d))}}catch(z){s=!0,u=z}finally{try{!a&&f.return&&f.return()}finally{if(s)throw u}}var h=t.length,v=h;for(h&&t.push("-");v<n;){var x=l,_=!0,k=!1,S=void 0;try{for(var T,C=e[Symbol.iterator]();!(_=(T=C.next()).done);_=!0){var A=T.value;A>=r&&A<x&&(x=A)}}catch(z){k=!0,S=z}finally{try{!_&&C.return&&C.return()}finally{if(k)throw S}}var O=v+1;x-r>p((l-i)/O)&&y("overflow"),i+=(x-r)*O,r=x;var M=!0,E=!1,P=void 0;try{for(var I,D=e[Symbol.iterator]();!(M=(I=D.next()).done);M=!0){var L=I.value;if(L<r&&++i>l&&y("overflow"),L==r){for(var R=i,N=36;;N+=36){var j=N<=o?1:N>=o+26?26:N-o;if(R<j)break;var B=R-j,F=36-j;t.push(g(b(j+B%F,0))),R=p(B/F)}t.push(g(b(R,0))),o=w(i,O,v==h),i=0,++v}}}catch(z){E=!0,P=z}finally{try{!M&&D.return&&D.return()}finally{if(E)throw P}}++i,++r}return t.join("")},k=function(e){return v(e,(function(e){return f.test(e)?"xn--"+_(e):e}))},S=function(e){return v(e,(function(e){return c.test(e)?x(e.slice(4).toLowerCase()):e}))},T={};function C(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function A(e){for(var t="",n=0,r=e.length;n<r;){var i=parseInt(e.substr(n+1,2),16);if(i<128)t+=String.fromCharCode(i),n+=3;else if(i>=194&&i<224){if(r-n>=6){var o=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(n,6);n+=6}else if(i>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function O(e,t){function n(e){var n=A(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,C).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,C).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,C).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,C).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,C).replace(t.PCT_ENCODED,i)),e}function M(e){return e.replace(/^0*(.*)/,"$1")||"0"}function E(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=u(n,2)[1];return r?r.split(".").map(M).join("."):e}function P(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=u(n,3),i=r[1],o=r[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=u(a,2),l=s[0],c=s[1],f=c?c.split(":").map(M):[],d=l.split(":").map(M),h=t.IPV4ADDRESS.test(d[d.length-1]),p=h?7:8,g=d.length-p,y=Array(p),v=0;v<p;++v)y[v]=f[v]||d[g+v]||"";h&&(y[p-1]=E(y[p-1],t));var m=y.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(m&&m.length>1){var w=y.slice(0,m.index),x=y.slice(m.index+m.length);b=w.join(":")+"::"+x.join(":")}else b=y.join(":");return o&&(b+="%"+o),b}return e}var I=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,D=void 0==="".match(/(){0}/)[1];function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(I);if(i){D?(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5])):(n.scheme=i[1]||void 0,n.userinfo=-1!==e.indexOf("@")?i[3]:void 0,n.host=-1!==e.indexOf("//")?i[4]:void 0,n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=-1!==e.indexOf("?")?i[7]:void 0,n.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),n.host&&(n.host=P(E(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var o=T[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)O(n,r);else{if(n.host&&(t.domainHost||o&&o.domainHost))try{n.host=k(n.host.replace(r.PCT_ENCODED,A).toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+u}O(n,a)}o&&o.parse&&o.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function R(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(P(E(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!==typeof e.port&&"string"!==typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var N=/^\.\.?\//,j=/^\/\.(\/|$)/,B=/^\/\.\.(\/|$)/,F=/^\/?(?:.|\n)*?(?=\/|$)/;function z(e){for(var t=[];e.length;)if(e.match(N))e=e.replace(N,"");else if(e.match(j))e=e.replace(j,"/");else if(e.match(B))e=e.replace(B,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(F);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],i=T[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?S(e.host):k(e.host.replace(n.PCT_ENCODED,A).toLowerCase())}catch(l){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+l}O(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var o=R(e,t);if(void 0!==o&&("suffix"!==t.reference&&r.push("//"),r.push(o),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var u=e.path;t.absolutePath||i&&i.absolutePath||(u=z(u)),void 0===o&&(u=u.replace(/^\/\//,"/%2F")),r.push(u)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],i={};return r||(e=L(V(e,n),n),t=L(V(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=z(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=z(t.path||""),i.query=t.query):(t.path?("/"===t.path.charAt(0)?i.path=z(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=z(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function U(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,A)}var G={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},J={scheme:"https",domainHost:G.domainHost,parse:G.parse,serialize:G.serialize};function X(e){return"boolean"===typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var W={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=X(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(X(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"===typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=u(n,2),i=r[0],o=r[1];e.path=i&&"/"!==i?i:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},q={scheme:"wss",domainHost:W.domainHost,parse:W.parse,serialize:W.serialize},Z={},K="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Y="[0-9A-Fa-f]",$=n(n("%[EFef]"+Y+"%"+Y+Y+"%"+Y+Y)+"|"+n("%[89A-Fa-f]"+Y+"%"+Y+Y)+"|"+n("%"+Y+Y)),Q=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ee=new RegExp(K,"g"),te=new RegExp($,"g"),ne=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Q),"g"),re=new RegExp(t("[^]",K,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ie=re;function oe(e){var t=A(e);return t.match(ee)?t:e}var ae={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var i=!1,o={},a=n.query.split("&"),s=0,u=a.length;s<u;++s){var l=a[s].split("=");switch(l[0]){case"to":for(var c=l[1].split(","),f=0,d=c.length;f<d;++f)r.push(c[f]);break;case"subject":n.subject=U(l[1],t);break;case"body":n.body=U(l[1],t);break;default:i=!0,o[U(l[0],t)]=U(l[1],t)}}i&&(n.headers=o)}n.query=void 0;for(var h=0,p=r.length;h<p;++h){var g=r[h].split("@");if(g[0]=U(g[0]),t.unicodeSupport)g[1]=U(g[1],t).toLowerCase();else try{g[1]=k(U(g[1],t).toLowerCase())}catch(y){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+y}r[h]=g.join("@")}return n},serialize:function(e,t){var n,r=e,o=void 0!==(n=e.to)&&null!==n?n instanceof Array?n:"number"!==typeof n.length||n.split||n.setInterval||n.call?[n]:Array.prototype.slice.call(n):[];if(o){for(var a=0,s=o.length;a<s;++a){var u=String(o[a]),l=u.lastIndexOf("@"),c=u.slice(0,l).replace(te,oe).replace(te,i).replace(ne,C),f=u.slice(l+1);try{f=t.iri?S(f):k(U(f,t).toLowerCase())}catch(g){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+g}o[a]=c+"@"+f}r.path=o.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var h=[];for(var p in d)d[p]!==Z[p]&&h.push(p.replace(te,oe).replace(te,i).replace(re,C)+"="+d[p].replace(te,oe).replace(te,i).replace(ie,C));return h.length&&(r.query=h.join("&")),r}},se=/^([^\:]+)\:(.*)/,ue={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(se),r=e;if(n){var i=t.scheme||r.scheme||"urn",o=n[1].toLowerCase(),a=n[2],s=i+":"+(t.nid||o),u=T[s];r.nid=o,r.nss=a,r.path=void 0,u&&(r=u.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,i=n+":"+(t.nid||r),o=T[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(r||t.nid)+":"+s,a}},le=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ce={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(le)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};T[G.scheme]=G,T[J.scheme]=J,T[W.scheme]=W,T[q.scheme]=q,T[ae.scheme]=ae,T[ue.scheme]=ue,T[ce.scheme]=ce,e.SCHEMES=T,e.pctEncChar=C,e.pctDecChars=A,e.parse=L,e.removeDotSegments=z,e.serialize=V,e.resolveComponents=H,e.resolve=function(e,t,n){var r=function(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}({scheme:"null"},n);return V(H(L(e,r),L(t,r),r,!0),r)},e.normalize=function(e,t){return"string"===typeof e?e=V(L(e,t),t):"object"===r(e)&&(e=L(V(e,t),t)),e},e.equal=function(e,t,n){return"string"===typeof e?e=V(L(e,n),n):"object"===r(e)&&(e=V(e,n)),"string"===typeof t?t=V(L(t,n),n):"object"===r(t)&&(t=V(t,n)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?s.ESCAPE:a.ESCAPE,C)},e.unescapeComponent=U,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";e.exports=function(e){for(var t,n=0,r=e.length,i=0;i<r;)n++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<r&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return n}},function(e,t,n){"use strict";var r=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),function e(t,n,i,o,a,s,u,l,c,f){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in n(o,a,s,u,l,c,f),o){var h=o[d];if(Array.isArray(h)){if(d in r.arrayKeywords)for(var p=0;p<h.length;p++)e(t,n,i,h[p],a+"/"+d+"/"+p,s,a,d,o,p)}else if(d in r.propsKeywords){if(h&&"object"==typeof h)for(var g in h)e(t,n,i,h[g],a+"/"+d+"/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),s,a,d,o,g)}else(d in r.keywords||t.allKeys&&!(d in r.skipKeywords))&&e(t,n,i,h,a+"/"+d,s,a,d,o)}i(o,a,s,u,l,c,f)}}(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},function(e,t,n){"use strict";var r=e.exports=function(){this._cache={}};r.prototype.put=function(e,t){this._cache[e]=t},r.prototype.get=function(e){return this._cache[e]},r.prototype.del=function(e){delete this._cache[e]},r.prototype.clear=function(){this._cache={}}},function(e,t,n){"use strict";var r=n(115),i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,c=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,p=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function g(e){return e="full"==e?"full":"fast",r.copy(g[e])}function y(e){var t=e.match(i);if(!t)return!1;var n=+t[1],r=+t[2],a=+t[3];return r>=1&&r<=12&&a>=1&&a<=(2==r&&function(e){return e%4===0&&(e%100!==0||e%400===0)}(n)?29:o[r])}function v(e,t){var n=e.match(a);if(!n)return!1;var r=n[1],i=n[2],o=n[3],s=n[5];return(r<=23&&i<=59&&o<=59||23==r&&59==i&&60==o)&&(!t||s)}e.exports=g,g.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:c,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:x,uuid:f,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":p},g.full={date:y,time:v,"date-time":function(e){var t=e.split(m);return 2==t.length&&y(t[0])&&v(t[1],!0)},uri:function(e){return b.test(e)&&u.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":l,url:c,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:x,uuid:f,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":p};var m=/t|\s/i;var b=/\/|:/;var w=/[^\\]\\Z/;function x(e){if(w.test(e))return!1;try{return new RegExp(e),!0}catch(t){return!1}}},function(e,t,n){"use strict";var r=n(512),i=n(115).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=i(t),e.types=i(["number","integer","string","array","object","boolean","null"]),e.forEach((function(n){n.rules=n.rules.map((function(n){var i;if("object"==typeof n){var o=Object.keys(n)[0];i=n[o],n=o,i.forEach((function(n){t.push(n),e.all[n]=!0}))}return t.push(n),e.all[n]={keyword:n,code:r[n],implements:i}})),e.all.$comment={keyword:"$comment",code:r.$comment},n.type&&(e.types[n.type]=n)})),e.keywords=i(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},function(e,t,n){"use strict";e.exports={$ref:n(513),allOf:n(514),anyOf:n(515),$comment:n(516),const:n(517),contains:n(518),dependencies:n(519),enum:n(520),format:n(521),if:n(522),items:n(523),maximum:n(270),minimum:n(270),maxItems:n(271),minItems:n(271),maxLength:n(272),minLength:n(272),maxProperties:n(273),minProperties:n(273),multipleOf:n(524),not:n(525),oneOf:n(526),pattern:n(527),properties:n(528),propertyNames:n(529),required:n(530),uniqueItems:n(531),validate:n(269)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o=" ",a=e.level,s=e.dataLevel,u=e.schema[t],l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(s||""),d="valid"+a;if("#"==u||"#/"==u)e.isRoot?(r=e.async,i="validate"):(r=!0===e.root.schema.$async,i="root.refVal[0]");else{var h=e.resolveRef(e.baseId,u,e.isRoot);if(void 0===h){var p=e.MissingRefError.message(e.baseId,u);if("fail"==e.opts.missingRefs){e.logger.error(p),(m=m||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(u)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(u)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(u)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var g=o;o=m.pop(),!e.compositeRule&&c?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,u,p);e.logger.warn(p),c&&(o+=" if (true) { ")}}else if(h.inline){var y=e.util.copy(e);y.level++;var v="valid"+y.level;y.schema=h.schema,y.schemaPath="",y.errSchemaPath=u,o+=" "+e.validate(y).replace(/validate\.schema/g,h.code)+" ",c&&(o+=" if ("+v+") { ")}else r=!0===h.$async||e.async&&!1!==h.$async,i=h.code}if(i){var m;(m=m||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=m.pop(),r){if(!e.async)throw new Error("async schema referenced by sync schema");c&&(o+=" var "+d+"; "),o+=" try { await "+b+"; ",c&&(o+=" "+d+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",c&&(o+=" "+d+" = false; "),o+=" } ",c&&(o+=" if ("+d+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",c&&(o+=" else { ")}return o}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,u=e.util.copy(e),l="";u.level++;var c="valid"+u.level,f=u.baseId,d=!0,h=i;if(h)for(var p,g=-1,y=h.length-1;g<y;)p=h[g+=1],(e.opts.strictKeywords?"object"==typeof p&&Object.keys(p).length>0||!1===p:e.util.schemaHasRules(p,e.RULES.all))&&(d=!1,u.schema=p,u.schemaPath=o+"["+g+"]",u.errSchemaPath=a+"/"+g,r+=" "+e.validate(u)+" ",u.baseId=f,s&&(r+=" if ("+c+") { ",l+="}"));return s&&(r+=d?" if (true) { ":" "+l.slice(0,-1)+" "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+i,d="errs__"+i,h=e.util.copy(e),p="";h.level++;var g="valid"+h.level;if(a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}))){var y=h.baseId;r+=" var "+d+" = errors; var "+f+" = false; ";var v=e.compositeRule;e.compositeRule=h.compositeRule=!0;var m=a;if(m)for(var b,w=-1,x=m.length-1;w<x;)b=m[w+=1],h.schema=b,h.schemaPath=s+"["+w+"]",h.errSchemaPath=u+"/"+w,r+=" "+e.validate(h)+" ",h.baseId=y,r+=" "+f+" = "+f+" || "+g+"; if (!"+f+") { ",p+="}";e.compositeRule=h.compositeRule=v,r+=" "+p+" if (!"+f+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else l&&(r+=" if (true) { ");return r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.schema[t],o=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(i));return!0===e.opts.$comment?r+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(r+=" self._opts.$comment("+a+", "+e.util.toQuotedString(o)+", validate.root.schema);"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+i,d=e.opts.$data&&a&&a.$data;d&&(r+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; "),d||(r+=" var schema"+i+" = validate.schema"+s+";"),r+="var "+f+" = equal("+c+", schema"+i+"); if (!"+f+") { ";var h=h||[];h.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to constant' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var p=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+p+"]); ":r+=" validate.errors = ["+p+"]; return false; ":r+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",l&&(r+=" else { "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+i,d="errs__"+i,h=e.util.copy(e);h.level++;var p="valid"+h.level,g="i"+i,y=h.dataLevel=e.dataLevel+1,v="data"+y,m=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(r+="var "+d+" = errors;var "+f+";",b){var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=a,h.schemaPath=s,h.errSchemaPath=u,r+=" var "+p+" = false; for (var "+g+" = 0; "+g+" < "+c+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var x=c+"["+g+"]";h.dataPathArr[y]=g;var _=e.validate(h);h.baseId=m,e.util.varOccurences(_,v)<2?r+=" "+e.util.varReplace(_,v,x)+" ":r+=" var "+v+" = "+x+"; "+_+" ",r+=" if ("+p+") break; } ",e.compositeRule=h.compositeRule=w,r+=" if (!"+p+") {"}else r+=" if ("+c+".length == 0) {";var k=k||[];k.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should contain a valid item' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var S=r;return r=k.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",b&&(r+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } "),e.opts.allErrors&&(r+=" } "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="errs__"+i,d=e.util.copy(e),h="";d.level++;var p="valid"+d.level,g={},y={},v=e.opts.ownProperties;for(x in a)if("__proto__"!=x){var m=a[x],b=Array.isArray(m)?y:g;b[x]=m}r+="var "+f+" = errors;";var w=e.errorPath;for(var x in r+="var missing"+i+";",y)if((b=y[x]).length){if(r+=" if ( "+c+e.util.getProperty(x)+" !== undefined ",v&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(x)+"') "),l){r+=" && ( ";var _=b;if(_)for(var k=-1,S=_.length-1;k<S;){E=_[k+=1],k&&(r+=" || "),r+=" ( ( "+(L=c+(D=e.util.getProperty(E)))+" === undefined ",v&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(E)+"') "),r+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?E:D)+") ) "}r+=")) { ";var T="missing"+i,C="' + "+T+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,T,!0):w+" + "+T);var A=A||[];A.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+C+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==b.length?r+="property "+e.util.escapeQuotes(b[0]):r+="properties "+e.util.escapeQuotes(b.join(", ")),r+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var O=r;r=A.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+O+"]); ":r+=" validate.errors = ["+O+"]; return false; ":r+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var M=b;if(M)for(var E,P=-1,I=M.length-1;P<I;){E=M[P+=1];var D=e.util.getProperty(E),L=(C=e.util.escapeQuotes(E),c+D);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,E,e.opts.jsonPointers)),r+=" if ( "+L+" === undefined ",v&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(E)+"') "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+C+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==b.length?r+="property "+e.util.escapeQuotes(b[0]):r+="properties "+e.util.escapeQuotes(b.join(", ")),r+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",l&&(h+="}",r+=" else { ")}e.errorPath=w;var R=d.baseId;for(var x in g){m=g[x];(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all))&&(r+=" "+p+" = true; if ( "+c+e.util.getProperty(x)+" !== undefined ",v&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(x)+"') "),r+=") { ",d.schema=m,d.schemaPath=s+e.util.getProperty(x),d.errSchemaPath=u+"/"+e.util.escapeFragment(x),r+=" "+e.validate(d)+" ",d.baseId=R,r+=" } ",l&&(r+=" if ("+p+") { ",h+="}"))}return l&&(r+=" "+h+" if ("+f+" == errors) {"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+i,d=e.opts.$data&&a&&a.$data;d&&(r+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var h="i"+i,p="schema"+i;d||(r+=" var "+p+" = validate.schema"+s+";"),r+="var "+f+";",d&&(r+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),r+=f+" = false;for (var "+h+"=0; "+h+"<"+p+".length; "+h+"++) if (equal("+c+", "+p+"["+h+"])) { "+f+" = true; break; }",d&&(r+=" } "),r+=" if (!"+f+") { ";var g=g||[];g.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var y=r;return r=g.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",l&&(r+=" else { "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||"");if(!1===e.opts.format)return l&&(r+=" if (true) { "),r;var f,d=e.opts.$data&&a&&a.$data;d?(r+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a;var h=e.opts.unknownFormats,p=Array.isArray(h);if(d){r+=" var "+(g="format"+i)+" = formats["+f+"]; var "+(y="isObject"+i)+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+(v="formatType"+i)+" = "+y+" && "+g+".type || 'string'; if ("+y+") { ",e.async&&(r+=" var async"+i+" = "+g+".async; "),r+=" "+g+" = "+g+".validate; } if ( ",d&&(r+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),r+=" (","ignore"!=h&&(r+=" ("+f+" && !"+g+" ",p&&(r+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),r+=") || "),r+=" ("+g+" && "+v+" == '"+n+"' && !(typeof "+g+" == 'function' ? ",e.async?r+=" (async"+i+" ? await "+g+"("+c+") : "+g+"("+c+")) ":r+=" "+g+"("+c+") ",r+=" : "+g+".test("+c+"))))) {"}else{var g;if(!(g=e.formats[a])){if("ignore"==h)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(r+=" if (true) { "),r;if(p&&h.indexOf(a)>=0)return l&&(r+=" if (true) { "),r;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var y,v=(y="object"==typeof g&&!(g instanceof RegExp)&&g.validate)&&g.type||"string";if(y){var m=!0===g.async;g=g.validate}if(v!=n)return l&&(r+=" if (true) { "),r;if(m){if(!e.async)throw new Error("async format in sync schema");r+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+c+"))) { "}else{r+=" if (! ";var b="formats"+e.util.getProperty(a);y&&(b+=".validate"),r+="function"==typeof g?" "+b+"("+c+") ":" "+b+".test("+c+") ",r+=") { "}}var w=w||[];w.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",r+=d?""+f:""+e.util.toQuotedString(a),r+=" } ",!1!==e.opts.messages&&(r+=" , message: 'should match format \"",r+=d?"' + "+f+" + '":""+e.util.escapeQuotes(a),r+="\"' "),e.opts.verbose&&(r+=" , schema: ",r+=d?"validate.schema"+s:""+e.util.toQuotedString(a),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var x=r;return r=w.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+x+"]); ":r+=" validate.errors = ["+x+"]; return false; ":r+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",l&&(r+=" else { "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+i,d="errs__"+i,h=e.util.copy(e);h.level++;var p="valid"+h.level,g=e.schema.then,y=e.schema.else,v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),m=void 0!==y&&(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all)),b=h.baseId;if(v||m){var w;h.createErrors=!1,h.schema=a,h.schemaPath=s,h.errSchemaPath=u,r+=" var "+d+" = errors; var "+f+" = true; ";var x=e.compositeRule;e.compositeRule=h.compositeRule=!0,r+=" "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,r+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=x,v?(r+=" if ("+p+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",r+=" "+e.validate(h)+" ",h.baseId=b,r+=" "+f+" = "+p+"; ",v&&m?r+=" var "+(w="ifClause"+i)+" = 'then'; ":w="'then'",r+=" } ",m&&(r+=" else { ")):r+=" if (!"+p+") { ",m&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",r+=" "+e.validate(h)+" ",h.baseId=b,r+=" "+f+" = "+p+"; ",v&&m?r+=" var "+(w="ifClause"+i)+" = 'else'; ":w="'else'",r+=" } "),r+=" if (!"+f+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+w+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match \"' + "+w+" + '\" schema' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",l&&(r+=" else { ")}else l&&(r+=" if (true) { ");return r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+i,d="errs__"+i,h=e.util.copy(e),p="";h.level++;var g="valid"+h.level,y="i"+i,v=h.dataLevel=e.dataLevel+1,m="data"+v,b=e.baseId;if(r+="var "+d+" = errors;var "+f+";",Array.isArray(a)){var w=e.schema.additionalItems;if(!1===w){r+=" "+f+" = "+c+".length <= "+a.length+"; ";var x=u;u=e.errSchemaPath+"/additionalItems",r+=" if (!"+f+") { ";var _=_||[];_.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(r+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var k=r;r=_.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+k+"]); ":r+=" validate.errors = ["+k+"]; return false; ":r+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",u=x,l&&(p+="}",r+=" else { ")}var S=a;if(S)for(var T,C=-1,A=S.length-1;C<A;)if(T=S[C+=1],e.opts.strictKeywords?"object"==typeof T&&Object.keys(T).length>0||!1===T:e.util.schemaHasRules(T,e.RULES.all)){r+=" "+g+" = true; if ("+c+".length > "+C+") { ";var O=c+"["+C+"]";h.schema=T,h.schemaPath=s+"["+C+"]",h.errSchemaPath=u+"/"+C,h.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,!0),h.dataPathArr[v]=C;var M=e.validate(h);h.baseId=b,e.util.varOccurences(M,m)<2?r+=" "+e.util.varReplace(M,m,O)+" ":r+=" var "+m+" = "+O+"; "+M+" ",r+=" } ",l&&(r+=" if ("+g+") { ",p+="}")}if("object"==typeof w&&(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))){h.schema=w,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+g+" = true; if ("+c+".length > "+a.length+") { for (var "+y+" = "+a.length+"; "+y+" < "+c+".length; "+y+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);O=c+"["+y+"]";h.dataPathArr[v]=y;M=e.validate(h);h.baseId=b,e.util.varOccurences(M,m)<2?r+=" "+e.util.varReplace(M,m,O)+" ":r+=" var "+m+" = "+O+"; "+M+" ",l&&(r+=" if (!"+g+") break; "),r+=" } } ",l&&(r+=" if ("+g+") { ",p+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=u,r+=" for (var "+y+" = 0; "+y+" < "+c+".length; "+y+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);O=c+"["+y+"]";h.dataPathArr[v]=y;M=e.validate(h);h.baseId=b,e.util.varOccurences(M,m)<2?r+=" "+e.util.varReplace(M,m,O)+" ":r+=" var "+m+" = "+O+"; "+M+" ",l&&(r+=" if (!"+g+") break; "),r+=" }"}return l&&(r+=" "+p+" if ("+d+" == errors) {"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),d=e.opts.$data&&s&&s.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");i+="var division"+o+";if (",d&&(i+=" "+r+" !== undefined && ( typeof "+r+" != 'number' || "),i+=" (division"+o+" = "+f+" / "+r+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",d&&(i+=" ) "),i+=" ) { ";var h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=d?"' + "+r:r+"'"),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var p=i;return i=h.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+p+"]); ":i+=" validate.errors = ["+p+"]; return false; ":i+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="errs__"+i,d=e.util.copy(e);d.level++;var h="valid"+d.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){d.schema=a,d.schemaPath=s,d.errSchemaPath=u,r+=" var "+f+" = errors; ";var p,g=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.createErrors=!1,d.opts.allErrors&&(p=d.opts.allErrors,d.opts.allErrors=!1),r+=" "+e.validate(d)+" ",d.createErrors=!0,p&&(d.opts.allErrors=p),e.compositeRule=d.compositeRule=g,r+=" if ("+h+") { ";var y=y||[];y.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var v=r;r=y.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else r+=" var err = ",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(r+=" if (false) { ");return r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+i,d="errs__"+i,h=e.util.copy(e),p="";h.level++;var g="valid"+h.level,y=h.baseId,v="prevValid"+i,m="passingSchemas"+i;r+="var "+d+" = errors , "+v+" = false , "+f+" = false , "+m+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var w=a;if(w)for(var x,_=-1,k=w.length-1;_<k;)x=w[_+=1],(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))?(h.schema=x,h.schemaPath=s+"["+_+"]",h.errSchemaPath=u+"/"+_,r+=" "+e.validate(h)+" ",h.baseId=y):r+=" var "+g+" = true; ",_&&(r+=" if ("+g+" && "+v+") { "+f+" = false; "+m+" = ["+m+", "+_+"]; } else { ",p+="}"),r+=" if ("+g+") { "+f+" = "+v+" = true; "+m+" = "+_+"; }";return e.compositeRule=h.compositeRule=b,r+=p+"if (!"+f+") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+m+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; }",e.opts.allErrors&&(r+=" } "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),d=e.opts.$data&&s&&s.$data;d?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,i+="if ( ",d&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),i+=" !"+(d?"(new RegExp("+r+"))":e.usePattern(s))+".test("+f+") ) { ";var h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",i+=d?""+r:""+e.util.toQuotedString(s),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=d?"' + "+r+" + '":""+e.util.escapeQuotes(s),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+u:""+e.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var p=i;return i=h.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+p+"]); ":i+=" validate.errors = ["+p+"]; return false; ":i+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="errs__"+i,d=e.util.copy(e),h="";d.level++;var p="valid"+d.level,g="key"+i,y="idx"+i,v=d.dataLevel=e.dataLevel+1,m="data"+v,b="dataProperties"+i,w=Object.keys(a||{}).filter(D),x=e.schema.patternProperties||{},_=Object.keys(x).filter(D),k=e.schema.additionalProperties,S=w.length||_.length,T=!1===k,C="object"==typeof k&&Object.keys(k).length,A=e.opts.removeAdditional,O=T||C||A,M=e.opts.ownProperties,E=e.baseId,P=e.schema.required;if(P&&(!e.opts.$data||!P.$data)&&P.length<e.opts.loopRequired)var I=e.util.toHash(P);function D(e){return"__proto__"!==e}if(r+="var "+f+" = errors;var "+p+" = true;",M&&(r+=" var "+b+" = undefined;"),O){if(r+=M?" "+b+" = "+b+" || Object.keys("+c+"); for (var "+y+"=0; "+y+"<"+b+".length; "+y+"++) { var "+g+" = "+b+"["+y+"]; ":" for (var "+g+" in "+c+") { ",S){if(r+=" var isAdditional"+i+" = !(false ",w.length)if(w.length>8)r+=" || validate.schema"+s+".hasOwnProperty("+g+") ";else{var L=w;if(L)for(var R=-1,N=L.length-1;R<N;)Z=L[R+=1],r+=" || "+g+" == "+e.util.toQuotedString(Z)+" "}if(_.length){var j=_;if(j)for(var B=-1,F=j.length-1;B<F;)oe=j[B+=1],r+=" || "+e.usePattern(oe)+".test("+g+") "}r+=" ); if (isAdditional"+i+") { "}if("all"==A)r+=" delete "+c+"["+g+"]; ";else{var z=e.errorPath,V="' + "+g+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers)),T)if(A)r+=" delete "+c+"["+g+"]; ";else{r+=" "+p+" = false; ";var H=u;u=e.errSchemaPath+"/additionalProperties",(ne=ne||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+V+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var U=r;r=ne.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+U+"]); ":r+=" validate.errors = ["+U+"]; return false; ":r+=" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=H,l&&(r+=" break; ")}else if(C)if("failing"==A){r+=" var "+f+" = errors; ";var G=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=k,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var J=c+"["+g+"]";d.dataPathArr[v]=g;var X=e.validate(d);d.baseId=E,e.util.varOccurences(X,m)<2?r+=" "+e.util.varReplace(X,m,J)+" ":r+=" var "+m+" = "+J+"; "+X+" ",r+=" if (!"+p+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+g+"]; } ",e.compositeRule=d.compositeRule=G}else{d.schema=k,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);J=c+"["+g+"]";d.dataPathArr[v]=g;X=e.validate(d);d.baseId=E,e.util.varOccurences(X,m)<2?r+=" "+e.util.varReplace(X,m,J)+" ":r+=" var "+m+" = "+J+"; "+X+" ",l&&(r+=" if (!"+p+") break; ")}e.errorPath=z}S&&(r+=" } "),r+=" } ",l&&(r+=" if ("+p+") { ",h+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(w.length){var q=w;if(q)for(var Z,K=-1,Y=q.length-1;K<Y;){var $=a[Z=q[K+=1]];if(e.opts.strictKeywords?"object"==typeof $&&Object.keys($).length>0||!1===$:e.util.schemaHasRules($,e.RULES.all)){var Q=e.util.getProperty(Z),ee=(J=c+Q,W&&void 0!==$.default);d.schema=$,d.schemaPath=s+Q,d.errSchemaPath=u+"/"+e.util.escapeFragment(Z),d.errorPath=e.util.getPath(e.errorPath,Z,e.opts.jsonPointers),d.dataPathArr[v]=e.util.toQuotedString(Z);X=e.validate(d);if(d.baseId=E,e.util.varOccurences(X,m)<2){X=e.util.varReplace(X,m,J);var te=J}else{te=m;r+=" var "+m+" = "+J+"; "}if(ee)r+=" "+X+" ";else{if(I&&I[Z]){r+=" if ( "+te+" === undefined ",M&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(Z)+"') "),r+=") { "+p+" = false; ";z=e.errorPath,H=u;var ne,re=e.util.escapeQuotes(Z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(z,Z,e.opts.jsonPointers)),u=e.errSchemaPath+"/required",(ne=ne||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+re+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+re+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";U=r;r=ne.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+U+"]); ":r+=" validate.errors = ["+U+"]; return false; ":r+=" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=H,e.errorPath=z,r+=" } else { "}else l?(r+=" if ( "+te+" === undefined ",M&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(Z)+"') "),r+=") { "+p+" = true; } else { "):(r+=" if ("+te+" !== undefined ",M&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(Z)+"') "),r+=" ) { ");r+=" "+X+" } "}}l&&(r+=" if ("+p+") { ",h+="}")}}if(_.length){var ie=_;if(ie)for(var oe,ae=-1,se=ie.length-1;ae<se;){$=x[oe=ie[ae+=1]];if(e.opts.strictKeywords?"object"==typeof $&&Object.keys($).length>0||!1===$:e.util.schemaHasRules($,e.RULES.all)){d.schema=$,d.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),d.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),r+=M?" "+b+" = "+b+" || Object.keys("+c+"); for (var "+y+"=0; "+y+"<"+b+".length; "+y+"++) { var "+g+" = "+b+"["+y+"]; ":" for (var "+g+" in "+c+") { ",r+=" if ("+e.usePattern(oe)+".test("+g+")) { ",d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);J=c+"["+g+"]";d.dataPathArr[v]=g;X=e.validate(d);d.baseId=E,e.util.varOccurences(X,m)<2?r+=" "+e.util.varReplace(X,m,J)+" ":r+=" var "+m+" = "+J+"; "+X+" ",l&&(r+=" if (!"+p+") break; "),r+=" } ",l&&(r+=" else "+p+" = true; "),r+=" } ",l&&(r+=" if ("+p+") { ",h+="}")}}}return l&&(r+=" "+h+" if ("+f+" == errors) {"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="errs__"+i,d=e.util.copy(e);d.level++;var h="valid"+d.level;if(r+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){d.schema=a,d.schemaPath=s,d.errSchemaPath=u;var p="key"+i,g="idx"+i,y="i"+i,v="' + "+p+" + '",m="data"+(d.dataLevel=e.dataLevel+1),b="dataProperties"+i,w=e.opts.ownProperties,x=e.baseId;w&&(r+=" var "+b+" = undefined; "),r+=w?" "+b+" = "+b+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+p+" = "+b+"["+g+"]; ":" for (var "+p+" in "+c+") { ",r+=" var startErrs"+i+" = errors; ";var _=p,k=e.compositeRule;e.compositeRule=d.compositeRule=!0;var S=e.validate(d);d.baseId=x,e.util.varOccurences(S,m)<2?r+=" "+e.util.varReplace(S,m,_)+" ":r+=" var "+m+" = "+_+"; "+S+" ",e.compositeRule=d.compositeRule=k,r+=" if (!"+h+") { for (var "+y+"=startErrs"+i+"; "+y+"<errors; "+y+"++) { vErrors["+y+"].propertyName = "+p+"; } var err = ",!1!==e.createErrors?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+v+"' } ",!1!==e.opts.messages&&(r+=" , message: 'property name \\'"+v+"\\' is invalid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),l&&(r+=" break; "),r+=" } }"}return l&&(r+=" if ("+f+" == errors) {"),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+i,d=e.opts.$data&&a&&a.$data;d&&(r+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var h="schema"+i;if(!d)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var p=[],g=a;if(g)for(var y,v=-1,m=g.length-1;v<m;){y=g[v+=1];var b=e.schema.properties[y];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(p[p.length]=y)}}else p=a;if(d||p.length){var w=e.errorPath,x=d||p.length>=e.opts.loopRequired,_=e.opts.ownProperties;if(l)if(r+=" var missing"+i+"; ",x){d||(r+=" var "+h+" = validate.schema"+s+"; ");var k="' + "+(M="schema"+i+"["+(C="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,M,e.opts.jsonPointers)),r+=" var "+f+" = true; ",d&&(r+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),r+=" for (var "+C+" = 0; "+C+" < "+h+".length; "+C+"++) { "+f+" = "+c+"["+h+"["+C+"]] !== undefined ",_&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", "+h+"["+C+"]) "),r+="; if (!"+f+") break; } ",d&&(r+=" } "),r+=" if (!"+f+") { ",(O=O||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var S=r;r=O.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var T=p;if(T)for(var C=-1,A=T.length-1;C<A;){P=T[C+=1],C&&(r+=" || "),r+=" ( ( "+(R=c+(L=e.util.getProperty(P)))+" === undefined ",_&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "),r+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:L)+") ) "}r+=") { ";var O;k="' + "+(M="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,M,!0):w+" + "+M),(O=O||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";S=r;r=O.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(x){d||(r+=" var "+h+" = validate.schema"+s+"; ");var M;k="' + "+(M="schema"+i+"["+(C="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,M,e.opts.jsonPointers)),d&&(r+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),r+=" for (var "+C+" = 0; "+C+" < "+h+".length; "+C+"++) { if ("+c+"["+h+"["+C+"]] === undefined ",_&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+h+"["+C+"]) "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",d&&(r+=" } ")}else{var E=p;if(E)for(var P,I=-1,D=E.length-1;I<D;){P=E[I+=1];var L=e.util.getProperty(P),R=(k=e.util.escapeQuotes(P),c+L);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,P,e.opts.jsonPointers)),r+=" if ( "+R+" === undefined ",_&&(r+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "),r+=") { var err = ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+k+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=w}else l&&(r+=" if (true) {");return r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(a||""),d="valid"+o,h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(i+=" var "+d+"; if ("+r+" === false || "+r+" === undefined) "+d+" = true; else if (typeof "+r+" != 'boolean') "+d+" = false; else { "),i+=" var i = "+f+".length , "+d+" = true , j; if (i > 1) { ";var p=e.schema.items&&e.schema.items.type,g=Array.isArray(p);if(!p||"object"==p||"array"==p||g&&(p.indexOf("object")>=0||p.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+d+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var y="checkDataType"+(g?"s":"");i+=" if ("+e.util[y](p,"item",e.opts.strictNumbers,!0)+") continue; ",g&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",h&&(i+=" } "),i+=" if (!"+d+") { ";var v=v||[];v.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;i=v.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { ")}else c&&(i+=" if (true) { ");return i}},function(e,t,n){"use strict";var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,t){for(var n=0;n<t.length;n++){e=JSON.parse(JSON.stringify(e));var i,o=t[n].split("/"),a=e;for(i=1;i<o.length;i++)a=a[o[i]];for(i=0;i<r.length;i++){var s=r[i],u=a[s];u&&(a[s]={anyOf:[u,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},function(e,t,n){"use strict";var r=n(206).MissingRef;e.exports=function e(t,n,i){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof n&&(i=n,n=void 0);var a=s(t).then((function(){var e=o._addSchema(t,void 0,n);return e.validate||function e(t){try{return o._compile(t)}catch(a){if(a instanceof r)return i(a);throw a}function i(r){var i=r.missingSchema;if(l(i))throw new Error("Schema "+i+" is loaded but "+r.missingRef+" cannot be resolved");var a=o._loadingSchemas[i];return a||(a=o._loadingSchemas[i]=o._opts.loadSchema(i)).then(u,u),a.then((function(e){if(!l(i))return s(e).then((function(){l(i)||o.addSchema(e,i,void 0,n)}))})).then((function(){return e(t)}));function u(){delete o._loadingSchemas[i]}function l(e){return o._refs[e]||o._schemas[e]}}}(e)}));i&&a.then((function(e){i(null,e)}),i);return a;function s(t){var n=t.$schema;return n&&!o.getSchema(n)?e.call(o,{$ref:n},!0):Promise.resolve()}}},function(e,t,n){"use strict";var r=/^[a-z_$][a-z0-9_$-]*$/i,i=n(535),o=n(536);e.exports={add:function(e,t){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!r.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var a=0;a<o.length;a++)u(e,o[a],t);else u(e,o,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function u(e,t,r){for(var o,a=0;a<n.length;a++){var s=n[a];if(s.type==t){o=s;break}}o||(o={type:t,rules:[]},n.push(o));var u={keyword:e,definition:r,custom:!0,code:i,implements:r.implements};o.rules.push(u),n.custom[e]=u}return n.keywords[e]=n.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var n=0;n<t.length;n++)for(var r=t[n].rules,i=0;i<r.length;i++)if(r[i].keyword==e){r.splice(i,1);break}return this},validate:function e(t,n){e.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(r(t))return!0;if(e.errors=r.errors,n)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o=" ",a=e.level,s=e.dataLevel,u=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,d="data"+(s||""),h="valid"+a,p="errs__"+a,g=e.opts.$data&&u&&u.$data;g?(o+=" var schema"+a+" = "+e.util.getData(u.$data,s,e.dataPathArr)+"; ",i="schema"+a):i=u;var y,v,m,b,w,x="definition"+a,_=this.definition,k="";if(g&&_.$data){w="keywordValidate"+a;var S=_.validateSchema;o+=" var "+x+" = RULES.custom['"+t+"'].definition; var "+w+" = "+x+".validate;"}else{if(!(b=e.useCustomRule(this,u,e.schema,e)))return;i="validate.schema"+l,w=b.code,y=_.compile,v=_.inline,m=_.macro}var T=w+".errors",C="i"+a,A="ruleErr"+a,O=_.async;if(O&&!e.async)throw new Error("async keyword in sync schema");if(v||m||(o+=T+" = null;"),o+="var "+p+" = errors;var "+h+";",g&&_.$data&&(k+="}",o+=" if ("+i+" === undefined) { "+h+" = true; } else { ",S&&(k+="}",o+=" "+h+" = "+x+".validateSchema("+i+"); if ("+h+") { ")),v)_.statements?o+=" "+b.validate+" ":o+=" "+h+" = "+b.validate+"; ";else if(m){var M=e.util.copy(e);k="";M.level++;var E="valid"+M.level;M.schema=b.validate,M.schemaPath="";var P=e.compositeRule;e.compositeRule=M.compositeRule=!0;var I=e.validate(M).replace(/validate\.schema/g,w);e.compositeRule=M.compositeRule=P,o+=" "+I}else{(N=N||[]).push(o),o="",o+=" "+w+".call( ",e.opts.passContext?o+="this":o+="self",y||!1===_.schema?o+=" , "+d+" ":o+=" , "+i+" , "+d+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var D=s?"data"+(s-1||""):"parentData",L=s?e.dataPathArr[s]:"parentDataProperty",R=o+=" , "+D+" , "+L+" , rootData ) ";o=N.pop(),!1===_.errors?(o+=" "+h+" = ",O&&(o+="await "),o+=R+"; "):o+=O?" var "+(T="customErrors"+a)+" = null; try { "+h+" = await "+R+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+T+" = e.errors; else throw e; } ":" "+T+" = null; "+h+" = "+R+"; "}if(_.modifying&&(o+=" if ("+D+") "+d+" = "+D+"["+L+"];"),o+=""+k,_.valid)f&&(o+=" if (true) { ");else{var N;o+=" if ( ",void 0===_.valid?(o+=" !",o+=m?""+E:""+h):o+=" "+!_.valid+" ",o+=") { ",r=this.keyword,(N=N||[]).push(o),o="",(N=N||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+this.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var j=o;o=N.pop(),!e.compositeRule&&f?e.async?o+=" throw new ValidationError(["+j+"]); ":o+=" validate.errors = ["+j+"]; return false; ":o+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var B=o;o=N.pop(),v?_.errors?"full"!=_.errors&&(o+=" for (var "+C+"="+p+"; "+C+"<errors; "+C+"++) { var "+A+" = vErrors["+C+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+A+".schemaPath === undefined) { "+A+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(o+=" "+A+".schema = "+i+"; "+A+".data = "+d+"; "),o+=" } "):!1===_.errors?o+=" "+B+" ":(o+=" if ("+p+" == errors) { "+B+" } else { for (var "+C+"="+p+"; "+C+"<errors; "+C+"++) { var "+A+" = vErrors["+C+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+A+".schemaPath === undefined) { "+A+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(o+=" "+A+".schema = "+i+"; "+A+".data = "+d+"; "),o+=" } } "):m?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+this.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===_.errors?o+=" "+B+" ":(o+=" if (Array.isArray("+T+")) { if (vErrors === null) vErrors = "+T+"; else vErrors = vErrors.concat("+T+"); errors = vErrors.length; for (var "+C+"="+p+"; "+C+"<errors; "+C+"++) { var "+A+" = vErrors["+C+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+e.errorPath+"; "+A+'.schemaPath = "'+c+'"; ',e.opts.verbose&&(o+=" "+A+".schema = "+i+"; "+A+".data = "+d+"; "),o+=" } } else { "+B+" } "),o+=" } ",f&&(o+=" else { ")}return o}},function(e,t,n){"use strict";var r=n(274);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:r.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:r.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},,,,,,function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(e,t,n){return function(e,t,n,r,i,o){function a(e){return"number"==typeof e&&!isNaN(e)}var s=this;if(s.version=function(){return"1.9.3"},s.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:function(e,t,n,r){return n*(1-Math.pow(2,-10*e/r))*1024/1023+t},formattingFn:function(e){var t,n,r,i,o,a,u=e<0;if(e=Math.abs(e).toFixed(s.decimals),n=(t=(e+="").split("."))[0],r=t.length>1?s.options.decimal+t[1]:"",s.options.useGrouping){for(i="",o=0,a=n.length;o<a;++o)0!==o&&o%3===0&&(i=s.options.separator+i),i=n[a-o-1]+i;n=i}return s.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(e){return s.options.numerals[+e]})),r=r.replace(/[0-9]/g,(function(e){return s.options.numerals[+e]}))),(u?"-":"")+s.options.prefix+n+r+s.options.suffix},prefix:"",suffix:"",numerals:[]},o&&"object"==typeof o)for(var u in s.options)o.hasOwnProperty(u)&&null!==o[u]&&(s.options[u]=o[u]);""===s.options.separator?s.options.useGrouping=!1:s.options.separator=""+s.options.separator;for(var l=0,c=["webkit","moz","ms","o"],f=0;f<c.length&&!window.requestAnimationFrame;++f)window.requestAnimationFrame=window[c[f]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[c[f]+"CancelAnimationFrame"]||window[c[f]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),r=Math.max(0,16-(n-l)),i=window.setTimeout((function(){e(n+r)}),r);return l=n+r,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),s.initialize=function(){return!!s.initialized||(s.error="",s.d="string"==typeof e?document.getElementById(e):e,s.d?(s.startVal=Number(t),s.endVal=Number(n),a(s.startVal)&&a(s.endVal)?(s.decimals=Math.max(0,r||0),s.dec=Math.pow(10,s.decimals),s.duration=1e3*Number(i)||2e3,s.countDown=s.startVal>s.endVal,s.frameVal=s.startVal,s.initialized=!0,!0):(s.error="[CountUp] startVal ("+t+") or endVal ("+n+") is not a number",!1)):(s.error="[CountUp] target is null or undefined",!1))},s.printValue=function(e){var t=s.options.formattingFn(e);"INPUT"===s.d.tagName?this.d.value=t:"text"===s.d.tagName||"tspan"===s.d.tagName?this.d.textContent=t:this.d.innerHTML=t},s.count=function(e){s.startTime||(s.startTime=e),s.timestamp=e;var t=e-s.startTime;s.remaining=s.duration-t,s.options.useEasing?s.countDown?s.frameVal=s.startVal-s.options.easingFn(t,0,s.startVal-s.endVal,s.duration):s.frameVal=s.options.easingFn(t,s.startVal,s.endVal-s.startVal,s.duration):s.countDown?s.frameVal=s.startVal-(s.startVal-s.endVal)*(t/s.duration):s.frameVal=s.startVal+(s.endVal-s.startVal)*(t/s.duration),s.countDown?s.frameVal=s.frameVal<s.endVal?s.endVal:s.frameVal:s.frameVal=s.frameVal>s.endVal?s.endVal:s.frameVal,s.frameVal=Math.round(s.frameVal*s.dec)/s.dec,s.printValue(s.frameVal),t<s.duration?s.rAF=requestAnimationFrame(s.count):s.callback&&s.callback()},s.start=function(e){s.initialize()&&(s.callback=e,s.rAF=requestAnimationFrame(s.count))},s.pauseResume=function(){s.paused?(s.paused=!1,delete s.startTime,s.duration=s.remaining,s.startVal=s.frameVal,requestAnimationFrame(s.count)):(s.paused=!0,cancelAnimationFrame(s.rAF))},s.reset=function(){s.paused=!1,delete s.startTime,s.initialized=!1,s.initialize()&&(cancelAnimationFrame(s.rAF),s.printValue(s.startVal))},s.update=function(e){if(s.initialize()){if(!a(e=Number(e)))return void(s.error="[CountUp] update() - new endVal is not a number: "+e);s.error="",e!==s.frameVal&&(cancelAnimationFrame(s.rAF),s.paused=!1,delete s.startTime,s.startVal=s.frameVal,s.endVal=e,s.countDown=s.startVal>s.endVal,s.rAF=requestAnimationFrame(s.count))}},s.initialize()&&s.printValue(s.startVal)}})?r.call(t,n,t,e):r)||(e.exports=i)},,function(e,t,n){"use strict";var r=n(65),i=n(275),o=n(546),a=n(281);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=s(n(278));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=n(282),u.CancelToken=n(559),u.isCancel=n(277),u.all=function(e){return Promise.all(e)},u.spread=n(560),u.isAxiosError=n(561),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(65),i=n(276),o=n(547),a=n(548),s=n(281);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(65);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(65),i=n(549),o=n(277),a=n(278);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(65);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(65);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(280);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(65);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(555),i=n(556);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(65),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(65);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(282);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.apply(void 0,e)}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(!0===e[0],!1,e)}function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(!0===e[0],!0,e)}function a(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;++n)t.push(a(e[n]));return t}if(s(e)){t={};for(var n in e)t[n]=a(e[n]);return t}return e}function s(e){return e&&"object"===typeof e&&!Array.isArray(e)}function u(e,t){if(!s(e))return t;for(var n in t)e[n]=s(e[n])&&s(t[n])?u(e[n],t[n]):t[n];return e}function l(e,t,n){var r;!e&&s(r=n.shift())||(r={});for(var i=0;i<n.length;++i){var o=n[i];if(s(o))for(var l in o)if("__proto__"!==l&&"constructor"!==l&&"prototype"!==l){var c=e?a(o[l]):o[l];r[l]=t?u(r[l],c):c}}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=r,t.default=r,t.main=r,r.clone=a,r.isPlainObject=s,r.recursive=o,t.merge=i,t.recursive=o,t.clone=a,t.isPlainObject=s},,function(e,t,n){"use strict";n.r(t);var r=n(68),i=n.n(r),o=n(0),a=n(122),s=n(47);var u=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var l=function(e){function t(e,t,r){var i=t.trim().split(p);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",i[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===M||2===M&&i(u,1)?"-webkit-"+u+u:u}if(0===M||2===M&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(k,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,a,s,l,c){for(var f,d=0,h=t;d<I;++d)switch(f=P[d].call(u,e,h,n,r,i,o,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!==typeof e?M=1:(M=2,D=e):M=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<I){var u=a(-1,n,s,s,A,C,0,0,0,0);void 0!==u&&"string"===typeof u&&(n=u)}var f=function e(n,s,u,f,d){for(var h,p,g,b,x,_=0,k=0,S=0,T=0,P=0,D=0,R=g=h=0,N=0,j=0,B=0,F=0,z=u.length,V=z-1,H="",U="",G="",J="";N<z;){if(p=u.charCodeAt(N),N===V&&0!==k+T+S+_&&(0!==k&&(p=47===k?10:47),T=S=_=0,z++,V++),0===k+T+S+_){if(N===V&&(0<j&&(H=H.replace(c,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=u.charAt(N)}p=59}switch(p){case 123:for(h=(H=H.trim()).charCodeAt(0),g=1,F=++N;N<z;){switch(p=u.charCodeAt(N)){case 123:g++;break;case 125:g--;break;case 47:switch(p=u.charCodeAt(N+1)){case 42:case 47:e:{for(R=N+1;R<V;++R)switch(u.charCodeAt(R)){case 47:if(42===p&&42===u.charCodeAt(R-1)&&N+2!==R){N=R+1;break e}break;case 10:if(47===p){N=R+1;break e}}N=R}}break;case 91:p++;case 40:p++;case 34:case 39:for(;N++<V&&u.charCodeAt(N)!==p;);}if(0===g)break;N++}switch(g=u.substring(F,N),0===h&&(h=(H=H.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<j&&(H=H.replace(c,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:j=s;break;default:j=E}if(F=(g=e(s,j,g,p,d+1)).length,0<I&&(x=a(3,g,j=t(E,H,B),s,A,C,F,p,d,f),H=j.join(""),void 0!==x&&0===(F=(g=x.trim()).length)&&(p=0,g="")),0<F)switch(p){case 115:H=H.replace(w,o);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(y,"$1 $2"))+"{"+g+"}",g=1===M||2===M&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===f&&(U+=g,g="")}else g="";break;default:g=e(s,t(s,H,B),g,f,d+1)}G+=g,g=B=j=R=h=0,H="",p=u.charCodeAt(++N);break;case 125:case 59:if(1<(F=(H=(0<j?H.replace(c,""):H).trim()).length))switch(0===R&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(F=(H=H.replace(" ",":")).length),0<I&&void 0!==(x=a(1,H,s,n,A,C,U.length,f,d,f))&&0===(F=(H=x.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),p=H.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){J+=H+u.charAt(N);break}default:58!==H.charCodeAt(F-1)&&(U+=r(H,h,p,H.charCodeAt(2)))}B=j=R=h=0,H="",p=u.charCodeAt(++N)}}switch(p){case 13:case 10:47===k?k=0:0===1+h&&107!==f&&0<H.length&&(j=1,H+="\0"),0<I*L&&a(0,H,s,n,A,C,U.length,f,d,f),C=1,A++;break;case 59:case 125:if(0===k+T+S+_){C++;break}default:switch(C++,b=u.charAt(N),p){case 9:case 32:if(0===T+_+k)switch(P){case 44:case 58:case 9:case 32:b="";break;default:32!==p&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===T+k+_&&(j=B=1,b="\f"+b);break;case 108:if(0===T+k+_+O&&0<R)switch(N-R){case 2:112===P&&58===u.charCodeAt(N-3)&&(O=P);case 8:111===D&&(O=D)}break;case 58:0===T+k+_&&(R=N);break;case 44:0===k+S+T+_&&(j=1,b+="\r");break;case 34:case 39:0===k&&(T=T===p?0:0===T?p:T);break;case 91:0===T+k+S&&_++;break;case 93:0===T+k+S&&_--;break;case 41:0===T+k+_&&S--;break;case 40:if(0===T+k+_){if(0===h)switch(2*P+3*D){case 533:break;default:h=1}S++}break;case 64:0===k+S+T+_+R+g&&(g=1);break;case 42:case 47:if(!(0<T+_+S))switch(k){case 0:switch(2*p+3*u.charCodeAt(N+1)){case 235:k=47;break;case 220:F=N,k=42}break;case 42:47===p&&42===P&&F+2!==N&&(33===u.charCodeAt(F+2)&&(U+=u.substring(F,N+1)),b="",k=0)}}0===k&&(H+=b)}D=P,P=p,N++}if(0<(F=U.length)){if(j=s,0<I&&(void 0!==(x=a(2,U,j,n,A,C,F,f,d,f))&&0===(U=x).length))return J+U+G;if(U=j.join(",")+"{"+U+"}",0!==M*O){switch(2!==M||i(U,2)||(O=0),O){case 111:U=U.replace(m,":-moz-$1")+U;break;case 112:U=U.replace(v,"::-webkit-input-$1")+U.replace(v,"::-moz-$1")+U.replace(v,":-ms-input-$1")+U}O=0}}return J+U+G}(E,s,n,0,0);return 0<I&&(void 0!==(u=a(-2,f,s,s,A,C,f.length,0,0,0))&&(f=u)),"",O=0,C=A=1,f}var l=/^\0+/g,c=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,m=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,_=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,C=1,A=1,O=0,M=1,E=[],P=[],I=0,D=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:I=P.length=0;break;default:if("function"===typeof t)P[I++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else L=0|!!t}return e},u.set=s,void 0!==e&&s(e),u};function c(e){e&&f.current.insert(e+"}")}var f={current:null},d=function(e,t,n,r,i,o,a,s,u,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return f.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return f.current.insert(n[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(c)}},h=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new l(t);var i,o={};i=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(d),a=function(e,t,n,i){var o=t.name;f.current=n,r(e,t.styles),i&&(c.inserted[o]=!0)};var c={key:n,sheet:new u({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return c};n(409);function p(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var g=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}};var y=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},v=n(178),m=n(179),b=/[A-Z]|^ms/g,w=/_EMO_([^_]+?)_([^]*?)_EMO_/g,x=function(e){return 45===e.charCodeAt(1)},_=function(e){return null!=e&&"boolean"!==typeof e},k=Object(m.a)((function(e){return x(e)?e:e.replace(b,"-$&").toLowerCase()})),S=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(w,(function(e,t,n){return C={name:t,styles:n,next:C},t}))}return 1===v.a[e]||x(e)||"number"!==typeof t||0===t?t:t+"px"};function T(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return C={name:n.name,styles:n.styles,next:C},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)C={name:i.name,styles:i.styles,next:C},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=T(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":_(a)&&(r+=k(o)+":"+S(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=T(e,t,a,!1);switch(o){case"animation":case"animationName":r+=k(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)_(a[u])&&(r+=k(o)+":"+S(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=C,a=n(e);return C=o,T(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var C,A=/label:\s*([^\s;\n{]+)\s*;/g;var O=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";C=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=T(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=T(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);A.lastIndex=0;for(var s,u="";null!==(s=A.exec(i));)u+="-"+s[1];return{name:y(i)+u,styles:i,next:C}},M=(Object.prototype.hasOwnProperty,Object(o.createContext)("undefined"!==typeof HTMLElement?h():null)),E=Object(o.createContext)({}),P=(M.Provider,function(e){var t=function(t,n){return Object(o.createElement)(M.Consumer,null,(function(r){return e(t,r,n)}))};return Object(o.forwardRef)(t)});o.Component;var I=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function D(e,t,n){var r=[],i=p(e,r,n);return r.length<2?n:i+t(r)}P((function(e,t){return Object(o.createElement)(E.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=O(n,t.registered);return g(t,i,!1),t.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return D(t.registered,r,I(n))},theme:n},o=e.children(i);return!0,o}))}));var L=a.a,R=function(e){return"theme"!==e&&"innerRef"!==e},N=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?L:R};function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(n,!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=function e(t,n){var r,i,a;void 0!==n&&(r=n.label,a=n.target,i=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var s=t.__emotion_real===t,u=s&&t.__emotion_base||t;"function"!==typeof i&&s&&(i=t.__emotion_forwardProp);var l=i||N(u),c=!l("as");return function(){var f=arguments,d=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==f[0]||void 0===f[0].raw)d.push.apply(d,f);else{0,d.push(f[0][0]);for(var h=f.length,y=1;y<h;y++)d.push(f[y],f[0][y])}var v=P((function(e,t,n){return Object(o.createElement)(E.Consumer,null,(function(r){var s=c&&e.as||u,f="",h=[],y=e;if(null==e.theme){for(var v in y={},e)y[v]=e[v];y.theme=r}"string"===typeof e.className?f=p(t.registered,h,e.className):null!=e.className&&(f=e.className+" ");var m=O(d.concat(h),t.registered,y);g(t,m,"string"===typeof s);f+=t.key+"-"+m.name,void 0!==a&&(f+=" "+a);var b=c&&void 0===i?N(s):l,w={};for(var x in e)c&&"as"===x||b(x)&&(w[x]=e[x]);return w.className=f,w.ref=n||e.innerRef,Object(o.createElement)(s,w)}))}));return v.displayName=void 0!==r?r:"Styled("+("string"===typeof u?u:u.displayName||u.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=u,v.__emotion_styles=d,v.__emotion_forwardProp=i,Object.defineProperty(v,"toString",{value:function(){return"."+a}}),v.withComponent=function(t,r){return e(t,void 0!==r?B({},n||{},{},r):n).apply(void 0,d)},v}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){F[e]=F(e)}));t.default=F},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5),i=n(85);function o(e,t,n,o,a){var s;e=Object(r.arrayify)(e),t=Object(r.arrayify)(t);var u,l,c=1,f=new Uint8Array(o),d=new Uint8Array(t.length+4);d.set(t);for(var h=1;h<=c;h++){d[t.length]=h>>24&255,d[t.length+1]=h>>16&255,d[t.length+2]=h>>8&255,d[t.length+3]=255&h;var p=Object(r.arrayify)(Object(i.a)(a,e,d));s||(s=p.length,l=new Uint8Array(s),u=o-((c=Math.ceil(o/s))-1)*s),l.set(p);for(var g=1;g<n;g++){p=Object(r.arrayify)(Object(i.a)(a,e,p));for(var y=0;y<s;y++)l[y]^=p[y]}var v=(h-1)*s,m=h===c?u:s;f.set(Object(r.arrayify)(l).slice(0,m),v)}return Object(r.hexlify)(f)}},,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.a.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="X",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),i.a.createElement("polyline",{points:"12 19 5 12 12 5"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="ArrowLeft",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("polyline",{points:"6 9 12 15 18 9"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="ChevronDown",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),i.a.createElement("polyline",{points:"22 4 12 14.01 9 11.01"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="CheckCircle",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("circle",{cx:"12",cy:"12",r:"10"}),i.a.createElement("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),i.a.createElement("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="AlertCircle",t.a=l},function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return b}));var r=n(11),i=n(13),o=n(5),a=n(8),s=n(158),u=n(25),l=new a.Logger(s.a),c={},f=u.a.from(0),d=u.a.from(-1);function h(e,t,n,r){var i={fault:t,operation:n};return void 0!==r&&(i.value=r),l.throwError(e,a.Logger.errors.NUMERIC_FAULT,i)}for(var p="0";p.length<256;)p+=p;function g(e){if("number"!==typeof e)try{e=u.a.from(e).toNumber()}catch(t){}return"number"===typeof e&&e>=0&&e<=256&&!(e%1)?"1"+p.substring(0,e):l.throwArgumentError("invalid decimal size","decimals",e)}function y(e,t){null==t&&(t=0);var n=g(t),r=(e=u.a.from(e)).lt(f);r&&(e=e.mul(d));for(var i=e.mod(n).toString();i.length<n.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var o=e.div(n).toString();return e=o+"."+i,r&&(e="-"+e),e}function v(e,t){null==t&&(t=0);var n=g(t);if("string"===typeof e&&e.match(/^-?[0-9.,]+$/)||l.throwArgumentError("invalid decimal value","value",e),n.length-1===0)return u.a.from(e);var r="-"===e.substring(0,1);r&&(e=e.substring(1)),"."===e&&l.throwArgumentError("missing value","value",e);var i=e.split(".");i.length>2&&l.throwArgumentError("too many decimal points","value",e);var o=i[0],a=i[1];for(o||(o="0"),a||(a="0"),a.length>n.length-1&&h("fractional component exceeds decimals","underflow","parseFixed");a.length<n.length-1;)a+="0";var s=u.a.from(o),c=u.a.from(a),f=s.mul(n).add(c);return r&&(f=f.mul(d)),f}var m=function(){function e(t,n,i,o){Object(r.a)(this,e),t!==c&&l.throwError("cannot use FixedFormat constructor; use FixedFormat.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=n,this.width=i,this.decimals=o,this.name=(n?"":"u")+"fixed"+String(i)+"x"+String(o),this._multiplier=g(o),Object.freeze(this)}return Object(i.a)(e,null,[{key:"from",value:function(t){if(t instanceof e)return t;var n=!0,r=128,i=18;if("string"===typeof t){if("fixed"===t);else if("ufixed"===t)n=!1;else if(null!=t){var o=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);o||l.throwArgumentError("invalid fixed format","format",t),n="u"!==o[1],r=parseInt(o[2]),i=parseInt(o[3])}}else if(t){var a=function(e,n,r){return null==t[e]?r:(typeof t[e]!==n&&l.throwArgumentError("invalid fixed format ("+e+" not "+n+")","format."+e,t[e]),t[e])};n=a("signed","boolean",n),r=a("width","number",r),i=a("decimals","number",i)}return r%8&&l.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&l.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new e(c,n,r,i)}}]),e}(),b=function(){function e(t,n,i,o){Object(r.a)(this,e),l.checkNew(this instanceof e?this.constructor:void 0,e),t!==c&&l.throwError("cannot use FixedNumber constructor; use FixedNumber.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=o,this._hex=n,this._value=i,this._isFixedNumber=!0,Object.freeze(this)}return Object(i.a)(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&l.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.add(r),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.sub(r),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split("."),n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(w)),n}},{key:"ceiling",value:function(){var t=this.toString().split("."),n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(w)),n}},{key:"round",value:function(t){null==t&&(t=0);var n=this.toString().split(".");if((t<0||t>80||t%1)&&l.throwArgumentError("invalid decimal count","decimals",t),n[1].length<=t)return this;var r=e.from("1"+p.substring(0,t));return this.mulUnsafe(r).addUnsafe(x).floor().divUnsafe(r)}},{key:"isZero",value:function(){return"0.0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex;e%8&&l.throwArgumentError("invalid byte width","width",e);var t=u.a.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Object(o.hexZeroPad)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,n,r){return null!=r||null==n||Object(u.d)(n)||(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),e.fromString(y(t,n),m.from(r))}},{key:"fromString",value:function(t,n){null==n&&(n="fixed");var r=m.from(n),i=v(t,r.decimals);!r.signed&&i.lt(f)&&h("unsigned value cannot be negative","overflow","value",t);var a=null;r.signed?a=i.toTwos(r.width).toHexString():(a=i.toHexString(),a=Object(o.hexZeroPad)(a,r.width/8));var s=y(i,r.decimals);return new e(c,a,s,r)}},{key:"fromBytes",value:function(t,n){null==n&&(n="fixed");var r=m.from(n);if(Object(o.arrayify)(t).length>r.width/8)throw new Error("overflow");var i=u.a.from(t);r.signed&&(i=i.fromTwos(r.width));var a=i.toTwos((r.signed?0:1)+r.width).toHexString(),s=y(i,r.decimals);return new e(c,a,s,r)}},{key:"from",value:function(t,n){if("string"===typeof t)return e.fromString(t,n);if(Object(o.isBytes)(t))return e.fromBytes(t,n);try{return e.fromValue(t,0,n)}catch(r){if(r.code!==a.Logger.errors.INVALID_ARGUMENT)throw r}return l.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),w=b.from(1),x=b.from("0.5")},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),i.a.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="Copy",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="Triangle",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),i.a.createElement("polyline",{points:"15 3 21 3 21 9"}),i.a.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="ExternalLink",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="Activity",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("circle",{cx:"12",cy:"12",r:"10"}),i.a.createElement("polyline",{points:"16 12 12 8 8 12"}),i.a.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"8"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="ArrowUpCircle",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),i.a.createElement("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),i.a.createElement("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="AlertTriangle",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("circle",{cx:"12",cy:"12",r:"10"}),i.a.createElement("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),i.a.createElement("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="HelpCircle",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("polyline",{points:"18 15 12 9 6 15"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="ChevronUp",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),i.a.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="Plus",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),i.a.createElement("polyline",{points:"19 12 12 19 5 12"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="ArrowDown",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("polyline",{points:"17 1 21 5 17 9"}),i.a.createElement("path",{d:"M3 11V9a4 4 0 0 1 4-4h14"}),i.a.createElement("polyline",{points:"7 23 3 19 7 15"}),i.a.createElement("path",{d:"M21 13v2a4 4 0 0 1-4 4H3"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="Repeat",t.a=l},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(18),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,l=u(e,["color","size"]);return i.a.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),i.a.createElement("polyline",{points:"9 18 15 12 9 6"}))}));l.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number])},l.displayName="ChevronRight",t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return he}));var r=n(0);function i(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function a(e){var t=o(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function s(e){return e instanceof o(e).Element||e instanceof Element}function u(e){return e instanceof o(e).HTMLElement||e instanceof HTMLElement}function l(e){return"undefined"!==typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function c(e){return e?(e.nodeName||"").toLowerCase():null}function f(e){return((s(e)?e.ownerDocument:e.document)||window.document).documentElement}function d(e){return i(f(e)).left+a(e).scrollLeft}function h(e){return o(e).getComputedStyle(e)}function p(e){var t=h(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function g(e,t,n){void 0===n&&(n=!1);var r=f(t),s=i(e),l=u(t),h={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(l||!l&&!n)&&(("body"!==c(t)||p(r))&&(h=function(e){return e!==o(e)&&u(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:a(e);var t}(t)),u(t)?((g=i(t)).x+=t.clientLeft,g.y+=t.clientTop):r&&(g.x=d(r))),{x:s.left+h.scrollLeft-g.x,y:s.top+h.scrollTop-g.y,width:s.width,height:s.height}}function y(e){var t=i(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function v(e){return"html"===c(e)?e:e.assignedSlot||e.parentNode||(l(e)?e.host:null)||f(e)}function m(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(c(t))>=0?t.ownerDocument.body:u(t)&&p(t)?t:e(v(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r),s=i?[a].concat(a.visualViewport||[],p(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(m(v(s)))}function b(e){return["table","td","th"].indexOf(c(e))>=0}function w(e){return u(e)&&"fixed"!==h(e).position?e.offsetParent:null}function x(e){for(var t=o(e),n=w(e);n&&b(n)&&"static"===h(n).position;)n=w(n);return n&&("html"===c(n)||"body"===c(n)&&"static"===h(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&u(e)&&"fixed"===h(e).position)return null;for(var n=v(e);u(n)&&["html","body"].indexOf(c(n))<0;){var r=h(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var _="top",k="bottom",S="right",T="left",C=[_,k,S,T],A=C.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),O=[].concat(C,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),M=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function E(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var i=t.get(r);i&&e(i)}})),r.push(i)}(e)})),r}function P(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var I={placement:"bottom",modifiers:[],strategy:"absolute"};function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function L(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?I:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},I,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],u=!1,l={state:i,setOptions:function(n){c(),i.options=Object.assign({},o,i.options,n),i.scrollParents={reference:s(e)?m(e):e.contextElement?m(e.contextElement):[],popper:m(t)};var u=function(e){var t=E(e);return M.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:l,options:r});a.push(s||function(){})}})),l.update()},forceUpdate:function(){if(!u){var e=i.elements,t=e.reference,n=e.popper;if(D(t,n)){i.rects={reference:g(t,x(n),"fixed"===i.options.strategy),popper:y(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,s=o.options,c=void 0===s?{}:s,f=o.name;"function"===typeof a&&(i=a({state:i,options:c,name:f,instance:l})||i)}else i.reset=!1,r=-1}}},update:P((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){c(),u=!0}};if(!D(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var R={passive:!0};var N={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,s=r.resize,u=void 0===s||s,l=o(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,R)})),u&&l.addEventListener("resize",n.update,R),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,R)})),u&&l.removeEventListener("resize",n.update,R)}},data:{}};function j(e){return e.split("-")[0]}function B(e){return e.split("-")[1]}function F(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function z(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?j(i):null,a=i?B(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case _:t={x:s,y:n.y-r.height};break;case k:t={x:s,y:n.y+n.height};break;case S:t={x:n.x+n.width,y:u};break;case T:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var l=o?F(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case"start":t[l]=t[l]-(n[c]/2-r[c]/2);break;case"end":t[l]=t[l]+(n[c]/2-r[c]/2)}}return t}var V={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},H=Math.max,U=Math.min,G=Math.round,J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:G(G(t*r)/r)||0,y:G(G(n*r)/r)||0}}(a):"function"===typeof c?c(a):a,p=d.x,g=void 0===p?0:p,y=d.y,v=void 0===y?0:y,m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),w=T,C=_,A=window;if(l){var O=x(n),M="clientHeight",E="clientWidth";O===o(n)&&"static"!==h(O=f(n)).position&&(M="scrollHeight",E="scrollWidth"),O=O,i===_&&(C=k,v-=O[M]-r.height,v*=u?1:-1),i===T&&(w=S,g-=O[E]-r.width,g*=u?1:-1)}var P,I=Object.assign({position:s},l&&J);return u?Object.assign({},I,((P={})[C]=b?"0":"",P[w]=m?"0":"",P.transform=(A.devicePixelRatio||1)<2?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",P)):Object.assign({},I,((t={})[C]=b?v+"px":"",t[w]=m?g+"px":"",t.transform="",t))}var W={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e){return e.replace(/left|right|bottom|top/g,(function(e){return W[e]}))}var Z={start:"end",end:"start"};function K(e){return e.replace(/start|end/g,(function(e){return Z[e]}))}function Y(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&l(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Q(e,t){return"viewport"===t?$(function(e){var t=o(e),n=f(e),r=t.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,u=r.offsetTop)),{width:i,height:a,x:s+d(e),y:u}}(e)):u(t)?function(e){var t=i(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):$(function(e){var t,n=f(e),r=a(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=H(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=H(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+d(e),l=-r.scrollTop;return"rtl"===h(i||n).direction&&(u+=H(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:u,y:l}}(f(e)))}function ee(e,t,n){var r="clippingParents"===t?function(e){var t=m(v(e)),n=["absolute","fixed"].indexOf(h(e).position)>=0&&u(e)?x(e):e;return s(n)?t.filter((function(e){return s(e)&&Y(e,n)&&"body"!==c(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=Q(e,n);return t.top=H(r.top,t.top),t.right=U(r.right,t.right),t.bottom=U(r.bottom,t.bottom),t.left=H(r.left,t.left),t}),Q(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function te(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ne(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function re(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,u=void 0===a?"clippingParents":a,l=n.rootBoundary,c=void 0===l?"viewport":l,d=n.elementContext,h=void 0===d?"popper":d,p=n.altBoundary,g=void 0!==p&&p,y=n.padding,v=void 0===y?0:y,m=te("number"!==typeof v?v:ne(v,C)),b="popper"===h?"reference":"popper",w=e.elements.reference,x=e.rects.popper,T=e.elements[g?b:h],A=ee(s(T)?T:T.contextElement||f(e.elements.popper),u,c),O=i(w),M=z({reference:O,element:x,strategy:"absolute",placement:o}),E=$(Object.assign({},x,M)),P="popper"===h?E:O,I={top:A.top-P.top+m.top,bottom:P.bottom-A.bottom+m.bottom,left:A.left-P.left+m.left,right:P.right-A.right+m.right},D=e.modifiersData.offset;if("popper"===h&&D){var L=D[o];Object.keys(I).forEach((function(e){var t=[S,k].indexOf(e)>=0?1:-1,n=[_,k].indexOf(e)>=0?"y":"x";I[e]+=L[n]*t}))}return I}function ie(e,t,n){return H(e,U(t,n))}function oe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ae(e){return[_,S,k,T].some((function(t){return e[t]>=0}))}var se=L({defaultModifiers:[N,V,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:j(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];u(i)&&c(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});u(r)&&c(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=O.reduce((function(e,n){return e[n]=function(e,t,n){var r=j(e),i=[T,_].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[T,S].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],u=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,y=t.options.placement,v=j(y),m=u||(v===y||!p?[q(y)]:function(e){if("auto"===j(e))return[];var t=q(e);return[K(e),t,K(t)]}(y)),b=[y].concat(m).reduce((function(e,n){return e.concat("auto"===j(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?O:u,c=B(r),f=c?s?A:A.filter((function(e){return B(e)===c})):C,d=f.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=f);var h=d.reduce((function(t,n){return t[n]=re(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[j(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,x=t.rects.popper,M=new Map,E=!0,P=b[0],I=0;I<b.length;I++){var D=b[I],L=j(D),R="start"===B(D),N=[_,k].indexOf(L)>=0,F=N?"width":"height",z=re(t,{placement:D,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),V=N?R?S:T:R?k:_;w[F]>x[F]&&(V=q(V));var H=q(V),U=[];if(o&&U.push(z[L]<=0),s&&U.push(z[V]<=0,z[H]<=0),U.every((function(e){return e}))){P=D,E=!1;break}M.set(D,U)}if(E)for(var G=function(e){var t=b.find((function(t){var n=M.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},J=p?3:1;J>0;J--){if("break"===G(J))break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,v=re(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),m=j(t.placement),b=B(t.placement),w=!b,C=F(m),A="x"===C?"y":"x",O=t.modifiersData.popperOffsets,M=t.rects.reference,E=t.rects.popper,P="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,I={x:0,y:0};if(O){if(o||s){var D="y"===C?_:T,L="y"===C?k:S,R="y"===C?"height":"width",N=O[C],z=O[C]+v[D],V=O[C]-v[L],G=h?-E[R]/2:0,J="start"===b?M[R]:E[R],X="start"===b?-E[R]:-M[R],W=t.elements.arrow,q=h&&W?y(W):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=Z[D],Y=Z[L],$=ie(0,M[R],q[R]),Q=w?M[R]/2-G-$-K-P:J-$-K-P,ee=w?-M[R]/2+G+$+Y+P:X+$+Y+P,te=t.elements.arrow&&x(t.elements.arrow),ne=te?"y"===C?te.clientTop||0:te.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][C]:0,ae=O[C]+Q-oe-ne,se=O[C]+ee-oe;if(o){var ue=ie(h?U(z,ae):z,N,h?H(V,se):V);O[C]=ue,I[C]=ue-N}if(s){var le="x"===C?_:T,ce="x"===C?k:S,fe=O[A],de=fe+v[le],he=fe-v[ce],pe=ie(h?U(de,ae):de,fe,h?H(he,se):he);O[A]=pe,I[A]=pe-fe}}t.modifiersData[r]=I}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=j(n.placement),u=F(s),l=[T,S].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(e,t){return te("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ne(e,C))}(i.padding,n),f=y(o),d="y"===u?_:T,h="y"===u?k:S,p=n.rects.reference[l]+n.rects.reference[u]-a[u]-n.rects.popper[l],g=a[u]-n.rects.reference[u],v=x(o),m=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=p/2-g/2,w=c[d],A=m-f[l]-c[h],O=m/2-f[l]/2+b,M=ie(w,O,A),E=u;n.modifiersData[r]=((t={})[E]=M,t.centerOffset=M-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Y(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=re(t,{elementContext:"reference"}),s=re(t,{altBoundary:!0}),u=oe(a,r),l=oe(s,i,o),c=ae(u),f=ae(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),ue=n(324),le=n.n(ue),ce=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},fe="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,de=[],he=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||de},a=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],u=a[1],l=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);u({styles:ce(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ce(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),c=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return le()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),f=r.useRef();return fe((function(){f.current&&f.current.setOptions(c)}),[c]),fe((function(){if(null!=e&&null!=t){var r=(n.createPopper||se)(e,t,c);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return X}));var r=n(11),i=n(13),o=n(16),a=n(17),s=n(31),u=null;function l(e){if(null==u&&(u="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"!==s.a.check(e)))throw u=null,new Error("BIP39 Wordlist for en (English) FAILED")}var c=new(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"cz")}return Object(i.a)(n,[{key:"getWord",value:function(e){return l(this),u[e]}},{key:"getWordIndex",value:function(e){return l(this),u.indexOf(e)}}]),n}(s.a));s.a.register(c);var f=null;function d(e){if(null==f&&(f="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==s.a.check(e)))throw f=null,new Error("BIP39 Wordlist for en (English) FAILED")}var h=new(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"en")}return Object(i.a)(n,[{key:"getWord",value:function(e){return d(this),f[e]}},{key:"getWordIndex",value:function(e){return d(this),f.indexOf(e)}}]),n}(s.a));s.a.register(h);var p=n(37),g={},y=null;function v(e){return s.b.checkNormalize(),Object(p.h)(Array.prototype.filter.call(Object(p.f)(e.normalize("NFD").toLowerCase()),(function(e){return e>=65&&e<=90||e>=97&&e<=123})))}function m(e){if(null==y&&((y="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((function(e){return function(e){var t=[];return Array.prototype.forEach.call(Object(p.f)(e),(function(e){47===e?(t.push(204),t.push(129)):126===e?(t.push(110),t.push(204),t.push(131)):t.push(e)})),Object(p.h)(t)}(e)}))).forEach((function(e,t){g[v(e)]=t})),"0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"!==s.a.check(e)))throw y=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var b=new(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"es")}return Object(i.a)(n,[{key:"getWord",value:function(e){return m(this),y[e]}},{key:"getWordIndex",value:function(e){return m(this),g[v(e)]}}]),n}(s.a));s.a.register(b);var w=null,x={};function _(e){return s.b.checkNormalize(),Object(p.h)(Array.prototype.filter.call(Object(p.f)(e.normalize("NFD").toLowerCase()),(function(e){return e>=65&&e<=90||e>=97&&e<=123})))}function k(e){if(null==w&&((w="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((function(e){return function(e){var t=[];return Array.prototype.forEach.call(Object(p.f)(e),(function(e){47===e?(t.push(204),t.push(129)):45===e?(t.push(204),t.push(128)):t.push(e)})),Object(p.h)(t)}(e)}))).forEach((function(e,t){x[_(e)]=t})),"0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"!==s.a.check(e)))throw w=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var S=new(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"fr")}return Object(i.a)(n,[{key:"getWord",value:function(e){return k(this),w[e]}},{key:"getWordIndex",value:function(e){return k(this),x[_(e)]}}]),n}(s.a));s.a.register(S);var T=n(5),C=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],A=null;function O(e){return Object(T.hexlify)(Object(p.f)(e))}function M(e){if(null===A){A=[];var t={};t[Object(p.h)([227,130,154])]=!1,t[Object(p.h)([227,130,153])]=!1,t[Object(p.h)([227,130,133])]=Object(p.h)([227,130,134]),t[Object(p.h)([227,129,163])]=Object(p.h)([227,129,164]),t[Object(p.h)([227,130,131])]=Object(p.h)([227,130,132]),t[Object(p.h)([227,130,135])]=Object(p.h)([227,130,136]);for(var n=3;n<=9;n++)for(var r=C[n-3],i=0;i<r.length;i+=n){for(var o=[],a=0;a<n;a++){var u="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt".indexOf(r[i+a]);o.push(227),o.push(64&u?130:129),o.push(128+(63&u))}A.push(Object(p.h)(o))}if(A.sort((function(e,t){return(e=c(e))<(t=c(t))?-1:e>t?1:0})),"0xe3818de38284e3818f"===O(A[442])&&"0xe3818de38283e3818f"===O(A[443])){var l=A[442];A[442]=A[443],A[443]=l}if("0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600"!==s.a.check(e))throw A=null,new Error("BIP39 Wordlist for ja (Japanese) FAILED")}function c(e){for(var n="",r=0;r<e.length;r++){var i=e[r],o=t[i];!1!==o&&(o&&(i=o),n+=i)}return n}}var E=new(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"ja")}return Object(i.a)(n,[{key:"getWord",value:function(e){return M(this),A[e]}},{key:"getWordIndex",value:function(e){return M(this),A.indexOf(e)}},{key:"split",value:function(e){return s.b.checkNormalize(),e.split(/(?:\u3000| )+/g)}},{key:"join",value:function(e){return e.join("\u3000")}}]),n}(s.a));s.a.register(E);var P=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"];var I=null;function D(e){if(null==I&&(I=[],P.forEach((function(e,t){t+=4;for(var n=0;n<e.length;n+=t){for(var r="",i=0;i<t;i++)r+=((o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*".indexOf(e[n+i]))>=40?o=o+168-40:o>=19&&(o=o+97-19),Object(p.h)([225,132+(o>>6),128+(63&o)]));I.push(r)}var o})),I.sort(),"0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a"!==s.a.check(e)))throw I=null,new Error("BIP39 Wordlist for ko (Korean) FAILED")}var L=new(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"ko")}return Object(i.a)(n,[{key:"getWord",value:function(e){return D(this),I[e]}},{key:"getWordIndex",value:function(e){return D(this),I.indexOf(e)}}]),n}(s.a));s.a.register(L);var R=null;function N(e){if(null==R&&(R="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"!==s.a.check(e)))throw R=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var j=new(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"it")}return Object(i.a)(n,[{key:"getWord",value:function(e){return N(this),R[e]}},{key:"getWordIndex",value:function(e){return N(this),R.indexOf(e)}}]),n}(s.a));s.a.register(j);var B="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN<di,AM=W5%QO&ka&ua,hM^tm=zV=JA=wR&+X]7P&NB#4J#5L|/b[dA}tJ<Do&6m&u2[U1&Kb.HM&mC=w0&MW<rY,Hq#6M}QG,13&wP}Jp]Ow%ue&Kg<HP<D9~4k~9T&I2_c6$9T#9/[C5~7O~4a=cs&O7=KK=An&l9$6U$8A&uD&QI|/Y&bg}Ux&F2#6b}E2&JN&kW&kp=U/&bb=Xl<Cj}k+~5J#6L&5z&9i}b4&Fo,ho(X0_g3~4O$Fz&QE<HN=Ww]6/%GF-Vw=tj&/D&PN#9g=YO}cL&Of&PI~5I&Ip=vU=IW#9G;0o-wU}ss&QR<BT&R9=tk$PY_dh&Pq-yh]7T,nj.Xu=EP&76=cI&Fs*Xg}z7$Gb&+I=DF,AF=cA}rL#7j=Dz&3y<Aa$52=PQ}b0(iY$Fa}oL&xV#6U=ec=WZ,xh%RY<dp#9N&Fl&44=WH*A7=sh&TB&8P=07;u+&PK}uh}J5#72)V/=xC,AB$k0&f6;1E|+5=1B,3v]6n&wR%b+&xx]7f=Ol}fl;+D^wG]7E;nB;uh^Ir&l5=JL,nS=cf=g5;u6|/Q$Gc=MH%Hg#5d%M6^86=U+$Gz,l/,ir^5y&Ba&/F-IY&FI&be%IZ#77&PW_Nu$kE(Yf&NX]7Z,Jy&FJ(Xo&Nz#/d=y7&MX<Ag}Z+;nE]Dt(iG#4D=13&Pj~4c%v8&Zo%OL&/X#4W<HR&ie~6J_1O(Y2=y5=Ad*cv_eB#6k&PX:BU#7A;uk&Ft&Fx_dD=U2;vB=U5=4F}+O&GN.HH:9s=b0%NV(jO&IH=JT}Z9=VZ<Af,Kx^4m&uJ%c6,6r;9m#+L}cf%Kh&F3~4H=vP}bu,Hz|++,1w]nv}k6;uu$jw*Kl*WX&uM[x7&Fr[m7$NO&QN]hu=JN}nR^8g#/h(ps|KC;vd}xz=V0}p6&FD$G1#7K<bG_4p~8g&cf;u4=tl}+k%5/}fz;uw<cA=u1}gU}VM=LJ=eX&+L&Pr#4U}p2:nC,2K]7H:jF&9x}uX#9O=MB<fz~8X~5m&4D&kN&u5%E/(h7(ZF&VG<de(qM|/e-Wt=3x(a+,/R]f/&ND$Ro&nU}0g=KA%kH&NK$Ke<dS}cB&IX~5g$TN]6m=Uv,Is&Py=Ef%Kz#+/%bi&+A<F4$OG&4C&FL#9V<Zk=2I_eE&6c]nw&kq$HG}y+&A8$P3}OH=XP]70%IS(AJ_gH%GZ&tY&AZ=vb~6y&/r=VI=Wv<Zi=fl=xf&eL}c8}OL=MJ=g8$F7=YT}9u=0+^xC}JH&nL^N0~4T]K2,Cy%OC#6s;vG(AC^xe^cG&MF}Br#9P;wD-7h$O/&xA}Fn^PC]6i]7G&8V$Qs;vl(TB~73~4l<mW&6V=2y&uY&+3)aP}XF;LP&kx$wU=t7;uy<FN&lz)7E=Oo*Y+;wI}9q}le;J6&Ri&4t&Qr#8B=cb&vG=J5|Ql(h5<Yy~4+}QD,Lx=wn%K/&RK=dO&Pw,Q9=co%4u;9u}g0@6a^4I%b0=zo|/c&tX=dQ=OS#+b=yz_AB&wB&Pm=W9$HP_gR=62=AO=ti=hI,oA&jr&dH=tm&b6$P2(x8=zi;nG~7F;05]0n[Ix&3m}rg=Xp=cd&uz]7t;97=cN;vV<jf&FF&F1=6Q&Ik*Kk&P4,2z=fQ]7D&3u,H0=d/}Uw<ZN<7R}Kv;0f$H7,MD]7n$F0#88~9Z%da=by;+T#/u=VF&fO&kr^kf<AB]sU,I5$Ng&Pz;0i&QD&vM=Yl:BM;nJ_xJ]U7&Kf&30,3f|Z9*dC)je_jA&Q4&Kp$NH(Yz#6S&Id%Ib=KX,AD=KV%dP}tW&Pk^+E_Ni=cq,3R}VZ(Si=b+}rv;0j}rZ]uA,/w(Sx&Jv$w9&4d&wE,NJ$Gy=J/]Ls#7k<ZQ<Y/&uj]Ov$PM;v3,2F&+u:up=On&3e,Jv;90=J+&Qm]6q}bK#+d~8Y(h2]hA;99&AS=I/}qB&dQ}yJ-VM}Vl&ui,iB&G3|Dc]7d=eQ%dX%JC_1L~4d^NP;vJ&/1)ZI#7N]9X[bQ&PL=0L(UZ,Lm&kc&IR}n7(iR<AQ<dg=33=vN}ft}au]7I,Ba=x9=dR~6R&Tq=Xi,3d$Nr&Bc}DI&ku&vf]Dn,/F&iD,Ll&Nw=0y&I7=Ls=/A&tU=Qe}Ua&uk&+F=g4=gh=Vj#+1&Qn}Uy*44#5F,Pc&Rz*Xn=oh=5W;0n_Nf(iE<Y7=vr=Zu]oz#5Z%mI=kN=Bv_Jp(T2;vt_Ml<FS&uI=L/&6P]64$M7}86<bo%QX(SI%IY&VK=Al&Ux;vv;ut*E/%uh<ZE|O3,M2(yc]yu=Wk&tp:Ex}hr,Cl&WE)+Z=8U}I2_4Q,hA_si=iw=OM=tM=yZ%Ia=U7;wT}b+;uo=Za}yS!5x}HD}fb#5O_dA;Nv%uB(yB;01(Sf}Fk;v7}Pt#8v<mZ#7L,/r&Pl~4w&f5=Ph$Fw_LF&8m,bL=yJ&BH}p/*Jn}tU~5Q;wB(h6]Df]8p^+B;E4&Wc=d+;Ea&bw$8C&FN,DM=Yf}mP~5w=fT#6V=mC=Fi=AV}jB&AN}lW}aH#/D)dZ;hl;vE}/7,CJ;31&w8,hj%u9_Js=jJ&4M~8k=TN&eC}nL&uc-wi&lX}dj=Mv=e2#6u=cr$uq$6G]8W}Jb:nm=Yg<b3(UA;vX&6n&xF=KT,jC,De&R8&oY=Zv&oB]7/=Z2&Oa}bf,hh(4h^tZ&72&Nx;D2&xL~5h~40)ZG)h+=OJ&RA]Bv$yB=Oq=df,AQ%Jn}OJ;11,3z&Tl&tj;v+^Hv,Dh(id=s+]7N&N3)9Q~8f,S4=uW=w4&uX,LX&3d]CJ&yp&8x<b2_do&lP=y/<cy_dG=Oi=7R(VH(lt_1T,Iq_AA;12^6T%k6#8K[B1{oO<AU[Bt;1b$9S&Ps<8T=St{bY,jB(Zp&63&Uv$9V,PM]6v&Af}zW[bW_oq}sm}nB&Kq&gC&ff_eq_2m&5F&TI}rf}Gf;Zr_z9;ER&jk}iz_sn<BN~+n&vo=Vi%97|ZR=Wc,WE&6t]6z%85(ly#84=KY)6m_5/=aX,N3}Tm&he&6K]tR_B2-I3;u/&hU&lH<AP=iB&IA=XL;/5&Nh=wv<BH#79=vS=zl<AA=0X_RG}Bw&9p$NW,AX&kP_Lp&/Z(Tc]Mu}hs#6I}5B&cI<bq&H9#6m=K9}vH(Y1(Y0#4B&w6,/9&gG<bE,/O=zb}I4_l8<B/;wL%Qo<HO[Mq=XX}0v&BP&F4(mG}0i}nm,EC=9u{I3,xG&/9=JY*DK&hR)BX=EI=cx=b/{6k}yX%A+&wa}Xb=la;wi^lL;0t}jo&Qb=xg=XB}iO<qo{bR=NV&8f=a0&Jy;0v=uK)HK;vN#6h&jB(h/%ud&NI%wY.X7=Pt}Cu-uL&Gs_hl%mH,tm]78=Lb^Q0#7Y=1u<Bt&+Q=Co_RH,w3;1e}ux<aU;ui}U3&Q5%bt]63&UQ|0l&uL}O7&3o,AV&dm|Nj(Xt*5+(Uu&Hh(p7(UF=VR=Bp^Jl&Hd[ix)9/=Iq]C8<67]66}mB%6f}bb}JI]8T$HA}db=YM&pa=2J}tS&Y0=PS&y4=cX$6E,hX,XP&nR;04,FQ&l0&Vm_Dv#5Y~8Z=Bi%MA]6x=JO:+p,Az&9q,Hj~6/}SD=K1:EJ}nA;Qo#/E]9R,Ie&6X%W3]61&v4=xX_MC=0q;06(Xq=fs}IG}Dv=0l}o7$iZ;9v&LH&DP-7a&OY,SZ,Kz,Cv&dh=fx|Nh,F/~7q=XF&w+;9n&Gw;0h}Z7<7O&JK(S7&LS<AD<ac=wo<Dt&zw%4B=4v#8P;9o~6p*vV=Tm,Or&I6=1q}nY=P0=gq&Bl&Uu,Ch%yb}UY=zh}dh}rl(T4_xk(YA#8R*xH,IN}Jn]7V}C4&Ty}j3]7p=cL=3h&wW%Qv<Z3=f0&RI&+S(ic_zq}oN&/Y=z1;Td=LW=0e=OI(Vc,+b^ju(UL;0r:Za%8v=Rp=zw&58&73&wK}qX]6y&8E)a2}WR=wP^ur&nQ<cH}Re=Aq&wk}Q0&+q=PP,Gc|/d^k5,Fw]8Y}Pg]p3=ju=ed}r5_yf&Cs]7z$/G<Cm&Jp&54_1G_gP_Ll}JZ;0u]k8_7k(Sg]65{9i=LN&Sx&WK,iW&fD&Lk{9a}Em-9c#8N&io=sy]8d&nT&IK(lx#7/$lW(Td<s8~49,3o<7Y=MW(T+_Jr&Wd,iL}Ct=xh&5V;v4&8n%Kx=iF&l2_0B{B+,If(J0,Lv;u8=Kx-vB=HC&vS=Z6&fU&vE^xK;3D=4h=MR#45:Jw;0d}iw=LU}I5=I0]gB*im,K9}GU,1k_4U&Tt=Vs(iX&lU(TF#7y,ZO}oA&m5#5P}PN}Uz=hM<B1&FB<aG,e6~7T<tP(UQ_ZT=wu&F8)aQ]iN,1r_Lo&/g:CD}84{J1_Ki&Na&3n$jz&FE=dc;uv;va}in}ll=fv(h1&3h}fp=Cy}BM(+E~8m}lo%v7=hC(T6$cj=BQ=Bw(DR,2j=Ks,NS|F+;00=fU=70}Mb(YU;+G&m7&hr=Sk%Co]t+(X5_Jw}0r}gC(AS-IP&QK<Z2#8Q$WC]WX}T2&pG_Ka,HC=R4&/N;Z+;ch(C7,D4$3p_Mk&B2$8D=n9%Ky#5z(CT&QJ#7B]DC]gW}nf~5M;Iw#80}Tc_1F#4Z-aC}Hl=ph=fz,/3=aW}JM}nn;DG;vm}wn,4P}T3;wx&RG$u+}zK=0b;+J_Ek{re<aZ=AS}yY#5D]7q,Cp}xN=VP*2C}GZ}aG~+m_Cs=OY#6r]6g<GS}LC(UB=3A=Bo}Jy<c4}Is;1P<AG}Op<Z1}ld}nS=1Z,yM&95&98=CJ(4t:2L$Hk=Zo}Vc;+I}np&N1}9y=iv}CO*7p=jL)px]tb^zh&GS&Vl%v/;vR=14=zJ&49|/f]hF}WG;03=8P}o/&Gg&rp;DB,Kv}Ji&Pb;aA^ll(4j%yt}+K$Ht#4y&hY]7Y<F1,eN}bG(Uh%6Z]t5%G7;+F_RE;it}tL=LS&Da=Xx(S+(4f=8G=yI}cJ}WP=37=jS}pX}hd)fp<A8=Jt~+o$HJ=M6}iX=g9}CS=dv=Cj(mP%Kd,xq|+9&LD(4/=Xm&QP=Lc}LX&fL;+K=Op(lu=Qs.qC:+e&L+=Jj#8w;SL]7S(b+#4I=c1&nG_Lf&uH;+R)ZV<bV%B/,TE&0H&Jq&Ah%OF&Ss(p2,Wv&I3=Wl}Vq;1L&lJ#9b_1H=8r=b8=JH(SZ=hD=J2#7U,/U#/X~6P,FU<eL=jx,mG=hG=CE&PU=Se(qX&LY=X6=y4&tk&QQ&tf=4g&xI}W+&mZ=Dc#7w}Lg;DA;wQ_Kb(cJ=hR%yX&Yb,hw{bX_4X;EP;1W_2M}Uc=b5(YF,CM&Tp^OJ{DD]6s=vF=Yo~8q}XH}Fu%P5(SJ=Qt;MO]s8<F3&B3&8T(Ul-BS*dw&dR<87}/8]62$PZ]Lx<Au}9Q]7c=ja=KR,Go,Us&v6(qk}pG&G2=ev^GM%w4&H4]7F&dv]J6}Ew:9w=sj-ZL}Ym$+h(Ut(Um~4n=Xs(U7%eE=Qc_JR<CA#6t<Fv|/I,IS,EG<F2(Xy$/n<Fa(h9}+9_2o&N4#7X<Zq|+f_Dp=dt&na,Ca=NJ)jY=8C=YG=s6&Q+<DO}D3=xB&R1(lw;Qn<bF(Cu|/B}HV=SS&n7,10&u0]Dm%A6^4Q=WR(TD=Xo<GH,Rj(l8)bP&n/=LM&CF,F5&ml=PJ;0k=LG=tq,Rh,D6@4i=1p&+9=YC%er_Mh;nI;0q=Fw]80=xq=FM$Gv;v6&nc;wK%H2&Kj;vs,AA=YP,66}bI(qR~5U=6q~4b$Ni=K5.X3$So&Iu(p+]8G=Cf=RY(TS_O3(iH&57=fE=Dg_Do#9z#7H;FK{qd_2k%JR}en&gh_z8;Rx}9p<cN_Ne,DO;LN_7o~/p=NF=5Y}gN<ce<C1,QE]Wv=3u<BC}GK]yq}DY&u/_hj=II(pz&rC,jV&+Z}ut=NQ;Cg-SR_ZS,+o=u/;Oy_RK_QF(Fx&xP}Wr&TA,Uh&g1=yr{ax[VF$Pg(YB;Ox=Vy;+W(Sp}XV%dd&33(l/]l4#4Y}OE=6c=bw(A7&9t%wd&N/&mo,JH&Qe)fm=Ao}fu=tH",F={zh_cn:null,zh_tw:null},z={zh_cn:"0x17bcc4d8547e5a7135e365d1ab443aaae95e76d8230c2782c67305d4f21497a1",zh_tw:"0x51e720e90c7b87bec1d70eb6e74a21a449bd3ec9c020b01d3a40ed991b60ce5d"},V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function H(e){if(null===F[e.locale]){F[e.locale]=[];for(var t=0,n=0;n<2048;n++){var r="~!@#$%^&*_-=[]{}|;:,.()<>?".indexOf(B[3*n]),i=[228+(r>>2),128+V.indexOf(B[3*n+1]),128+V.indexOf(B[3*n+2])];if("zh_tw"===e.locale)for(var o=r%4;o<3;o++)i[o]=V.indexOf("FAZDC6BALcLZCA+GBARCW8wNCcDDZ8LVFBOqqDUiou+M42TFAyERXFb7EjhP+vmBFpFrUpfDV2F7eB+eCltCHJFWLFCED+pWTojEIHFXc3aFn4F68zqjEuKidS1QBVPDEhE7NA4mhMF7oThD49ot3FgtzHFCK0acW1x8DH1EmLoIlrWFBLE+y5+NA3Cx65wJHTaEZVaK1mWAmPGxgYCdxwOjTDIt/faOEhTl1vqNsKtJCOhJWuio2g07KLZEQsFBUpNtwEByBgxFslFheFbiEPvi61msDvApxCzB6rBCzox7joYA5UdDc+Cb4FSgIabpXFAj3bjkmFAxCZE+mD/SFf/0ELecYCt3nLoxC6WEZf2tKDB4oZvrEmqFkKk7BwILA7gtYBpsTq//D4jD0F0wEB9pyQ1BD5Ba0oYHDI+sbDFhvrHXdDHfgFEIJLi5r8qercNFBgFLC4bo5ERJtamWBDFy73KCEb6M8VpmEt330ygCTK58EIIFkYgF84gtGA9Uyh3m68iVrFbWFbcbqiCYHZ9J1jeRPbL8yswhMiDbhEhdNoSwFbZrLT740ABEqgCkO8J1BLd1VhKKR4sD1yUo0z+FF59Mvg71CFbyEhbHSFBKEIKyoQNgQppq9T0KAqePu0ZFGrXOHdKJqkoTFhYvpDNyuuznrN84thJbsCoO6Cu6Xlvntvy0QYuAExQEYtTUBf3CoCqwgGFZ4u1HJFzDVwEy3cjcpV4QvsPaBC3rCGyCF23o4K3pp2gberGgFEJEHo4nHICtyKH2ZqyxhN05KBBJIQlKh/Oujv/DH32VrlqFdIFC7Fz9Ct4kaqFME0UETLprnN9kfy+kFmtQBB0+5CFu0N9Ij8l/VvJDh2oq3hT6EzjTHKFN7ZjZwoTsAZ4Exsko6Fpa6WC+sduz8jyrLpegTv2h1EBeYpLpm2czQW0KoCcS0bCVXCmuWJDBjN1nQNLdF58SFJ0h7i3pC3oEOKy/FjBklL70XvBEEIWp2yZ04xObzAWDDJG7f+DbqBEA7LyiR95j7MDVdDViz2RE5vWlBMv5e4+VfhP3aXNPhvLSynb9O2x4uFBV+3jqu6d5pCG28/sETByvmu/+IJ0L3wb4rj9DNOLBF6XPIODr4L19U9RRofAG6Nxydi8Bki8BhGJbBAJKzbJxkZSlF9Q2Cu8oKqggB9hBArwLLqEBWEtFowy8XK8bEyw9snT+BeyFk1ZCSrdmgfEwFePTgCjELBEnIbjaDDPJm36rG9pztcEzT8dGk23SBhXBB1H4z+OWze0ooFzz8pDBYFvp9j9tvFByf9y4EFdVnz026CGR5qMr7fxMHN8UUdlyJAzlTBDRC28k+L4FB8078ljyD91tUj1ocnTs8vdEf7znbzm+GIjEZnoZE5rnLL700Xc7yHfz05nWxy03vBB9YGHYOWxgMQGBCR24CVYNE1hpfKxN0zKnfJDmmMgMmBWqNbjfSyFCBWSCGCgR8yFXiHyEj+VtD1FB3FpC1zI0kFbzifiKTLm9yq5zFmur+q8FHqjoOBWsBPiDbnCC2ErunV6cJ6TygXFYHYp7MKN9RUlSIS8/xBAGYLzeqUnBF4QbsTuUkUqGs6CaiDWKWjQK9EJkjpkTmNCPYXL"[t++])+(0==o?228:128);F[e.locale].push(Object(p.h)(i))}if(s.a.check(e)!==z[e.locale])throw F[e.locale]=null,new Error("BIP39 Wordlist for "+e.locale+" (Chinese) FAILED")}}var U=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,"zh_"+e)}return Object(i.a)(n,[{key:"getWord",value:function(e){return H(this),F[this.locale][e]}},{key:"getWordIndex",value:function(e){return H(this),F[this.locale].indexOf(e)}},{key:"split",value:function(e){return(e=e.replace(/(?:\u3000| )+/g,"")).split("")}}]),n}(s.a),G=new U("cn");s.a.register(G),s.a.register(G,"zh");var J=new U("tw");s.a.register(J);var X={cz:c,en:h,es:b,fr:S,it:j,ja:E,ko:L,zh:G,zh_cn:G,zh_tw:J}}]]);
|
|
//# sourceMappingURL=4.d272848c.chunk.js.map |