text: !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=554)}([function(e,t,n){e.exports=n(274)()},function(e,t,n){"use strict";e.exports=n(265)},function(e,t,n){"use strict";var r=n(22),o=n.n(r),i=n(7),a=n.n(i),c=n(21),u=n.n(c),s=n(16);function l(e){const{name:t,nonce:n}=e,r=new Map(e.otherNonces||new Map),o="\0";if(-1!==n.indexOf(o))throw new Error("invalid nonce (contains NUL): ".concat(u()(n)));s.b(r,e=>{if(e===n)throw new Error("primary nonce listed as otherNonce: ".concat(u()(n)));if(-1!==e.indexOf(o))throw new Error("invalid otherNonce (contains NUL): ".concat(u()(e)));return e+o});function i(e,t){}function c(e,t){}function l(e){return[...e,""].join(o)}function f(e){return n+o+l(e)}function p(e){const t=e.split(o);return t.slice(1,t.length-1)}const d={assertValid:i,assertValidParts:c,empty:f([]),fromParts:f,toParts:p,toString:function(e){const n=p(e);return"".concat(t).concat(u()(n))},append: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];return e+l(n)},hasPrefix:function(e,t){return e.startsWith(t)}};return a()(d)}var f=n(23),p=n(4);function d(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,"c",function(){return h}),n.d(t,"a",function(){return y}),n.d(t,"b",function(){return v});const h=l({name:"NodeAddress",nonce:"N",otherNonces:(new Map).set("E","EdgeAddress")}),y=l({name:"EdgeAddress",nonce:"E",otherNonces:(new Map).set("N","NodeAddress")}),m={type:"sourcecred/graph",version:"0.8.0"},g=a()({IN:Symbol("IN"),OUT:Symbol("OUT"),ANY:Symbol("ANY")});class v{constructor(){d(this,"_nodes",void 0),d(this,"_edges",void 0),d(this,"_incidentEdges",void 0),d(this,"_modificationCount",void 0),d(this,"_cachedOrder",void 0),d(this,"_invariantsLastChecked",void 0),this._modificationCount=0,this._invariantsLastChecked={when:-1,failure:"Invariants never checked"},this._cachedOrder={nodeOrder:[],edgeOrder:[],modificationCount:0},this._nodes=new Map,this._edges=new Map,this._incidentEdges=new Map,this._maybeCheckInvariants()}_checkForComodification(e){const t=this._modificationCount;if(t!==e){if(t>e)throw new Error("Concurrent modification detected");if(t<e)throw new Error("Invariant violation: expected modification count in the future");this._maybeCheckInvariants()}else this._maybeCheckInvariants()}_markModification(){if(this._modificationCount>=Number.MAX_SAFE_INTEGER)throw new Error("Graph cannot be modified more than ".concat(this._modificationCount," times."));this._modificationCount++,this._maybeCheckInvariants()}_reference(e){this._incidentEdges.has(e)||this._incidentEdges.set(e,{inEdges:[],outEdges:[]})}_unreference(e){const t=this._incidentEdges.get(e);if(null!=t){const{inEdges:n,outEdges:r}=t;this._nodes.has(e)||0!==n.length||0!==r.length||this._incidentEdges.delete(e)}}_getOrder(){const e=this._modificationCount;if(this._cachedOrder.modificationCount!==e){const t=Array.from(this._edges.keys()).sort(),n=Array.from(this._nodes.keys()).sort();this._cachedOrder={nodeOrder:n,edgeOrder:t,modificationCount:e}}return this._cachedOrder}modificationCount(){return this._modificationCount}addNode(e){const{address:t}=e;h.assertValid(t),this._reference(t);const n=this._nodes.get(t);if(null==n)this._nodes.set(t,e);else if(!o()(e,n)){const t=b(e),r=b(n);throw new Error("conflict between new node ".concat(t," and existing ").concat(r))}return this._markModification(),this._maybeCheckInvariants(),this}removeNode(e){return h.assertValid(e),this._nodes.delete(e),this._unreference(e),this._markModification(),this._maybeCheckInvariants(),this}hasNode(e){h.assertValid(e);const t=this._nodes.has(e);return this._maybeCheckInvariants(),t}node(e){h.assertValid(e);const t=this._nodes.get(e);return this._maybeCheckInvariants(),t}nodes(e){const t=null!=e?e.prefix:h.empty;if(null==t)throw new Error("Invalid prefix: ".concat(String(t)));const n=this._nodesIterator(this._modificationCount,t);return this._maybeCheckInvariants(),n}*_nodesIterator(e,t){for(const n of this._getOrder().nodeOrder)if(h.hasPrefix(n,t)){const t=p.a(this._nodes.get(n));this._checkForComodification(e),this._maybeCheckInvariants(),yield t}this._checkForComodification(e),this._maybeCheckInvariants()}addEdge(e){h.assertValid(e.src,"edge.src"),h.assertValid(e.dst,"edge.dst"),y.assertValid(e.address,"edge.address"),this._reference(e.src),this._reference(e.dst);const t=this._edges.get(e.address);if(null!=t){if(t.src!==e.src||t.dst!==e.dst||t.address!==e.address||t.timestampMs!==e.timestampMs){const n=w(e),r=w(t);throw new Error("conflict between new edge ".concat(n," and existing ").concat(r))}}else{this._edges.set(e.address,e);const{inEdges:t}=p.a(this._incidentEdges.get(e.dst)),{outEdges:n}=p.a(this._incidentEdges.get(e.src));t.push(e),n.push(e)}return this._edges.set(e.address,e),this._markModification(),this._maybeCheckInvariants(),this}removeEdge(e){y.assertValid(e);const t=this._edges.get(e);if(null!=t){this._edges.delete(e);const{inEdges:n}=p.a(this._incidentEdges.get(t.dst)),{outEdges:r}=p.a(this._incidentEdges.get(t.src));[n,r].forEach(t=>{const n=t.findIndex(t=>t.address===e);if(-1===n){const t=y.toString(e);throw new Error("Invariant violation when removing edge@".concat(t))}t.splice(n,1)}),this._unreference(t.src),this._unreference(t.dst)}return this._markModification(),this._maybeCheckInvariants(),this}hasEdge(e){y.assertValid(e);const t=this._edges.has(e);return this._maybeCheckInvariants(),t}isDanglingEdge(e){y.assertValid(e);const t=this.edge(e);let n;if(null!=t){const{src:e,dst:r}=t;n=!this.hasNode(e)||!this.hasNode(r)}return this._maybeCheckInvariants(),n}edge(e){y.assertValid(e);const t=this._edges.get(e);return this._maybeCheckInvariants(),t}edges(e){if(null==e)throw new Error("Options are required for Graph.edges");const{showDangling:t}=e,n=p.c(e.addressPrefix,y.empty),r=p.c(e.srcPrefix,h.empty),o=p.c(e.dstPrefix,h.empty),i=this._edgesIterator(this._modificationCount,t,n,r,o);return this._maybeCheckInvariants(),i}*_edgesIterator(e,t,n,r,o){for(const i of this._getOrder().edgeOrder){const a=p.a(this._edges.get(i));(t||!1===this.isDanglingEdge(a.address))&&y.hasPrefix(a.address,n)&&h.hasPrefix(a.src,r)&&h.hasPrefix(a.dst,o)&&(this._checkForComodification(e),this._maybeCheckInvariants(),yield a)}this._checkForComodification(e),this._maybeCheckInvariants()}neighbors(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: ".concat(h.toString(e)));const n=this._neighbors(e,t,this._modificationCount);return this._maybeCheckInvariants(),n}*_neighbors(e,t,n){const r=e=>h.hasPrefix(e,t.nodePrefix),o=e=>y.hasPrefix(e,t.edgePrefix),i=t.direction,a=[];if(i===g.IN||i===g.ANY){const{inEdges:t}=p.a(this._incidentEdges.get(e));a.push({edges:t,direction:"IN"})}if(i===g.OUT||i===g.ANY){const{outEdges:t}=p.a(this._incidentEdges.get(e));a.push({edges:t,direction:"OUT"})}for(const e of a)for(const t of e.edges){if(i===g.ANY&&"IN"===e.direction&&t.src===t.dst)continue;const a="IN"===e.direction?t.src:t.dst,c=this.node(a);r(a)&&o(t.address)&&null!=c&&(this._checkForComodification(n),this._maybeCheckInvariants(),yield{edge:t,node:c})}this._checkForComodification(n),this._maybeCheckInvariants()}equals(e){if(!(e instanceof v))throw new Error("Expected Graph, got ".concat(String(e)));const t=o()(this._nodes,e._nodes)&&o()(this._edges,e._edges);return this._maybeCheckInvariants(),t}copy(){const e=v.merge([this]);return this._maybeCheckInvariants(),e}toJSON(){const e=Array.from(this._incidentEdges.keys()).sort(),t=new Map;e.forEach((e,n)=>{t.set(e,n)});const n=Array.from(this.edges({showDangling:!0})).map(e=>{let{src:n,dst:r,address:o,timestampMs:i}=e;return{srcIndex:p.a(t.get(n)),dstIndex:p.a(t.get(r)),address:y.toParts(o),timestampMs:i}}),r=Array.from(this.nodes()).map(e=>{let{address:n,description:r,timestampMs:o}=e;return{index:p.a(t.get(n)),description:r,timestampMs:o}}),o={sortedNodeAddresses:e.map(e=>h.toParts(e)),edges:n,nodes:r},i=Object(f.b)(m,o);return this._maybeCheckInvariants(),i}static fromJSON(e){const{nodes:t,edges:n,sortedNodeAddresses:r}=Object(f.a)(m,e),o=r.map(h.fromParts),i=new v;return t.forEach(e=>{const t={address:o[e.index],description:e.description,timestampMs:e.timestampMs};i.addNode(t)}),n.forEach(e=>{let{address:t,srcIndex:n,dstIndex:r,timestampMs:a}=e;const c=o[n],u=o[r];i.addEdge({address:y.fromParts(t),src:c,dst:u,timestampMs:a})}),i}static merge(e){const t=new v;for(const n of e){for(const e of n.nodes())t.addNode(e);for(const e of n.edges({showDangling:!0}))t.addEdge(e)}return t}checkInvariants(){if(this._invariantsLastChecked.when!==this._modificationCount){let e=null;try{this._checkInvariants()}catch(t){e=t.message}finally{this._invariantsLastChecked={when:this._modificationCount,failure:e}}}if(null!=this._invariantsLastChecked.failure)throw new Error(this._invariantsLastChecked.failure)}_checkInvariants(){const e=new Set;for(const[t,n]of this._nodes){if(n.address!==t)throw new Error("bad node address for ".concat(h.toString(t)));if(!this._incidentEdges.has(t))throw new Error("missing incident-edges for ".concat(h.toString(t)));e.add(t)}for(const t of this._edges.values()){if(!this._incidentEdges.has(t.src))throw new Error("missing incident-edges for src of: ".concat(w(t)));if(e.add(t.src),!this._incidentEdges.has(t.dst))throw new Error("missing incident-edges for dst of: ".concat(w(t)));e.add(t.dst)}if(Array.from(this._incidentEdges.keys()).length!==e.size)throw new Error("extra addresses in incident-edges");for(const[e,t]of this._edges.entries())if(t.address!==e)throw new Error("bad edge address: ".concat(w(t)," does not match ").concat(e));const t=new Set,n=new Set,r=Array.from(this._incidentEdges.entries());for(const e of[{seen:t,entries:r.map(e=>{let[t,{inEdges:n}]=e;return[t,n]}),baseNodeAccessor:e=>e.dst,kind:"in-edge"},{seen:n,entries:r.map(e=>{let[t,{outEdges:n}]=e;return[t,n]}),baseNodeAccessor:e=>e.src,kind:"out-edge"}]){const{seen:t,entries:n,baseNodeAccessor:r,kind:i}=e;for(const[e,a]of n)for(const n of a){if(t.has(n.address))throw new Error("duplicate ".concat(i,": ").concat(w(n)));t.add(n.address);const a=this._edges.get(n.address);if(!o()(n,a)){if(null==a)throw new Error("spurious ".concat(i,": ").concat(w(n)));{const e="".concat(w(n)," vs. ").concat(w(a));throw new Error("bad ".concat(i,": ").concat(e))}}const c=r(n);if(e!==r(n))throw new Error("bad ".concat(i,": ").concat(w(n)," should be ")+"should be anchored at ".concat(h.toString(c)))}}for(const e of this._edges.values()){if(!t.has(e.address))throw new Error("missing in-edge: ".concat(w(e)));if(!n.has(e.address))throw new Error("missing out-edge: ".concat(w(e)))}}_maybeCheckInvariants(){0}}function b(e){const t=h.toString(e.address);return"{address: ".concat(t,"}")}function w(e){const t=y.toString(e.address),n=h.toString(e.src),r=h.toString(e.dst);return"{address: ".concat(t,", src: ").concat(n,", dst: ").concat(r,", timestampMs: ").concat(e.timestampMs,"}")}},function(e,t,n){"use strict";var r=new Date,o=new Date;function i(e,t,n,a){function c(t){return e(t=new Date(+t)),t}return c.floor=c,c.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},c.round=function(e){var t=c(e),n=c.ceil(e);return e-t<n-e?t:n},c.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},c.range=function(n,r,o){var i,a=[];if(n=c.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(i=new Date(+n)),t(n,o),e(n)}while(i<n&&n<r);return a},c.filter=function(n){return i(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(c.count=function(t,i){return r.setTime(+t),o.setTime(+i),e(r),e(o),Math.floor(n(r,o))},c.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?c.filter(a?function(t){return a(t)%e==0}:function(t){return c.count(0,t)%e==0}):c:null}),c}var a=i(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):a:null};var c=a,u=(a.range,6e4),s=6048e5,l=i(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),f=l,p=(l.range,i(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*u)},function(e,t){return(t-e)/u},function(e){return e.getMinutes()})),d=p,h=(p.range,i(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*u)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()})),y=h,m=(h.range,i(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*u)/864e5},function(e){return e.getDate()-1})),g=m;m.range;function v(e){return i(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*u)/s})}var b=v(0),w=v(1),x=v(2),_=v(3),O=v(4),E=v(5),k=v(6),S=(b.range,w.range,x.range,_.range,O.range,E.range,k.range,i(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()})),T=S,A=(S.range,i(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()}));A.every=function(e){return isFinite(e=Math.floor(e))&&e>0?i(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var j=A,P=(A.range,i(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*u)},function(e,t){return(t-e)/u},function(e){return e.getUTCMinutes()})),C=P,M=(P.range,i(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()})),N=M,I=(M.range,i(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1})),R=I;I.range;function D(e){return i(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/s})}var L=D(0),F=D(1),U=D(2),B=D(3),z=D(4),W=D(5),H=D(6),G=(L.range,F.range,U.range,B.range,z.range,W.range,H.range,i(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()})),q=G,V=(G.range,i(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()}));V.every=function(e){return isFinite(e=Math.floor(e))&&e>0?i(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var Y=V;V.range;n.d(t,"c",function(){return c}),n.d(t,"n",function(){return c}),n.d(t,"g",function(){return f}),n.d(t,"r",function(){return f}),n.d(t,"d",function(){return d}),n.d(t,"b",function(){return y}),n.d(t,"a",function(){return g}),n.d(t,"j",function(){return b}),n.d(t,"h",function(){return b}),n.d(t,"e",function(){return w}),n.d(t,"i",function(){return O}),n.d(t,"f",function(){return T}),n.d(t,"k",function(){return j}),n.d(t,"o",function(){return C}),n.d(t,"m",function(){return N}),n.d(t,"l",function(){return R}),n.d(t,"u",function(){return L}),n.d(t,"s",function(){return L}),n.d(t,"p",function(){return F}),n.d(t,"t",function(){return z}),n.d(t,"q",function(){return q}),n.d(t,"v",function(){return Y})},function(e,t,n){"use strict";function r(e,t){return null!=e?t(e):e}function o(e,t){if(null==e)throw new Error(null!=t?t:String(e));return e}function i(e,t){return null!=e?e:t}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return i})},function(e,t,n){var r=n(40),o=n(19),i="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==c||t==i||t==u}},function(e,t){e.exports=function(e){return null==e}},function(e,t){e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(n){!t.hasOwnProperty(n)||null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])}),t}},function(e,t,n){var r;
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */
  !function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return m}),n.d(t,"c",function(){return g});var r=n(7),o=n.n(r),i=n(2);const a=i.c.fromParts(["sourcecred","github"]);function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.c.append(a,...t)}const u="REPO",s="ISSUE",l="PULL",f="REVIEW",p="COMMENT",d="COMMIT",h="USERLIKE",y=o()({base:a,repo:c(u),issue:c(s),pull:c(l),review:c(f),comment:c(p),commit:c(d),userlike:c(h),user:c(h,"USER"),bot:c(h,"BOT"),reviewComment:c(p,f),issueComment:c(p,s),pullComment:c(p,l)});function m(e){function t(){return new Error("Bad address: ".concat(i.c.toString(e)))}if(!i.c.hasPrefix(e,a))throw t();const[n,r,o,...c]=i.c.toParts(e);switch(o){case u:{if(2!==c.length)throw t();const[e,n]=c;return{type:u,owner:e,name:n}}case s:{if(3!==c.length)throw t();const[e,n,r]=c;return{type:s,repo:{type:u,owner:e,name:n},number:r}}case l:{if(3!==c.length)throw t();const[e,n,r]=c;return{type:l,repo:{type:u,owner:e,name:n},number:r}}case f:{if(4!==c.length)throw t();const[e,n,r,o]=c;return{type:f,pull:{type:l,repo:{type:u,owner:e,name:n},number:r},id:o}}case p:{if(c.length<1)throw t();const[e,...n]=c;switch(e){case s:{if(4!==n.length)throw t();const[e,r,o,i]=n;return{type:p,parent:{type:s,repo:{type:u,owner:e,name:r},number:o},id:i}}case l:{if(4!==n.length)throw t();const[e,r,o,i]=n;return{type:p,parent:{type:l,repo:{type:u,owner:e,name:r},number:o},id:i}}case f:{if(5!==n.length)throw t();const[e,r,o,i,a]=n;return{type:p,parent:{type:f,pull:{type:l,repo:{type:u,owner:e,name:r},number:o},id:i},id:a}}default:throw t()}}case d:{if(1!==c.length)throw t();const[e]=c;return{type:d,id:e}}case h:{if(2!==c.length)throw t();const[e,n]=c;if("USER"!==e&&"BOT"!==e)throw t();return{type:h,subtype:e,login:n}}default:throw t()}}function g(e){switch(e.type){case u:return i.c.append(y.repo,e.owner,e.name);case s:return i.c.append(y.issue,e.repo.owner,e.repo.name,e.number);case l:return i.c.append(y.pull,e.repo.owner,e.repo.name,e.number);case f:return i.c.append(y.review,e.pull.repo.owner,e.pull.repo.name,e.pull.number,e.id);case p:switch(e.parent.type){case s:return i.c.append(y.issueComment,e.parent.repo.owner,e.parent.repo.name,e.parent.number,e.id);case l:return i.c.append(y.pullComment,e.parent.repo.owner,e.parent.repo.name,e.parent.number,e.id);case f:return i.c.append(y.reviewComment,e.parent.pull.repo.owner,e.parent.pull.repo.name,e.parent.pull.number,e.parent.id,e.id);default:throw new Error("Bad comment parent type: ".concat(e.parent.type))}case h:switch(e.subtype){case"BOT":return i.c.append(y.bot,e.login);case"USER":return i.c.append(y.user,e.login);default:throw new Error(e.subtype)}case d:return i.c.append(y.commit,e.id);default:throw new Error("Unexpected type ".concat(e.type))}}},function(e,t,n){"use strict";var r=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},o=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var i=o(r),a=i.right,c=(i.left,a);var u=Array.prototype,s=(u.slice,u.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}),l=Math.sqrt(50),f=Math.sqrt(10),p=Math.sqrt(2),d=function(e,t,n){var r,o,i,a,c=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=h(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++c<o;)i[c]=(e+c)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++c<o;)i[c]=(e-c)/a;return r&&i.reverse(),i};function h(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=l?10:i>=f?5:i>=p?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=l?10:i>=f?5:i>=p?2:1)}function y(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=l?o*=10:i>=f?o*=5:i>=p&&(o*=2),t<e?-o:o}var m=function(e){return null===e?NaN:+e};function g(e,t,n=m){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function v(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function b(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function w(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}n.d(t,"b",function(){return c}),n.d(t,"a",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return b}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return w}),n.d(t,"k",function(){return d}),n.d(t,"i",function(){return h}),n.d(t,"j",function(){return y})},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(1),o=n.n(r),i=n(30),a=n(15),c=n(46);function u(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(f=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 p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}class d extends r.Component{render(){const e=this.props,{styles:t,children:n}=e,r=p(e,["styles","children"]),c=Object(a.css)(y.link,t),u=this.props.className?"".concat(c," ").concat(this.props.className):c,s=e=>o.a.createElement(e,f({},r,{className:u}),n);if("to"in this.props){if(!this.props.to.endsWith("/"))throw new Error("'to' prop must specify route with trailing slash.");return s(i.b)}if("href"in this.props)return s("a");throw new Error("Must specify either 'to' or 'href'.")}}const h=e=>({color:e,fill:e}),y=a.StyleSheet.create({link:s({},h(c.a.brand.medium),{":visited":s({},h(c.a.brand.dark)),":active":s({},h(c.a.accent.medium))})})},function(e,t,n){var r=n(32),o=n(66),i=n(172),a=n(176),c=n(179),u=function(e,t,n){var s,l,f,p,d=e&u.F,h=e&u.G,y=e&u.S,m=e&u.P,g=e&u.B,v=h?r:y?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),w=b.prototype||(b.prototype={});for(s in h&&(n=t),n)f=((l=!d&&v&&void 0!==v[s])?v:n)[s],p=g&&l?c(f,r):m&&"function"==typeof f?c(Function.call,f):f,v&&a(v,s,f,e&u.U),b[s]!=f&&i(b,s,p),m&&w[s]!=f&&(w[s]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],l=0;(u=new Error(t.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){e.exports=n(279)},function(e,t,n){"use strict";function r(e){const t={};for(const[n,r]of e.entries())t[n]=r;return t}function o(e){const t=new Map,n=Object.keys(e);for(const r of n)t.set(r,e[r]);return t}function i(e,t){const n=new Map;for(const[r,o]of e.entries()){const e=t(r,o);if(n.has(e))throw new Error("duplicate key: "+String(e));n.set(e,o)}return n}function a(e,t){const n=new Map;for(const[r,o]of e.entries())n.set(r,t(r,o));return n}function c(e,t,n){let r=e.get(t);return null==r&&e.set(t,r=[]),r.push(n),r}n.d(t,"e",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return c})},function(e,t,n){"use strict";var r=n(1),o=n(271);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},function(e,t,n){"use strict";var r=n(7),o=n.n(r),i=n(9),a=n(2);const c=a.c.fromParts(["sourcecred","git"]);const u="COMMIT",s=o()({base:c,commit:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.c.append(c,...t)}(u)});function l(e){switch(e.type){case u:return a.c.append(s.commit,e.hash);default:throw new Error("Unexpected type ".concat(e.type))}}o()({APPROVED:"APPROVED",CHANGES_REQUESTED:"CHANGES_REQUESTED",COMMENTED:"COMMENTED",DISMISSED:"DISMISSED",PENDING:"PENDING"});const f=o()({CONFUSED:"CONFUSED",EYES:"EYES",HEART:"HEART",HOORAY:"HOORAY",LAUGH:"LAUGH",ROCKET:"ROCKET",THUMBS_DOWN:"THUMBS_DOWN",THUMBS_UP:"THUMBS_UP"}),p="AUTHORS",d="MERGED_AS",h="HAS_PARENT",y="REFERENCES",m="REACTS",g="CORRESPONDS_TO_COMMIT_TYPE",v=a.a.fromParts(["sourcecred","github"]);function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.a.append(v,...t)}const w=o()({base:v,authors:b(p),mergedAs:b(d),references:b(y),hasParent:b(h),reacts:b(m),reactsThumbsUp:b(m,f.THUMBS_UP),reactsHeart:b(m,f.HEART),reactsHooray:b(m,f.HOORAY),reactsRocket:b(m,f.ROCKET),correspondsToCommit:b(g)});o()({authors:(e,t,n)=>({address:_({type:p,author:e,content:t}),src:i.c(e),dst:i.c(t),timestampMs:n}),mergedAs:(e,t,n)=>({address:_({type:d,pull:e}),src:i.c(e),dst:i.c(t),timestampMs:n}),correspondsToCommit:(e,t,n)=>({address:_({type:g,githubCommit:e}),src:i.c(e),dst:l(t),timestampMs:n}),hasParent:(e,t,n)=>({address:_({type:h,child:e}),src:i.c(e),dst:i.c(t),timestampMs:n}),references:(e,t,n)=>({address:_({type:y,referrer:e,referent:t}),src:i.c(e),dst:i.c(t),timestampMs:n}),reacts:(e,t,n,r)=>({address:_({type:m,user:t,reactionType:e,reactable:n}),src:i.c(t),dst:i.c(n),timestampMs:r})});function x(e){const t=a.c.toParts(e);return[String(t.length),...t]}function _(e){switch(e.type){case p:return a.a.append(w.authors,...x(i.c(e.author)),...x(i.c(e.content)));case d:return a.a.append(w.mergedAs,...x(i.c(e.pull)));case h:return a.a.append(w.hasParent,...x(i.c(e.child)));case y:return a.a.append(w.references,...x(i.c(e.referrer)),...x(i.c(e.referent)));case m:return a.a.append(w.reacts,e.reactionType,...x(i.c(e.user)),...x(i.c(e.reactable)));case g:return a.a.append(w.correspondsToCommit,...x(i.c(e.githubCommit)));default:throw new Error(e.type)}}var O=n(24);function E(){const e=N(["    Connects a commit on GitHub to the corresponding raw Git commit.\n  "],["\\\n    Connects a commit on GitHub to the corresponding raw Git commit.\n  "]);return E=function(){return e},e}function k(){const e=N(["    Connects users to posts to which they gave a 🚀 reaction.\n  "],["\\\n    Connects users to posts to which they gave a 🚀 reaction.\n  "]);return k=function(){return e},e}function S(){const e=N(["    Connects users to posts to which they gave a 🎉 reaction.\n  "],["\\\n    Connects users to posts to which they gave a 🎉 reaction.\n  "]);return S=function(){return e},e}function T(){const e=N(["    Connects users to posts to which they gave a 👍 reaction.\n  "],["\\\n    Connects users to posts to which they gave a 👍 reaction.\n  "]);return T=function(){return e},e}function A(){const e=N(["    Connects users to posts to which they gave a ❤️ reaction.\n  "],["\\\n    Connects users to posts to which they gave a ❤️ reaction.\n  "]);return A=function(){return e},e}function j(){const e=N(['    Connects a GitHub post to an entity that it references.\n\n    For example, if you write a GitHub issue comment that says "thanks\n    @username for pull #1337", it will create references edges to both the user\n    @username, and to pull #1337 in the same repository.\n  '],['\\\n    Connects a GitHub post to an entity that it references.\n\n    For example, if you write a GitHub issue comment that says "thanks\n    @username for pull #1337", it will create references edges to both the user\n    @username, and to pull #1337 in the same repository.\n  ']);return j=function(){return e},e}function P(){const e=N(["    Connects a GitHub pull request to the Git commit that it merges.\n  "],["\\\n    Connects a GitHub pull request to the Git commit that it merges.\n  "]);return P=function(){return e},e}function C(){const e=N(["    Connects a GitHub entity to its child entities.\n\n    For example, a Repository has Issues and Pull Requests as children, and a\n    Pull Request has comments and reviews as children.\n  "],["\\\n    Connects a GitHub entity to its child entities.\n\n    For example, a Repository has Issues and Pull Requests as children, and a\n    Pull Request has comments and reviews as children.\n  "]);return C=function(){return e},e}function M(){const e=N(["    Connects a GitHub account to a post that they authored.\n\n    Examples of posts include issues, pull requests, and comments.\n  "],["\\\n    Connects a GitHub account to a post that they authored.\n\n    Examples of posts include issues, pull requests, and comments.\n  "]);return M=function(){return e},e}function N(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"b",function(){return I}),n.d(t,"c",function(){return B}),n.d(t,"a",function(){return Z});const I=o()({name:"Repository",pluralName:"Repositories",prefix:i.a.repo,defaultWeight:4,description:"NodeType for a GitHub repository"}),R=o()({name:"Issue",pluralName:"Issues",prefix:i.a.issue,defaultWeight:2,description:"NodeType for a GitHub issue"}),D=o()({name:"Pull request",pluralName:"Pull requests",prefix:i.a.pull,defaultWeight:4,description:"NodeType for a GitHub pull request"}),L=o()({name:"Pull request review",pluralName:"Pull request reviews",prefix:i.a.review,defaultWeight:1,description:"NodeType for a GitHub code review"}),F=o()({name:"Comment",pluralName:"Comments",prefix:i.a.comment,defaultWeight:1,description:"NodeType for a GitHub comment"}),U=o()({name:"Commit",pluralName:"Commits",prefix:i.a.commit,defaultWeight:1,description:"Represents a particular Git commit on GitHub, i.e. scoped to a particular repository"}),B=o()({name:"User",pluralName:"Users",prefix:i.a.user,defaultWeight:1,description:"NodeType for a GitHub user"}),z=o()({name:"Bot",pluralName:"Bots",prefix:i.a.bot,defaultWeight:.25,description:"NodeType for a GitHub bot account"}),W=o()([I,R,D,L,F,U,B,z]),H=o()({forwardName:"authors",backwardName:"is authored by",defaultWeight:{forwards:.5,backwards:1},prefix:w.authors,description:Object(O.a)(M())}),G=o()({forwardName:"has parent",backwardName:"has child",defaultWeight:{forwards:1,backwards:.25},prefix:w.hasParent,description:Object(O.a)(C())}),q=o()({forwardName:"merges",backwardName:"is merged by",defaultWeight:{forwards:.5,backwards:1},prefix:w.mergedAs,description:Object(O.a)(P())}),V=o()({forwardName:"references",backwardName:"is referenced by",defaultWeight:{forwards:1,backwards:0},prefix:w.references,description:Object(O.a)(j())}),Y=o()({forwardName:"reacted ❤️ to",backwardName:"got ❤️ from",defaultWeight:{forwards:2,backwards:0},prefix:w.reactsHeart,description:Object(O.a)(A())}),$=o()({forwardName:"reacted 👍 to",backwardName:"got 👍 from",defaultWeight:{forwards:1,backwards:0},prefix:w.reactsThumbsUp,description:Object(O.a)(T())}),X=o()({forwardName:"reacted 🎉 to",backwardName:"got 🎉 from",defaultWeight:{forwards:4,backwards:0},prefix:w.reactsHooray,description:Object(O.a)(S())}),K=o()({forwardName:"reacted 🚀 to",backwardName:"got 🚀 from",defaultWeight:{forwards:1,backwards:0},prefix:w.reactsRocket,description:Object(O.a)(k())}),Q=o()({forwardName:"corresponds to Git commit",backwardName:"merged on GitHub as",defaultWeight:{forwards:1,backwards:1},prefix:w.correspondsToCommit,description:Object(O.a)(E())}),J=o()([H,G,q,V,$,Y,X,K,Q]),Z=o()({name:"GitHub",nodePrefix:i.a.base,edgePrefix:w.base,nodeTypes:W,edgeTypes:J})},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){(function(e,n){var r=200,o="Expected a function",i="__lodash_hash_undefined__",a=1,c=2,u=1/0,s=9007199254740991,l="[object Arguments]",f="[object Array]",p="[object Boolean]",d="[object Date]",h="[object Error]",y="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Object]",w="[object RegExp]",x="[object Set]",_="[object String]",O="[object Symbol]",E="[object ArrayBuffer]",k="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/,A=/^\./,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N[l]=N[f]=N[E]=N[p]=N[k]=N[d]=N[h]=N[y]=N[g]=N[v]=N[b]=N[w]=N[x]=N[_]=N["[object WeakMap]"]=!1;var I="object"==typeof e&&e&&e.Object===Object&&e,R="object"==typeof self&&self&&self.Object===Object&&self,D=I||R||Function("return this")(),L=t&&!t.nodeType&&t,F=L&&"object"==typeof n&&n&&!n.nodeType&&n,U=F&&F.exports===L&&I.process,B=function(){try{return U&&U.binding("util")}catch(e){}}(),z=B&&B.isTypedArray;function W(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 H(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function G(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function q(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function V(e){return function(t){return e(t)}}function Y(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function X(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var K,Q,J,Z=Array.prototype,ee=Function.prototype,te=Object.prototype,ne=D["__core-js_shared__"],re=(K=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",oe=ee.toString,ie=te.hasOwnProperty,ae=te.toString,ce=RegExp("^"+oe.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ue=D.Symbol,se=D.Uint8Array,le=te.propertyIsEnumerable,fe=Z.splice,pe=ue?ue.isConcatSpreadable:void 0,de=(Q=Object.keys,J=Object,function(e){return Q(J(e))}),he=Math.max,ye=Qe(D,"DataView"),me=Qe(D,"Map"),ge=Qe(D,"Promise"),ve=Qe(D,"Set"),be=Qe(D,"WeakMap"),we=Qe(Object,"create"),xe=ct(ye),_e=ct(me),Oe=ct(ge),Ee=ct(ve),ke=ct(be),Se=ue?ue.prototype:void 0,Te=Se?Se.valueOf:void 0,Ae=Se?Se.toString:void 0;function je(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 Pe(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 Ce(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 Me(e){var t=-1,n=e?e.length:0;for(this.__data__=new Ce;++t<n;)this.add(e[t])}function Ne(e){this.__data__=new Pe(e)}function Ie(e,t){var n=pt(e)||ft(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,o=!!r;for(var i in e)!t&&!ie.call(e,i)||o&&("length"==i||et(i,r))||n.push(i);return n}function Re(e,t){for(var n=e.length;n--;)if(lt(e[n][0],t))return n;return-1}je.prototype.clear=function(){this.__data__=we?we(null):{}},je.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},je.prototype.get=function(e){var t=this.__data__;if(we){var n=t[e];return n===i?void 0:n}return ie.call(t,e)?t[e]:void 0},je.prototype.has=function(e){var t=this.__data__;return we?void 0!==t[e]:ie.call(t,e)},je.prototype.set=function(e,t){return this.__data__[e]=we&&void 0===t?i:t,this},Pe.prototype.clear=function(){this.__data__=[]},Pe.prototype.delete=function(e){var t=this.__data__,n=Re(t,e);return!(n<0)&&(n==t.length-1?t.pop():fe.call(t,n,1),!0)},Pe.prototype.get=function(e){var t=this.__data__,n=Re(t,e);return n<0?void 0:t[n][1]},Pe.prototype.has=function(e){return Re(this.__data__,e)>-1},Pe.prototype.set=function(e,t){var n=this.__data__,r=Re(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new je,map:new(me||Pe),string:new je}},Ce.prototype.delete=function(e){return Ke(this,e).delete(e)},Ce.prototype.get=function(e){return Ke(this,e).get(e)},Ce.prototype.has=function(e){return Ke(this,e).has(e)},Ce.prototype.set=function(e,t){return Ke(this,e).set(e,t),this},Me.prototype.add=Me.prototype.push=function(e){return this.__data__.set(e,i),this},Me.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.clear=function(){this.__data__=new Pe},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Pe){var o=n.__data__;if(!me||o.length<r-1)return o.push([e,t]),this;n=this.__data__=new Ce(o)}return n.set(e,t),this};var De,Le,Fe=(De=function(e,t){return e&&Ue(e,t,wt)},function(e,t){if(null==e)return e;if(!dt(e))return De(e,t);for(var n=e.length,r=Le?n:-1,o=Object(e);(Le?r--:++r<n)&&!1!==t(o[r],r,o););return e});var Ue=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}();function Be(e,t){for(var n=0,r=(t=nt(t,e)?[t]:Ye(t)).length;null!=e&&n<r;)e=e[at(t[n++])];return n&&n==r?e:void 0}function ze(e,t){return null!=e&&t in Object(e)}function We(e,t,n,r,o){return e===t||(null==e||null==t||!mt(e)&&!gt(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var u=pt(e),s=pt(t),y=f,m=f;u||(y=(y=Je(e))==l?b:y);s||(m=(m=Je(t))==l?b:m);var S=y==b&&!Y(e),T=m==b&&!Y(t),A=y==m;if(A&&!S)return i||(i=new Ne),u||bt(e)?Xe(e,t,n,r,o,i):function(e,t,n,r,o,i,u){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!r(new se(e),new se(t)));case p:case d:case v:return lt(+e,+t);case h:return e.name==t.name&&e.message==t.message;case w:case _:return e==t+"";case g:var s=$;case x:var l=i&c;if(s||(s=X),e.size!=t.size&&!l)return!1;var f=u.get(e);if(f)return f==t;i|=a,u.set(e,t);var y=Xe(s(e),s(t),r,o,i,u);return u.delete(e),y;case O:if(Te)return Te.call(e)==Te.call(t)}return!1}(e,t,y,n,r,o,i);if(!(o&c)){var j=S&&ie.call(e,"__wrapped__"),P=T&&ie.call(t,"__wrapped__");if(j||P){var C=j?e.value():e,M=P?t.value():t;return i||(i=new Ne),n(C,M,r,o,i)}}if(!A)return!1;return i||(i=new Ne),function(e,t,n,r,o,i){var a=o&c,u=wt(e),s=u.length,l=wt(t).length;if(s!=l&&!a)return!1;var f=s;for(;f--;){var p=u[f];if(!(a?p in t:ie.call(t,p)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var h=!0;i.set(e,t),i.set(t,e);var y=a;for(;++f<s;){p=u[f];var m=e[p],g=t[p];if(r)var v=a?r(g,m,p,t,e,i):r(m,g,p,e,t,i);if(!(void 0===v?m===g||n(m,g,r,o,i):v)){h=!1;break}y||(y="constructor"==p)}if(h&&!y){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)&&(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,i)}(e,t,We,n,r,o))}function He(e){return!(!mt(e)||function(e){return!!re&&re in e}(e))&&(ht(e)||Y(e)?ce:C).test(ct(e))}function Ge(e){return"function"==typeof e?e:null==e?xt:"object"==typeof e?pt(e)?function(e,t){if(nt(e)&&rt(t))return ot(at(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Be(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=nt(t,e)?[t]:Ye(t);var r,o=-1,i=t.length;for(;++o<i;){var a=at(t[o]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;return!!(i=e?e.length:0)&&yt(i)&&et(a,i)&&(pt(e)||ft(e))}(e,t,ze)}(n,e):We(t,r,void 0,a|c)}}(e[0],e[1]):function(e){var t=function(e){var t=wt(e),n=t.length;for(;n--;){var r=t[n],o=e[r];t[n]=[r,o,rt(o)]}return t}(e);if(1==t.length&&t[0][2])return ot(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,u=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],f=e[l],p=s[1];if(u&&s[2]){if(void 0===f&&!(l in e))return!1}else{var d=new Ne;if(r)var h=r(f,p,l,e,t,d);if(!(void 0===h?We(p,f,r,a|c,d):h))return!1}}return!0}(n,e,t)}}(e):nt(t=e)?(n=at(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Be(t,e)}}(t);var t,n}function qe(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||te,t!==r)return de(e);var t,n,r,o=[];for(var i in Object(e))ie.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ve(e,t,n){var r=-1;return t=H(t.length?t:[xt],V(Ge)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(function(e,t){var n=-1,r=dt(e)?Array(e.length):[];return Fe(e,function(e,o,i){r[++n]=t(e,o,i)}),r}(e,function(e,n,o){return{criteria:H(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,c=n.length;for(;++r<a;){var u=$e(o[r],i[r]);if(u){if(r>=c)return u;var s=n[r];return u*("desc"==s?-1:1)}}return e.index-t.index}(e,t,n)})}function Ye(e){return pt(e)?e:it(e)}function $e(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=vt(e),a=void 0!==t,c=null===t,u=t==t,s=vt(t);if(!c&&!s&&!i&&e>t||i&&a&&u&&!c&&!s||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!s&&e<t||s&&n&&o&&!r&&!i||c&&n&&o||!a&&o||!u)return-1}return 0}function Xe(e,t,n,r,o,i){var u=o&c,s=e.length,l=t.length;if(s!=l&&!(u&&l>s))return!1;var f=i.get(e);if(f&&i.get(t))return f==t;var p=-1,d=!0,h=o&a?new Me:void 0;for(i.set(e,t),i.set(t,e);++p<s;){var y=e[p],m=t[p];if(r)var g=u?r(m,y,p,t,e,i):r(y,m,p,e,t,i);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!q(t,function(e,t){if(!h.has(t)&&(y===e||n(y,e,r,o,i)))return h.add(t)})){d=!1;break}}else if(y!==m&&!n(y,m,r,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Ke(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Qe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return He(n)?n:void 0}var Je=function(e){return ae.call(e)};function Ze(e){return pt(e)||ft(e)||!!(pe&&e&&e[pe])}function et(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e<t}function tt(e,t,n){if(!mt(n))return!1;var r=typeof t;return!!("number"==r?dt(n)&&et(t,n.length):"string"==r&&t in n)&&lt(n[t],e)}function nt(e,t){if(pt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!vt(e))||(T.test(e)||!S.test(e)||null!=t&&e in Object(t))}function rt(e){return e==e&&!mt(e)}function ot(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(ye&&Je(new ye(new ArrayBuffer(1)))!=k||me&&Je(new me)!=g||ge&&"[object Promise]"!=Je(ge.resolve())||ve&&Je(new ve)!=x||be&&"[object WeakMap]"!=Je(new be))&&(Je=function(e){var t=ae.call(e),n=t==b?e.constructor:void 0,r=n?ct(n):void 0;if(r)switch(r){case xe:return k;case _e:return g;case Oe:return"[object Promise]";case Ee:return x;case ke:return"[object WeakMap]"}return t});var it=st(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(vt(e))return Ae?Ae.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}(t);var n=[];return A.test(e)&&n.push(""),e.replace(j,function(e,t,r,o){n.push(r?o.replace(P,"$1"):t||e)}),n});function at(e){if("string"==typeof e||vt(e))return e;var t=e+"";return"0"==t&&1/e==-u?"-0":t}function ct(e){if(null!=e){try{return oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ut=function(e,t){return t=he(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=he(n.length-t,0),i=Array(o);++r<o;)i[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=i,W(e,this,a)}}(function(e,t){if(null==e)return[];var n=t.length;return n>1&&tt(e,t[0],t[1])?t=[]:n>2&&tt(t[0],t[1],t[2])&&(t=[t[0]]),Ve(e,function e(t,n,r,o,i){var a=-1,c=t.length;for(r||(r=Ze),i||(i=[]);++a<c;){var u=t[a];n>0&&r(u)?n>1?e(u,n-1,r,o,i):G(i,u):o||(i[i.length]=u)}return i}(t,1),[])});function st(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(st.Cache||Ce),n}function lt(e,t){return e===t||e!=e&&t!=t}function ft(e){return function(e){return gt(e)&&dt(e)}(e)&&ie.call(e,"callee")&&(!le.call(e,"callee")||ae.call(e)==l)}st.Cache=Ce;var pt=Array.isArray;function dt(e){return null!=e&&yt(e.length)&&!ht(e)}function ht(e){var t=mt(e)?ae.call(e):"";return t==y||t==m}function yt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function mt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function gt(e){return!!e&&"object"==typeof e}function vt(e){return"symbol"==typeof e||gt(e)&&ae.call(e)==O}var bt=z?V(z):function(e){return gt(e)&&yt(e.length)&&!!N[ae.call(e)]};function wt(e){return dt(e)?Ie(e):qe(e)}function xt(e){return e}n.exports=ut}).call(this,n(43),n(80)(e))},function(e,t,n){var r="undefined"!=typeof JSON?JSON:n(289);e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n=t.space||"";"number"==typeof n&&(n=Array(n+1).join(" "));var a,c="boolean"==typeof t.cycles&&t.cycles,u=t.replacer||function(e,t){return t},s=t.cmp&&(a=t.cmp,function(e){return function(t,n){var r={key:t,value:e[t]},o={key:n,value:e[n]};return a(r,o)}}),l=[];return function e(t,a,f,p){var d=n?"\n"+new Array(p+1).join(n):"",h=n?": ":":";if(f&&f.toJSON&&"function"==typeof f.toJSON&&(f=f.toJSON()),void 0!==(f=u.call(t,a,f))){if("object"!=typeof f||null===f)return r.stringify(f);if(o(f)){for(var y=[],m=0;m<f.length;m++){var g=e(f,m,f[m],p+1)||r.stringify(null);y.push(d+n+g)}return"["+y.join(",")+d+"]"}if(-1!==l.indexOf(f)){if(c)return r.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}l.push(f);var v=i(f).sort(s&&s(f));for(y=[],m=0;m<v.length;m++){var b=e(f,a=v[m],f[a],p+1);if(b){var w=r.stringify(a)+h+b;y.push(d+n+w)}}return l.splice(l.indexOf(f),1),"{"+y.join(",")+d+"}"}}({"":e},"",e,0)};var o=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},i=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}},function(e,t,n){(function(e,n){var r=200,o="__lodash_hash_undefined__",i=1,a=2,c=9007199254740991,u="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Function]",y="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",b="[object Object]",w="[object Proxy]",x="[object RegExp]",_="[object Set]",O="[object String]",E="[object Symbol]",k="[object Undefined]",S="[object ArrayBuffer]",T="[object DataView]",A=/^\[object .+?Constructor\]$/,j=/^(?: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[u]=P[s]=P[S]=P[f]=P[T]=P[p]=P[d]=P[h]=P[m]=P[g]=P[b]=P[x]=P[_]=P[O]=P["[object WeakMap]"]=!1;var C="object"==typeof e&&e&&e.Object===Object&&e,M="object"==typeof self&&self&&self.Object===Object&&self,N=C||M||Function("return this")(),I=t&&!t.nodeType&&t,R=I&&"object"==typeof n&&n&&!n.nodeType&&n,D=R&&R.exports===I,L=D&&C.process,F=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),U=F&&F.isTypedArray;function B(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function z(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var H,G,q,V=Array.prototype,Y=Function.prototype,$=Object.prototype,X=N["__core-js_shared__"],K=Y.toString,Q=$.hasOwnProperty,J=(H=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",Z=$.toString,ee=RegExp("^"+K.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=D?N.Buffer:void 0,ne=N.Symbol,re=N.Uint8Array,oe=$.propertyIsEnumerable,ie=V.splice,ae=ne?ne.toStringTag:void 0,ce=Object.getOwnPropertySymbols,ue=te?te.isBuffer:void 0,se=(G=Object.keys,q=Object,function(e){return G(q(e))}),le=Fe(N,"DataView"),fe=Fe(N,"Map"),pe=Fe(N,"Promise"),de=Fe(N,"Set"),he=Fe(N,"WeakMap"),ye=Fe(Object,"create"),me=We(le),ge=We(fe),ve=We(pe),be=We(de),we=We(he),xe=ne?ne.prototype:void 0,_e=xe?xe.valueOf:void 0;function Oe(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 Ee(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 ke(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 Se(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ke;++t<n;)this.add(e[t])}function Te(e){var t=this.__data__=new Ee(e);this.size=t.size}function Ae(e,t){var n=qe(e),r=!n&&Ge(e),o=!n&&!r&&Ve(e),i=!n&&!r&&!o&&Qe(e),a=n||r||o||i,c=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=c.length;for(var s in e)!t&&!Q.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ze(s,u))||c.push(s);return c}function je(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Pe(e){return null==e?void 0===e?k:v:ae&&ae in Object(e)?function(e){var t=Q.call(e,ae),n=e[ae];try{e[ae]=void 0;var r=!0}catch(e){}var o=Z.call(e);r&&(t?e[ae]=n:delete e[ae]);return o}(e):function(e){return Z.call(e)}(e)}function Ce(e){return Ke(e)&&Pe(e)==u}function Me(e,t,n,r,o){return e===t||(null==e||null==t||!Ke(e)&&!Ke(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var l=qe(e),h=qe(t),y=l?s:Be(e),v=h?s:Be(t),w=(y=y==u?b:y)==b,k=(v=v==u?b:v)==b,A=y==v;if(A&&Ve(e)){if(!Ve(t))return!1;l=!0,w=!1}if(A&&!w)return c||(c=new Te),l||Qe(e)?Re(e,t,n,r,o,c):function(e,t,n,r,o,c,u){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!c(new re(e),new re(t)));case f:case p:case g:return He(+e,+t);case d:return e.name==t.name&&e.message==t.message;case x:case O:return e==t+"";case m:var s=z;case _:var l=r&i;if(s||(s=W),e.size!=t.size&&!l)return!1;var h=u.get(e);if(h)return h==t;r|=a,u.set(e,t);var y=Re(s(e),s(t),r,o,c,u);return u.delete(e),y;case E:if(_e)return _e.call(e)==_e.call(t)}return!1}(e,t,y,n,r,o,c);if(!(n&i)){var j=w&&Q.call(e,"__wrapped__"),P=k&&Q.call(t,"__wrapped__");if(j||P){var C=j?e.value():e,M=P?t.value():t;return c||(c=new Te),o(C,M,n,r,c)}}if(!A)return!1;return c||(c=new Te),function(e,t,n,r,o,a){var c=n&i,u=De(e),s=u.length,l=De(t).length;if(s!=l&&!c)return!1;var f=s;for(;f--;){var p=u[f];if(!(c?p in t:Q.call(t,p)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var h=!0;a.set(e,t),a.set(t,e);var y=c;for(;++f<s;){p=u[f];var m=e[p],g=t[p];if(r)var v=c?r(g,m,p,t,e,a):r(m,g,p,e,t,a);if(!(void 0===v?m===g||o(m,g,n,r,a):v)){h=!1;break}y||(y="constructor"==p)}if(h&&!y){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)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,c)}(e,t,n,r,Me,o))}function Ne(e){return!(!Xe(e)||function(e){return!!J&&J in e}(e))&&(Ye(e)?ee:A).test(We(e))}function Ie(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||$,t!==r)return se(e);var t,n,r,o=[];for(var i in Object(e))Q.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Re(e,t,n,r,o,c){var u=n&i,s=e.length,l=t.length;if(s!=l&&!(u&&l>s))return!1;var f=c.get(e);if(f&&c.get(t))return f==t;var p=-1,d=!0,h=n&a?new Se:void 0;for(c.set(e,t),c.set(t,e);++p<s;){var y=e[p],m=t[p];if(r)var g=u?r(m,y,p,t,e,c):r(y,m,p,e,t,c);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!B(t,function(e,t){if(i=t,!h.has(i)&&(y===e||o(y,e,n,r,c)))return h.push(t);var i})){d=!1;break}}else if(y!==m&&!o(y,m,n,r,c)){d=!1;break}}return c.delete(e),c.delete(t),d}function De(e){return function(e,t,n){var r=t(e);return qe(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Je,Ue)}function Le(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ne(n)?n:void 0}Oe.prototype.clear=function(){this.__data__=ye?ye(null):{},this.size=0},Oe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Oe.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===o?void 0:n}return Q.call(t,e)?t[e]:void 0},Oe.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Oe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ye&&void 0===t?o:t,this},Ee.prototype.clear=function(){this.__data__=[],this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,n=je(t,e);return!(n<0)&&(n==t.length-1?t.pop():ie.call(t,n,1),--this.size,!0)},Ee.prototype.get=function(e){var t=this.__data__,n=je(t,e);return n<0?void 0:t[n][1]},Ee.prototype.has=function(e){return je(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=je(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ke.prototype.clear=function(){this.size=0,this.__data__={hash:new Oe,map:new(fe||Ee),string:new Oe}},ke.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},ke.prototype.get=function(e){return Le(this,e).get(e)},ke.prototype.has=function(e){return Le(this,e).has(e)},ke.prototype.set=function(e,t){var n=Le(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Se.prototype.add=Se.prototype.push=function(e){return this.__data__.set(e,o),this},Se.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Ee,this.size=0},Te.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var o=n.__data__;if(!fe||o.length<r-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new ke(o)}return n.set(e,t),this.size=n.size,this};var Ue=ce?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(ce(e),function(t){return oe.call(e,t)}))}:function(){return[]},Be=Pe;function ze(e,t){return!!(t=null==t?c:t)&&("number"==typeof e||j.test(e))&&e>-1&&e%1==0&&e<t}function We(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(le&&Be(new le(new ArrayBuffer(1)))!=T||fe&&Be(new fe)!=m||pe&&"[object Promise]"!=Be(pe.resolve())||de&&Be(new de)!=_||he&&"[object WeakMap]"!=Be(new he))&&(Be=function(e){var t=Pe(e),n=t==b?e.constructor:void 0,r=n?We(n):"";if(r)switch(r){case me:return T;case ge:return m;case ve:return"[object Promise]";case be:return _;case we:return"[object WeakMap]"}return t});var Ge=Ce(function(){return arguments}())?Ce:function(e){return Ke(e)&&Q.call(e,"callee")&&!oe.call(e,"callee")},qe=Array.isArray;var Ve=ue||function(){return!1};function Ye(e){if(!Xe(e))return!1;var t=Pe(e);return t==h||t==y||t==l||t==w}function $e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function Xe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ke(e){return null!=e&&"object"==typeof e}var Qe=U?function(e){return function(t){return e(t)}}(U):function(e){return Ke(e)&&$e(e.length)&&!!P[Pe(e)]};function Je(e){return null!=(t=e)&&$e(t.length)&&!Ye(t)?Ae(e):Ie(e);var t}n.exports=function(e,t){return Me(e,t)}}).call(this,n(43),n(80)(e))},function(e,t,n){"use strict";function r(e,t){return[e,t]}function o(e,t,n){if(!Array.isArray(t)||2!==t.length)throw new Error("Tried to load object that didn't have compatibility defined");const{type:r,version:o}=t[0];let i=t[1];const{type:a,version:c}=e;if(r!==a)throw new Error("Expected type to be ".concat(a," but got ").concat(r));if(null!=n&&null!=n[o])i=n[o](i);else if(o!==c)throw new Error("".concat(r,": tried to load unsupported version ").concat(o));return i}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function r(e){const t=e.join("").split("\n").filter(e=>0!==e.trim().length).map(e=>e.length-e.trimLeft().length),n=Math.min.apply(null,t),r=[];for(let t=0;t<e.length;t++){const o=e[t].split("\n").map((e,r)=>0===t||r>0?e.substr(n):e).join("\n");r.push(o),t<(arguments.length<=1?0:arguments.length-1)&&r.push(t+1<1||arguments.length<=t+1?void 0:arguments[t+1])}return r.join("")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"d",function(){return u}),n.d(t,"c",function(){return s});var r=n(16),o=n(23);function i(){return{nodeTypeWeights:new Map,edgeTypeWeights:new Map,nodeManualWeights:new Map}}function a(e){return{nodeTypeWeights:new Map(e.nodeTypeWeights),edgeTypeWeights:new Map(e.edgeTypeWeights),nodeManualWeights:new Map(e.nodeManualWeights)}}const c={type:"sourcecred/weights",version:"0.1.0"};function u(e){return Object(o.b)(c,{nodeTypeWeights:r.e(e.nodeTypeWeights),edgeTypeWeights:r.e(e.edgeTypeWeights),nodeManualWeights:r.e(e.nodeManualWeights)})}function s(e){const{nodeTypeWeights:t,edgeTypeWeights:n,nodeManualWeights:i}=Object(o.a)(c,e);return{nodeTypeWeights:r.a(t),edgeTypeWeights:r.a(n),nodeManualWeights:r.a(i)}}},function(e,t,n){"use strict";e.exports=function(e){return o.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,o=/\s/},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return u});var r=n(16),o=n(4);function i(e,t){switch(t.type){case"SYNTHETIC_LOOP":return e;case"IN_EDGE":return t.edge.src;case"OUT_EDGE":return t.edge.dst;default:throw new Error(t.type)}}function a(e,t,n){const r=new Map,a=new Map;for(const t of e.nodes())r.set(t.address,[]),a.set(t.address,0);function c(e,t){o.a(r.get(e)).push(t);const n=i(e,t.adjacency),c=o.a(a.get(n));a.set(n,c+t.weight)}for(const t of e.nodes())c(t.address,{adjacency:{type:"SYNTHETIC_LOOP"},weight:n});for(const n of e.edges({showDangling:!1})){const{forwards:e,backwards:r}=t(n),{src:o,dst:i}=n;c(i,{adjacency:{type:"IN_EDGE",edge:n},weight:e}),c(o,{adjacency:{type:"OUT_EDGE",edge:n},weight:r})}for(const[e,t]of r.entries())for(const n of t){const t=i(e,n.adjacency),r=o.a(a.get(t)),c=n.weight/r;n.weight=c}return r}function c(e){var t;return function(e){const t=Array.from(e.keys()),n=new Map;return t.forEach((e,t)=>{n.set(e,t)}),{nodeOrder:t,chain:t.map(t=>{const r=o.a(e.get(t)),i={neighbor:new Uint32Array(r.size),weight:new Float64Array(r.size)};let a=0;for(const[e,t]of r.entries()){const r=o.a(n.get(e));i.neighbor[a]=r,i.weight[a]=t,a++}return i})}}((t=e,r.c(t,(e,t)=>{const n=new Map;for(const r of t){const t=i(e,r.adjacency);n.set(t,r.weight+o.c(n.get(t),0))}return n})))}function u(e,t){const n=new Map;return e.forEach((e,r)=>{const o=t[r];n.set(e,o)}),n}},function(e,t,n){var r=n(186),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"f",function(){return u}),n.d(t,"e",function(){return s}),n.d(t,"d",function(){return l});var r=n(1),o=n.n(r);const i=-5,a=5;class c extends o.a.Component{render(){return o.a.createElement("label",{style:{display:"flex"},title:this.props.description},o.a.createElement("span",{style:{flexGrow:1}},this.props.name),o.a.createElement("input",{type:"range",min:i,max:a,step:1,value:u(this.props.weight),onChange:e=>{const t=s(e.target.valueAsNumber);this.props.onChange(t)}})," ",o.a.createElement("span",{style:{minWidth:45,display:"inline-block",textAlign:"right"}},l(this.props.weight)))}}function u(e){if(!isFinite(e)||e<0)throw new Error("illegal weight: ".concat(e));const t=Math.log2(e);return t<i?i:t>a?a:Math.round(t)}function s(e){if(e<i||e>a)throw new Error("Slider position out of range: ".concat(e));if(isNaN(e))throw new Error("illegal value: NaN");if(Math.round(e)!==e)throw new Error("slider position not integer: ".concat(e));return e===i?0:2**e}function l(e){if(e<0||!isFinite(e))throw new Error("Invalid weight: ".concat(e));return e>=1||0===e?e.toFixed(0)+"×":"1/".concat((1/e).toFixed(0),"×")}},function(e,t,n){"use strict";var r=n(14),o=n.n(r),i=n(1),a=n.n(i),c=n(17),u=n.n(c),s=n(0),l=n.n(s);n(35);function f(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var p=Object.create(null);function d(e){return p[e]||(p[e]=function(e){for(var t="",n=[],r=[],o=void 0,i=0,a=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g;o=a.exec(e);)o.index!==i&&(r.push(e.slice(i,o.index)),t+=f(e.slice(i,o.index))),o[1]?(t+="([^/]+)",n.push(o[1])):"**"===o[0]?(t+="(.*)",n.push("splat")):"*"===o[0]?(t+="(.*?)",n.push("splat")):"("===o[0]?t+="(?:":")"===o[0]?t+=")?":"\\("===o[0]?t+="\\(":"\\)"===o[0]&&(t+="\\)"),r.push(o[0]),i=a.lastIndex;return i!==e.length&&(r.push(e.slice(i,e.length)),t+=f(e.slice(i,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}(e)),p[e]}function h(e,t){"/"!==e.charAt(0)&&(e="/"+e);var n=d(e),r=n.regexpSource,o=n.paramNames,i=n.tokens;"/"!==e.charAt(e.length-1)&&(r+="/?"),"*"===i[i.length-1]&&(r+="$");var a=t.match(new RegExp("^"+r,"i"));if(null==a)return null;var c=a[0],u=t.substr(c.length);if(u){if("/"!==c.charAt(c.length-1))return null;u="/"+u}return{remainingPathname:u,paramNames:o,paramValues:a.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}function y(e){return d(e).paramNames}function m(e,t){t=t||{};for(var n=d(e).tokens,r=0,i="",a=0,c=[],u=void 0,s=void 0,l=0,f=n.length;l<f;++l)if("*"===(u=n[l])||"**"===u)null!=(s=Array.isArray(t.splat)?t.splat[a++]:t.splat)||r>0||o()(!1),null!=s&&(i+=encodeURI(s));else if("("===u)c[r]="",r+=1;else if(")"===u){var p=c.pop();(r-=1)?c[r-1]+=p:i+=p}else if("\\("===u)i+="(";else if("\\)"===u)i+=")";else if(":"===u.charAt(0))if(null!=(s=t[u.substring(1)])||r>0||o()(!1),null==s){if(r){c[r-1]="";for(var h=n.indexOf(u),y=n.slice(h,n.length),m=-1,g=0;g<y.length;g++)if(")"==y[g]){m=g;break}m>0||o()(!1),l=h+m-1}}else r?c[r-1]+=encodeURIComponent(s):i+=encodeURIComponent(s);else r?c[r-1]+=u:i+=u;return r<=0||o()(!1),i.replace(/\/+/g,"/")}var g=function(e,t){var n=e&&e.routes,r=t.routes,o=void 0,i=void 0,a=void 0;if(n){var c=!1;(o=n.filter(function(n){if(c)return!0;var o=-1===r.indexOf(n)||function(e,t,n){return!!e.path&&y(e.path).some(function(e){return t.params[e]!==n.params[e]})}(n,e,t);return o&&(c=!0),o})).reverse(),a=[],i=[],r.forEach(function(e){var t=-1===n.indexOf(e),r=-1!==o.indexOf(e);t||r?a.push(e):i.push(e)})}else o=[],i=[],a=r;return{leaveRoutes:o,changeRoutes:i,enterRoutes:a}};function v(e,t,n){var r=0,o=!1,i=!1,a=!1,c=void 0;function u(){o=!0,i?c=[].concat(Array.prototype.slice.call(arguments)):n.apply(this,arguments)}!function s(){if(!o&&(a=!0,!i)){for(i=!0;!o&&r<e&&a;)a=!1,t.call(this,r++,s,u);i=!1,o?n.apply(this,c):r>=e&&a&&(o=!0,n())}}()}function b(e,t,n){var r=e.length,o=[];if(0===r)return n(null,o);var i=!1,a=0;e.forEach(function(e,c){t(e,c,function(e,t){!function(e,t,c){i||(t?(i=!0,n(t)):(o[e]=c,(i=++a===r)&&n(null,o)))}(c,e,t)})})}var w=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=[],this.add=function(e){return t.hooks.push(e)},this.remove=function(e){return t.hooks=t.hooks.filter(function(t){return t!==e})},this.has=function(e){return-1!==t.hooks.indexOf(e)},this.clear=function(){return t.hooks=[]}};function x(){var e=new w,t=new w;function n(e,t,n,r){var o=e.length<n,i=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];if(e.apply(t,r),o){var a=r[r.length-1];a()}};return r.add(i),i}function r(e,t,n){if(e){var r=void 0;v(e,function(e,n,i){t(e,o,function(e){e||r?i(e,r):n()})},n)}else n();function o(e){r=e}}return{runEnterHooks:function(t,o,i){e.clear();var a=function(t){return t.reduce(function(t,r){return r.onEnter&&t.push(n(r.onEnter,r,3,e)),t},[])}(t);return r(a.length,function(t,n,r){a[t](o,n,function(){e.has(a[t])&&(r.apply(void 0,arguments),e.remove(a[t]))})},i)},runChangeHooks:function(e,o,i,a){t.clear();var c=function(e){return e.reduce(function(e,r){return r.onChange&&e.push(n(r.onChange,r,4,t)),e},[])}(e);return r(c.length,function(e,n,r){c[e](o,i,n,function(){t.has(c[e])&&(r.apply(void 0,arguments),t.remove(c[e]))})},a)},runLeaveHooks:function(e,t){for(var n=0,r=e.length;n<r;++n)e[n].onLeave&&e[n].onLeave.call(e[n],t)}}}var _="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 O(e,t){return null==t?null==e:null==e||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"===(void 0===t?"undefined":_(t))){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))if(void 0===t[r]){if(void 0!==n[r])return!1}else{if(!Object.prototype.hasOwnProperty.call(n,r))return!1;if(!e(t[r],n[r]))return!1}return!0}return String(t)===String(n)}(e,t)}function E(e,t,n,r,o){var i=e.pathname,a=e.query;return null!=n&&("/"!==i.charAt(0)&&(i="/"+i),!!(function(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}(i,n.pathname)||!t&&function(e,t,n){for(var r=e,o=[],i=[],a=0,c=t.length;a<c;++a){var u=t[a].path||"";if("/"===u.charAt(0)&&(r=e,o=[],i=[]),null!==r&&u){var s=h(u,r);if(s?(r=s.remainingPathname,o=[].concat(o,s.paramNames),i=[].concat(i,s.paramValues)):r=null,""===r)return o.every(function(e,t){return String(i[t])===String(n[e])})}}return!1}(i,r,o))&&O(a,n.query))}function k(e){return e&&"function"==typeof e.then}var S=function(e,t){b(e.routes,function(t,n,r){!function(e,t,n){if(t.component||t.components)n(null,t.component||t.components);else{var r=t.getComponent||t.getComponents;if(r){var o=r.call(t,e,n);k(o)&&o.then(function(e){return n(null,e)},n)}else n()}}(e,t,r)},t)},T=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};function A(e){return null==e||a.a.isValidElement(e)}function j(e){return A(e)||Array.isArray(e)&&e.every(A)}function P(e){var t,n,r=e.type,o=(t=r.defaultProps,n=e.props,T({},t,n));if(o.children){var i=C(o.children,o);i.length&&(o.childRoutes=i),delete o.children}return o}function C(e,t){var n=[];return a.a.Children.forEach(e,function(e){if(a.a.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(P(e))}),n}function M(e){return j(e)?e=C(e):e&&!Array.isArray(e)&&(e=[e]),e}var 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};function I(e,t,n,r,o){if(e.childRoutes)return[null,e.childRoutes];if(!e.getChildRoutes)return[];var i=!0,a=void 0,c={location:t,params:R(n,r)},u=e.getChildRoutes(c,function(e,t){t=!e&&M(t),i?a=[e,t]:o(e,t)});return k(u)&&u.then(function(e){return o(null,M(e))},o),i=!1,a}function R(e,t){return function(e,t,n){return t.reduce(function(e,t,r){var o=n&&n[r];return Array.isArray(e[t])?e[t].push(o):e[t]=t in e?[e[t],o]:o,e},e)}({},e,t)}function D(e,t,n,r,o,i){var a=e.path||"";if("/"===a.charAt(0)&&(n=t.pathname,r=[],o=[]),null!==n&&a){try{var c=h(a,n);c?(n=c.remainingPathname,r=[].concat(r,c.paramNames),o=[].concat(o,c.paramValues)):n=null}catch(e){i(e)}if(""===n){var u={routes:[e],params:R(r,o)};return void function e(t,n,r,o,i){if(t.indexRoute)i(null,t.indexRoute);else if(t.getIndexRoute){var a={location:n,params:R(r,o)},c=t.getIndexRoute(a,function(e,t){i(e,!e&&M(t)[0])});k(c)&&c.then(function(e){return i(null,M(e)[0])},i)}else if(t.childRoutes||t.getChildRoutes){var u=function(t,a){if(t)i(t);else{var c=a.filter(function(e){return!e.path});v(c.length,function(t,i,a){e(c[t],n,r,o,function(e,n){if(e||n){var r=[c[t]].concat(Array.isArray(n)?n:[n]);a(e,r)}else i()})},function(e,t){i(null,t)})}},s=I(t,n,r,o,u);s&&u.apply(void 0,s)}else i()}(e,t,r,o,function(e,t){if(e)i(e);else{var n;if(Array.isArray(t))(n=u.routes).push.apply(n,t);else t&&u.routes.push(t);i(null,u)}})}}if(null!=n||e.childRoutes){var s=function(a,c){a?i(a):c?L(c,t,function(t,n){t?i(t):n?(n.routes.unshift(e),i(null,n)):i()},n,r,o):i()},l=I(e,t,r,o,s);l&&s.apply(void 0,l)}else i()}function L(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=N({},t,{pathname:"/"+t.pathname})),r=t.pathname),v(e.length,function(n,a,c){D(e[n],t,r,o,i,function(e,t){e||t?c(e,t):a()})},n)}var F=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};function U(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function B(e,t){var n={},r=x(),o=r.runEnterHooks,i=r.runChangeHooks,a=r.runLeaveHooks;var c=void 0;function u(e,n){c&&c.location===e?s(c,n):L(t,e,function(t,r){t?n(t):r?s(F({},r,{location:e}),n):n()})}function s(e,t){var r=g(n,e),c=r.leaveRoutes,u=r.changeRoutes,s=r.enterRoutes;function l(r,o){if(r||o)return f(r,o);S(e,function(r,o){r?t(r):t(null,null,n=F({},e,{components:o}))})}function f(e,n){e?t(e):t(null,n)}a(c,n),c.filter(function(e){return-1===s.indexOf(e)}).forEach(b),i(u,n,e,function(t,n){if(t||n)return f(t,n);o(s,e,l)})}var l=1;function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=l++)}var p=Object.create(null);function d(e){return e.map(function(e){return p[f(e)]}).filter(function(e){return e})}function h(e,r){L(t,e,function(t,o){if(null!=o){c=F({},o,{location:e});for(var i=d(g(n,c).leaveRoutes),a=void 0,u=0,s=i.length;null==a&&u<s;++u)a=i[u](e);r(a)}else r()})}function y(){if(n.routes){for(var e=d(n.routes),t=void 0,r=0,o=e.length;"string"!=typeof t&&r<o;++r)t=e[r]();return t}}var m=void 0,v=void 0;function b(e){var t=f(e);t&&(delete p[t],U(p)||(m&&(m(),m=null),v&&(v(),v=null)))}return{isActive:function(t,r){return E(t=e.createLocation(t),r,n.location,n.routes,n.params)},match:u,listenBeforeLeavingRoute:function(t,n){var r=!U(p),o=f(t,!0);return p[o]=n,r&&(m=e.listenBefore(h),e.listenBeforeUnload&&(v=e.listenBeforeUnload(y))),function(){b(t)}},listen:function(t){function r(r){n.location===r?t(null,n):u(r,function(n,r,o){n?t(n):r?e.replace(r):o&&t(null,o)})}var o=e.listen(r);return n.location?t(null,n):r(e.getCurrentLocation()),o}}}function z(e,t,n){if(e[t])return new Error("<"+n+'> should not have a "'+t+'" prop')}Object(s.shape)({listen:s.func.isRequired,push:s.func.isRequired,replace:s.func.isRequired,go:s.func.isRequired,goBack:s.func.isRequired,goForward:s.func.isRequired});var W=Object(s.oneOfType)([s.func,s.string]),H=Object(s.oneOfType)([W,s.object]),G=Object(s.oneOfType)([s.object,s.element]),q=Object(s.oneOfType)([G,Object(s.arrayOf)(G)]);var V=function(e,t){var n={};return e.path?(y(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}),n):n},Y=l.a.shape({subscribe:l.a.func.isRequired,eventIndex:l.a.number.isRequired});function $(e){return"@@contextSubscriber/"+e}function X(e){var t,n,r=$(e),o=r+"/lastRenderedEventIndex",i=r+"/handleContextUpdate",a=r+"/unsubscribe";return(n={contextTypes:(t={},t[r]=Y,t),getInitialState:function(){var e;return this.context[r]?((e={})[o]=this.context[r].eventIndex,e):{}},componentDidMount:function(){this.context[r]&&(this[a]=this.context[r].subscribe(this[i]))},componentWillReceiveProps:function(){var e;this.context[r]&&this.setState(((e={})[o]=this.context[r].eventIndex,e))},componentWillUnmount:function(){this[a]&&(this[a](),this[a]=null)}})[i]=function(e){var t;e!==this.state[o]&&this.setState(((t={})[o]=e,t))},n}var K,Q,J,Z,ee,te,ne,re=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},oe="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},ie=u()({displayName:"RouterContext",mixins:[(K="router",Z=$(K),ee=Z+"/listeners",te=Z+"/eventIndex",ne=Z+"/subscribe",(J={childContextTypes:(Q={},Q[Z]=Y.isRequired,Q),getChildContext:function(){var e;return(e={})[Z]={eventIndex:this[te],subscribe:this[ne]},e},componentWillMount:function(){this[ee]=[],this[te]=0},componentWillReceiveProps:function(){this[te]++},componentDidUpdate:function(){var e=this;this[ee].forEach(function(t){return t(e[te])})}})[ne]=function(e){var t=this;return this[ee].push(e),function(){t[ee]=t[ee].filter(function(t){return t!==e})}},J)],propTypes:{router:s.object.isRequired,location:s.object.isRequired,routes:s.array.isRequired,params:s.object.isRequired,components:s.array.isRequired,createElement:s.func.isRequired},getDefaultProps:function(){return{createElement:a.a.createElement}},childContextTypes:{router:s.object.isRequired},getChildContext:function(){return{router:this.props.router}},createElement:function(e,t){return null==e?null:this.props.createElement(e,t)},render:function(){var e=this,t=this.props,n=t.location,r=t.routes,i=t.params,c=t.components,u=t.router,s=null;return c&&(s=c.reduceRight(function(t,o,a){if(null==o)return t;var c=r[a],s=V(c,i),l={location:n,params:i,route:c,router:u,routeParams:s,routes:r};if(j(t))l.children=t;else if(t)for(var f in t)Object.prototype.hasOwnProperty.call(t,f)&&(l[f]=t[f]);if("object"===(void 0===o?"undefined":oe(o))){var p={};for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(p[d]=e.createElement(o[d],re({key:d},l)));return p}return e.createElement(o,l)},s)),null===s||!1===s||a.a.isValidElement(s)||o()(!1),s}}),ae=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};function ce(e,t,n){return ue(ae({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive}),n)}function ue(e,t){var n=t.location,r=t.params,o=t.routes;return e.location=n,e.params=r,e.routes=o,e}var se=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};var le={history:s.object,children:q,routes:q,render:s.func,createElement:s.func,onError:s.func,onUpdate:s.func,matchContext:s.object},fe=u()({displayName:"Router",propTypes:le,getDefaultProps:function(){return{render:function(e){return a.a.createElement(ie,e)}}},getInitialState:function(){return{location:null,routes:null,params:null,components:null}},handleError:function(e){if(!this.props.onError)throw e;this.props.onError.call(this,e)},createRouterObject:function(e){var t=this.props.matchContext;return t?t.router:ce(this.props.history,this.transitionManager,e)},createTransitionManager:function(){var e=this.props.matchContext;if(e)return e.transitionManager;var t=this.props.history,n=this.props,r=n.routes,i=n.children;return t.getCurrentLocation||o()(!1),B(t,M(r||i))},componentWillMount:function(){var e=this;this.transitionManager=this.createTransitionManager(),this.router=this.createRouterObject(this.state),this._unlisten=this.transitionManager.listen(function(t,n){t?e.handleError(t):(ue(e.router,n),e.setState(n,e.props.onUpdate))})},componentWillReceiveProps:function(e){},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function(){var e=this.state,t=e.location,n=e.routes,r=e.params,o=e.components,i=this.props,a=i.createElement,c=i.render,u=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}(i,["createElement","render"]);return null==t?null:(Object.keys(le).forEach(function(e){return delete u[e]}),c(se({},u,{router:this.router,location:t,routes:n,params:r,components:o,createElement:a})))}}),pe=Object(s.shape)({push:s.func.isRequired,replace:s.func.isRequired,go:s.func.isRequired,goBack:s.func.isRequired,goForward:s.func.isRequired,setRouteLeaveHook:s.func.isRequired,isActive:s.func.isRequired}),de=(Object(s.shape)({pathname:s.string.isRequired,search:s.string.isRequired,state:s.object,action:s.string.isRequired,key:s.string}),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});function he(e,t){return"function"==typeof e?e(t.location):e}var ye=u()({displayName:"Link",mixins:[X("router")],contextTypes:{router:pe},propTypes:{to:Object(s.oneOfType)([s.string,s.object,s.func]),activeStyle:s.object,activeClassName:s.string,onlyActiveOnIndex:s.bool.isRequired,onClick:s.func,target:s.string},getDefaultProps:function(){return{onlyActiveOnIndex:!1,style:{}}},handleClick:function(e){if(this.props.onClick&&this.props.onClick(e),!e.defaultPrevented){var t=this.context.router;t||o()(!1),!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)&&function(e){return 0===e.button}(e)&&(this.props.target||(e.preventDefault(),t.push(he(this.props.to,t))))}},render:function(){var e=this.props,t=e.to,n=e.activeClassName,r=e.activeStyle,o=e.onlyActiveOnIndex,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}(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),c=this.context.router;if(c){if(!t)return a.a.createElement("a",i);var u=he(t,c);i.href=c.createHref(u),(n||null!=r&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(r))&&c.isActive(u,o)&&(n&&(i.className?i.className+=" "+n:i.className=n),r&&(i.style=de({},i.style,r)))}return a.a.createElement("a",de({},i,{onClick:this.handleClick}))}}),me=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()({displayName:"IndexLink",render:function(){return a.a.createElement(ye,me({},this.props,{onlyActiveOnIndex:!0}))}}),n(221),Object.assign;var ge=u()({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=P(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,o=e.params,i=void 0;if("/"===t.to.charAt(0))i=m(t.to,o);else if(t.to){var a=e.routes.indexOf(t);i=m(ge.getRoutePattern(e.routes,a-1).replace(/\/*$/,"/")+t.to,o)}else i=r.pathname;n({pathname:i,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var o=e[r].path||"";if(n=o.replace(/\/*$/,"/")+n,0===o.indexOf("/"))break}return"/"+n}},propTypes:{path:s.string,from:s.string,to:s.string.isRequired,query:s.object,state:s.object,onEnter:z,children:z},render:function(){o()(!1)}}),ve=ge,be=(u()({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=ve.createRouteFromReactElement(e))}},propTypes:{to:s.string.isRequired,query:s.object,state:s.object,onEnter:z,children:z},render:function(){o()(!1)}}),u()({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=P(e))}},propTypes:{path:z,component:W,components:H,getComponent:s.func,getComponents:s.func},render:function(){o()(!1)}})),we=u()({displayName:"Route",statics:{createRouteFromReactElement:P},propTypes:{path:s.string,component:W,components:H,getComponent:s.func,getComponents:s.func},render:function(){o()(!1)}}),xe=n(69),_e=n(94),Oe=n.n(_e),Ee=n(95),ke=n.n(Ee),Se=n(137),Te=n.n(Se);var Ae=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};var je=function(e,t){var n=e.history,r=e.routes,i=e.location,a=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}(e,["history","routes","location"]);n||i||o()(!1);var c=B(n=n||function(e){var t=Te()(e);return Oe()(ke()(function(){return t}))(e)}(a),M(r));i=i?n.createLocation(i):n.getCurrentLocation(),c.match(i,function(e,r,o){var i=void 0;if(o){var a=ce(n,c,o);i=Ae({},o,{router:a,matchContext:{transitionManager:c,router:a}})}t(e,r&&n.createLocation(r,xe.REPLACE),i)})};Object.assign;var Pe=n(136),Ce=n.n(Pe),Me=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ne(e){var t=void 0;return Me&&(t=function(e){return function(t){return Oe()(ke()(e))(t)}}(e)()),t}Ne(Ce.a);var Ie=n(222);Ne(n.n(Ie).a);n.d(t,"d",function(){return fe}),n.d(t,"b",function(){return ye}),n.d(t,"a",function(){return be}),n.d(t,"c",function(){return we}),n.d(t,"e",function(){return ie}),n.d(t,"f",function(){return je})},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(423),o=n(476),i=n(55),a=n(11),c=n(485);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):c(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){var r=n(126);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(40),o=n(11),i=n(34),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;var r,o=n(35);(r=o)&&r.__esModule;t.addQueryStringValueToPath=function(e,t,n){var r=i(e),o=r.pathname,c=r.search,u=r.hash;return a({pathname:o,search:c+(-1===c.indexOf("?")?"?":"&")+t+"="+n,hash:u})},t.stripQueryStringValueFromPath=function(e,t){var n=i(e),r=n.pathname,o=n.search,c=n.hash;return a({pathname:r,search:o.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),function(e,t,n){return"?"===t?t:n}),hash:c})},t.getQueryStringValueFromPath=function(e,t){var n=i(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return n&&n[1]};var i=t.parsePath=function(e){var t,n,r=null==(n=(t=e).match(/^(https?:)?\/\/[^\/]*/))?t:t.substring(n[0].length),o="",i="",a=r.indexOf("#");-1!==a&&(i=r.substring(a),r=r.substring(0,a));var c=r.indexOf("?");return-1!==c&&(o=r.substring(c),r=r.substring(0,c)),""===r&&(r="/"),{pathname:r,search:o,hash:i}},a=t.createPath=function(e){if(null==e||"string"==typeof e)return e;var t=e.basename,n=e.pathname,r=e.search,o=e.hash,i=(t||"")+n;return r&&"?"!==r&&(i+=r),o&&(i+=o),i}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(67),o=n(421),i=n(422),a="[object Null]",c="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?c:a:u&&u in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";function r(e){if(isNaN(e)||!isFinite(e)||e!==Math.floor(e)||e<=0)throw new Error("expected positive integer, but got: "+e);return new Float64Array(e).fill(1/e)}function o(e,t){if(0===e.length||e.length!==t.length)throw new Error("invalid input");let n=-1/0;return e.forEach((e,r)=>{const o=Math.abs(e-t[r]);n=Math.max(o,n)}),n}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o})},function(e,t,n){(function(t){for(var r=n(494),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",c=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],s=0;!c&&s<i.length;s++)c=o[i[s]+"Request"+a],u=o[i[s]+"Cancel"+a]||o[i[s]+"CancelRequest"+a];if(!c||!u){var l=0,f=0,p=[];c=function(e){if(0===p.length){var t=r(),n=Math.max(0,1e3/60-(t-l));l=n+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return c.call(o,e)},e.exports.cancel=function(){u.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=c,e.cancelAnimationFrame=u}}).call(this,n(43))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(435),o=n(438);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(10),o=n(20),i=n.n(o),a=n(4),c=n(23),u=n(7),s=n.n(u),l=n(2),f=n(3);function p(e){const t=Array.from(e.nodes()).filter(e=>null!=e.timestampMs),n=i()(t,e=>e.timestampMs),o=Array.from(e.edges({showDangling:!1})),c=i()(o,e=>e.timestampMs),u=function(e){const t=Array.from(e.nodes()).map(e=>e.timestampMs).filter(e=>null!=e).map(e=>a.a(e)),n=Array.from(e.edges({showDangling:!1})).map(e=>e.timestampMs);if(0===t.length&&0===n.length)return[];const o=t.concat(n),i=Object(r.e)(o),c=Object(r.d)(o);return function(e,t){if(!isFinite(e)||!isFinite(t))throw new Error("invalid non-finite input");if("number"!=typeof e||"number"!=typeof t)throw new Error("start or end are not numbers");if(e>t)throw new Error("start time after end time");e=f.u.floor(e),t=f.u.ceil(t+1);const n=f.u.range(e,t);n.push(t);const r=[];for(let e=0;e<n.length-1;e++)r.push({startTimeMs:+n[e],endTimeMs:+n[e+1]});return r}(i,c)}(e);let s=0,l=0;return u.map(e=>{const t=[],r=[];for(;s<n.length&&n[s].timestampMs<e.endTimeMs;)t.push(n[s++]);for(;l<c.length&&c[l].timestampMs<e.endTimeMs;)r.push(c[l++]);return{interval:e,nodes:t,edges:r}})}var d=n(62),h=n(73),y=n(27),m=n(57);async function g(e,t,n,o,i){if(o<0||o>1||!isFinite(o))throw new Error("invalid intervalDecay: ".concat(o));if(i<0||i>1||!isFinite(i))throw new Error("invalid alpha: ".concat(i));const c=Object(d.b)(t.nodeTypes,n),u=Object(d.a)(t.edgeTypes,n),l=p(e);if(0===l.length)return[];const f=l.map(e=>e.interval),g=l.map(e=>e.nodes),v=l.map(e=>e.edges);return async function(e,t,n,o,i){const c=[];let u=null;for(const s of t){const t=a.a(n.next().value),l=a.a(o.next().value),f=Object(h.b)(e,t);null==u&&(u=f);const p={chain:l,alpha:i,seed:f,pi0:u},d=await Object(m.a)(p,{verbose:!1,convergenceThreshold:1e-7,maxIterations:255,yieldAfterMs:30}),y=Object(r.h)(t.values());c.push({interval:s,intervalWeight:y,distribution:d.pi}),u=d.pi}return c}(Array.from(e.nodes()).map(e=>e.address),f,function*(e,t,n){let r=new Map;for(const o of e){const e=new Map;for(const[t,o]of r.entries())e.set(t,o*n);for(const r of o){const{address:o}=r,i=t(o)*(1-n);e.set(o,i)}yield e,r=e}}(g,c,o),function*(e,t,n,r){const o=new Map;for(const i of t){for(const[e,{forwards:t,backwards:n}]of o.entries())o.set(e,{forwards:t*r,backwards:n*r});for(const e of i){const{address:t}=e;o.set(t,n(t))}const t=s()({forwards:0,backwards:0}),c=e=>a.c(o.get(e.address),t),u=Object(y.c)(Object(y.b)(e,c,.001)).chain;yield u}}(e,v,u,o),i)}var v=n(25),b=n(16);function w(e){return{intervals:e.intervals,addressToCred:Object(b.e)(e.addressToCred)}}function x(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 _});class _{constructor(e,t,n,r){x(this,"_graph",void 0),x(this,"_cred",void 0),x(this,"_params",void 0),x(this,"_config",void 0),this._graph=e,this._cred=t,this._params=n,this._config=r}graph(){return this._graph}params(){return this._params}config(){return this._config}async reanalyze(e){return await _.compute(this._graph,e,this._config)}intervals(){return this._cred.intervals}credNode(e){const t=this._cred.addressToCred.get(e);if(void 0!==t)return{cred:t,total:Object(r.h)(t),node:a.a(this._graph.node(e))}}credSortedNodes(e){const t=Array.from(this._cred.addressToCred.keys()).filter(t=>l.c.hasPrefix(t,e)).map(e=>this.credNode(e));return i()(t,e=>-e.total)}toJSON(){const e={graphJSON:this._graph.toJSON(),credJSON:w(this._cred),paramsJSON:(t=this._params,{alpha:t.alpha,intervalDecay:t.intervalDecay,weights:Object(v.d)(t.weights)})};var t;return Object(c.b)(O,e)}static fromJSON(e,t){const n=Object(c.a)(O,e),{graphJSON:r,credJSON:o,paramsJSON:i}=n,a=l.b.fromJSON(r),u=function(e){return{intervals:e.intervals,addressToCred:Object(b.a)(e.addressToCred)}}(o),s={alpha:(f=i).alpha,intervalDecay:f.intervalDecay,weights:Object(v.c)(f.weights)};var f;return new _(a,u,s,t)}static async compute(e,t,n){const o=await async function(e,t,n){const o=Array.from(e.nodes()).map(e=>e.address);return function(e,t,n){const r=e.map(e=>e.interval),o=new Map;function i(e){for(const t of n)if(l.c.hasPrefix(e,t))return!0;return!1}for(let n=0;n<t.length;n++){const r=t[n];if(i(r)){const t=e.map(e=>{let{cred:t}=e;return t[n]});o.set(r,t)}}return{intervals:r,addressToCred:o}}(function(e,t,n){if(0===e.length)return[];const o=e.map(e=>e.interval),i=[],a=new Array(t.length);for(let e=0;e<t.length;e++)l.c.hasPrefix(t[e],n)&&i.push(e),a[e]=new Array(o.length);if(0===i.length)throw new Error("no nodes matched scoringNodePrefix");return e.map(e=>{let{interval:t,distribution:n,intervalWeight:o}=e;const a=o/Object(r.h)(i.map(e=>n[e]));return{interval:t,cred:n.map(e=>e*a)}})}(await g(e,n.types,t.weights,t.intervalDecay,t.alpha),o,n.scoreNodePrefix),o,n.filterNodePrefixes)}(e,t,n);return new _(e,o,t,n)}}const O={type:"sourcecred/timelineCred",version:"0.1.0"}},function(e,t,n){"use strict";var r=n(7),o=n.n(r);t.a=o()({brand:{medium:"#0872A2",dark:"#3A066A"},accent:{medium:"#FF3201"}})},function(e,t,n){"use strict";function r(e){if(function(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+String(e))}(e),0===e.length)return".";const t=e.charCodeAt(0)===i,n=e.charCodeAt(e.length-1)===i;return 0!==(e=function(e,t,n,r){let a,c="",u=0,s=-1,l=0;for(let f=0;f<=e.length;++f){if(f<e.length)a=e.charCodeAt(f);else{if(r(a))return c;a=i}if(r(a)){if(s===f-1||1===l);else if(s!==f-1&&2===l){if(c.length<2||2!==u||c.charCodeAt(c.length-1)!==o||c.charCodeAt(c.length-2)!==o){if(c.length>2){const r=c.lastIndexOf(n);if(r!==c.length-1){-1===r?(c="",u=0):(c=c.slice(0,r),u=c.length-1-c.lastIndexOf(n)),s=f,l=0;continue}throw new Error("normalize: invariant violation: "+JSON.stringify({path:e,allowAboveRoot:t,separator:n}))}if(2===c.length||1===c.length){c="",u=0,s=f,l=0;continue}}t&&(c.length>0?c+="".concat(n,".."):c="..",u=2)}else c.length>0?c+=n+e.slice(s+1,f):c=e.slice(s+1,f),u=f-s-1;s=f,l=0}else a===o&&-1!==l?++l:l=-1}return c}(e,!t,"/",a)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e}n.d(t,"a",function(){return r});const o=46,i=47;function a(e){return e===i}},function(e,t,n){"use strict";t.__esModule=!0,t.locationsAreEqual=t.statesAreEqual=t.createLocation=t.createQuery=void 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},o=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},i=u(n(14)),a=(u(n(35)),n(38)),c=n(69);function u(e){return e&&e.__esModule?e:{default:e}}t.createQuery=function(e){return o(Object.create(null),e)},t.createLocation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.POP,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="string"==typeof e?(0,a.parsePath)(e):e,o=r.pathname||"/",i=r.search||"",u=r.hash||"",s=r.state;return{pathname:o,search:i,hash:u,state:s,action:t,key:n}};var s=function(e){return"[object Date]"===Object.prototype.toString.call(e)},l=t.statesAreEqual=function e(t,n){if(t===n)return!0;var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("function"===o&&(0,i.default)(!1),"object"===o){if(s(t)&&s(n)&&(0,i.default)(!1),!Array.isArray(t)){var a=Object.keys(t),c=Object.keys(n);return a.length===c.length&&a.every(function(r){return e(t[r],n[r])})}return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&l(e.state,t.state)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&r.test(e)};var r=/-webkit-|-moz-|-ms-/;e.exports=t.default},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(39)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(5),o=n(132);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(40),o=n(34),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";function r(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 o=n(31),i=n(292),a=n(305),c=n(0),u=n(361),s=n(363),l=n(364),f=n(365),p=n(366),d=n(367),h=n(368),y=n(369),m=n(370),g=Object.keys(y),v=function(e){var t=e.source||e.children||"",n=e.parserOptions;if(e.allowedTypes&&e.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var r=o(y,e.renderers),c=[[a,n]].concat(e.plugins||[]).reduce(b,i()).parse(t),h=o(e,{renderers:r,definitions:d(c)}),v=function(e){var t=[p,u()],n=e.disallowedTypes;e.allowedTypes&&(n=g.filter(function(t){return"root"!==t&&-1===e.allowedTypes.indexOf(t)}));var r=e.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&t.push(l.ofType(n,r));e.allowNode&&t.push(l.ifNotMatch(e.allowNode,r));var o=!e.escapeHtml&&!e.skipHtml,i=(e.astPlugins||[]).some(function(e){return(Array.isArray(e)?e[0]:e).identity===m.HtmlParser});o&&!i&&t.push(s);return e.astPlugins?t.concat(e.astPlugins):t}(e).reduce(function(e,t){return t(e,h)},c);return f(v,h)};function b(e,t){return Array.isArray(t)?e.use.apply(e,r(t)):e.use(t)}v.defaultProps={renderers:{},escapeHtml:!0,skipHtml:!1,sourcePos:!1,rawSourcePos:!1,transformLinkUri:h,astPlugins:[],plugins:[],parserOptions:{}},v.propTypes={className:c.string,source:c.string,children:c.string,sourcePos:c.bool,rawSourcePos:c.bool,escapeHtml:c.bool,skipHtml:c.bool,allowNode:c.func,allowedTypes:c.arrayOf(c.oneOf(g)),disallowedTypes:c.arrayOf(c.oneOf(g)),transformLinkUri:c.oneOfType([c.func,c.bool]),linkTarget:c.oneOfType([c.func,c.string]),transformImageUri:c.func,astPlugins:c.arrayOf(c.func),unwrapDisallowed:c.bool,renderers:c.object,plugins:c.array,parserOptions:c.object},v.types=g,v.renderers=y,v.uriTransformer=h,e.exports=v},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(41);function o(e,t,n,r,o){e.forEach((e,i)=>{let{neighbor:a,weight:c}=e;const u=a.length;let s=n*t[i];for(let e=0;e<u;e++){const t=a[e];s+=(1-n)*r[t]*c[e]}o[i]=s})}function i(e,t){let n=function*(e,t){const{chain:n,pi0:i,seed:a,alpha:c}=e;let u=new Float64Array(i),s=new Float64Array(u.length),l=0;for(;;){if(l>=t.maxIterations){return t.verbose&&console.log("[".concat(l,"] FAILED to converge")),o(n,a,c,u,s),{pi:u,convergenceDelta:Object(r.a)(u,s)}}l++,o(n,a,c,u,s);const e=Object(r.a)(u,s);if(t.verbose&&console.log("[".concat(l,"] delta = ").concat(e)),e<t.convergenceThreshold)return t.verbose&&console.log("[".concat(l,"] CONVERGED")),{pi:u,convergenceDelta:e};[s,u]=[u,s],yield}throw new Error("Unreachable.")}(e,{verbose:t.verbose,convergenceThreshold:t.convergenceThreshold,maxIterations:t.maxIterations});return new Promise((e,r)=>{const{yieldAfterMs:o}=t,i=()=>{const t=Date.now();do{const t=n.next();if(t.done){if(null==t.value)throw new Error(String(t.value));return void e(t.value)}}while(Date.now()-t<o);setTimeout(i,0)};i()})}},function(e,t,n){var r=n(199);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(40),o=n(34),i="[object Number]";e.exports=function(e){return"number"==typeof e||o(e)&&r(e)==i}},function(e,t,n){var r=n(211),o=n(517),i=n(204),a=n(93),c=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=c},function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return s});var r=n(2),o=n(4);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a=Symbol("EMPTY");class c{constructor(e){i(this,"addressModule",void 0),i(this,"entry",void 0),this.addressModule=e,this.entry={value:a,map:new Map}}add(e,t){const n=this.addressModule.toParts(e);let r=this.entry;for(const e of n)r.map.has(e)||r.map.set(e,{map:new Map,value:a}),r=o.a(r.map.get(e));if(r.value!==a)throw new Error("Tried to overwrite entry at ".concat(this.addressModule.toString(e)));return r.value=t,this}get(e){const t=this.addressModule.toParts(e),n=[];let r=this.entry;for(const e of t){if(r.value!==a){const e=r.value;n.push(e)}const t=r.map.get(e);if(null==t)return n;r=t}if(r.value!==a){const e=r.value;n.push(e)}return n}getLast(e){const t=this.get(e);return t[t.length-1]}}class u extends c{constructor(){super(r.c)}}class s extends c{constructor(){super(r.a)}}},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var r=n(4),o=n(61);function i(e,t){const{nodeTypeWeights:n,nodeManualWeights:i}=t,a=new o.b;for(const t of e){const{prefix:e,defaultWeight:o}=t,i=r.c(n.get(e),o);a.add(e,i)}return function(e){return r.c(a.getLast(e),1)*r.c(i.get(e),1)}}function a(e,t){const n=t.edgeTypeWeights,i=new o.a;for(const t of e){const{prefix:e,defaultWeight:o}=t,a=r.c(n.get(e),o);i.add(e,a)}return function(e){return r.c(i.getLast(e),{forwards:1,backwards:1})}}},function(e,t,n){var r=n(33),o=n(488);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t,n){var r=n(539)();e.exports=r},function(e,t,n){"use strict";
  /*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==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(e){return!1}}()?Object.assign:function(e,t){for(var n,c,u=a(e),s=1;s<arguments.length;s++){for(var l in n=Object(arguments[s]))o.call(n,l)&&(u[l]=n[l]);if(r){c=r(n);for(var f=0;f<c.length;f++)i.call(n,c[f])&&(u[c[f]]=n[c[f]])}}return u}},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(28).Symbol;e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(21),o=n.n(r),i=n(1),a=n.n(i),c=n(96),u=n(12),s=n(75),l=n(25);class f extends a.a.Component{render(){const e=o()(Object(l.d)(this.props.weights));return a.a.createElement("div",null,a.a.createElement(u.a,{download:"weights.json",title:"Download your weights.json",href:"data:text/json,".concat(e),style:{color:"black"}},a.a.createElement(s.a,{style:{margin:"2px"}})),a.a.createElement(c.a,{title:"Upload weights.json",onUpload:e=>this.props.onWeightsChange(Object(l.c)(e))},a.a.createElement(s.b,{style:{margin:"2px"}})))}}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(4),a=n(29);class c extends o.a.Component{render(){return o.a.createElement(a.c,{name:this.props.type.name,weight:this.props.weight,description:this.props.type.description,onChange:e=>this.props.onChange(e)})}}class u extends o.a.Component{render(){const{weight:e,type:t}=this.props,{forwards:n,backwards:r}=e,{forwardName:i,backwardName:a,description:c}=t;return o.a.createElement("div",null,o.a.createElement(l,{name:a,weight:n,description:c,onChange:e=>{this.props.onChange({forwards:e,backwards:r})}}),o.a.createElement(l,{name:i,weight:r,description:c,onChange:e=>{this.props.onChange({forwards:n,backwards:e})}}))}}function s(e){return o.a.createElement("span",{style:{fontWeight:700,fontStyle:"italic",marginRight:"0.15em"}},e)}class l extends o.a.Component{render(){const e=o.a.createElement(o.a.Fragment,null,s("α")," ",this.props.name," ",s("β"));return o.a.createElement(a.c,{name:e,weight:this.props.weight,description:this.props.description,onChange:this.props.onChange})}}n.d(t,"a",function(){return f});class f extends o.a.Component{_nodeConfig(e){const{prefix:t,defaultWeight:n}=e,{onNodeWeightChange:r,nodeTypeWeights:a}=this.props,u=i.c(a.get(t),n);return o.a.createElement(c,{key:t,type:e,weight:u,onChange:e=>r(t,e)})}_edgeConfig(e){const{prefix:t,defaultWeight:n}=e,{onEdgeWeightChange:r,edgeTypeWeights:a}=this.props,c=i.c(a.get(t),n);return o.a.createElement(u,{key:t,type:e,weight:c,onChange:e=>r(t,e)})}_renderPlugin(e){const{name:t,nodeTypes:n,edgeTypes:r}=e,i=n.map(e=>this._nodeConfig(e)),a=r.map(e=>this._edgeConfig(e));return o.a.createElement("div",{key:t},o.a.createElement("h3",null,t),o.a.createElement("h4",{style:{marginBottom:"0.3em"}},"Node weights"),i,o.a.createElement("h4",{style:{marginBottom:"0.3em"}},"Edge weights"),o.a.createElement("p",{style:{marginBottom:"0.6em",marginTop:"0.6em"}},"Flow cred from ",s("β")," to ",s("α")," when:"),a)}render(){return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"}},this.props.declarations.map(e=>this._renderPlugin(e))))}}},function(e,t,n){function r(e,t){return{path:"/test/"+e+"/",contents:{type:"PAGE",component:t},title:"Inspection test for: "+e,navTitle:null}}function o(e,t){return e.filter(e=>{const n=e.path,r=t.substring(0,n.length),o=t.substring(n.length);return r===n&&(0===o.length||"/"===o)})[0]||null}t.makeRouteData=function(e){return[{path:"/",contents:{type:"PAGE",component:()=>n(287).default},title:"SourceCred",navTitle:"Home"},{path:"/prototype/",contents:{type:"PAGE",component:()=>n(288).default(e)},title:"SourceCred prototype",navTitle:"Prototype"},...e.map(e=>({path:"/prototype/".concat(e,"/"),contents:{type:"PAGE",component:()=>n(550).default(e)},title:"".concat(e," • SourceCred"),navTitle:null})),...e.map(e=>({path:"/timeline/".concat(e,"/"),contents:{type:"PAGE",component:()=>n(551).default(e)},title:"".concat(e," • Timeline"),navTitle:null})),{path:"/discord-invite/",contents:{type:"EXTERNAL_REDIRECT",redirectTo:"https://discord.gg/tsBTgc9"},title:"SourceCred Discord invite",navTitle:null},r("FileUploader",()=>n(548).default),r("TimelineCredView",()=>n(549).default)]},t.resolveRouteFromPath=o,t.resolveTitleFromPath=function(e,t){const n=o(e,t);return n?n.title:"SourceCred"}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=n(2),o=n(41);function i(e,t){const n=new Map;return e.forEach((e,r)=>{const o=t[r];n.set(e,o)}),n}function a(e,t){let n=0;for(const[e,o]of t.entries()){if(o<0||!isFinite(o))throw new Error("Invalid weight ".concat(o," associated with address ").concat(r.c.toString(e)));n+=o}if(0===n)return Object(o.b)(e.length);let i=0;const a=new Float64Array(e.length);for(let r=0;r<a.length;r++){const o=t.get(e[r]);null!=o&&(i++,a[r]=o/n)}if(i!==t.size)throw new Error("weights included nodes not present in the nodeOrder");return a}},function(e,t,n){var r=n(59);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){"use strict";var r=n(1),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};function u(e){return function(t){return r.createElement(s,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,a({key:n},t.attr),e(t.child))})}(e.child))}}function s(e){var t=function(t){var n,o=e.size||t.size||"1em";t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className);var i=e.attr,u=e.title,s=c(e,["attr","title"]);return r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:n,style:a({color:e.color||t.color},t.style,e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==i?r.createElement(i.Consumer,null,function(e){return t(e)}):t(o)}n.d(t,"a",function(){return l}),n.d(t,"b",function(){return f});var l=function(e){return u({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(e)};l.displayName="MdFileDownload";var f=function(e){return u({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}}]})(e)};f.displayName="MdFileUpload"},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(22),a=n.n(i),c=n(25),u=n(45),s=n(100),l=n(12),f=n(71),p=n(70);class d extends o.a.Component{constructor(e){super(e);const t=e.initialTimelineCred,{defaultNodeType:n}=e,{alpha:r,intervalDecay:o,weights:i}=t.params(),a=n.prefix;this.state={timelineCred:t,alpha:r,intervalDecay:o,weights:Object(c.a)(i),loading:!1,showWeightConfig:!1,selectedNodeTypePrefix:a}}params(){const{alpha:e,intervalDecay:t,weights:n}=this.state;return{alpha:e,intervalDecay:t,weights:Object(c.a)(n)}}async analyzeCred(){this.setState({loading:!0});const e=await this.state.timelineCred.reanalyze(this.params());this.setState({timelineCred:e,loading:!1})}renderConfigurationRow(){const{showWeightConfig:e}=this.state,t=o.a.createElement(p.a,{weights:this.state.weights,onWeightsChange:e=>{this.setState({weights:e})}}),n=o.a.createElement(f.a,{declarations:this.props.declarations,nodeTypeWeights:this.state.weights.nodeTypeWeights,edgeTypeWeights:this.state.weights.edgeTypeWeights,onNodeWeightChange:(e,t)=>{this.setState(n=>{let{weights:r}=n;return r.nodeTypeWeights.set(e,t),{weights:r}})},onEdgeWeightChange:(e,t)=>{this.setState(n=>{let{weights:r}=n;return r.edgeTypeWeights.set(e,t),{weights:r}})}}),r=a()(this.params(),this.state.timelineCred.params()),i=o.a.createElement("button",{disabled:this.state.loading||r,onClick:()=>this.analyzeCred()},"re-compute cred");return o.a.createElement("div",null,o.a.createElement("div",{style:{marginTop:30,display:"flex"}},o.a.createElement("span",{style:{paddingLeft:30}},"cred for ",this.props.projectId,o.a.createElement(l.a,{to:"/prototype/".concat(this.props.projectId,"/")},"(legacy)")),o.a.createElement("span",{style:{flexGrow:1}}),this.renderFilterSelect(),o.a.createElement("span",{style:{flexGrow:1}}),o.a.createElement("button",{onClick:()=>{this.setState(e=>{let{showWeightConfig:t}=e;return{showWeightConfig:!t}})}},e?"Hide weight configuration":"Show weight configuration"),i),e&&o.a.createElement("div",{style:{marginTop:10}},o.a.createElement("span",null,"Upload/Download weights:"),t,n))}renderFilterSelect(){return o.a.createElement("label",null,o.a.createElement("span",{style:{marginLeft:"5px"}},"Showing: "),o.a.createElement("select",{value:this.state.selectedNodeTypePrefix,onChange:e=>this.setState({selectedNodeTypePrefix:e.target.value})},this.props.filterableNodeTypes.map(e=>{let{prefix:t,pluralName:n}=e;return o.a.createElement("option",{key:t,value:t},n)})))}render(){const e=o.a.createElement(s.a,{timelineCred:this.state.timelineCred,selectedNodeFilter:this.state.selectedNodeTypePrefix});return o.a.createElement("div",{style:{width:900,margin:"0 auto"}},this.renderConfigurationRow(),e)}}var h=n(18),y=n(99),m=n(232),g=n.n(m);n(23);n.d(t,"a",function(){return v}),n.d(t,"b",function(){return b});class v extends o.a.Component{constructor(){var e,t,n;super(...arguments),n={loadResult:{type:"LOADING"}},(t="state")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}componentDidMount(){this.load()}async load(){const e=await this.props.loader(this.props.assets,this.props.projectId);this.setState({loadResult:e})}render(){const{loadResult:e}=this.state;switch(e.type){case"LOADING":return o.a.createElement("div",{style:{width:900,margin:"0 auto"}},o.a.createElement("h1",null,"Loading..."));case"ERROR":{const{error:t}=e;return o.a.createElement("div",{style:{width:900,margin:"0 auto"}},o.a.createElement("h1",null,"Load Error:"),o.a.createElement("p",null,t.status,":",t.statusText))}case"SUCCESS":{const{timelineCred:t}=e;return o.a.createElement(d,{initialTimelineCred:t,projectId:this.props.projectId,declarations:[h.a],defaultNodeType:h.c,filterableNodeTypes:[h.c,h.b]})}default:throw new Error("Unexpected load state: ".concat(e.type))}}}async function b(e,t){try{return{type:"SUCCESS",timelineCred:await async function(){const n=(r=t,g.a.encode(r));var r;const o=e.resolve("api/v1/data/projects/".concat(n,"/cred.json")),i=await fetch(o);return i.ok?u.a.fromJSON(await i.json(),y.a):Promise.reject(i)}()}}catch(e){return console.error(e),{type:"ERROR",error:e}}}},function(e,t,n){var r=n(213),o=n(521),i=n(55);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){var r=n(213),o=n(522),i=n(55);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.supportsHistory=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)},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.supportsPopstateOnHashchange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},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";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},function(e,t,n){"use strict";e.exports=c;var r=n(324),o=r.CONTINUE,i=r.SKIP,a=r.EXIT;function c(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),r(e,t,function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)},o)}c.CONTINUE=o,c.SKIP=i,c.EXIT=a},function(e,t,n){var r=n(51);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(425),o=n(426),i=n(427),a=n(428),c=n(429);function u(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])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(123);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(44)(Object,"create");e.exports=r},function(e,t,n){var r=n(447);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(462),o=n(468),i=n(53);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(54),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){var r=n(206),o=n(508)(r);e.exports=o},function(e,t,n){var r=n(123),o=n(53),i=n(131),a=n(19);e.exports=function(e,t,n){if(!a(n))return!1;var c=typeof t;return!!("number"==c?o(n)&&i(t,n.length):"string"==c&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=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},i=n(276),a=n(106),c=(r=a)&&r.__esModule?r:{default:r},u=n(48),s=n(38);var l=function(e){return(0,i.stringify)(e).replace(/%20/g,"+")},f=i.parse;t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.stringifyQuery,i=t.parseQueryString;"function"!=typeof r&&(r=l),"function"!=typeof i&&(i=f);var a=function(e){return e?(null==e.query&&(e.query=i(e.search.substring(1))),e):e},p=function(e,t){if(null==t)return e;var n="string"==typeof e?(0,s.parsePath)(e):e,i=r(t);return o({},n,{search:i?"?"+i:""})},d=function(){return a(n.getCurrentLocation())},h=function(e){return n.listenBefore(function(t,n){return(0,c.default)(e,a(t),n)})},y=function(e){return n.listen(function(t){return e(a(t))})},m=function(e){return n.push(p(e,e.query))},g=function(e){return n.replace(p(e,e.query))},v=function(e){return n.createPath(p(e,e.query))},b=function(e){return n.createHref(p(e,e.query))},w=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=n.createLocation.apply(n,[p(e,e.query)].concat(r));return e.query&&(i.query=(0,u.createQuery)(e.query)),a(i)};return o({},n,{getCurrentLocation:d,listenBefore:h,listen:y,push:m,replace:g,createPath:v,createHref:b,createLocation:w})}}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=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},i=n(106),a=(r=i)&&r.__esModule?r:{default:r},c=n(38);t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.basename,i=function(e){return e?(r&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(r.toLowerCase())?(e.pathname=e.pathname.substring(r.length),e.basename=r,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},u=function(e){if(!r)return e;var t="string"==typeof e?(0,c.parsePath)(e):e,n=t.pathname,i="/"===r.slice(-1)?r:r+"/",a="/"===n.charAt(0)?n.slice(1):n;return o({},t,{pathname:i+a})},s=function(){return i(n.getCurrentLocation())},l=function(e){return n.listenBefore(function(t,n){return(0,a.default)(e,i(t),n)})},f=function(e){return n.listen(function(t){return e(i(t))})},p=function(e){return n.push(u(e))},d=function(e){return n.replace(u(e))},h=function(e){return n.createPath(u(e))},y=function(e){return n.createHref(u(e))},m=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return i(n.createLocation.apply(n,[u(e)].concat(r)))};return o({},n,{getCurrentLocation:s,listenBefore:l,listen:f,push:p,replace:d,createPath:h,createHref:y,createLocation:m})}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(1),o=n.n(r);class i extends o.a.Component{render(){return o.a.createElement("label",{title:this.props.title},this.props.children,o.a.createElement("input",{type:"file",accept:".json",style:{position:"absolute !important",height:"1px",width:"1px",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)"},onChange:e=>{const t=e.target.files[0],n=new FileReader;n.onload=()=>{const e=n.result;if("string"!=typeof e)throw new Error("Unexpected: jsonString is not string");const t=JSON.parse(e);this.props.onUpload(t)},n.readAsText(t)}}))}}},function(e,t,n){"use strict";var r=c(n(509)),o=c(n(514)),i=c(n(210)),a=c(n(207));function c(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},function(e,t,n){var r=n(527),o=n(528),i=n(33),a=n(11),c=n(93);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&c(e,t,n)&&(t=void 0),u(e,i(t,3))}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(7),o=n.n(r),i=n(18);const a=o()({scoreNodePrefix:i.c.prefix,filterNodePrefixes:[i.c.prefix,i.b.prefix],types:{nodeTypes:i.a.nodeTypes.slice(),edgeTypes:i.a.edgeTypes.slice()}})},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"scaleBand",function(){return gs}),n.d(r,"scalePoint",function(){return vs}),n.d(r,"scaleIdentity",function(){return Ns}),n.d(r,"scaleLinear",function(){return Ms}),n.d(r,"scaleLog",function(){return Ws}),n.d(r,"scaleSymlog",function(){return Vs}),n.d(r,"scaleOrdinal",function(){return ms}),n.d(r,"scaleImplicit",function(){return ys}),n.d(r,"scalePow",function(){return Qs}),n.d(r,"scaleSqrt",function(){return Js}),n.d(r,"scaleQuantile",function(){return Zs}),n.d(r,"scaleQuantize",function(){return el}),n.d(r,"scaleThreshold",function(){return tl}),n.d(r,"scaleTime",function(){return pl}),n.d(r,"scaleUtc",function(){return dl}),n.d(r,"scaleSequential",function(){return ml}),n.d(r,"scaleSequentialLog",function(){return gl}),n.d(r,"scaleSequentialPow",function(){return bl}),n.d(r,"scaleSequentialSqrt",function(){return wl}),n.d(r,"scaleSequentialSymlog",function(){return vl}),n.d(r,"scaleSequentialQuantile",function(){return xl}),n.d(r,"scaleDiverging",function(){return Ol}),n.d(r,"scaleDivergingLog",function(){return El}),n.d(r,"scaleDivergingPow",function(){return Sl}),n.d(r,"scaleDivergingSqrt",function(){return Tl}),n.d(r,"scaleDivergingSymlog",function(){return kl}),n.d(r,"tickFormat",function(){return Ps});var o=n(1),i=n.n(o),a=n(56),c=n.n(a),u=n(10),s=n(223),l=n.n(s),f=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n},p=f("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),d=(f("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),f("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),f("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),f("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),f("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),f("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),f("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),f("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),function(e,t,n){e.prototype=t.prototype=n,n.constructor=e});function h(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function y(){}var m="\\s*([+-]?\\d+)\\s*",g="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",v="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",b=/^#([0-9a-f]{3})$/,w=/^#([0-9a-f]{6})$/,x=new RegExp("^rgb\\("+[m,m,m]+"\\)$"),_=new RegExp("^rgb\\("+[v,v,v]+"\\)$"),O=new RegExp("^rgba\\("+[m,m,m,g]+"\\)$"),E=new RegExp("^rgba\\("+[v,v,v,g]+"\\)$"),k=new RegExp("^hsl\\("+[g,v,v]+"\\)$"),S=new RegExp("^hsla\\("+[g,v,v,g]+"\\)$"),T={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function A(e){var t;return e=(e+"").trim().toLowerCase(),(t=b.exec(e))?new N((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=w.exec(e))?j(parseInt(t[1],16)):(t=x.exec(e))?new N(t[1],t[2],t[3],1):(t=_.exec(e))?new N(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=O.exec(e))?P(t[1],t[2],t[3],t[4]):(t=E.exec(e))?P(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=k.exec(e))?R(t[1],t[2]/100,t[3]/100,1):(t=S.exec(e))?R(t[1],t[2]/100,t[3]/100,t[4]):T.hasOwnProperty(e)?j(T[e]):"transparent"===e?new N(NaN,NaN,NaN,0):null}function j(e){return new N(e>>16&255,e>>8&255,255&e,1)}function P(e,t,n,r){return r<=0&&(e=t=n=NaN),new N(e,t,n,r)}function C(e){return e instanceof y||(e=A(e)),e?new N((e=e.rgb()).r,e.g,e.b,e.opacity):new N}function M(e,t,n,r){return 1===arguments.length?C(e):new N(e,t,n,null==r?1:r)}function N(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function I(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function R(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new L(e,t,n,r)}function D(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof L)return new L(e.h,e.s,e.l,e.opacity);if(e instanceof y||(e=A(e)),!e)return new L;if(e instanceof L)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,c=i-o,u=(i+o)/2;return c?(a=t===i?(n-r)/c+6*(n<r):n===i?(r-t)/c+2:(t-n)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new L(a,c,u,e.opacity)}(e):new L(e,t,n,null==r?1:r)}function L(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function F(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}d(y,A,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),d(N,M,h(y,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+I(this.r)+I(this.g)+I(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),d(L,D,h(y,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new L(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new L(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new N(F(e>=240?e-240:e+120,o,r),F(e,o,r),F(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var U=Math.PI/180,B=180/Math.PI,z=.96422,W=1,H=.82521,G=4/29,q=6/29,V=3*q*q,Y=q*q*q;function $(e){if(e instanceof K)return new K(e.l,e.a,e.b,e.opacity);if(e instanceof re){if(isNaN(e.h))return new K(e.l,0,0,e.opacity);var t=e.h*U;return new K(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof N||(e=C(e));var n,r,o=ee(e.r),i=ee(e.g),a=ee(e.b),c=Q((.2225045*o+.7168786*i+.0606169*a)/W);return o===i&&i===a?n=r=c:(n=Q((.4360747*o+.3850649*i+.1430804*a)/z),r=Q((.0139322*o+.0971045*i+.7141733*a)/H)),new K(116*c-16,500*(n-c),200*(c-r),e.opacity)}function X(e,t,n,r){return 1===arguments.length?$(e):new K(e,t,n,null==r?1:r)}function K(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Q(e){return e>Y?Math.pow(e,1/3):e/V+G}function J(e){return e>q?e*e*e:V*(e-G)}function Z(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ee(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function te(e){if(e instanceof re)return new re(e.h,e.c,e.l,e.opacity);if(e instanceof K||(e=$(e)),0===e.a&&0===e.b)return new re(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*B;return new re(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ne(e,t,n,r){return 1===arguments.length?te(e):new re(e,t,n,null==r?1:r)}function re(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}d(K,X,h(y,{brighter:function(e){return new K(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new K(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new N(Z(3.1338561*(t=z*J(t))-1.6168667*(e=W*J(e))-.4906146*(n=H*J(n))),Z(-.9787684*t+1.9161415*e+.033454*n),Z(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),d(re,ne,h(y,{brighter:function(e){return new re(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new re(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return $(this).rgb()}}));var oe=-.14861,ie=1.78277,ae=-.29227,ce=-.90649,ue=1.97294,se=ue*ce,le=ue*ie,fe=ie*ae-ce*oe;function pe(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof de)return new de(e.h,e.s,e.l,e.opacity);e instanceof N||(e=C(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(fe*r+se*t-le*n)/(fe+se-le),i=r-o,a=(ue*(n-o)-ae*i)/ce,c=Math.sqrt(a*a+i*i)/(ue*o*(1-o)),u=c?Math.atan2(a,i)*B-120:NaN;return new de(u<0?u+360:u,c,o,e.opacity)}(e):new de(e,t,n,null==r?1:r)}function de(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function he(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}d(de,pe,h(y,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new de(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new de(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*U,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new N(255*(t+n*(oe*r+ie*o)),255*(t+n*(ae*r+ce*o)),255*(t+n*(ue*r)),this.opacity)}}));var ye=function(e){return function(){return e}};function me(e,t){return function(n){return e+n*t}}function ge(e,t){var n=t-e;return n?me(e,n>180||n<-180?n-360*Math.round(n/360):n):ye(isNaN(e)?t:e)}function ve(e){return 1==(e=+e)?be:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ye(isNaN(t)?n:t)}}function be(e,t){var n=t-e;return n?me(e,n):ye(isNaN(e)?t:e)}var we=function e(t){var n=ve(t);function r(e,t){var r=n((e=M(e)).r,(t=M(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=be(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function xe(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),c=new Array(o);for(n=0;n<o;++n)r=M(t[n]),i[n]=r.r||0,a[n]=r.g||0,c[n]=r.b||0;return i=e(i),a=e(a),c=e(c),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=c(e),r+""}}}var _e=xe(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,c=r<t-1?e[r+2]:2*i-o;return he((n-r/t)*t,a,o,i,c)}}),Oe=(xe(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],c=e[(r+2)%t];return he((n-r/t)*t,o,i,a,c)}}),function(e,t){return t-=e=+e,function(n){return e+t*n}}),Ee=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ke=new RegExp(Ee.source,"g");var Se,Te,Ae,je,Pe=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?ye(t):("number"===r?Oe:"string"===r?(n=A(t))?(t=n,we):function(e,t){var n,r,o,i=Ee.lastIndex=ke.lastIndex=0,a=-1,c=[],u=[];for(e+="",t+="";(n=Ee.exec(e))&&(r=ke.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:Oe(n,r)})),i=ke.lastIndex;return i<t.length&&(o=t.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)c[(n=u[r]).i]=n.x(e);return c.join("")})}:t instanceof A?we:t instanceof Date?function(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}:Array.isArray(t)?function(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Pe(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Pe(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}:Oe)(e,t)},Ce=function(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}},Me=180/Math.PI,Ne={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Ie=function(e,t,n,r,o,i){var a,c,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(c=Math.sqrt(n*n+r*r))&&(n/=c,r/=c,u/=c),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*Me,skewX:Math.atan(u)*Me,scaleX:a,scaleY:c}};function Re(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(i,a){var c=[],u=[];return i=e(i),a=e(a),function(e,r,o,i,a,c){if(e!==o||r!==i){var u=a.push("translate(",null,t,null,n);c.push({i:u-4,x:Oe(e,o)},{i:u-2,x:Oe(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,c,u),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Oe(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,c,u),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Oe(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,c,u),function(e,t,n,r,i,a){if(e!==n||t!==r){var c=i.push(o(i)+"scale(",null,",",null,")");a.push({i:c-4,x:Oe(e,n)},{i:c-2,x:Oe(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,c,u),i=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)c[(t=u[n]).i]=t.x(e);return c.join("")}}}Re(function(e){return"none"===e?Ne:(Se||(Se=document.createElement("DIV"),Te=document.documentElement,Ae=document.defaultView),Se.style.transform=e,e=Ae.getComputedStyle(Te.appendChild(Se),null).getPropertyValue("transform"),Te.removeChild(Se),e=e.slice(7,-1).split(","),Ie(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),Re(function(e){return null==e?Ne:(je||(je=document.createElementNS("http://www.w3.org/2000/svg","g")),je.setAttribute("transform",e),(e=je.transform.baseVal.consolidate())?(e=e.matrix,Ie(e.a,e.b,e.c,e.d,e.e,e.f)):Ne)},", ",")",")"),Math.SQRT2;function De(e){return function(t,n){var r=e((t=D(t)).h,(n=D(n)).h),o=be(t.s,n.s),i=be(t.l,n.l),a=be(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=o(e),t.l=i(e),t.opacity=a(e),t+""}}}De(ge),De(be);function Le(e){return function(t,n){var r=e((t=ne(t)).h,(n=ne(n)).h),o=be(t.c,n.c),i=be(t.l,n.l),a=be(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=o(e),t.l=i(e),t.opacity=a(e),t+""}}}Le(ge),Le(be);function Fe(e){return function t(n){function r(t,r){var o=e((t=pe(t)).h,(r=pe(r)).h),i=be(t.s,r.s),a=be(t.l,r.l),c=be(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=c(e),t+""}}return n=+n,r.gamma=t,r}(1)}Fe(ge);var Ue=Fe(be);var Be=function(e){return _e(e[e.length-1])};Be(new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(f)),Be(new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(f)),Be(new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(f)),Be(new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(f)),Be(new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(f)),Be(new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(f)),Be(new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(f)),Be(new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(f)),Be(new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(f)),Be(new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(f)),Be(new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(f)),Be(new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(f)),Be(new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(f)),Be(new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(f)),Be(new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(f)),Be(new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(f)),Be(new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(f)),Be(new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(f)),Be(new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(f)),Be(new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(f)),Be(new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(f)),Be(new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(f)),Be(new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(f)),Be(new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(f)),Be(new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(f)),Be(new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(f)),Be(new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(f)),Ue(pe(300,.5,0),pe(-240,.5,1)),Ue(pe(-100,.75,.35),pe(80,1.5,.8)),Ue(pe(260,.75,.35),pe(80,1.5,.8)),pe(),M(),Math.PI,Math.PI;function ze(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}ze(f("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),ze(f("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ze(f("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ze(f("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var We=n(3);function He(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ge(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qe(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var Ve,Ye,$e,Xe,Ke={"-":"",_:" ",0:"0"},Qe=/^\s*\d+/,Je=/^%/,Ze=/[\\^$*+?|[\]().{}]/g;function et(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function tt(e){return e.replace(Ze,"\\$&")}function nt(e){return new RegExp("^(?:"+e.map(tt).join("|")+")","i")}function rt(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function ot(e,t,n){var r=Qe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function it(e,t,n){var r=Qe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function at(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ct(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ut(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function st(e,t,n){var r=Qe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lt(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ft(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function pt(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function dt(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ht(e,t,n){var r=Qe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function yt(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mt(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gt(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vt(e,t,n){var r=Qe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function bt(e,t,n){var r=Qe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wt(e,t,n){var r=Je.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function xt(e,t,n){var r=Qe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function _t(e,t,n){var r=Qe.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ot(e,t){return et(e.getDate(),t,2)}function Et(e,t){return et(e.getHours(),t,2)}function kt(e,t){return et(e.getHours()%12||12,t,2)}function St(e,t){return et(1+We.a.count(Object(We.k)(e),e),t,3)}function Tt(e,t){return et(e.getMilliseconds(),t,3)}function At(e,t){return Tt(e,t)+"000"}function jt(e,t){return et(e.getMonth()+1,t,2)}function Pt(e,t){return et(e.getMinutes(),t,2)}function Ct(e,t){return et(e.getSeconds(),t,2)}function Mt(e){var t=e.getDay();return 0===t?7:t}function Nt(e,t){return et(We.h.count(Object(We.k)(e),e),t,2)}function It(e,t){var n=e.getDay();return e=n>=4||0===n?Object(We.i)(e):We.i.ceil(e),et(We.i.count(Object(We.k)(e),e)+(4===Object(We.k)(e).getDay()),t,2)}function Rt(e){return e.getDay()}function Dt(e,t){return et(We.e.count(Object(We.k)(e),e),t,2)}function Lt(e,t){return et(e.getFullYear()%100,t,2)}function Ft(e,t){return et(e.getFullYear()%1e4,t,4)}function Ut(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+et(t/60|0,"0",2)+et(t%60,"0",2)}function Bt(e,t){return et(e.getUTCDate(),t,2)}function zt(e,t){return et(e.getUTCHours(),t,2)}function Wt(e,t){return et(e.getUTCHours()%12||12,t,2)}function Ht(e,t){return et(1+We.l.count(Object(We.v)(e),e),t,3)}function Gt(e,t){return et(e.getUTCMilliseconds(),t,3)}function qt(e,t){return Gt(e,t)+"000"}function Vt(e,t){return et(e.getUTCMonth()+1,t,2)}function Yt(e,t){return et(e.getUTCMinutes(),t,2)}function $t(e,t){return et(e.getUTCSeconds(),t,2)}function Xt(e){var t=e.getUTCDay();return 0===t?7:t}function Kt(e,t){return et(We.s.count(Object(We.v)(e),e),t,2)}function Qt(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Object(We.t)(e):We.t.ceil(e),et(We.t.count(Object(We.v)(e),e)+(4===Object(We.v)(e).getUTCDay()),t,2)}function Jt(e){return e.getUTCDay()}function Zt(e,t){return et(We.p.count(Object(We.v)(e),e),t,2)}function en(e,t){return et(e.getUTCFullYear()%100,t,2)}function tn(e,t){return et(e.getUTCFullYear()%1e4,t,4)}function nn(){return"+0000"}function rn(){return"%"}function on(e){return+e}function an(e){return Math.floor(+e/1e3)}Ve=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,c=e.months,u=e.shortMonths,s=nt(o),l=rt(o),f=nt(i),p=rt(i),d=nt(a),h=rt(a),y=nt(c),m=rt(c),g=nt(u),v=rt(u),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:Ot,e:Ot,f:At,H:Et,I:kt,j:St,L:Tt,m:jt,M:Pt,p:function(e){return o[+(e.getHours()>=12)]},Q:on,s:an,S:Ct,u:Mt,U:Nt,V:It,w:Rt,W:Dt,x:null,X:null,y:Lt,Y:Ft,Z:Ut,"%":rn},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:Bt,e:Bt,f:qt,H:zt,I:Wt,j:Ht,L:Gt,m:Vt,M:Yt,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:on,s:an,S:$t,u:Xt,U:Kt,V:Qt,w:Jt,W:Zt,x:null,X:null,y:en,Y:tn,Z:nn,"%":rn},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:dt,e:dt,f:bt,H:yt,I:yt,j:ht,L:vt,m:pt,M:mt,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:xt,s:_t,S:gt,u:it,U:at,V:ct,w:ot,W:ut,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:lt,Y:st,Z:ft,"%":wt};function _(e,t){return function(n){var r,o,i,a=[],c=-1,u=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++c<s;)37===e.charCodeAt(c)&&(a.push(e.slice(u,c)),null!=(o=Ke[r=e.charAt(++c)])?r=e.charAt(++c):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),u=c+1);return a.push(e.slice(u,c)),a.join("")}}function O(e,t){return function(n){var r,o,i=qe(1900);if(E(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Ge(qe(i.y))).getUTCDay(),r=o>4||0===o?We.p.ceil(r):Object(We.p)(r),r=We.l.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(qe(i.y))).getDay(),r=o>4||0===o?We.e.ceil(r):Object(We.e)(r),r=We.a.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Ge(qe(i.y)).getUTCDay():t(qe(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Ge(i)):t(i)}}function E(e,t,n,r){for(var o,i,a=0,c=t.length,u=n.length;a<c;){if(r>=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in Ke?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=O(e+="",He);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=O(e,Ge);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ye=Ve.format,Ve.parse,$e=Ve.utcFormat,Xe=Ve.utcParse;Date.prototype.toISOString||$e("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Xe("%Y-%m-%dT%H:%M:%S.%LZ");function cn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const un=Symbol("implicit");function sn(){var e=new Map,t=[],n=[],r=un;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==un)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return sn(t,n).unknown(r)},cn.apply(o,arguments),o}var ln=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},fn=function(e){return(e=ln(Math.abs(e)))?e[1]:NaN},pn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dn(e){return new hn(e)}function hn(e){if(!(t=pn.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}dn.prototype=hn.prototype,hn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var yn,mn,gn,vn,bn=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e},wn=function(e,t){var n=ln(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},xn={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return wn(100*e,t)},r:wn,s:function(e,t){var n=ln(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(yn=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ln(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},_n=function(e){return e},On=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],En=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,c=t[0],u=0;o>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),i.push(e.substring(o-=c,o+c)),!((u+=c+1)>r));)c=t[a=(a+1)%t.length];return i.reverse().join(n)}):_n,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):_n,c=e.percent||"%";function u(e){var t=(e=dn(e)).fill,n=e.align,u=e.sign,s=e.symbol,l=e.zero,f=e.width,p=e.comma,d=e.precision,h=e.trim,y=e.type;"n"===y?(p=!0,y="g"):xn[y]||(null==d&&(d=12),h=!0,y="g"),(l||"0"===t&&"="===n)&&(l=!0,t="0",n="=");var m="$"===s?o[0]:"#"===s&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",g="$"===s?o[1]:/[%p]/.test(y)?c:"",v=xn[y],b=/[defgprs%]/.test(y);function w(e){var o,c,s,w=m,x=g;if("c"===y)x=v(e)+x,e="";else{var _=(e=+e)<0;if(e=v(Math.abs(e),d),h&&(e=bn(e)),_&&0==+e&&(_=!1),w=(_?"("===u?u:"-":"-"===u||"("===u?"":u)+w,x=("s"===y?On[8+yn/3]:"")+x+(_&&"("===u?")":""),b)for(o=-1,c=e.length;++o<c;)if(48>(s=e.charCodeAt(o))||s>57){x=(46===s?i+e.slice(o+1):e.slice(o))+x,e=e.slice(0,o);break}}p&&!l&&(e=r(e,1/0));var O=w.length+e.length+x.length,E=O<f?new Array(f-O+1).join(t):"";switch(p&&l&&(e=r(E+e,E.length?f-x.length:1/0),E=""),n){case"<":e=w+e+x+E;break;case"=":e=w+E+e+x;break;case"^":e=E.slice(0,O=E.length>>1)+w+e+x+E.slice(O);break;default:e=E+w+e+x}return a(e)}return d=null==d?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),w.toString=function(){return e+""},w}return{format:u,formatPrefix:function(e,t){var n=u(((e=dn(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(fn(t)/3))),o=Math.pow(10,-r),i=On[8+r/3];return function(e){return n(o*e)+i}}}};!function(e){mn=En(e),gn=mn.format,vn=mn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var kn=function(e){return Math.max(0,-fn(Math.abs(e)))},Sn=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(fn(t)/3)))-fn(Math.abs(e)))},Tn=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,fn(t)-fn(e))+1};n(371),n(393);if(!Object.setPrototypeOf&&!{}.__proto__){var An=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:An.call(Object,e)}}var jn=n(5),Pn=n.n(jn),Cn=n(63),Mn=n.n(Cn),Nn=n(0),In=n.n(Nn);function Rn(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Dn(e,t){return!Rn(e,this.props)||!Rn(t,this.state)}function Ln(e){e.prototype.shouldComponentUpdate=Dn}var Fn=n(8),Un=n.n(Fn),Bn=n(6),zn=n.n(Bn),Wn=n(37),Hn=n.n(Wn),Gn=n(19),qn=n.n(Gn),Vn=n(11),Yn=n.n(Vn),$n=n(58),Xn=n.n($n),Kn=n(74),Qn=n.n(Kn),Jn=n(59),Zn=n.n(Jn),er=function(e){return 0===e?0:e>0?1:-1},tr=function(e){return Hn()(e)&&e.indexOf("%")===e.length-1},nr=function(e){return Zn()(e)&&!Qn()(e)},rr=function(e){return nr(e)||Hn()(e)},or=0,ir=function(e){var t=++or;return"".concat(e||"").concat(t)},ar=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!nr(e)&&!Hn()(e))return r;if(tr(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return Qn()(n)&&(n=r),o&&n>t&&(n=t),n},cr=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},ur=function(e,t){return nr(e)&&nr(t)?function(n){return e+n*(t-e)}:function(){return t}},sr=function(e,t,n){return e&&e.length?e.find(function(e){return e&&Xn()(e,t)===n}):null};function lr(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")}()}function fr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var pr={"aria-current":In.a.string,"aria-details":In.a.any,"aria-disabled":In.a.any,"aria-hidden":In.a.any,"aria-invalid":In.a.any,"aria-keyshortcuts":In.a.any,"aria-label":In.a.any,"aria-roledescription":In.a.any,"aria-autocomplete":In.a.any,"aria-checked":In.a.any,"aria-expanded":In.a.any,"aria-haspopup":In.a.any,"aria-level":In.a.any,"aria-modal":In.a.any,"aria-multiline":In.a.any,"aria-multiselectable":In.a.any,"aria-orientation":In.a.any,"aria-placeholder":In.a.any,"aria-pressed":In.a.any,"aria-readonly":In.a.any,"aria-required":In.a.any,"aria-selected":In.a.any,"aria-sort":In.a.any,"aria-valuemax":In.a.any,"aria-valuemin":In.a.any,"aria-valuenow":In.a.any,"aria-valuetext":In.a.any,"aria-atomic":In.a.any,"aria-busy":In.a.any,"aria-live":In.a.any,"aria-relevant":In.a.any,"aria-dropeffect":In.a.any,"aria-grabbed":In.a.any,"aria-activedescendant":In.a.any,"aria-colcount":In.a.any,"aria-colindex":In.a.any,"aria-colspan":In.a.any,"aria-controls":In.a.any,"aria-describedby":In.a.any,"aria-errormessage":In.a.any,"aria-flowto":In.a.any,"aria-labelledby":In.a.any,"aria-owns":In.a.any,"aria-posinset":In.a.any,"aria-rowcount":In.a.any,"aria-rowindex":In.a.any,"aria-rowspan":In.a.any,"aria-setsize":In.a.any,alignmentBaseline:In.a.string,angle:In.a.number,baselineShift:In.a.string,clip:In.a.string,clipPath:In.a.string,clipRule:In.a.string,color:In.a.string,colorInterpolation:In.a.string,colorInterpolationFilters:In.a.string,colorProfile:In.a.string,colorRendering:In.a.string,cursor:In.a.string,direction:In.a.oneOf(["ltr","rtl","inherit"]),display:In.a.string,dominantBaseline:In.a.string,enableBackground:In.a.string,fill:In.a.string,fillOpacity:In.a.oneOfType([In.a.string,In.a.number]),fillRule:In.a.oneOf(["nonzero","evenodd","inherit"]),filter:In.a.string,floodColor:In.a.string,floodOpacity:In.a.oneOfType([In.a.string,In.a.number]),font:In.a.string,fontFamily:In.a.string,fontSize:In.a.oneOfType([In.a.number,In.a.string]),fontSizeAdjust:In.a.oneOfType([In.a.number,In.a.string]),fontStretch:In.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:In.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:In.a.oneOf(["normal","small-caps","inherit"]),fontWeight:In.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:In.a.string,glyphOrientationVertical:In.a.string,imageRendering:In.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:In.a.oneOfType([In.a.number,In.a.string]),letterSpacing:In.a.oneOfType([In.a.number,In.a.string]),lightingColor:In.a.string,lineHeight:In.a.oneOfType([In.a.number,In.a.string]),markerEnd:In.a.string,markerMid:In.a.string,markerStart:In.a.string,mask:In.a.string,opacity:In.a.oneOfType([In.a.number,In.a.string]),overflow:In.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:In.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:In.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:In.a.string,stopOpacity:In.a.oneOfType([In.a.number,In.a.string]),stroke:In.a.oneOfType([In.a.number,In.a.string]),strokeDasharray:In.a.string,strokeDashoffset:In.a.oneOfType([In.a.number,In.a.string]),strokeLinecap:In.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:In.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:In.a.oneOfType([In.a.number,In.a.string]),strokeOpacity:In.a.oneOfType([In.a.number,In.a.string]),strokeWidth:In.a.oneOfType([In.a.number,In.a.string]),textAnchor:In.a.oneOf(["start","middle","end","inherit"]),textDecoration:In.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:In.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:In.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:In.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:In.a.oneOfType([In.a.number,In.a.string]),writingMode:In.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:In.a.string,role:In.a.string,focusable:In.a.string,tabIndex:In.a.string,style:In.a.object,width:In.a.number,height:In.a.number,dx:In.a.number,dy:In.a.number,x:In.a.number,y:In.a.number,r:In.a.number,radius:In.a.oneOfType([In.a.number,In.a.array])},dr={onClick:In.a.func,onMouseDown:In.a.func,onMouseUp:In.a.func,onMouseOver:In.a.func,onMouseMove:In.a.func,onMouseOut:In.a.func,onMouseEnter:In.a.func,onMouseLeave:In.a.func,onTouchEnd:In.a.func,onTouchMove:In.a.func,onTouchStart:In.a.func,onTouchCancel:In.a.func},hr={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},yr=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],mr=["none"],gr=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},vr=function(e,t){var n=[],r=[];return r=Yn()(t)?t.map(function(e){return gr(e)}):[gr(t)],i.a.Children.forEach(e,function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)}),n},br=function(e,t){var n=vr(e,t);return n&&n[0]},wr=function(e){if(!e||Pn()(e))return null;var t=i.a.isValidElement(e)?e.props:e;if(!qn()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&pr[r]&&(n||(n={}),n[r]=t[r]);return n},xr=function(e,t){return function(n){return e(t,n),null}},_r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||Pn()(e))return null;var r=i.a.isValidElement(e)?e.props:e;if(!qn()(r))return null;var o=null;for(var a in r)({}).hasOwnProperty.call(r,a)&&dr[a]&&(o||(o={}),o[a]=t||(n?xr(r[a],r):r[a]));return o},Or=function(e,t,n){return function(r){return e(t,n,r),null}},Er=function(e,t,n){if(!qn()(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&dr[o]&&Pn()(e[o])&&(r||(r={}),r[o]=Or(e[o],t,n));return r},kr=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!nr(n)||n<=0||!nr(r)||r<=0)},Sr=function(){return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)},Tr=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Ar=function(e,t){if(zn()(e)&&zn()(t))return!0;if(!zn()(e)&&!zn()(t)){var n=e.props||{},r=n.children,o=fr(n,["children"]),i=t.props||{},a=i.children,c=fr(i,["children"]);return r&&a?Rn(o,c)&&jr(r,a):!r&&!a&&Rn(o,c)}return!1},jr=function e(t,n){if(t===n)return!0;if(o.Children.count(t)!==o.Children.count(n))return!1;var r=o.Children.count(t);if(0===r)return!0;if(1===r)return Ar(Yn()(t)?t[0]:t,Yn()(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],c=n[i];if(Yn()(a)||Yn()(c)){if(!e(a,c))return!1}else if(!Ar(a,c))return!1}return!0},Pr=function(e,t){var n=[],r={};return o.Children.forEach(e,function(e,o){if(e&&function(e){return e&&e.type&&Hn()(e.type)&&Tr.indexOf(e.type)>=0}(e))n.push(e);else if(e&&t[gr(e.type)]){var i=gr(e.type),a=t[i],c=a.handler,u=a.once;if(u&&!r[i]||!u){var s=c(e,i,o);Yn()(s)?n=[n].concat(lr(s)):n.push(s),r[i]=!0}}}),n},Cr=function(e){var t=e&&e.type;return t&&hr[t]?hr[t]:null};function Mr(){return(Mr=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 Nr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ir={width:In.a.number.isRequired,height:In.a.number.isRequired,viewBox:In.a.shape({x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number}),className:In.a.string,style:In.a.object,children:In.a.oneOfType([In.a.arrayOf(In.a.node),In.a.node])};function Rr(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,c=e.style,u=Nr(e,["children","width","height","viewBox","className","style"]),s=o||{width:n,height:r,x:0,y:0},l=Un()("recharts-surface",a),f=wr(u);return i.a.createElement("svg",Mr({},f,{className:l,width:n,height:r,style:c,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height),version:"1.1"}),t)}Rr.propTypes=Ir;var Dr=Rr,Lr=Math.PI,Fr=2*Lr,Ur=Fr-1e-6;function Br(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function zr(){return new Br}Br.prototype=zr.prototype={constructor:Br,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,c=n-e,u=r-t,s=i-e,l=a-t,f=s*s+l*l;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(l*c-u*s)>1e-6&&o){var p=n-i,d=r-a,h=c*c+u*u,y=p*p+d*d,m=Math.sqrt(h),g=Math.sqrt(f),v=o*Math.tan((Lr-Math.acos((h+f-y)/(2*m*g)))/2),b=v/g,w=v/m;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*s)+","+(t+b*l)),this._+="A"+o+","+o+",0,0,"+ +(l*p>s*d)+","+(this._x1=e+w*c)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t;var a=(n=+n)*Math.cos(r),c=n*Math.sin(r),u=e+a,s=t+c,l=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+s:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+u+","+s),n&&(f<0&&(f=f%Fr+Fr),f>Ur?this._+="A"+n+","+n+",0,1,"+l+","+(e-a)+","+(t-c)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=s):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Lr)+","+l+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Wr=zr,Hr=function(e){return function(){return e}},Gr=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,1e-12),qr=Math.PI,Vr=2*qr;function Yr(e){this._context=e}Yr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var $r=function(e){return new Yr(e)};function Xr(e){return e[0]}function Kr(e){return e[1]}var Qr=function(){var e=Xr,t=Kr,n=Hr(!0),r=null,o=$r,i=null;function a(a){var c,u,s,l=a.length,f=!1;for(null==r&&(i=o(s=Wr())),c=0;c<=l;++c)!(c<l&&n(u=a[c],c,a))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(u,c,a),+t(u,c,a));if(s)return i=null,s+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:Hr(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Hr(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Hr(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a},Jr=function(){var e=Xr,t=null,n=Hr(0),r=Kr,o=Hr(!0),i=null,a=$r,c=null;function u(u){var s,l,f,p,d,h=u.length,y=!1,m=new Array(h),g=new Array(h);for(null==i&&(c=a(d=Wr())),s=0;s<=h;++s){if(!(s<h&&o(p=u[s],s,u))===y)if(y=!y)l=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=s-1;f>=l;--f)c.point(m[f],g[f]);c.lineEnd(),c.areaEnd()}y&&(m[s]=+e(p,s,u),g[s]=+n(p,s,u),c.point(t?+t(p,s,u):m[s],r?+r(p,s,u):g[s]))}if(d)return c=null,d+""||null}function s(){return Qr().defined(o).curve(a).context(i)}return u.x=function(n){return arguments.length?(e="function"==typeof n?n:Hr(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:Hr(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Hr(+e),u):t},u.y=function(e){return arguments.length?(n="function"==typeof e?e:Hr(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"==typeof e?e:Hr(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Hr(+e),u):r},u.lineX0=u.lineY0=function(){return s().x(e).y(n)},u.lineY1=function(){return s().x(e).y(r)},u.lineX1=function(){return s().x(t).y(n)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:Hr(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(c=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=c=null:c=a(i=e),u):i},u};eo($r);function Zr(e){this._curve=e}function eo(e){function t(t){return new Zr(e(t))}return t._curve=e,t}Zr.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var to=Array.prototype.slice;var no={draw:function(e,t){var n=Math.sqrt(t/qr);e.moveTo(n,0),e.arc(0,0,n,0,Vr)}},ro={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},oo=Math.sqrt(1/3),io=2*oo,ao={draw:function(e,t){var n=Math.sqrt(t/io),r=n*oo;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},co=Math.sin(qr/10)/Math.sin(7*qr/10),uo=Math.sin(Vr/10)*co,so=-Math.cos(Vr/10)*co,lo={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=uo*n,o=so*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Vr*i/5,c=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-c*n),e.lineTo(c*r-u*o,u*r+c*o)}e.closePath()}},fo={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},po=Math.sqrt(3),ho={draw:function(e,t){var n=-Math.sqrt(t/(3*po));e.moveTo(0,2*n),e.lineTo(-po*n,-n),e.lineTo(po*n,-n),e.closePath()}},yo=Math.sqrt(3)/2,mo=1/Math.sqrt(12),go=3*(mo/2+1),vo={draw:function(e,t){var n=Math.sqrt(t/go),r=n/2,o=n*mo,i=r,a=n*mo+n,c=-i,u=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(c,u),e.lineTo(-.5*r-yo*o,yo*r+-.5*o),e.lineTo(-.5*i-yo*a,yo*i+-.5*a),e.lineTo(-.5*c-yo*u,yo*c+-.5*u),e.lineTo(-.5*r+yo*o,-.5*o-yo*r),e.lineTo(-.5*i+yo*a,-.5*a-yo*i),e.lineTo(-.5*c+yo*u,-.5*u-yo*c),e.closePath()}},bo=function(){};function wo(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function xo(e){this._context=e}xo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wo(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _o(e){this._context=e}_o.prototype={areaStart:bo,areaEnd:bo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:wo(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Oo(e){this._context=e}Oo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:wo(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Eo(e,t){this._basis=new xo(e),this._beta=t}Eo.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,c=t[n]-i,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(o+r*a),this._beta*t[u]+(1-this._beta)*(i+r*c));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};(function e(t){function n(e){return 1===t?new xo(e):new Eo(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function ko(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function So(e,t){this._context=e,this._k=(1-t)/6}So.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ko(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:ko(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new So(e,t)}return n.tension=function(t){return e(+t)},n})(0);function To(e,t){this._context=e,this._k=(1-t)/6}To.prototype={areaStart:bo,areaEnd:bo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ko(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new To(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Ao(e,t){this._context=e,this._k=(1-t)/6}Ao.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ko(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new Ao(e,t)}return n.tension=function(t){return e(+t)},n})(0);function jo(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>Gr){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Gr){var s=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*s+e._x1*e._l23_2a-t*e._l12_2a)/l,a=(a*s+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function Po(e,t){this._context=e,this._alpha=t}Po.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:jo(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new Po(e,t):new So(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Co(e,t){this._context=e,this._alpha=t}Co.prototype={areaStart:bo,areaEnd:bo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:jo(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new Co(e,t):new To(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Mo(e,t){this._context=e,this._alpha=t}Mo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:jo(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new Mo(e,t):new Ao(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function No(e){this._context=e}No.prototype={areaStart:bo,areaEnd:bo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Io(e){return e<0?-1:1}function Ro(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),c=(i*o+a*r)/(r+o);return(Io(i)+Io(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function Do(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Lo(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,c=(i-r)/3;e._context.bezierCurveTo(r+c,o+c*t,i-c,a-c*n,i,a)}function Fo(e){this._context=e}function Uo(e){this._context=new Bo(e)}function Bo(e){this._context=e}function zo(e){this._context=e}function Wo(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}Fo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Lo(this,this._t0,Do(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Lo(this,Do(this,n=Ro(this,e,t)),n);break;default:Lo(this,this._t0,n=Ro(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Uo.prototype=Object.create(Fo.prototype)).point=function(e,t){Fo.prototype.point.call(this,t,e)},Bo.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},zo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Wo(e),o=Wo(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ho(e,t){this._context=e,this._t=t}Ho.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Go=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],c=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<c;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},qo=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function Vo(e,t){return e[t]}var Yo,$o,Xo;function Ko(e){return(Ko="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 Qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(){return(Jo=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 Zo(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 ei(e,t){return!t||"object"!==Ko(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 ti(e){return(ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ni(e,t){return(ni=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ri,oi,ii,ai={symbolCircle:no,symbolCross:ro,symbolDiamond:ao,symbolSquare:fo,symbolStar:lo,symbolTriangle:ho,symbolWye:vo},ci=Math.PI/180,ui=Ln((Xo=$o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ei(this,ti(t).apply(this,arguments))}var n,r,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&&ni(e,t)}(t,o["Component"]),n=t,(r=[{key:"getPath",value:function(){var e=this.props,t=e.size,n=e.sizeType,r=e.type,o=function(e){var t="symbol".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1));return ai[t]||no}(r);return function(){var e=Hr(no),t=Hr(64),n=null;function r(){var r;if(n||(n=r=Wr()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:Hr(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Hr(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}().type(o).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*ci;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(t,n,r))()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cx,r=e.cy,o=e.size;return n===+n&&r===+r&&o===+o?i.a.createElement("path",Jo({},wr(this.props),_r(this.props),{className:Un()("recharts-symbols",t),transform:"translate(".concat(n,", ").concat(r,")"),d:this.getPath()})):null}}])&&Zo(n.prototype,r),a&&Zo(n,a),t}(),$o.displayName="Symbols",$o.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Qo(e,t,n[t])})}return e}({},pr,{className:In.a.string,type:In.a.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),cx:In.a.number,cy:In.a.number,size:In.a.number,sizeType:In.a.oneOf(["area","diameter"])}),$o.defaultProps={type:"circle",size:64,sizeType:"area"},Yo=Xo))||Yo;function si(e){return(si="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 li(){return(li=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 fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pi(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 di(e,t){return!t||"object"!==si(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 hi(e){return(hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yi(e,t){return(yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mi,gi,vi,bi=yr.filter(function(e){return"none"!==e}),wi=Ln((ii=oi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),di(this,hi(t).apply(this,arguments))}var n,r,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&&yi(e,t)}(t,o["Component"]),n=t,(r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=e.inactive?t:e.color;return"plainline"===e.type?i.a.createElement("line",{strokeWidth:4,fill:"none",stroke:n,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"}):"line"===e.type?i.a.createElement("path",{strokeWidth:4,fill:"none",stroke:n,d:"M0,".concat(16,"h").concat(32/3,"\n            A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3*2,",").concat(16,"\n            H").concat(32,"M").concat(32/3*2,",").concat(16,"\n            A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3,",").concat(16),className:"recharts-legend-icon"}):"rect"===e.type?i.a.createElement("path",{stroke:"none",fill:n,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"}):i.a.createElement(ui,{fill:n,cx:16,cy:16,size:32,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,o=t.layout,a=t.formatter,c={x:0,y:0,width:32,height:32},u={display:"horizontal"===o?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map(function(t,n){var o,l=t.formatter||a,f=Un()((fi(o={"recharts-legend-item":!0},"legend-item-".concat(n),!0),fi(o,"inactive",t.inactive),o));return"none"===t.type?null:i.a.createElement("li",li({className:f,style:u,key:"legend-item-".concat(n)},Er(e.props,t,n)),i.a.createElement(Dr,{width:r,height:r,viewBox:c,style:s},e.renderIcon(t)),i.a.createElement("span",{className:"recharts-legend-item-text"},l?l(t.value,t,n):t.value))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return i.a.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])&&pi(n.prototype,r),a&&pi(n,a),t}(),oi.displayName="Legend",oi.propTypes={content:In.a.element,iconSize:In.a.number,iconType:In.a.oneOf(bi),layout:In.a.oneOf(["horizontal","vertical"]),align:In.a.oneOf(["center","left","right"]),verticalAlign:In.a.oneOf(["top","bottom","middle"]),payload:In.a.arrayOf(In.a.shape({value:In.a.any,id:In.a.any,type:In.a.oneOf(yr)})),inactiveColor:In.a.string,formatter:In.a.func,onMouseEnter:In.a.func,onMouseLeave:In.a.func,onClick:In.a.func},oi.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"},ri=ii))||ri;function xi(e){return(xi="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 _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Oi(e,t,n[t])})}return e}function Oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(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 ki(e,t){return!t||"object"!==xi(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 Si(e){return(Si=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ti(e,t){return(Ti=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ai=function(e){return e.value},ji=function(e,t){return!0===e?Mn()(t,Ai):Pn()(e)?Mn()(t,e):t},Pi=yr.filter(function(e){return"none"!==e}),Ci=Ln((vi=gi=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=ki(this,(e=Si(t)).call.apply(e,[this].concat(o)))).state={boxWidth:-1,boxHeight:-1},n}var n,r,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&&Ti(e,t)}(t,o["Component"]),n=t,a=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&nr(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;return t>=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,c=r.margin,u=r.chartWidth,s=r.chartHeight;e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-(this.getBBox()||{width:0}).width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0});e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((s||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0});return _i({},t,n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},function(){r&&r(o)})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},function(){r&&r(null)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,c=t.paylodUniqBy,u=t.payload,s=_i({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a),a);return i.a.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){return i.a.isValidElement(e)?i.a.cloneElement(e,t):Pn()(e)?e(t):i.a.createElement(wi,t)}(n,_i({},this.props,{payload:ji(c,u)})))}}])&&Ei(n.prototype,r),a&&Ei(n,a),t}(),gi.displayName="Legend",gi.propTypes={content:In.a.oneOfType([In.a.element,In.a.func]),wrapperStyle:In.a.object,chartWidth:In.a.number,chartHeight:In.a.number,width:In.a.number,height:In.a.number,iconSize:In.a.number,iconType:In.a.oneOf(Pi),layout:In.a.oneOf(["horizontal","vertical"]),align:In.a.oneOf(["center","left","right"]),verticalAlign:In.a.oneOf(["top","bottom","middle"]),margin:In.a.shape({top:In.a.number,left:In.a.number,bottom:In.a.number,right:In.a.number}),payload:In.a.arrayOf(In.a.shape({value:In.a.any,id:In.a.any,type:In.a.oneOf(yr)})),paylodUniqBy:In.a.oneOfType([In.a.func,In.a.bool]),formatter:In.a.func,onMouseEnter:In.a.func,onMouseLeave:In.a.func,onClick:In.a.func,onBBoxUpdate:In.a.func},gi.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},mi=vi))||mi,Mi=n(36),Ni=n.n(Mi),Ii=n(42),Ri=n.n(Ii);function Di(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;Ri()(function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):Ri()(r)})}function Li(e){return(Li="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 Fi(e){return function(e){if(Array.isArray(e))return e}(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 destructure non-iterable instance")}()}function Ui(){var e=function(){return null},t=!1;return{stop:function(){t=!0},start:function(n){t=!1,function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=Fi(r),i=o[0],a=o.slice(1);return"number"==typeof i?void Di(n.bind(null,a),i):(n(i),void Di(n.bind(null,a)))}"object"===Li(r)&&e(r),"function"==typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var Bi=n(140),zi=n.n(Bi);function Wi(e){return(Wi="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 Hi(e,t){if(e===t)return!0;if("object"!==Wi(e)||null===e||"object"!==Wi(t)||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=hasOwnProperty.bind(t),i=0;i<n.length;i++){var a=n[i];if(e[a]!==t[a])if(Yn()(e[a])){if(!Yn()(t[a])||e[a].length!==t[a].length)return!1;if(!Ni()(e[a],t[a]))return!1}else if(zi()(e[a])){if(!zi()(t[a])||!Ni()(e[a],t[a]))return!1}else if(!o(n[i])||e[n[i]]!==t[n[i]])return!1}return!0}function Gi(e,t){return function(e,t,n){return!Hi(e.props,t)||!Hi(e.state,n)}(this,e,t)}var qi=function(e){e.prototype.shouldComponentUpdate=Gi},Vi=n(224),Yi=n.n(Vi);function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Xi(e,t,n[t])})}return e}function Xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ki=["Webkit","Moz","O","ms"],Qi=["-webkit-","-moz-","-o-","-ms-"],Ji=["transform","transformOrigin","transition"],Zi=function(e){return e},ea=function(e,t){return Object.keys(t).reduce(function(n,r){return $i({},n,Xi({},r,e(r,t[r])))},{})},ta=function(e){return Object.keys(e).reduce(function(e,t){return $i({},e,function(e,t){if(-1===Ji.indexOf(e))return Xi({},e,t);var n="transition"===e,r=e.replace(/(\w)/,function(e){return e.toUpperCase()}),o=t;return Ki.reduce(function(e,i,a){return n&&(o=t.replace(/(transform|transform-origin)/gim,"".concat(Qi[a],"$1"))),$i({},e,Xi({},i+r,o))},{})}(t,e[t]))},e)},na=function(e,t,n){return e.map(function(e){return"".concat((r=e,r.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}))," ").concat(t,"ms ").concat(n);var r}).join(",")};function ra(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 oa=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},ia=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},aa=function(e,t){return function(n){var r=oa(e,t);return ia(r,n)}},ca=function(e,t){return function(n){var r=ra(oa(e,t).map(function(e,t){return e*t}).slice(1)).concat([0]);return ia(r,n)}},ua=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1}[r,i,o,a].every(function(e){return"number"==typeof e&&e>=0&&e<=1});var c=aa(r,i),u=aa(o,a),s=ca(r,i),l=function(e){return e>1?1:e<0?0:e},f=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=c(n)-t,i=s(n);if(Math.abs(o-t)<1e-4||i<1e-4)return u(n);n=l(n-o/i)}return u(n)};return f.isStepper=!1,f},sa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,c=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,c=r*a/1e3+e;return Math.abs(c-t)<1e-4&&Math.abs(i)<1e-4?[t,0]:[c,i]};return c.isStepper=!0,c.dt=a,c},la=n(225),fa=n.n(la);function pa(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")}()}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ha(e,t,n[t])})}return e}function ha(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ma,ga,va,ba=function(e,t,n){return e+(t-e)*n},wa=function(e){return e.from!==e.to},xa=function(e,t,n,r,o){var i,a,c,u,s=(i=e,a=t,Yi()(Object.keys(i),Object.keys(a))),l=s.reduce(function(n,r){return da({},n,ha({},r,[e[r],t[r]]))},{}),f=s.reduce(function(n,r){return da({},n,ha({},r,{from:e[r],velocity:0,to:t[r]}))},{}),p=-1,d=function(){return null};return d=n.isStepper?function(r){c||(c=r);var i=(r-c)/n.dt;f=function e(t,n,r){var o=ea(function(e,n){if(wa(n)){var r=ya(t(n.from,n.to,n.velocity),2);return da({},n,{from:r[0],velocity:r[1]})}return n},n);return r<1?ea(function(e,t){return wa(t)?da({},t,{velocity:ba(t.velocity,o[e].velocity,r),from:ba(t.from,o[e].from,r)}):t},n):e(t,o,r-1)}(n,f,i),o(da({},e,t,ea(function(e,t){return t.from},f))),c=r,fa()(f,wa).length&&(p=Ri()(d))}:function(i){u||(u=i);var a=(i-u)/r,c=ea(function(e,t){return ba.apply(void 0,pa(t).concat([n(a)]))},l);if(o(da({},e,t,c)),a<1)p=Ri()(d);else{var s=ea(function(e,t){return ba.apply(void 0,pa(t).concat([n(1)]))},l);o(da({},e,t,s))}},function(){return Ri()(d),function(){Object(Ii.cancel)(p)}}};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 Oa(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ea(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")}()}function ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Sa(e,t,n[t])})}return e}function Sa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ta(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 Aa(e,t){return!t||"object"!==_a(t)&&"function"!=typeof t?Ca(e):t}function ja(e){return(ja=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pa(e,t){return(Pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ca(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ma=qi((va=ga=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=(r=Aa(this,ja(t).call(this,e,n))).props,i=o.isActive,a=o.attributeName,c=o.from,u=o.to,s=o.steps,l=o.children;if(r.handleStyleChange=r.handleStyleChange.bind(Ca(Ca(r))),r.changeStyle=r.changeStyle.bind(Ca(Ca(r))),!i)return r.state={style:{}},"function"==typeof l&&(r.state={style:u}),Aa(r);if(s&&s.length)r.state={style:s[0].style};else if(c){if("function"==typeof l)return r.state={style:c},Aa(r);r.state={style:a?Sa({},a,c):c}}else r.state={style:{}};return r}var n,r,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&&Pa(e,t)}(t,o["Component"]),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentWillReceiveProps",value:function(e){var t=e.isActive,n=e.canBegin,r=e.attributeName,o=e.shouldReAnimate;if(n)if(t){if(!(Ni()(this.props.to,e.to)&&this.props.canBegin&&this.props.isActive)){var i=!this.props.canBegin||!this.props.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var a=i||o?e.from:this.props.to;this.setState({style:r?Sa({},r,a):a}),this.runAnimation(ka({},e,{from:a,begin:0}))}}else this.setState({style:r?Sa({},r,e.to):e.to})}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,c=e.onAnimationEnd,u=e.onAnimationStart,s=xa(n,r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ua(r);case"spring":return sa()}return"function"==typeof r?r:null}(i),o,this.changeStyle);this.manager.start([u,a,function(){t.stopJSAnimation=s()},o,c])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(Ea(n.reduce(function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,c=void 0===a?"ease":a,u=r.style,s=r.properties,l=r.onAnimationEnd,f=o>0?n[o-1]:r,p=s||Object.keys(u);if("function"==typeof c||"spring"===c)return Ea(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:c}),i]);var d=na(p,i,c),h=ka({},f.style,u,{transition:d});return Ea(e).concat([h,i,l]).filter(Zi)},[a,Math.max(u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Ui());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,c=e.onAnimationEnd,u=e.steps,s=e.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof s&&"spring"!==i)if(u.length>1)this.runStepAnimation(e);else{var f=r?Sa({},r,o):o,p=na(Object.keys(f),n,i);l.start([a,t,ka({},f,{transition:p}),n,c])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,Oa(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),a=o.Children.count(t),c=ta(this.state.style);if("function"==typeof t)return t(c);if(!n||0===a)return t;var u=function(e){var t=e.props,n=t.style,i=void 0===n?{}:n,a=t.className;return Object(o.cloneElement)(e,ka({},r,{style:ka({},i,c),className:a}))};return 1===a?u(o.Children.only(t)):i.a.createElement("div",null,o.Children.map(t,function(e){return u(e)}))}}])&&Ta(n.prototype,r),a&&Ta(n,a),t}(),ga.displayName="Animate",ga.propTypes={from:In.a.oneOfType([In.a.object,In.a.string]),to:In.a.oneOfType([In.a.object,In.a.string]),attributeName:In.a.string,duration:In.a.number,begin:In.a.number,easing:In.a.oneOfType([In.a.string,In.a.func]),steps:In.a.arrayOf(In.a.shape({duration:In.a.number.isRequired,style:In.a.object.isRequired,easing:In.a.oneOfType([In.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),In.a.func]),properties:In.a.arrayOf("string"),onAnimationEnd:In.a.func})),children:In.a.oneOfType([In.a.node,In.a.func]),isActive:In.a.bool,canBegin:In.a.bool,onAnimationEnd:In.a.func,shouldReAnimate:In.a.bool,onAnimationStart:In.a.func,onAnimationReStart:In.a.func},ga.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ma=va))||ma,Na=n(97);function Ia(e){return(Ia="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 Ra(){return(Ra=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 Da(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function La(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(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 Ua(e,t){return!t||"object"!==Ia(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 Ba(e){return(Ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function za(e,t){return(za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Wa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Zn()(t.duration)&&t.duration>0?t.duration:0)},0):Zn()(n)?n:0},Ha=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Ua(this,(e=Ba(t)).call.apply(e,[this].concat(o)))).state={isActive:!1},n.handleEnter=function(e,t){var r=n.props,o=r.appearOptions,i=r.enterOptions;n.handleStyleActive(t?o:i)},n.handleExit=function(){n.handleStyleActive(n.props.leaveOptions)},n}var n,r,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&&za(e,t)}(t,o["Component"]),n=t,(r=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){La(e,t,n[t])})}return e}({},e,{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return Wa(t)+Wa(n)+Wa(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.appearOptions,t.enterOptions,t.leaveOptions,Da(t,["children","appearOptions","enterOptions","leaveOptions"]));return i.a.createElement(Na.Transition,Ra({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return i.a.createElement(Ma,e.state,o.Children.only(n))})}}])&&Fa(n.prototype,r),a&&Fa(n,a),t}();Ha.propTypes={appearOptions:In.a.object,enterOptions:In.a.object,leaveOptions:In.a.object,children:In.a.element};var Ga=Ha;function qa(e){var t=e.component,n=e.children,r=e.appear,a=e.enter,c=e.leave;return i.a.createElement(Na.TransitionGroup,{component:t},o.Children.map(n,function(e,t){return i.a.createElement(Ga,{appearOptions:r,enterOptions:a,leaveOptions:c,key:"child-".concat(t)},e)}))}qa.propTypes={appear:In.a.object,enter:In.a.object,leave:In.a.object,children:In.a.oneOfType([In.a.array,In.a.element]),component:In.a.any},qa.defaultProps={component:"span"};var Va,Ya,$a,Xa=Ma,Ka=n(60),Qa=n.n(Ka);function Ja(e){return(Ja="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 Za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){tc(e,t,n[t])})}return e}function tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nc(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 rc(e,t){return!t||"object"!==Ja(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 oc(e){return(oc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ic(e,t){return(ic=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ac,cc,uc,sc=function(e){return Yn()(e)&&rr(e[0])&&rr(e[1])?e.join(" ~ "):e},lc=Ln(($a=Ya=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),rc(this,oc(t).apply(this,arguments))}var n,r,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&&ic(e,t)}(t,o["Component"]),n=t,(r=[{key:"renderContent",value:function(){var e=this.props,t=e.payload,n=e.separator,r=e.formatter,o=e.itemStyle,a=e.itemSorter;if(t&&t.length){var c=(a?Qa()(t,a):t).map(function(e,t){if("none"===e.type)return null;var a=ec({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},o),c=e.formatter||r||sc,u=e.name,s=e.value;if(c){var l=c(s,u,e,t);if(Array.isArray(l)){var f=Za(l,2);s=f[0],u=f[1]}else s=l}return i.a.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:a},rr(u)?i.a.createElement("span",{className:"recharts-tooltip-item-name"},u):null,rr(u)?i.a.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,i.a.createElement("span",{className:"recharts-tooltip-item-value"},s),i.a.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return i.a.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},c)}return null}},{key:"render",value:function(){var e=this.props,t=e.wrapperClassName,n=e.contentStyle,r=e.labelClassName,o=e.labelStyle,a=e.label,c=e.labelFormatter,u=ec({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),s=ec({margin:0},o),l=rr(a),f=l?a:"",p=Un()("recharts-default-tooltip",t),d=Un()("recharts-tooltip-label",r);return l&&c&&(f=c(a)),i.a.createElement("div",{className:p,style:u},i.a.createElement("p",{className:d,style:s},f),this.renderContent())}}])&&nc(n.prototype,r),a&&nc(n,a),t}(),Ya.displayName="DefaultTooltipContent",Ya.propTypes={separator:In.a.string,wrapperClassName:In.a.string,labelClassName:In.a.string,formatter:In.a.func,contentStyle:In.a.object,itemStyle:In.a.object,labelStyle:In.a.object,labelFormatter:In.a.func,label:In.a.any,payload:In.a.arrayOf(In.a.shape({name:In.a.any,value:In.a.oneOfType([In.a.number,In.a.string,In.a.array]),unit:In.a.any})),itemSorter:In.a.func},Ya.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}},Va=$a))||Va;function fc(e){return(fc="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 pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){dc(e,t,n[t])})}return e}function dc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hc(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 yc(e,t){return!t||"object"!==fc(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 mc(e){return(mc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gc(e,t){return(gc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vc,bc,wc,xc="recharts-tooltip-wrapper",_c=function(e){return e.dataKey},Oc={content:In.a.oneOfType([In.a.element,In.a.func]),viewBox:In.a.shape({x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number}),active:In.a.bool,separator:In.a.string,formatter:In.a.func,offset:In.a.number,itemStyle:In.a.object,labelStyle:In.a.object,wrapperStyle:In.a.object,contentStyle:In.a.object,cursor:In.a.oneOfType([In.a.bool,In.a.element,In.a.object]),coordinate:In.a.shape({x:In.a.number,y:In.a.number}),position:In.a.shape({x:In.a.number,y:In.a.number}),label:In.a.any,payload:In.a.arrayOf(In.a.shape({name:In.a.any,value:In.a.oneOfType([In.a.number,In.a.string,In.a.array]),unit:In.a.any,type:In.a.oneOf(mr)})),paylodUniqBy:In.a.oneOfType([In.a.func,In.a.bool]),isAnimationActive:In.a.bool,animationDuration:In.a.number,animationEasing:In.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),itemSorter:In.a.func,filterNull:In.a.bool,useTranslate3d:In.a.bool},Ec={active:!1,offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,isAnimationActive:!Sr(),animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1},kc=Ln((uc=cc=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=yc(this,(e=mc(t)).call.apply(e,[this].concat(o)))).state={boxWidth:-1,boxHeight:-1},n}var n,r,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&&gc(e,t)}(t,o["Component"]),n=t,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,a=o.payload,c=o.isAnimationActive,u=o.animationDuration,s=o.animationEasing,l=o.filterNull,f=function(e,t){return!0===e?Mn()(t,_c):Pn()(e)?Mn()(t,e):t}(o.paylodUniqBy,l&&a&&a.length?a.filter(function(e){return!zn()(e.value)}):a),p=f&&f.length,d=this.props,h=d.content,y=d.viewBox,m=d.coordinate,g=d.position,v=d.active,b=d.offset,w=pc({pointerEvents:"none",visibility:v&&p?"visible":"hidden",position:"absolute",top:0},d.wrapperStyle);if(g&&nr(g.x)&&nr(g.y))t=g.x,n=g.y;else{var x=this.state,_=x.boxWidth,O=x.boxHeight;_>0&&O>0&&m?(t=g&&nr(g.x)?g.x:Math.max(m.x+_+b>y.x+y.width?m.x-_-b:m.x+b,y.x),n=g&&nr(g.y)?g.y:Math.max(m.y+O+b>y.y+y.height?m.y-O-b:m.y+b,y.y)):w.visibility="hidden"}w=pc({},w,ta({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})),c&&v&&(w=pc({},w,ta({transition:"transform ".concat(u,"ms ").concat(s)})));var E=Un()(xc,(dc(e={},"".concat(xc,"-right"),nr(t)&&m&&nr(m.x)&&t>=m.x),dc(e,"".concat(xc,"-left"),nr(t)&&m&&nr(m.x)&&t<m.x),dc(e,"".concat(xc,"-bottom"),nr(n)&&m&&nr(m.y)&&n>=m.y),dc(e,"".concat(xc,"-top"),nr(n)&&m&&nr(m.y)&&n<m.y),e));return i.a.createElement("div",{className:E,style:w,ref:function(e){r.wrapperNode=e}},function(e,t){return i.a.isValidElement(e)?i.a.cloneElement(e,t):Pn()(e)?e(t):i.a.createElement(lc,t)}(h,pc({},this.props,{payload:f})))}}])&&hc(n.prototype,r),a&&hc(n,a),t}(),cc.displayName="Tooltip",cc.propTypes=Oc,cc.defaultProps=Ec,ac=uc))||ac;function Sc(e){return(Sc="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 Tc(){return(Tc=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 Ac(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Pc(e,t,n[t])})}return e}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cc(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 Mc(e,t){return!t||"object"!==Sc(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 Nc(e){return(Nc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ic(e,t){return(Ic=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Rc,Dc,Lc,Fc=Ln((wc=bc=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Mc(this,Nc(t).apply(this,arguments))}var n,r,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&&Ic(e,t)}(t,o["Component"]),n=t,a=[{key:"renderLineItem",value:function(e,t){var n;if(i.a.isValidElement(e))n=i.a.cloneElement(e,t);else if(Pn()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,c=t.y2,u=t.key,s=Ac(t,["x1","y1","x2","y2","key"]);n=i.a.createElement("line",Tc({},wr(s),{x1:r,y1:o,x2:a,y2:c,fill:"none",key:u}))}return n}}],(r=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,a=n.horizontal;if(!e||!e.length)return null;var c=e.map(function(e,n){var i=jc({},t.props,{x1:r,y1:e,x2:r+o,y2:e,key:"line-".concat(n),index:n});return t.constructor.renderLineItem(a,i)});return i.a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,a=n.vertical;if(!e||!e.length)return null;var c=e.map(function(e,n){var i=jc({},t.props,{x1:e,y1:r,x2:e,y2:r+o,key:"line-".concat(n),index:n});return t.constructor.renderLineItem(a,i)});return i.a.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,c=n.width,u=n.height,s=e.slice().sort(function(e,t){return e-t});o!==s[0]&&s.unshift(0);var l=s.map(function(e,n){var l=s[n+1]?s[n+1]-e:o+c-e;if(l<=0)return null;var f=n%t.length;return i.a.createElement("rect",{key:"react-".concat(n),x:Math.round(e+o-o),y:a,width:l,height:u,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return i.a.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,c=n.width,u=n.height,s=e.slice().sort(function(e,t){return e-t});a!==s[0]&&s.unshift(0);var l=s.map(function(e,n){var l=s[n+1]?s[n+1]-e:a+u-e;if(l<=0)return null;var f=n%t.length;return i.a.createElement("rect",{key:"react-".concat(n),y:Math.round(e+a-a),x:o,height:l,width:c,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return i.a.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,a=t.width,c=t.height;return i.a.createElement("rect",{x:r,y:o,width:a,height:c,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.horizontal,c=e.vertical,u=e.horizontalCoordinatesGenerator,s=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!nr(r)||r<=0||!nr(o)||o<=0||!nr(t)||t!==+t||!nr(n)||n!==+n)return null;var y=this.props,m=y.horizontalPoints,g=y.verticalPoints;return m&&m.length||!Pn()(u)||(m=u({yAxis:f,width:d,height:h,offset:p})),g&&g.length||!Pn()(s)||(g=s({xAxis:l,width:d,height:h,offset:p})),i.a.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(m),c&&this.renderVertical(g),a&&this.renderHorizontalStripes(m),c&&this.renderVerticalStripes(g))}}])&&Cc(n.prototype,r),a&&Cc(n,a),t}(),bc.displayName="CartesianGrid",bc.propTypes=jc({},pr,{x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number,horizontal:In.a.oneOfType([In.a.object,In.a.element,In.a.func,In.a.bool]),vertical:In.a.oneOfType([In.a.object,In.a.element,In.a.func,In.a.bool]),horizontalPoints:In.a.arrayOf(In.a.number),verticalPoints:In.a.arrayOf(In.a.number),horizontalCoordinatesGenerator:In.a.func,verticalCoordinatesGenerator:In.a.func,xAxis:In.a.object,yAxis:In.a.object,offset:In.a.object,chartWidth:In.a.number,chartHeight:In.a.number,verticalFill:In.a.arrayOf(In.a.string),horizontalFill:In.a.arrayOf(In.a.string)}),bc.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},vc=wc))||vc;function Uc(e){return(Uc="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 Bc(){return(Bc=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 zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Wc(e,t,n[t])})}return e}function Wc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hc(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 Gc(e,t){return!t||"object"!==Uc(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 qc(e){return(qc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vc(e,t){return(Vc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yc,$c,Xc,Kc={curveBasisClosed:function(e){return new _o(e)},curveBasisOpen:function(e){return new Oo(e)},curveBasis:function(e){return new xo(e)},curveLinearClosed:function(e){return new No(e)},curveLinear:$r,curveMonotoneX:function(e){return new Fo(e)},curveMonotoneY:function(e){return new Uo(e)},curveNatural:function(e){return new zo(e)},curveStep:function(e){return new Ho(e,.5)},curveStepAfter:function(e){return new Ho(e,1)},curveStepBefore:function(e){return new Ho(e,0)}},Qc=function(e){return e.x===+e.x&&e.y===+e.y},Jc=function(e){return e.x},Zc=function(e){return e.y},eu=Ln((Lc=Dc=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Gc(this,qc(t).apply(this,arguments))}var n,r,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&&Vc(e,t)}(t,o["Component"]),n=t,(r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,c=function(e,t){if(Pn()(e))return e;var n="curve".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1));return"curveMonotone"===n&&t?Kc["".concat(n).concat("vertical"===t?"Y":"X")]:Kc[n]||$r}(n,i),u=a?r.filter(function(e){return Qc(e)}):r;if(Yn()(o)){var s=a?o.filter(function(e){return Qc(e)}):o,l=u.map(function(e,t){return zc({},e,{base:s[t]})});return(e="vertical"===i?Jr().y(Zc).x1(Jc).x0(function(e){return e.base.x}):Jr().x(Jc).y1(Zc).y0(function(e){return e.base.y})).defined(Qc).curve(c),e(l)}return(e="vertical"===i&&nr(o)?Jr().y(Zc).x1(Jc).x0(o):nr(o)?Jr().x(Jc).y1(Zc).y0(o):Qr().x(Jc).y(Zc)).defined(Qc).curve(c),e(u)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return i.a.createElement("path",Bc({},wr(this.props),_r(this.props,null,!0),{className:Un()("recharts-curve",t),d:a,ref:o}))}}])&&Hc(n.prototype,r),a&&Hc(n,a),t}(),Dc.displayName="Curve",Dc.propTypes=zc({},pr,{className:In.a.string,type:In.a.oneOfType([In.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),In.a.func]),layout:In.a.oneOf(["horizontal","vertical"]),baseLine:In.a.oneOfType([In.a.number,In.a.array]),points:In.a.arrayOf(In.a.object),connectNulls:In.a.bool,path:In.a.string,pathRef:In.a.func}),Dc.defaultProps={type:"linear",points:[],connectNulls:!1},Rc=Lc))||Rc;function tu(e){return(tu="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 nu(){return(nu=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 ru(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 ou(e,t){return!t||"object"!==tu(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 iu(e){return(iu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function au(e,t){return(au=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var cu=Ln((Xc=$c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ou(this,iu(t).apply(this,arguments))}var n,r,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&&au(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,a=Un()("recharts-dot",o);return t===+t&&n===+n&&r===+r?i.a.createElement("circle",nu({},wr(this.props),_r(this.props,null,!0),{className:a,cx:t,cy:n,r:r})):null}}])&&ru(n.prototype,r),a&&ru(n,a),t}(),$c.displayName="Dot",$c.propTypes={className:In.a.string,cx:In.a.number,cy:In.a.number,r:In.a.number},Yc=Xc))||Yc;function uu(){return(uu=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 su(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var lu={className:In.a.string,children:In.a.oneOfType([In.a.arrayOf(In.a.node),In.a.node])};function fu(e){var t=e.children,n=e.className,r=su(e,["children","className"]),o=Un()("recharts-layer",n);return i.a.createElement("g",uu({className:o},r),t)}fu.propTypes=lu;var pu=fu,du=n(228),hu=n.n(du),yu=n(101),mu=n.n(yu);function gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){vu(e,t,n[t])})}return e}function vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bu(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 wu={widthCache:{},cacheCount:0},xu={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_u=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var Ou=function(e){return Object.keys(e).reduce(function(t,n){return"".concat(t).concat((i=n,i.split("").reduce(function(e,t){return t===t.toUpperCase()?bu(e).concat(["-",t.toLowerCase()]):bu(e).concat([t])},[]).join("")),":").concat((r=n,o=e[n],_u.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i},"")},Eu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Sr())return{width:0,height:0};var n="".concat(e),r=Ou(t),o="".concat(n,"-").concat(r);if(wu.widthCache[o])return wu.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(i));var a=gu({},xu,t);Object.keys(a).map(function(e){return i.style[e]=a[e],e}),i.textContent=n;var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return wu.widthCache[o]=u,++wu.cacheCount>2e3&&(wu.cacheCount=0,wu.widthCache={}),u}catch(e){return{width:0,height:0}}};function ku(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Su(e){return(Su="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 Tu(){return(Tu=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 Au(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ju(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 Pu(e,t){return!t||"object"!==Su(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 Cu(e){return(Cu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mu(e,t){return(Mu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Nu=/[ \f\n\r\t\v\u2028\u2029]+/,Iu=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Pu(this,(e=Cu(t)).call.apply(e,[this].concat(o)))).state={wordsByLines:[]},n}var n,r,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&&Mu(e,t)}(t,o["Component"]),n=t,(r=[{key:"componentWillMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.children!==e.children||this.props.style!==e.style;this.updateWordsByLines(e,t)}},{key:"updateWordsByLines",value:function(e,t){if(!e.width&&!e.scaleToFit||Sr())this.updateWordsWithoutCalculate(e);else{if(t){var n=function(e){try{return{wordsWithComputedWidth:(zn()(e.children)?[]:e.children.toString().split(Nu)).map(function(t){return{word:t,width:Eu(t,e.style).width}}),spaceWidth:Eu(" ",e.style).width}}catch(e){return null}}(e);if(!n)return void this.updateWordsWithoutCalculate(e);var r=n.wordsWithComputedWidth,o=n.spaceWidth;this.wordsWithComputedWidth=r,this.spaceWidth=o}var i=this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,e.width);this.setState({wordsByLines:i})}}},{key:"updateWordsWithoutCalculate",value:function(e){var t=zn()(e.children)?[]:e.children.toString().split(Nu);this.setState({wordsByLines:[{words:t}]})}},{key:"calculateWordsByLines",value:function(e,t,n){var r=this.props.scaleToFit;return(e||[]).reduce(function(e,o){var i=o.word,a=o.width,c=e[e.length-1];if(c&&(null==n||r||c.width+a+t<n))c.words.push(i),c.width+=a+t;else{var u={words:[i],width:a};e.push(u)}return e},[])}},{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,o=e.verticalAnchor,a=e.scaleToFit,c=e.angle,u=e.lineHeight,s=e.capHeight,l=e.className,f=Au(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className"]),p=this.state.wordsByLines;if(!rr(f.x)||!rr(f.y))return null;var d,h=f.x+(nr(t)?t:0),y=f.y+(nr(n)?n:0);switch(o){case"start":d=mu()("calc(".concat(s,")"));break;case"middle":d=mu()("calc(".concat((p.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:d=mu()("calc(".concat(p.length-1," * -").concat(u,")"))}var m=[];if(a){var g=p[0].width;m.push("scale(".concat(this.props.width/g,")"))}return c&&m.push("rotate(".concat(c,", ").concat(h,", ").concat(y,")")),m.length&&(f.transform=m.join(" ")),i.a.createElement("text",Tu({},wr(f),{x:h,y:y,className:Un()("recharts-text",l),textAnchor:r}),p.map(function(e,t){return i.a.createElement("tspan",{x:h,dy:0===t?d:u,key:t},e.words.join(" "))}))}}])&&ju(n.prototype,r),a&&ju(n,a),t}();Iu.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ku(e,t,n[t])})}return e}({},pr,{scaleToFit:In.a.bool,angle:In.a.number,textAnchor:In.a.oneOf(["start","middle","end","inherit"]),verticalAnchor:In.a.oneOf(["start","middle","end"]),style:In.a.object}),Iu.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var Ru=Iu,Du=n(77),Lu=n.n(Du),Fu=n(78),Uu=n.n(Fu),Bu=n(226),zu=n.n(Bu),Wu=n(141),Hu=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},Gu=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Hu(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var qu=Gu(Hu),Vu=qu.right,Yu=(qu.left,Vu);var $u=function(e){return null===e?NaN:+e},Xu=Array.prototype,Ku=(Xu.slice,Xu.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}),Qu=Math.sqrt(50),Ju=Math.sqrt(10),Zu=Math.sqrt(2),es=function(e,t,n){var r,o,i,a,c=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=ts(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++c<o;)i[c]=(e+c)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++c<o;)i[c]=(e-c)/a;return r&&i.reverse(),i};function ts(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Qu?10:i>=Ju?5:i>=Zu?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Qu?10:i>=Ju?5:i>=Zu?2:1)}function ns(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Qu?o*=10:i>=Ju?o*=5:i>=Zu&&(o*=2),t<e?-o:o}var rs=function(e,t,n){if(null==n&&(n=$u),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function os(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function is(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function as(){}function cs(e,t){var n=new as;if(e instanceof as)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}as.prototype=cs.prototype={constructor:as,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var us=cs;function ss(){}var ls=us.prototype;function fs(e,t){var n=new ss;if(e instanceof ss)e.each(function(e){n.add(e)});else if(e){var r=-1,o=e.length;if(null==t)for(;++r<o;)n.add(e[r]);else for(;++r<o;)n.add(t(e[r],r,e))}return n}ss.prototype=fs.prototype={constructor:ss,has:ls.has,add:function(e){return this["$"+(e+="")]=e,this},remove:ls.remove,clear:ls.clear,values:ls.keys,size:ls.size,empty:ls.empty,each:ls.each};var ps=Array.prototype,ds=ps.map,hs=ps.slice,ys={name:"implicit"};function ms(){var e=us(),t=[],n=[],r=ys;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==ys)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=us();for(var r,i,a=-1,c=n.length;++a<c;)e.has(i=(r=n[a])+"")||e.set(i,t.push(r));return o},o.range=function(e){return arguments.length?(n=hs.call(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return ms(t,n).unknown(r)},os.apply(o,arguments),o}function gs(){var e,t,n=ms().unknown(void 0),r=n.domain,o=n.range,i=[0,1],a=!1,c=0,u=0,s=.5;function l(){var n=r().length,l=i[1]<i[0],f=i[l-0],p=i[1-l];e=(p-f)/Math.max(1,n-c+2*u),a&&(e=Math.floor(e)),f+=(p-f-e*(n-c))*s,t=e*(1-c),a&&(f=Math.round(f),t=Math.round(t));var d=Ku(n).map(function(t){return f+e*t});return o(l?d.reverse():d)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),l()):r()},n.range=function(e){return arguments.length?(i=[+e[0],+e[1]],l()):i.slice()},n.rangeRound=function(e){return i=[+e[0],+e[1]],a=!0,l()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,l()):a},n.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),l()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),l()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,l()):u},n.align=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),l()):s},n.copy=function(){return gs(r(),i).round(a).paddingInner(c).paddingOuter(u).align(s)},os.apply(l(),arguments)}function vs(){return function e(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(n())},t}(gs.apply(null,arguments).paddingInner(1))}var bs=function(e){return function(){return e}},ws=function(e){return+e},xs=[0,1];function _s(e){return e}function Os(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:bs(isNaN(t)?NaN:.5)}function Es(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function ks(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Os(o,r),i=n(a,i)):(r=Os(r,o),i=n(i,a)),function(e){return i(r(e))}}function Ss(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Os(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Yu(e,t,1,r)-1;return i[n](o[n](t))}}function Ts(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function As(){var e,t,n,r,o,i,a=xs,c=xs,u=Pe,s=_s;function l(){return r=Math.min(a.length,c.length)>2?Ss:ks,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),c,u)))(e(s(t)))}return f.invert=function(n){return s(t((i||(i=r(c,a.map(e),Oe)))(n)))},f.domain=function(e){return arguments.length?(a=ds.call(e,ws),s===_s||(s=Es(a)),l()):a.slice()},f.range=function(e){return arguments.length?(c=hs.call(e),l()):c.slice()},f.rangeRound=function(e){return c=hs.call(e),u=Ce,l()},f.clamp=function(e){return arguments.length?(s=e?Es(a):_s,f):s!==_s},f.interpolate=function(e){return arguments.length?(u=e,l()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function js(e,t){return As()(e,t)}var Ps=function(e,t,n,r){var o,i=ns(e,t,n);switch((r=dn(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=Sn(i,a))||(r.precision=o),vn(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Tn(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=kn(i))||(r.precision=o-2*("%"===r.type))}return gn(r)};function Cs(e){var t=e.domain;return e.ticks=function(e){var n=t();return es(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Ps(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,c=o[i],u=o[a];return u<c&&(r=c,c=u,u=r,r=i,i=a,a=r),(r=ts(c,u,n))>0?r=ts(c=Math.floor(c/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=ts(c=Math.ceil(c*r)/r,u=Math.floor(u*r)/r,n)),r>0?(o[i]=Math.floor(c/r)*r,o[a]=Math.ceil(u/r)*r,t(o)):r<0&&(o[i]=Math.ceil(c*r)/r,o[a]=Math.floor(u*r)/r,t(o)),e},e}function Ms(){var e=js(_s,_s);return e.copy=function(){return Ts(e,Ms())},os.apply(e,arguments),Cs(e)}function Ns(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=ds.call(t,ws),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Ns(e).unknown(t)},e=arguments.length?ds.call(e,ws):[0,1],Cs(n)}var Is=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e};function Rs(e){return Math.log(e)}function Ds(e){return Math.exp(e)}function Ls(e){return-Math.log(-e)}function Fs(e){return-Math.exp(-e)}function Us(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Bs(e){return function(t){return-e(-t)}}function zs(e){var t,n,r=e(Rs,Ds),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?Us:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=Bs(t),n=Bs(n),e(Ls,Fs)):e(Rs,Ds),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r,a=o(),c=a[0],u=a[a.length-1];(r=u<c)&&(p=c,c=u,u=p);var s,l,f,p=t(c),d=t(u),h=null==e?10:+e,y=[];if(!(i%1)&&d-p<h){if(p=Math.round(p)-1,d=Math.round(d)+1,c>0){for(;p<d;++p)for(l=1,s=n(p);l<i;++l)if(!((f=s*l)<c)){if(f>u)break;y.push(f)}}else for(;p<d;++p)for(l=i-1,s=n(p);l>=1;--l)if(!((f=s*l)<c)){if(f>u)break;y.push(f)}}else y=es(p,d,Math.min(d-p,h)).map(n);return r?y.reverse():y},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=gn(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(Is(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function Ws(){var e=zs(As()).domain([1,10]);return e.copy=function(){return Ts(e,Ws()).base(e.base())},os.apply(e,arguments),e}function Hs(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Gs(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qs(e){var t=1,n=e(Hs(t),Gs(t));return n.constant=function(n){return arguments.length?e(Hs(t=+n),Gs(t)):t},Cs(n)}function Vs(){var e=qs(As());return e.copy=function(){return Ts(e,Vs()).constant(e.constant())},os.apply(e,arguments)}function Ys(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $s(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Xs(e){return e<0?-e*e:e*e}function Ks(e){var t=e(_s,_s),n=1;function r(){return 1===n?e(_s,_s):.5===n?e($s,Xs):e(Ys(n),Ys(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Cs(t)}function Qs(){var e=Ks(As());return e.copy=function(){return Ts(e,Qs()).exponent(e.exponent())},os.apply(e,arguments),e}function Js(){return Qs.apply(null,arguments).exponent(.5)}function Zs(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=rs(t,e/o);return i}function i(t){return isNaN(t=+t)?e:n[Yu(r,t)]}return i.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,r=0,i=e.length;r<i;++r)null==(n=e[r])||isNaN(n=+n)||t.push(n);return t.sort(Hu),o()},i.range=function(e){return arguments.length?(n=hs.call(e),o()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return r.slice()},i.copy=function(){return Zs().domain(t).range(n).unknown(e)},os.apply(i,arguments)}function el(){var e,t=0,n=1,r=1,o=[.5],i=[0,1];function a(t){return t<=t?i[Yu(o,t,0,r)]:e}function c(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],c()):[t,n]},a.range=function(e){return arguments.length?(r=(i=hs.call(e)).length-1,c()):i.slice()},a.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return el().domain([t,n]).range(i).unknown(e)},os.apply(Cs(a),arguments)}function tl(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[Yu(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=hs.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=hs.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return tl().domain(t).range(n).unknown(e)},os.apply(o,arguments)}var nl=1e3,rl=60*nl,ol=60*rl,il=24*ol,al=7*il,cl=30*il,ul=365*il;function sl(e){return new Date(e)}function ll(e){return e instanceof Date?+e:+new Date(+e)}function fl(e,t,n,r,o,i,a,c,u){var s=js(_s,_s),l=s.invert,f=s.domain,p=u(".%L"),d=u(":%S"),h=u("%I:%M"),y=u("%I %p"),m=u("%a %d"),g=u("%b %d"),v=u("%B"),b=u("%Y"),w=[[a,1,nl],[a,5,5*nl],[a,15,15*nl],[a,30,30*nl],[i,1,rl],[i,5,5*rl],[i,15,15*rl],[i,30,30*rl],[o,1,ol],[o,3,3*ol],[o,6,6*ol],[o,12,12*ol],[r,1,il],[r,2,2*il],[n,1,al],[t,1,cl],[t,3,3*cl],[e,1,ul]];function x(c){return(a(c)<c?p:i(c)<c?d:o(c)<c?h:r(c)<c?y:t(c)<c?n(c)<c?m:g:e(c)<c?v:b)(c)}function _(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(r-n)/t,a=Gu(function(e){return e[2]}).right(w,i);a===w.length?(o=ns(n/ul,r/ul,t),t=e):a?(o=(a=w[i/w[a-1][2]<w[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max(ns(n,r,t),1),t=c)}return null==o?t:t.every(o)}return s.invert=function(e){return new Date(l(e))},s.domain=function(e){return arguments.length?f(ds.call(e,ll)):f().map(sl)},s.ticks=function(e,t){var n,r=f(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=_(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},s.tickFormat=function(e,t){return null==t?x:u(t)},s.nice=function(e,t){var n=f();return(e=_(e,n[0],n[n.length-1],t))?f(Is(n,e)):s},s.copy=function(){return Ts(s,fl(e,t,n,r,o,i,a,c,u))},s}var pl=function(){return os.apply(fl(We.k,We.f,We.j,We.a,We.b,We.d,We.g,We.c,Ye).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},dl=function(){return os.apply(fl(We.v,We.q,We.u,We.l,We.m,We.o,We.r,We.n,$e).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function hl(){var e,t,n,r,o,i=0,a=1,c=_s,u=!1;function s(t){return isNaN(t=+t)?o:c(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}return s.domain=function(o){return arguments.length?(e=r(i=+o[0]),t=r(a=+o[1]),n=e===t?0:1/(t-e),s):[i,a]},s.clamp=function(e){return arguments.length?(u=!!e,s):u},s.interpolator=function(e){return arguments.length?(c=e,s):c},s.unknown=function(e){return arguments.length?(o=e,s):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),s}}function yl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ml(){var e=Cs(hl()(_s));return e.copy=function(){return yl(e,ml())},is.apply(e,arguments)}function gl(){var e=zs(hl()).domain([1,10]);return e.copy=function(){return yl(e,gl()).base(e.base())},is.apply(e,arguments)}function vl(){var e=qs(hl());return e.copy=function(){return yl(e,vl()).constant(e.constant())},is.apply(e,arguments)}function bl(){var e=Ks(hl());return e.copy=function(){return yl(e,bl()).exponent(e.exponent())},is.apply(e,arguments)}function wl(){return bl.apply(null,arguments).exponent(.5)}function xl(){var e=[],t=_s;function n(n){if(!isNaN(n=+n))return t((Yu(e,n)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var r,o=0,i=t.length;o<i;++o)null==(r=t[o])||isNaN(r=+r)||e.push(r);return e.sort(Hu),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return xl(t).domain(e)},is.apply(n,arguments)}function _l(){var e,t,n,r,o,i,a,c=0,u=.5,s=1,l=_s,f=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(e<t?r:o),l(f?Math.max(0,Math.min(1,e)):e))}return p.domain=function(a){return arguments.length?(e=i(c=+a[0]),t=i(u=+a[1]),n=i(s=+a[2]),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),p):[c,u,s]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(l=e,p):l},p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(c),t=a(u),n=a(s),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),p}}function Ol(){var e=Cs(_l()(_s));return e.copy=function(){return yl(e,Ol())},is.apply(e,arguments)}function El(){var e=zs(_l()).domain([.1,1,10]);return e.copy=function(){return yl(e,El()).base(e.base())},is.apply(e,arguments)}function kl(){var e=qs(_l());return e.copy=function(){return yl(e,kl()).constant(e.constant())},is.apply(e,arguments)}function Sl(){var e=Ks(_l());return e.copy=function(){return yl(e,Sl()).exponent(e.exponent())},is.apply(e,arguments)}function Tl(){return Sl.apply(null,arguments).exponent(.5)}var Al=n(98),jl=n.n(Al),Pl=n(142),Cl=n.n(Pl);function Ml(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(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 Il(e,t,n){return t&&Nl(e.prototype,t),n&&Nl(e,n),e}function Rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Dl(e,t,n[t])})}return e}function Dl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ll=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},Fl=function(){function e(t){Ml(this,e),this.scale=t}return Il(e,null,[{key:"create",value:function(t){return new e(t)}}]),Il(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware;if(void 0!==e){if(n){var r=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+r}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();Fl.EPS=1e-4;var Ul,Bl,zl,Wl=function(){function e(t){Ml(this,e),this.scales=Cl()(t,Fl.create),Object.assign(this,this.scales)}return Il(e,null,[{key:"create",value:function(e){return new this(e)}}]),Il(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=this.scales;return Cl()(e,function(e,t){return r[t].apply(e,{bandAware:n})})}},{key:"isInRange",value:function(e){var t=this.scales;return jl()(e,function(e,n){return t[n].isInRange(e)})}}]),e}();function Hl(e){return(Hl="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 Gl(){return(Gl=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 ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Vl(e,t,n[t])})}return e}function Vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yl(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 $l(e,t){return!t||"object"!==Hl(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 Xl(e){return(Xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kl(e,t){return(Kl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ql,Jl,Zl,ef=Ln((zl=Bl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$l(this,Xl(t).apply(this,arguments))}var n,r,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&&Kl(e,t)}(t,o["Component"]),n=t,a=[{key:"renderDot",value:function(e,t){return i.a.isValidElement(e)?i.a.cloneElement(e,t):Pn()(e)?e(t):i.a.createElement(cu,Gl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))}}],(r=[{key:"getCoordinate",value:function(){var e=this.props,t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=Wl.create({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return dp(this.props,"discard")&&!i.isInRange(a)?null:a}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.r,o=(e.alwaysShow,e.clipPathId),a=rr(t),c=rr(n);if(!a||!c)return null;var u=this.getCoordinate();if(!u)return null;var s=u.x,l=u.y,f=this.props,p=f.shape,d=f.className,h=ql({clipPath:dp(this.props,"hidden")?"url(#".concat(o,")"):void 0},wr(this.props),_r(this.props),{cx:s,cy:l});return i.a.createElement(pu,{className:Un()("recharts-reference-dot",d)},this.constructor.renderDot(p,h),Hp.renderCallByParent(this.props,{x:s-r,y:l-r,width:2*r,height:2*r}))}}])&&Yl(n.prototype,r),a&&Yl(n,a),t}(),Bl.displayName="ReferenceDot",Bl.propTypes=ql({},pr,dr,{r:In.a.number,xAxis:In.a.shape({scale:In.a.func}),yAxis:In.a.shape({scale:In.a.func}),isFront:In.a.bool,alwaysShow:In.a.bool,ifOverflow:In.a.oneOf(["hidden","visible","discard","extendDomain"]),x:In.a.oneOfType([In.a.number,In.a.string]),y:In.a.oneOfType([In.a.number,In.a.string]),className:In.a.oneOfType([In.a.number,In.a.string]),yAxisId:In.a.oneOfType([In.a.string,In.a.number]),xAxisId:In.a.oneOfType([In.a.string,In.a.number]),shape:In.a.oneOfType([In.a.func,In.a.element]),clipPathId:In.a.string}),Bl.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Ul=zl))||Ul,tf=n(227),nf=n.n(tf);function rf(e){return(rf="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 of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){af(e,t,n[t])})}return e}function af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function uf(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 sf(e,t){return!t||"object"!==rf(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 lf(e){return(lf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ff(e,t){return(ff=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pf(){return(pf=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 df,hf,yf,mf=Ln((Zl=Jl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),sf(this,lf(t).apply(this,arguments))}var n,r,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&&ff(e,t)}(t,o["Component"]),n=t,(r=[{key:"getEndPoints",value:function(e,t,n,r){var o=this.props.viewBox,i=o.x,a=o.y,c=o.width,u=o.height;if(n){var s=this.props,l=s.y,f=s.yAxis.orientation,p=e.y.apply(l,{bandAware:!0});if(dp(this.props,"discard")&&!e.y.isInRange(p))return null;var d=[{x:i+c,y:p},{x:i,y:p}];return"left"===f?d.reverse():d}if(t){var h=this.props,y=h.x,m=h.xAxis.orientation,g=e.x.apply(y,{bandAware:!0});if(dp(this.props,"discard")&&!e.x.isInRange(g))return null;var v=[{x:g,y:a+u},{x:g,y:a}];return"top"===m?v.reverse():v}if(r){var b=this.props.segment.map(function(t){return e.apply(t,{bandAware:!0})});return dp(this.props,"discard")&&nf()(b,function(t){return!e.isInRange(t)})?null:b}return null}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.segment,o=e.xAxis,a=e.yAxis,c=e.shape,u=e.className,s=(e.alwaysShow,e.clipPathId),l=Wl.create({x:o.scale,y:a.scale}),f=rr(t),p=rr(n),d=r&&2===r.length,h=this.getEndPoints(l,f,p,d);if(!h)return null;var y=cf(h,2),m=y[0],g=m.x,v=m.y,b=y[1],w=b.x,x=b.y,_=of({clipPath:dp(this.props,"hidden")?"url(#".concat(s,")"):void 0},wr(this.props),_r(this.props),{x1:g,y1:v,x2:w,y2:x});return i.a.createElement(pu,{className:Un()("recharts-reference-line",u)},function(e,t){return i.a.isValidElement(e)?i.a.cloneElement(e,t):Pn()(e)?e(t):i.a.createElement("line",pf({},t,{className:"recharts-reference-line-line"}))}(c,_),Hp.renderCallByParent(this.props,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return Ll({x:t,y:n},{x:r,y:o})}({x1:g,y1:v,x2:w,y2:x})))}}])&&uf(n.prototype,r),a&&uf(n,a),t}(),Jl.displayName="ReferenceLine",Jl.propTypes=of({},pr,{viewBox:In.a.shape({x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number}),xAxis:In.a.object,yAxis:In.a.object,isFront:In.a.bool,alwaysShow:In.a.bool,ifOverflow:In.a.oneOf(["hidden","visible","discard","extendDomain"]),x:In.a.oneOfType([In.a.number,In.a.string]),y:In.a.oneOfType([In.a.number,In.a.string]),segment:In.a.arrayOf(In.a.shape({x:In.a.oneOfType([In.a.number,In.a.string]),y:In.a.oneOfType([In.a.number,In.a.string])})),className:In.a.oneOfType([In.a.number,In.a.string]),yAxisId:In.a.oneOfType([In.a.string,In.a.number]),xAxisId:In.a.oneOfType([In.a.string,In.a.number]),shape:In.a.func}),Jl.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Ql=Zl))||Ql;function gf(e){return(gf="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 vf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bf(){return(bf=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 wf(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 xf(e,t){return!t||"object"!==gf(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 _f(e){return(_f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Of(e,t){return(Of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ef,kf,Sf,Tf=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),c=r>=0?1:-1,u=n>=0?1:-1,s=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+c*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(e+u*l[0],",").concat(t)),i+="L ".concat(e+n-u*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,",\n        ").concat(e+n,",").concat(t+c*l[1])),i+="L ".concat(e+n,",").concat(t+r-c*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,",\n        ").concat(e+n-u*l[2],",").concat(t+r)),i+="L ".concat(e+u*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,",\n        ").concat(e,",").concat(t+r-c*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+c*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+u*p,",").concat(t,"\n            L ").concat(e+n-u*p,",").concat(t,"\n            A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n,",").concat(t+c*p,"\n            L ").concat(e+n,",").concat(t+r-c*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n-u*p,",").concat(t+r,"\n            L ").concat(e+u*p,",").concat(t+r,"\n            A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+r-c*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},Af=Ln((yf=hf=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=xf(this,(e=_f(t)).call.apply(e,[this].concat(o)))).state={totalLength:-1},n}var n,r,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&&Of(e,t)}(t,o["Component"]),n=t,(r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,o=t.width,a=t.height,c=t.radius,u=t.className,s=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,y=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||0===o||0===a)return null;var m=Un()("recharts-rectangle",u);return y?i.a.createElement(Xa,{canBegin:s>0,from:{width:o,height:a,x:n,y:r},to:{width:o,height:a,x:n,y:r},duration:p,animationEasing:f,isActive:y},function(t){var n=t.width,r=t.height,o=t.x,a=t.y;return i.a.createElement(Xa,{canBegin:s>0,from:"0px ".concat(-1===s?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},i.a.createElement("path",bf({},wr(e.props),_r(e.props),{className:m,d:Tf(o,a,n,r,c),ref:function(t){e.node=t}})))}):i.a.createElement("path",bf({},wr(this.props),_r(this.props),{className:m,d:Tf(n,r,o,a,c)}))}}])&&wf(n.prototype,r),a&&wf(n,a),t}(),hf.displayName="Rectangle",hf.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){vf(e,t,n[t])})}return e}({},pr,dr,{className:In.a.string,x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number,radius:In.a.oneOfType([In.a.number,In.a.array]),isAnimationActive:In.a.bool,isUpdateAnimationActive:In.a.bool,animationBegin:In.a.number,animationDuration:In.a.number,animationEasing:In.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),hf.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},df=yf))||df;function jf(e){return(jf="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 Pf(){return(Pf=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 Cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Mf(e,t,n[t])})}return e}function Mf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nf(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 If(e,t){return!t||"object"!==jf(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 Rf(e){return(Rf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Df(e,t){return(Df=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Lf=Ln((Sf=kf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),If(this,Rf(t).apply(this,arguments))}var n,r,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&&Df(e,t)}(t,o["Component"]),n=t,a=[{key:"renderRect",value:function(e,t){return i.a.isValidElement(e)?i.a.cloneElement(e,t):Pn()(e)?e(t):i.a.createElement(Af,Pf({},t,{className:"recharts-reference-area-rect"}))}}],(r=[{key:"getRect",value:function(e,t,n,r){var o=this.props,i=o.x1,a=o.x2,c=o.y1,u=o.y2,s=o.xAxis,l=o.yAxis,f=Wl.create({x:s.scale,y:l.scale}),p={x:e?f.x.apply(i):f.x.rangeMin,y:n?f.y.apply(c):f.y.rangeMin},d={x:t?f.x.apply(a):f.x.rangeMax,y:r?f.y.apply(u):f.y.rangeMax};return!dp(this.props,"discard")||f.isInRange(p)&&f.isInRange(d)?Ll(p,d):null}},{key:"render",value:function(){var e=this.props,t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.className,c=(e.alwaysShow,e.clipPathId),u=rr(t),s=rr(n),l=rr(r),f=rr(o);if(!(u||s||l||f))return null;var p=this.getRect(u,s,l,f);if(!p)return null;var d=this.props.shape,h=dp(this.props,"hidden")?"url(#".concat(c,")"):void 0;return i.a.createElement(pu,{className:Un()("recharts-reference-area",a)},this.constructor.renderRect(d,Cf({clipPath:h},this.props,p)),Hp.renderCallByParent(this.props,p))}}])&&Nf(n.prototype,r),a&&Nf(n,a),t}(),kf.displayName="ReferenceArea",kf.propTypes=Cf({},pr,{viewBox:In.a.shape({x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number}),xAxis:In.a.object,yAxis:In.a.object,isFront:In.a.bool,alwaysShow:In.a.bool,ifOverflow:In.a.oneOf(["hidden","visible","discard","extendDomain"]),x1:In.a.oneOfType([In.a.number,In.a.string]),x2:In.a.oneOfType([In.a.number,In.a.string]),y1:In.a.oneOfType([In.a.number,In.a.string]),y2:In.a.oneOfType([In.a.number,In.a.string]),className:In.a.oneOfType([In.a.number,In.a.string]),yAxisId:In.a.oneOfType([In.a.string,In.a.number]),xAxisId:In.a.oneOfType([In.a.string,In.a.number]),shape:In.a.oneOfType([In.a.func,In.a.element])}),kf.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},Ef=Sf))||Ef;function Ff(e){return(Ff="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 Uf(){return(Uf=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 Bf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function zf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wf(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 Hf(e,t){return!t||"object"!==Ff(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 Gf(e){return(Gf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qf(e,t){return(qf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Vf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Hf(this,Gf(t).apply(this,arguments))}var n,r,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&&qf(e,t)}(t,o["Component"]),n=t,(r=[{key:"renderErrorBars",value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,o=e.dataKey,a=e.data,c=e.dataPointFormatter,u=e.xAxis,s=e.yAxis,l=zf(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=wr(l);return a.map(function(e,a){var l,p,d,h,y,m,g,v,b,w,x,_,O=c(e,o),E=O.x,k=O.y,S=O.value,T=O.errorVal;if(!T)return null;if(Array.isArray(T)){var A=Bf(T,2);x=A[0],_=A[1]}else x=_=T;return"vertical"===n?(g=u.scale,p=k+t,d=g((l=S)-x),h=p+r,v={x1:y=g(l+_),y1:h,x2:y,y2:m=p-r},b={x1:d,y1:p,x2:y,y2:p},w={x1:d,y1:h,x2:d,y2:m}):"horizontal"===n&&(g=s.scale,d=(l=E+t)-r,y=l+r,h=g((p=S)-x),v={x1:d,y1:m=g(p+_),x2:y,y2:m},b={x1:l,y1:h,x2:l,y2:m},w={x1:d,y1:h,x2:y,y2:h}),i.a.createElement(pu,Uf({className:"recharts-errorBar",key:"bar-".concat(a)},f),i.a.createElement("line",v),i.a.createElement("line",b),i.a.createElement("line",w))})}},{key:"render",value:function(){return i.a.createElement(pu,{className:"recharts-errorBars"},this.renderErrorBars())}}])&&Wf(n.prototype,r),a&&Wf(n,a),t}();Vf.propTypes={dataKey:In.a.oneOfType([In.a.string,In.a.number,In.a.func]).isRequired,data:In.a.array,xAxis:In.a.object,yAxis:In.a.object,layout:In.a.string,dataPointFormatter:In.a.func,stroke:In.a.string,strokeWidth:In.a.number,width:In.a.number,offset:In.a.number},Vf.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};var Yf=Vf;function $f(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")}()}function Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Kf(e,t,n[t])})}return e}function Kf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qf=function(e,t,n){return zn()(e)||zn()(t)?n:rr(t)?Xn()(e,t,n):Pn()(t)?t(e):n},Jf=function(e,t,n,r){var o=zu()(e,function(e){return Qf(e,t)});if("number"===n){var i=o.filter(function(e){return nr(e)||parseFloat(e,10)});return i.length?[Uu()(i),Lu()(i)]:[1/0,-1/0]}return(r?o.filter(function(e){return!zn()(e)}):o).map(function(e){return rr(e)?e:""})},Zf=function(e){var t;switch(e.type.displayName){case"Line":case"Area":case"Radar":t=e.props.stroke;break;default:t=e.props.fill}return t},ep=function(e){var t,n=e.children,r=e.formatedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=br(n,Ci);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce(function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map(function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(r||[]).map(function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:Zf(t),value:o||r,payload:t.props}}),Xf({},a.props,Ci.getWithHeight(a,o),{payload:t,item:a})):null},tp=function(e,t,n,r){var o=t.props.children,i=vr(o,Yf).filter(function(e){var t=e.props.direction;return!(!zn()(t)&&!zn()(r))||r.indexOf(t)>=0});if(i&&i.length){var a=i.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=Qf(t,n,0),o=Yn()(r)?[Uu()(r),Lu()(r)]:[r,r],i=a.reduce(function(e,n){var r=Qf(t,n,0),i=o[0]-Math.abs(Yn()(r)?r[0]:r),a=o[1]+Math.abs(Yn()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},np=function(e,t,n,r){var o=t.map(function(t){var o=t.props.dataKey;return"number"===n&&o&&tp(e,t,o)||Jf(e,o,n,r)});if("number"===n)return o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return o.reduce(function(e,t){for(var n=0,r=t.length;n<r;n++)i[t[n]]||(i[t[n]]=!0,e.push(t[n]));return e},[])},rp=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},op=function(e,t,n){var r,o,i=e.map(function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate});return r||i.push(t),o||i.push(n),i},ip=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/2:0;return c="angleAxis"===e.axisType?2*er(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map(function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}}):e.isCategorial&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e),value:e,index:t,offset:c}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+c,value:e,offset:c}}):r.domain().map(function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}})},ap=function(e,t,n){var r;return Pn()(n)?r=n:Pn()(t)&&(r=t),Pn()(e)||r?function(t,n,o,i){Pn()(e)&&e(t,n,o,i),Pn()(r)&&r(t,n,o,i)}:null},cp=function(e,t){var n=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:gs(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Ms(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0)?{scale:vs(),realScaleType:"point"}:"category"===o?{scale:gs(),realScaleType:"band"}:{scale:Ms(),realScaleType:"linear"};if(Hn()(n)){var c="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[c]||vs)(),realScaleType:r[c]?c:"point"}}return Pn()(n)?{scale:n}:{scale:vs(),realScaleType:"point"}},up=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),c=e(t[n-1]);(a<o||a>i||c<o||c>i)&&e.domain([t[0],t[n-1]])}},sp={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var c=Qn()(e[a][n][1])?e[a][n][0]:e[a][n][1];c>=0?(e[a][n][0]=o,e[a][n][1]=o+c,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+c,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Go(e,t)}},none:Go,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,c=0;a<n;++a)c+=e[a][r][1]||0;o[r][1]+=o[r][0]=-c/2}Go(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var c=0,u=0,s=0;c<o;++c){for(var l=e[t[c]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<c;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,s+=p*f}n[a-1][1]+=n[a-1][0]=i,u&&(i-=s/u)}n[a-1][1]+=n[a-1][0]=i,Go(e,t)}}},lp=function(e,t,n){var r=t.map(function(e){return e.props.dataKey});return function(){var e=Hr([]),t=qo,n=Go,r=Vo;function o(o){var i,a,c=e.apply(this,arguments),u=o.length,s=c.length,l=new Array(s);for(i=0;i<s;++i){for(var f,p=c[i],d=l[i]=new Array(u),h=0;h<u;++h)d[h]=f=[0,+r(o[h],p,h,o)],f.data=o[h];d.key=p}for(i=0,a=t(l);i<s;++i)l[a[i]].index=i;return n(l,a),l}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Hr(to.call(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Hr(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?qo:"function"==typeof e?e:Hr(to.call(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Go:e,o):n},o}().keys(r).value(function(e,t){return+Qf(e,t,0)}).order(qo).offset(sp[n])(e)},fp=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,c=n||t.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var u=e.domain(),s=Object(Wu.getNiceTickValues)(u,o,a);return e.domain(function(e,t){return"number"===t?[Uu()(e),Lu()(e)]:e}(s,r)),{niceTicks:s}}if(o&&"number"===r){var l=e.domain();return{niceTicks:Object(Wu.getTickValuesFixedDomain)(l,o,a)}}return null},pp=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!zn()(o[t.dataKey])){var c=sr(n,"value",o[t.dataKey]);if(c)return c.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var u=Qf(o,zn()(a)?t.dataKey:a);return zn()(u)?null:t.scale(u)},dp=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},hp=function(e,t,n,r,o){var i=vr(e,mf),a=vr(e,ef),c=i.concat(a),u=vr(e,Lf),s="".concat(r,"Id"),l=r[0],f=t;if(c.length&&(f=c.reduce(function(e,t){if(t.props[s]===n&&dp(t.props,"extendDomain")&&nr(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},f)),u.length){var p="".concat(l,"1"),d="".concat(l,"2");f=u.reduce(function(e,t){if(t.props[s]===n&&dp(t.props,"extendDomain")&&nr(t.props[p])&&nr(t.props[d])){var r=t.props[p],o=t.props[d];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e},f)}return o&&o.length&&(f=o.reduce(function(e,t){return nr(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},f)),f},yp=function(e,t,n){return Object.keys(e).reduce(function(r,o){var i=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[Uu()(t.concat([e[0]]).filter(nr)),Lu()(t.concat([e[1]]).filter(nr))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},mp=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gp=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,vp=function(e,t,n){if(!Yn()(e))return t;var r=[];if(nr(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(mp.test(e[0])){var o=+mp.exec(e[0])[1];r[0]=t[0]-o}else Pn()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(nr(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(gp.test(e[1])){var i=+gp.exec(e[1])[1];r[1]=t[1]+i}else Pn()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},bp=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=Qa()(t,function(e){return e.coordinate}),r=1/0,o=1,i=n.length;o<i;o++){var a=n[o],c=n[o-1];r=Math.min((a.coordinate||0)-(c.coordinate||0),r)}return r===1/0?0:r}return 0},wp=function(e,t,n){return e&&e.length?Ni()(e,Xn()(n,"type.defaultProps.domain"))?t:e:t};function xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_p(e,t,n[t])})}return e}function _p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Op=Math.PI/180,Ep=function(e){return 180*e/Math.PI},kp=function(e,t,n,r){return{x:e+Math.cos(-Op*r)*n,y:t+Math.sin(-Op*r)*n}},Sp=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var c=(n-o)/a,u=Math.acos(c);return r>i&&(u=2*Math.PI-u),{radius:a,angle:Ep(u),angleInRadian:u}},Tp=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},Ap=function(e,t){var n=e.x,r=e.y,o=Sp({x:n,y:r},t),i=o.radius,a=o.angle,c=t.innerRadius,u=t.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var s,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;s=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;s=d>=p&&d<=f}return s?xp({},t,{radius:i,angle:Tp(d,t)}):null};function jp(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")}()}function Pp(){return(Pp=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 Cp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mp=In.a.shape({x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number}),Np=In.a.shape({cx:In.a.number,cy:In.a.number,innerRadius:In.a.number,outerRadius:In.a.number,startAngle:In.a.number,endAngle:In.a.number}),Ip=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Cp(e,t,n[t])})}return e}({},pr,{viewBox:In.a.oneOfType([Mp,Np]),formatter:In.a.func,value:In.a.oneOfType([In.a.number,In.a.string]),offset:In.a.number,position:In.a.oneOf(["top","left","right","bottom","inside","outside","insideLeft","insideRight","insideTop","insideBottom","insideTopLeft","insideBottomLeft","insideTopRight","insideBottomRight","insideStart","insideEnd","end","center","centerTop","centerBottom"]),children:In.a.oneOfType([In.a.arrayOf(In.a.node),In.a.node]),className:In.a.string,content:In.a.oneOfType([In.a.element,In.a.func])}),Rp=function(e){var t=e.value,n=e.formatter,r=zn()(e.children)?t:e.children;return Pn()(n)?n(r):r},Dp=function(e,t,n){var r,o,a=e.position,c=e.viewBox,u=e.offset,s=e.className,l=c.cx,f=c.cy,p=c.innerRadius,d=c.outerRadius,h=c.startAngle,y=c.endAngle,m=c.clockWise,g=(p+d)/2,v=function(e,t){return er(t-e)*Math.min(Math.abs(t-e),360)}(h,y),b=v>=0?1:-1;"insideStart"===a?(r=h+b*u,o=m):"insideEnd"===a?(r=y-b*u,o=!m):"end"===a&&(r=y+b*u,o=m),o=v<=0?o:!o;var w=kp(l,f,g,r),x=kp(l,f,g,r+359*(o?1:-1)),_="M".concat(w.x,",").concat(w.y,"\n    A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n    ").concat(x.x,",").concat(x.y),O=zn()(e.id)?ir("recharts-radial-line-"):e.id;return i.a.createElement("text",Pp({},n,{dominantBaseline:"central",className:Un()("recharts-radial-bar-label",s)}),i.a.createElement("defs",null,i.a.createElement("path",{id:O,d:_})),i.a.createElement("textPath",{xlinkHref:"#".concat(O)},t))},Lp=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,c=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===r){var s=kp(o,i,c+n,u),l=s.x;return{x:l,y:s.y,textAnchor:l>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=kp(o,i,(a+c)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},Fp=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.x,i=t.y,a=t.width,c=t.height,u=c>=0?1:-1;return"top"===r?{x:o+a/2,y:i-u*n,textAnchor:"middle",verticalAnchor:u>0?"end":"start"}:"bottom"===r?{x:o+a/2,y:i+c+u*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:i+c/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+a+n,y:i+c/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:i+c/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+a-n,y:i+c/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+a/2,y:i+u*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+a/2,y:i+c-u*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:i+u*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+a-n,y:i+u*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:i+c-u*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+a-n,y:i+c-u*n,textAnchor:"end",verticalAnchor:"end"}:qn()(r)&&(nr(r.x)||tr(r.x))&&(nr(r.y)||tr(r.y))?{x:o+ar(r.x,a),y:i+ar(r.y,c),textAnchor:"end",verticalAnchor:"end"}:{x:o+a/2,y:i+c/2,textAnchor:"middle",verticalAnchor:"middle"}},Up=function(e){return nr(e.cx)};function Bp(e){var t,n=e.viewBox,r=e.position,a=e.value,c=e.children,u=e.content,s=e.className,l=void 0===s?"":s;if(!n||zn()(a)&&zn()(c)&&!Object(o.isValidElement)(u)&&!Pn()(u))return null;if(Object(o.isValidElement)(u))return Object(o.cloneElement)(u,e);if(Pn()(u)){if(t=u(e),Object(o.isValidElement)(t))return t}else t=Rp(e);var f=Up(n),p=wr(e);if(f&&("insideStart"===r||"insideEnd"===r||"end"===r))return Dp(e,t,p);var d=f?Lp(e):Fp(e);return i.a.createElement(Ru,Pp({className:Un()("recharts-label",l)},p,d),t)}Bp.displayName="Label",Bp.defaultProps={offset:5},Bp.propTypes=Ip;var zp=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,c=e.radius,u=e.innerRadius,s=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,y=e.height,m=e.clockWise;if(nr(h)&&nr(y)){if(nr(l)&&nr(f))return{x:l,y:f,width:h,height:y};if(nr(p)&&nr(d))return{x:p,y:d,width:h,height:y}}return nr(l)&&nr(f)?{x:l,y:f,width:0,height:0}:nr(t)&&nr(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:s||c||a||0,clockWise:m}:e.viewBox?e.viewBox:{}},Wp=function(e,t){return e?!0===e?i.a.createElement(Bp,{key:"label-implicit",viewBox:t}):rr(e)?i.a.createElement(Bp,{key:"label-implicit",viewBox:t,value:e}):Object(o.isValidElement)(e)?e.type===Bp?Object(o.cloneElement)(e,{key:"label-implicit",viewBox:t}):i.a.createElement(Bp,{key:"label-implicit",content:e,viewBox:t}):Pn()(e)?i.a.createElement(Bp,{key:"label-implicit",content:e,viewBox:t}):qn()(e)?i.a.createElement(Bp,Pp({viewBox:t},e,{key:"label-implicit"})):null:null};Bp.parseViewBox=zp,Bp.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=zp(e),a=vr(r,Bp).map(function(e,n){return Object(o.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})});if(!n)return a;var c=Wp(e.label,t||i);return[c].concat(jp(a))};var Hp=Bp;function Gp(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")}()}function qp(){return(qp=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 Vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Yp(e,t,n[t])})}return e}function Yp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Xp={id:In.a.string,data:In.a.arrayOf(In.a.object),valueAccessor:In.a.func,clockWise:In.a.bool,dataKey:In.a.oneOfType([In.a.string,In.a.number,In.a.func])},Kp={valueAccessor:function(e){return Yn()(e.value)?hu()(e.value):e.value}};function Qp(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,a=e.id,c=$p(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?i.a.createElement(pu,{className:"recharts-label-list"},t.map(function(e,t){var u=zn()(r)?n(e,t):Qf(e&&e.payload,r),s=zn()(a)?{}:{id:"".concat(a,"-").concat(t)};return i.a.createElement(Hp,qp({},wr(e),c,s,{index:t,value:u,viewBox:Hp.parseViewBox(zn()(o)?e:Vp({},e,{clockWise:o})),key:"label-".concat(t)}))})):null}Qp.propTypes=Xp,Qp.displayName="LabelList";var Jp=function(e,t){return e?!0===e?i.a.createElement(Qp,{key:"labelList-implicit",data:t}):i.a.isValidElement(e)||Pn()(e)?i.a.createElement(Qp,{key:"labelList-implicit",data:t,content:e}):qn()(e)?i.a.createElement(Qp,qp({data:t},e,{key:"labelList-implicit"})):null:null};Qp.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=vr(r,Qp).map(function(e,n){return Object(o.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});if(!n)return i;var a=Jp(e.label,t);return[a].concat(Gp(i))},Qp.defaultProps=Kp;var Zp,ed,td,nd=Qp;function rd(e){return(rd="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 od(){return(od=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 id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ad(e,t,n[t])})}return e}function ad(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cd(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")}()}function ud(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 sd(e,t){return!t||"object"!==rd(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 ld(e){return(ld=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fd(e,t){return(fd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var pd,dd,hd,yd=Ln((td=ed=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=sd(this,(e=ld(t)).call.apply(e,[this].concat(o)))).state={isAnimationFinished:!0,totalLength:0},n.id=ir("recharts-line-"),n.cachePrevData=function(e){n.setState({prevPoints:e})},n.pathRef=function(e){n.mainCurve=e},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd()},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart()},n}var n,r,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&&fd(e,t)}(t,o["Component"]),n=t,a=[{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?cd(e).concat([0]):e,r=[],o=0;o<t;++o)r=cd(r).concat(cd(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(i.a.isValidElement(e))n=i.a.cloneElement(e,t);else if(Pn()(e))n=e(t);else{var r=Un()("recharts-line-dot",e?e.className:"");n=i.a.createElement(cu,od({},t,{className:r}))}return n}}],(r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.points;e.animationId!==n&&this.cachePrevData(r)}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"getStrokeDasharray",value:function(e,t,n){for(var r=n.reduce(function(e,t){return e+t}),o=parseInt(e/r,10),i=e%r,a=t-e,c=[],u=0,s=0;;s+=n[u],++u)if(s+n[u]>i){c=cd(n.slice(0,u)).concat([i-s]);break}var l=c.length%2==0?[0,a]:[a];return cd(this.constructor.repeat(n,o)).concat(cd(c),l).map(function(e){return"".concat(e,"px")}).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,c=vr(a,Yf);if(!c)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Qf(e.payload,t)}}return c.map(function(e,a){return i.a.cloneElement(e,{key:a,data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:u})})}},{key:"renderDots",value:function(e,t){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,a=r.points,c=r.dataKey,u=wr(this.props),s=wr(o),l=_r(o),f=a.map(function(e,t){var r=id({key:"dot-".concat(t),r:3},u,s,l,{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.constructor.renderDotItem(o,r)}),p={clipPath:e?"url(#clipPath-".concat(t,")"):null};return i.a.createElement(pu,od({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,a=o.type,c=o.layout,u=o.connectNulls,s=id({},wr(this.props),_r(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r,{type:a,layout:c,connectNulls:u});return i.a.createElement(eu,od({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.strokeDasharray,c=r.isAnimationActive,u=r.animationBegin,s=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.width,d=r.height,h=this.state,y=h.prevPoints,m=h.totalLength;return i.a.createElement(Xa,{begin:u,duration:s,isActive:c,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var i=r.t;if(y){var c=y.length/o.length,u=o.map(function(e,t){var r=Math.floor(t*c);if(y[r]){var o=y[r],a=ur(o.x,e.x),u=ur(o.y,e.y);return id({},e,{x:a(i),y:u(i)})}if(n.animateNewValues){var s=ur(2*p,e.x),l=ur(d/2,e.y);return id({},e,{x:s(i),y:l(i)})}return id({},e,{x:e.x,y:e.y})});return n.renderCurveStatically(u,e,t)}var s,l=ur(0,m)(i);if(a){var f=a.split(/[,\s]+/gim).map(function(e){return parseFloat(e)});s=n.getStrokeDasharray(l,m,f)}else s="".concat(l,"px ").concat(m-l,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:s})})}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&r&&r.length&&(!a&&c>0||!Ni()(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,a=e.xAxis,c=e.yAxis,u=e.top,s=e.left,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,y=1===r.length,m=Un()("recharts-line",o),g=a&&a.allowDataOverflow||c&&c.allowDataOverflow,v=zn()(d)?this.id:d;return i.a.createElement(pu,{className:m},g?i.a.createElement("defs",null,i.a.createElement("clipPath",{id:"clipPath-".concat(v)},i.a.createElement("rect",{x:s,y:u,width:l,height:f}))):null,!y&&this.renderCurve(g,v),this.renderErrorBar(),(y||n)&&this.renderDots(g,v),(!p||h)&&nd.renderCallByParent(this.props,r))}}])&&ud(n.prototype,r),a&&ud(n,a),t}(),ed.displayName="Line",ed.propTypes=id({},pr,dr,{className:In.a.string,type:In.a.oneOfType([In.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),In.a.func]),unit:In.a.oneOfType([In.a.string,In.a.number]),name:In.a.oneOfType([In.a.string,In.a.number]),yAxisId:In.a.oneOfType([In.a.string,In.a.number]),xAxisId:In.a.oneOfType([In.a.string,In.a.number]),yAxis:In.a.object,xAxis:In.a.object,legendType:In.a.oneOf(yr),tooltipType:In.a.oneOf(mr),layout:In.a.oneOf(["horizontal","vertical"]),connectNulls:In.a.bool,hide:In.a.bool,activeDot:In.a.oneOfType([In.a.object,In.a.element,In.a.func,In.a.bool]),dot:In.a.oneOfType([In.a.object,In.a.element,In.a.func,In.a.bool]),top:In.a.number,left:In.a.number,width:In.a.number,height:In.a.number,points:In.a.arrayOf(In.a.shape({x:In.a.number,y:In.a.number,value:In.a.value})),onAnimationStart:In.a.func,onAnimationEnd:In.a.func,isAnimationActive:In.a.bool,animateNewValues:In.a.bool,animationBegin:In.a.number,animationDuration:In.a.number,animationEasing:In.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:In.a.number,id:In.a.string}),ed.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Sr(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},ed.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,c=e.bandSize,u=e.displayedData,s=e.offset,l=t.layout;return id({points:u.map(function(e,t){var u=Qf(e,a);return"horizontal"===l?{x:pp({axis:n,ticks:o,bandSize:c,entry:e,index:t}),y:zn()(u)?null:r.scale(u),value:u,payload:e}:{x:zn()(u)?null:n.scale(u),y:pp({axis:r,ticks:i,bandSize:c,entry:e,index:t}),value:u,payload:e}}),layout:l},s)},Zp=td))||Zp;function md(e){return(md="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 gd(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 vd(e,t){return!t||"object"!==md(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 bd(e){return(bd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wd(e,t){return(wd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xd,_d,Od,Ed=Ln((hd=dd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),vd(this,bd(t).apply(this,arguments))}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&&wd(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){return null}}])&&gd(n.prototype,r),i&&gd(n,i),t}(),dd.displayName="XAxis",dd.propTypes={allowDecimals:In.a.bool,allowDuplicatedCategory:In.a.bool,hide:In.a.bool,name:In.a.oneOfType([In.a.string,In.a.number]),unit:In.a.oneOfType([In.a.string,In.a.number]),xAxisId:In.a.oneOfType([In.a.string,In.a.number]),domain:In.a.arrayOf(In.a.oneOfType([In.a.string,In.a.number,In.a.func,In.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:In.a.oneOfType([In.a.string,In.a.number,In.a.func]),width:In.a.number,height:In.a.number,mirror:In.a.bool,orientation:In.a.oneOf(["top","bottom"]),type:In.a.oneOf(["number","category"]),ticks:In.a.array,tickCount:In.a.number,tickFormatter:In.a.func,padding:In.a.shape({left:In.a.number,right:In.a.number}),allowDataOverflow:In.a.bool,scale:In.a.oneOfType([In.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),In.a.func]),tick:In.a.oneOfType([In.a.bool,In.a.func,In.a.object,In.a.element]),axisLine:In.a.oneOfType([In.a.bool,In.a.object]),tickLine:In.a.oneOfType([In.a.bool,In.a.object]),minTickGap:In.a.number,tickSize:In.a.number,interval:In.a.oneOfType([In.a.number,In.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:In.a.bool},dd.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0},pd=hd))||pd;function kd(e){return(kd="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 Sd(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 Td(e,t){return!t||"object"!==kd(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 Ad(e){return(Ad=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jd(e,t){return(jd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pd,Cd,Md,Nd=Ln((Od=_d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Td(this,Ad(t).apply(this,arguments))}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&&jd(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){return null}}])&&Sd(n.prototype,r),i&&Sd(n,i),t}(),_d.displayName="YAxis",_d.propTypes={allowDecimals:In.a.bool,allowDuplicatedCategory:In.a.bool,hide:In.a.bool,name:In.a.oneOfType([In.a.string,In.a.number]),unit:In.a.oneOfType([In.a.string,In.a.number]),yAxisId:In.a.oneOfType([In.a.string,In.a.number]),domain:In.a.arrayOf(In.a.oneOfType([In.a.string,In.a.number,In.a.func,In.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:In.a.oneOfType([In.a.string,In.a.number,In.a.func]),ticks:In.a.array,tickCount:In.a.number,tickFormatter:In.a.func,width:In.a.number,height:In.a.number,mirror:In.a.bool,orientation:In.a.oneOf(["left","right"]),type:In.a.oneOf(["number","category"]),padding:In.a.shape({top:In.a.number,bottom:In.a.number}),allowDataOverflow:In.a.bool,scale:In.a.oneOfType([In.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),In.a.func]),tick:In.a.oneOfType([In.a.bool,In.a.func,In.a.object,In.a.element]),axisLine:In.a.oneOfType([In.a.bool,In.a.object]),tickLine:In.a.oneOfType([In.a.bool,In.a.object]),minTickGap:In.a.number,tickSize:In.a.number,interval:In.a.oneOfType([In.a.number,In.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:In.a.bool},_d.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1},xd=Od))||xd,Id=n(229),Rd=n.n(Id),Dd=n(64),Ld=n.n(Dd),Fd=n(230),Ud=n.n(Fd);function Bd(e){return(Bd="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 zd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wd(){return(Wd=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 Hd(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 Gd(e,t){return!t||"object"!==Bd(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 qd(e){return(qd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vd(e,t){return(Vd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yd,$d,Xd,Kd=Ln((Md=Cd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Gd(this,qd(t).apply(this,arguments))}var n,r,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&&Vd(e,t)}(t,o["Component"]),n=t,a=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],(r=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.top,c=e.left,u=e.className;return nr(t)&&nr(n)&&nr(r)&&nr(o)&&nr(a)&&nr(c)?i.a.createElement("path",Wd({},wr(this.props),{className:Un()("recharts-cross",u),d:this.constructor.getPath(t,n,r,o,a,c)})):null}}])&&Hd(n.prototype,r),a&&Hd(n,a),t}(),Cd.displayName="Cross",Cd.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){zd(e,t,n[t])})}return e}({},pr,{x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number,top:In.a.number,left:In.a.number,className:In.a.string}),Cd.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0},Pd=Md))||Pd;function Qd(e){return(Qd="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 Jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zd(){return(Zd=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 eh(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 th(e,t){return!t||"object"!==Qd(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 nh(e){return(nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rh(e,t){return(rh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oh=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,c=e.cornerRadius,u=e.cornerIsExternal,s=c*(a?1:-1)+r,l=Math.asin(c/s)/Op,f=u?o:o+i*l,p=u?o-i*l:o;return{center:kp(t,n,s,f),circleTangency:kp(t,n,r,f),lineTangency:kp(t,n,s*Math.cos(l*Op),p),theta:l}},ih=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return er(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),c=i+a,u=kp(t,n,o,i),s=kp(t,n,o,c),l="M ".concat(u.x,",").concat(u.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n    ").concat(s.x,",").concat(s.y,"\n  ");if(r>0){var f=kp(t,n,r,i),p=kp(t,n,r,c);l+="L ".concat(p.x,",").concat(p.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n            ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},ah=Ln((Xd=$d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),th(this,nh(t).apply(this,arguments))}var n,r,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&&rh(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,u=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,f=e.className;if(o<r||s===l)return null;var p,d=Un()("recharts-sector",f),h=o-r,y=ar(a,h,0,!0);return p=y>0&&Math.abs(s-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,s=e.endAngle,l=er(s-u),f=oh({cx:t,cy:n,radius:o,angle:u,sign:l,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,y=oh({cx:t,cy:n,radius:o,angle:s,sign:-l,cornerRadius:i,cornerIsExternal:c}),m=y.circleTangency,g=y.lineTangency,v=y.theta,b=Math.abs(u-s)-h-v;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n      "):ih({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:s});var w="M ".concat(d.x,",").concat(d.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(m.x,",").concat(m.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(g.x,",").concat(g.y,"\n  ");if(r>0){var x=oh({cx:t,cy:n,radius:r,angle:u,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),_=x.circleTangency,O=x.lineTangency,E=x.theta,k=oh({cx:t,cy:n,radius:r,angle:s,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),S=k.circleTangency,T=k.lineTangency,A=k.theta,j=Math.abs(u-s)-E-A;if(j<0)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(T.x,",").concat(T.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(y,h/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:s,endAngle:l}):ih({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:l}),i.a.createElement("path",Zd({},wr(this.props),_r(this.props),{className:d,d:p}))}}])&&eh(n.prototype,r),a&&eh(n,a),t}(),$d.displayName="Sector",$d.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Jd(e,t,n[t])})}return e}({},pr,{className:In.a.string,cx:In.a.number,cy:In.a.number,innerRadius:In.a.number,outerRadius:In.a.number,startAngle:In.a.number,endAngle:In.a.number,cornerRadius:In.a.oneOfType([In.a.number,In.a.string]),forceCornerRadius:In.a.bool,cornerIsExternal:In.a.bool}),$d.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Yd=Xd))||Yd;function ch(e){return(ch="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 uh(){return(uh=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 sh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){lh(e,t,n[t])})}return e}function lh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ph(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 dh(e,t){return!t||"object"!==ch(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 hh(e){return(hh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yh(e,t){return(yh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mh=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dh(this,hh(t).apply(this,arguments))}var n,r,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&&yh(e,t)}(t,o["Component"]),n=t,a=[{key:"getTicks",value:function(e){var n=e.tick,r=e.ticks,o=e.viewBox,i=e.minTickGap,a=e.orientation,c=e.interval,u=e.tickFormatter,s=e.unit;return r&&r.length&&n?nr(c)||Sr()?t.getNumberIntervalTicks(r,nr(c)?c:0):"preserveStartEnd"===c?t.getTicksStart({ticks:r,tickFormatter:u,viewBox:o,orientation:a,minTickGap:i,unit:s},!0):"preserveStart"===c?t.getTicksStart({ticks:r,tickFormatter:u,viewBox:o,orientation:a,minTickGap:i,unit:s}):t.getTicksEnd({ticks:r,tickFormatter:u,viewBox:o,orientation:a,minTickGap:i,unit:s}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter(function(e,n){return n%(t+1)==0})}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,c=e.orientation,u=e.minTickGap,s=e.unit,l=a.x,f=a.y,p=a.width,d=a.height,h="top"===c||"bottom"===c?"width":"height",y=(o||[]).slice(),m=s&&"width"===h?Eu(s)[h]:0,g=y.length,v=g>=2?er(y[1].coordinate-y[0].coordinate):1;if(1===v?(n="width"===h?l:f,r="width"===h?l+p:f+d):(n="width"===h?l+p:f+d,r="width"===h?l:f),t){var b=o[g-1],w=Pn()(i)?i(b.value):b.value,x=Eu(w)[h]+m,_=v*(b.coordinate+v*x/2-r);y[g-1]=b=sh({},b,{tickCoord:_>0?b.coordinate-_*v:b.coordinate}),v*(b.tickCoord-v*x/2-n)>=0&&v*(b.tickCoord+v*x/2-r)<=0&&(r=b.tickCoord-v*(x/2+u),y[g-1]=sh({},b,{isShow:!0}))}for(var O=t?g-1:g,E=0;E<O;E++){var k=y[E],S=Pn()(i)?i(k.value):k.value,T=Eu(S)[h]+m;if(0===E){var A=v*(k.coordinate-v*T/2-n);y[E]=k=sh({},k,{tickCoord:A<0?k.coordinate-A*v:k.coordinate})}else y[E]=k=sh({},k,{tickCoord:k.coordinate});v*(k.tickCoord-v*T/2-n)>=0&&v*(k.tickCoord+v*T/2-r)<=0&&(n=k.tickCoord+v*(T/2+u),y[E]=sh({},k,{isShow:!0}))}return y.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,c=e.minTickGap,u=e.unit,s=i.x,l=i.y,f=i.width,p=i.height,d="top"===a||"bottom"===a?"width":"height",h=u&&"width"===d?Eu(u)[d]:0,y=(r||[]).slice(),m=y.length,g=m>=2?er(y[1].coordinate-y[0].coordinate):1;1===g?(t="width"===d?s:l,n="width"===d?s+f:l+p):(t="width"===d?s+f:l+p,n="width"===d?s:l);for(var v=m-1;v>=0;v--){var b=y[v],w=Pn()(o)?o(b.value):b.value,x=Eu(w)[d]+h;if(v===m-1){var _=g*(b.coordinate+g*x/2-n);y[v]=b=sh({},b,{tickCoord:_>0?b.coordinate-_*g:b.coordinate})}else y[v]=b=sh({},b,{tickCoord:b.coordinate});g*(b.tickCoord-g*x/2-t)>=0&&g*(b.tickCoord+g*x/2-n)<=0&&(n=b.tickCoord-g*(x/2+c),y[v]=sh({},b,{isShow:!0}))}return y.filter(function(e){return e.isShow})}},{key:"renderTickItem",value:function(e,t,n){return i.a.isValidElement(e)?i.a.cloneElement(e,t):Pn()(e)?e(t):i.a.createElement(Ru,uh({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=fh(e,["viewBox"]),o=this.props,i=o.viewBox,a=fh(o,["viewBox"]);return!Rn(n,i)||!Rn(r,a)||!Rn(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,c=this.props,u=c.x,s=c.y,l=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,y=c.tickMargin,m=h?-1:1,g=e.tickSize||d,v=nr(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=s+!h*f)-m*g)-m*y,i=v;break;case"left":r=o=e.coordinate,i=(t=(n=u+!h*l)-m*g)-m*y,a=v;break;case"right":r=o=e.coordinate,i=(t=(n=u+h*l)+m*g)+m*y,a=v;break;default:t=n=e.coordinate,a=(r=(o=s+h*f)+m*g)+m*y,i=v}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,c=e.axisLine,u=e.mirror,s=sh({},wr(this.props),{fill:"none"},wr(c));if("top"===a||"bottom"===a){var l="top"===a&&!u||"bottom"===a&&u;s=sh({},s,{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f="left"===a&&!u||"right"===a&&u;s=sh({},s,{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return i.a.createElement("line",uh({className:"recharts-cartesian-axis-line"},s))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,a=r.stroke,c=r.tick,u=r.tickFormatter,s=r.unit,l=t.getTicks(sh({},this.props,{ticks:e})),f=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=wr(this.props),h=wr(c),y=sh({},d,{fill:"none"},wr(o)),m=l.map(function(e,t){var r=n.getTickLineCoord(e),m=r.line,g=r.tick,v=sh({textAnchor:f,verticalAnchor:p},d,{stroke:"none",fill:a},h,g,{index:t,payload:e,visibleTicksCount:l.length});return i.a.createElement(pu,uh({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},Er(n.props,e,t)),o&&i.a.createElement("line",uh({className:"recharts-cartesian-axis-tick-line"},y,m)),c&&n.constructor.renderTickItem(c,v,"".concat(Pn()(u)?u(e.value):e.value).concat(s||"")))});return i.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,s=fh(c,["ticks"]),l=u;return Pn()(o)&&(l=u&&u.length>0?o(this.props):o(s)),n<=0||r<=0||!l||!l.length?null:i.a.createElement(pu,{className:Un()("recharts-cartesian-axis",a)},t&&this.renderAxisLine(),this.renderTicks(l),Hp.renderCallByParent(this.props))}}])&&ph(n.prototype,r),a&&ph(n,a),t}();mh.displayName="CartesianAxis",mh.propTypes=sh({},pr,dr,{className:In.a.string,x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number,orientation:In.a.oneOf(["top","bottom","left","right"]),viewBox:In.a.shape({x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number}),tick:In.a.oneOfType([In.a.bool,In.a.func,In.a.object,In.a.element]),axisLine:In.a.oneOfType([In.a.bool,In.a.object]),tickLine:In.a.oneOfType([In.a.bool,In.a.object]),mirror:In.a.bool,tickMargin:In.a.number.isRequired,minTickGap:In.a.number,ticks:In.a.array,tickSize:In.a.number,stroke:In.a.string,tickFormatter:In.a.func,ticksGenerator:In.a.func,interval:In.a.oneOfType([In.a.number,In.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),mh.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var gh=mh;function vh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bh,wh,xh,_h=["Webkit","Moz","O","ms"],Oh=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=_h.reduce(function(e,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){vh(e,t,n[t])})}return e}({},e,vh({},r+n,t))},{});return r[e]=t,r};function Eh(e){return(Eh="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 kh(){return(kh=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 Sh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Th(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 Ah(e){return(Ah=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jh(e,t){return(jh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ph(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ch=Ln((xh=wh=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Eh(t)&&"function"!=typeof t?Ph(e):t}(this,Ah(t).call(this,e))).handleDrag=function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(Ph(Ph(n)),"startX"),endX:n.handleTravellerDragStart.bind(Ph(Ph(n)),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,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&&jh(e,t)}(t,o["Component"]),n=t,a=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,c=n.updateId;(e.data!==r||e.updateId!==c)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===o&&e.x===i&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.props,o=r.gap,i=r.data.length-1,a=Math.min(t,n),c=Math.max(t,n),u=this.constructor.getIndexInRange(this.scaleValues,a),s=this.constructor.getIndexInRange(this.scaleValues,c);return{startIndex:u-u%o,endIndex:s===i?i:s-s%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=Qf(n[e],o,e);return Pn()(r)?r(i):i}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,s=i.startIndex,l=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+c-u-o,a+c-u-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===s&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,c=this.state[o],u=this.props,s=u.x,l=u.width,f=u.travellerWidth,p=u.onChange,d=u.gap,h=u.data,y={startX:this.state.startX,endX:this.state.endX},m=e.pageX-r;m>0?m=Math.min(m,s+l-f-c):m<0&&(m=Math.max(m,s-c)),y[o]=c+m;var g=this.getIndex(y),v=g.startIndex,b=g.endIndex;this.setState((Sh(t={},o,c+m),Sh(t,"brushMoveStartX",e.pageX),t),function(){var e;p&&(e=h.length-1,("startX"===o&&(i>a?v%d==0:b%d==0)||i<a&&b===e||"endX"===o&&(i>a?b%d==0:v%d==0)||i>a&&b===e)&&p(g))})}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,a=e.width,c=e.travellerWidth,u=n.length;return this.scale=vs().domain(Ld()(0,u)).range([i,i+a-c]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,c=e.stroke;return i.a.createElement("rect",{stroke:c,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,a=e.height,c=e.data,u=e.children,s=e.padding,l=o.Children.only(u);return l?i.a.cloneElement(l,{x:t,y:n,width:r,height:a,margin:s,compact:!0,data:c}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,a=n.height,c=n.stroke,u=Math.floor(r+a/2)-1,s=Math.max(e,this.props.x);return i.a.createElement(pu,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},i.a.createElement("rect",{x:s,y:r,width:o,height:a,fill:c,stroke:"none"}),i.a.createElement("line",{x1:s+1,y1:u,x2:s+o-1,y2:u,fill:"none",stroke:"#fff"}),i.a.createElement("line",{x1:s+1,y1:u+2,x2:s+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke;return i.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,c=e.stroke,u=this.state,s=u.startX,l=u.endX,f={pointerEvents:"none",fill:c};return i.a.createElement(pu,{className:"recharts-brush-texts"},i.a.createElement(Ru,kh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,l)-5,y:r+o/2},f),this.getTextOfTick(t)),i.a.createElement(Ru,kh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,l)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,c=e.width,u=e.height,s=this.state,l=s.startX,f=s.endX,p=s.isTextActive,d=s.isSlideMoving,h=s.isTravellerMoving;if(!t||!t.length||!nr(o)||!nr(a)||!nr(c)||!nr(u)||c<=0||u<=0)return null;var y=Un()("recharts-brush",n),m=1===i.a.Children.count(r),g=Oh("userSelect","none");return i.a.createElement(pu,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(l,f),this.renderTraveller(l,"startX"),this.renderTraveller(f,"endX"),(p||d||h)&&this.renderText())}}])&&Th(n.prototype,r),a&&Th(n,a),t}(),wh.displayName="Brush",wh.propTypes={className:In.a.string,fill:In.a.string,stroke:In.a.string,x:In.a.number,y:In.a.number,width:In.a.number,height:In.a.number.isRequired,travellerWidth:In.a.number,gap:In.a.number,padding:In.a.shape({top:In.a.number,right:In.a.number,bottom:In.a.number,left:In.a.number}),dataKey:In.a.oneOfType([In.a.string,In.a.number,In.a.func]),data:In.a.array,startIndex:In.a.number,endIndex:In.a.number,tickFormatter:In.a.func,children:In.a.node,onChange:In.a.func,updateId:In.a.oneOfType([In.a.string,In.a.number]),leaveTimeOut:In.a.number},wh.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3},bh=xh))||bh,Mh=n(231),Nh=new(n.n(Mh).a);Nh.setMaxListeners&&Nh.setMaxListeners(10);var Ih="recharts.syncMouseEvents";function Rh(e){return(Rh="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 Dh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lh(){return(Lh=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 Fh(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")}()}function Uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Bh(e,t,n[t])})}return e}function Bh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zh(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 Wh(e){return(Wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hh(e,t){return(Hh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var qh={xAxis:["bottom","top"],yAxis:["left","right"]},Vh={x:0,y:0},Yh=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.eventType,a=void 0===r?"axis":r,c=e.axisComponents,u=e.legendContent,s=e.formatAxisMap,l=e.defaultProps,f=e.propTypes,p=function(e){function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=function(e,t){return!t||"object"!==Rh(t)&&"function"!=typeof t?Gh(e):t}(this,Wh(r).call(this,e))).handleLegendBBoxUpdate=function(e){if(e&&n.legendInstance){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i}))}},n.handleReceiveSyncEvent=function(e,t,r){var o=n.props,i=o.syncId,a=o.layout,c=n.state.updateId;if(i===e&&t!==n.uniqueChartId){var u=r.dataStartIndex,s=r.dataEndIndex;if(zn()(r.dataStartIndex)&&zn()(r.dataEndIndex))if(zn()(r.activeTooltipIndex))n.setState(r);else{var l=r.chartX,f=r.chartY,p=r.activeTooltipIndex,d=n.state,h=d.offset,y=d.tooltipTicks;if(!h)return;var m=Uh({},h,{x:h.left,y:h.top}),g=Math.min(l,m.x+m.width),v=Math.min(f,m.y+m.height),b=y[p]&&y[p].value,w=n.getTooltipContent(p),x=y[p]?{x:"horizontal"===a?y[p].coordinate:g,y:"horizontal"===a?v:y[p].coordinate}:Vh;n.setState(Uh({},r,{activeLabel:b,activeCoordinate:x,activePayload:w}))}else n.setState(Uh({dataStartIndex:u,dataEndIndex:s},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:u,dataEndIndex:s,updateId:c})))}},n.handleBrushChange=function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState(function(){return Uh({dataStartIndex:t,dataEndIndex:r},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o}))}),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}},n.handleMouseEnter=function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=Uh({},r,{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),Pn()(t)&&t(o,e)}},n.triggeredAfterMouseMove=function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?Uh({},r,{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),Pn()(t)&&t(o,e)},n.handleItemMouseEnter=function(e){n.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})},n.handleItemMouseLeave=function(){n.setState(function(){return{isTooltipActive:!1}})},n.handleMouseMove=function(e){e&&Pn()(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)},n.handleMouseLeave=function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),Pn()(t)&&t(r,e)},n.handleOuterEvent=function(e){var t=Cr(e);if(t&&Pn()(n.props[t])){var r=n.getMouseInfo(e);(0,n.props[t])(r,e)}},n.handleClick=function(e){var t=n.props.onClick;Pn()(t)&&t(n.getMouseInfo(e),e)},n.handleMouseDown=function(e){var t=n.props.onMouseDown;Pn()(t)&&t(n.getMouseInfo(e),e)},n.handleMouseUp=function(e){var t=n.props.onMouseUp;Pn()(t)&&t(n.getMouseInfo(e),e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return op(gh.getTicks(Uh({},gh.defaultProps,t,{ticks:ip(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return op(gh.getTicks(Uh({},gh.defaultProps,t,{ticks:ip(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return ip(e,!0)},n.tooltipTicksGenerator=function(e){var t=cr(e),n=ip(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Qa()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:bp(t)}},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,u=r.offset;if(!(e&&e.props.cursor&&i&&a))return null;var s,l=n.props.layout,f=eu;if("ScatterChart"===t)s=a,f=Kd;else if("BarChart"===t)s=n.getCursorRectangle(),f=Af;else if("radial"===l){var p=n.getCursorPoints(),d=p.cx,h=p.cy,y=p.radius;s={cx:d,cy:h,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:y,outerRadius:y},f=ah}else s={points:n.getCursorPoints()},f=eu;var m=e.key||"_recharts-cursor",g=Uh({stroke:"#ccc",pointerEvents:"none"},u,s,wr(e.props.cursor),{payload:c,key:m,className:"recharts-tooltip-cursor"});return Object(o.isValidElement)(e.props.cursor)?Object(o.cloneElement)(e.props.cursor,g):Object(o.createElement)(f,g)},n.renderPolarAxis=function(e,t,r){var i=e.type.axisType,a=n.state["".concat(i,"Map")][e.props["".concat(i,"Id")]];return Object(o.cloneElement)(e,Uh({},a,{className:i,key:e.key||"".concat(t,"-").concat(r),ticks:ip(a,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,i=t.yAxisMap,a=t.offset,c=n.props,u=c.width,s=c.height,l=cr(r),f=Rd()(i,function(e){return jl()(e.domain,Number.isFinite)})||cr(i),p=e.props||{};return Object(o.cloneElement)(e,{key:e.key||"grid",x:nr(p.x)?p.x:a.left,y:nr(p.y)?p.y:a.top,width:nr(p.width)?p.width:a.width,height:nr(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:u,chartHeight:s,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,i=t.angleAxisMap,a=cr(r),c=cr(i),u=c.cx,s=c.cy,l=c.innerRadius,f=c.outerRadius;return Object(o.cloneElement)(e,{polarAngles:ip(c,!0).map(function(e){return e.coordinate}),polarRadius:ip(a,!0).map(function(e){return e.coordinate}),cx:u,cy:s,innerRadius:l,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,i=t.data,a=n.state,c=a.offset,u=a.dataStartIndex,s=a.dataEndIndex,l=a.updateId;return Object(o.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:ap(n.handleBrushChange,null,e.props.onChange),data:i,x:nr(e.props.x)?e.props.x:c.left,y:nr(e.props.y)?e.props.y:c.top+c.height+c.brushBottom-(r.bottom||0),width:nr(e.props.width)?e.props.width:c.width,startIndex:u,endIndex:s,updateId:"brush-".concat(l)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var i=Gh(Gh(n)).clipPathId,a=n.state,c=a.xAxisMap,u=a.yAxisMap,s=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return Object(o.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:c[f],yAxis:u[p],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:i})},n.renderGraphicChild=function(e,t,r){var i=n.filterFormatItem(e,t,r);if(!i)return null;var a,c,u=Object(o.cloneElement)(e,i.props),s=n.state,l=s.isTooltipActive,f=s.tooltipAxis,p=s.activeTooltipIndex,d=s.activeLabel,h=n.props.children,y=br(h,kc),m=i.props,g=m.points,v=m.isRange,b=m.baseLine,w=i.item.props,x=w.activeDot;if(!w.hide&&l&&y&&x&&p>=0&&(f.dataKey&&!f.allowDuplicatedCategory?(a=sr(g,"payload.".concat(f.dataKey),d),c=v&&b&&sr(b,"payload.".concat(f.dataKey),d)):(a=g[p],c=v&&b&&b[p]),!zn()(a)))return[u].concat(Fh(n.renderActivePoints({item:i,activePoint:a,basePoint:c,childIndex:p,isRange:v})));return v?[u,null,null]:[u,null]},n.renderCustomized=function(e){return Object(o.cloneElement)(e,Uh({},n.props,n.state))};var i=n.constructor.createDefaultState(e);return n.state=Uh({},i,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(Uh({props:e},i,{updateId:0}))),n.uniqueChartId=zn()(e.id)?ir("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=Ud()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var l,f,p;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&&Hh(e,t)}(r,o["Component"]),l=r,p=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=Object(o.isValidElement)(e)?Object(o.cloneElement)(e,t):Pn()(e)?e(t):i.a.createElement(cu,t),i.a.createElement(pu,{className:"recharts-active-dot",key:t.key},n)}}],(f=[{key:"componentDidMount",value:function(){zn()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.children,i=n.width,a=n.height,c=n.layout,u=n.stackOffset,s=n.margin,l=this.state.updateId;if(e.data===r&&e.width===i&&e.height===a&&e.layout===c&&e.stackOffset===u&&Rn(e.margin,s)){if(!jr(e.children,o)){var f=!zn()(e.data)?l:l+1;this.setState(function(n){return Uh({updateId:f},t.updateStateOfAxisMapsOffsetAndStackGroups(Uh({props:e},n,{updateId:f})))})}}else{var p=this.constructor.createDefaultState(e);this.setState(Uh({},p,{updateId:l+1},this.updateStateOfAxisMapsOffsetAndStackGroups(Uh({props:e},p,{updateId:l+1}))))}zn()(this.props.syncId)&&!zn()(e.syncId)&&this.addListener(),!zn()(this.props.syncId)&&zn()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){zn()(this.props.syncId)||this.removeListener(),"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,s=e.children,l="".concat(r,"Id"),f=vr(s,o),p={};return f&&f.length?p=this.getAxisMapByAxes(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=this.getAxisMapByItems(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,o=t.graphicalItems,i=t.axisType,a=t.axisIdKey,c=t.stackGroups,u=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,f=e.children,p=e.stackOffset,d=rp(l,i);return r.reduce(function(t,r){var h=r.props,y=h.type,m=h.dataKey,g=h.allowDataOverflow,v=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=r.props[a],_=n.constructor.getDisplayedData(e,{graphicalItems:o.filter(function(e){return e.props[a]===x}),dataStartIndex:u,dataEndIndex:s}),O=_.length;if(!t[x]){var E,k,S;if(m){if(E=Jf(_,m,y),"category"===y&&d){var T=function(e){if(!Yn()(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(E);v&&T?(k=E,E=Ld()(0,O)):v||(E=wp(r.props.domain,E,r).reduce(function(e,t){return e.indexOf(t)>=0?e:Fh(e).concat([t])},[]))}else if("category"===y)E=v?E.filter(function(e){return""!==e&&!zn()(e)}):wp(r.props.domain,E,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||zn()(t)?e:Fh(e).concat([t])},[]);else if("number"===y){var A=function(e,t,n,r){var o=t.map(function(t){return tp(e,t,n,r)}).filter(function(e){return!zn()(e)});return o&&o.length?o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null}(_,o.filter(function(e){return e.props[a]===x&&!e.props.hide}),m,i);A&&(E=A)}!d||"number"!==y&&"auto"===b||(S=Jf(_,m,"category"))}else E=d?Ld()(0,O):c&&c[x]&&c[x].hasStack&&"number"===y?"expand"===p?[0,1]:yp(c[x].stackGroups,u,s):np(_,o.filter(function(e){return e.props[a]===x&&!e.props.hide}),y,!0);return"number"===y&&(E=hp(f,E,x,i,w),r.props.domain&&(E=vp(r.props.domain,E,g))),Uh({},t,Bh({},x,Uh({},r.props,{axisType:i,domain:E,categoricalDomain:S,duplicateDomain:k,originalDomain:r.props.domain,isCategorial:d,layout:l})))}return t},{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,l=e.children,f=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=rp(s,o),h=-1;return n.reduce(function(e,t){var y,m=t.props[i];return e[m]?e:(h++,d?y=Ld()(0,p):a&&a[m]&&a[m].hasStack?(y=yp(a[m].stackGroups,c,u),y=hp(l,y,m,o)):(y=vp(r.defaultProps.domain,np(f,n.filter(function(e){return e.props[i]===m&&!e.props.hide}),"number"),r.defaultProps.allowDataOverflow),y=hp(l,y,m,o)),Uh({},e,Bh({},m,Uh({axisType:o},r.defaultProps,{hide:!0,orientation:qh[o]&&qh[o][h%2],domain:y,originalDomain:r.defaultProps.domain,isCategorial:d,layout:s}))))},{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,o=e.find(function(e){return e&&e.index===t});if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var i=o.coordinate,a=n.radius;return Uh({},n,kp(n.cx,n.cy,a,i),{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return Uh({},n,kp(n.cx,n.cy,c,u),{angle:u,radius:c})}return Vh}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,o=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var c=this.state,u=c.xAxisMap,s=c.yAxisMap;if("axis"!==a&&u&&s){var l=cr(u).scale,f=cr(s).scale;return Uh({},o,{xValue:l&&l.invert?l.invert(o.chartX):null,yValue:f&&f.invert?f.invert(o.chartY):null})}var p=this.state,d=p.orderedTooltipTicks,h=p.tooltipAxis,y=p.tooltipTicks,m=function(e,t,n,r){var o=-1,i=t.length;if(i>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,c=0;c<i;c++){var u=c>0?n[c-1].coordinate:n[i-1].coordinate,s=n[c].coordinate,l=c>=i-1?n[0].coordinate:n[c+1].coordinate,f=void 0;if(er(s-u)!==er(l-s)){var p=[];if(er(l-s)===er(a[1]-a[0])){f=l;var d=s+a[1]-a[0];p[0]=Math.min(d,(d+u)/2),p[1]=Math.max(d,(d+u)/2)}else{f=u;var h=l+a[1]-a[0];p[0]=Math.min(s,(h+s)/2),p[1]=Math.max(s,(h+s)/2)}var y=[Math.min(s,(f+s)/2),Math.max(s,(f+s)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){o=n[c].index;break}}else{var m=Math.min(u,l),g=Math.max(u,l);if(e>(m+s)/2&&e<=(g+s)/2){o=n[c].index;break}}}else for(var v=0;v<i;v++)if(0===v&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v>0&&v<i-1&&e>(t[v].coordinate+t[v-1].coordinate)/2&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v===i-1&&e>(t[v].coordinate+t[v-1].coordinate)/2){o=t[v].index;break}}else o=0;return o}(this.calculateTooltipPos(i),d,y,h);if(m>=0&&y){var g=y[m]&&y[m].value;return Uh({},o,{activeTooltipIndex:m,activeLabel:g,activePayload:this.getTooltipContent(m,g),activeCoordinate:this.getActiveCoordinate(d,m,i)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,i=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=i.length?null:r.reduce(function(n,r){if(r.props.hide)return n;var a,c=r.props,u=c.dataKey,s=c.name,l=c.unit,f=c.formatter,p=c.data,d=c.tooltipType;return(a=o.dataKey&&!o.allowDuplicatedCategory?sr(p||i,o.dataKey,t):i[e])?Fh(n).concat([Uh({},wr(r),{dataKey:u,unit:l,formatter:f,name:s||u,color:Zf(r),value:Qf(a,u),type:d,payload:a})]):n},[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,i=t.stackGroups,a=t.offset,u=t.updateId,s=t.dataStartIndex,l=t.dataEndIndex,f=e.barSize,p=e.layout,d=e.barGap,h=e.barCategoryGap,y=e.maxBarSize,m=this.constructor.getAxisNameByLayout(p),g=m.numericAxisName,v=m.cateAxisName,b=this.constructor.hasBar(r),w=b&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,c=i.length;a<c;a++)for(var u=r[i[a]].stackGroups,s=Object.keys(u),l=0,f=s.length;l<f;l++){var p=u[s[l]],d=p.items,h=p.cateAxisId,y=d.filter(function(e){return gr(e.type).indexOf("Bar")>=0});if(y&&y.length){var m=y[0].props.barSize,g=y[0].props[h];o[g]||(o[g]=[]),o[g].push({item:y[0],stackList:y.slice(1),barSize:zn()(m)?t:m})}}return o}({barSize:f,stackGroups:i}),x=[];return r.forEach(function(r,f){var m,_,O,E,k=n.constructor.getDisplayedData(e,{dataStartIndex:s,dataEndIndex:l},r),S=r.props,T=S.dataKey,A=S.maxBarSize,j=r.props["".concat(g,"Id")],P=r.props["".concat(v,"Id")],C=c.reduce(function(e,n){var o,i=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],c=i&&i[a];return Uh({},e,(Bh(o={},n.axisType,c),Bh(o,"".concat(n.axisType,"Ticks"),ip(c)),o))},{}),M=C[v],N=C["".concat(v,"Ticks")],I=i&&i[j]&&i[j].hasStack&&function(e,t){var n=e.props.stackId;if(rr(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(r,i[j].stackGroups),R=bp(M,N),D=zn()(A)?y:A,L=b&&function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,c=i.length;if(c<1)return null;var u,s=ar(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/c,p=i.reduce(function(e,t){return e+t.barSize||0},0);(p+=(c-1)*s)>=r&&(p-=(c-1)*s,s=0),p>=r&&f>0&&(l=!0,p=c*(f*=.9));var d={offset:((r-p)/2>>0)-s,size:0};u=i.reduce(function(e,t){var n=$f(e).concat([{item:t.item,position:{offset:d.offset+d.size+s,size:l?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:d})}),n},[])}else{var h=ar(n,r,0,!0);r-2*h-(c-1)*s<=0&&(s=0);var y=(r-2*h-(c-1)*s)/c;y>1&&(y>>=0);var m=a===+a?Math.min(y,a):y;u=i.reduce(function(e,t,n){var r=$f(e).concat([{item:t.item,position:{offset:h+(y+s)*n+(y-m)/2,size:m}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},[])}return u}({barGap:d,barCategoryGap:h,bandSize:R,sizeList:w[P],maxBarSize:D}),F=r&&r.type&&r.type.getComposedData;F&&x.push({props:Uh({},F(Uh({},C,{displayedData:k,props:e,dataKey:T,item:r,bandSize:R,barPosition:L,offset:a,stackedData:I,layout:p,dataStartIndex:s,dataEndIndex:l,onItemMouseLeave:ap(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:ap(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(m={key:r.key||"item-".concat(f)},Bh(m,g,C[g]),Bh(m,v,C[v]),Bh(m,"animationId",u),m)),childIndex:(_=r,O=e.children,E=-1,o.Children.forEach(O,function(e,t){e===_&&(E=t)}),E),item:r})}),x}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,c=i.offset;if("horizontal"===o)n=e=a.x,t=c.top,r=c.top+c.height;else if("vertical"===o)r=t=a.y,e=c.left,n=c.left+c.width;else if(!zn()(a.cx)||!zn()(a.cy)){if("centric"!==o){var u=a.cx,s=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[kp(u,s,l,f),kp(u,s,l,p)],cx:u,cy:s,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,y=a.innerRadius,m=a.outerRadius,g=a.angle,v=kp(d,h,y,g),b=kp(d,h,m,g);e=v.x,t=v.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var c=cr(i);return Ap({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=br(e,kc)&&"axis"===a?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return Uh({},_r(this.props,this.handleOuterEvent),t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,u=e.updateId;if(!kr({props:o}))return null;var l=o.children,f=o.layout,p=o.stackOffset,d=o.data,h=o.reverseStackOrder,y=this.constructor.getAxisNameByLayout(f),m=y.numericAxisName,g=y.cateAxisName,v=vr(l,n),b=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce(function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],c=e[a]||{hasStack:!1,stackGroups:{}};if(rr(i)){var u=c.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(t),c.hasStack=!0,c.stackGroups[i]=u}else c.stackGroups[ir("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Xf({},e,Kf({},a,c))},{});return Object.keys(a).reduce(function(t,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce(function(t,i){var a=c.stackGroups[i];return Xf({},t,Kf({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:lp(e,a.items,o)}))},{})),Xf({},t,Kf({},i,c))},{})}(d,v,"".concat(m,"Id"),"".concat(g,"Id"),p,h),w=c.reduce(function(e,t){return Uh({},e,Bh({},"".concat(t.axisType,"Map"),r.getAxisMap(o,Uh({},t,{graphicalItems:v,stackGroups:t.axisType===m&&b,dataStartIndex:i,dataEndIndex:a}))))},{}),x=this.calculateOffset(Uh({},w,{props:o,graphicalItems:v}));Object.keys(w).forEach(function(e){w[e]=s(o,w[e],x,e.replace("Map",""),t)});var _=w["".concat(g,"Map")],O=this.tooltipTicksGenerator(_),E=this.getFormatItems(o,Uh({},w,{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:v,stackGroups:b,offset:x}));return Uh({formatedGraphicalItems:E,graphicalItems:v,offset:x,stackGroups:b},O,w)}},{key:"addListener",value:function(){Nh.on(Ih,this.handleReceiveSyncEvent),Nh.setMaxListeners&&Nh._maxListeners&&Nh.setMaxListeners(Nh._maxListeners+1)}},{key:"removeListener",value:function(){Nh.removeListener(Ih,this.handleReceiveSyncEvent),Nh.setMaxListeners&&Nh._maxListeners&&Nh.setMaxListeners(Nh._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,c=t.width,u=t.height,s=t.children,l=t.margin||{},f=br(s,Ch),p=br(s,Ci),d=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:Uh({},e,Bh({},r,e[r]+n.width))},{left:l.left||0,right:l.right||0}),h=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:Uh({},e,Bh({},r,e[r]+n.height))},{top:l.top||0,bottom:l.bottom||0}),y=Uh({},h,d),m=y.bottom;(f&&(y.bottom+=f.props.height||Ch.defaultProps.height),p&&this.legendInstance)&&(y=function(e,t,n,r){var o=n.children,i=n.width,a=n.height,c=n.margin,u=i-(c.left||0)-(c.right||0),s=a-(c.top||0)-(c.bottom||0),l=ep({children:o,items:t,legendWidth:u,legendHeight:s}),f=e;if(l){var p=r||{},d=l.align,h=l.verticalAlign,y=l.layout;("vertical"===y||"horizontal"===y&&"center"===h)&&nr(e[d])&&(f=Xf({},e,Kf({},d,f[d]+(p.width||0)))),("horizontal"===y||"vertical"===y&&"center"===d)&&nr(e[h])&&(f=Xf({},e,Kf({},h,f[h]+(p.height||0))))}return f}(y,n,t,this.legendInstance.getBBox()));return Uh({brushBottom:m},y,{width:c-y.left-y.right,height:u-y.top-y.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;zn()(t)||Nh.emit(Ih,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===gr(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var o=this.props,a=o.width,c=o.height;return i.a.createElement(gh,Lh({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderLegend",value:function(){var e=this,t=this.state.formatedGraphicalItems,n=this.props,r=n.children,i=n.width,a=n.height,c=this.props.margin||{},s=i-(c.left||0)-(c.right||0),l=a-(c.top||0)-(c.bottom||0),f=ep({children:r,formatedGraphicalItems:t,legendWidth:s,legendHeight:l,legendContent:u});if(!f)return null;var p=f.item,d=Dh(f,["item"]);return Object(o.cloneElement)(p,Uh({},d,{chartWidth:i,chartHeight:a,margin:c,ref:function(t){e.legendInstance=t},onBBoxUpdate:this.handleLegendBBoxUpdate}))}},{key:"renderTooltip",value:function(){var e=this.props.children,t=br(e,kc);if(!t)return null;var n=this.state,r=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,c=n.activeLabel,u=n.offset;return Object(o.cloneElement)(t,{viewBox:Uh({},u,{x:u.left,y:u.top}),active:r,label:c,payload:r?a:[],coordinate:i})}},{key:"renderActivePoints",value:function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],c=t.props.key,u=t.item.props,s=u.activeDot,l=Uh({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:Zf(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(o)},wr(s),_r(s));return a.push(this.constructor.renderActiveDot(s,l,o)),r?a.push(this.constructor.renderActiveDot(s,Uh({},l,{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(o)}),o)):i&&a.push(null),a}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,a=t.width;return i.a.createElement("defs",null,i.a.createElement("clipPath",{id:e},i.a.createElement("rect",{x:n,y:r,height:o,width:a})))}},{key:"render",value:function(){var e=this;if(!kr(this))return null;var t=this.props,n=t.children,r=t.className,o=t.width,a=t.height,c=t.style,u=t.compact,s=Dh(t,["children","className","width","height","style","compact"]),l=wr(s),f={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(u)return i.a.createElement(Dr,Lh({},l,{width:o,height:a}),this.renderClipPath(),Pr(n,f));var p=this.parseEventsOfWrapper();return i.a.createElement("div",Lh({className:Un()("recharts-wrapper",r),style:Uh({position:"relative",cursor:"default",width:o,height:a},c)},p,{ref:function(t){e.container=t}}),i.a.createElement(Dr,Lh({},l,{width:o,height:a}),this.renderClipPath(),Pr(n,f)),this.renderLegend(),this.renderTooltip())}}])&&zh(l.prototype,f),p&&zh(l,p),r}();return p.displayName=t,p.propTypes=Uh({syncId:In.a.oneOfType([In.a.string,In.a.number]),compact:In.a.bool,width:In.a.number,height:In.a.number,data:In.a.arrayOf(In.a.object),layout:In.a.oneOf(["horizontal","vertical"]),stackOffset:In.a.oneOf(["sign","expand","none","wiggle","silhouette"]),throttleDelay:In.a.number,margin:In.a.shape({top:In.a.number,right:In.a.number,bottom:In.a.number,left:In.a.number}),barCategoryGap:In.a.oneOfType([In.a.number,In.a.string]),barGap:In.a.oneOfType([In.a.number,In.a.string]),barSize:In.a.oneOfType([In.a.number,In.a.string]),maxBarSize:In.a.number,style:In.a.object,className:In.a.string,children:In.a.oneOfType([In.a.arrayOf(In.a.node),In.a.node]),defaultShowTooltip:In.a.bool,onClick:In.a.func,onMouseLeave:In.a.func,onMouseEnter:In.a.func,onMouseMove:In.a.func,onMouseDown:In.a.func,onMouseUp:In.a.func,reverseStackOrder:In.a.bool,id:In.a.string},f),p.defaultProps=Uh({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1},l),p.createDefaultState=function(e){var t=e.children,n=e.defaultShowTooltip,r=br(t,Ch);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!zn()(n)&&n}},p.hasBar=function(e){return!(!e||!e.length)&&e.some(function(e){var t=gr(e&&e.type);return t&&t.indexOf("Bar")>=0})},p.getDisplayedData=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?Fh(e).concat(Fh(n)):e},[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var c=e.data;return c&&c.length&&nr(o)&&nr(i)?c.slice(o,i+1):[]},p}({chartName:"LineChart",GraphicalChild:yd,axisComponents:[{axisType:"xAxis",AxisComp:Ed},{axisType:"yAxis",AxisComp:Nd}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,c=e.layout,u=Object.keys(t),s={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom};return u.reduce(function(e,i){var a,u,l,f,p=t[i],d=p.orientation,h=p.domain,y=p.padding,m=void 0===y?{}:y,g=p.mirror,v=p.reversed,b="".concat(d).concat(g?"Mirror":"");a="xAxis"===r?[n.left+(m.left||0),n.left+n.width-(m.right||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(m.bottom||0),n.top+(m.top||0)]:[n.top+(m.top||0),n.top+n.height-(m.bottom||0)]:p.range,v&&(a=[a[1],a[0]]);var w=cp(p,o),x=w.scale,_=w.realScaleType;x.domain(h).range(a),up(x);var O=fp(x,Rl({},p,{realScaleType:_}));"xAxis"===r?(f="top"===d&&!g||"bottom"===d&&g,u=n.left,l=s[b]-f*p.height):"yAxis"===r&&(f="left"===d&&!g||"right"===d&&g,u=s[b]-f*p.width,l=n.top);var E=Rl({},p,O,{realScaleType:_,x:u,y:l,scale:x,width:"xAxis"===r?n.width:p.width,height:"yAxis"===r?n.height:p.height});return E.bandSize=bp(E,O),p.hide||"xAxis"!==r?p.hide||(s[b]+=(f?-1:1)*E.width):s[b]+=(f?-1:1)*E.height,Rl({},e,Dl({},i,E))},{})}}),$h=n(4);n(45);const Xh=1e3,Kh=500;class Qh extends i.a.Component{render(){const{timelineCred:e,displayedNodes:t}=this.props,n=e.intervals(),r=[n[0].startTimeMs,n[n.length-1].endTimeMs],o=n.map((r,o)=>{const i=new Map;for(const r of t){const{cred:t}=$h.a(e.credNode(r)),a=0===o?0:t[o-1],c=o===n.length-1?0:t[o+1],u=t[o],s=Math.max(a,c,u)<.1?null:u;i.set(r,s)}return{score:i,interval:r}}),a=sn(t,p),c=t.map(t=>{const n=$h.a(e.graph().node(t)).description,r=l()(n);return i.a.createElement(yd,{type:"monotone",dot:!1,key:t,stroke:a(t),dataKey:e=>e.score.get(t),name:r})}),u=Ye("%b"),s=Ye("%Y");const f=We.f.range(...r);return i.a.createElement(Yh,{width:Xh,height:Kh,data:o},i.a.createElement(Fc,{strokeDasharray:"3 3"}),i.a.createElement(Ed,{dataKey:e=>e.interval.startTimeMs,type:"number",domain:r,tickFormatter:function(e){const t=new Date(e);return Object(We.k)(t)<t?u(t):s(t)},ticks:f}),i.a.createElement(Nd,null),c,i.a.createElement(kc,{formatter:gn(".1d"),itemSorter:e=>-e.value,labelFormatter:e=>"Week of ".concat(Ye("%B %e, %Y")(e))}),i.a.createElement(Ci,null))}}n.d(t,"a",function(){return ey});const Jh=100,Zh=6;class ey extends i.a.Component{render(){const{selectedNodeFilter:e,timelineCred:t}=this.props,n=t.credSortedNodes(e),r=n.slice(0,Jh),o=n.slice(0,Zh).map(e=>e.node.address),a=Object(u.h)(n.map(e=>e.total));return i.a.createElement("div",{style:{width:1e3,margin:"0 auto"}},i.a.createElement(Qh,{timelineCred:t,displayedNodes:o}),i.a.createElement("table",{style:{width:600,margin:"0 auto",padding:"20px 10px"}},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Contributor"),i.a.createElement("th",{style:{textAlign:"right"}},"Cred"),i.a.createElement("th",{style:{textAlign:"right"}},"% Total"))),i.a.createElement("tbody",null,r.map(e=>{let{node:t,total:n}=e;return i.a.createElement("tr",{key:t.address},i.a.createElement("td",null,i.a.createElement(c.a,{renderers:{paragraph:"span"},source:t.description})),i.a.createElement("td",{style:{textAlign:"right"}},gn(".1d")(n)),i.a.createElement("td",{style:{textAlign:"right"}},gn(".1%")(n/a)))}))))}}},function(e,t,n){var r,o=n(216),i=n(530),a=n(531),c=100,u=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){function n(e,i,s){if(r++>c)throw r=0,new Error("Call stack overflow for "+s);if(""===e)throw new Error(i+"(): '"+s+"' must contain a non-whitespace string");var l=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);for(;o;)o&&o[1]&&(-1===n.indexOf(o[1].toLowerCase())&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}(e=function(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,i="",a=e;for(;r=u.exec(a);){r[0].index>0&&(i+=a.substring(0,r[0].index));var c=o("(",")",a.substring([0].index));if(""===c.body)throw new Error("'"+e+"' must contain a non-whitespace string");var s=n(c.body,"",t);i+=c.pre+s,a=c.post}return i+a}(e,s));if(l.length>1||e.indexOf("var(")>-1)return i+"("+e+")";var f=l[0]||"";"%"===f&&(e=e.replace(/\b[0-9\.]+%/g,function(e){return.01*parseFloat(e.slice(0,-1))}));var p,d=e.replace(new RegExp(f,"gi"),"");try{p=a.eval(d)}catch(t){return i+"("+e+")"}return"%"===f&&(p*=100),(i.length||"%"===f)&&(p=Math.round(p*t)/t),p+=f}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),i(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var r=n(47);class o{constructor(e){var t,n,o;o=void 0,(n="_root")in(t=this)?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,this._root=null==e?e:Object(r.a)(e)}_getRoot(){if(null==this._root)throw new Error("asset root path uninitialized");return this._root}resolve(e){if(Object(r.a)(e.replace(/^\/+/,"")).startsWith(".."))throw new Error("path outside site root: "+e);return Object(r.a)("".concat(this._getRoot(),"/").concat(e))}}function i(e){const t=Object(r.a)(e);if("/"!==t[0])throw new Error("expected absolute path: "+JSON.stringify(e));const n=(t.match(/\//g)||[]).length;return Object(r.a)(new Array(n-1).fill("..").join("/"))}},function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t,n){"use strict";t.__esModule=!0,t.go=t.replaceLocation=t.pushLocation=t.startListener=t.getUserConfirmation=t.getCurrentLocation=void 0;var r=n(48),o=n(79),i=n(145),a=n(38),c=n(103),u=c.canUseDOM&&!(0,o.supportsPopstateOnHashchange)(),s=function(e){var t=e&&e.key;return(0,r.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:t?(0,i.readState)(t):void 0},void 0,t)},l=t.getCurrentLocation=function(){var e=void 0;try{e=window.history.state||{}}catch(t){e={}}return s(e)},f=(t.getUserConfirmation=function(e,t){return t(window.confirm(e))},t.startListener=function(e){var t=function(t){(0,o.isExtraneousPopstateEvent)(t)||e(s(t.state))};(0,o.addEventListener)(window,"popstate",t);var n=function(){return e(l())};return u&&(0,o.addEventListener)(window,"hashchange",n),function(){(0,o.removeEventListener)(window,"popstate",t),u&&(0,o.removeEventListener)(window,"hashchange",n)}},function(e,t){var n=e.state,r=e.key;void 0!==n&&(0,i.saveState)(r,n),t({key:r},(0,a.createPath)(e))});t.pushLocation=function(e){return f(e,function(e,t){return window.history.pushState(e,null,t)})},t.replaceLocation=function(e){return f(e,function(e,t){return window.history.replaceState(e,null,t)})},t.go=function(e){e&&window.history.go(e)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(270),i=n(38),a=n(106),c=(r=a)&&r.__esModule?r:{default:r},u=n(69),s=n(48);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,n=e.getUserConfirmation,r=e.pushLocation,a=e.replaceLocation,l=e.go,f=e.keyLength,p=void 0,d=void 0,h=[],y=[],m=[],g=function(){return d&&d.action===u.POP?m.indexOf(d.key):p?m.indexOf(p.key):-1},v=function(e){var t=g();(p=e).action===u.PUSH?m=[].concat(m.slice(0,t+1),[p.key]):p.action===u.REPLACE&&(m[t]=p.key),y.forEach(function(e){return e(p)})},b=function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},w=function(e){return y.push(e),function(){return y=y.filter(function(t){return t!==e})}},x=function(e,t){(0,o.loopAsync)(h.length,function(t,n,r){(0,c.default)(h[t],e,function(e){return null!=e?r(e):n()})},function(e){n&&"string"==typeof e?n(e,function(e){return t(!1!==e)}):t(!1!==e)})},_=function(e){p&&(0,s.locationsAreEqual)(p,e)||d&&(0,s.locationsAreEqual)(d,e)||(d=e,x(e,function(t){if(d===e)if(d=null,t){if(e.action===u.PUSH){var n=(0,i.createPath)(p);(0,i.createPath)(e)===n&&(0,s.statesAreEqual)(p.state,e.state)&&(e.action=u.REPLACE)}e.action===u.POP?v(e):e.action===u.PUSH?!1!==r(e)&&v(e):e.action===u.REPLACE&&!1!==a(e)&&v(e)}else if(p&&e.action===u.POP){var o=m.indexOf(p.key),c=m.indexOf(e.key);-1!==o&&-1!==c&&l(o-c)}}))},O=function(e){return _(j(e,u.PUSH))},E=function(e){return _(j(e,u.REPLACE))},k=function(){return l(-1)},S=function(){return l(1)},T=function(){return Math.random().toString(36).substr(2,f||6)},A=function(e){return(0,i.createPath)(e)},j=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T();return(0,s.createLocation)(e,t,n)};return{getCurrentLocation:t,listenBefore:b,listen:w,transitionTo:_,push:O,replace:E,go:l,goBack:k,goForward:S,createKey:T,createPath:i.createPath,createHref:A,createLocation:j}}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(35);(r=o)&&r.__esModule;t.default=function(e,t,n){var r=e(t,n);e.length<2&&n(r)}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!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:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=c(p);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!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 h(e,t){this.fun=e,this.array=t}function y(){}o.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];s.push(new h(e,t)),1!==s.length||l||c(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(313),o=n(314),i=n(81),a=n(315),c=n(316),u=n(317);e.exports=function(e,t){var n,i,a={};t||(t={});for(i in p)n=t[i],a[i]=null==n?p[i]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(e,t){var n,i,a,p,U,B,z,W,H,G,q,V,Y,$,X,K,Q,J,Z,ee=t.additional,te=t.nonTerminated,ne=t.text,re=t.reference,oe=t.warning,ie=t.textContext,ae=t.referenceContext,ce=t.warningContext,ue=t.position,se=t.indent||[],le=e.length,fe=0,pe=-1,de=ue.column||1,he=ue.line||1,ye="",me=[];"string"==typeof ee&&(ee=ee.charCodeAt(0));K=ve(),W=oe?function(e,t){var n=ve();n.column+=t,n.offset+=t,oe.call(ce,L[e],n,e)}:f,fe--,le++;for(;++fe<le;)if(U===h&&(de=se[pe]||1),(U=e.charCodeAt(fe))===g){if((z=e.charCodeAt(fe+1))===d||z===h||z===y||z===m||z===g||z===b||z!=z||ee&&z===ee){ye+=l(U),de++;continue}for(V=Y=fe+1,Z=Y,z===x?(Z=++V,(z=e.charCodeAt(Z))===_||z===O?($=S,Z=++V):$=T):$=k,n="",q="",p="",X=j[$],Z--;++Z<le&&(z=e.charCodeAt(Z),X(z));)p+=l(z),$===k&&s.call(r,p)&&(n=p,q=r[p]);(a=e.charCodeAt(Z)===v)&&(Z++,(i=$===k&&u(p))&&(n=p,q=i)),J=1+Z-Y,(a||te)&&(p?$===k?(a&&!q?W(I,1):(n!==p&&(Z=V+n.length,J=1+Z-V,a=!1),a||(H=n?P:M,t.attribute?(z=e.charCodeAt(Z))===w?(W(H,J),q=null):c(z)?q=null:W(H,J):W(H,J))),B=q):(a||W(C,J),B=parseInt(p,A[$]),(ge=B)>=55296&&ge<=57343||ge>1114111?(W(D,J),B=l(E)):B in o?(W(R,J),B=o[B]):(G="",F(B)&&W(R,J),B>65535&&(G+=l((B-=65536)>>>10|55296),B=56320|1023&B),B=G+l(B))):$!==k&&W(N,J)),B?(be(),K=ve(),fe=Z-1,de+=Z-Y+1,me.push(B),(Q=ve()).offset++,re&&re.call(ae,B,{start:K,end:Q},e.slice(Y-1,Z)),K=Q):(p=e.slice(Y-1,Z),ye+=p,de+=p.length,fe=Z-1)}else 10===U&&(he++,pe++,de=0),U==U?(ye+=l(U),de++):be();var ge;return me.join("");function ve(){return{line:he,column:de,offset:fe+(ue.offset||0)}}function be(){ye&&(me.push(ye),ne&&ne.call(ie,ye,{start:K,end:ve()}),ye="")}}(e,a)};var s={}.hasOwnProperty,l=String.fromCharCode,f=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},d=9,h=10,y=12,m=32,g=38,v=59,b=60,w=61,x=35,_=88,O=120,E=65533,k="named",S="hexadecimal",T="decimal",A={};A[S]=16,A[T]=10;var j={};j[k]=c,j[T]=i,j[S]=a;var P=1,C=2,M=3,N=4,I=5,R=6,D=7,L={};function F(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}L[P]="Named character references must be terminated by a semicolon",L[C]="Numeric character references must be terminated by a semicolon",L[M]="Named character references cannot be empty",L[N]="Numeric character references cannot be empty",L[I]="Named character references must be known",L[R]="Numeric character references cannot be disallowed",L[D]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";
  /*!
   * repeat-string <https://github.com/jonschlinkert/repeat-string>
   *
   * Copyright (c) 2014-2015, Jon Schlinkert.
   * Licensed under the MIT License.
   */var r,o="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,o="";else if(o.length>=n)return o.substr(0,n);for(;n>o.length&&t>1;)1&t&&(o+=e),t>>=1,e+=e;return o=(o+=e).substr(0,n)}},function(e,t,n){"use strict";e.exports=function(e){var t=String(e),n=t.length;for(;t.charAt(--n)===r;);return t.slice(0,n+1)};var r="\n"},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o,i,a,c,u,s,l=["pedantic","commonmark"],f=l.length,p=e.length,d=-1;for(;++d<p;){for(o=e[d],i=o[1]||{},a=o[0],c=-1,s=!1;++c<f;)if(void 0!==i[u=l[c]]&&i[u]!==n.options[u]){s=!0;break}if(!s&&t[a].apply(n,r))return!0}return!1}},function(e,t,n){"use strict";var r=n(337);e.exports=function(e){return r(e).toLowerCase()}},function(e,t,n){var r=n(83),o=n(173),i=n(114),a=Object.defineProperty;t.f=n(52)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(51);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(398),o=n(119);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(13),o=n(119),i=n(39),a=n(122),c="["+a+"]",u=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(e,t,n){var o={},c=i(function(){return!!a[e]()||"​"!="​"[e]()}),u=o[e]=c?t(f):a[e];n&&(o[n]=u),r(r.P+r.F*c,"String",o)},f=l.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(s,"")),e};e.exports=l},function(e,t){e.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(44)(n(28),"Map");e.exports=r},function(e,t,n){var r=n(439),o=n(446),i=n(448),a=n(449),c=n(450);function u(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])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(451),o=n(34);e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},function(e,t,n){var r=n(125),o=n(452),i=n(453);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(464),o=n(34),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(11),o=n(54),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(266)},function(e,t,n){"use strict";t.__esModule=!0;var 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},o=f(n(14)),i=n(103),a=l(n(104)),c=l(n(269)),u=n(79),s=f(n(105));function l(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}function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.canUseDOM||(0,o.default)(!1);var t=e.forceRefresh||!(0,u.supportsHistory)(),n=t?c:a,l=n.getUserConfirmation,f=n.getCurrentLocation,p=n.pushLocation,d=n.replaceLocation,h=n.go,y=(0,s.default)(r({getUserConfirmation:l},e,{getCurrentLocation:f,pushLocation:p,replaceLocation:d,go:h})),m=0,g=void 0,v=function(e,t){1==++m&&(g=a.startListener(y.transitionTo));var n=t?y.listenBefore(e):y.listen(e);return function(){n(),0==--m&&g()}},b=function(e){return v(e,!0)},w=function(e){return v(e,!1)};return r({},y,{listenBefore:b,listen:w})}},function(e,t,n){"use strict";t.__esModule=!0;var 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},o=(s(n(35)),s(n(14))),i=n(48),a=n(38),c=s(n(105)),u=n(69);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)?e={entries:e}:"string"==typeof e&&(e={entries:[e]});var t=function(){var e=y[m],t=(0,a.createPath)(e),n=void 0,o=void 0;e.key&&(n=e.key,o=b(n));var c=(0,a.parsePath)(t);return(0,i.createLocation)(r({},c,{state:o}),void 0,n)},n=function(e){var t=m+e;return t>=0&&t<y.length},s=function(e){if(e&&n(e)){m+=e;var o=t();d.transitionTo(r({},o,{action:u.POP}))}},f=function(e){(m+=1)<y.length&&y.splice(m),y.push(e),v(e.key,e.state)},p=function(e){y[m]=e,v(e.key,e.state)},d=(0,c.default)(r({},e,{getCurrentLocation:t,pushLocation:f,replaceLocation:p,go:s})),h=e,y=h.entries,m=h.current;"string"==typeof y?y=[y]:Array.isArray(y)||(y=["/"]),y=y.map(function(e){return(0,i.createLocation)(e)}),null==m?m=y.length-1:m>=0&&m<y.length||(0,o.default)(!1);var g=l(y),v=function(e,t){return g[e]=t},b=function(e){return g[e]};return r({},d,{canGo:n})}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(1),o=n.n(r),i=n(12);class a extends o.a.Component{render(){return o.a.createElement("div",{style:{maxWidth:900,margin:"0 auto"}},o.a.createElement("h1",null,"Redirecting…"),o.a.createElement("p",null,"Redirecting to:"," ",o.a.createElement(i.a,{href:this.props.redirectTo},this.props.redirectTo)))}componentDidMount(){window.location.href=this.props.redirectTo}}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(15),a=n(46),c=n(12);function u(e){return o.a.createElement("svg",{"aria-label":e.altText,role:"img",className:e.className,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("title",null,e.altText),o.a.createElement("path",{d:"M512 0C229.25 0 0 229.25 0 512c0 226.25 146.688 418.125 350.156 485.812 25.594 4.688 34.938-11.125 34.938-24.625 0-12.188-0.469-52.562-0.719-95.312C242 908.812 211.906 817.5 211.906 817.5c-23.312-59.125-56.844-74.875-56.844-74.875-46.531-31.75 3.53-31.125 3.53-31.125 51.406 3.562 78.47 52.75 78.47 52.75 45.688 78.25 119.875 55.625 149 42.5 4.654-33 17.904-55.625 32.5-68.375C304.906 725.438 185.344 681.5 185.344 485.312c0-55.938 19.969-101.562 52.656-137.406-5.219-13-22.844-65.094 5.062-135.562 0 0 42.938-13.75 140.812 52.5 40.812-11.406 84.594-17.031 128.125-17.219 43.5 0.188 87.312 5.875 128.188 17.281 97.688-66.312 140.688-52.5 140.688-52.5 28 70.531 10.375 122.562 5.125 135.5 32.812 35.844 52.625 81.469 52.625 137.406 0 196.688-119.75 240-233.812 252.688 18.438 15.875 34.75 47 34.75 94.75 0 68.438-0.688 123.625-0.688 140.5 0 13.625 9.312 29.562 35.25 24.562C877.438 930 1024 738.125 1024 512 1024 229.25 794.75 0 512 0z"}))}function s(e){return o.a.createElement("svg",{"aria-label":e.altText,role:"img",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512 512"},o.a.createElement("title",null,e.altText),o.a.createElement("path",{d:"M512,97.209c-18.838,8.354-39.082,14.001-60.329,16.54c21.687-13,38.343-33.585,46.187-58.114 c-20.299,12.038-42.778,20.779-66.705,25.489c-19.16-20.415-46.461-33.17-76.674-33.17c-58.012,0-105.043,47.029-105.043,105.039 c0,8.233,0.929,16.25,2.72,23.939c-87.3-4.382-164.701-46.2-216.509-109.753c-9.042,15.514-14.224,33.558-14.224,52.809 c0,36.444,18.544,68.596,46.73,87.433c-17.219-0.546-33.416-5.271-47.577-13.139c-0.01,0.438-0.01,0.878-0.01,1.321 c0,50.894,36.209,93.348,84.261,103c-8.813,2.398-18.094,3.686-27.674,3.686c-6.77,0-13.349-0.66-19.764-1.887 c13.367,41.73,52.159,72.104,98.126,72.949c-35.95,28.175-81.243,44.967-130.458,44.967c-8.479,0-16.841-0.497-25.059-1.471 c46.486,29.806,101.701,47.197,161.021,47.197c193.211,0,298.868-160.063,298.868-298.873c0-4.554-0.104-9.084-0.305-13.59 C480.11,136.773,497.918,118.273,512,97.209z"}))}function l(e){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 245 240","aria-label":e.altText,role:"img",className:e.className},o.a.createElement("path",{d:"M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zM140.9 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"}),o.a.createElement("path",{d:"M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"}))}var f=n(4),p=n(7),d=n.n(p);const h=function(e){if("string"!=typeof e)throw new Error("gitState: not a string: "+String(e));const t=JSON.parse(e);if(null==t||"object"!=typeof t)throw new Error("gitState: not a JSON object: "+String(t));d()(t);const n=t;if("string"!=typeof n.commitHash||"string"!=typeof n.commitTimestamp||"boolean"!=typeof n.dirty||3!==Object.keys(n).length)throw new Error("gitState: bad shape: "+JSON.stringify(n));return n}('{"commitHash":"c69439b82963","commitTimestamp":"20200110-2258","dirty":true}');const y=function(e){if("development"!==e&&"production"!==e&&"test"!==e)throw new Error("environment: "+(null==e?String(e):JSON.stringify(e)));return e}("production"),m=d()({major:0,minor:4,patch:1,gitState:h,environment:y});const g="v".concat((v=m).major,".").concat(v.minor,".").concat(v.patch);var v;const b=function(e){return["v".concat(e.major,".").concat(e.minor,".").concat(e.patch),e.gitState.commitHash,e.gitState.commitTimestamp,e.gitState.dirty?"dirty":"clean",e.environment].join("-")}(m);n.d(t,"a",function(){return w});class w extends o.a.Component{render(){return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Object(i.css)(x.nonFooter)},o.a.createElement("header",null,o.a.createElement("nav",{className:Object(i.css)(x.nav)},o.a.createElement("ul",{className:Object(i.css)(x.navList)},o.a.createElement("li",{className:Object(i.css)(x.navItem,x.navItemLeft)},o.a.createElement(c.a,{to:"/",styles:[x.navLink,x.navLinkTitle]},"SourceCred")),this.props.routeData.map(e=>{let{navTitle:t,path:n}=e;return f.b(t,e=>o.a.createElement("li",{key:n,className:Object(i.css)(x.navItem,x.navItemRight)},o.a.createElement(c.a,{to:n,styles:[x.navLink]},e)))}),o.a.createElement("li",{className:Object(i.css)(x.navItem,x.navItemRight)},o.a.createElement(c.a,{styles:[x.navLink],href:"https://github.com/sourcecred/sourcecred"},o.a.createElement(u,{altText:"SourceCred Github",className:Object(i.css)(x.navLogoSmall)}))),o.a.createElement("li",{className:Object(i.css)(x.navItem,x.navItemRight)},o.a.createElement(c.a,{styles:[x.navLink],href:"https://twitter.com/sourcecred"},o.a.createElement(s,{altText:"SourceCred Twitter",className:Object(i.css)(x.navLogoSmall)}))),o.a.createElement("li",{className:Object(i.css)(x.navItem,x.navItemRightSmall)},o.a.createElement(c.a,{styles:[x.navLink],href:"https://discordapp.com/invite/tsBTgc9"},o.a.createElement(l,{altText:"Join the SourceCred Discord",className:Object(i.css)(x.navLogoMedium)})))))),o.a.createElement("main",null,this.props.children)),o.a.createElement("footer",{className:Object(i.css)(x.footer)},o.a.createElement("div",{className:Object(i.css)(x.footerWrapper)},o.a.createElement("span",{className:Object(i.css)(x.footerText)},"(",b,") ",o.a.createElement("strong",null,g)))))}}const x=i.StyleSheet.create({footer:{color:"#666",height:30,fontSize:14,position:"relative"},footerWrapper:{textAlign:"right",position:"absolute",bottom:5,width:"100%"},footerText:{marginRight:5},nonFooter:{minHeight:"calc(100vh - ".concat(30,"px)")},nav:{padding:"20px 50px 0 50px",maxWidth:900,margin:"0 auto"},navLinkTitle:{fontSize:24},navItem:{display:"inline-block"},navList:{listStyle:"none",paddingLeft:0,margin:0,display:"flex"},navLink:{fontFamily:"Roboto Condensed",fontSize:18,textDecoration:"none",":hover":{textDecoration:"underline"},":visited:not(:active)":{color:a.a.brand.medium,fill:a.a.brand.medium}},navItemLeft:{flex:1},navItemRight:{marginLeft:20},navItemRightSmall:{marginLeft:15},navLogoSmall:{height:20,width:20},navLogoMedium:{height:25,width:25,transform:"translateY(-1px)"}})},function(e,t,n){var r=n(40),o=n(495),i=n(34),a="[object Object]",c=Function.prototype,u=Object.prototype,s=c.toString,l=u.hasOwnProperty,f=s.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getTickValues",{enumerable:!0,get:function(){return r.getTickValues}}),Object.defineProperty(t,"getNiceTickValues",{enumerable:!0,get:function(){return r.getNiceTickValues}}),Object.defineProperty(t,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return r.getTickValuesFixedDomain}});var r=n(524)},function(e,t,n){var r=n(529),o=n(206),i=n(33);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},function(e,t,n){"use strict";var r=n(144);function o(){}var i=null,a={};function c(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise constructor's argument is not a function");this._h=0,this._i=0,this._j=null,this._k=null,e!==o&&d(e,this)}function u(e,t){for(;3===e._i;)e=e._j;if(c._l&&c._l(e),0===e._i)return 0===e._h?(e._h=1,void(e._k=t)):1===e._h?(e._h=2,void(e._k=[e._k,t])):void e._k.push(t);!function(e,t){r(function(){var n=1===e._i?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(e){return i=e,a}}(n,e._j);r===a?l(t.promise,i):s(t.promise,r)}else 1===e._i?s(t.promise,e._j):l(t.promise,e._j)})}(e,t)}function s(e,t){if(t===e)return l(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=function(e){try{return e.then}catch(e){return i=e,a}}(t);if(n===a)return l(e,i);if(n===e.then&&t instanceof c)return e._i=3,e._j=t,void f(e);if("function"==typeof n)return void d(n.bind(t),e)}e._i=1,e._j=t,f(e)}function l(e,t){e._i=2,e._j=t,c._m&&c._m(e,t),f(e)}function f(e){if(1===e._h&&(u(e,e._k),e._k=null),2===e._h){for(var t=0;t<e._k.length;t++)u(e,e._k[t]);e._k=null}}function p(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1,r=function(e,t,n){try{e(t,n)}catch(e){return i=e,a}}(e,function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,l(t,e))});n||r!==a||(n=!0,l(t,i))}e.exports=c,c._l=null,c._m=null,c._n=o,c.prototype.then=function(e,t){if(this.constructor!==c)return function(e,t,n){return new e.constructor(function(r,i){var a=new c(o);a.then(r,i),u(e,new p(t,n,a))})}(this,e,t);var n=new c(o);return u(this,new p(e,t,n)),n}},function(e,t,n){"use strict";(function(t){function n(e){o.length||(r(),!0),o[o.length]=e}e.exports=n;var r,o=[],i=0,a=1024;function c(){for(;i<o.length;){var e=i;if(i+=1,o[e].call(),i>a){for(var t=0,n=o.length-i;t<n;t++)o[t]=o[t+i];o.length-=i,i=0}}o.length=0,i=0,!1}var u,s,l,f=void 0!==t?t:self,p=f.MutationObserver||f.WebKitMutationObserver;function d(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof p?(u=1,s=new p(c),l=document.createTextNode(""),s.observe(l,{characterData:!0}),r=function(){u=-u,l.data=u}):r=d(c),n.requestFlush=r,n.makeRequestCallFromTimer=d}).call(this,n(43))},function(e,t,n){"use strict";t.__esModule=!0,t.readState=t.saveState=void 0;var r,o=n(35);(r=o)&&r.__esModule;var i={QuotaExceededError:!0,QUOTA_EXCEEDED_ERR:!0},a={SecurityError:!0},c=function(e){return"@@History/"+e};t.saveState=function(e,t){if(window.sessionStorage)try{null==t?window.sessionStorage.removeItem(c(e)):window.sessionStorage.setItem(c(e),JSON.stringify(t))}catch(e){if(a[e.name])return;if(i[e.name]&&0===window.sessionStorage.length)return;throw e}},t.readState=function(e){var t=void 0;try{t=window.sessionStorage.getItem(c(e))}catch(e){if(a[e.name])return}if(t)try{return JSON.parse(t)}catch(e){}}},function(e,t,n){"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},function(e,t,n){"use strict";var r=n(144),o=[],i=[],a=r.makeRequestCallFromTimer(function(){if(i.length)throw i.shift()});function c(e){var t;(t=o.length?o.pop():new u).task=e,r(t)}function u(){this.task=null}e.exports=c,u.prototype.call=function(){try{this.task.call()}catch(e){c.onerror?c.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prefixMap,n=e.plugins;return function e(c){for(var u in c){var s=c[u];if((0,a.default)(s))c[u]=e(s);else if(Array.isArray(s)){for(var l=[],f=0,p=s.length;f<p;++f){var d=(0,o.default)(n,u,s[f],c,t);(0,i.default)(l,d||s[f])}l.length>0&&(c[u]=l)}else{var h=(0,o.default)(n,u,s,c,t);h&&(c[u]=h),c=(0,r.default)(t,u,c)}}return c}};var r=c(n(281)),o=c(n(282)),i=c(n(283)),a=c(n(284));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&"text"===t)return["-webkit-text","text"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("calc(")>-1)return a.map(function(e){return t.replace(/calc\(/g,e+"calc(")})};var r,o=n(49),i=(r=o)&&r.__esModule?r:{default:r};var a=["-webkit-","-moz-",""]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("cross-fade(")>-1)return a.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})};var r,o=n(49),i=(r=o)&&r.__esModule?r:{default:r};var a=["-webkit-",""]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("cursor"===e&&o.hasOwnProperty(t))return r.map(function(e){return e+t})};var r=["-webkit-","-moz-",""],o={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("filter(")>-1)return a.map(function(e){return t.replace(/filter\(/g,e+"filter(")})};var r,o=n(49),i=(r=o)&&r.__esModule?r:{default:r};var a=["-webkit-",""]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("display"===e&&r.hasOwnProperty(t))return r[t]};var r={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){Object.prototype.hasOwnProperty.call(o,e)&&(n[o[e]]=r[t]||t);if("flex"===e){if(Object.prototype.hasOwnProperty.call(i,t))return void(n.msFlex=i[t]);if(a.test(t))return void(n.msFlex=t+" 1 0%");var c=t.split(/\s/);switch(c.length){case 1:return void(n.msFlex="1 1 "+t);case 2:return void(a.test(c[1])?n.msFlex=c[0]+" "+c[1]+" 0%":n.msFlex=c[0]+" 1 "+c[1]);default:n.msFlex=t}}};var r={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},o={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"},i={auto:"1 1 auto",inherit:"inherit",initial:"0 1 auto",none:"0 0 auto",unset:"unset"},a=/^\d+(\.\d+)?$/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal");o.hasOwnProperty(e)&&(n[o[e]]=r[t]||t)};var r={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},o={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&c.test(t))return a.map(function(e){return t.replace(c,function(t){return e+t})})};var r,o=n(49),i=(r=o)&&r.__esModule?r:{default:r};var a=["-webkit-","-moz-",""],c=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("image-set(")>-1)return a.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,o=n(49),i=(r=o)&&r.__esModule?r:{default:r};var a=["-webkit-",""]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(Object.prototype.hasOwnProperty.call(r,e))for(var o=r[e],i=0,a=o.length;i<a;++i)n[o[i]]=t};var r={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(o.hasOwnProperty(e)&&i.hasOwnProperty(t))return r.map(function(e){return e+t})};var r=["-webkit-","-moz-",""],o={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if("string"==typeof t&&c.hasOwnProperty(e)){var s=function(e,t){if((0,o.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),i=0,a=n.length;i<a;++i){var c=n[i],s=[c];for(var l in t){var f=(0,r.default)(l);if(c.indexOf(f)>-1&&"order"!==f)for(var p=t[l],d=0,h=p.length;d<h;++d)s.unshift(c.replace(f,u[p[d]]+f))}n[i]=s.join(",")}return n.join(",")}(t,a),l=s.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return l;var f=s.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?f:(n["Webkit"+(0,i.default)(e)]=l,n["Moz"+(0,i.default)(e)]=f,s)}};var r=a(n(285)),o=a(n(49)),i=a(n(149));function a(e){return e&&e.__esModule?e:{default:e}}var c={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},function(e,t){},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),function(e){return!!e}),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(e.split("/"),function(e){return!!e}),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),c=a,u=0;u<a;u++)if(o[u]!==i[u]){c=u;break}var s=[];for(u=c;u<o.length;u++)s.push("..");return(s=s.concat(i.slice(c))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===r&&(o=!1,r=a+1),46===c?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(107))},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(321)}},function(e,t,n){"use strict";e.exports=function(e){var t,n=0,o=0,i=e.charAt(n),a={};for(;i in r;)t=r[i],o+=t,t>1&&(o=Math.floor(o/t)*t),a[o]=n,i=e.charAt(++n);return{indent:o,stops:a}};var r={" ":1,"\t":4}},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+o+")"),t.tag=new RegExp("^(?:"+r+"|"+o+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("<",t)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);if(-1===r)return n;return n<r?n:r}},function(e,t,n){var r=n(113),o=n(175);e.exports=n(52)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(52)&&!n(39)(function(){return 7!=Object.defineProperty(n(174)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(51),o=n(32).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(32),o=n(172),i=n(84),a=n(177)("src"),c=n(373),u=(""+c).split("toString");n(66).inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(s&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||c.call(this)})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(66),o=n(32),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(374)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(375);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(397),o=n(175),i=n(118),a=n(114),c=n(84),u=n(173),s=Object.getOwnPropertyDescriptor;t.f=n(52)?s:function(e,t){if(e=i(e),t=a(t,!0),u)try{return s(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(84),o=n(118),i=n(400)(!1),a=n(183)("IE_PROTO");e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)n!=a&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(178)("keys"),o=n(177);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(117);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(51),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(43))},function(e,t,n){var r=n(86),o=n(430),i=n(431),a=n(432),c=n(433),u=n(434);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,e.exports=s},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(127),o=n(190),i=n(128),a=1,c=2;e.exports=function(e,t,n,u,s,l){var f=n&a,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var y=-1,m=!0,g=n&c?new r:void 0;for(l.set(e,t),l.set(t,e);++y<p;){var v=e[y],b=t[y];if(u)var w=f?u(b,v,y,t,e,l):u(v,b,y,e,t,l);if(void 0!==w){if(w)continue;m=!1;break}if(g){if(!o(t,function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,u,l)))return g.push(t)})){m=!1;break}}else if(v!==b&&!s(v,b,n,u,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){(function(e){var r=n(28),o=n(465),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u}).call(this,n(80)(e))},function(e,t,n){var r=n(466),o=n(133),i=n(467),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(44)(n(28),"Set");e.exports=r},function(e,t,n){var r=n(19);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(200),o=n(91);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(11),o=n(134),i=n(477),a=n(480);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(489);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(55),o=n(497),i=n(499);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(44),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(506),o=n(90);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),o=c(n(1)),i=c(n(135)),a=n(208);n(209);function c(e){return e&&e.__esModule?e:{default:e}}var u="unmounted";t.UNMOUNTED=u;var s="exited";t.EXITED=s;var l="entering";t.ENTERING=l;var f="entered";t.ENTERED=f;t.EXITING="exiting";var p=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=s,r.appearStatus=l):o=f:o=t.unmountOnExit||t.mountOnEnter?u:s,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:s}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==f&&(t=l):n!==l&&n!==f||(t="exiting")}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===l?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:u})},a.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:l},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,function(){n.safeSetState({status:f},function(){n.props.onEntered(e,o)})})})):this.safeSetState({status:f},function(){n.props.onEntered(e)})},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:s},function(){t.props.onExited(e)})})})):this.safeSetState({status:s},function(){t.props.onExited(e)})},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function d(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var h=(0,a.polyfill)(p);t.default=h},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,c=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?c="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==c){var u=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==c?"\n  "+c:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(0))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=c(n(0)),o=c(n(1)),i=n(208),a=n(515);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=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 s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},f=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(s(s(r)));return r.state={handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},i.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=u({},t.children);return delete n[e.key],{children:n}}))},i.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,i.polyfill)(f);t.default=p,e.exports=t.default},function(e,t,n){var r=n(191),o=n(516);e.exports=function e(t,n,i,a,c){var u=-1,s=t.length;for(i||(i=o),c||(c=[]);++u<s;){var l=t[u];n>0&&i(l)?n>1?e(l,n-1,i,a,c):r(c,l):a||(c[c.length]=l)}return c}},function(e,t,n){var r=n(92),o=n(53);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},function(e,t,n){var r=n(54);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],c=t(a);if(null!=c&&(void 0===u?c==c&&!r(c):n(c,u)))var u=c,s=a}return s}},function(e,t,n){var r;/*! decimal.js-light v2.5.0 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(o){"use strict";var i,a=1e9,c={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,s="[DecimalError] ",l=s+"Invalid argument: ",f=s+"Exponent out of range: ",p=Math.floor,d=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,y=1e7,m=7,g=p(9007199254740991/m),v={};function b(e,t){var n,r,o,i,a,c,s,l,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),u?j(t,p):t;if(s=e.d,l=t.d,a=e.e,o=t.e,s=s.slice(),i=a-o){for(i<0?(r=s,i=-i,c=l.length):(r=l,o=a,c=s.length),i>(c=(a=Math.ceil(p/m))>c?a+1:c+1)&&(i=c,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((c=s.length)-(i=l.length)<0&&(i=c,r=l,l=s,s=r),n=0;i;)n=(s[--i]=s[i]+l[i]+n)/y|0,s[i]%=y;for(n&&(s.unshift(n),++o),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=o,u?j(t,p):t}function w(e,t,n){if(e!==~~e||e<t||e>n)throw Error(l+e)}function x(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=m-r.length)&&(i+=S(n)),i+=r;a=e[t],(n=m-(r=a+"").length)&&(i+=S(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}v.absoluteValue=v.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},v.comparedTo=v.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},v.decimalPlaces=v.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*m;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(e){return _(this,new this.constructor(e))},v.dividedToIntegerBy=v.idiv=function(e){var t=this.constructor;return j(_(this,new t(e),0,1),t.precision)},v.equals=v.eq=function(e){return!this.cmp(e)},v.exponent=function(){return E(this)},v.greaterThan=v.gt=function(e){return this.cmp(e)>0},v.greaterThanOrEqualTo=v.gte=function(e){return this.cmp(e)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(e){return this.cmp(e)<0},v.lessThanOrEqualTo=v.lte=function(e){return this.cmp(e)<1},v.logarithm=v.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(s+"NaN");if(n.s<1)throw Error(s+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(u=!1,t=_(T(n,a),T(e,a),a),u=!0,j(t,o))},v.minus=v.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):b(t,(e.s=-e.s,e))},v.modulo=v.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(s+"NaN");return n.s?(u=!1,t=_(n,e,0,1).times(e),u=!0,n.minus(t)):j(new r(n),o)},v.naturalExponential=v.exp=function(){return O(this)},v.naturalLogarithm=v.ln=function(){return T(this)},v.negated=v.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},v.plus=v.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b(t,e):P(t,(e.s=-e.s,e))},v.precision=v.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(l+e);if(t=E(o)+1,n=(r=o.d.length-1)*m+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},v.squareRoot=v.sqrt=function(){var e,t,n,r,o,i,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(s+"NaN")}for(e=E(c),u=!1,0==(o=Math.sqrt(+c))||o==1/0?(((t=x(c.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),r=new l(t=o==1/0?"1e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new l(o.toString()),o=a=(n=l.precision)+3;;)if(r=(i=r).plus(_(c,i,a+2)).times(.5),x(i.d).slice(0,a)===(t=x(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(j(i,n+1,0),i.times(i).eq(c)){r=i;break}}else if("9999"!=t)break;a+=4}return u=!0,j(r,n)},v.times=v.mul=function(e){var t,n,r,o,i,a,c,s,l,f=this,p=f.constructor,d=f.d,h=(e=new p(e)).d;if(!f.s||!e.s)return new p(0);for(e.s*=f.s,n=f.e+e.e,(s=d.length)<(l=h.length)&&(i=d,d=h,h=i,a=s,s=l,l=a),i=[],r=a=s+l;r--;)i.push(0);for(r=l;--r>=0;){for(t=0,o=s+r;o>r;)c=i[o]+h[r]*d[o-r-1]+t,i[o--]=c%y|0,t=c/y|0;i[o]=(i[o]+t)%y|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,u?j(e,p.precision):e},v.toDecimalPlaces=v.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(w(e,0,a),void 0===t?t=r.rounding:w(t,0,8),j(n,e+E(n)+1,t))},v.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=C(r,!0):(w(e,0,a),void 0===t?t=o.rounding:w(t,0,8),n=C(r=j(new o(r),e+1,t),!0,e+1)),n},v.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?C(o):(w(e,0,a),void 0===t?t=i.rounding:w(t,0,8),n=C((r=j(new i(o),e+E(o)+1,t)).abs(),!1,e+E(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var e=this,t=e.constructor;return j(new t(e),E(e)+1,t.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(e){var t,n,r,o,a,c,l=this,f=l.constructor,d=+(e=new f(e));if(!e.s)return new f(i);if(!(l=new f(l)).s){if(e.s<1)throw Error(s+"Infinity");return l}if(l.eq(i))return l;if(r=f.precision,e.eq(i))return j(l,r);if(c=(t=e.e)>=(n=e.d.length-1),a=l.s,c){if((n=d<0?-d:d)<=9007199254740991){for(o=new f(i),t=Math.ceil(r/m+4),u=!1;n%2&&M((o=o.times(l)).d,t),0!==(n=p(n/2));)M((l=l.times(l)).d,t);return u=!0,e.s<0?new f(i).div(o):j(o,r)}}else if(a<0)throw Error(s+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,l.s=1,u=!1,o=e.times(T(l,r+12)),u=!0,(o=O(o)).s=a,o},v.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=C(o,(n=E(o))<=i.toExpNeg||n>=i.toExpPos):(w(e,1,a),void 0===t?t=i.rounding:w(t,0,8),r=C(o=j(new i(o),e,t),e<=(n=E(o))||n<=i.toExpNeg,e)),r},v.toSignificantDigits=v.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(w(e,1,a),void 0===t?t=n.rounding:w(t,0,8)),j(new n(this),e,t)},v.toString=v.valueOf=v.val=v.toJSON=function(){var e=this,t=E(e),n=e.constructor;return C(e,t<=n.toExpNeg||t>=n.toExpPos)};var _=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%y|0,r=n/y|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*y+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var c,u,l,f,p,d,h,g,v,b,w,x,_,O,k,S,T,A,P=r.constructor,C=r.s==o.s?1:-1,M=r.d,N=o.d;if(!r.s)return new P(r);if(!o.s)throw Error(s+"Division by zero");for(u=r.e-o.e,T=N.length,k=M.length,g=(h=new P(C)).d=[],l=0;N[l]==(M[l]||0);)++l;if(N[l]>(M[l]||0)&&--u,(x=null==i?i=P.precision:a?i+(E(r)-E(o))+1:i)<0)return new P(0);if(x=x/m+2|0,l=0,1==T)for(f=0,N=N[0],x++;(l<k||f)&&x--;l++)_=f*y+(M[l]||0),g[l]=_/N|0,f=_%N|0;else{for((f=y/(N[0]+1)|0)>1&&(N=e(N,f),M=e(M,f),T=N.length,k=M.length),O=T,b=(v=M.slice(0,T)).length;b<T;)v[b++]=0;(A=N.slice()).unshift(0),S=N[0],N[1]>=y/2&&++S;do{f=0,(c=t(N,v,T,b))<0?(w=v[0],T!=b&&(w=w*y+(v[1]||0)),(f=w/S|0)>1?(f>=y&&(f=y-1),1==(c=t(p=e(N,f),v,d=p.length,b=v.length))&&(f--,n(p,T<d?A:N,d))):(0==f&&(c=f=1),p=N.slice()),(d=p.length)<b&&p.unshift(0),n(v,p,b),-1==c&&(c=t(N,v,T,b=v.length))<1&&(f++,n(v,T<b?A:N,b)),b=v.length):0===c&&(f++,v=[0]),g[l++]=f,c&&v[0]?v[b++]=M[O]||0:(v=[M[O]],b=1)}while((O++<k||void 0!==v[0])&&x--)}return g[0]||g.shift(),h.e=u,j(h,a?i+E(h)+1:i)}}();function O(e,t){var n,r,o,a,c,s=0,l=0,p=e.constructor,h=p.precision;if(E(e)>16)throw Error(f+E(e));if(!e.s)return new p(i);for(null==t?(u=!1,c=h):c=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(c+=Math.log(d(2,l))/Math.LN10*2+5|0,n=r=o=new p(i),p.precision=c;;){if(r=j(r.times(e),c),n=n.times(++s),x((a=o.plus(_(r,n,c))).d).slice(0,c)===x(o.d).slice(0,c)){for(;l--;)o=j(o.times(o),c);return p.precision=h,null==t?(u=!0,j(o,h)):o}o=a}}function E(e){for(var t=e.e*m,n=e.d[0];n>=10;n/=10)t++;return t}function k(e,t,n){if(t>e.LN10.sd())throw u=!0,n&&(e.precision=n),Error(s+"LN10 precision limit exceeded");return j(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function T(e,t){var n,r,o,a,c,l,f,p,d,h=1,y=e,m=y.d,g=y.constructor,v=g.precision;if(y.s<1)throw Error(s+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new g(0);if(null==t?(u=!1,p=v):p=t,y.eq(10))return null==t&&(u=!0),k(g,p);if(p+=10,g.precision=p,r=(n=x(m)).charAt(0),a=E(y),!(Math.abs(a)<15e14))return f=k(g,p+2,v).times(a+""),y=T(new g(r+"."+n.slice(1)),p-10).plus(f),g.precision=v,null==t?(u=!0,j(y,v)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=x((y=y.times(e)).d)).charAt(0),h++;for(a=E(y),r>1?(y=new g("0."+n),a++):y=new g(r+"."+n.slice(1)),l=c=y=_(y.minus(i),y.plus(i),p),d=j(y.times(y),p),o=3;;){if(c=j(c.times(d),p),x((f=l.plus(_(c,new g(o),p))).d).slice(0,p)===x(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(k(g,p+2,v).times(a+""))),l=_(l,new g(h),p),g.precision=v,null==t?(u=!0,j(l,v)):l;l=f,o+=2}}function A(e,t){var n,r,o;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(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=p(n/m),e.d=[],r=(n+1)%m,n<0&&(r+=m),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=m;r<o;)e.d.push(+t.slice(r,r+=m));t=t.slice(r),r=m-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),u&&(e.e>g||e.e<-g))throw Error(f+n)}else e.s=0,e.e=0,e.d=[0];return e}function j(e,t,n){var r,o,i,a,c,s,l,h,v=e.d;for(a=1,i=v[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=m,o=t,l=v[h=0];else{if((h=Math.ceil((r+1)/m))>=(i=v.length))return e;for(l=i=v[h],a=1;i>=10;i/=10)a++;o=(r%=m)-m+a}if(void 0!==n&&(c=l/(i=d(10,a-o-1))%10|0,s=t<0||void 0!==v[h+1]||l%i,s=n<4?(c||s)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||s||6==n&&(r>0?o>0?l/d(10,a-o):0:v[h-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return s?(i=E(e),v.length=1,t=t-i-1,v[0]=d(10,(m-t%m)%m),e.e=p(-t/m)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==r?(v.length=h,i=1,h--):(v.length=h+1,i=d(10,m-r),v[h]=o>0?(l/d(10,a-o)%d(10,o)|0)*i:0),s)for(;;){if(0==h){(v[0]+=i)==y&&(v[0]=1,++e.e);break}if(v[h]+=i,v[h]!=y)break;v[h--]=0,i=1}for(r=v.length;0===v[--r];)v.pop();if(u&&(e.e>g||e.e<-g))throw Error(f+E(e));return e}function P(e,t){var n,r,o,i,a,c,s,l,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),u?j(t,h):t;if(s=e.d,p=t.d,r=t.e,l=e.e,s=s.slice(),a=l-r){for((f=a<0)?(n=s,a=-a,c=p.length):(n=p,r=l,c=s.length),a>(o=Math.max(Math.ceil(h/m),c)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=s.length)<(c=p.length))&&(c=o),o=0;o<c;o++)if(s[o]!=p[o]){f=s[o]<p[o];break}a=0}for(f&&(n=s,s=p,p=n,t.s=-t.s),c=s.length,o=p.length-c;o>0;--o)s[c++]=0;for(o=p.length;o>a;){if(s[--o]<p[o]){for(i=o;i&&0===s[--i];)s[i]=y-1;--s[i],s[o]+=y}s[o]-=p[o]}for(;0===s[--c];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,u?j(t,h):t):new d(0)}function C(e,t,n){var r,o=E(e),i=x(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+S(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+S(-o-1)+i,n&&(r=n-a)>0&&(i+=S(r))):o>=a?(i+=S(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+S(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=S(r))),e.s<0?"-"+i:i}function M(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!=typeof e)throw Error(s+"Object expected");var t,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(p(r)===r&&r>=o[t+1]&&r<=o[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}(c=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)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])):A(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);A(t,e)}if(i.prototype=v,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=N,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(c)).default=c.Decimal=c,i=new c(1),void 0===(r=function(){return c}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";function r(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")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=t.reverse=t.compose=t.map=t.range=t.curry=t.PLACE_HOLDER=void 0;var o=function(e){return e},i={"@@functional/placeholder":!0};t.PLACE_HOLDER=i;var a=function(e){return e===i},c=function(e){return function t(){return 0===arguments.length||1===arguments.length&&a(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},u=function(e){return function e(t,n){return 1===t?n:c(function(){for(var o=arguments.length,u=new Array(o),s=0;s<o;s++)u[s]=arguments[s];var l=u.filter(function(e){return e!==i}).length;return l>=t?n.apply(void 0,u):e(t-l,c(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=u.map(function(e){return a(e)?t.shift():e});return n.apply(void 0,r(i).concat(t))}))})}(e.length,e)};t.curry=u;t.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var s=u(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)});t.map=s;t.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return o;var r=t.reverse(),i=r[0],a=r.slice(1);return function(){return a.reduce(function(e,t){return t(e)},i.apply(void 0,arguments))}};t.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};t.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every(function(e,n){return e===t[n]})?n:(t=o,n=e.apply(void 0,o))}}},function(e,t){function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var i=o(e,t,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+e.length,i[1]),post:n.slice(i[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}function o(e,t,n){var r,o,i,a,c,u=n.indexOf(e),s=n.indexOf(t,u+1),l=u;if(u>=0&&s>0){for(r=[],i=n.length;l>=0&&!c;)l==u?(r.push(l),u=n.indexOf(e,l+1)):1==r.length?c=[r.pop(),s]:((o=r.pop())<i&&(i=o,a=s),s=n.indexOf(t,l+1)),l=u<s&&u>=0?u:s;r.length&&(c=[i,a])}return c}e.exports=n,n.range=o},function(e,t,n){var r=n(218),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(19),o=n(54),i=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):c.test(e)?i:+e}},function(e,t,n){"use strict";(function(e){
  /*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
   * @license  MIT
   */
  var r=n(544),o=n(545),i=n(546);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(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 s(this,e,t,n)}function s(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=p(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|h(t,n),o=(e=c(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|d(t.length);return 0===(e=c(e,n)).length?e:(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?c(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(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(l(t),e=c(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|d(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(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 W(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function y(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 P(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){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=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,c=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,c/=2,u/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<c;i++)if(s(e,i)===s(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>c&&(n=c-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(s(e,i+p)!==s(t,p)){f=!1;break}if(f)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(t.substr(2*a,2),16);if(isNaN(c))return a;e[n+a]=c}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 O(e,t,n,r){return H(W(t),e,n,r)}function E(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,c,u,s=e[o],l=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&s)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));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(e){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 s(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 l(t),t<=0?c(e,t):void 0!==n?"string"==typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(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,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];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(!i(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),o=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,o),o+=a.length}return r},u.byteLength=h,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)m(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)m(this,t,t+3),m(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)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):y.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,o){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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;f<c;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(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 o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!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 O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=B(e[i]);return o}function C(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function M(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 N(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,i){return i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||D(e,0,n,8),o.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 o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||M(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||M(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||M(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||M(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||M(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||M(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||M(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||M(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(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||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(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):R(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(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):R(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===c&&0!==this[t+i-1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(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||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(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):R(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(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):R(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return F(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 o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},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 o=e.charCodeAt(0);o<256&&(e=o)}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 i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:z(new u(e,r).toString()),c=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%c]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function B(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,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(43))},function(e,t,n){"use strict";function r(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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!e.getCurrentLocation)throw new Error("delegate: expected history@3 implementation, got: "+String(e));if("string"!=typeof t)throw new Error("basename: expected string, got: "+t);if(!t.startsWith("/"))throw new Error("basename: must be absolute: "+t);if(!t.endsWith("/"))throw new Error("basename: must end in slash: "+t);function n(e){return t=>{if(null==t)return console.warn("unexpected lens argument: "+String(t)),t;if("string"==typeof t)return e(t);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{pathname:e(t.pathname)})}}function i(e){if(!e.startsWith(t)){const n=JSON.stringify(e),r=JSON.stringify(t);throw new Error("basename violation: ".concat(r," is not a prefix of ").concat(n))}}i(e.getCurrentLocation().pathname);const a=n(e=>t+e.replace(/^\//,"")),c=n(e=>(i(e),"/"+e.slice(t.length))),u=n(n=>{i(n);const r=e.getCurrentLocation().pathname;return i(r),r.slice(t.length).replace(/\/[^/]*$/,"/").replace(/[^/]+/g,"..")+n.slice(t.length)});return{getCurrentLocation:function(){return c(e.getCurrentLocation())},listenBefore:function(t){return e.listenBefore(e=>t(c(e)))},listen:function(t){return e.listen(e=>t(c(e)))},transitionTo:function(t){return e.transitionTo(a(t))},push:function(t){return e.push(a(t))},replace:function(t){return e.replace(a(t))},go:function(t){return e.go(t)},goBack:function(){return e.goBack()},goForward:function(){return e.goForward()},createKey:function(){return e.createKey()},createPath:function(e){throw new Error("createPath is not part of the public API")},createHref:function(t){return u(e.createHref(a(t)))},createLocation:function(t,n){return c(e.createLocation(a(t),n))}}}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,l=s&&s(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(l){var p=s(n);p&&p!==l&&e(t,p,f)}var d=a(n);c&&(d=d.concat(c(n)));for(var h=0;h<d.length;++h){var y=d[h];if(!(r[y]||o[y]||f&&f[y])){var m=u(n,y);try{i(t,y,m)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";t.__esModule=!0;var 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},o=(s(n(35)),s(n(14))),i=n(103),a=n(79),c=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(278)),u=s(n(105));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return"/"===e.charAt(0)?e:"/"+e},f={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!"+e},decodePath:function(e){return"!"===e.charAt(0)?e.substring(1):e}},noslash:{encodePath:function(e){return"/"===e.charAt(0)?e.substring(1):e},decodePath:l},slash:{encodePath:l,decodePath:l}};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.canUseDOM||(0,o.default)(!1);var t=e.queryKey,n=e.hashType;"string"!=typeof t&&(t="_k"),null==n&&(n="slash"),n in f||(n="slash");var s=f[n],l=c.getUserConfirmation,p=function(){return c.getCurrentLocation(s,t)},d=function(e){return c.pushLocation(e,s,t)},h=function(e){return c.replaceLocation(e,s,t)},y=(0,u.default)(r({getUserConfirmation:l},e,{getCurrentLocation:p,pushLocation:d,replaceLocation:h,go:c.go})),m=0,g=void 0,v=function(e,n){1==++m&&(g=c.startListener(y.transitionTo,s,t));var r=n?y.listenBefore(e):y.listen(e);return function(){r(),0==--m&&g()}},b=function(e){return v(e,!0)},w=function(e){return v(e,!1)},x=((0,a.supportsGoWithoutReloadUsingHash)(),function(e){y.go(e)}),_=function(e){return"#"+s.encodePath(y.createHref(e))};return r({},y,{listenBefore:b,listen:w,go:x,createHref:_})}},function(e,t){e.exports=function(e,t){(t=t||{}).listUnicodeChar=!!t.hasOwnProperty("listUnicodeChar")&&t.listUnicodeChar,t.stripListLeaders=!t.hasOwnProperty("stripListLeaders")||t.stripListLeaders,t.gfm=!t.hasOwnProperty("gfm")||t.gfm,t.useImgAltText=!t.hasOwnProperty("useImgAltText")||t.useImgAltText;var n=e||"";n=n.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{t.stripListLeaders&&(n=t.listUnicodeChar?n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,t.listUnicodeChar+" $1"):n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),t.gfm&&(n=n.replace(/\n={2,}/g,"\n").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),n=n.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,t.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,"\n\n")}catch(t){return console.error(t),e}return n}},function(e,t,n){var r=n(68),o=n(496),i=n(204),a=n(503),c=i(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]});e.exports=c},function(e,t,n){var r=n(192),o=n(505),i=n(33),a=n(11);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){var r=n(211),o=n(523);e.exports=function(e,t){return r(o(e,t),1)}},function(e,t,n){var r=n(190),o=n(33),i=n(526),a=n(11),c=n(93);e.exports=function(e,t,n){var u=a(e)?r:i;return n&&c(e,t,n)&&(t=void 0),u(e,o(t,3))}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(536)(n(537));e.exports=r},function(e,t,n){var r=n(541),o=n(19),i="Expected a function";e.exports=function(e,t,n){var a=!0,c=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,c="trailing"in n?!!n.trailing:c),r(e,t,{leading:a,maxWait:t,trailing:c})}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.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 c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var u=10;function s(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var o,i,a,c;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=s(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=function(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,i(this.listener,this.target,e))}.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]: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}(o):h(o,o.length)}function d(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 h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(c,"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}}),c.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},c.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},c.prototype.getMaxListeners=function(){return s(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var s=u.length,l=h(u,s);for(n=0;n<s;++n)i(l[n],this,t)}return!0},c.prototype.addListener=function(e,t){return l(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return l(this,e,t,!0)},c.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,f(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,f(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(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(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.off=c.prototype.removeListener,c.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 o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);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},c.prototype.listeners=function(e){return p(this,e,!0)},c.prototype.rawListeners=function(e){return p(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},c.prototype.listenerCount=d,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(543).default,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(72);function o(){const e='["nf-core/test-datasets","nf-core/vipr","nf-core/ampliseq","nf-core/atacseq","nf-core/bcellmagic","nf-core/bacass","nf-core/chipseq","nf-core/cookiecutter","nf-core/clinvap","nf-core/ddamsproteomics","nf-core/deepvariant","nf-core/eager","nf-core/epitopeprediction","nf-core/guideseq","nf-core/hlatyping","nf-core/logos","nf-core/lncpipe","nf-core/mag","nf-core/methylseq","nf-core/mhcquant","nf-core/nascent","nf-core/neutronstar","nf-core/nf-core.github.io","nf-core/nf-co.re","nf-core/rnafusion","nf-core/rnaseq","nf-core/smrnaseq"]';const t=JSON.parse(e);return Object(r.makeRouteData)(t)}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(30),a=n(102);function c(){return(c=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){const t=class extends o.a.Component{constructor(){var e,t,n;super(...arguments),n=void 0,(t="_assets")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}render(){const t=new a.a(this.props.router.createHref("/"));return null!=this._assets&&this._assets.resolve("")===t.resolve("")||(this._assets=t),o.a.createElement(e,c({},this.props,{assets:t}))}};return t.displayName="withAssets(".concat(e.displayName||e.name||"Component",")"),t}var s=n(138),l=n(139);function f(){return(f=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 p(e){const t=u(l.a);return o.a.createElement(i.c,{path:"/",component:n=>o.a.createElement(t,f({routeData:e},n))},e.map(e=>{let{path:t,contents:n}=e;switch(n.type){case"PAGE":return"/"===t?o.a.createElement(i.a,{key:t,component:u(n.component())}):o.a.createElement(i.c,{key:t,path:t,component:u(n.component())});case"EXTERNAL_REDIRECT":return o.a.createElement(i.c,{key:t,path:t,component:()=>o.a.createElement(s.a,{redirectTo:n.redirectTo})});default:throw new Error(n.type)}}))}n.d(t,"a",function(){return p})},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"undefined"==typeof Promise&&(n(262).enable(),window.Promise=n(263)),n(264),Object.assign=n(65)},function(e,t,n){"use strict";var r=n(143),o=[ReferenceError,TypeError,RangeError],i=!1;function a(){i=!1,r._l=null,r._m=null}function c(e,t){return t.some(function(t){return e instanceof t})}t.disable=a,t.enable=function(e){e=e||{},i&&a();i=!0;var t=0,n=0,u={};function s(t){(e.allRejections||c(u[t].error,e.whitelist||o))&&(u[t].displayId=n++,e.onUnhandled?(u[t].logged=!0,e.onUnhandled(u[t].displayId,u[t].error)):(u[t].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn("  "+e)})}(u[t].displayId,u[t].error)))}r._l=function(t){2===t._i&&u[t._o]&&(u[t._o].logged?function(t){u[t].logged&&(e.onHandled?e.onHandled(u[t].displayId,u[t].error):u[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+u[t].displayId+"):"),console.warn('  This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+u[t].displayId+".")))}(t._o):clearTimeout(u[t._o].timeout),delete u[t._o])},r._m=function(e,n){0===e._h&&(e._o=t++,u[e._o]={displayId:null,error:n,timeout:setTimeout(s.bind(null,e._o),c(n,o)?100:2e3),logged:!1})}}},function(e,t,n){"use strict";var r=n(143);e.exports=r;var o=l(!0),i=l(!1),a=l(null),c=l(void 0),u=l(0),s=l("");function l(e){var t=new r(r._n);return t._i=1,t._j=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(void 0===e)return c;if(!0===e)return o;if(!1===e)return i;if(0===e)return u;if(""===e)return s;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new r(t.bind(e))}catch(e){return new r(function(t,n){n(e)})}return l(e)},r.all=function(e){var t=Array.prototype.slice.call(e);return new r(function(e,n){if(0===t.length)return e([]);var o=t.length;function i(a,c){if(c&&("object"==typeof c||"function"==typeof c)){if(c instanceof r&&c.then===r.prototype.then){for(;3===c._i;)c=c._j;return 1===c._i?i(a,c._j):(2===c._i&&n(c._j),void c.then(function(e){i(a,e)},n))}var u=c.then;if("function"==typeof u)return void new r(u.bind(c)).then(function(e){i(a,e)},n)}t[a]=c,0==--o&&e(t)}for(var a=0;a<t.length;a++)i(a,t[a])})},r.reject=function(e){return new r(function(t,n){n(e)})},r.race=function(e){return new r(function(t,n){e.forEach(function(e){r.resolve(e).then(t,n)})})},r.prototype.catch=function(e){return this.then(null,e)}},function(e,t){!function(e){"use strict";if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=function(e){return e&&DataView.prototype.isPrototypeOf(e)},o=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};l.prototype.append=function(e,t){e=c(e),t=u(t);var n=this.map[e];this.map[e]=n?n+","+t:t},l.prototype.delete=function(e){delete this.map[c(e)]},l.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},l.prototype.set=function(e,t){this.map[c(e)]=u(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),s(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),s(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},y.call(m.prototype),y.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var a=[301,302,303,307,308];v.redirect=function(e,t){if(-1===a.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=l,e.Request=m,e.Response=v,e.fetch=function(e,n){return new Promise(function(r,o){var i=new m(e,n),a=new XMLHttpRequest;a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;r(new v(o,n))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials&&(a.withCredentials=!0),"responseType"in a&&t.blob&&(a.responseType="blob"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function d(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&r(e))this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!o(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=h(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=p(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}function m(e,t){var n,r,o=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),i.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function v(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,n){"use strict";
  /** @license React v16.8.6
   * react.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var r=n(65),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,y=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,c){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],s=0;(e=Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function x(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}function _(){}function O(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&v("85"),this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=x.prototype;var E=O.prototype=new _;E.constructor=O,r(E,x.prototype),E.isPureReactComponent=!0;var k={current:null},S={current:null},T=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,n){var r=void 0,o={},a=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!A.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var s=Array(u),l=0;l<u;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:c,props:o,_owner:S.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g,M=[];function N(e,t,n,r){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}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>M.length&&M.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,o){var c=typeof t;"undefined"!==c&&"boolean"!==c||(t=null);var u=!1;if(null===t)u=!0;else switch(c){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(o,t,""===n?"."+D(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var l=n+D(c=t[s],s);u+=e(c,l,r,o)}else if(l=null===t||"object"!=typeof t?null:"function"==typeof(l=g&&t[g]||t["@@iterator"])?l:null,"function"==typeof l)for(t=l.call(t),s=0;!(c=t.next()).done;)u+=e(c=c.value,l=n+D(c,s++),r,o);else"object"===c&&v("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return u}(e,"",t,n)}function D(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 L(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?U(e,r,n,function(e){return e}):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(C,"$&/")+"/")+n)),r.push(e))}function U(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(C,"$&/")+"/"),R(e,F,t=N(t,i,r,o)),I(t)}function B(){var e=k.current;return null===e&&v("321"),e}var z={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return U(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,L,t=N(null,null,t,n)),I(t)},count:function(e){return R(e,function(){return null},null)},toArray:function(e){var t=[];return U(e,t,null,function(e){return e}),t},only:function(e){return P(e)||v("143"),e}},createRef:function(){return{current:null}},Component:x,PureComponent:O,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:l,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:y,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return B().useCallback(e,t)},useContext:function(e,t){return B().useContext(e,t)},useEffect:function(e,t){return B().useEffect(e,t)},useImperativeHandle:function(e,t,n){return B().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return B().useLayoutEffect(e,t)},useMemo:function(e,t){return B().useMemo(e,t)},useReducer:function(e,t,n){return B().useReducer(e,t,n)},useRef:function(e){return B().useRef(e)},useState:function(e){return B().useState(e)},Fragment:c,StrictMode:u,Suspense:h,createElement:j,cloneElement:function(e,t,n){null==e&&v("267",e);var o=void 0,a=r({},e.props),c=e.key,u=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,s=S.current),void 0!==t.key&&(c=""+t.key);var l=void 0;for(o in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)T.call(t,o)&&!A.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==l?l[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){l=Array(o);for(var f=0;f<o;f++)l[f]=arguments[f+2];a.children=l}return{$$typeof:i,type:e.type,key:c,ref:u,props:a,_owner:s}},createFactory:function(e){var t=j.bind(null,e);return t.type=e,t},isValidElement:P,version:"16.8.6",unstable_ConcurrentMode:p,unstable_Profiler:s,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:k,ReactCurrentOwner:S,assign:r}},W={default:z},H=W&&z||W;e.exports=H.default||H},function(e,t,n){"use strict";
  /** @license React v16.8.6
   * react-dom.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var r=n(1),o=n(65),i=n(267);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,c){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],s=0;(e=Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||a("227");var c=!1,u=null,s=!1,l=null,f={onError:function(e){c=!0,u=e}};function p(e,t,n,r,o,i,a,s,l){c=!1,u=null,function(e,t,n,r,o,i,a,c,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}.apply(f,arguments)}var d=null,h={};function y(){if(d)for(var e in h){var t=h[e],n=d.indexOf(e);if(-1<n||a("96",e),!g[n])for(var r in t.extractEvents||a("97",e),g[n]=t,n=t.eventTypes){var o=void 0,i=n[r],c=t,u=r;v.hasOwnProperty(u)&&a("99",u),v[u]=i;var s=i.phasedRegistrationNames;if(s){for(o in s)s.hasOwnProperty(o)&&m(s[o],c,u);o=!0}else i.registrationName?(m(i.registrationName,c,u),o=!0):o=!1;o||a("98",r,e)}}}function m(e,t,n){b[e]&&a("100",e),b[e]=t,w[e]=t.eventTypes[n].dependencies}var g=[],v={},b={},w={},x=null,_=null,O=null;function E(e,t,n){var r=e.type||"unknown-event";e.currentTarget=O(n),function(e,t,n,r,o,i,f,d,h){if(p.apply(this,arguments),c){if(c){var y=u;c=!1,u=null}else a("198"),y=void 0;s||(s=!0,l=y)}}(r,t,void 0,e),e.currentTarget=null}function k(e,t){return null==t&&a("30"),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 S(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var T=null;function A(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)E(e,t[r],n[r]);else t&&E(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var j={injectEventPluginOrder:function(e){d&&a("101"),d=Array.prototype.slice.call(e),y()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];h.hasOwnProperty(t)&&h[t]===r||(h[t]&&a("102",t),h[t]=r,n=!0)}n&&y()}};function P(e,t){var n=e.stateNode;if(!n)return null;var r=x(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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function C(e){if(null!==e&&(T=k(T,e)),e=T,T=null,e&&(S(e,A),T&&a("95"),s))throw e=l,s=!1,l=null,e}var M=Math.random().toString(36).slice(2),N="__reactInternalInstance$"+M,I="__reactEventHandlers$"+M;function R(e){if(e[N])return e[N];for(;!e[N];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[N]).tag||6===e.tag?e:null}function D(e){return!(e=e[N])||5!==e.tag&&6!==e.tag?null:e}function L(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function F(e){return e[I]||null}function U(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function B(e,t,n){(t=P(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=k(n._dispatchListeners,t),n._dispatchInstances=k(n._dispatchInstances,e))}function z(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=U(t);for(t=n.length;0<t--;)B(n[t],"captured",e);for(t=0;t<n.length;t++)B(n[t],"bubbled",e)}}function W(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=P(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=k(n._dispatchListeners,t),n._dispatchInstances=k(n._dispatchInstances,e))}function H(e){e&&e.dispatchConfig.registrationName&&W(e._targetInst,null,e)}function G(e){S(e,z)}var q=!("undefined"==typeof window||!window.document||!window.document.createElement);function V(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Y={animationend:V("Animation","AnimationEnd"),animationiteration:V("Animation","AnimationIteration"),animationstart:V("Animation","AnimationStart"),transitionend:V("Transition","TransitionEnd")},$={},X={};function K(e){if($[e])return $[e];if(!Y[e])return e;var t,n=Y[e];for(t in n)if(n.hasOwnProperty(t)&&t in X)return $[e]=n[t];return e}q&&(X=document.createElement("div").style,"AnimationEvent"in window||(delete Y.animationend.animation,delete Y.animationiteration.animation,delete Y.animationstart.animation),"TransitionEvent"in window||delete Y.transitionend.transition);var Q=K("animationend"),J=K("animationiteration"),Z=K("animationstart"),ee=K("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,re=null,oe=null;function ie(){if(oe)return oe;var e,t,n=re,r=n.length,o="value"in ne?ne.value:ne.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return oe=o.slice(e,1<t?1-t:void 0)}function ae(){return!0}function ce(){return!1}function ue(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:ce,this.isPropagationStopped=ce,this}function se(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function le(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=se,e.release=le}o(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:ce,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=ce,this._dispatchInstances=this._dispatchListeners=null}}),ue.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},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var pe=ue.extend({data:null}),de=ue.extend({data:null}),he=[9,13,27,32],ye=q&&"CompositionEvent"in window,me=null;q&&"documentMode"in document&&(me=document.documentMode);var ge=q&&"TextEvent"in window&&!me,ve=q&&(!ye||me&&8<me&&11>=me),be=String.fromCharCode(32),we={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(" ")}},xe=!1;function _e(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Oe(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1;var ke={eventTypes:we,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ye)e:{switch(e){case"compositionstart":o=we.compositionStart;break e;case"compositionend":o=we.compositionEnd;break e;case"compositionupdate":o=we.compositionUpdate;break e}o=void 0}else Ee?_e(e,n)&&(o=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=we.compositionStart);return o?(ve&&"ko"!==n.locale&&(Ee||o!==we.compositionStart?o===we.compositionEnd&&Ee&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,Ee=!0)),o=pe.getPooled(o,t,n,r),i?o.data=i:null!==(i=Oe(n))&&(o.data=i),G(o),i=o):i=null,(e=ge?function(e,t){switch(e){case"compositionend":return Oe(t);case"keypress":return 32!==t.which?null:(xe=!0,be);case"textInput":return(e=t.data)===be&&xe?null:e;default:return null}}(e,n):function(e,t){if(Ee)return"compositionend"===e||!ye&&_e(e,t)?(e=ie(),oe=re=ne=null,Ee=!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 ve&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=de.getPooled(we.beforeInput,t,n,r)).data=e,G(t)):t=null,null===i?t:null===t?i:[i,t]}},Se=null,Te=null,Ae=null;function je(e){if(e=_(e)){"function"!=typeof Se&&a("280");var t=x(e.stateNode);Se(e.stateNode,e.type,t)}}function Pe(e){Te?Ae?Ae.push(e):Ae=[e]:Te=e}function Ce(){if(Te){var e=Te,t=Ae;if(Ae=Te=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function Me(e,t){return e(t)}function Ne(e,t,n){return e(t,n)}function Ie(){}var Re=!1;function De(e,t){if(Re)return e(t);Re=!0;try{return Me(e,t)}finally{Re=!1,(null!==Te||null!==Ae)&&(Ie(),Ce())}}var Le={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 Fe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Le[e.type]:"textarea"===t}function Ue(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Be(e){if(!q)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function ze(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=ze(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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 He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ze(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ge=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ge.hasOwnProperty("ReactCurrentDispatcher")||(Ge.ReactCurrentDispatcher={current:null});var qe=/^(.*)[\\\/]/,Ve="function"==typeof Symbol&&Symbol.for,Ye=Ve?Symbol.for("react.element"):60103,$e=Ve?Symbol.for("react.portal"):60106,Xe=Ve?Symbol.for("react.fragment"):60107,Ke=Ve?Symbol.for("react.strict_mode"):60108,Qe=Ve?Symbol.for("react.profiler"):60114,Je=Ve?Symbol.for("react.provider"):60109,Ze=Ve?Symbol.for("react.context"):60110,et=Ve?Symbol.for("react.concurrent_mode"):60111,tt=Ve?Symbol.for("react.forward_ref"):60112,nt=Ve?Symbol.for("react.suspense"):60113,rt=Ve?Symbol.for("react.memo"):60115,ot=Ve?Symbol.for("react.lazy"):60116,it="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=it&&e[it]||e["@@iterator"])?e:null}function ct(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 et:return"ConcurrentMode";case Xe:return"Fragment";case $e:return"Portal";case Qe:return"Profiler";case Ke:return"StrictMode";case nt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Ze:return"Context.Consumer";case Je:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case rt:return ct(e.type);case ot:if(e=1===e._status?e._result:null)return ct(e)}return null}function ut(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,o=e._debugSource,i=ct(e.type);n=null,r&&(n=ct(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(qe,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var st=/^[: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]*$/,lt=Object.prototype.hasOwnProperty,ft={},pt={};function dt(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new dt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new dt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new dt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new dt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new dt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new dt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ht[e]=new dt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ht[e]=new dt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ht[e]=new dt(e,5,!1,e.toLowerCase(),null)});var yt=/[\-:]([a-z])/g;function mt(e){return e[1].toUpperCase()}function gt(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(null!==o?0===o.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||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,o,r)&&(n=null),r||null===o?function(e){return!!lt.call(pt,e)||!lt.call(ft,e)&&(st.test(e)?pt[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function vt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function wt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=vt(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 xt(e,t){null!=(t=t.checked)&&gt(e,"checked",t,!1)}function _t(e,t){xt(e,t);var n=vt(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")?Et(e,t.type,n):t.hasOwnProperty("defaultValue")&&Et(e,t.type,vt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ot(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.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Et(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"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(yt,mt);ht[t]=new dt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yt,mt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yt,mt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new dt(e,1,!1,e.toLowerCase(),null)});var kt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function St(e,t,n){return(e=ue.getPooled(kt.change,e,t,n)).type="change",Pe(n),G(e),e}var Tt=null,At=null;function jt(e){C(e)}function Pt(e){if(He(L(e)))return e}function Ct(e,t){if("change"===e)return t}var Mt=!1;function Nt(){Tt&&(Tt.detachEvent("onpropertychange",It),At=Tt=null)}function It(e){"value"===e.propertyName&&Pt(At)&&De(jt,e=St(At,e,Ue(e)))}function Rt(e,t,n){"focus"===e?(Nt(),At=n,(Tt=t).attachEvent("onpropertychange",It)):"blur"===e&&Nt()}function Dt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Pt(At)}function Lt(e,t){if("click"===e)return Pt(t)}function Ft(e,t){if("input"===e||"change"===e)return Pt(t)}q&&(Mt=Be("input")&&(!document.documentMode||9<document.documentMode));var Ut={eventTypes:kt,_isInputEventSupported:Mt,extractEvents:function(e,t,n,r){var o=t?L(t):window,i=void 0,a=void 0,c=o.nodeName&&o.nodeName.toLowerCase();if("select"===c||"input"===c&&"file"===o.type?i=Ct:Fe(o)?Mt?i=Ft:(i=Dt,a=Rt):(c=o.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Lt),i&&(i=i(e,t)))return St(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Et(o,"number",o.value)}},Bt=ue.extend({view:null,detail:null}),zt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=zt[e])&&!!t[e]}function Ht(){return Wt}var Gt=0,qt=0,Vt=!1,Yt=!1,$t=Bt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ht,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=Gt;return Gt=e.screenX,Vt?"mousemove"===e.type?e.screenX-t:0:(Vt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=qt;return qt=e.screenY,Yt?"mousemove"===e.type?e.screenY-t:0:(Yt=!0,0)}}),Xt=$t.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Kt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qt={eventTypes:Kt,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?R(t):null):i=null,i===t)return null;var a=void 0,c=void 0,u=void 0,s=void 0;"mouseout"===e||"mouseover"===e?(a=$t,c=Kt.mouseLeave,u=Kt.mouseEnter,s="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Xt,c=Kt.pointerLeave,u=Kt.pointerEnter,s="pointer");var l=null==i?o:L(i);if(o=null==t?o:L(t),(e=a.getPooled(c,i,n,r)).type=s+"leave",e.target=l,e.relatedTarget=o,(n=a.getPooled(u,t,n,r)).type=s+"enter",n.target=o,n.relatedTarget=l,r=t,i&&r)e:{for(o=r,s=0,a=t=i;a;a=U(a))s++;for(a=0,u=o;u;u=U(u))a++;for(;0<s-a;)t=U(t),s--;for(;0<a-s;)o=U(o),a--;for(;s--;){if(t===o||t===o.alternate)break e;t=U(t),o=U(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(s=i.alternate)||s!==o);)t.push(i),i=U(i);for(i=[];r&&r!==o&&(null===(s=r.alternate)||s!==o);)i.push(r),r=U(r);for(r=0;r<t.length;r++)W(t[r],"bubbled",e);for(r=i.length;0<r--;)W(i[r],"captured",n);return[e,n]}};function Jt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var Zt=Object.prototype.hasOwnProperty;function en(e,t){if(Jt(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(!Zt.call(t,n[r])||!Jt(e[n[r]],t[n[r]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function nn(e){2!==tn(e)&&a("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var c=o.child;c;){if(c===n)return nn(o),e;if(c===r)return nn(o),t;c=c.sibling}a("188")}if(n.return!==r.return)n=o,r=i;else{c=!1;for(var u=o.child;u;){if(u===n){c=!0,n=o,r=i;break}if(u===r){c=!0,r=o,n=i;break}u=u.sibling}if(!c){for(u=i.child;u;){if(u===n){c=!0,n=i,r=o;break}if(u===r){c=!0,r=i,n=o;break}u=u.sibling}c||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),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}var on=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cn=Bt.extend({relatedTarget:null});function un(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 sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ln={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"},fn=Bt.extend({key:function(e){if(e.key){var t=sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ln[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ht,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pn=$t.extend({dataTransfer:null}),dn=Bt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ht}),hn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),yn=$t.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}),mn=[["abort","abort"],[Q,"animationEnd"],[J,"animationIteration"],[Z,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],gn={},vn={};function bn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},gn[e]=t,vn[n]=t}[["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"]].forEach(function(e){bn(e,!0)}),mn.forEach(function(e){bn(e,!1)});var wn={eventTypes:gn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=vn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=vn[e];if(!o)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=cn;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=$t;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=dn;break;case Q:case J:case Z:e=on;break;case ee:e=hn;break;case"scroll":e=Bt;break;case"wheel":e=yn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Xt;break;default:e=ue}return G(t=e.getPooled(o,t,n,r)),t}},xn=wn.isInteractiveTopLevelEventType,_n=[];function On(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=R(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=Ue(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,c=0;c<g.length;c++){var u=g[c];u&&(u=u.extractEvents(r,t,i,o))&&(a=k(a,u))}C(a)}}var En=!0;function kn(e,t){if(!t)return null;var n=(xn(e)?Tn:An).bind(null,e);t.addEventListener(e,n,!1)}function Sn(e,t){if(!t)return null;var n=(xn(e)?Tn:An).bind(null,e);t.addEventListener(e,n,!0)}function Tn(e,t){Ne(An,e,t)}function An(e,t){if(En){var n=Ue(t);if(null===(n=R(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),_n.length){var r=_n.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{De(On,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>_n.length&&_n.push(e)}}}var jn={},Pn=0,Cn="_reactListenersID"+(""+Math.random()).slice(2);function Mn(e){return Object.prototype.hasOwnProperty.call(e,Cn)||(e[Cn]=Pn++,jn[e[Cn]]={}),jn[e[Cn]]}function Nn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function In(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rn(e,t){var n,r=In(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=In(r)}}function Dn(){for(var e=window,t=Nn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Nn((e=t.contentWindow).document)}return t}function Ln(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)}function Fn(e){var t=Dn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.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))))}(n.ownerDocument.documentElement,n)){if(null!==r&&Ln(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Rn(n,i);var a=Rn(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Un=q&&"documentMode"in document&&11>=document.documentMode,Bn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zn=null,Wn=null,Hn=null,Gn=!1;function qn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Gn||null==zn||zn!==Nn(n)?null:("selectionStart"in(n=zn)&&Ln(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},Hn&&en(Hn,n)?null:(Hn=n,(e=ue.getPooled(Bn.select,Wn,e,t)).type="select",e.target=zn,G(e),e))}var Vn={eventTypes:Bn,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Mn(i),o=w.onSelect;for(var a=0;a<o.length;a++){var c=o[a];if(!i.hasOwnProperty(c)||!i[c]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?L(t):window,e){case"focus":(Fe(i)||"true"===i.contentEditable)&&(zn=i,Wn=t,Hn=null);break;case"blur":Hn=Wn=zn=null;break;case"mousedown":Gn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Gn=!1,qn(n,r);case"selectionchange":if(Un)break;case"keydown":case"keyup":return qn(n,r)}return null}};function Yn(e,t){return e=o({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 $n(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Xn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:vt(n)}}function Qn(e,t){var n=vt(t.value),r=vt(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 Jn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}j.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x=F,_=D,O=L,j.injectEventPluginsByName({SimpleEventPlugin:wn,EnterLeaveEventPlugin:Qt,ChangeEventPlugin:Ut,SelectEventPlugin:Vn,BeforeInputEventPlugin:ke});var Zn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function er(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 tr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?er(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var nr=void 0,rr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==Zn.svg||"innerHTML"in e)e.innerHTML=t;else{for((nr=nr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=nr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ir={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},ar=["Webkit","ms","Moz","O"];function cr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ir.hasOwnProperty(e)&&ir[e]?(""+t).trim():t+"px"}function ur(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=cr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ir).forEach(function(e){ar.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ir[t]=ir[e]})});var sr=o({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 lr(e,t){t&&(sr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function fr(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}}function pr(e,t){var n=Mn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=w[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":Sn("scroll",e);break;case"focus":case"blur":Sn("focus",e),Sn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Be(o)&&Sn(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(o)&&kn(o,e)}n[o]=!0}}}function dr(){}var hr=null,yr=null;function mr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gr(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 vr="function"==typeof setTimeout?setTimeout:void 0,br="function"==typeof clearTimeout?clearTimeout:void 0,wr=i.unstable_scheduleCallback,xr=i.unstable_cancelCallback;function _r(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Or(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Er=[],kr=-1;function Sr(e){0>kr||(e.current=Er[kr],Er[kr]=null,kr--)}function Tr(e,t){Er[++kr]=e.current,e.current=t}var Ar={},jr={current:Ar},Pr={current:!1},Cr=Ar;function Mr(e,t){var n=e.type.contextTypes;if(!n)return Ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Nr(e){return null!=(e=e.childContextTypes)}function Ir(e){Sr(Pr),Sr(jr)}function Rr(e){Sr(Pr),Sr(jr)}function Dr(e,t,n){jr.current!==Ar&&a("168"),Tr(jr,t),Tr(Pr,n)}function Lr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||a("108",ct(t)||"Unknown",i);return o({},n,r)}function Fr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Ar,Cr=jr.current,Tr(jr,t),Tr(Pr,Pr.current),!0}function Ur(e,t,n){var r=e.stateNode;r||a("169"),n?(t=Lr(e,t,Cr),r.__reactInternalMemoizedMergedChildContext=t,Sr(Pr),Sr(jr),Tr(jr,t)):Sr(Pr),Tr(Pr,n)}var Br=null,zr=null;function Wr(e){return function(t){try{return e(t)}catch(e){}}}function Hr(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.contextDependencies=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 Gr(e,t,n,r){return new Hr(e,t,n,r)}function qr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vr(e,t){var n=e.alternate;return null===n?((n=Gr(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,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yr(e,t,n,r,o,i){var c=2;if(r=e,"function"==typeof e)qr(e)&&(c=1);else if("string"==typeof e)c=5;else e:switch(e){case Xe:return $r(n.children,o,i,t);case et:return Xr(n,3|o,i,t);case Ke:return Xr(n,2|o,i,t);case Qe:return(e=Gr(12,n,t,4|o)).elementType=Qe,e.type=Qe,e.expirationTime=i,e;case nt:return(e=Gr(13,n,t,o)).elementType=nt,e.type=nt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Je:c=10;break e;case Ze:c=9;break e;case tt:c=11;break e;case rt:c=14;break e;case ot:c=16,r=null;break e}a("130",null==e?e:typeof e,"")}return(t=Gr(c,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function $r(e,t,n,r){return(e=Gr(7,e,r,t)).expirationTime=n,e}function Xr(e,t,n,r){return e=Gr(8,e,r,t),t=0==(1&t)?Ke:et,e.elementType=t,e.type=t,e.expirationTime=n,e}function Kr(e,t,n){return(e=Gr(6,e,null,t)).expirationTime=n,e}function Qr(e,t,n){return(t=Gr(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jr(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),to(t,e)}function Zr(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),to(t,e)}function eo(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function to(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,o=t.earliestPendingTime,i=t.latestPingedTime;0===(o=0!==o?o:i)&&(0===e||r<e)&&(o=r),0!==(e=o)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}function no(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ro=(new r.Component).refs;function oo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var io={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=xc(),o=Xi(r=$a(r,e));o.payload=t,null!=n&&(o.callback=n),Wa(),Qi(e,o),Qa(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=xc(),o=Xi(r=$a(r,e));o.tag=Hi,o.payload=t,null!=n&&(o.callback=n),Wa(),Qi(e,o),Qa(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=xc(),r=Xi(n=$a(n,e));r.tag=Gi,null!=t&&(r.callback=t),Wa(),Qi(e,r),Qa(e,n)}};function ao(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,r)||!en(o,i))}function co(e,t,n){var r=!1,o=Ar,i=t.contextType;return"object"==typeof i&&null!==i?i=zi(i):(o=Nr(t)?Cr:jr.current,i=(r=null!=(r=t.contextTypes))?Mr(e,o):Ar),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=io,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function uo(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&&io.enqueueReplaceState(t,t.state,null)}function so(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ro;var i=t.contextType;"object"==typeof i&&null!==i?o.context=zi(i):(i=Nr(t)?Cr:jr.current,o.context=Mr(e,i)),null!==(i=e.updateQueue)&&(ta(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(oo(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&io.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(ta(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var lo=Array.isArray;function fo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("309"),r=n.stateNode),r||a("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===ro&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function po(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ho(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 o(e,t,n){return(e=Vr(e,t)).index=0,e.sibling=null,e}function i(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 c(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Kr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=fo(e,t,n),r.return=e,r):((r=Yr(n.type,n.key,n.props,null,e.mode,r)).ref=fo(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Qr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=$r(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Kr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ye:return(n=Yr(t.type,t.key,t.props,null,e.mode,n)).ref=fo(e,null,t),n.return=e,n;case $e:return(t=Qr(t,e.mode,n)).return=e,t}if(lo(t)||at(t))return(t=$r(t,e.mode,n,null)).return=e,t;po(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ye:return n.key===o?n.type===Xe?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case $e:return n.key===o?l(e,t,n,r):null}if(lo(n)||at(n))return null!==o?null:f(e,t,n,r,null);po(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ye:return e=e.get(null===r.key?n:r.key)||null,r.type===Xe?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case $e:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(lo(r)||at(r))return f(t,e=e.get(n)||null,r,o,null);po(t,r)}return null}function y(o,a,c,u){for(var s=null,l=null,f=a,y=a=0,m=null;null!==f&&y<c.length;y++){f.index>y?(m=f,f=null):m=f.sibling;var g=d(o,f,c[y],u);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,y),null===l?s=g:l.sibling=g,l=g,f=m}if(y===c.length)return n(o,f),s;if(null===f){for(;y<c.length;y++)(f=p(o,c[y],u))&&(a=i(f,a,y),null===l?s=f:l.sibling=f,l=f);return s}for(f=r(o,f);y<c.length;y++)(m=h(f,o,y,c[y],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?y:m.key),a=i(m,a,y),null===l?s=m:l.sibling=m,l=m);return e&&f.forEach(function(e){return t(o,e)}),s}function m(o,c,u,s){var l=at(u);"function"!=typeof l&&a("150"),null==(u=l.call(u))&&a("151");for(var f=l=null,y=c,m=c=0,g=null,v=u.next();null!==y&&!v.done;m++,v=u.next()){y.index>m?(g=y,y=null):g=y.sibling;var b=d(o,y,v.value,s);if(null===b){y||(y=g);break}e&&y&&null===b.alternate&&t(o,y),c=i(b,c,m),null===f?l=b:f.sibling=b,f=b,y=g}if(v.done)return n(o,y),l;if(null===y){for(;!v.done;m++,v=u.next())null!==(v=p(o,v.value,s))&&(c=i(v,c,m),null===f?l=v:f.sibling=v,f=v);return l}for(y=r(o,y);!v.done;m++,v=u.next())null!==(v=h(y,o,m,v.value,s))&&(e&&null!==v.alternate&&y.delete(null===v.key?m:v.key),c=i(v,c,m),null===f?l=v:f.sibling=v,f=v);return e&&y.forEach(function(e){return t(o,e)}),l}return function(e,r,i,u){var s="object"==typeof i&&null!==i&&i.type===Xe&&null===i.key;s&&(i=i.props.children);var l="object"==typeof i&&null!==i;if(l)switch(i.$$typeof){case Ye:e:{for(l=i.key,s=r;null!==s;){if(s.key===l){if(7===s.tag?i.type===Xe:s.elementType===i.type){n(e,s.sibling),(r=o(s,i.type===Xe?i.props.children:i.props)).ref=fo(e,s,i),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}i.type===Xe?((r=$r(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Yr(i.type,i.key,i.props,null,e.mode,u)).ref=fo(e,r,i),u.return=e,e=u)}return c(e);case $e:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Qr(i,e.mode,u)).return=e,e=r}return c(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Kr(i,e.mode,u)).return=e,e=r),c(e);if(lo(i))return y(e,r,i,u);if(at(i))return m(e,r,i,u);if(l&&po(e,i),void 0===i&&!s)switch(e.tag){case 1:case 0:a("152",(u=e.type).displayName||u.name||"Component")}return n(e,r)}}var yo=ho(!0),mo=ho(!1),go={},vo={current:go},bo={current:go},wo={current:go};function xo(e){return e===go&&a("174"),e}function _o(e,t){Tr(wo,t),Tr(bo,e),Tr(vo,go);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tr(null,"");break;default:t=tr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Sr(vo),Tr(vo,t)}function Oo(e){Sr(vo),Sr(bo),Sr(wo)}function Eo(e){xo(wo.current);var t=xo(vo.current),n=tr(t,e.type);t!==n&&(Tr(bo,e),Tr(vo,n))}function ko(e){bo.current===e&&(Sr(vo),Sr(bo))}var So=0,To=2,Ao=4,jo=8,Po=16,Co=32,Mo=64,No=128,Io=Ge.ReactCurrentDispatcher,Ro=0,Do=null,Lo=null,Fo=null,Uo=null,Bo=null,zo=null,Wo=0,Ho=null,Go=0,qo=!1,Vo=null,Yo=0;function $o(){a("321")}function Xo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jt(e[n],t[n]))return!1;return!0}function Ko(e,t,n,r,o,i){if(Ro=i,Do=t,Fo=null!==e?e.memoizedState:null,Io.current=null===Fo?si:li,t=n(r,o),qo){do{qo=!1,Yo+=1,Fo=null!==e?e.memoizedState:null,zo=Uo,Ho=Bo=Lo=null,Io.current=li,t=n(r,o)}while(qo);Vo=null,Yo=0}return Io.current=ui,(e=Do).memoizedState=Uo,e.expirationTime=Wo,e.updateQueue=Ho,e.effectTag|=Go,e=null!==Lo&&null!==Lo.next,Ro=0,zo=Bo=Uo=Fo=Lo=Do=null,Wo=0,Ho=null,Go=0,e&&a("300"),t}function Qo(){Io.current=ui,Ro=0,zo=Bo=Uo=Fo=Lo=Do=null,Wo=0,Ho=null,Go=0,qo=!1,Vo=null,Yo=0}function Jo(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Bo?Uo=Bo=e:Bo=Bo.next=e,Bo}function Zo(){if(null!==zo)zo=(Bo=zo).next,Fo=null!==(Lo=Fo)?Lo.next:null;else{null===Fo&&a("310");var e={memoizedState:(Lo=Fo).memoizedState,baseState:Lo.baseState,queue:Lo.queue,baseUpdate:Lo.baseUpdate,next:null};Bo=null===Bo?Uo=e:Bo.next=e,Fo=Lo.next}return Bo}function ei(e,t){return"function"==typeof t?t(e):t}function ti(e){var t=Zo(),n=t.queue;if(null===n&&a("311"),n.lastRenderedReducer=e,0<Yo){var r=n.dispatch;if(null!==Vo){var o=Vo.get(n);if(void 0!==o){Vo.delete(n);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return Jt(i,t.memoizedState)||(xi=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var c=t.baseUpdate;if(i=t.baseState,null!==c?(null!==r&&(r.next=null),r=c.next):r=null!==r?r.next:null,null!==r){var u=o=null,s=r,l=!1;do{var f=s.expirationTime;f<Ro?(l||(l=!0,u=c,o=i),f>Wo&&(Wo=f)):i=s.eagerReducer===e?s.eagerState:e(i,s.action),c=s,s=s.next}while(null!==s&&s!==r);l||(u=c,o=i),Jt(i,t.memoizedState)||(xi=!0),t.memoizedState=i,t.baseUpdate=u,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function ni(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Ho?(Ho={lastEffect:null}).lastEffect=e.next=e:null===(t=Ho.lastEffect)?Ho.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Ho.lastEffect=e),e}function ri(e,t,n,r){var o=Jo();Go|=e,o.memoizedState=ni(t,n,void 0,void 0===r?null:r)}function oi(e,t,n,r){var o=Zo();r=void 0===r?null:r;var i=void 0;if(null!==Lo){var a=Lo.memoizedState;if(i=a.destroy,null!==r&&Xo(r,a.deps))return void ni(So,n,i,r)}Go|=e,o.memoizedState=ni(t,n,i,r)}function ii(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ai(){}function ci(e,t,n){25>Yo||a("301");var r=e.alternate;if(e===Do||null!==r&&r===Do)if(qo=!0,e={expirationTime:Ro,action:n,eagerReducer:null,eagerState:null,next:null},null===Vo&&(Vo=new Map),void 0===(n=Vo.get(t)))Vo.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{Wa();var o=xc(),i={expirationTime:o=$a(o,e),action:n,eagerReducer:null,eagerState:null,next:null},c=t.last;if(null===c)i.next=i;else{var u=c.next;null!==u&&(i.next=u),c.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=r(s,n);if(i.eagerReducer=r,i.eagerState=l,Jt(l,s))return}catch(e){}Qa(e,o)}}var ui={readContext:zi,useCallback:$o,useContext:$o,useEffect:$o,useImperativeHandle:$o,useLayoutEffect:$o,useMemo:$o,useReducer:$o,useRef:$o,useState:$o,useDebugValue:$o},si={readContext:zi,useCallback:function(e,t){return Jo().memoizedState=[e,void 0===t?null:t],e},useContext:zi,useEffect:function(e,t){return ri(516,No|Mo,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ri(4,Ao|Co,ii.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ri(4,Ao|Co,e,t)},useMemo:function(e,t){var n=Jo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ci.bind(null,Do,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Jo().memoizedState=e},useState:function(e){var t=Jo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e}).dispatch=ci.bind(null,Do,e),[t.memoizedState,e]},useDebugValue:ai},li={readContext:zi,useCallback:function(e,t){var n=Zo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:zi,useEffect:function(e,t){return oi(516,No|Mo,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oi(4,Ao|Co,ii.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oi(4,Ao|Co,e,t)},useMemo:function(e,t){var n=Zo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ti,useRef:function(){return Zo().memoizedState},useState:function(e){return ti(ei)},useDebugValue:ai},fi=null,pi=null,di=!1;function hi(e,t){var n=Gr(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 yi(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 mi(e){if(di){var t=pi;if(t){var n=t;if(!yi(e,t)){if(!(t=_r(n))||!yi(e,t))return e.effectTag|=2,di=!1,void(fi=e);hi(fi,n)}fi=e,pi=Or(t)}else e.effectTag|=2,di=!1,fi=e}}function gi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;fi=e}function vi(e){if(e!==fi)return!1;if(!di)return gi(e),di=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!gr(t,e.memoizedProps))for(t=pi;t;)hi(e,t),t=_r(t);return gi(e),pi=fi?_r(e.stateNode):null,!0}function bi(){pi=fi=null,di=!1}var wi=Ge.ReactCurrentOwner,xi=!1;function _i(e,t,n,r){t.child=null===e?mo(t,null,n,r):yo(t,e.child,n,r)}function Oi(e,t,n,r,o){n=n.render;var i=t.ref;return Bi(t,o),r=Ko(e,t,n,r,i,o),null===e||xi?(t.effectTag|=1,_i(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Mi(e,t,o))}function Ei(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||qr(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Yr(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ki(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:en)(o,r)&&e.ref===t.ref)?Mi(e,t,i):(t.effectTag|=1,(e=Vr(a,r)).ref=t.ref,e.return=t,t.child=e)}function ki(e,t,n,r,o,i){return null!==e&&en(e.memoizedProps,r)&&e.ref===t.ref&&(xi=!1,o<i)?Mi(e,t,i):Ti(e,t,n,r,i)}function Si(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ti(e,t,n,r,o){var i=Nr(n)?Cr:jr.current;return i=Mr(t,i),Bi(t,o),n=Ko(e,t,n,r,i,o),null===e||xi?(t.effectTag|=1,_i(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Mi(e,t,o))}function Ai(e,t,n,r,o){if(Nr(n)){var i=!0;Fr(t)}else i=!1;if(Bi(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),co(t,n,r),so(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,c=t.memoizedProps;a.props=c;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=zi(s):s=Mr(t,s=Nr(n)?Cr:jr.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(c!==r||u!==s)&&uo(t,a,r,s),Vi=!1;var p=t.memoizedState;u=a.state=p;var d=t.updateQueue;null!==d&&(ta(t,d,r,a,o),u=t.memoizedState),c!==r||p!==u||Pr.current||Vi?("function"==typeof l&&(oo(t,n,l,r),u=t.memoizedState),(c=Vi||ao(t,n,c,r,p,u,s))?(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=s,r=c):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,c=t.memoizedProps,a.props=t.type===t.elementType?c:no(t.type,c),u=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=zi(s):s=Mr(t,s=Nr(n)?Cr:jr.current),(f="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(c!==r||u!==s)&&uo(t,a,r,s),Vi=!1,u=t.memoizedState,p=a.state=u,null!==(d=t.updateQueue)&&(ta(t,d,r,a,o),p=t.memoizedState),c!==r||u!==p||Pr.current||Vi?("function"==typeof l&&(oo(t,n,l,r),p=t.memoizedState),(l=Vi||ao(t,n,c,r,u,p,s))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return ji(e,t,n,r,i,o)}function ji(e,t,n,r,o,i){Si(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Ur(t,n,!1),Mi(e,t,i);r=t.stateNode,wi.current=t;var c=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=yo(t,e.child,null,i),t.child=yo(t,null,c,i)):_i(e,t,c,i),t.memoizedState=r.state,o&&Ur(t,n,!0),t.child}function Pi(e){var t=e.stateNode;t.pendingContext?Dr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Dr(0,t.context,!1),_o(e,t.containerInfo)}function Ci(e,t,n){var r=t.mode,o=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var a=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var c=o.fallback;e=$r(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=$r(c,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=mo(t,null,o.children,n);else null!==e.memoizedState?(c=(r=e.child).sibling,a?(n=o.fallback,o=Vr(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(o.child=a)),r=o.sibling=Vr(c,n,c.expirationTime),n=o,o.childExpirationTime=0,n.return=r.return=t):n=r=yo(t,r.child,o.children,n)):(c=e.child,a?(a=o.fallback,(o=$r(null,r,0,null)).child=c,0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),(r=o.sibling=$r(a,r,n,null)).effectTag|=2,n=o,o.childExpirationTime=0,n.return=r.return=t):r=n=yo(t,c,o.children,n)),t.stateNode=e.stateNode;return t.memoizedState=i,t.child=n,r}function Mi(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Vr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Ni(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||Pr.current)xi=!0;else if(r<n){switch(xi=!1,t.tag){case 3:Pi(t),bi();break;case 5:Eo(t);break;case 1:Nr(t.type)&&Fr(t);break;case 4:_o(t,t.stateNode.containerInfo);break;case 10:Fi(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ci(e,t,n):null!==(t=Mi(e,t,n))?t.sibling:null}return Mi(e,t,n)}}else xi=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var o=Mr(t,jr.current);if(Bi(t,n),o=Ko(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,Qo(),Nr(r)){var i=!0;Fr(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var c=r.getDerivedStateFromProps;"function"==typeof c&&oo(t,r,c,e),o.updater=io,t.stateNode=o,o._reactInternalFiber=t,so(t,r,e,n),t=ji(null,t,r,!0,i,n)}else t.tag=0,_i(null,t,o,n),t=t.child;return t;case 16:switch(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).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)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(o),t.type=e,o=t.tag=function(e){if("function"==typeof e)return qr(e)?1:0;if(null!=e){if((e=e.$$typeof)===tt)return 11;if(e===rt)return 14}return 2}(e),i=no(e,i),c=void 0,o){case 0:c=Ti(null,t,e,i,n);break;case 1:c=Ai(null,t,e,i,n);break;case 11:c=Oi(null,t,e,i,n);break;case 14:c=Ei(null,t,e,no(e.type,i),r,n);break;default:a("306",e,"")}return c;case 0:return r=t.type,o=t.pendingProps,Ti(e,t,r,o=t.elementType===r?o:no(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ai(e,t,r,o=t.elementType===r?o:no(r,o),n);case 3:return Pi(t),null===(r=t.updateQueue)&&a("282"),o=null!==(o=t.memoizedState)?o.element:null,ta(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o?(bi(),t=Mi(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(pi=Or(t.stateNode.containerInfo),fi=t,o=di=!0),o?(t.effectTag|=2,t.child=mo(t,null,r,n)):(_i(e,t,r,n),bi()),t=t.child),t;case 5:return Eo(t),null===e&&mi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,c=o.children,gr(r,o)?c=null:null!==i&&gr(r,i)&&(t.effectTag|=16),Si(e,t),1!==n&&1&t.mode&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(_i(e,t,c,n),t=t.child),t;case 6:return null===e&&mi(t),null;case 13:return Ci(e,t,n);case 4:return _o(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=yo(t,null,r,n):_i(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Oi(e,t,r,o=t.elementType===r?o:no(r,o),n);case 7:return _i(e,t,t.pendingProps,n),t.child;case 8:case 12:return _i(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,c=t.memoizedProps,Fi(t,i=o.value),null!==c){var u=c.value;if(0===(i=Jt(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(c.children===o.children&&!Pr.current){t=Mi(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.contextDependencies;if(null!==s){c=u.child;for(var l=s.first;null!==l;){if(l.context===r&&0!=(l.observedBits&i)){1===u.tag&&((l=Xi(n)).tag=Gi,Qi(u,l)),u.expirationTime<n&&(u.expirationTime=n),null!==(l=u.alternate)&&l.expirationTime<n&&(l.expirationTime=n),l=n;for(var f=u.return;null!==f;){var p=f.alternate;if(f.childExpirationTime<l)f.childExpirationTime=l,null!==p&&p.childExpirationTime<l&&(p.childExpirationTime=l);else{if(!(null!==p&&p.childExpirationTime<l))break;p.childExpirationTime=l}f=f.return}s.expirationTime<n&&(s.expirationTime=n);break}l=l.next}}else c=10===u.tag&&u.type===t.type?null:u.child;if(null!==c)c.return=u;else for(c=u;null!==c;){if(c===t){c=null;break}if(null!==(u=c.sibling)){u.return=c.return,c=u;break}c=c.return}u=c}}_i(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,Bi(t,n),r=r(o=zi(o,i.unstable_observedBits)),t.effectTag|=1,_i(e,t,r,n),t.child;case 14:return i=no(o=t.type,t.pendingProps),Ei(e,t,o,i=no(o.type,i),r,n);case 15:return ki(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:no(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Nr(r)?(e=!0,Fr(t)):e=!1,Bi(t,n),co(t,r,o),so(t,r,o,n),ji(null,t,r,!0,e,n)}a("156")}var Ii={current:null},Ri=null,Di=null,Li=null;function Fi(e,t){var n=e.type._context;Tr(Ii,n._currentValue),n._currentValue=t}function Ui(e){var t=Ii.current;Sr(Ii),e.type._context._currentValue=t}function Bi(e,t){Ri=e,Li=Di=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(xi=!0),e.contextDependencies=null}function zi(e,t){return Li!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Li=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Di?(null===Ri&&a("308"),Di=t,Ri.contextDependencies={first:t,expirationTime:0}):Di=Di.next=t),e._currentValue}var Wi=0,Hi=1,Gi=2,qi=3,Vi=!1;function Yi(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function $i(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Xi(e){return{expirationTime:e,tag:Wi,payload:null,callback:null,next:null,nextEffect:null}}function Ki(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Qi(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=Yi(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=Yi(e.memoizedState),o=n.updateQueue=Yi(n.memoizedState)):r=e.updateQueue=$i(o):null===o&&(o=n.updateQueue=$i(r));null===o||r===o?Ki(r,t):null===r.lastUpdate||null===o.lastUpdate?(Ki(r,t),Ki(o,t)):(Ki(r,t),o.lastUpdate=t)}function Ji(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Yi(e.memoizedState):Zi(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Zi(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=$i(t)),t}function ea(e,t,n,r,i,a){switch(n.tag){case Hi:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case qi:e.effectTag=-2049&e.effectTag|64;case Wi:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case Gi:Vi=!0}return r}function ta(e,t,n,r,o){Vi=!1;for(var i=(t=Zi(e,t)).baseState,a=null,c=0,u=t.firstUpdate,s=i;null!==u;){var l=u.expirationTime;l<o?(null===a&&(a=u,i=s),c<l&&(c=l)):(s=ea(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(l=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<o?(null===l&&(l=u,null===a&&(i=s)),c<f&&(c=f)):(s=ea(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===l?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===l&&(i=s),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=l,e.expirationTime=c,e.memoizedState=s}function na(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ra(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ra(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ra(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&a("191",n),n.call(r)}e=e.nextEffect}}function oa(e,t){return{value:e,source:t,stack:ut(t)}}function ia(e){e.effectTag|=4}var aa=void 0,ca=void 0,ua=void 0,sa=void 0;aa=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}},ca=function(){},ua=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var c=t.stateNode;switch(xo(vo.current),e=null,n){case"input":a=bt(c,a),r=bt(c,r),e=[];break;case"option":a=Yn(c,a),r=Yn(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Xn(c,a),r=Xn(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=dr)}lr(n,r),c=n=void 0;var u=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var s=a[n];for(c in s)s.hasOwnProperty(c)&&(u||(u={}),u[c]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var l=r[n];if(s=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&l!==s&&(null!=l||null!=s))if("style"===n)if(s){for(c in s)!s.hasOwnProperty(c)||l&&l.hasOwnProperty(c)||(u||(u={}),u[c]="");for(c in l)l.hasOwnProperty(c)&&s[c]!==l[c]&&(u||(u={}),u[c]=l[c])}else u||(e||(e=[]),e.push(n,u)),u=l;else"dangerouslySetInnerHTML"===n?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(e=e||[]).push(n,""+l)):"children"===n?s===l||"string"!=typeof l&&"number"!=typeof l||(e=e||[]).push(n,""+l):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=l&&pr(i,n),e||s===l||(e=[])):(e=e||[]).push(n,l))}u&&(e=e||[]).push("style",u),i=e,(t.updateQueue=i)&&ia(t)}},sa=function(e,t,n,r){n!==r&&ia(t)};var la="function"==typeof WeakSet?WeakSet:Set;function fa(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ut(n)),null!==n&&ct(n.type),t=t.value,null!==e&&1===e.tag&&ct(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function pa(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ya(e,t)}else t.current=null}function da(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==So){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}(r.tag&t)!==So&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function ha(e){switch("function"==typeof zr&&zr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var o=e;try{r()}catch(e){Ya(o,e)}}n=n.next}while(n!==t)}break;case 1:if(pa(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ya(e,t)}break;case 5:pa(e);break;case 4:ga(e)}}function ya(e){return 5===e.tag||3===e.tag||4===e.tag}function ma(e){e:{for(var t=e.return;null!==t;){if(ya(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(or(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ya(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}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(r){var i=t,c=o.stateNode,u=n;8===i.nodeType?i.parentNode.insertBefore(c,u):i.insertBefore(c,u)}else t.insertBefore(o.stateNode,n);else r?(c=t,u=o.stateNode,8===c.nodeType?(i=c.parentNode).insertBefore(u,c):(i=c).appendChild(u),null!=(c=c._reactRootContainer)||null!==i.onclick||(i.onclick=dr)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function ga(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,c=i;;)if(ha(c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===i)break;for(;null===c.sibling;){if(null===c.return||c.return===i)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}o?(i=r,c=t.stateNode,8===i.nodeType?i.parentNode.removeChild(c):i.removeChild(c)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,o=!0,t.child.return=t,t=t.child;continue}}else if(ha(t),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;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function va(e,t){switch(t.tag){case 0:case 11:case 14:case 15:da(Ao,jo,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&function(e,t,n,r,o){e[I]=o,"input"===n&&"radio"===o.type&&null!=o.name&&xt(e,o),fr(n,r),r=fr(n,o);for(var i=0;i<t.length;i+=2){var a=t[i],c=t[i+1];"style"===a?ur(e,c):"dangerouslySetInnerHTML"===a?rr(e,c):"children"===a?or(e,c):gt(e,a,c,r)}switch(n){case"input":_t(e,o);break;case"textarea":Qn(e,o);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,null!=(n=o.value)?$n(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?$n(e,!!o.multiple,o.defaultValue,!0):$n(e,!!o.multiple,o.multiple?[]:"",!1))}}(n,i,o,e,r)}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=xc())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=cr("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var c=t.stateNode;null===c&&(c=t.stateNode=new la),n.forEach(function(e){var n=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),t=$a(t=xc(),e),null!==(e=Ka(e,t))&&(Jr(e,t),0!==(t=e.expirationTime)&&_c(e,t))}.bind(null,t,e);c.has(e)||(c.add(e),e.then(n,n))})}break;case 17:break;default:a("163")}}var ba="function"==typeof WeakMap?WeakMap:Map;function wa(e,t,n){(n=Xi(n)).tag=qi,n.payload={element:null};var r=t.value;return n.callback=function(){Cc(r),fa(e,t)},n}function xa(e,t,n){(n=Xi(n)).tag=qi;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===La?La=new Set([this]):La.add(this));var n=t.value,o=t.stack;fa(e,t),this.componentDidCatch(n,{componentStack:null!==o?o:""})}),n}function _a(e){switch(e.tag){case 1:Nr(e.type)&&Ir();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return Oo(),Rr(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return ko(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return Oo(),null;case 10:return Ui(e),null;default:return null}}var Oa=Ge.ReactCurrentDispatcher,Ea=Ge.ReactCurrentOwner,ka=1073741822,Sa=!1,Ta=null,Aa=null,ja=0,Pa=-1,Ca=!1,Ma=null,Na=!1,Ia=null,Ra=null,Da=null,La=null;function Fa(){if(null!==Ta)for(var e=Ta.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Ir();break;case 3:Oo(),Rr();break;case 5:ko(t);break;case 4:Oo();break;case 10:Ui(t)}e=e.return}Aa=null,ja=0,Pa=-1,Ca=!1,Ta=null}function Ua(){for(;null!==Ma;){var e=Ma.effectTag;if(16&e&&or(Ma.stateNode,""),128&e){var t=Ma.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:ma(Ma),Ma.effectTag&=-3;break;case 6:ma(Ma),Ma.effectTag&=-3,va(Ma.alternate,Ma);break;case 4:va(Ma.alternate,Ma);break;case 8:ga(e=Ma),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}Ma=Ma.nextEffect}}function Ba(){for(;null!==Ma;){if(256&Ma.effectTag)e:{var e=Ma.alternate,t=Ma;switch(t.tag){case 0:case 11:case 15:da(To,So,t);break e;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:no(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}Ma=Ma.nextEffect}}function za(e,t){for(;null!==Ma;){var n=Ma.effectTag;if(36&n){var r=Ma.alternate,o=Ma,i=t;switch(o.tag){case 0:case 11:case 15:da(Po,Co,o);break;case 1:var c=o.stateNode;if(4&o.effectTag)if(null===r)c.componentDidMount();else{var u=o.elementType===o.type?r.memoizedProps:no(o.type,r.memoizedProps);c.componentDidUpdate(u,r.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}null!==(r=o.updateQueue)&&na(0,r,c);break;case 3:if(null!==(r=o.updateQueue)){if(c=null,null!==o.child)switch(o.child.tag){case 5:c=o.child.stateNode;break;case 1:c=o.child.stateNode}na(0,r,c)}break;case 5:i=o.stateNode,null===r&&4&o.effectTag&&mr(o.type,o.memoizedProps)&&i.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}128&n&&(null!==(o=Ma.ref)&&(i=Ma.stateNode,"function"==typeof o?o(i):o.current=i)),512&n&&(Ia=e),Ma=Ma.nextEffect}}function Wa(){null!==Ra&&xr(Ra),null!==Da&&Da()}function Ha(e,t){Na=Sa=!0,e.current===t&&a("177");var n=e.pendingCommitExpirationTime;0===n&&a("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,o=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?Jr(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Jr(e,t)):t>n&&Jr(e,t)}to(0,e)}(e,o>r?o:r),Ea.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,hr=En,yr=function(){var e=Dn();if(Ln(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch(e){t=null;break e}var i=0,a=-1,c=-1,u=0,s=0,l=e,f=null;t:for(;;){for(var p;l!==t||0!==r&&3!==l.nodeType||(a=i+r),l!==o||0!==n&&3!==l.nodeType||(c=i+n),3===l.nodeType&&(i+=l.nodeValue.length),null!==(p=l.firstChild);)f=l,l=p;for(;;){if(l===e)break t;if(f===t&&++u===r&&(a=i),f===o&&++s===n&&(c=i),null!==(p=l.nextSibling))break;f=(l=f).parentNode}l=p}t=-1===a||-1===c?null:{start:a,end:c}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),En=!1,Ma=r;null!==Ma;){o=!1;var c=void 0;try{Ba()}catch(e){o=!0,c=e}o&&(null===Ma&&a("178"),Ya(Ma,c),null!==Ma&&(Ma=Ma.nextEffect))}for(Ma=r;null!==Ma;){o=!1,c=void 0;try{Ua()}catch(e){o=!0,c=e}o&&(null===Ma&&a("178"),Ya(Ma,c),null!==Ma&&(Ma=Ma.nextEffect))}for(Fn(yr),yr=null,En=!!hr,hr=null,e.current=t,Ma=r;null!==Ma;){o=!1,c=void 0;try{za(e,n)}catch(e){o=!0,c=e}o&&(null===Ma&&a("178"),Ya(Ma,c),null!==Ma&&(Ma=Ma.nextEffect))}if(null!==r&&null!==Ia){var u=function(e,t){Da=Ra=Ia=null;var n=rc;rc=!0;do{if(512&t.effectTag){var r=!1,o=void 0;try{var i=t;da(No,So,i),da(So,Mo,i)}catch(e){r=!0,o=e}r&&Ya(t,o)}t=t.nextEffect}while(null!==t);rc=n,0!==(n=e.expirationTime)&&_c(e,n),sc||rc||Tc(1073741823,!1)}.bind(null,e,r);Ra=i.unstable_runWithPriority(i.unstable_NormalPriority,function(){return wr(u)}),Da=u}Sa=Na=!1,"function"==typeof Br&&Br(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(La=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function Ga(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Ta=e;e:{var i=t,c=ja,u=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Nr(t.type)&&Ir();break;case 3:Oo(),Rr(),(u=t.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==i&&null!==i.child||(vi(t),t.effectTag&=-3),ca(t);break;case 5:ko(t);var s=xo(wo.current);if(c=t.type,null!==i&&null!=t.stateNode)ua(i,t,c,u,s),i.ref!==t.ref&&(t.effectTag|=128);else if(u){var l=xo(vo.current);if(vi(t)){i=(u=t).stateNode;var f=u.type,p=u.memoizedProps,d=s;switch(i[N]=u,i[I]=p,c=void 0,s=f){case"iframe":case"object":kn("load",i);break;case"video":case"audio":for(f=0;f<te.length;f++)kn(te[f],i);break;case"source":kn("error",i);break;case"img":case"image":case"link":kn("error",i),kn("load",i);break;case"form":kn("reset",i),kn("submit",i);break;case"details":kn("toggle",i);break;case"input":wt(i,p),kn("invalid",i),pr(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!p.multiple},kn("invalid",i),pr(d,"onChange");break;case"textarea":Kn(i,p),kn("invalid",i),pr(d,"onChange")}for(c in lr(s,p),f=null,p)p.hasOwnProperty(c)&&(l=p[c],"children"===c?"string"==typeof l?i.textContent!==l&&(f=["children",l]):"number"==typeof l&&i.textContent!==""+l&&(f=["children",""+l]):b.hasOwnProperty(c)&&null!=l&&pr(d,c));switch(s){case"input":We(i),Ot(i,p,!0);break;case"textarea":We(i),Jn(i);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(i.onclick=dr)}c=f,u.updateQueue=c,(u=null!==c)&&ia(t)}else{p=t,d=c,i=u,f=9===s.nodeType?s:s.ownerDocument,l===Zn.html&&(l=er(d)),l===Zn.html?"script"===d?((i=f.createElement("div")).innerHTML="<script><\/script>",f=i.removeChild(i.firstChild)):"string"==typeof i.is?f=f.createElement(d,{is:i.is}):(f=f.createElement(d),"select"===d&&(d=f,i.multiple?d.multiple=!0:i.size&&(d.size=i.size))):f=f.createElementNS(l,d),(i=f)[N]=p,i[I]=u,aa(i,t,!1,!1),d=i;var h=s,y=fr(f=c,p=u);switch(f){case"iframe":case"object":kn("load",d),s=p;break;case"video":case"audio":for(s=0;s<te.length;s++)kn(te[s],d);s=p;break;case"source":kn("error",d),s=p;break;case"img":case"image":case"link":kn("error",d),kn("load",d),s=p;break;case"form":kn("reset",d),kn("submit",d),s=p;break;case"details":kn("toggle",d),s=p;break;case"input":wt(d,p),s=bt(d,p),kn("invalid",d),pr(h,"onChange");break;case"option":s=Yn(d,p);break;case"select":d._wrapperState={wasMultiple:!!p.multiple},s=o({},p,{value:void 0}),kn("invalid",d),pr(h,"onChange");break;case"textarea":Kn(d,p),s=Xn(d,p),kn("invalid",d),pr(h,"onChange");break;default:s=p}lr(f,s),l=void 0;var m=f,g=d,v=s;for(l in v)if(v.hasOwnProperty(l)){var w=v[l];"style"===l?ur(g,w):"dangerouslySetInnerHTML"===l?null!=(w=w?w.__html:void 0)&&rr(g,w):"children"===l?"string"==typeof w?("textarea"!==m||""!==w)&&or(g,w):"number"==typeof w&&or(g,""+w):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(b.hasOwnProperty(l)?null!=w&&pr(h,l):null!=w&&gt(g,l,w,y))}switch(f){case"input":We(d),Ot(d,p,!1);break;case"textarea":We(d),Jn(d);break;case"option":null!=p.value&&d.setAttribute("value",""+vt(p.value));break;case"select":(s=d).multiple=!!p.multiple,null!=(d=p.value)?$n(s,!!p.multiple,d,!1):null!=p.defaultValue&&$n(s,!!p.multiple,p.defaultValue,!0);break;default:"function"==typeof s.onClick&&(d.onclick=dr)}(u=mr(c,u))&&ia(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:i&&null!=t.stateNode?sa(i,t,i.memoizedProps,u):("string"!=typeof u&&(null===t.stateNode&&a("166")),i=xo(wo.current),xo(vo.current),vi(t)?(c=(u=t).stateNode,i=u.memoizedProps,c[N]=u,(u=c.nodeValue!==i)&&ia(t)):(c=t,(u=(9===i.nodeType?i:i.ownerDocument).createTextNode(u))[N]=t,c.stateNode=u));break;case 11:break;case 13:if(u=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=c,Ta=t;break e}u=null!==u,c=null!==i&&null!==i.memoizedState,null!==i&&!u&&c&&(null!==(i=i.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(u||c)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Oo(),ca(t);break;case 10:Ui(t);break;case 9:case 14:break;case 17:Nr(t.type)&&Ir();break;case 18:break;default:a("156")}Ta=null}if(t=e,1===ja||1!==t.childExpirationTime){for(u=0,c=t.child;null!==c;)(i=c.expirationTime)>u&&(u=i),(s=c.childExpirationTime)>u&&(u=s),c=c.sibling;t.childExpirationTime=u}if(null!==Ta)return Ta;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=_a(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function qa(e){var t=Ni(e.alternate,e,ja);return e.memoizedProps=e.pendingProps,null===t&&(t=Ga(e)),Ea.current=null,t}function Va(e,t){Sa&&a("243"),Wa(),Sa=!0;var n=Oa.current;Oa.current=ui;var r=e.nextExpirationTimeToWorkOn;r===ja&&e===Aa&&null!==Ta||(Fa(),ja=r,Ta=Vr((Aa=e).current,null),e.pendingCommitExpirationTime=0);for(var o=!1;;){try{if(t)for(;null!==Ta&&!kc();)Ta=qa(Ta);else for(;null!==Ta;)Ta=qa(Ta)}catch(t){if(Li=Di=Ri=null,Qo(),null===Ta)o=!0,Cc(t);else{null===Ta&&a("271");var i=Ta,c=i.return;if(null!==c){e:{var u=e,s=c,l=i,f=t;if(c=ja,l.effectTag|=1024,l.firstEffect=l.lastEffect=null,null!==f&&"object"==typeof f&&"function"==typeof f.then){var p=f;f=s;var d=-1,h=-1;do{if(13===f.tag){var y=f.alternate;if(null!==y&&null!==(y=y.memoizedState)){h=10*(1073741822-y.timedOutAt);break}"number"==typeof(y=f.pendingProps.maxDuration)&&(0>=y?d=0:(-1===d||y<d)&&(d=y))}f=f.return}while(null!==f);f=s;do{if((y=13===f.tag)&&(y=void 0!==f.memoizedProps.fallback&&null===f.memoizedState),y){if(null===(s=f.updateQueue)?((s=new Set).add(p),f.updateQueue=s):s.add(p),0==(1&f.mode)){f.effectTag|=64,l.effectTag&=-1957,1===l.tag&&(null===l.alternate?l.tag=17:((c=Xi(1073741823)).tag=Gi,Qi(l,c))),l.expirationTime=1073741823;break e}s=c;var m=(l=u).pingCache;null===m?(m=l.pingCache=new ba,y=new Set,m.set(p,y)):void 0===(y=m.get(p))&&(y=new Set,m.set(p,y)),y.has(s)||(y.add(s),l=Xa.bind(null,l,p,s),p.then(l,l)),-1===d?u=1073741823:(-1===h&&(h=10*(1073741822-eo(u,c))-5e3),u=h+d),0<=u&&Pa<u&&(Pa=u),f.effectTag|=2048,f.expirationTime=c;break e}f=f.return}while(null!==f);f=Error((ct(l.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."+ut(l))}Ca=!0,f=oa(f,l),u=s;do{switch(u.tag){case 3:u.effectTag|=2048,u.expirationTime=c,Ji(u,c=wa(u,f,c));break e;case 1:if(d=f,h=u.type,l=u.stateNode,0==(64&u.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==l&&"function"==typeof l.componentDidCatch&&(null===La||!La.has(l)))){u.effectTag|=2048,u.expirationTime=c,Ji(u,c=xa(u,d,c));break e}}u=u.return}while(null!==u)}Ta=Ga(i);continue}o=!0,Cc(t)}}break}if(Sa=!1,Oa.current=n,Li=Di=Ri=null,Qo(),o)Aa=null,e.finishedWork=null;else if(null!==Ta)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&a("281"),Aa=null,Ca){if(o=e.latestPendingTime,i=e.latestSuspendedTime,c=e.latestPingedTime,0!==o&&o<r||0!==i&&i<r||0!==c&&c<r)return Zr(e,r),void wc(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void wc(e,n,r,t,-1)}t&&-1!==Pa?(Zr(e,r),(t=10*(1073741822-eo(e,r)))<Pa&&(Pa=t),t=10*(1073741822-xc()),t=Pa-t,wc(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function Ya(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===La||!La.has(r)))return Qi(n,e=xa(n,e=oa(t,e),1073741823)),void Qa(n,1073741823);break;case 3:return Qi(n,e=wa(n,e=oa(t,e),1073741823)),void Qa(n,1073741823)}n=n.return}3===e.tag&&(Qi(e,n=wa(e,n=oa(t,e),1073741823)),Qa(e,1073741823))}function $a(e,t){var n=i.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(Sa&&!Na)r=ja;else{switch(n){case i.unstable_ImmediatePriority:r=1073741823;break;case i.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case i.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case i.unstable_LowPriority:case i.unstable_IdlePriority:r=1;break;default:a("313")}null!==Aa&&r===ja&&--r}return n===i.unstable_UserBlockingPriority&&(0===ac||r<ac)&&(ac=r),r}function Xa(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==Aa&&ja===n?Aa=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),to(n,e),0!==(n=e.expirationTime)&&_c(e,n)))}function Ka(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=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){o=r.stateNode;break}r=r.return}return o}function Qa(e,t){null!==(e=Ka(e,t))&&(!Sa&&0!==ja&&t>ja&&Fa(),Jr(e,t),Sa&&!Na&&Aa===e||_c(e,e.expirationTime),mc>yc&&(mc=0,a("185")))}function Ja(e,t,n,r,o){return i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){return e(t,n,r,o)})}var Za=null,ec=null,tc=0,nc=void 0,rc=!1,oc=null,ic=0,ac=0,cc=!1,uc=null,sc=!1,lc=!1,fc=null,pc=i.unstable_now(),dc=1073741822-(pc/10|0),hc=dc,yc=50,mc=0,gc=null;function vc(){dc=1073741822-((i.unstable_now()-pc)/10|0)}function bc(e,t){if(0!==tc){if(t<tc)return;null!==nc&&i.unstable_cancelCallback(nc)}tc=t,e=i.unstable_now()-pc,nc=i.unstable_scheduleCallback(Sc,{timeout:10*(1073741822-t)-e})}function wc(e,t,n,r,o){e.expirationTime=r,0!==o||kc()?0<o&&(e.timeoutHandle=vr(function(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,vc(),hc=dc,Ac(e,n)}.bind(null,e,t,n),o)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function xc(){return rc?hc:(Oc(),0!==ic&&1!==ic||(vc(),hc=dc),hc)}function _c(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===ec?(Za=ec=e,e.nextScheduledRoot=e):(ec=ec.nextScheduledRoot=e).nextScheduledRoot=Za):t>e.expirationTime&&(e.expirationTime=t),rc||(sc?lc&&(oc=e,ic=1073741823,jc(e,1073741823,!1)):1073741823===t?Tc(1073741823,!1):bc(e,t))}function Oc(){var e=0,t=null;if(null!==ec)for(var n=ec,r=Za;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===ec)&&a("244"),r===r.nextScheduledRoot){Za=ec=r.nextScheduledRoot=null;break}if(r===Za)Za=o=r.nextScheduledRoot,ec.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===ec){(ec=n).nextScheduledRoot=Za,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(o>e&&(e=o,t=r),r===ec)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}oc=t,ic=e}var Ec=!1;function kc(){return!!Ec||!!i.unstable_shouldYield()&&(Ec=!0)}function Sc(){try{if(!kc()&&null!==Za){vc();var e=Za;do{var t=e.expirationTime;0!==t&&dc<=t&&(e.nextExpirationTimeToWorkOn=dc),e=e.nextScheduledRoot}while(e!==Za)}Tc(0,!0)}finally{Ec=!1}}function Tc(e,t){if(Oc(),t)for(vc(),hc=dc;null!==oc&&0!==ic&&e<=ic&&!(Ec&&dc>ic);)jc(oc,ic,dc>ic),Oc(),vc(),hc=dc;else for(;null!==oc&&0!==ic&&e<=ic;)jc(oc,ic,!1),Oc();if(t&&(tc=0,nc=null),0!==ic&&bc(oc,ic),mc=0,gc=null,null!==fc)for(e=fc,fc=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){cc||(cc=!0,uc=e)}}if(cc)throw e=uc,uc=null,cc=!1,e}function Ac(e,t){rc&&a("253"),oc=e,ic=t,jc(e,t,!1),Tc(1073741823,!1)}function jc(e,t,n){if(rc&&a("245"),rc=!0,n){var r=e.finishedWork;null!==r?Pc(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,br(r)),Va(e,n),null!==(r=e.finishedWork)&&(kc()?e.finishedWork=r:Pc(e,r,t)))}else null!==(r=e.finishedWork)?Pc(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,br(r)),Va(e,n),null!==(r=e.finishedWork)&&Pc(e,r,t));rc=!1}function Pc(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===fc?fc=[r]:fc.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===gc?mc++:(gc=e,mc=0),i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){Ha(e,t)})}function Cc(e){null===oc&&a("246"),oc.expirationTime=0,cc||(cc=!0,uc=e)}function Mc(e,t){var n=sc;sc=!0;try{return e(t)}finally{(sc=n)||rc||Tc(1073741823,!1)}}function Nc(e,t){if(sc&&!lc){lc=!0;try{return e(t)}finally{lc=!1}}return e(t)}function Ic(e,t,n){sc||rc||0===ac||(Tc(ac,!1),ac=0);var r=sc;sc=!0;try{return i.unstable_runWithPriority(i.unstable_UserBlockingPriority,function(){return e(t,n)})}finally{(sc=r)||rc||Tc(1073741823,!1)}}function Rc(e,t,n,r,o){var i=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||a("170");var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(Nr(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);a("171"),c=void 0}if(1===n.tag){var u=n.type;if(Nr(u)){n=Lr(n,u,c);break e}}n=c}else n=Ar;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=Xi(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Wa(),Qi(i,o),Qa(i,r),r}function Dc(e,t,n,r){var o=t.current;return Rc(e,t,n,o=$a(xc(),o),r)}function Lc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Fc(e){var t=1073741822-25*(1+((1073741822-xc()+500)/25|0));t>=ka&&(t=ka-1),this._expirationTime=ka=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Uc(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Bc(e,t,n){e={current:t=Gr(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Wc(e,t,n,r,o){var i=n._reactRootContainer;if(i){if("function"==typeof o){var a=o;o=function(){var e=Lc(i._internalRoot);a.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)}else{if(i=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 Bc(e,!1,t)}(n,r),"function"==typeof o){var c=o;o=function(){var e=Lc(i._internalRoot);c.call(e)}}Nc(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)})}return Lc(i._internalRoot)}function Hc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return zc(t)||a("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:$e,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Se=function(e,t,n){switch(t){case"input":if(_t(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 o=F(r);o||a("90"),He(r),_t(r,o)}}}break;case"textarea":Qn(e,n);break;case"select":null!=(t=n.value)&&$n(e,!!n.multiple,t,!1)}},Fc.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Uc;return Rc(e,t,null,n,r._onCommit),r},Fc.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Fc.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;null===r&&a("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Ac(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Fc.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Uc.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Uc.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},Bc.prototype.render=function(e,t){var n=this._internalRoot,r=new Uc;return null!==(t=void 0===t?null:t)&&r.then(t),Dc(e,n,null,r._onCommit),r},Bc.prototype.unmount=function(e){var t=this._internalRoot,n=new Uc;return null!==(e=void 0===e?null:e)&&n.then(e),Dc(null,t,null,n._onCommit),n},Bc.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new Uc;return null!==(n=void 0===n?null:n)&&o.then(n),Dc(t,r,e,o._onCommit),o},Bc.prototype.createBatch=function(){var e=new Fc(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Me=Mc,Ne=Ic,Ie=function(){rc||0===ac||(Tc(ac,!1),ac=0)};var Gc,qc,Vc={createPortal:Hc,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return zc(t)||a("200"),Wc(null,e,t,!0,n)},render:function(e,t,n){return zc(t)||a("200"),Wc(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return zc(n)||a("200"),(null==e||void 0===e._reactInternalFiber)&&a("38"),Wc(e,t,n,!1,r)},unmountComponentAtNode:function(e){return zc(e)||a("40"),!!e._reactRootContainer&&(Nc(function(){Wc(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Hc.apply(void 0,arguments)},unstable_batchedUpdates:Mc,unstable_interactiveUpdates:Ic,flushSync:function(e,t){rc&&a("187");var n=sc;sc=!0;try{return Ja(e,t)}finally{sc=n,Tc(1073741823,!1)}},unstable_createRoot:function(e,t){return zc(e)||a("299","unstable_createRoot"),new Bc(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=sc;sc=!0;try{Ja(e)}finally{(sc=t)||rc||Tc(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[D,L,F,j.injectEventPluginsByName,v,G,function(e){S(e,H)},Pe,Ce,An,C]}};qc=(Gc={findFiberByHostInstance:R,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"}).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);Br=Wr(function(e){return t.onCommitFiberRoot(n,e)}),zr=Wr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}}(o({},Gc,{overrideProps:null,currentDispatcherRef:Ge.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return qc?qc(e):null}}));var Yc={default:Vc},$c=Yc&&Vc||Yc;e.exports=$c.default||$c},function(e,t,n){"use strict";e.exports=n(268)},function(e,t,n){"use strict";(function(e){
  /** @license React v0.13.6
   * scheduler.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */
  Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,o=3,i=-1,a=-1,c=!1,u=!1;function s(){if(!c){var e=n.expirationTime;u?O():u=!0,_(p,e)}}function l(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=o,c=a;o=e,a=t;try{var u=r()}finally{o=i,a=c}if("function"==typeof u)if(u={callback:u,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=u,s()),(t=r.previous).next=r.previous=u,u.next=r,u.previous=t}}function f(){if(-1===i&&null!==n&&1===n.priorityLevel){c=!0;try{do{l()}while(null!==n&&1===n.priorityLevel)}finally{c=!1,null!==n?s():u=!1}}}function p(e){c=!0;var o=r;r=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{l()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{l()}while(null!==n&&!E())}finally{c=!1,r=o,null!==n?s():u=!1,f()}}var d,h,y=Date,m="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,v="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){d=v(function(t){g(h),e(t)}),h=m(function(){b(d),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;t.unstable_now=function(){return x.now()}}else t.unstable_now=function(){return y.now()};var _,O,E,k=null;if("undefined"!=typeof window?k=window:void 0!==e&&(k=e),k&&k._schedMock){var S=k._schedMock;_=S[0],O=S[1],E=S[2],t.unstable_now=S[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var T=null,A=function(e){if(null!==T)try{T(e)}finally{T=null}};_=function(e){null!==T?setTimeout(_,0,e):(T=e,setTimeout(A,0,!1))},O=function(){T=null},E=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof v&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var j=null,P=!1,C=-1,M=!1,N=!1,I=0,R=33,D=33;E=function(){return I<=t.unstable_now()};var L=new MessageChannel,F=L.port2;L.port1.onmessage=function(){P=!1;var e=j,n=C;j=null,C=-1;var r=t.unstable_now(),o=!1;if(0>=I-r){if(!(-1!==n&&n<=r))return M||(M=!0,w(U)),j=e,void(C=n);o=!0}if(null!==e){N=!0;try{e(o)}finally{N=!1}}};var U=function(e){if(null!==j){w(U);var t=e-I+D;t<D&&R<D?(8>t&&(t=8),D=t<R?R:t):R=t,I=e+D,P||(P=!0,F.postMessage(void 0))}else M=!1};_=function(e,t){j=e,C=t,N||0>t?F.postMessage(void 0):M||(M=!0,w(U))},O=function(){j=null,P=!1,C=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=o,a=i;o=e,i=t.unstable_now();try{return n()}finally{o=r,i=a,f()}},t.unstable_next=function(e){switch(o){case 1:case 2:case 3:var n=3;break;default:n=o}var r=o,a=i;o=n,i=t.unstable_now();try{return e()}finally{o=r,i=a,f()}},t.unstable_scheduleCallback=function(e,r){var a=-1!==i?i:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=a+r.timeout;else switch(o){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(e={callback:e,priorityLevel:o,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,s();else{a=null;var c=n;do{if(c.expirationTime>r){a=c;break}c=c.next}while(c!==n);null===a?a=n:a===n&&(n=e,s()),(r=a.previous).next=a.previous=e,e.next=a,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=o;return function(){var r=o,a=i;o=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{o=r,i=a,f()}}},t.unstable_getCurrentPriorityLevel=function(){return o},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||E())},t.unstable_continueExecution=function(){null!==n&&s()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return n}}).call(this,n(43))},function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(104);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(48),i=n(38);t.getCurrentLocation=function(){return(0,o.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,i.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,i.createPath)(e)),!1}},function(e,t,n){"use strict";t.__esModule=!0;t.loopAsync=function(e,t,n){var r=0,o=!1,i=!1,a=!1,c=void 0,u=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o=!0,i?c=t:n.apply(void 0,t)};!function s(){if(!o&&(a=!0,!i)){for(i=!0;!o&&r<e&&a;)a=!1,t(r++,s,u);i=!1,o?n.apply(void 0,c):r>=e&&a&&(o=!0,n())}}()}},function(e,t,n){"use strict";var r=n(65),o=n(272),i=n(273),a="mixins";e.exports=function(e,t,n){var c=[],u={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},s={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},l={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in l),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){var o=s.hasOwnProperty(n)?s[n]:null;return i("DEFINE_MANY_MERGED"===o,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=h(e[n],r))}e[n]=r}}}(e,t)},autobind:function(){}};function f(e,t){var n=u.hasOwnProperty(t)?u[t]:null;b.hasOwnProperty(t)&&i("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),i(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;for(var c in n.hasOwnProperty(a)&&l.mixins(e,n.mixins),n)if(n.hasOwnProperty(c)&&c!==a){var s=n[c],p=r.hasOwnProperty(c);if(f(p,c),l.hasOwnProperty(c))l[c](e,s);else{var d=u.hasOwnProperty(c);if("function"==typeof s&&!d&&!p&&!1!==n.autobind)o.push(c,s),r[c]=s;else if(p){var m=u[c];i(d&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,c),"DEFINE_MANY_MERGED"===m?r[c]=h(r[c],s):"DEFINE_MANY"===m&&(r[c]=y(r[c],s))}else r[c]=s}}}else;}function d(e,t){for(var n in i(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(i(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return d(o,n),d(o,r),o}}function y(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function m(e,t){return t.bind(e)}var g={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},b={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},w=function(){};return r(w.prototype,e.prototype,b),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=m(e,o)}}(this),this.props=e,this.context=r,this.refs=o,this.updater=a||n,this.state=null;var c=this.getInitialState?this.getInitialState():null;i("object"==typeof c&&!Array.isArray(c),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=c};for(var r in t.prototype=new w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,g),p(t,e),p(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),u)t.prototype[r]||(t.prototype[r]=null);return t}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,c,u){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,c,u],f=0;(s=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";var r=n(275);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=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 c.name="Invariant Violation",c}}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:i,resetWarningCache:o};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=n(277),o=n(65);function i(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=o({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:decodeURIComponent(i),n(decodeURIComponent(o),i,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(n):e[t]=n,e},Object.create(null))):r},t.stringify=function(e,t){var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[i(t,e),"[",r,"]"].join(""):[i(t,e),"[",i(r,e),"]=",i(n,e)].join("")};case"bracket":return function(t,n){return null===n?i(t,e):[i(t,e),"[]=",i(n,e)].join("")};default:return function(t,n){return null===n?i(t,e):[i(t,e),"=",i(n,e)].join("")}}}(t=o({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map(function(r){var o=e[r];if(void 0===o)return"";if(null===o)return i(r,t);if(Array.isArray(o)){var a=[];return o.slice().forEach(function(e){void 0!==e&&a.push(n(r,e,a.length))}),a.join("&")}return i(r,t)+"="+i(o,t)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(104);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o,i=n(35),a=((o=i)&&o.__esModule,n(48)),c=n(79),u=n(145),s=n(38);var l=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},f=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},p=t.getCurrentLocation=function(e,t){var n=e.decodePath(l()),r=(0,s.getQueryStringValueFromPath)(n,t),o=void 0;r&&(n=(0,s.stripQueryStringValueFromPath)(n,t),o=(0,u.readState)(r));var i=(0,s.parsePath)(n);return i.state=o,(0,a.createLocation)(i,void 0,r)},d=void 0,h=(t.startListener=function(e,t,n){var r=function(){var r=l(),o=t.encodePath(r);if(r!==o)f(o);else{var i=p(t,n);if(d&&i.key&&d.key===i.key)return;d=i,e(i)}},o=l(),i=t.encodePath(o);return o!==i&&f(i),(0,c.addEventListener)(window,"hashchange",r),function(){return(0,c.removeEventListener)(window,"hashchange",r)}},function(e,t,n,r){var o=e.state,i=e.key,a=t.encodePath((0,s.createPath)(e));void 0!==o&&(a=(0,s.addQueryStringValueToPath)(a,n,i),(0,u.saveState)(i,o)),d=e,r(a)});t.pushLocation=function(e,t,n){return h(e,t,n,function(e){l()!==e&&function(e){window.location.hash=e}(e)})},t.replaceLocation=function(e,t,n){return h(e,t,n,function(e){l()!==e&&f(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(280);n(146),n(147),n(148),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163);var o=r.makeExports(!1),i=o.StyleSheet,a=o.StyleSheetServer,c=o.StyleSheetTestUtils,u=o.css,s=o.minify,l=o.flushToStyleTag,f=o.injectAndGetClassName,p=o.defaultSelectorHandlers;t.StyleSheet=i,t.StyleSheetServer=a,t.StyleSheetTestUtils=c,t.css=u,t.minify=s,t.flushToStyleTag=l,t.injectAndGetClassName=f,t.defaultSelectorHandlers=p},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=r(n(146)),i=r(n(147)),a=r(n(148)),c=r(n(150)),u=r(n(151)),s=r(n(152)),l=r(n(153)),f=r(n(154)),p=r(n(155)),d=r(n(156)),h=r(n(157)),y=r(n(158)),m=r(n(159)),g=r(n(160)),v=r(n(161)),b=r(n(162)),w=r(n(163));function x(e){return(x="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 _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_(e,t,n[t])})}return e}function E(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 k=/([A-Z])/g,S=function(e){return"-".concat(e.toLowerCase())},T={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!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};var A=["Webkit","ms","Moz","O"];Object.keys(T).forEach(function(e){A.forEach(function(t){T[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=T[e]})});var j=function(e,t){return"number"==typeof t?T[e]?""+t:t+"px":""+t},P=function(e,t){return M(j(e,t))},C=function(e,t){return o(e).toString(36)},M=function(e){return"!"===e[e.length-10]&&" !important"===e.slice(-11)?e:"".concat(e," !important")},N="undefined"!=typeof Map,I=function(){function e(){this.elements={},this.keyOrder=[]}var t=e.prototype;return t.forEach=function(e){for(var t=0;t<this.keyOrder.length;t++)e(this.elements[this.keyOrder[t]],this.keyOrder[t])},t.set=function(t,n,r){if(this.elements.hasOwnProperty(t)){if(r){var o=this.keyOrder.indexOf(t);this.keyOrder.splice(o,1),this.keyOrder.push(t)}}else this.keyOrder.push(t);if(null!=n){if(N&&n instanceof Map||n instanceof e){var i=this.elements.hasOwnProperty(t)?this.elements[t]:new e;return n.forEach(function(e,t){i.set(t,e,r)}),void(this.elements[t]=i)}if(Array.isArray(n)||"object"!==x(n))this.elements[t]=n;else{for(var a=this.elements.hasOwnProperty(t)?this.elements[t]:new e,c=Object.keys(n),u=0;u<c.length;u+=1)a.set(c[u],n[c[u]],r);this.elements[t]=a}}else this.elements[t]=n},t.get=function(e){return this.elements[e]},t.has=function(e){return this.elements.hasOwnProperty(e)},t.addStyleType=function(t){var n=this;if(N&&t instanceof Map||t instanceof e)t.forEach(function(e,t){n.set(t,e,!0)});else for(var r=Object.keys(t),o=0;o<r.length;o++)this.set(r[o],t[r[o]],!0)},e}(),R=["Webkit"],D=["Moz"],L=["ms"],F=["Webkit","Moz"],U=["Webkit","ms"],B=["Webkit","Moz","ms"],z=a({plugins:[c,u,s,l,f,p,d,h,y,m,g,v,b,w],prefixMap:{transform:U,transformOrigin:U,transformOriginX:U,transformOriginY:U,backfaceVisibility:R,perspective:R,perspectiveOrigin:R,transformStyle:R,transformOriginZ:R,animation:R,animationDelay:R,animationDirection:R,animationFillMode:R,animationDuration:R,animationIterationCount:R,animationName:R,animationPlayState:R,animationTimingFunction:R,appearance:F,userSelect:B,fontKerning:R,textEmphasisPosition:R,textEmphasis:R,textEmphasisStyle:R,textEmphasisColor:R,boxDecorationBreak:R,clipPath:R,maskImage:R,maskMode:R,maskRepeat:R,maskPosition:R,maskClip:R,maskOrigin:R,maskSize:R,maskComposite:R,mask:R,maskBorderSource:R,maskBorderMode:R,maskBorderSlice:R,maskBorderWidth:R,maskBorderOutset:R,maskBorderRepeat:R,maskBorder:R,maskType:R,textDecorationStyle:F,textDecorationSkip:F,textDecorationLine:F,textDecorationColor:F,filter:R,fontFeatureSettings:F,breakAfter:B,breakBefore:B,breakInside:B,columnCount:F,columnFill:F,columnGap:F,columnRule:F,columnRuleColor:F,columnRuleStyle:F,columnRuleWidth:F,columns:F,columnSpan:F,columnWidth:F,writingMode:U,flex:U,flexBasis:R,flexDirection:U,flexGrow:R,flexFlow:U,flexShrink:R,flexWrap:U,alignContent:R,alignItems:R,alignSelf:R,justifyContent:R,order:R,transitionDelay:R,transitionDuration:R,transitionProperty:R,transitionTimingFunction:R,backdropFilter:R,scrollSnapType:U,scrollSnapPointsX:U,scrollSnapPointsY:U,scrollSnapDestination:U,scrollSnapCoordinate:U,shapeImageThreshold:R,shapeImageMargin:R,shapeImageOutside:R,hyphens:B,flowInto:U,flowFrom:U,regionFragment:U,textOrientation:R,boxSizing:D,textAlignLast:D,tabSize:D,wrapFlow:L,wrapThrough:L,wrapMargin:L,touchAction:L,gridTemplateColumns:L,gridTemplateRows:L,gridTemplateAreas:L,gridTemplate:L,gridAutoColumns:L,gridAutoRows:L,gridAutoFlow:L,grid:L,gridRowStart:L,gridColumnStart:L,gridRowEnd:L,gridRow:L,gridColumn:L,gridColumnEnd:L,gridColumnGap:L,gridRowGap:L,gridArea:L,gridGap:L,textSizeAdjust:U,borderImage:R,borderImageOutset:R,borderImageRepeat:R,borderImageSlice:R,borderImageSource:R,borderImageWidth:R}}),W=[function(e,t,n){return":"!==e[0]?null:n(t+e)},function(e,t,n){if("@"!==e[0])return null;var r=n(t);return["".concat(e,"{").concat(r.join(""),"}")]}],H=function e(t,n,r,o,i){for(var a=new I,c=0;c<n.length;c++)a.addStyleType(n[c]);var u=new I,s=[];a.forEach(function(n,a){r.some(function(c){var u=c(a,t,function(t){return e(t,[n],r,o,i)});if(null!=u)return Array.isArray(u)?s.push.apply(s,E(u)):(console.warn("WARNING: Selector handlers should return an array of rules.Returning a string containing multiple rules is deprecated.",c),s.push("@media all {".concat(u,"}"))),!0})||u.set(a,n,!0)});var l=V(t,u,o,i,r);return l&&s.unshift(l),s},G=function(e,t,n){return"".concat((r=e,o=r.replace(k,S),"m"===o[0]&&"s"===o[1]&&"-"===o[2]?"-".concat(o):o),":").concat(n(e,t),";");var r,o},q=function(e,t){return e[t]=!0,e},V=function(e,t,n,r,o){!function(e,t,n){if(t)for(var r=Object.keys(t),o=0;o<r.length;o++){var i=r[o];e.has(i)&&e.set(i,t[i](e.get(i),n),!1)}}(t,n,o);var i=Object.keys(t.elements).reduce(q,Object.create(null)),a=z(t.elements),c=Object.keys(a);if(c.length!==t.keyOrder.length)for(var u=0;u<c.length;u++)if(!i[c[u]]){var s=void 0;if((s="W"===c[u][0]?c[u][6].toLowerCase()+c[u].slice(7):"o"===c[u][1]?c[u][3].toLowerCase()+c[u].slice(4):c[u][2].toLowerCase()+c[u].slice(3))&&i[s]){var l=t.keyOrder.indexOf(s);t.keyOrder.splice(l,0,c[u])}else t.keyOrder.unshift(c[u])}for(var f=!1===r?j:P,p=[],d=0;d<t.keyOrder.length;d++){var h=t.keyOrder[d],y=a[h];if(Array.isArray(y))for(var m=0;m<y.length;m++)p.push(G(h,y[m],f));else p.push(G(h,y,f))}return p.length?"".concat(e,"{").concat(p.join(""),"}"):""},Y=null,$={fontFamily:function e(t){if(Array.isArray(t)){var n={};return t.forEach(function(t){n[e(t)]=!0}),Object.keys(n).join(",")}return"object"===x(t)?(Z(t.src,"@font-face",[t],!1),'"'.concat(t.fontFamily,'"')):t},animationName:function e(t,n){if(Array.isArray(t))return t.map(function(t){return e(t,n)}).join(",");if("object"===x(t)){var r="keyframe_".concat((i=t,C(JSON.stringify(i)))),o="@keyframes ".concat(r,"{");return t instanceof I?t.forEach(function(e,t){o+=H(t,[e],n,$,!1).join("")}):Object.keys(t).forEach(function(e){o+=H(e,[t[e]],n,$,!1).join("")}),J(r,[o+="}"]),r}return t;var i}},X={},K=[],Q=!1,J=function(e,t){var n;if(!X[e]){if(!Q){if("undefined"==typeof document)throw new Error("Cannot automatically buffer without a document");Q=!0,i(te)}(n=K).push.apply(n,E(t)),X[e]=!0}},Z=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(!X[e]){var i=H(t,n,o,$,r);J(e,i)}},ee=function(){Q=!1;var e=K;return K=[],e},te=function(){var e=ee();e.length>0&&function(e){if(null==Y&&null==(Y=document.querySelector("style[data-aphrodite]"))){var t=document.head||document.getElementsByTagName("head")[0];(Y=document.createElement("style")).type="text/css",Y.setAttribute("data-aphrodite",""),t.appendChild(Y)}var n=Y.styleSheet||Y.sheet;if(n.insertRule){var r=n.cssRules.length;e.forEach(function(e){try{n.insertRule(e,r),r+=1}catch(e){}})}else Y.innerText=(Y.innerText||"")+e.join("")}(e)},ne=function(e){e.forEach(function(e){X[e]=!0})},re=function(e,t,n){var r,o=[],i=[],a=function e(t,n,r,o){for(var i=0;i<t.length;i+=1)t[i]&&(Array.isArray(t[i])?o+=e(t[i],n,r,o):(n.push(t[i]._name),r.push(t[i]._definition),o+=t[i]._len));return o}(t,o,i,0);return 0===o.length?"":(r=1===o.length?"_".concat(o[0]):"_".concat(C(o.join())).concat((a%36).toString(36)),Z(r,".".concat(r),i,e,n),r)},oe=function(e,t){return"".concat(t,"_").concat(C(e))},ie=C,ae={create:function(e){for(var t={},n=Object.keys(e),r=0;r<n.length;r+=1){var o=n[r],i=e[o],a=JSON.stringify(i);t[o]={_len:a.length,_name:ie(a,o),_definition:i}}return t},rehydrate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];ne(e)}},ce="undefined"!=typeof window?null:{renderStatic:function(e){return K=[],X={},Q=!1,Y=null,function(){if(Q)throw new Error("Cannot buffer while already buffering");Q=!0}(),{html:e(),css:{content:ee().join(""),renderedClassNames:Object.keys(X)}}}},ue=null;t.makeExports=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;return{StyleSheet:O({},ae,{extend:function(r){var o=r.map(function(e){return e.selectorHandler}).filter(function(e){return e});return e(t,n.concat(o))}}),StyleSheetServer:ce,StyleSheetTestUtils:ue,minify:function(e){ie=e?C:oe},css:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return re(t,r,n)},flushToStyleTag:te,injectAndGetClassName:re,defaultSelectorHandlers:W}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(e.hasOwnProperty(t)){for(var r={},o=e[t],a=(0,i.default)(t),c=Object.keys(n),u=0;u<c.length;u++){var s=c[u];if(s===t)for(var l=0;l<o.length;l++)r[o[l]+a]=n[t];r[s]=n[s]}return r}return n};var r,o=n(149),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){for(var i=0,a=e.length;i<a;++i){var c=e[i](t,n,r,o);if(c)return c}}},function(e,t,n){"use strict";function r(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var n=0,o=t.length;n<o;++n)r(e,t[n]);else r(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var r,o=n(286),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";n.r(t);var r=/[A-Z]/g,o=/^ms-/,i={};function a(e){return"-"+e.toLowerCase()}t.default=function(e){if(i.hasOwnProperty(e))return i[e];var t=e.replace(r,a);return i[e]=o.test(t)?"-"+t:t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return c});var r=n(1),o=n.n(r),i=n(12),a=n(15);class c extends o.a.Component{render(){const e="https://numfocus.org/blog/numpy-receives-first-ever-funding-thanks-to-moore-foundation",t="https://arstechnica.com/information-technology/2014/04/tech-giants-chastened-by-heartbleed-finally-agree-to-fund-openssl/",n="https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)",r="https://en.wikipedia.org/wiki/PageRank",c="https://en.wikipedia.org/wiki/Abstract_syntax_tree",f="https://protocol.ai/",p="https://discord.gg/tsBTgc9",d="https://github.com/sourcecred/sourcecred",h="https://github.com/sourcecred/sourcecred/issues?q=is%3Aissue+is%3Aopen+label%3A%22contributions+welcome%22",y="https://github.com/sourcecred/sourcecred/blob/master/README.md";return o.a.createElement("div",{className:Object(a.css)(l.container)},o.a.createElement("h1",null,"SourceCred vision"),o.a.createElement("p",null,o.a.createElement("strong",null,"The open-source movement is amazing. "),"It’s inspiring that some of our best technology is developed in the open and available to everyone."),o.a.createElement("p",null,"Despite all the value provided by open-source projects, many are chronically underfunded. For example, NumPy"," ",o.a.createElement(i.a,{href:e},"received no funding at all until 2017"),", and"," ",o.a.createElement(i.a,{href:t},"a world where OpenSSL was funded might have been a world without Heartbleed"),"."),o.a.createElement("p",null,"These projects also impose a heavy burden on maintainers. Popular projects have hundreds or thousands of open issues, with many new ones being created every day, and only a few overworked volunteers trying to triage and respond to them. Burnout is inevitable."),o.a.createElement("p",null,"SourceCred is our attempt to help."),o.a.createElement("h2",null,"Mission"),o.a.createElement("p",null,"SourceCred aims to empower open-source developers and communities by creating a project-specific reputation metric called ",o.a.createElement("em",null,"cred"),"."),o.a.createElement("p",null,"A project’s contributors earn cred for helping out. For example, a project might reward:"),o.a.createElement("ul",{style:{marginTop:"-1.5ex"}},o.a.createElement("li",null,"Triaging issues"),o.a.createElement("li",null,"Maintaining the build"),o.a.createElement("li",null,"Fixing bugs"),o.a.createElement("li",null,"Writing documentation"),o.a.createElement("li",null,"Refactoring code"),o.a.createElement("li",null,"Adding features")),o.a.createElement("p",null,"SourceCred will build social capital within communities, recognize their hardworking contributors, and encourage more people to help maintain and develop open-source projects."),o.a.createElement("p",null,"We’re designing SourceCred around the following four principles:"),o.a.createElement("dl",null,o.a.createElement(u,null,"Transparency"),o.a.createElement(s,null,"It should be easy to see why cred is attributed as it is, and link a person’s cred directly to contributions they’ve made."),o.a.createElement(u,null,"Extensibility"),o.a.createElement(s,null,"SourceCred is designed around a plugin architecture, so you can add support for new data sources, new algorithms, or even entirely new kinds of work."),o.a.createElement(u,null,"Community control"),o.a.createElement(s,null,"Each community has the final say on that community’s cred. When the algorithm and the community disagree, the community wins."),o.a.createElement(u,null,"Decentralization"),o.a.createElement(s,null,"Projects own their own data, and control their own cred. The SourceCred project provides tools, but has no control.")),o.a.createElement("h2",null,"How cred works"),o.a.createElement("p",null,"Cred is computed by first creating a contribution"," ",o.a.createElement(i.a,{href:n},"graph"),", which contains every contribution to the project and the relations among them. For example, GitHub issues, Git commits, and individual files and functions can be included in the graph. Then, SourceCred runs a modified version of"," ",o.a.createElement(i.a,{href:r},"PageRank")," on that graph to produce a cred attribution. The attribution is highly configurable; project maintainers can add new heuristics and adjust weights."),o.a.createElement("p",null,"This approach satisfies our four principles. It’s transparent: you can always see how a node’s weight dervies from its neighbors. It’s extensible: plugins can embed new types of nodes and edges into the graph. It’s community-controlled: the weights, heuristics, and algorithms are all configured by the project. Finally, it’s decentralized: every project can run its own instance."),o.a.createElement("p",null,"Naturally, there will be attempts to game the system. We’ll provide tools that make it obvious when people are gaming their cred, and empower maintainers to moderate and correct the attribution when needed. In case of deeply contentious disagreements, cred can be forked alongside the project."),o.a.createElement("h2",null,"Roadmap"),o.a.createElement("p",null,"SourceCred is under active development."," ",o.a.createElement(i.a,{to:"/prototype/"},"We have a prototype")," that ingests data from Git and GitHub, computes cred, and allows the user to explore and experiment on the results. We have a long way to go to realize SourceCred’s full vision, but the prototype can already surface some interesting insights!"),o.a.createElement("p",null,"In the near term, we want to help with issue triage and prioritization. Open-source projects are drowning in issues; many people file them, but few are motivated to triage them. We want to recognize the people who show up to do that work, and reward them by giving them more influence over issue prioritization."),o.a.createElement("p",null,"In the longer term, we will continue to add signal to cred attribution. For example, we plan to parse the"," ",o.a.createElement(i.a,{href:c},"AST")," of a project’s code so that we can attribute cred at the level of individual functions, and create a “spotlight” mechanic that will let contributors flow more cred to their peers’ important contributions. As SourceCred improves, we have plans for how to use it to help open-source projects become financially sustainable."),o.a.createElement("h2",null,"About"),o.a.createElement("p",null,"SourceCred is an open-source project, and is committed to being decentralized. We don’t think communities should have to give their data to us, or entrust us with control over their cred. The lead developers are grateful to be supported by"," ",o.a.createElement(i.a,{href:f},"Protocol Labs"),"."),o.a.createElement("p",null,"If you think this vision is exciting, we’d love for you to get involved! You can join our ",o.a.createElement(i.a,{href:p},"Discord")," ","and check out our ",o.a.createElement(i.a,{href:d},"GitHub"),"—many of our issues are marked"," ",o.a.createElement(i.a,{href:h},"contributions welcome"),". If you want to try running SourceCred on open-source projects you care about, check out ",o.a.createElement(i.a,{href:y},"our README"),"."))}}function u(e){return o.a.createElement("dt",{style:{fontWeight:"bold"}},e.children)}function s(e){return o.a.createElement("dd",{style:{marginBottom:15}},e.children)}const l=a.StyleSheet.create({container:{maxWidth:900,margin:"0 auto",marginBottom:200,padding:"0 10px",lineHeight:1.5,fontSize:20}})},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return a});var r=n(1),o=n.n(r),i=n(12);function a(e){return class extends o.a.Component{render(){return o.a.createElement("div",{style:{maxWidth:900,margin:"0 auto",padding:"0 10px",lineHeight:1.5,height:"100%"}},o.a.createElement("p",null,"Select a project:"),o.a.createElement("ul",null,e.map(e=>o.a.createElement("li",{key:e},o.a.createElement(i.a,{to:"/timeline/".concat(e,"/")},"".concat(e))))))}}}},function(e,t,n){t.parse=n(290),t.stringify=n(291)},function(e,t){var n,r,o,i,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},c=function(e){throw{name:"SyntaxError",message:e,at:n,text:o}},u=function(e){return e&&e!==r&&c("Expected '"+e+"' instead of '"+r+"'"),r=o.charAt(n),n+=1,r},s=function(){var e,t="";for("-"===r&&(t="-",u("-"));r>="0"&&r<="9";)t+=r,u();if("."===r)for(t+=".";u()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,u(),"-"!==r&&"+"!==r||(t+=r,u());r>="0"&&r<="9";)t+=r,u();if(e=+t,isFinite(e))return e;c("Bad number")},l=function(){var e,t,n,o="";if('"'===r)for(;u();){if('"'===r)return u(),o;if("\\"===r)if(u(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(u(),16),isFinite(e));t+=1)n=16*n+e;o+=String.fromCharCode(n)}else{if("string"!=typeof a[r])break;o+=a[r]}else o+=r}c("Bad string")},f=function(){for(;r&&r<=" ";)u()};i=function(){switch(f(),r){case"{":return function(){var e,t={};if("{"===r){if(u("{"),f(),"}"===r)return u("}"),t;for(;r;){if(e=l(),f(),u(":"),Object.hasOwnProperty.call(t,e)&&c('Duplicate key "'+e+'"'),t[e]=i(),f(),"}"===r)return u("}"),t;u(","),f()}}c("Bad object")}();case"[":return function(){var e=[];if("["===r){if(u("["),f(),"]"===r)return u("]"),e;for(;r;){if(e.push(i()),f(),"]"===r)return u("]"),e;u(","),f()}}c("Bad array")}();case'"':return l();case"-":return s();default:return r>="0"&&r<="9"?s():function(){switch(r){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}c("Unexpected '"+r+"'")}()}},e.exports=function(e,t){var a;return o=e,n=0,r=" ",a=i(),f(),r&&c("Syntax error"),"function"==typeof t?function e(n,r){var o,i,a=n[r];if(a&&"object"==typeof a)for(o in a)Object.prototype.hasOwnProperty.call(a,o)&&(void 0!==(i=e(a,o))?a[o]=i:delete a[o]);return t.call(n,r,a)}({"":a},""):a}},function(e,t){var n,r,o,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}e.exports=function(e,t,i){var a;if(n="",r="","number"==typeof i)for(a=0;a<i;a+=1)r+=" ";else"string"==typeof i&&(r=i);if(o=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return function e(t,i){var a,u,s,l,f,p=n,d=i[t];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(t)),"function"==typeof o&&(d=o.call(i,t,d)),typeof d){case"string":return c(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(n+=r,f=[],"[object Array]"===Object.prototype.toString.apply(d)){for(l=d.length,a=0;a<l;a+=1)f[a]=e(a,d)||"null";return s=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+p+"]":"["+f.join(",")+"]",n=p,s}if(o&&"object"==typeof o)for(l=o.length,a=0;a<l;a+=1)"string"==typeof(u=o[a])&&(s=e(u,d))&&f.push(c(u)+(n?": ":":")+s);else for(u in d)Object.prototype.hasOwnProperty.call(d,u)&&(s=e(u,d))&&f.push(c(u)+(n?": ":":")+s);return s=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+p+"}":"{"+f.join(",")+"}",n=p,s}}("",{"":e})}},function(e,t,n){"use strict";var r=n(293),o=n(294),i=n(295),a=n(301),c=n(303),u=n(304);e.exports=function e(){var t=[];var n=a();var v={};var b=!1;var w=-1;x.data=function(e,t){if(c(e))return 2===arguments.length?(y("data",b),v[e]=t,x):l.call(v,e)&&v[e]||null;if(e)return y("data",b),v=e,x;return v};x.freeze=_;x.attachers=t;x.use=function(e){var n;if(y("use",b),null==e);else if("function"==typeof e)c.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?a(e):o(e)}n&&(v.settings=r(v.settings||{},n));return x;function o(e){a(e.plugins),e.settings&&(n=r(n||{},e.settings))}function i(e){if("function"==typeof e)c(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c.apply(null,e):o(e)}}function a(e){var t,n;if(null==e);else{if(!("object"==typeof e&&"length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)i(e[n])}}function c(e,n){var o=function(e){var n,r=t.length,o=-1;for(;++o<r;)if((n=t[o])[0]===e)return n}(e);o?(u(o[1])&&u(n)&&(n=r(o[1],n)),o[1]=n):t.push(s.call(arguments))}};x.parse=function(e){var t,n=i(e);if(_(),d("parse",t=x.Parser),p(t))return new t(String(n),n).parse();return t(String(n),n)};x.stringify=function(e,t){var n,r=i(t);if(_(),h("stringify",n=x.Compiler),m(e),p(n))return new n(e,r).compile();return n(e,r)};x.run=O;x.runSync=function(e,t){var n,r=!1;return O(e,t,function(e,t){r=!0,o(e),n=t}),g("runSync","run",r),n};x.process=E;x.processSync=function(e){var t,n=!1;return _(),d("processSync",x.Parser),h("processSync",x.Compiler),E(t=i(e),function(e){n=!0,o(e)}),g("processSync","process",n),t};return x;function x(){for(var n=e(),o=t.length,i=-1;++i<o;)n.use.apply(null,t[i]);return n.data(r(!0,{},v)),n}function _(){var e,r,o,i;if(b)return x;for(;++w<t.length;)e=t[w],r=e[0],o=e[1],i=null,!1!==o&&(!0===o&&(e[1]=void 0),"function"==typeof(i=r.apply(x,e.slice(1)))&&n.use(i));return b=!0,w=1/0,x}function O(e,t,r){if(m(e),_(),r||"function"!=typeof t||(r=t,t=null),!r)return new Promise(o);function o(o,a){n.run(e,i(t),function(t,n,i){n=n||e,t?a(t):o?o(n):r(null,n,i)})}o(null,r)}function E(e,t){if(_(),d("process",x.Parser),h("process",x.Compiler),!t)return new Promise(n);function n(n,r){var o=i(e);f.run(x,{file:o},function(e){e?r(e):n?n(o):t(null,o)})}n(null,t)}}().freeze();var s=[].slice,l={}.hasOwnProperty,f=a().use(function(e,t){t.tree=e.parse(t.file)}).use(function(e,t,n){e.run(t.tree,t.file,function(e,r,o){e?n(e):(t.tree=r,t.file=o,n())})}).use(function(e,t){t.file.contents=e.stringify(t.tree,t.file)});function p(e){return"function"==typeof e&&function(e){var t;for(t in e)return!0;return!1}(e.prototype)}function d(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function y(e,t){if(t)throw new Error(["Cannot invoke `"+e+"` on a frozen processor.\nCreate a new ","processor first, by invoking it: use `processor()` instead of ","`processor`."].join(""))}function m(e){if(!e||!c(e.type))throw new Error("Expected node, got `"+e+"`")}function g(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},u=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},s=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,a,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<d;++p)if(null!=(t=arguments[p]))for(n in t)r=l(f,n),f!==(o=l(t,n))&&(h&&o&&(u(o)||(i=c(o)))?(i?(i=!1,a=r&&c(r)?r:[]):a=r&&u(r)?r:{},s(f,{name:n,newValue:e(h,a,o)})):void 0!==o&&s(f,{name:n,newValue:o}));return f}},function(e,t,n){"use strict";e.exports=function(e){if(e)throw e}},function(e,t,n){"use strict";var r=n(296),o=n(298);e.exports=o;var i=o.prototype;function a(e,t,n){var o=this.path,i=new r(e,t,n);return o&&(i.name=o+":"+i.name,i.file=o),i.fatal=!1,this.messages.push(i),i}i.message=a,i.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e},i.warn=a},function(e,t,n){"use strict";var r=n(297);function o(){}e.exports=a,o.prototype=Error.prototype,a.prototype=new o;var i=a.prototype;function a(e,t,n){var o,i,a;"string"==typeof t&&(n=t,t=null),o=function(e){var t,n=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),i=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=o[0],this.ruleId=o[1]}i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null},function(e,t,n){"use strict";var r={}.hasOwnProperty;function o(e){return e&&"object"==typeof e||(e={}),a(e.line)+":"+a(e.column)}function i(e){return e&&"object"==typeof e||(e={}),o(e.start)+"-"+o(e.end)}function a(e){return e&&"number"==typeof e?e:1}e.exports=function(e){if(!e||"object"!=typeof e)return null;if(r.call(e,"position")||r.call(e,"type"))return i(e.position);if(r.call(e,"start")||r.call(e,"end"))return i(e);if(r.call(e,"line")||r.call(e,"column"))return o(e);return null}},function(e,t,n){"use strict";(function(t){var r=n(165),o=n(299),i=n(300);e.exports=s;var a={}.hasOwnProperty,c=s.prototype;c.toString=function(e){var t=this.contents||"";return i(t)?t.toString(e):String(t)};var u=["history","path","basename","stem","extname","dirname"];function s(e){var n,r,o;if(e){if("string"==typeof e||i(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof s))return new s(e);for(this.data={},this.messages=[],this.history=[],this.cwd=t.cwd(),r=-1,o=u.length;++r<o;)n=u[r],a.call(e,n)&&(this[n]=e[n]);for(n in e)-1===u.indexOf(n)&&(this[n]=e[n])}function l(e,t){if(-1!==e.indexOf(r.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function f(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function p(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}Object.defineProperty(c,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){f(e,"path"),e!==this.path&&this.history.push(e)}}),Object.defineProperty(c,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){p(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(c,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){f(e,"basename"),l(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(c,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){var t=e||"";if(l(t,"extname"),p(this.path,"extname"),t){if("."!==t.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==t.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=o(this.path,t)}}),Object.defineProperty(c,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){f(e,"stem"),l(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})}).call(this,n(107))},function(e,t,n){"use strict";var r=n(165);e.exports=function(e,t){if("string"!=typeof e)return e;if(0===e.length)return e;var n=r.basename(e,r.extname(e))+t;return r.join(r.dirname(e),n)}},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
  /*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */
  e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=n(302);e.exports=i,i.wrap=r;var o=[].slice;function i(){var e=[],t={run:function(){var t=-1,n=o.call(arguments,0,-1),i=arguments[arguments.length-1];if("function"!=typeof i)throw new Error("Expected function as last argument, not "+i);(function a(c){var u=e[++t],s=o.call(arguments,0).slice(1),l=n.length,f=-1;if(c)i(c);else{for(;++f<l;)null!==s[f]&&void 0!==s[f]||(s[f]=n[f]);n=s,u?r(u,a).apply(null,n):i.apply(null,[null].concat(n))}}).apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},function(e,t,n){"use strict";var r=[].slice;e.exports=function(e,t){var n;return function(){var t,a=r.call(arguments,0),c=e.length>a.length;c&&a.push(o);try{t=e.apply(null,a)}catch(e){if(c&&n)throw e;return o(e)}c||(t&&"function"==typeof t.then?t.then(i,o):t instanceof Error?o(t):i(t))};function o(){n||(n=!0,t.apply(null,arguments))}function i(e){o(null,e)}}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return"[object String]"===n.call(e)}},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t,n){"use strict";var r=n(306),o=n(31),i=n(308);function a(e){var t=r(i);t.prototype.options=o(t.prototype.options,this.data("settings"),e),this.Parser=t}e.exports=a,a.Parser=i},function(e,t,n){"use strict";var r=n(31),o=n(307);e.exports=function(e){var t,n,i;for(n in o(c,e),o(a,c),t=c.prototype)(i=t[n])&&"object"==typeof i&&(t[n]="concat"in i?i.concat():r(i));return c;function a(t){return e.apply(this,t)}function c(){return this instanceof c?e.apply(this,arguments):new a(arguments)}}},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=n(31),o=n(309),i=n(310),a=n(311),c=n(312),u=n(318);function s(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=i(t).toOffset,this.unescape=a(this,"escape"),this.decode=c(this)}e.exports=s;var l=s.prototype;function f(e){var t,n=[];for(t in e)n.push(t);return n}l.setOptions=n(319),l.parse=n(322),l.options=n(167),l.exitStart=o("atStart",!0),l.enterList=o("inList",!1),l.enterLink=o("inLink",!1),l.enterBlock=o("inBlock",!1),l.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],l.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],l.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],l.blockTokenizers={newline:n(326),indentedCode:n(327),fencedCode:n(328),blockquote:n(329),atxHeading:n(330),thematicBreak:n(331),list:n(332),setextHeading:n(334),html:n(335),footnote:n(336),definition:n(338),table:n(339),paragraph:n(340)},l.inlineTokenizers={escape:n(341),autoLink:n(343),url:n(344),html:n(346),link:n(347),reference:n(348),strong:n(349),emphasis:n(351),deletion:n(354),code:n(356),break:n(358),text:n(360)},l.blockMethods=f(l.blockTokenizers),l.inlineMethods=f(l.inlineTokenizers),l.tokenizeBlock=u("block"),l.tokenizeInline=u("inline"),l.tokenizeFactory=u},function(e,t,n){"use strict";e.exports=function(e,t,n){return function(){var r=n||this,o=r[e];return r[e]=!t,function(){r[e]=o}}}},function(e,t,n){"use strict";function r(e){return function(t){var n=-1,r=e.length;if(t<0)return{};for(;++n<r;)if(e[n]>t)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}}function o(e){return function(t){var n=t&&t.line,r=t&&t.column;if(!isNaN(n)&&!isNaN(r)&&n-1 in e)return(e[n-2]||0)+r-1||0;return-1}}e.exports=function(e){var t=function(e){var t=[],n=e.indexOf("\n");for(;-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:r(t),toOffset:o(t)}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n){var r,o=0,i=n.indexOf("\\"),a=e[t],c=[];for(;-1!==i;)c.push(n.slice(o,i)),o=i+1,(r=n.charAt(o))&&-1!==a.indexOf(r)||c.push("\\"),i=n.indexOf("\\",o);return c.push(n.slice(o)),c.join("")}}},function(e,t,n){"use strict";var r=n(31),o=n(108);e.exports=function(e){return i.raw=function(e,i,a){return o(e,r(a,{position:t(i),warning:n}))},i;function t(t){for(var n=e.offset,r=t.line,o=[];++r&&r in n;)o.push((n[r]||0)+1);return{start:t,indent:o}}function n(t,n,r){3!==r&&e.file.message(t,n)}function i(r,i,a){o(r,{position:t(i),warning:n,text:a,reference:a,textContext:e,referenceContext:e})}}},function(e){e.exports=JSON.parse('{"AElig":"Æ","AMP":"&","Aacute":"Á","Acirc":"Â","Agrave":"À","Aring":"Å","Atilde":"Ã","Auml":"Ä","COPY":"©","Ccedil":"Ç","ETH":"Ð","Eacute":"É","Ecirc":"Ê","Egrave":"È","Euml":"Ë","GT":">","Iacute":"Í","Icirc":"Î","Igrave":"Ì","Iuml":"Ï","LT":"<","Ntilde":"Ñ","Oacute":"Ó","Ocirc":"Ô","Ograve":"Ò","Oslash":"Ø","Otilde":"Õ","Ouml":"Ö","QUOT":"\\"","REG":"®","THORN":"Þ","Uacute":"Ú","Ucirc":"Û","Ugrave":"Ù","Uuml":"Ü","Yacute":"Ý","aacute":"á","acirc":"â","acute":"´","aelig":"æ","agrave":"à","amp":"&","aring":"å","atilde":"ã","auml":"ä","brvbar":"¦","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","curren":"¤","deg":"°","divide":"÷","eacute":"é","ecirc":"ê","egrave":"è","eth":"ð","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","iacute":"í","icirc":"î","iexcl":"¡","igrave":"ì","iquest":"¿","iuml":"ï","laquo":"«","lt":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","ntilde":"ñ","oacute":"ó","ocirc":"ô","ograve":"ò","ordf":"ª","ordm":"º","oslash":"ø","otilde":"õ","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","raquo":"»","reg":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","thorn":"þ","times":"×","uacute":"ú","ucirc":"û","ugrave":"ù","uml":"¨","uuml":"ü","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e){e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},function(e,t,n){"use strict";var r=n(166),o=n(81);e.exports=function(e){return r(e)||o(e)}},function(e,t,n){"use strict";var r,o=59;e.exports=function(e){var t,n="&"+e+";";if((r=r||document.createElement("i")).innerHTML=n,(t=r.textContent).charCodeAt(t.length-1)===o&&"semi"!==e)return!1;return t!==n&&t}},function(e,t,n){"use strict";e.exports=function(e){return function(t,n){var i,a,c,u,s,l,f=this,p=f.offset,d=[],h=f[e+"Methods"],y=f[e+"Tokenizers"],m=n.line,g=n.column;if(!t)return d;x.now=b,x.file=f.file,v("");for(;t;){for(i=-1,a=h.length,s=!1;++i<a&&(u=h[i],!(c=y[u])||c.onlyAtStart&&!f.atStart||c.notInList&&f.inList||c.notInBlock&&f.inBlock||c.notInLink&&f.inLink||(l=t.length,c.apply(f,[x,t]),!(s=l!==t.length))););s||f.file.fail(new Error("Infinite loop"),x.now())}return f.eof=b(),d;function v(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)m++,t=n,n=e.indexOf("\n",n+1);-1===t?g+=e.length:g=e.length-t,m in p&&(-1!==t?g+=p[m]:g<=p[m]&&(g=p[m]+1))}function b(){var e={line:m,column:g};return e.offset=f.toOffset(e),e}function w(e){this.start=e,this.end=b()}function x(e){var n,i=function(){var e=[],t=m+1;return function(){for(var n=m+1;t<n;)e.push((p[t]||0)+1),t++;return e}}(),a=(n=b(),function(e,t){var r=e.position,o=r?r.start:n,i=[],a=r&&r.end.line,c=n.line;if(e.position=new w(o),r&&t&&r.indent){if(i=r.indent,a<c){for(;++a<c;)i.push((p[a]||0)+1);i.push(n.column)}t=i.concat(t)}return e.position.indent=t||[],e}),c=b();return function(e){t.substring(0,e.length)!==e&&f.file.fail(new Error("Incorrectly eaten value: please report this warning on http://git.io/vg5Ft"),b())}(e),u.reset=s,s.test=l,u.test=l,t=t.substring(e.length),v(e),i=i(),u;function u(e,t){return a(function(e,t){var n=t?t.children:d,i=n[n.length-1];return i&&e.type===i.type&&e.type in r&&o(i)&&o(e)&&(e=r[e.type].call(f,i,e)),e!==i&&n.push(e),f.atStart&&0!==d.length&&f.exitStart(),e}(a(e),t),i)}function s(){var n=u.apply(null,arguments);return m=c.line,g=c.column,t=e+t,n}function l(){var n=a({});return m=c.line,g=c.column,t=e+t,n.position}}}};var r={text:function(e,t){return e.value+=t.value,e},blockquote:function(e,t){if(this.options.commonmark)return t;return e.children=e.children.concat(t.children),e}};function o(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}},function(e,t,n){"use strict";var r=n(31),o=n(320),i=n(167);e.exports=function(e){var t,n,a=this.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(t in i){if(null==(n=e[t])&&(n=a[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return this.options=e,this.escape=o(e),this}},function(e,t,n){"use strict";e.exports=a;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],o=r.concat(["~","|"]),i=o.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function a(e){var t=e||{};return t.commonmark?i:t.gfm?o:r}a.default=r,a.gfm=o,a.commonmark=i},function(e){e.exports=JSON.parse('["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]')},function(e,t,n){"use strict";var r=n(31),o=n(323);e.exports=function(){var e,t=String(this.file),n={line:1,column:1,offset:0},c=r(n);65279===(t=t.replace(a,i)).charCodeAt(0)&&(t=t.slice(1),c.column++,c.offset++);e={type:"root",children:this.tokenizeBlock(t,c),position:{start:n,end:this.eof||r(n)}},this.options.position||o(e,!0);return e};var i="\n",a=/\r\n|\r/g},function(e,t,n){"use strict";var r=n(82);function o(e){delete e.position}function i(e){e.position=void 0}e.exports=function(e,t){return r(e,t?o:i),e}},function(e,t,n){"use strict";e.exports=c;var r=n(325),o=!0,i="skip",a=!1;function c(e,t,n,o){var c;function s(e,r,l){var f,p=[];return(t&&!c(e,r,l[l.length-1]||null)||(p=u(n(e,l)))[0]!==a)&&e.children&&p[0]!==i&&(f=u(function(e,t){var n,r=o?-1:1,i=(o?e.length:-1)+r;for(;i>-1&&i<e.length;){if((n=s(e[i],i,t))[0]===a)return n;i="number"==typeof n[1]?n[1]:i+r}}(e.children,l.concat(e))))[0]===a?f:p}"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),c=r(t),s(e,null,[])}function u(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}c.CONTINUE=o,c.SKIP=i,c.EXIT=a},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return o;if("object"==typeof e)return("length"in e?function(e){var t=function(e){var t=[],n=e.length,o=-1;for(;++o<n;)t[o]=r(e[o]);return t}(e),n=t.length;return function(){var e=-1;for(;++e<n;)if(t[e].apply(this,arguments))return!0;return!1}}:function(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}})(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function o(){return!0}e.exports=r},function(e,t,n){"use strict";var r=n(26);e.exports=function(e,t,n){var o,i,a,c,u=t.charAt(0);if("\n"!==u)return;if(n)return!0;c=1,o=t.length,i=u,a="";for(;c<o&&(u=t.charAt(c),r(u));)a+=u,"\n"===u&&(i+=a,a=""),c++;e(i)}},function(e,t,n){"use strict";var r=n(109),o=n(110);e.exports=function(e,t,n){var r,s,l,f=-1,p=t.length,d="",h="",y="",m="";for(;++f<p;)if(r=t.charAt(f),l)if(l=!1,d+=y,h+=m,y="",m="",r===i)y=r,m=r;else for(d+=r,h+=r;++f<p;){if(!(r=t.charAt(f))||r===i){m=r,y=r;break}d+=r,h+=r}else if(r===c&&t.charAt(f+1)===r&&t.charAt(f+2)===r&&t.charAt(f+3)===r)y+=u,f+=3,l=!0;else if(r===a)y+=r,l=!0;else{for(s="";r===a||r===c;)s+=r,r=t.charAt(++f);if(r!==i)break;y+=s+r,m+=r}if(h)return!!n||e(d)({type:"code",lang:null,value:o(h)})};var i="\n",a="\t",c=" ",u=r(c,4)},function(e,t,n){"use strict";var r=n(110);e.exports=function(e,t,n){var f,p,d,h,y,m,g,v,b,w,x,_=this.options,O=t.length+1,E=0,k="";if(!_.gfm)return;for(;E<O&&((d=t.charAt(E))===a||d===i);)k+=d,E++;if(w=E,(d=t.charAt(E))!==c&&d!==u)return;E++,p=d,f=1,k+=d;for(;E<O&&(d=t.charAt(E))===p;)k+=d,f++,E++;if(f<s)return;for(;E<O&&((d=t.charAt(E))===a||d===i);)k+=d,E++;h="",y="";for(;E<O&&(d=t.charAt(E))!==o&&d!==c&&d!==u;)d===a||d===i?y+=d:(h+=y+d,y=""),E++;if((d=t.charAt(E))&&d!==o)return;if(n)return!0;(x=e.now()).column+=k.length,x.offset+=k.length,k+=h,h=this.decode.raw(this.unescape(h),x),y&&(k+=y);y="",v="",b="",m="",g="";for(;E<O;)if(d=t.charAt(E),m+=v,g+=b,v="",b="",d===o){for(m?(v+=d,b+=d):k+=d,y="",E++;E<O&&(d=t.charAt(E))===a;)y+=d,E++;if(v+=y,b+=y.slice(w),!(y.length>=l)){for(y="";E<O&&(d=t.charAt(E))===p;)y+=d,E++;if(v+=y,b+=y,!(y.length<f)){for(y="";E<O&&((d=t.charAt(E))===a||d===i);)v+=d,b+=d,E++;if(!d||d===o)break}}}else m+=d,b+=d,E++;return e(k+=m+v)({type:"code",lang:h||null,value:r(g)})};var o="\n",i="\t",a=" ",c="~",u="`",s=3,l=4},function(e,t,n){"use strict";var r=n(50),o=n(111);e.exports=function(e,t,n){var s,l,f,p,d,h,y,m,g,v=this.offset,b=this.blockTokenizers,w=this.interruptBlockquote,x=e.now(),_=x.line,O=t.length,E=[],k=[],S=[],T=0;for(;T<O&&((l=t.charAt(T))===c||l===a);)T++;if(t.charAt(T)!==u)return;if(n)return!0;T=0;for(;T<O;){for(p=t.indexOf(i,T),y=T,m=!1,-1===p&&(p=O);T<O&&((l=t.charAt(T))===c||l===a);)T++;if(t.charAt(T)===u?(T++,m=!0,t.charAt(T)===c&&T++):T=y,d=t.slice(T,p),!m&&!r(d)){T=y;break}if(!m&&(f=t.slice(T),o(w,b,this,[e,f,!0])))break;h=y===T?d:t.slice(y,p),S.push(T-y),E.push(h),k.push(d),T=p+1}T=-1,O=S.length,s=e(E.join(i));for(;++T<O;)v[_]=(v[_]||0)+S[T],_++;return g=this.enterBlock(),k=this.tokenizeBlock(k.join(i),x),g(),s({type:"blockquote",children:k})};var i="\n",a="\t",c=" ",u=">"},function(e,t,n){"use strict";e.exports=function(e,t,n){var u,s,l,f=this.options,p=t.length+1,d=-1,h=e.now(),y="",m="";for(;++d<p;){if((u=t.charAt(d))!==i&&u!==o){d--;break}y+=u}l=0;for(;++d<=p;){if((u=t.charAt(d))!==a){d--;break}y+=u,l++}if(l>c)return;if(!l||!f.pedantic&&t.charAt(d+1)===a)return;p=t.length+1,s="";for(;++d<p;){if((u=t.charAt(d))!==i&&u!==o){d--;break}s+=u}if(!f.pedantic&&0===s.length&&u&&u!==r)return;if(n)return!0;y+=s,s="",m="";for(;++d<p&&(u=t.charAt(d))&&u!==r;)if(u===i||u===o||u===a){for(;u===i||u===o;)s+=u,u=t.charAt(++d);for(;u===a;)s+=u,u=t.charAt(++d);for(;u===i||u===o;)s+=u,u=t.charAt(++d);d--}else m+=s+u,s="";return h.column+=y.length,h.offset+=y.length,e(y+=m+s)({type:"heading",depth:l,children:this.tokenizeInline(m,h)})};var r="\n",o="\t",i=" ",a="#",c=6},function(e,t,n){"use strict";e.exports=function(e,t,n){var l,f,p,d,h=-1,y=t.length+1,m="";for(;++h<y&&((l=t.charAt(h))===o||l===i);)m+=l;if(l!==a&&l!==u&&l!==c)return;f=l,m+=l,p=1,d="";for(;++h<y;)if((l=t.charAt(h))===f)p++,m+=d+f,d="";else{if(l!==i)return p>=s&&(!l||l===r)?(m+=d,!!n||e(m)({type:"thematicBreak"})):void 0;d+=l}};var r="\n",o="\t",i=" ",a="*",c="_",u="-",s=3},function(e,t,n){"use strict";var r=n(50),o=n(109),i=n(81),a=n(168),c=n(333),u=n(111);e.exports=function(e,t,n){var o,a,c,y,g,v,b,w,x,S,T,A,j,P,C,M,N,I,R,D,L,F,U,B,z=this.options.commonmark,W=this.options.pedantic,H=this.blockTokenizers,G=this.interruptList,q=0,V=t.length,Y=null,$=0;for(;q<V;){if((y=t.charAt(q))===h)$+=m-$%m;else{if(y!==p)break;$++}q++}if($>=m)return;if(y=t.charAt(q),o=z?E:O,!0===_[y])g=y,c=!1;else{for(c=!0,a="";q<V&&(y=t.charAt(q),i(y));)a+=y,q++;if(y=t.charAt(q),!a||!0!==o[y])return;Y=parseInt(a,10),g=y}if((y=t.charAt(++q))!==p&&y!==h)return;if(n)return!0;q=0,P=[],C=[],M=[];for(;q<V;){for(v=t.indexOf(d,q),b=q,w=!1,B=!1,-1===v&&(v=V),U=q+m,$=0;q<V;){if((y=t.charAt(q))===h)$+=m-$%m;else{if(y!==p)break;$++}q++}if($>=m&&(B=!0),N&&$>=N.indent&&(B=!0),y=t.charAt(q),x=null,!B){if(!0===_[y])x=y,q++,$++;else{for(a="";q<V&&(y=t.charAt(q),i(y));)a+=y,q++;y=t.charAt(q),q++,a&&!0===o[y]&&(x=y,$+=a.length+1)}if(x)if((y=t.charAt(q))===h)$+=m-$%m,q++;else if(y===p){for(U=q+m;q<U&&t.charAt(q)===p;)q++,$++;q===U&&t.charAt(q)===p&&(q-=m-1,$-=m-1)}else y!==d&&""!==y&&(x=null)}if(x){if(!W&&g!==x)break;w=!0}else z||B||t.charAt(b)!==p?z&&N&&(B=$>=N.indent||$>m):B=!0,w=!1,q=b;if(T=t.slice(b,v),S=b===q?T:t.slice(q,v),(x===s||x===l||x===f)&&H.thematicBreak.call(this,e,T,!0))break;if(A=j,j=!r(S).length,B&&N)N.value=N.value.concat(M,T),C=C.concat(M,T),M=[];else if(w)0!==M.length&&(N.value.push(""),N.trail=M.concat()),N={value:[T],indent:$,trail:[]},P.push(N),C=C.concat(M,T),M=[];else if(j){if(A)break;M.push(T)}else{if(A)break;if(u(G,H,this,[e,T,!0]))break;N.value=N.value.concat(M,T),C=C.concat(M,T),M=[]}q=v+1}L=e(C.join(d)).reset({type:"list",ordered:c,start:Y,loose:null,children:[]}),I=this.enterList(),R=this.enterBlock(),D=!1,q=-1,V=P.length;for(;++q<V;)N=P[q].value.join(d),F=e.now(),(N=e(N)(k(this,N,F),L)).loose&&(D=!0),N=P[q].trail.join(d),q!==V-1&&(N+=d),e(N);return I(),R(),L.loose=D,L};var s="*",l="_",f="-",p=" ",d="\n",h="\t",y="x",m=4,g=/\n\n(?!\s*$)/,v=/^\[([ \t]|x|X)][ \t]/,b=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,w=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,x=/^( {1,4}|\t)?/gm,_={};_[s]=!0,_["+"]=!0,_[f]=!0;var O={".":!0},E={};function k(e,t,n){var r,o,i=e.offset,a=null;return t=(e.options.pedantic?S:T).apply(null,arguments),e.options.gfm&&(r=t.match(v))&&(o=r[0].length,a=r[1].toLowerCase()===y,i[n.line]+=o,t=t.slice(o)),{type:"listItem",loose:g.test(t)||t.charAt(t.length-1)===d,checked:a,children:e.tokenizeBlock(t,n)}}function S(e,t,n){var r=e.offset,o=n.line;return t=t.replace(w,i),o=n.line,t.replace(x,i);function i(e){return r[o]=(r[o]||0)+e.length,o++,""}}function T(e,t,n){var r,i,u,s,l,f,h,y=e.offset,m=n.line;for(s=(t=t.replace(b,function(e,t,n,a,c){i=t+n+a,u=c,Number(n)<10&&i.length%2==1&&(n=p+n);return(r=t+o(p,n.length)+a)+u})).split(d),(l=c(t,a(r).indent).split(d))[0]=u,y[m]=(y[m]||0)+i.length,m++,f=0,h=s.length;++f<h;)y[m]=(y[m]||0)+s[f].length-l[f].length,m++;return l.join(d)}E["."]=!0,E[")"]=!0},function(e,t,n){"use strict";var r=n(50),o=n(109),i=n(168);e.exports=function(e,t){var n,s,l,f,p=e.split(c),d=p.length+1,h=1/0,y=[];p.unshift(o(a,t)+"!");for(;d--;)if(s=i(p[d]),y[d]=s.stops,0!==r(p[d]).length){if(!s.indent){h=1/0;break}s.indent>0&&s.indent<h&&(h=s.indent)}if(h!==1/0)for(d=p.length;d--;){for(l=y[d],n=h;n&&!(n in l);)n--;f=0!==r(p[d]).length&&h&&n!==h?u:"",p[d]=f+p[d].slice(n in l?l[n]+1:0)}return p.shift(),p.join(c)};var a=" ",c="\n",u="\t"},function(e,t,n){"use strict";e.exports=function(e,t,n){var u,s,l,f,p,d=e.now(),h=t.length,y=-1,m="";for(;++y<h;){if((l=t.charAt(y))!==i||y>=a){y--;break}m+=l}u="",s="";for(;++y<h;){if((l=t.charAt(y))===r){y--;break}l===i||l===o?s+=l:(u+=s+l,s="")}if(d.column+=m.length,d.offset+=m.length,m+=u+s,l=t.charAt(++y),f=t.charAt(++y),l!==r||!c[f])return;m+=l,s=f,p=c[f];for(;++y<h;){if((l=t.charAt(y))!==f){if(l!==r)return;y--;break}s+=l}if(n)return!0;return e(m+s)({type:"heading",depth:p,children:this.tokenizeInline(u,d)})};var r="\n",o="\t",i=" ",a=3,c={};c["="]=1,c["-"]=2},function(e,t,n){"use strict";var r=n(169).openCloseTag;e.exports=function(e,t,n){var u,s,l,f,p,d,h,y=this.options.blocks,m=t.length,g=0,v=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+y.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];for(;g<m&&((f=t.charAt(g))===o||f===i);)g++;if(t.charAt(g)!==c)return;u=-1===(u=t.indexOf(a,g+1))?m:u,s=t.slice(g,u),l=-1,p=v.length;for(;++l<p;)if(v[l][0].test(s)){d=v[l];break}if(!d)return;if(n)return d[2];if(g=u,!d[1].test(s))for(;g<m;){if(u=-1===(u=t.indexOf(a,g+1))?m:u,s=t.slice(g+1,u),d[1].test(s)){s&&(g=u);break}g=u}return h=t.slice(0,g),e(h)({type:"html",value:h})};var o="\t",i=" ",a="\n",c="<"},function(e,t,n){"use strict";var r=n(26),o=n(112);e.exports=h,h.notInList=!0,h.notInBlock=!0;var i="\\",a="\n",c="\t",u=" ",s="[",l="]",f="^",p=":",d=/^( {4}|\t)?/gm;function h(e,t,n){var h,y,m,g,v,b,w,x,_,O,E,k,S=this.offset;if(this.options.footnotes){for(h=0,y=t.length,m="",g=e.now(),v=g.line;h<y&&(_=t.charAt(h),r(_));)m+=_,h++;if(t.charAt(h)===s&&t.charAt(h+1)===f){for(h=(m+=s+f).length,w="";h<y&&(_=t.charAt(h))!==l;)_===i&&(w+=_,h++,_=t.charAt(h)),w+=_,h++;if(w&&t.charAt(h)===l&&t.charAt(h+1)===p){if(n)return!0;for(O=o(w),h=(m+=w+l+p).length;h<y&&((_=t.charAt(h))===c||_===u);)m+=_,h++;for(g.column+=m.length,g.offset+=m.length,w="",b="",x="";h<y;){if((_=t.charAt(h))===a){for(x=_,h++;h<y&&(_=t.charAt(h))===a;)x+=_,h++;for(w+=x,x="";h<y&&(_=t.charAt(h))===u;)x+=_,h++;if(0===x.length)break;w+=x}w&&(b+=w,w=""),b+=_,h++}return m+=b,b=b.replace(d,function(e){return S[v]=(S[v]||0)+e.length,v++,""}),E=e(m),k=this.enterBlock(),b=this.tokenizeBlock(b,g),k(),E({type:"footnoteDefinition",identifier:O,children:b})}}}}},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},function(e,t,n){"use strict";var r=n(26),o=n(112);e.exports=v,v.notInList=!0,v.notInBlock=!0;var i='"',a="'",c="\\",u="\n",s="\t",l=" ",f="[",p="]",d="(",h=")",y=":",m="<",g=">";function v(e,t,n){for(var r,g,v,x,_,O,E,k,S=this.options.commonmark,T=0,A=t.length,j="";T<A&&((x=t.charAt(T))===l||x===s);)j+=x,T++;if((x=t.charAt(T))===f){for(T++,j+=x,v="";T<A&&(x=t.charAt(T))!==p;)x===c&&(v+=x,T++,x=t.charAt(T)),v+=x,T++;if(v&&t.charAt(T)===p&&t.charAt(T+1)===y){for(O=v,T=(j+=v+p+y).length,v="";T<A&&((x=t.charAt(T))===s||x===l||x===u);)j+=x,T++;if(v="",r=j,(x=t.charAt(T))===m){for(T++;T<A&&b(x=t.charAt(T));)v+=x,T++;if((x=t.charAt(T))===b.delimiter)j+=m+v+x,T++;else{if(S)return;T-=v.length+1,v=""}}if(!v){for(;T<A&&w(x=t.charAt(T));)v+=x,T++;j+=v}if(v){for(E=v,v="";T<A&&((x=t.charAt(T))===s||x===l||x===u);)v+=x,T++;if(_=null,(x=t.charAt(T))===i?_=i:x===a?_=a:x===d&&(_=h),_){if(!v)return;for(T=(j+=v+x).length,v="";T<A&&(x=t.charAt(T))!==_;){if(x===u){if(T++,(x=t.charAt(T))===u||x===_)return;v+=u}v+=x,T++}if((x=t.charAt(T))!==_)return;g=j,j+=v+x,T++,k=v,v=""}else v="",T=j.length;for(;T<A&&((x=t.charAt(T))===s||x===l);)j+=x,T++;return(x=t.charAt(T))&&x!==u?void 0:!!n||(r=e(r).test().end,E=this.decode.raw(this.unescape(E),r,{nonTerminated:!1}),k&&(g=e(g).test().end,k=this.decode.raw(this.unescape(k),g)),e(j)({type:"definition",identifier:o(O),title:k||null,url:E}))}}}}function b(e){return e!==g&&e!==f&&e!==p}function w(e){return e!==f&&e!==p&&!r(e)}b.delimiter=g},function(e,t,n){"use strict";var r=n(26);e.exports=function(e,t,n){var v,b,w,x,_,O,E,k,S,T,A,j,P,C,M,N,I,R,D,L,F,U,B,z;if(!this.options.gfm)return;v=0,R=0,O=t.length+1,E=[];for(;v<O;){if(U=t.indexOf(l,v),B=t.indexOf(c,v+1),-1===U&&(U=t.length),-1===B||B>U){if(R<d)return;break}E.push(t.slice(v,U)),R++,v=U+1}x=E.join(l),b=E.splice(1,1)[0]||[],v=0,O=b.length,R--,w=!1,A=[];for(;v<O;){if((S=b.charAt(v))===c){if(T=null,!1===w){if(!1===z)return}else A.push(w),w=!1;z=!1}else if(S===a)T=!0,w=w||g;else if(S===u)w=w===h?y:T&&w===g?m:h;else if(!r(S))return;v++}!1!==w&&A.push(w);if(A.length<p)return;if(n)return!0;I=-1,L=[],F=e(x).reset({type:"table",align:A,children:L});for(;++I<R;){for(D=E[I],_={type:"tableRow",children:[]},I&&e(l),e(D).reset(_,F),O=D.length+1,v=0,k="",j="",P=!0,C=null,M=null;v<O;)if((S=D.charAt(v))!==f&&S!==s){if(""===S||S===c)if(P)e(S);else{if(S&&M){k+=S,v++;continue}!j&&!S||P||(x=j,k.length>1&&(S?(x+=k.slice(0,k.length-1),k=k.charAt(k.length-1)):(x+=k,k="")),N=e.now(),e(x)({type:"tableCell",children:this.tokenizeInline(j,N)},_)),e(k+S),k="",j=""}else if(k&&(j+=k,k=""),j+=S,S===o&&v!==O-2&&(j+=D.charAt(v+1),v++),S===i){for(C=1;D.charAt(v+1)===S;)j+=S,v++,C++;M?C>=M&&(M=0):M=C}P=!1,v++}else j?k+=S:e(S),v++;I||e(l+b)}return F};var o="\\",i="`",a="-",c="|",u=":",s=" ",l="\n",f="\t",p=1,d=2,h="left",y="center",m="right",g=null},function(e,t,n){"use strict";var r=n(50),o=n(81),i=n(110),a=n(111);e.exports=function(e,t,n){var f,p,d,h,y,m=this.options,g=m.commonmark,v=m.gfm,b=this.blockTokenizers,w=this.interruptParagraph,x=t.indexOf(c),_=t.length;for(;x<_;){if(-1===x){x=_;break}if(t.charAt(x+1)===c)break;if(g){for(h=0,f=x+1;f<_;){if((d=t.charAt(f))===u){h=l;break}if(d!==s)break;h++,f++}if(h>=l){x=t.indexOf(c,x+1);continue}}if(p=t.slice(x+1),a(w,b,this,[e,p,!0]))break;if(b.list.call(this,e,p,!0)&&(this.inList||g||v&&!o(r.left(p).charAt(0))))break;if(f=x,-1!==(x=t.indexOf(c,x+1))&&""===r(t.slice(f,x))){x=f;break}}if(p=t.slice(0,x),""===r(p))return e(p),null;if(n)return!0;return y=e.now(),p=i(p),e(p)({type:"paragraph",children:this.tokenizeInline(p,y)})};var c="\n",u="\t",s=" ",l=4},function(e,t,n){"use strict";var r=n(342);function o(e,t,n){var r,o;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(o="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(o))}e.exports=o,o.locator=r},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("\\",t)}},function(e,t,n){"use strict";var r=n(26),o=n(108),i=n(170);e.exports=p,p.locator=i,p.notInLink=!0;var a="<",c=">",u="@",s="/",l="mailto:",f=l.length;function p(e,t,n){var i,p,d,h,y,m,g,v,b,w,x;if(t.charAt(0)===a){for(this,i="",p=t.length,d=0,h="",m=!1,g="",d++,i=a;d<p&&(y=t.charAt(d),!(r(y)||y===c||y===u||":"===y&&t.charAt(d+1)===s));)h+=y,d++;if(h){if(g+=h,h="",g+=y=t.charAt(d),d++,y===u)m=!0;else{if(":"!==y||t.charAt(d+1)!==s)return;g+=s,d++}for(;d<p&&(y=t.charAt(d),!r(y)&&y!==c);)h+=y,d++;if(y=t.charAt(d),h&&y===c)return!!n||(b=g+=h,i+=g+y,(v=e.now()).column++,v.offset++,m&&(g.slice(0,f).toLowerCase()===l?(b=b.substr(f),v.column+=f,v.offset+=f):g=l+g),w=this.inlineTokenizers,this.inlineTokenizers={text:w.text},x=this.enterLink(),b=this.tokenizeInline(b,v),this.inlineTokenizers=w,x(),e(i)({type:"link",title:null,url:o(g,{nonTerminated:!1}),children:b}))}}}},function(e,t,n){"use strict";var r=n(108),o=n(26),i=n(345);e.exports=y,y.locator=i,y.notInLink=!0;var a="[",c="]",u="(",s=")",l="<",f="@",p="mailto:",d=["http://","https://",p],h=d.length;function y(e,t,n){var i,y,m,g,v,b,w,x,_,O,E,k;if(this.options.gfm){for(i="",g=-1,x=h;++g<x;)if(b=d[g],(w=t.slice(0,b.length)).toLowerCase()===b){i=w;break}if(i){for(g=i.length,x=t.length,_="",O=0;g<x&&(m=t.charAt(g),!o(m)&&m!==l)&&("."!==m&&","!==m&&":"!==m&&";"!==m&&'"'!==m&&"'"!==m&&")"!==m&&"]"!==m||(E=t.charAt(g+1))&&!o(E))&&(m!==u&&m!==a||O++,m!==s&&m!==c||!(--O<0));)_+=m,g++;if(_){if(y=i+=_,b===p){if(-1===(v=_.indexOf(f))||v===x-1)return;y=y.substr(p.length)}return!!n||(k=this.enterLink(),y=this.tokenizeInline(y,e.now()),k(),e(i)({type:"link",title:null,url:r(i,{nonTerminated:!1}),children:y}))}}}}},function(e,t,n){"use strict";e.exports=function(e,t){var n,o=r.length,i=-1,a=-1;if(!this.options.gfm)return-1;for(;++i<o;)-1!==(n=e.indexOf(r[i],t))&&(n<a||-1===a)&&(a=n);return a};var r=["https://","http://","mailto:"]},function(e,t,n){"use strict";var r=n(166),o=n(170),i=n(169).tag;e.exports=u,u.locator=o;var a=/^<a /i,c=/^<\/a>/i;function u(e,t,n){var o,u,s=t.length;if(!("<"!==t.charAt(0)||s<3)&&(o=t.charAt(1),(r(o)||"?"===o||"!"===o||"/"===o)&&(u=t.match(i))))return!!n||(u=u[0],!this.inLink&&a.test(u)?this.inLink=!0:this.inLink&&c.test(u)&&(this.inLink=!1),e(u)({type:"html",value:u}))}},function(e,t,n){"use strict";var r=n(26),o=n(171);e.exports=m,m.locator=o;var i={}.hasOwnProperty,a="\\",c="[",u="]",s="(",l=")",f="<",p=">",d="`",h={'"':'"',"'":"'"},y={};function m(e,t,n){var o,m,g,v,b,w,x,_,O,E,k,S,T,A,j,P,C,M,N,I="",R=0,D=t.charAt(0),L=this.options.pedantic,F=this.options.commonmark,U=this.options.gfm;if("!"===D&&(O=!0,I=D,D=t.charAt(++R)),D===c&&(O||!this.inLink)){for(I+=D,j="",R++,S=t.length,A=0,(C=e.now()).column+=R,C.offset+=R;R<S;){if(w=D=t.charAt(R),D===d){for(m=1;t.charAt(R+1)===d;)w+=D,R++,m++;g?m>=g&&(g=0):g=m}else if(D===a)R++,w+=t.charAt(R);else if(g&&!U||D!==c){if((!g||U)&&D===u){if(!A){if(!L)for(;R<S&&(D=t.charAt(R+1),r(D));)w+=D,R++;if(t.charAt(R+1)!==s)return;w+=s,o=!0,R++;break}A--}}else A++;j+=w,w="",R++}if(o){for(E=j,I+=j+w,R++;R<S&&(D=t.charAt(R),r(D));)I+=D,R++;if(D=t.charAt(R),_=F?y:h,j="",v=I,D===f){for(R++,v+=f;R<S&&(D=t.charAt(R))!==p;){if(F&&"\n"===D)return;j+=D,R++}if(t.charAt(R)!==p)return;I+=f+j+p,P=j,R++}else{for(D=null,w="";R<S&&(D=t.charAt(R),!w||!i.call(_,D));){if(r(D)){if(!L)break;w+=D}else{if(D===s)A++;else if(D===l){if(0===A)break;A--}j+=w,w="",D===a&&(j+=a,D=t.charAt(++R)),j+=D}R++}P=j,R=(I+=j).length}for(j="";R<S&&(D=t.charAt(R),r(D));)j+=D,R++;if(D=t.charAt(R),I+=j,j&&i.call(_,D))if(R++,I+=D,j="",k=_[D],b=I,F){for(;R<S&&(D=t.charAt(R))!==k;)D===a&&(j+=a,D=t.charAt(++R)),R++,j+=D;if((D=t.charAt(R))!==k)return;for(T=j,I+=j+D,R++;R<S&&(D=t.charAt(R),r(D));)I+=D,R++}else for(w="";R<S;){if((D=t.charAt(R))===k)x&&(j+=k+w,w=""),x=!0;else if(x){if(D===l){I+=j+k+w,T=j;break}r(D)?w+=D:(j+=k+w+D,w="",x=!1)}else j+=D;R++}if(t.charAt(R)===l)return!!n||(I+=l,P=this.decode.raw(this.unescape(P),e(v).test().end,{nonTerminated:!1}),T&&(b=e(b).test().end,T=this.decode.raw(this.unescape(T),b)),N={type:O?"image":"link",title:T||null,url:P},O?N.alt=this.decode.raw(this.unescape(E),C)||null:(M=this.enterLink(),N.children=this.tokenizeInline(E,C),M()),e(I)(N))}}}y['"']='"',y["'"]="'",y[s]=l},function(e,t,n){"use strict";var r=n(26),o=n(171),i=n(112);e.exports=m,m.locator=o;var a="link",c="image",u="footnote",s="shortcut",l="collapsed",f="full",p="^",d="\\",h="[",y="]";function m(e,t,n){var o,m,g,v,b,w,x,_,O=t.charAt(0),E=0,k=t.length,S="",T="",A=a,j=s;if("!"===O&&(A=c,T=O,O=t.charAt(++E)),O===h){if(E++,T+=O,w="",this.options.footnotes&&t.charAt(E)===p){if(A===c)return;T+=p,E++,A=u}for(_=0;E<k;){if((O=t.charAt(E))===h)x=!0,_++;else if(O===y){if(!_)break;_--}O===d&&(w+=d,O=t.charAt(++E)),w+=O,E++}if(S=w,o=w,(O=t.charAt(E))===y){for(E++,S+=O,w="";E<k&&(O=t.charAt(E),r(O));)w+=O,E++;if(O=t.charAt(E),A!==u&&O===h){for(m="",w+=O,E++;E<k&&(O=t.charAt(E))!==h&&O!==y;)O===d&&(m+=d,O=t.charAt(++E)),m+=O,E++;(O=t.charAt(E))===y?(j=m?f:l,w+=m+O,E++):m="",S+=w,w=""}else{if(!o)return;m=o}if(j===f||!x)return S=T+S,A===a&&this.inLink?null:!!n||(A===u&&-1!==o.indexOf(" ")?e(S)({type:"footnote",children:this.tokenizeInline(o,e.now())}):((g=e.now()).column+=T.length,g.offset+=T.length,v={type:A+"Reference",identifier:i(m=j===f?m:o)},A!==a&&A!==c||(v.referenceType=j),A===a?(b=this.enterLink(),v.children=this.tokenizeInline(o,g),b()):A===c&&(v.alt=this.decode.raw(this.unescape(o),g)||null),e(S)(v)))}}}},function(e,t,n){"use strict";var r=n(50),o=n(26),i=n(350);e.exports=u,u.locator=i;var a="*",c="_";function u(e,t,n){var i,u,s,l,f,p,d,h=0,y=t.charAt(h);if(!(y!==a&&y!==c||t.charAt(++h)!==y||(u=this.options.pedantic,f=(s=y)+s,p=t.length,h++,l="",y="",u&&o(t.charAt(h)))))for(;h<p;){if(d=y,!((y=t.charAt(h))!==s||t.charAt(h+1)!==s||u&&o(d))&&(y=t.charAt(h+2))!==s){if(!r(l))return;return!!n||((i=e.now()).column+=2,i.offset+=2,e(f+l+f)({type:"strong",children:this.tokenizeInline(l,i)}))}u||"\\"!==y||(l+=y,y=t.charAt(++h)),l+=y,h++}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(e,t,n){"use strict";var r=n(50),o=n(352),i=n(26),a=n(353);e.exports=s,s.locator=a;var c="*",u="_";function s(e,t,n){var a,s,l,f,p,d,h,y=0,m=t.charAt(y);if(!(m!==c&&m!==u||(s=this.options.pedantic,p=m,l=m,d=t.length,y++,f="",m="",s&&i(t.charAt(y)))))for(;y<d;){if(h=m,!((m=t.charAt(y))!==l||s&&i(h))){if((m=t.charAt(++y))!==l){if(!r(f)||h===l)return;if(!s&&l===u&&o(m)){f+=l;continue}return!!n||((a=e.now()).column++,a.offset++,e(p+f+l)({type:"emphasis",children:this.tokenizeInline(f,a)}))}f+=l}s||"\\"!==m||(f+=m,m=t.charAt(++y)),f+=m,y++}}},function(e,t,n){"use strict";e.exports=function(e){return o.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,o=/\w/},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(e,t,n){"use strict";var r=n(26),o=n(355);e.exports=c,c.locator=o;var i="~",a="~~";function c(e,t,n){var o,c,u,s="",l="",f="",p="";if(this.options.gfm&&t.charAt(0)===i&&t.charAt(1)===i&&!r(t.charAt(2)))for(o=1,c=t.length,(u=e.now()).column+=2,u.offset+=2;++o<c;){if(!((s=t.charAt(o))!==i||l!==i||f&&r(f)))return!!n||e(a+p+a)({type:"delete",children:this.tokenizeInline(p,u)});p+=l,f=l,l=s}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("~~",t)}},function(e,t,n){"use strict";var r=n(26),o=n(357);e.exports=a,a.locator=o;var i="`";function a(e,t,n){for(var o,a,c,u,s,l,f,p,d=t.length,h=0,y="",m="";h<d&&t.charAt(h)===i;)y+=i,h++;if(y){for(s=y,u=h,y="",p=t.charAt(h),c=0;h<d;){if(l=p,p=t.charAt(h+1),l===i?(c++,m+=l):(c=0,y+=l),c&&p!==i){if(c===u){s+=y+m,f=!0;break}y+=m,m=""}h++}if(!f){if(u%2!=0)return;y=""}if(n)return!0;for(o="",a="",d=y.length,h=-1;++h<d;)l=y.charAt(h),r(l)?a+=l:(a&&(o&&(o+=a),a=""),o+=l);return e(s)({type:"inlineCode",value:o})}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("`",t)}},function(e,t,n){"use strict";var r=n(359);e.exports=i,i.locator=r;var o=2;function i(e,t,n){for(var r,i=t.length,a=-1,c="";++a<i;){if("\n"===(r=t.charAt(a))){if(a<o)return;return!!n||e(c+=r)({type:"break"})}if(" "!==r)return;c+=r}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("\n",t);for(;n>t&&" "===e.charAt(n-1);)n--;return n}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o,i,a,c,u,s,l,f,p;if(n)return!0;r=this.inlineMethods,a=r.length,o=this.inlineTokenizers,i=-1,f=t.length;for(;++i<a;)"text"!==(l=r[i])&&o[l]&&((s=o[l].locator)||e.file.fail("Missing locator: `"+l+"`"),-1!==(u=s.call(this,t,1))&&u<f&&(f=u));c=t.slice(0,f),p=e.now(),this.decode(c,p,function(t,n,r){e(r||t)({type:"text",value:t})})}},function(e,t,n){var r=n(362);e.exports=function(){return function(e){return r(e,"list",function(e,t){var n,r,o=0;for(n=0,r=t.length;n<r;n++)"list"===t[n].type&&(o+=1);for(n=0,r=e.children.length;n<r;n++){var i=e.children[n];i.index=n,i.ordered=e.ordered}e.depth=o}),e}}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=[];"function"==typeof t&&(n=t,t=null);function o(e){var i;return t&&e.type!==t||(i=n(e,r.concat())),e.children&&!1!==i?function(e,t){var n,i=e.length,a=-1;r.push(t);for(;++a<i;)if((n=e[a])&&!1===o(n))return!1;return r.pop(),!0}(e.children,e):i}o(e)}},function(e,t,n){"use strict";var r=n(82),o="virtualHtml",i=/^<(area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\s*\/?>$/i,a=/^<(\/?)([a-z]+)\s*>$/;e.exports=function(e){var t,n;return r(e,"html",function(e,r,c){n!==c&&(t=[],n=c);var u=function(e){var t=e.value.match(i);return!!t&&t[1]}(e);if(u)return c.children.splice(r,1,{type:o,tag:u,position:e.position}),!0;var s=function(e,t){var n=e.value.match(a);return!!n&&{tag:n[2],opening:!n[1],node:e}}(e);if(!s)return!0;var l=function(e,t){var n=e.length;for(;n--;)if(e[n].tag===t)return e.splice(n,1)[0];return!1}(t,s.tag);return l?c.children.splice(r,0,function(e,t,n){var r=n.children.indexOf(e.node),i=n.children.indexOf(t.node),a=n.children.splice(r,i-r+1).slice(1,-1);return{type:o,children:a,tag:e.tag,position:{start:e.node.position.start,end:t.node.position.end,indent:[]}}}(s,l,c)):s.opening||t.push(s),!0},!0),e}},function(e,t,n){"use strict";var r=n(82);function o(e,t,n,r){if("remove"===r)n.children.splice(t,1);else if("unwrap"===r){var o=[t,1];e.children&&(o=o.concat(e.children)),Array.prototype.splice.apply(n.children,o)}}t.ofType=function(e,t){return function(t){return e.forEach(function(e){return r(t,e,n,!0)}),t};function n(e,n,r){r&&o(e,n,r,t)}},t.ifNotMatch=function(e,t){return function(e){return r(e,n,!0),e};function n(n,r,i){i&&!e(n,r,i)&&o(n,r,i,t)}}},function(e,t,n){"use strict";var r=n(1),o=n(31);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=t.renderers[e.type],s=e.position.start,l=[e.type,s.line,s.column].join("-");if("function"!=typeof u&&"string"!=typeof u&&!function(e){return r.Fragment&&r.Fragment===e}(u))throw new Error("Renderer for type `".concat(e.type,"` not defined or is not renderable"));var f=function(e,t,n,c,u,s){var l={key:t},f="string"==typeof c;n.sourcePos&&e.position&&(l["data-sourcepos"]=[(p=e.position).start.line,":",p.start.column,"-",p.end.line,":",p.end.column].map(String).join(""));var p;n.rawSourcePos&&!f&&(l.sourcePosition=e.position);n.includeNodeIndex&&u.node&&u.node.children&&!f&&(l.index=u.node.children.indexOf(e),l.parentChildCount=u.node.children.length);var d=null!==e.identifier&&void 0!==e.identifier?n.definitions[e.identifier]||{}:null;switch(e.type){case"root":a(l,{className:n.className});break;case"text":l.nodeKey=t,l.children=e.value;break;case"heading":l.level=e.depth;break;case"list":l.start=e.start,l.ordered=e.ordered,l.tight=!e.loose,l.depth=e.depth;break;case"listItem":l.checked=e.checked,l.tight=!e.loose,l.ordered=e.ordered,l.index=e.index,l.children=function(e,t){if(e.loose)return e.children;if(t.node&&e.index>0&&t.node.children[e.index-1].loose)return e.children;return function(e){return e.children.reduce(function(e,t){return e.concat("paragraph"===t.type?t.children||[]:[t])},[])}(e)}(e,u).map(function(t,r){return i(t,n,{node:e,props:l},r)});break;case"definition":a(l,{identifier:e.identifier,title:e.title,url:e.url});break;case"code":a(l,{language:e.lang&&e.lang.split(/\s/,1)[0]});break;case"inlineCode":l.children=e.value,l.inline=!0;break;case"link":a(l,{title:e.title||void 0,target:"function"==typeof n.linkTarget?n.linkTarget(e.url,e.children,e.title):n.linkTarget,href:n.transformLinkUri?n.transformLinkUri(e.url,e.children,e.title):e.url});break;case"image":a(l,{alt:e.alt||void 0,title:e.title||void 0,src:n.transformImageUri?n.transformImageUri(e.url,e.children,e.title,e.alt):e.url});break;case"linkReference":a(l,o(d,{href:n.transformLinkUri?n.transformLinkUri(d.href):d.href}));break;case"imageReference":a(l,{src:n.transformImageUri&&d.href?n.transformImageUri(d.href,e.children,d.title,e.alt):d.href,title:d.title||void 0,alt:e.alt||void 0});break;case"table":case"tableHead":case"tableBody":l.columnAlignment=e.align;break;case"tableRow":l.isHeader="tableHead"===u.node.type,l.columnAlignment=u.props.columnAlignment;break;case"tableCell":a(l,{isHeader:u.props.isHeader,align:u.props.columnAlignment[s]});break;case"virtualHtml":l.tag=e.tag;break;case"html":l.isBlock=e.position.start.line!==e.position.end.line,l.escapeHtml=n.escapeHtml,l.skipHtml=n.skipHtml;break;case"parsedHtml":var h;e.children&&(h=e.children.map(function(t,r){return i(t,n,{node:e,props:l},r)})),l.escapeHtml=n.escapeHtml,l.skipHtml=n.skipHtml,l.element=function(e,t){var n=e.element;if(Array.isArray(n)){var o=r.Fragment||"div";return r.createElement(o,null,n)}if(n.props.children||t){var i=r.Children.toArray(n.props.children).concat(t);return r.cloneElement(n,null,i)}return r.cloneElement(n,null)}(e,h);break;default:a(l,o(e,{type:void 0,position:void 0,children:void 0}))}!f&&e.value&&(l.value=e.value);return l}(e,l,t,u,n,c);return r.createElement(u,f,f.children||e.children&&e.children.map(function(n,r){return i(n,t,{node:e,props:f},r)})||void 0)}function a(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}e.exports=i},function(e,t,n){"use strict";var r=n(82);function o(e){var t=e.children;e.children=[{type:"tableHead",align:e.align,children:[t[0]],position:t[0].position}],t.length>1&&e.children.push({type:"tableBody",align:e.align,children:t.slice(1),position:{start:t[1].position.start,end:t[t.length-1].position.end}})}e.exports=function(e){return r(e,"table",o),e}},function(e,t,n){"use strict";e.exports=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t.children||[]).reduce(function(t,n){return"definition"===n.type&&(t[n.identifier]={href:n.url,title:n.title}),e(n,t)},n)}},function(e,t,n){"use strict";var r=["http","https","mailto","tel"];e.exports=function(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var o=t.indexOf(":");if(-1===o)return t;for(var i=r.length,a=-1;++a<i;){var c=r[a];if(o===c.length&&t.slice(0,c.length).toLowerCase()===c)return t}return-1!==(a=t.indexOf("?"))&&o>a?t:-1!==(a=t.indexOf("#"))&&o>a?t:"javascript:void(0)"}},function(e,t,n){"use strict";var r=n(31),o=n(1),i=parseInt((o.version||"16").slice(0,2),10)>=16,a=o.createElement;function c(e,t){return a(e,u(t),t.children)}function u(e){return e["data-sourcepos"]?{"data-sourcepos":e["data-sourcepos"]}:{}}e.exports={break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:c.bind(null,"table"),tableHead:c.bind(null,"thead"),tableBody:c.bind(null,"tbody"),tableRow:c.bind(null,"tr"),tableCell:function(e){var t=e.align?{textAlign:e.align}:void 0,n=u(e);return a(e.isHeader?"th":"td",t?r({style:t},n):n,e.children)},root:function(e){var t=!e.className,n=t&&o.Fragment||"div";return a(n,t?null:e,e.children)},text:function(e){return i?e.children:a("span",null,e.children)},list:function(e){var t=u(e);null!==e.start&&1!==e.start&&(t.start=e.start.toString());return a(e.ordered?"ol":"ul",t,e.children)},listItem:function(e){var t=null;if(null!==e.checked){var n=e.checked;t=a("input",{type:"checkbox",checked:n,readOnly:!0})}return a("li",u(e),t,e.children)},definition:function(){return null},heading:function(e){return a("h".concat(e.level),u(e),e.children)},inlineCode:function(e){return a("code",u(e),e.children)},code:function(e){var t=e.language&&"language-".concat(e.language),n=a("code",t?{className:t}:null,e.value);return a("pre",u(e),n)},html:function(e){if(e.skipHtml)return null;var t=e.isBlock?"div":"span";if(e.escapeHtml){var n=o.Fragment||t;return a(n,null,e.value)}var r={dangerouslySetInnerHTML:{__html:e.value}};return a(t,r)},virtualHtml:function(e){return a(e.tag,u(e),e.children)},parsedHtml:function(e){return e["data-sourcepos"]?o.cloneElement(e.element,{"data-sourcepos":e["data-sourcepos"]}):e.element}}},function(e,t,n){"use strict";t.HtmlParser="undefined"==typeof Symbol?"__RMD_HTML_PARSER__":Symbol("__RMD_HTML_PARSER__")},function(e,t,n){n(372),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),e.exports=n(66).Math},function(e,t,n){var r=n(13),o=n(180),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){e.exports=n(178)("native-function-to-string",Function.toString)},function(e,t){e.exports=!1},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(13),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(13),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(13),o=n(115);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(13);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(13),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(13),o=n(116);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(13);r(r.S,"Math",{fround:n(383)})},function(e,t,n){var r=n(115),o=Math.pow,i=o(2,-52),a=o(2,-23),c=o(2,127)*(2-a),u=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),s=r(e);return o<u?s*(o/u/a+1/i-1/i)*u*a:(n=(t=(1+a/i)*o)-(t-o))>c||n!=n?s*(1/0):s*n}},function(e,t,n){var r=n(13),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,c=arguments.length,u=0;a<c;)u<(n=o(arguments[a++]))?(i=i*(r=u/n)*r+1,u=n):i+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(e,t,n){var r=n(13),o=Math.imul;r(r.S+r.F*n(39)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(13);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(13);r(r.S,"Math",{log1p:n(180)})},function(e,t,n){var r=n(13);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(13);r(r.S,"Math",{sign:n(115)})},function(e,t,n){var r=n(13),o=n(116),i=Math.exp;r(r.S+r.F*n(39)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(13),o=n(116),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(13);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){n(394),n(407),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(419),e.exports=n(66).Number},function(e,t,n){"use strict";var r=n(32),o=n(84),i=n(117),a=n(395),c=n(114),u=n(39),s=n(399).f,l=n(181).f,f=n(113).f,p=n(121).trim,d=r.Number,h=d,y=d.prototype,m="Number"==i(n(403)(y)),g="trim"in String.prototype,v=function(e){var t=c(e,!1);if("string"==typeof t&&t.length>2){var n,r,o,i=(t=g?t.trim():p(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var a,u=t.slice(2),s=0,l=u.length;s<l;s++)if((a=u.charCodeAt(s))<48||a>o)return NaN;return parseInt(u,r)}}return+t};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof d&&(m?u(function(){y.valueOf.call(n)}):"Number"!=i(n))?a(new h(v(t)),n,d):v(t)};for(var b,w=n(52)?s(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)o(h,b=w[x])&&!o(d,b)&&f(d,b,l(h,b));d.prototype=y,y.constructor=d,n(176)(r,"Number",d)}},function(e,t,n){var r=n(51),o=n(396).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){var r=n(51),o=n(83),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(179)(Function.call,n(181).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(117);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(182),o=n(120).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(118),o=n(401),i=n(402);e.exports=function(e){return function(t,n,a){var c,u=r(t),s=o(u.length),l=i(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(85),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(85),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(83),o=n(404),i=n(120),a=n(183)("IE_PROTO"),c=function(){},u=function(){var e,t=n(174)("iframe"),r=i.length;for(t.style.display="none",n(406).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(113),o=n(83),i=n(405);e.exports=n(52)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),c=a.length,u=0;c>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(182),o=n(120);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(32).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(13),o=n(85),i=n(184),a=n(408),c=1..toFixed,u=Math.floor,s=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*s[n],s[n]=r%1e7,r=u(r/1e7)},p=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=u(n/e),n=n%e*1e7},d=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},h=function(e,t,n){return 0===t?n:t%2==1?h(e,t-1,n*e):h(e*e,t/2,n)};r(r.P+r.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(39)(function(){c.call({})})),"Number",{toFixed:function(e){var t,n,r,c,u=i(this,l),s=o(e),y="",m="0";if(s<0||s>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*h(2,69,1))-69)<0?u*h(2,-t,1):u/h(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=s;r>=7;)f(1e7,0),r-=7;for(f(h(10,r,1),0),r=t-1;r>=23;)p(1<<23),r-=23;p(1<<r),f(1,1),p(2),m=d()}else f(0,n),f(1<<-t,0),m=d()+a.call("0",s);return m=s>0?y+((c=m.length)<=s?"0."+a.call("0",s-c)+m:m.slice(0,c-s)+"."+m.slice(c-s)):y+m}})},function(e,t,n){"use strict";var r=n(85),o=n(119);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(13),o=n(39),i=n(184),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(13);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(13),o=n(32).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(13);r(r.S,"Number",{isInteger:n(185)})},function(e,t,n){var r=n(13);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(13),o=n(185),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(13);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(13);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(13),o=n(418);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(32).parseFloat,o=n(121).trim;e.exports=1/r(n(122)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(13),o=n(420);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){var r=n(32).parseInt,o=n(121).trim,i=n(122),a=/^[-+]?0[xX]/;e.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(67),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(424),o=n(475),i=n(198);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(187),o=n(126),i=1,a=2;e.exports=function(e,t,n,c){var u=n.length,s=u,l=!c;if(null==e)return!s;for(e=Object(e);u--;){var f=n[u];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++u<s;){var p=(f=n[u])[0],d=e[p],h=f[1];if(l&&f[2]){if(void 0===d&&!(p in e))return!1}else{var y=new r;if(c)var m=c(d,h,p,e,t,y);if(!(void 0===m?o(h,d,i|a,c,y):m))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(87),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(87);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(87);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(87);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(86);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(86),o=n(124),i=n(125),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var c=n.__data__;if(!o||c.length<a-1)return c.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(c)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(5),o=n(436),i=n(19),a=n(188),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},function(e,t,n){var r,o=n(437),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(28)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(440),o=n(86),i=n(124);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(441),o=n(442),i=n(443),a=n(444),c=n(445);function u(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])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(88);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(88),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(88),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(88),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(89);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(89);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(89);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(89);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(187),o=n(189),i=n(454),a=n(457),c=n(471),u=n(11),s=n(193),l=n(194),f=1,p="[object Arguments]",d="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var b=u(e),w=u(t),x=b?d:c(e),_=w?d:c(t),O=(x=x==p?h:x)==h,E=(_=_==p?h:_)==h,k=x==_;if(k&&s(e)){if(!s(t))return!1;b=!0,O=!1}if(k&&!O)return v||(v=new r),b||l(e)?o(e,t,n,m,g,v):i(e,t,x,n,m,g,v);if(!(n&f)){var S=O&&y.call(e,"__wrapped__"),T=E&&y.call(t,"__wrapped__");if(S||T){var A=S?e.value():e,j=T?t.value():t;return v||(v=new r),g(A,j,n,m,v)}}return!!k&&(v||(v=new r),a(e,t,n,m,g,v))}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(67),o=n(455),i=n(123),a=n(189),c=n(456),u=n(129),s=1,l=2,f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Map]",y="[object Number]",m="[object RegExp]",g="[object Set]",v="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",x="[object DataView]",_=r?r.prototype:void 0,O=_?_.valueOf:void 0;e.exports=function(e,t,n,r,_,E,k){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!E(new o(e),new o(t)));case f:case p:case y:return i(+e,+t);case d:return e.name==t.name&&e.message==t.message;case m:case v:return e==t+"";case h:var S=c;case g:var T=r&s;if(S||(S=u),e.size!=t.size&&!T)return!1;var A=k.get(e);if(A)return A==t;r|=l,k.set(e,t);var j=a(S(e),S(t),r,_,E,k);return k.delete(e),j;case b:if(O)return O.call(e)==O.call(t)}return!1}},function(e,t,n){var r=n(28).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(458),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,c,u){var s=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!s)return!1;for(var p=f;p--;){var d=l[p];if(!(s?d in t:i.call(t,d)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var y=!0;u.set(e,t),u.set(t,e);for(var m=s;++p<f;){var g=e[d=l[p]],v=t[d];if(a)var b=s?a(v,g,d,t,e,u):a(g,v,d,e,t,u);if(!(void 0===b?g===v||c(g,v,n,a,u):b)){y=!1;break}m||(m="constructor"==d)}if(y&&!m){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(y=!1)}return u.delete(e),u.delete(t),y}},function(e,t,n){var r=n(459),o=n(460),i=n(90);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(191),o=n(11);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(192),o=n(461),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=c},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(463),o=n(130),i=n(11),a=n(193),c=n(131),u=n(194),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],y=h.length;for(var m in e)!t&&!s.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||c(m,y))||h.push(m);return h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(40),o=n(34),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(40),o=n(132),i=n(34),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){(function(e){var r=n(186),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(80)(e))},function(e,t,n){var r=n(469),o=n(470),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(195)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(472),o=n(124),i=n(473),a=n(196),c=n(474),u=n(40),s=n(188),l=s(r),f=s(o),p=s(i),d=s(a),h=s(c),y=u;(r&&"[object DataView]"!=y(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||i&&"[object Promise]"!=y(i.resolve())||a&&"[object Set]"!=y(new a)||c&&"[object WeakMap]"!=y(new c))&&(y=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=y},function(e,t,n){var r=n(44)(n(28),"DataView");e.exports=r},function(e,t,n){var r=n(44)(n(28),"Promise");e.exports=r},function(e,t,n){var r=n(44)(n(28),"WeakMap");e.exports=r},function(e,t,n){var r=n(197),o=n(90);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(126),o=n(58),i=n(482),a=n(134),c=n(197),u=n(198),s=n(91),l=1,f=2;e.exports=function(e,t){return a(e)&&c(t)?u(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,l|f)}}},function(e,t,n){var r=n(478),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t,n){var r=n(479),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(125),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(481);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(67),o=n(68),i=n(11),a=n(54),c=1/0,u=r?r.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-c?"-0":n}},function(e,t,n){var r=n(483),o=n(484);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(200),o=n(130),i=n(11),a=n(131),c=n(132),u=n(91);e.exports=function(e,t,n){for(var s=-1,l=(t=r(t,e)).length,f=!1;++s<l;){var p=u(t[s]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++s!=l?f:!!(l=null==e?0:e.length)&&c(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(486),o=n(487),i=n(134),a=n(91);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(199);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(127),o=n(201),i=n(203),a=n(128),c=n(492),u=n(129),s=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,d=!0,h=[],y=h;if(n)d=!1,f=i;else if(p>=s){var m=t?null:c(e);if(m)return u(m);d=!1,f=a,y=new r}else y=t?[]:h;e:for(;++l<p;){var g=e[l],v=t?t(g):g;if(g=n||0!==g?g:0,d&&v==v){for(var b=y.length;b--;)if(y[b]===v)continue e;t&&y.push(v),h.push(g)}else f(y,v,n)||(y!==h&&y.push(v),h.push(g))}return h}},function(e,t,n){var r=n(202),o=n(490),i=n(491);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(196),o=n(493),i=n(129),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t){e.exports=function(){}},function(e,t,n){(function(t){(function(){var n,r,o,i,a,c;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,i=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),c=1e9*t.uptime(),a=i-c):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,n(107))},function(e,t,n){var r=n(195)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(127),o=n(201),i=n(203),a=n(68),c=n(133),u=n(128),s=Math.min;e.exports=function(e,t,n){for(var l=n?i:o,f=e[0].length,p=e.length,d=p,h=Array(p),y=1/0,m=[];d--;){var g=e[d];d&&t&&(g=a(g,c(t))),y=s(g.length,y),h[d]=!n&&(t||f>=120&&g.length>=120)?new r(d&&g):void 0}g=e[0];var v=-1,b=h[0];e:for(;++v<f&&m.length<y;){var w=g[v],x=t?t(w):w;if(w=n||0!==w?w:0,!(b?u(b,x):l(m,x,n))){for(d=p;--d;){var _=h[d];if(!(_?u(_,x):l(e[d],x,n)))continue e}b&&b.push(x),m.push(w)}}return m}},function(e,t,n){var r=n(498),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,c=o(i.length-t,0),u=Array(c);++a<c;)u[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(u),r(e,this,s)}}},function(e,t){e.exports=function(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(e,t,n){var r=n(500),o=n(502)(r);e.exports=o},function(e,t,n){var r=n(501),o=n(205),i=n(55),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),c=r-(a-i);if(i=a,c>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(504);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(53),o=n(34);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(92);e.exports=function(e,t){var n=[];return r(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}},function(e,t,n){var r=n(507)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}},function(e,t,n){var r=n(53);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,c=Object(n);(t?a--:++a<i)&&!1!==o(c[a],a,c););return n}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(0));var r=c(n(510)),o=c(n(513)),i=c(n(1)),a=c(n(207));n(209);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=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=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,r.default)(e,t)})},l=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,o.default)(e,t)})},f=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),s(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),s(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),s(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),s(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{className:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&l(e,r),o&&l(e,o),i&&l(e,i)},o.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,s(e,t))},o.render=function(){var e=u({},this.props);return delete e.classNames,i.default.createElement(a.default,u({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;t.default=p,e.exports=t.default},function(e,t,n){"use strict";var r=n(511);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(512));e.exports=t.default},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(0));var r=a(n(1)),o=n(135),i=a(n(210));function a(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=a.prototype;return c.handleLifecycle=function(e,t,n){var i,a=this.props.children,c=r.default.Children.toArray(a)[t];c.props[e]&&(i=c.props)[e].apply(i,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},c.render=function(){var e=this.props,t=e.children,n=e.in,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children","in"]),a=r.default.Children.toArray(t),c=a[0],u=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(c,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);c.propTypes={};var u=c;t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return o(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var c=o(e.children),u=i(t,c);return Object.keys(u).forEach(function(o){var i=u[o];if((0,r.isValidElement)(i)){var s=o in t,l=o in c,f=t[o],p=(0,r.isValidElement)(f)&&!f.props.in;!l||s&&!p?l||!s||p?l&&s&&(0,r.isValidElement)(f)&&(u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):u[o]=(0,r.cloneElement)(i,{in:!1}):u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}}),u};var r=n(1);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var s=o[u][r];c[o[u][r]]=n(s)}c[u]=n(u)}for(r=0;r<i.length;r++)c[i[r]]=n(i[r]);return c}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){var r=n(67),o=n(130),i=n(11),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(68),o=n(33),i=n(212),a=n(518),c=n(133),u=n(519),s=n(55);e.exports=function(e,t,n){var l=-1;t=r(t.length?t:[s],c(o));var f=i(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++l,value:e}});return a(f,function(e,t){return u(e,t,n)})}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(520);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,c=i.length,u=n.length;++o<c;){var s=r(i[o],a[o]);if(s)return o>=u?s:s*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(54);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),c=void 0!==t,u=null===t,s=t==t,l=r(t);if(!u&&!l&&!a&&e>t||a&&c&&s&&!u&&!l||o&&c&&s||!n&&s||!i)return 1;if(!o&&!a&&!l&&e<t||l&&n&&i&&!o&&!a||u&&n&&i||!c&&i||!s)return-1}return 0}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){var r=n(68),o=n(33),i=n(212),a=n(11);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTickValuesFixedDomain=t.getTickValues=t.getNiceTickValues=void 0;var r=a(n(214)),o=n(215),i=a(n(525));function a(e){return e&&e.__esModule?e:{default:e}}function c(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")}()}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){var t=u(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function l(e,t,n){if(e.lte(0))return new r.default(0);var o=i.default.getDigitCount(e.toNumber()),a=new r.default(10).pow(o),c=e.div(a),u=1!==o?.05:.1,s=new r.default(Math.ceil(c.div(u).toNumber())).add(n).mul(u).mul(a);return t?s:new r.default(Math.ceil(s))}function f(e,t,n){var a=1,c=new r.default(e);if(!c.isint()&&n){var u=Math.abs(e);u<1?(a=new r.default(10).pow(i.default.getDigitCount(e)-1),c=new r.default(Math.floor(c.div(a).toNumber())).mul(a)):u>1&&(c=new r.default(Math.floor(e)))}else 0===e?c=new r.default(Math.floor((t-1)/2)):n||(c=new r.default(Math.floor(e)));var s=Math.floor((t-1)/2);return(0,o.compose)((0,o.map)(function(e){return c.add(new r.default(e-s).mul(a)).toNumber()}),o.range)(0,t)}var p=(0,o.memoize)(function(e){var t=u(e,2),n=t[0],a=t[1],p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],h=Math.max(p,2),y=u(s([n,a]),2),m=y[0],g=y[1];if(m===-1/0||g===1/0){var v=g===1/0?[m].concat(c((0,o.range)(0,p-1).map(function(){return 1/0}))):c((0,o.range)(0,p-1).map(function(){return-1/0})).concat([g]);return n>a?(0,o.reverse)(v):v}if(m===g)return f(m,p,d);var b=function e(t,n,o,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(o-1)))return{step:new r.default(0),tickMin:new r.default(0),tickMax:new r.default(0)};var c,u=l(new r.default(n).sub(t).div(o-1),i,a);c=t<=0&&n>=0?new r.default(0):(c=new r.default(t).add(n).div(2)).sub(new r.default(c).mod(u));var s=Math.ceil(c.sub(t).div(u).toNumber()),f=Math.ceil(new r.default(n).sub(c).div(u).toNumber()),p=s+f+1;return p>o?e(t,n,o,i,a+1):(p<o&&(f=n>0?f+(o-p):f,s=n>0?s:s+(o-p)),{step:u,tickMin:c.sub(new r.default(s).mul(u)),tickMax:c.add(new r.default(f).mul(u))})}(m,g,h,d),w=b.step,x=b.tickMin,_=b.tickMax,O=i.default.rangeStep(x,_.add(new r.default(.1).mul(w)),w);return n>a?(0,o.reverse)(O):O});t.getNiceTickValues=p;var d=(0,o.memoize)(function(e){var t=u(e,2),n=t[0],i=t[1],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],p=Math.max(a,2),d=u(s([n,i]),2),h=d[0],y=d[1];if(h===-1/0||y===1/0)return[n,i];if(h===y)return f(h,a,c);var m=l(new r.default(y).sub(h).div(p-1),c,0),g=(0,o.compose)((0,o.map)(function(e){return new r.default(h).add(new r.default(e).mul(m)).toNumber()}),o.range)(0,p).filter(function(e){return e>=h&&e<=y});return n>i?(0,o.reverse)(g):g});t.getTickValues=d;var h=(0,o.memoize)(function(e,t){var n=u(e,2),a=n[0],f=n[1],p=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=u(s([a,f]),2),h=d[0],y=d[1];if(h===-1/0||y===1/0)return[a,f];if(h===y)return[h];var m=Math.max(t,2),g=l(new r.default(y).sub(h).div(m-1),p,0),v=c(i.default.rangeStep(new r.default(h),new r.default(y).sub(new r.default(.99).mul(g)),g)).concat([y]);return a>f?(0,o.reverse)(v):v});t.getTickValuesFixedDomain=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(214))&&r.__esModule?r:{default:r},i=n(215);var a={rangeStep:function(e,t,n){for(var r=new o.default(e),i=[];r.lt(t);)i.push(r.toNumber()),r=r.add(n);return i},getDigitCount:function(e){return 0===e?1:Math.floor(new o.default(e).abs().log(10).toNumber())+1},interpolateNumber:(0,i.curry)(function(e,t,n){var r=+e;return r+n*(+t-r)}),uninterpolateNumber:(0,i.curry)(function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)}),uninterpolateTruncation:(0,i.curry)(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})};t.default=a},function(e,t,n){var r=n(92);e.exports=function(e,t){var n;return r(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}},function(e,t){e.exports=function(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(e,t,n){var r=n(92);e.exports=function(e,t){var n=!0;return r(e,function(e,r,o){return n=!!t(e,r,o)}),n}},function(e,t,n){var r=n(205);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(216);function o(e,t,n){var i=e;return function(e,t){var n=[],o="string"==typeof t?new RegExp("\\b("+t+")\\("):t;do{var i=o.exec(e);if(!i)return n;if(void 0===i[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=i[1],c=i.index,u=r("(",")",e.substring(c));if(!u||u.start!==i[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:u,functionIdentifier:a}),e=u.post}while(o.test(e));return n}(e,t).reduce(function(e,r){return e.replace(r.functionIdentifier+"("+r.matches.body+")",function(e,t,n,r,i){return n(o(e,i,n),t,r)}(r.matches.body,r.functionIdentifier,n,i,t))},e)}e.exports=o},function(e,t,n){var r=n(532);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],o=this.value,i=0;i<o.length;i++)1===o[i].type||3===o[i].type?r.push({value:3===o[i].type?o[i].show:o[i].value,type:1}):13===o[i].type?r.push({value:o[i].show,type:1}):0===o[i].type?r[r.length-1]={value:o[i].show+("-"!=o[i].show?"(":"")+r[r.length-1].value+("-"!=o[i].show?")":""),type:0}:7===o[i].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+o[i].show,type:7}:10===o[i].type?(e=r.pop(),t=r.pop(),"P"===o[i].show||"C"===o[i].show?r.push({value:"<sup>"+t.value+"</sup>"+o[i].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+"<sup>"+e.value+"</sup>",type:1})):2===o[i].type||9===o[i].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+o[i].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:o[i].type})):12===o[i].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:o[i].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},function(e,t,n){var r=n(533);r.prototype.postfixEval=function(e){"use strict";(e=e||{}).PI=Math.PI,e.E=Math.E;for(var t,n,o,i=[],a=this.value,c=void 0!==e.n,u=0;u<a.length;u++)1===a[u].type?i.push({value:a[u].value,type:1}):3===a[u].type?i.push({value:e[a[u].value],type:1}):0===a[u].type?void 0===i[i.length-1].type?i[i.length-1].value.push(a[u]):i[i.length-1].value=a[u].value(i[i.length-1].value):7===a[u].type?void 0===i[i.length-1].type?i[i.length-1].value.push(a[u]):i[i.length-1].value=a[u].value(i[i.length-1].value):8===a[u].type?(t=i.pop(),n=i.pop(),i.push({type:1,value:a[u].value(n.value,t.value)})):10===a[u].type?(t=i.pop(),void 0===(n=i.pop()).type?(n.value=n.concat(t),n.value.push(a[u]),i.push(n)):void 0===t.type?(t.unshift(n),t.push(a[u]),i.push(t)):i.push({type:1,value:a[u].value(n.value,t.value)})):2===a[u].type||9===a[u].type?(t=i.pop(),void 0===(n=i.pop()).type?(console.log(n),(n=n.concat(t)).push(a[u]),i.push(n)):void 0===t.type?(t.unshift(n),t.push(a[u]),i.push(t)):i.push({type:1,value:a[u].value(n.value,t.value)})):12===a[u].type?(void 0!==(t=i.pop()).type&&(t=[t]),n=i.pop(),o=i.pop(),i.push({type:1,value:a[u].value(o.value,n.value,new r(t))})):13===a[u].type&&(c?i.push({value:e[a[u].value],type:3}):i.push([a[u]]));if(i.length>1)throw new r.exception("Uncaught Syntax error");return i[0].value>1e15?"Infinity":parseFloat(i[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0===n?void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)},e.exports=r},function(e,t,n){var r=n(534);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,o,i,a=[],c=[{value:"(",type:4,pre:0}],u=this.value,s=1;s<u.length;s++)if(1===u[s].type||3===u[s].type||13===u[s].type)1===u[s].type&&(u[s].value=Number(u[s].value)),a.push(u[s]);else if(4===u[s].type)c.push(u[s]);else if(5===u[s].type)for(;4!==(t=c.pop()).type;)a.push(t);else if(11===u[s].type){for(;4!==(t=c.pop()).type;)a.push(t);c.push(t)}else{o=(e=u[s]).pre,n=(i=c[c.length-1]).pre;var l="Math.pow"==i.value&&"Math.pow"==e.value;if(o>n)c.push(e);else{for(;n>=o&&!l||l&&o<n;)t=c.pop(),i=c[c.length-1],a.push(t),n=i.pre,l="Math.pow"==e.value&&"Math.pow"==i.value;c.push(e)}}return new r(a)},e.exports=r},function(e,t,n){var r=n(535);function o(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}var a=["sin","cos","tan","pi","(",")","P","C","asin","acos","atan","7","8","9","int","cosh","acosh","ln","^","root","4","5","6","/","!","tanh","atanh","Mod","1","2","3","*","sinh","asinh","e","log","0",".","+","-",",","Sigma","n","Pi","pow"],c=["sin","cos","tan","&pi;","(",")","P","C","asin","acos","atan","7","8","9","Int","cosh","acosh"," ln","^","root","4","5","6","&divide;","!","tanh","atanh"," Mod ","1","2","3","&times;","sinh","asinh","e"," log","0",".","+","-",",","&Sigma;","n","&Pi;","pow"],u=[r.math.sin,r.math.cos,r.math.tan,"PI","(",")",r.math.P,r.math.C,r.math.asin,r.math.acos,r.math.atan,"7","8","9",Math.floor,r.math.cosh,r.math.acosh,Math.log,Math.pow,Math.sqrt,"4","5","6",r.math.div,r.math.fact,r.math.tanh,r.math.atanh,r.math.mod,"1","2","3",r.math.mul,r.math.sinh,r.math.asinh,"E",r.math.log,"0",".",r.math.add,r.math.sub,",",r.math.sigma,"n",r.math.Pi,Math.pow],s={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0},l=[0,0,0,3,4,5,10,10,0,0,0,1,1,1,0,0,0,0,10,0,1,1,1,2,7,0,0,2,1,1,1,2,0,0,3,0,1,6,9,9,11,12,13,12,8],f={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0},p={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},d={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},h={},m={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},g={1:!0},v=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function b(e,t,n,r){for(var o=0;o<r;o++)if(e[n+o]!==t[o])return!1;return!0}r.addToken=function(e){for(i=0;i<e.length;i++){x=e[i].token.length;var t=-1;if(x<v.length)for(y=0;y<v[x].length;y++)if(e[i].token===v[x][y]){t=a.indexOf(v[x][y]);break}-1===t?(a.push(e[i].token),l.push(e[i].type),v.length<=e[i].token.length&&(v[e[i].token.length]=[]),v[e[i].token.length].push(e[i].token),u.push(e[i].value),c.push(e[i].show)):(a[t]=e[i].token,l[t]=e[i].type,u[t]=e[i].value,c[t]=e[i].show)}},r.lex=function(e,t){"use strict";var n,i,y,w,x=[{type:4,value:"(",show:"(",pre:0}],_=[],O=e,E=0,k=f,S=0,T=h,A="";void 0!==t&&r.addToken(t);var j={};for(i=0;i<O.length;i++)if(" "!=O[i]){n="";e:for(y=O.length-i>v.length-2?v.length-1:O.length-i;y>0;y--)for(w=0;w<v[y].length;w++)if(b(O,v[y][w],i,y)){n=v[y][w];break e}if(i+=n.length-1,""===n)throw new r.exception("Can't understand after "+O.slice(i));var P=a.indexOf(n),C=n,M=l[P],N=u[P],I=s[M],R=c[P],D=x[x.length-1];for(L=_.length;L--;)if(0===_[L]&&-1!==[0,2,3,5,9,11,12,13].indexOf(M)){if(!0!==k[M])throw new r.exception(n+" is not allowed after "+A);x.push({value:")",type:5,pre:0,show:")"}),k=p,T=m,o(_,-1).pop()}if(!0!==k[M])throw new r.exception(n+" is not allowed after "+A);if(!0===T[M]&&(M=2,N=r.math.mul,R="&times;",I=3,i-=n.length),j={value:N,type:M,pre:I,show:R},0===M)k=f,T=h,o(_,2).push(2),x.push(j),x.push({value:"(",type:4,pre:0,show:"("});else if(1===M)1===D.type?(D.value+=N,o(_,1)):x.push(j),k=p,T=d;else if(2===M)k=f,T=h,o(_,2),x.push(j);else if(3===M)x.push(j),k=p,T=m;else if(4===M)E+=_.length,_=[],S++,k=f,T=h,x.push(j);else if(5===M){if(!S)throw new r.exception("Closing parenthesis are more than opening one, wait What!!!");for(;E--;)x.push({value:")",type:5,pre:0,show:")"});E=0,S--,k=p,T=m,x.push(j)}else if(6===M){if(D.hasDec)throw new r.exception("Two decimals are not allowed in one number");1!==D.type&&(D={value:0,type:1,pre:0},x.push(D),o(_,-1)),k=g,o(_,1),T=h,D.value+=N,D.hasDec=!0}else 7===M&&(k=p,T=m,o(_,1),x.push(j));8===M?(k=f,T=h,o(_,4).push(4),x.push(j),x.push({value:"(",type:4,pre:0,show:"("})):9===M?(9===D.type?D.value===r.math.add?(D.value=N,D.show=R,o(_,1)):D.value===r.math.sub&&"-"===R&&(D.value=r.math.add,D.show="+",o(_,1)):5!==D.type&&7!==D.type&&1!==D.type&&3!==D.type&&13!==D.type?"-"===C&&(k=f,T=h,o(_,2).push(2),x.push({value:r.math.changeSign,type:0,pre:21,show:"-"}),x.push({value:"(",type:4,pre:0,show:"("})):(x.push(j),o(_,2)),k=f,T=h):10===M?(k=f,T=h,o(_,2),x.push(j)):11===M?(k=f,T=h,x.push(j)):12===M?(k=f,T=h,o(_,6).push(6),x.push(j),x.push({value:"(",type:4,pre:0})):13===M&&(k=p,T=m,x.push(j)),o(_,-1),A=n}for(var L=_.length;L--;)0===_[L]&&(x.push({value:")",show:")",type:5,pre:3}),o(_,-1).pop());if(!0!==k[5])throw new r.exception("complete the expression");for(;S--;)x.push({value:")",show:")",type:5,pre:3});return x.push({type:5,value:")",show:")",pre:0}),new r(x)},e.exports=r},function(e,t){var n=function(e){this.value=e};n.math={isDegree:!0,acos:function(e){return n.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return n.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return n.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var r=1,o=e-t,i=t;i<o&&(i=o,o=t);for(var a=i+1;a<=e;a++)r*=a;return r/n.math.fact(o)},changeSign:function(e){return-e},cos:function(e){return n.math.isDegree&&(e=n.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!=0)return"NAN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,o=e;o<=t;o++)r*=Number(n.postfixEval({n:o}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,o=e;o<=t;o++)r+=Number(n.postfixEval({n:o}));return r},sin:function(e){return n.math.isDegree&&(e=n.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return n.math.isDegree&&(e=n.math.toRadian(e)),Math.tan(e)},tanh:function(e){return n.sinha(e)/n.cosha(e)},toRadian:function(e){return e*Math.PI/180}},n.exception=function(e){this.message=e},e.exports=n},function(e,t,n){var r=n(33),o=n(53),i=n(90);e.exports=function(e){return function(t,n,a){var c=Object(t);if(!o(t)){var u=r(n,3);t=i(t),n=function(e){return u(c[e],e,c)}}var s=e(t,n,a);return s>-1?c[u?t[s]:s]:void 0}}},function(e,t,n){var r=n(202),o=n(33),i=n(538),a=Math.max;e.exports=function(e,t,n){var c=null==e?0:e.length;if(!c)return-1;var u=null==n?0:i(n);return u<0&&(u=a(c+u,0)),r(e,o(t,3),u)}},function(e,t,n){var r=n(217);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(540),o=n(93),i=n(217);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,o,i){for(var a=-1,c=r(n((t-e)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=e,e+=o;return u}},function(e,t,n){var r=n(19),o=n(542),i=n(218),a="Expected a function",c=Math.max,u=Math.min;e.exports=function(e,t,n){var s,l,f,p,d,h,y=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=s,r=l;return s=l=void 0,y=t,p=e.apply(r,n)}function w(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-y>=f}function x(){var e=o();if(w(e))return _(e);d=setTimeout(x,function(e){var n=t-(e-h);return g?u(n,f-(e-y)):n}(e))}function _(e){return d=void 0,v&&s?b(e):(s=l=void 0,p)}function O(){var e=o(),n=w(e);if(s=arguments,l=this,h=e,n){if(void 0===d)return function(e){return y=e,d=setTimeout(x,t),m?b(e):p}(h);if(g)return clearTimeout(d),d=setTimeout(x,t),b(h)}return void 0===d&&(d=setTimeout(x,t)),p}return t=i(t)||0,r(n)&&(m=!!n.leading,f=(g="maxWait"in n)?c(i(n.maxWait)||0,t):f,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==d&&clearTimeout(d),y=0,s=h=l=d=void 0},O.flush=function(){return void 0===d?p:_(o())},O}},function(e,t,n){var r=n(28);e.exports=function(){return r.Date.now()}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=n(547);function o(t,n){return void 0===n&&(n="utf8"),e.isBuffer(t)?a(t.toString("base64")):a(e.from(t,n).toString("base64"))}function i(e){return e=e.toString(),r.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function a(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var c=o;c.encode=o,c.decode=function(t,n){return void 0===n&&(n="utf8"),e.from(i(t),"base64").toString(n)},c.toBase64=i,c.fromBase64=a,c.toBuffer=function(t){return e.from(i(t),"base64")},t.default=c}).call(this,n(219).Buffer)},function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=s(e),r=n[0],a=n[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,r,a)),u=0,l=a>0?r-4:r,f=0;f<l;f+=4)t=o[e.charCodeAt(f)]<<18|o[e.charCodeAt(f+1)]<<12|o[e.charCodeAt(f+2)]<<6|o[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=o[e.charCodeAt(f)]<<2|o[e.charCodeAt(f+1)]>>4,c[u++]=255&t);1===a&&(t=o[e.charCodeAt(f)]<<10|o[e.charCodeAt(f+1)]<<4|o[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,c=n-o;a<c;a+=16383)i.push(l(e,a,a+16383>c?c:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c<u;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function s(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 l(e,t,n){for(var o,i,a=[],c=t;c<n;c+=3)o=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(255&e[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,c=8*o-r-1,u=(1<<c)-1,s=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=c;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=s}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,c,u,s=8*i-o-1,l=(1<<s)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(t*u-1)*Math.pow(2,o),a+=f):(c=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&c,d+=h,c/=256,o-=8);for(a=a<<o|c,s+=o;s>0;e[n+d]=255&a,d+=h,a/=256,s-=8);e[n+d-h]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n=t.length,r=n%4;if(!r)return t;var o=n,i=4-r,a=n+i,c=e.alloc(a);for(c.write(t);i--;)c.write("=",o++);return c.toString()}}).call(this,n(219).Buffer)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return d});var r=n(1),o=n.n(r),i=n(56),a=n.n(i),c=n(75),u=n(24),s=n(21),l=n.n(s),f=n(96);function p(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n# File Uploader Inspection Test\n\n## Expected Behavior:\n- There is a File Upload icon, but no "Choose File" box\n- The file upload icon has a title of "FileUploader" (mouse over to see it)\n- Clicking the File Upload icon opens a file upload dialogue\n- The file upload dialogue displays that only .json files are valid\n- Selecting a valid .json file results in the JSON content getting printed below the uploader\n- That JSON content is pretty printed with spaces (verifies that the result was provided as JSON, not as a string)\n- Selecting an invalid file results in an error being thrown to the console\n- It\'s possible to navigate to the file uploader via the keyboard\n      ']);return p=function(){return e},e}class d extends o.a.Component{constructor(){var e,t,n;super(...arguments),n={json:null},(t="state")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}render(){const e=l()(this.state.json,{space:4});return o.a.createElement("div",null,o.a.createElement(a.a,{source:Object(u.a)(p())}),o.a.createElement("h2",null,"The File Uploader"),o.a.createElement(f.a,{onUpload:e=>{this.setState({json:e})},title:"FileUploader"},o.a.createElement(c.b,null)),o.a.createElement("h2",null,"The Uploaded File"),this.state.json?o.a.createElement("pre",{style:{backgroundColor:"#efefef"}},e):o.a.createElement("p",null,"No JSON uploaded."))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return f});var r=n(1),o=n.n(r),i=n(3),a=n(100),c=n(2),u=n(45),s=n(25),l=n(99);class f extends o.a.Component{intervals(){const e=+new Date(2017,0),t=+new Date(2017,6),n=i.j.range(e,t),r=[];for(let e=0;e<n.length-1;e++)r.push({startTimeMs:+n[e],endTimeMs:+n[e+1]});return r}timelineCred(){const e=this.intervals(),t=[["starter",e=>Math.max(0,20-e)],["steady",e=>4],["finisher",e=>e*e/20],["latecomer",e=>Math.max(0,e-20)]],n=new c.b,r=new Map;for(const[o,i]of t){const t=c.c.fromParts(["foo",o]);n.addNode({address:t,description:"[@".concat(o,"](https://github.com/").concat(o,")"),timestampMs:null});const a=e.map((e,t)=>i(t));r.set(t,a)}const o={intervals:e,addressToCred:r},i={alpha:.05,intervalDecay:.5,weights:Object(s.b)()};return new u.a(n,o,i,l.a)}render(){const e=c.c.fromParts(["foo"]);return o.a.createElement(a.a,{timelineCred:this.timelineCred(),selectedNodeFilter:e})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(22),a=n.n(i);n(164);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}var u=n(12),s=n(18),l=n(20),f=n.n(l),p=n(71),d=n(70),h=n(2),y=n(4),m=n(15);class g extends o.a.PureComponent{constructor(){super(),this.state={expanded:!1}}render(){const{depth:e,indent:t,description:n,cred:r,children:i,showPadding:a,multiuseColumn:c}=this.props,{expanded:u}=this.state,s="hsla(150,100%,28%,".concat(1-.9**e,")"),l=e=>"linear-gradient(to top, ".concat(e,", ").concat(e,")"),f=l(s),p=l("#D8E1E8"),d="".concat(f,", ").concat(p);return o.a.createElement(o.a.Fragment,null,a&&o.a.createElement(v,{backgroundColor:s}),o.a.createElement("tr",{key:"self",style:{backgroundImage:d},className:Object(m.css)(b.hoverHighlight)},o.a.createElement("td",{style:{display:"flex",alignItems:"flex-start"}},o.a.createElement("button",{style:{marginRight:5,marginLeft:15*t+5},onClick:()=>{this.setState(e=>{let{expanded:t}=e;return{expanded:!t}})}},u?"−":"+"),n),o.a.createElement("td",{style:{textAlign:"right"}},c),o.a.createElement("td",{style:{textAlign:"right"}},o.a.createElement("span",{style:{marginRight:5}},function(e){return e.toFixed(2)}(r)))),u&&i,a&&o.a.createElement(v,{backgroundColor:s}))}}function v(e){return o.a.createElement("tr",{style:{height:12,backgroundColor:e.backgroundColor}},o.a.createElement("td",null),o.a.createElement("td",null),o.a.createElement("td",null))}const b=m.StyleSheet.create({hoverHighlight:{backgroundSize:"100% 100%, 0 0",":hover":{backgroundSize:"100% 100%, 100% 100%"},":focus-within":{backgroundSize:"100% 100%, 100% 100%"}}});var w=n(29),x=n(56),_=n.n(x);function O(e,t){const n=t.node(e);if(null==n)throw new Error("No node for ".concat(e));return o.a.createElement(_.a,{renderers:{paragraph:"span"},source:n.description})}function E(e,t,n){const r=function(){for(const t of n){const{edgeTypes:n}=t;for(const t of n)if(h.a.hasPrefix(e,t.prefix))return t}throw Error("No matching type for ".concat(e))}();return"FORWARD"===t?r.forwardName:r.backwardName}function k(e){let{children:t}=e;return o.a.createElement("span",null,o.a.createElement("span",{style:{textTransform:"uppercase",fontWeight:700,fontSize:"smaller"}},t))}class S extends o.a.PureComponent{render(){const{depth:e,node:t,sharedProps:n,connections:r}=this.props,{maxEntriesPerList:i}=n;return o.a.createElement(o.a.Fragment,null,r.slice(0,i).map(r=>o.a.createElement(T,{key:JSON.stringify(r.connection.adjacency),depth:e,target:t,scoredConnection:r,sharedProps:n})))}}class T extends o.a.PureComponent{render(){const{sharedProps:e,target:t,depth:n,scoredConnection:{connection:r,source:i,connectionScore:a}}=this.props,{pnd:c,declarations:u,graph:s}=e,{score:l}=y.a(c.get(t)),f=(100*(a/l)).toFixed(2)+"%",p=o.a.createElement(A,{connection:r,declarations:u,graph:s});return o.a.createElement(g,{indent:2,depth:n,description:p,multiuseColumn:f,showPadding:!1,cred:a},o.a.createElement(G,{depth:n+1,showPadding:!0,node:i,sharedProps:e}))}}class A extends o.a.PureComponent{render(){const{connection:e,declarations:t,graph:n}=this.props,{adjacency:r}=e;switch(r.type){case"SYNTHETIC_LOOP":return o.a.createElement(k,null,"synthetic loop");case"IN_EDGE":return o.a.createElement("span",null,o.a.createElement(k,null,E(r.edge.address,"BACKWARD",t))," ",o.a.createElement("span",null,O(r.edge.src,n)));case"OUT_EDGE":return o.a.createElement("span",null,o.a.createElement(k,null,E(r.edge.address,"FORWARD",t))," ",o.a.createElement("span",null,O(r.edge.dst,n)));default:throw new Error(r.type)}}}var j=n(7),P=n.n(j),C=n(21),M=n.n(C),N=n(16),I=n(61);const R=P()({name:"node",pluralName:"nodes",prefix:h.c.empty,defaultWeight:1,description:""}),D=P()({forwardName:"has edge to",backwardName:"has edge from",defaultWeight:{forwards:1,backwards:1},prefix:h.a.empty,description:""});function L(e,t,n){const r=new I.a;for(const e of n)r.add(e.prefix,e);const o=[],i=new Map,a=new Map;for(const t of e){let e;switch(t.connection.adjacency.type){case"SYNTHETIC_LOOP":o.push(t);continue;case"IN_EDGE":e=i;break;case"OUT_EDGE":e=a;break;default:throw new Error(t.connection.adjacency.type)}const n=t.connection.adjacency.edge,c=y.c(r.getLast(n.address),D);N.d(e,c,t)}function c(e,n){const r=function(e,t){const n=new I.b;for(const e of t)n.add(e.prefix,e);const r=new Map;for(const t of e){const e=y.c(n.getLast(t.source),R);N.d(r,e,t)}const o=[];for(const[e,t]of r){const n=t.map(e=>e.connectionScore),r={nodeType:e,connections:f()(t,e=>-e.connectionScore),summary:{size:t.length,score:n.reduce((e,t)=>e+t)}};o.push(r)}return f()(o,e=>-e.summary.score)}(n,t),o=r.map(e=>e.summary.score).reduce((e,t)=>e+t);return{connectionType:e,summary:{size:n.length,score:o},nodeAggregations:r}}const u=[];if(o.length>0){const e={type:"SYNTHETIC_LOOP"};u.push(c(e,o))}for(const[e,t]of i){const n={type:"IN_EDGE",edgeType:e};u.push(c(n,t))}for(const[e,t]of a){const n={type:"OUT_EDGE",edgeType:e};u.push(c(n,t))}return f()(u,e=>-e.summary.score)}function F(e,t,n){return function(e){const t=[];for(const n of e){const{connectionType:e,nodeAggregations:r}=n;for(const n of r){const{summary:r,connections:o,nodeType:i}=n,a={summary:r,connections:o,nodeType:i,connectionType:e};t.push(a)}}return f()(t,e=>-e.summary.score)}(L(e,t,n))}function U(e){const t={nodePrefix:e.nodeType.prefix};switch(e.connectionType.type){case"SYNTHETIC_LOOP":t.connectionType={type:"SYNTHETIC_LOOP"};break;case"IN_EDGE":t.connectionType={type:"IN_EDGE",edgePrefix:e.connectionType.edgeType.prefix};break;case"OUT_EDGE":t.connectionType={type:"OUT_EDGE",edgePrefix:e.connectionType.edgeType.prefix};break;default:throw new Error(e.connectionType.type)}return M()(t)}class B extends o.a.PureComponent{render(){const{depth:e,node:t,sharedProps:n}=this.props,{pnd:r,declarations:i}=n,a=[].concat(...i.map(e=>e.nodeTypes)),c=[].concat(...i.map(e=>e.edgeTypes)),{scoredConnections:u}=y.a(r.get(t)),s=F(u,a,c);return o.a.createElement(o.a.Fragment,null,s.map(r=>o.a.createElement(z,{key:U(r),depth:e,target:t,sharedProps:n,aggregation:r})))}}class z extends o.a.PureComponent{render(){const{sharedProps:e,target:t,depth:n,aggregation:r}=this.props,{pnd:i}=e,a=r.summary.score,{score:c}=y.a(i.get(t)),u=(100*(a/c)).toFixed(2)+"%";return o.a.createElement(g,{depth:n,indent:1,showPadding:!1,multiuseColumn:u,cred:a,description:o.a.createElement(W,{aggregation:r})},o.a.createElement(S,{key:"children",depth:n,node:t,connections:r.connections,sharedProps:e}))}}class W extends o.a.PureComponent{render(){const{aggregation:e}=this.props,{connectionType:t,summary:n,nodeType:r}=e;const i=1===n.size?r.name:r.pluralName;return o.a.createElement("span",null,o.a.createElement(k,null,function(){switch(t.type){case"SYNTHETIC_LOOP":return"synthetic loop";case"IN_EDGE":return t.edgeType.backwardName;case"OUT_EDGE":return t.edgeType.forwardName;default:throw new Error(t.type)}}()),o.a.createElement("span",null," ",n.size," "),o.a.createElement("span",{style:{textTransform:"lowercase"}},i))}}class H extends o.a.PureComponent{render(){const{nodes:e,sharedProps:t}=this.props,{pnd:n,maxEntriesPerList:r}=t;return o.a.createElement(o.a.Fragment,null,f()(e,e=>-y.a(n.get(e)).score,e=>e).slice(0,r).map(e=>o.a.createElement(G,{showPadding:!1,depth:0,node:e,key:e,sharedProps:t})))}}class G extends o.a.PureComponent{render(){const{depth:e,node:t,sharedProps:n,showPadding:r}=this.props,{pnd:i,graph:a,onManualWeightsChange:c,manualWeights:u}=n,{score:s}=y.a(i.get(t)),l=y.c(u.get(t),1),f=o.a.createElement("label",null,o.a.createElement("span",null,Object(w.d)(l)),o.a.createElement("input",{type:"range",min:w.b,max:w.a,step:1,value:Object(w.f)(l),onChange:e=>{const n=Object(w.e)(e.target.valueAsNumber);c(t,n)}})),p=o.a.createElement("span",null,O(t,a));return o.a.createElement(g,{depth:e,indent:0,showPadding:r,description:p,multiuseColumn:f,cred:s},o.a.createElement(B,{depth:e,node:t,sharedProps:n}))}}class q extends o.a.PureComponent{constructor(e){super();const{defaultNodeType:t}=e,n=null!=t?t.prefix:h.c.empty;this.state={selectedNodeTypePrefix:n,showWeightConfig:!1}}renderConfigurationRow(){const{showWeightConfig:e}=this.state;return o.a.createElement("div",{style:{display:"flex"}},this.renderFilterSelect(),o.a.createElement("span",{style:{flexGrow:1}}),this.props.weightFileManager,o.a.createElement("button",{onClick:()=>{this.setState(e=>{let{showWeightConfig:t}=e;return{showWeightConfig:!t}})}},e?"Hide weight configuration":"Show weight configuration"))}render(){const{showWeightConfig:e}=this.state;return o.a.createElement("div",{style:{marginTop:10}},this.renderConfigurationRow(),e&&this.props.weightConfig,this.renderTable())}renderFilterSelect(){const{pnd:e,declarations:t}=this.props;if(null==e||null==t)throw new Error("Impossible.");return o.a.createElement("label",null,o.a.createElement("span",null,"Filter by node type: "),o.a.createElement("select",{value:this.state.selectedNodeTypePrefix,onChange:e=>this.setState({selectedNodeTypePrefix:e.target.value})},o.a.createElement("option",{value:h.c.empty},"Show all"),f()(t,e=>e.name).map(function(e){return[o.a.createElement("option",{key:e.nodePrefix,value:e.nodePrefix,style:{fontWeight:"bold"}},e.name),...e.nodeTypes.map(e=>o.a.createElement("option",{key:e.prefix,value:e.prefix}," "+e.name))]})))}renderTable(){const{pnd:e,declarations:t,maxEntriesPerList:n,manualWeights:r,onManualWeightsChange:i,graph:a}=this.props;if(null==e||null==t||null==n)throw new Error("Impossible.");const c={pnd:e,declarations:t,maxEntriesPerList:n,manualWeights:r,onManualWeightsChange:i,graph:a};return o.a.createElement("table",{style:{borderCollapse:"collapse",marginTop:10,width:"calc(100% - 1px)"}},o.a.createElement("thead",null,o.a.createElement("tr",null,o.a.createElement("th",{style:{textAlign:"left"}},"Description"),o.a.createElement("th",{style:{textAlign:"right"}}),o.a.createElement("th",{style:{textAlign:"right"}},"Cred"))),o.a.createElement("tbody",null,o.a.createElement(H,{sharedProps:c,nodes:Array.from(e.keys()).filter(e=>h.c.hasPrefix(e,this.state.selectedNodeTypePrefix))})))}}var V=n(25),Y=n(9),$=n(76),X=(n(23),n(27)),K=(n(73),n(57));const Q=.001,J=255,Z=1e-7;var ee=n(41);function te(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 ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function re(e,t,n){const r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(n,!0).forEach(function(t){ne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},{verbose:!1,selfLoopWeight:Q,convergenceThreshold:Z,maxIterations:J,totalScore:1e3,totalScoreNodePrefix:h.c.empty},{},n||{}),o=Object(X.b)(e,t,r.selfLoopWeight),i=Object(X.c)(o),a={chain:i.chain,alpha:0,pi0:Object(ee.b)(i.chain.length),seed:Object(ee.b)(i.chain.length)},c={verbose:r.verbose,convergenceThreshold:r.convergenceThreshold,maxIterations:r.maxIterations,yieldAfterMs:30},u=await Object(K.a)(a,c);return function(e,t){return N.c(t,(t,n)=>{return{score:y.a(e.get(t)),scoredConnections:f()(n.map(n=>{const r=Object(X.a)(t,n.adjacency),o=y.a(e.get(r));return{connection:n,source:r,connectionScore:n.weight*o}}),e=>-e.connectionScore,e=>e.connection.adjacency.type,e=>{switch(e.connection.adjacency.type){case"IN_EDGE":case"OUT_EDGE":return e.connection.adjacency.edge.address;case"SYNTHETIC_LOOP":return"";default:throw new Error(e.connection.adjacency.type)}})}})}(function(e,t,n){if(t<=0)throw new Error("Invalid argument: totalScore must be >= 0");let r=0;for(const[t,o]of e)h.c.hasPrefix(t,n)&&(r+=o);if(0===r)throw new Error("Tried to normalize based on nodes with no score. This probably means that there were no nodes matching prefix: "+h.c.toString(n));const o=t/r,i=new Map;for(const[t,n]of e)i.set(t,n*o);return i}(Object(X.d)(i.nodeOrder,u.pi),r.totalScore,r.totalScoreNodePrefix),o)}var oe=n(62);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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(n,!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){return new se(e,t,le,re)}class se{constructor(e,t,n,r){ce(this,"getState",void 0),ce(this,"setState",void 0),ce(this,"doLoadGraph",void 0),ce(this,"pagerank",void 0),this.getState=e,this.setState=t,this.doLoadGraph=n,this.pagerank=r}async loadGraph(e){const t=this.getState();if("READY_TO_LOAD_GRAPH"!==t.type)throw new Error("Tried to loadGraph in incorrect state");const{projectId:n}=t,r=ae({},t,{loading:"LOADING"});let o;this.setState(r);let i=!0;try{o={type:"READY_TO_RUN_PAGERANK",graph:await this.doLoadGraph(e,n),projectId:n,loading:"NOT_LOADING"}}catch(e){console.error(e),o=ae({},r,{loading:"FAILED"}),i=!1}return!!a()(this.getState(),r)&&(this.setState(o),i)}async runPagerank(e,t,n){const r=this.getState();if("READY_TO_RUN_PAGERANK"!==r.type&&"PAGERANK_EVALUATED"!==r.type)throw new Error("Tried to runPagerank in incorrect state");const o=(r.type,ae({},r,{loading:"LOADING"}));this.setState(o);const i=r.graph;let c;try{c={type:"PAGERANK_EVALUATED",pagerankNodeDecomposition:await this.pagerank(i,function(e,t){const n=Object(oe.b)(t.nodeTypes,e),r=Object(oe.a)(t.edgeTypes,e);return function(e){const t=n(e.src),o=n(e.dst),{forwards:i,backwards:a}=r(e.address);return{forwards:o*i,backwards:t*a}}}(e,t),{verbose:!0,totalScoreNodePrefix:n}),graph:r.graph,projectId:r.projectId,loading:"NOT_LOADING"}}catch(e){console.error(e),r.type,c=ae({},r,{loading:"FAILED"})}a()(this.getState(),o)&&this.setState(c)}async loadGraphAndRunPagerank(e,t,n,r){const o=this.getState().type;switch(o){case"READY_TO_LOAD_GRAPH":await this.loadGraph(e)&&await this.runPagerank(t,n,r);break;case"READY_TO_RUN_PAGERANK":case"PAGERANK_EVALUATED":await this.runPagerank(t,n,r);break;default:throw new Error(o)}}}async function le(e,t){const n=await Object($.b)(e,t);if("SUCCESS"!==n.type)throw new Error(n);return n.timelineCred.graph()}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pe="https://discourse.sourcecred.io/t/a-gentle-introduction-to-cred/20",de="https://docs.google.com/forms/d/e/1FAIpQLSdwxqFJNQIVS3EqISJ0EUcr1aixARDVA51DMURWSYgORFPHcQ/viewform";class he extends o.a.Component{render(){const e=(t=ue,class extends o.a.Component{constructor(e){var n;super(e),fe(this,"stateTransitionMachine",void 0),this.state={appState:(n=this.props.projectId,{type:"READY_TO_LOAD_GRAPH",projectId:n,loading:"NOT_LOADING"}),weights:Object(V.b)()},this.stateTransitionMachine=t(()=>this.state.appState,e=>this.setState({appState:e}))}render(){const{appState:e}=this.state,t=o.a.createElement(p.a,{declarations:[s.a],nodeTypeWeights:this.state.weights.nodeTypeWeights,edgeTypeWeights:this.state.weights.edgeTypeWeights,onNodeWeightChange:(e,t)=>{this.setState(n=>{let{weights:r}=n;return r.nodeTypeWeights.set(e,t),{weights:r}})},onEdgeWeightChange:(e,t)=>{this.setState(n=>{let{weights:r}=n;return r.edgeTypeWeights.set(e,t),{weights:r}})}}),n=o.a.createElement(d.a,{weights:this.state.weights,onWeightsChange:e=>{this.setState({weights:e})}});let r;if("PAGERANK_EVALUATED"===e.type){const i=e.pagerankNodeDecomposition;r=o.a.createElement(q,{defaultNodeType:s.c,weightConfig:t,weightFileManager:n,manualWeights:this.state.weights.nodeManualWeights,declarations:[s.a],graph:e.graph,onManualWeightsChange:(e,t)=>this.setState(n=>{let{weights:r}=n;return r.nodeManualWeights.set(e,t),{weights:r}}),pnd:i,maxEntriesPerList:100})}return o.a.createElement("div",{style:{maxWidth:900,margin:"0 auto",padding:"0 10px"}},o.a.createElement("p",{style:{textAlign:"right"}},o.a.createElement(u.a,{href:pe},"what is this?"),(()=>o.a.createElement("span",{style:{display:"inline-block",width:12}}))(),o.a.createElement(u.a,{href:de},"feedback")),o.a.createElement("h2",null,"SourceCred Legacy Mode"),o.a.createElement("p",null,"Back to"," ",o.a.createElement(u.a,{to:"/timeline/".concat(this.props.projectId,"/")},"timeline mode")),o.a.createElement(ye,{projectId:this.props.projectId}),o.a.createElement("button",{disabled:"UNINITIALIZED"===e.type||"LOADING"===e.loading,onClick:()=>this.stateTransitionMachine.loadGraphAndRunPagerank(this.props.assets,this.state.weights,{nodeTypes:s.a.nodeTypes.slice(),edgeTypes:s.a.edgeTypes.slice()},Y.a.user)},"Analyze cred"),o.a.createElement(me,{appState:this.state.appState}),r)}});var t;return o.a.createElement(e,{projectId:this.props.projectId,assets:this.props.assets,localStore:he._LOCAL_STORE})}}fe(he,"_LOCAL_STORE",new class{constructor(e){var t,n,r;r=void 0,(n="_base")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._base=e}get(e,t){return this._validateKey(e),this._base.get(e,t)}set(e,t){return this._validateKey(e),this._validateValue(t),this._base.set(e,t)}del(e){return this._validateKey(e),this._base.del(e)}_validateKey(e){if("string"!=typeof e)throw new Error("bad key (".concat(typeof e,"): ").concat(e))}_validateValue(e){try{if(a()(e,JSON.parse(JSON.stringify(e))))return}catch(e){}throw new Error("bad value: ".concat(e))}}(new class{constructor(e){let{version:t,keyPrefix:n}=e;c(this,"version",void 0),c(this,"keyPrefix",void 0),this.version=t,this.keyPrefix=n}cacheKey(e){if(!e)throw new Error("Falsy key provided to cacheKey: "+e);return[this.keyPrefix,this.version,e].join(":")}get(e,t){if(!this.isEnabled())return t;try{const n=window.localStorage[this.cacheKey(e)];return n?JSON.parse(n):t}catch(e){return t}}set(e,t){if(!this.isEnabled())return;const n=JSON.stringify(t);window.localStorage[this.cacheKey(e)]=n}del(e){if(!this.isEnabled())return;const t=this.cacheKey(e);t in window.localStorage&&delete window.localStorage[t]}isEnabled(){const e=String(+new Date);try{window.sessionStorage[e]=e;const t=window.sessionStorage[e]===e;return window.sessionStorage.removeItem(e),t}catch(e){return!1}}}({version:"2",keyPrefix:"cred-explorer"})));class ye extends o.a.PureComponent{render(){return o.a.createElement("p",null,this.props.projectId)}}class me extends o.a.PureComponent{render(){return o.a.createElement("span",{style:{paddingLeft:10}},function(e){switch(e.type){case"READY_TO_LOAD_GRAPH":return{LOADING:"Loading graph...",NOT_LOADING:"Ready to load graph",FAILED:"Error while loading graph"}[e.loading];case"READY_TO_RUN_PAGERANK":return{LOADING:"Running PageRank...",NOT_LOADING:"Ready to run PageRank",FAILED:"Error while running PageRank"}[e.loading];case"PAGERANK_EVALUATED":return{LOADING:"Re-running PageRank...",NOT_LOADING:"",FAILED:"Error while running PageRank"}[e.loading];default:throw new Error(e.type)}}(this.props.appState))}}class ge extends o.a.Component{render(){return o.a.createElement(he,{assets:this.props.assets,projectId:this.props.projectId})}}function ve(e){return class extends o.a.Component{render(){return o.a.createElement(ge,{assets:this.props.assets,projectId:e})}}}n.d(t,"default",function(){return ve})},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(76);class a extends o.a.Component{render(){return o.a.createElement(i.a,{assets:this.props.assets,projectId:this.props.projectId,loader:i.b})}}function c(e){return class extends o.a.Component{render(){return o.a.createElement(a,{assets:this.props.assets,projectId:e})}}}n.d(t,"default",function(){return c})},,,function(e,t,n){n(261),e.exports=n(559)},,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(135),a=n.n(i),c=n(136),u=n.n(c),s=n(47),l=n(220),f=n(30),p=n(234),d=n(72);var h=n(233);const y=document.getElementById("root");if(null==y)throw new Error("Unable to find root element!");let m=y.dataset.initialRoot;null==m&&(console.error("Initial root unset (".concat(m,"): this should not happen! ")+'Falling back to ".".'),m=".");const g=Object(s.a)("".concat(window.location.pathname,"/").concat(m,"/")),v=Object(l.a)(u()(),g),b=Object(h.a)();a.a.hydrate(o.a.createElement(class extends o.a.Component{render(){const{routeData:e,history:t}=this.props;return o.a.createElement(f.d,{history:t,routes:Object(p.a)(e),onUpdate:function(){const t=this.state.location.pathname;document.title=Object(d.resolveTitleFromPath)(e,t)}})}},{routeData:b,history:v}),y);for(const e of document.querySelectorAll('link[rel="shortcut icon"]')){const t=e;t.href=t.href}}])});
  //# sourceMappingURL=main.80f8da4a.js.map