text: !function(){function t(t){return t.target}function e(t){return t.source}function n(t){for(var e=-1,n=t.length,r=[];n>++e;)r.push(t[e]);return r}function r(){}function i(t){return t}function o(){return!0}function a(t){return"function"==typeof t?t:function(){return t}}function u(t,e,n){return function(){var r=n.apply(e,arguments);return arguments.length?t:r}}function c(t){return null!=t&&!isNaN(t)}function s(t){return t.length}function l(t){return t.trim().replace(/\s+/g," ")}function f(t){return t.responseText}function h(t){return JSON.parse(t.responseText)}function d(t){var e=document.createRange();return e.selectNode(document.body),e.createContextualFragment(t.responseText)}function p(t){return t.responseXML}function g(){}function v(t){function e(){for(var e,r=n,i=-1,o=r.length;o>++i;)(e=r[i].on)&&e.apply(this,arguments);return t}var n=[],i=new r;return e.on=function(e,r){var o,a=i.get(e);return 2>arguments.length?a&&a.on:(a&&(a.on=null,n=n.slice(0,o=n.indexOf(a)).concat(n.slice(o+1)),i.remove(e)),r&&n.push(i.set(e,{on:r})),t)},e}function y(t,e){return e-(t?1+Math.floor(Math.log(t+Math.pow(10,1+Math.floor(Math.log(t)/Math.LN10)-e))/Math.LN10):1)}function m(t){return t+""}function _(t){return function(e){return 1-t(1-e)}}function b(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function x(t){return t*t}function w(t){return t*t*t}function E(t){return 1-Math.cos(t*dr/2)}function k(t){return Math.pow(2,10*(t-1))}function M(t){return 1-Math.sqrt(1-t*t)}function N(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function A(){d3.event.stopPropagation(),d3.event.preventDefault()}function C(){for(var t,e=d3.event;t=e.sourceEvent;)e=t;return e}function T(t){for(var e=new g,n=0,r=arguments.length;r>++n;)e[arguments[n]]=v(e);return e.of=function(n,r){return function(i){try{var o=i.sourceEvent=d3.event;i.target=t,d3.event=i,e[i.type].apply(n,r)}finally{d3.event=o}}},e}function S(t){var e,n,r,i=[t.a,t.b],o=[t.c,t.d],a=D(i),u=j(i,o),c=D(((e=o)[0]+=(r=-u)*(n=i)[0],e[1]+=r*n[1],e))||0;i[0]*o[1]<o[0]*i[1]&&(i[0]*=-1,i[1]*=-1,a*=-1,u*=-1),this.rotate=(a?Math.atan2(i[1],i[0]):Math.atan2(-o[0],o[1]))*vr,this.translate=[t.e,t.f],this.scale=[a,c],this.skew=c?Math.atan2(u,c)*vr:0}function j(t,e){return t[0]*e[0]+t[1]*e[1]}function D(t){var e=Math.sqrt(j(t,t));return e&&(t[0]/=e,t[1]/=e),e}function L(t){return"transform"==t?d3.interpolateTransform:d3.interpolate}function O(t,e){return e=e-(t=+t)?1/(e-t):0,function(n){return(n-t)*e}}function I(t,e){return e=e-(t=+t)?1/(e-t):0,function(n){return Math.max(0,Math.min(1,(n-t)*e))}}function R(){}function z(t,e,n){return new q(t,e,n)}function q(t,e,n){this.r=t,this.g=e,this.b=n}function F(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function P(t,e,n){var r,i,o,a=0,u=0,c=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(W(i[0]),W(i[1]),W(i[2]))}return(o=Ir.get(t))?e(o.r,o.g,o.b):(null!=t&&"#"===t.charAt(0)&&(4===t.length?(a=t.charAt(1),a+=a,u=t.charAt(2),u+=u,c=t.charAt(3),c+=c):7===t.length&&(a=t.substring(1,3),u=t.substring(3,5),c=t.substring(5,7)),a=parseInt(a,16),u=parseInt(u,16),c=parseInt(c,16)),e(a,u,c))}function B(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),u=a-o,c=(a+o)/2;return u?(i=.5>c?u/(a+o):u/(2-a-o),r=t==a?(e-n)/u+(n>e?6:0):e==a?(n-t)/u+2:(t-e)/u+4,r*=60):i=r=0,U(r,i,c)}function H(t,e,n){var r=nt((.4124564*(t=$(t))+.3575761*(e=$(e))+.1804375*(n=$(n)))/Fr),i=nt((.2126729*t+.7151522*e+.072175*n)/Pr);return K(116*i-16,500*(r-i),200*(i-nt((.0193339*t+.119192*e+.9503041*n)/Br)))}function $(t){return.04045>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)}function W(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function U(t,e,n){return new G(t,e,n)}function G(t,e,n){this.h=t,this.s=e,this.l=n}function V(t,e,n){function r(t){return Math.round(255*((e=t)>360?e-=360:0>e&&(e+=360),60>e?i+(o-i)*e/60:180>e?o:240>e?i+(o-i)*(240-e)/60:i));var e}var i,o;return 0>(t%=360)&&(t+=360),e=0>e?0:e>1?1:e,i=2*(n=0>n?0:n>1?1:n)-(o=.5>=n?n*(1+e):n+e-n*e),z(r(t+120),r(t),r(t-120))}function Y(t,e,n){return new X(t,e,n)}function X(t,e,n){this.h=t,this.c=e,this.l=n}function Z(t,e,n){return K(n,Math.cos(t*=gr)*e,Math.sin(t)*e)}function K(t,e,n){return new J(t,e,n)}function J(t,e,n){this.l=t,this.a=e,this.b=n}function Q(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return z(rt(3.2404542*(i=et(i)*Fr)-1.5371385*(r=et(r)*Pr)-.4985314*(o=et(o)*Br)),rt(-.969266*i+1.8760108*r+.041556*o),rt(.0556434*i-.2040259*r+1.0572252*o))}function tt(t,e,n){return Y(Math.atan2(n,e)/dr*180,Math.sqrt(e*e+n*n),t)}function et(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function nt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function rt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function it(t){return mr(t,Yr),t}function ot(t){return function(){return $r(t,this)}}function at(t){return function(){return Wr(t,this)}}function ut(t,e){return t=d3.ns.qualify(t),null==e?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof e?t.local?function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}:function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}:t.local?function(){this.setAttributeNS(t.space,t.local,e)}:function(){this.setAttribute(t,e)}}function ct(t){return RegExp("(?:^|\\s+)"+d3.requote(t)+"(?:\\s+|$)","g")}function st(t,e){var n=(t=t.trim().split(/\s+/).map(lt)).length;return"function"==typeof e?function(){for(var r=-1,i=e.apply(this,arguments);n>++r;)t[r](this,i)}:function(){for(var r=-1;n>++r;)t[r](this,e)}}function lt(t){var e=ct(t);return function(n,r){if(i=n.classList)return r?i.add(t):i.remove(t);var i=n.className,o=null!=i.baseVal,a=o?i.baseVal:i;r?(e.lastIndex=0,e.test(a)||(a=l(a+" "+t),o?i.baseVal=a:n.className=a)):a&&(a=l(a.replace(e," ")),o?i.baseVal=a:n.className=a)}}function ft(t,e,n){return null==e?function(){this.style.removeProperty(t)}:"function"==typeof e?function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}:function(){this.style.setProperty(t,e,n)}}function ht(t,e){return null==e?function(){delete this[t]}:"function"==typeof e?function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}:function(){this[t]=e}}function dt(t){return{__data__:t}}function pt(t){return function(){return Vr(this,t)}}function gt(t,e,n){function r(){var e=this[i];e&&(this.removeEventListener(t,e,e.$),delete this[i])}var i="__on"+t,o=t.indexOf(".");return o>0&&(t=t.substring(0,o)),e?function(){function o(t){var n=d3.event;d3.event=t,u[0]=a.__data__;try{e.apply(a,u)}finally{d3.event=n}}var a=this,u=yr(arguments);r.call(this),this.addEventListener(t,this[i]=o,o.$=n),o._=e}:r}function vt(t,e){for(var n=0,r=t.length;r>n;n++)for(var i,o=t[n],a=0,u=o.length;u>a;a++)(i=o[a])&&e(i,a,n);return t}function yt(t){return mr(t,Zr),t}function mt(t,e){return mr(t,Jr),t.id=e,t}function _t(t,e,n,i){var o=t.__transition__||(t.__transition__={active:0,count:0}),a=o[n];if(!a){var u=i.time;return a=o[n]={tween:new r,event:d3.dispatch("start","end"),time:u,ease:i.ease,delay:i.delay,duration:i.duration},++o.count,d3.timer(function(r){function i(r){return o.active>n?s():(o.active=n,h.start.call(t,l,e),a.tween.forEach(function(n,r){(r=r.call(t,l,e))&&g.push(r)}),c(r)||d3.timer(c,0,u),1)}function c(r){if(o.active!==n)return s();for(var i=(r-d)/p,a=f(i),u=g.length;u>0;)g[--u].call(t,a);return i>=1?(s(),h.end.call(t,l,e),1):void 0}function s(){return--o.count?delete o[n]:delete t.__transition__,1}var l=t.__data__,f=a.ease,h=a.event,d=a.delay,p=a.duration,g=[];return r>=d?i(r):d3.timer(i,d,u),1},0,u),a}}function bt(t){return null==t&&(t=""),function(){this.textContent=t}}function xt(t,e,n,r){var i=t.id;return vt(t,"function"==typeof n?function(t,o,a){t.__transition__[i].tween.set(e,r(n.call(t,t.__data__,o,a)))}:(n=r(n),function(t){t.__transition__[i].tween.set(e,n)}))}function wt(){for(var t,e=Date.now(),n=oi;n;)(t=e-n.then)>=n.delay&&(n.flush=n.callback(t)),n=n.next;var r=Et()-e;r>24?(isFinite(r)&&(clearTimeout(ni),ni=setTimeout(wt,r)),ei=0):(ei=1,ai(wt))}function Et(){for(var t=null,e=oi,n=1/0;e;)e.flush?(delete ii[e.callback.id],e=t?t.next=e.next:oi=e.next):(n=Math.min(n,e.then+e.delay),e=(t=e).next);return n}function kt(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(0>ui&&(window.scrollX||window.scrollY)){var i=(n=d3.select(document.body).append("svg").style("position","absolute").style("top",0).style("left",0))[0][0].getScreenCTM();ui=!(i.f||i.e),n.remove()}return ui?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}function Mt(){}function Nt(t){var e=t[0],n=t[t.length-1];return n>e?[e,n]:[n,e]}function At(t){return t.rangeExtent?t.rangeExtent():Nt(t.range())}function Ct(t,e){var n,r=0,i=t.length-1,o=t[r],a=t[i];return o>a&&(n=r,r=i,i=n,n=o,o=a,a=n),(e=e(a-o))&&(t[r]=e.floor(o),t[i]=e.ceil(a)),t}function Tt(){return Math}function St(t,e){return d3.rebind(t,e,"range","rangeRound","interpolate","clamp")}function jt(t){return(t=Math.pow(10,Math.round(Math.log(t)/Math.LN10)-1))&&{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}}function Dt(t,e){var n=Nt(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return.15>=o?i*=10:.35>=o?i*=5:.75>=o&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function Lt(t,e){return d3.range.apply(d3,Dt(t,e))}function Ot(t,e){return d3.format(",."+Math.max(0,-Math.floor(Math.log(Dt(t,e)[2])/Math.LN10+.01))+"f")}function It(t,e,n,r){var i=n(t[0],t[1]),o=r(e[0],e[1]);return function(t){return o(i(t))}}function Rt(t,e,n,r){var i=[],o=[],a=0,u=Math.min(t.length,e.length)-1;for(t[u]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());u>=++a;)i.push(n(t[a-1],t[a])),o.push(r(e[a-1],e[a]));return function(e){var n=d3.bisect(t,e,1,u)-1;return o[n](i[n](e))}}function zt(t){return Math.log(0>t?0:t)/Math.LN10}function qt(t){return-Math.log(t>0?0:-t)/Math.LN10}function Ft(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function Pt(t){return t.innerRadius}function Bt(t){return t.outerRadius}function Ht(t){return t.startAngle}function $t(t){return t.endAngle}function Wt(t){function e(e){function o(){l.push("M",u(t(f),s))}for(var c,l=[],f=[],h=-1,d=e.length,p=a(n),g=a(r);d>++h;)i.call(this,c=e[h],h)?f.push([+p.call(this,c,h),+g.call(this,c,h)]):f.length&&(o(),f=[]);return f.length&&o(),l.length?l.join(""):null}var n=Ut,r=Gt,i=o,u=Vt,c=u.key,s=.7;return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(c="function"==typeof t?u=t:(u=gi.get(t)||Vt).key,e):c},e.tension=function(t){return arguments.length?(s=t,e):s},e}function Ut(t){return t[0]}function Gt(t){return t[1]}function Vt(t){return t.join("L")}function Yt(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];n>++e;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function Xt(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];n>++e;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function Zt(t,e){if(1>e.length||t.length!=e.length&&t.length!=e.length+2)return Vt(t);var n=t.length!=e.length,r="",i=t[0],o=t[1],a=e[0],u=a,c=1;if(n&&(r+="Q"+(o[0]-2*a[0]/3)+","+(o[1]-2*a[1]/3)+","+o[0]+","+o[1],i=t[1],c=2),e.length>1){u=e[1],o=t[c],c++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1];for(var s=2;e.length>s;s++,c++)o=t[c],u=e[s],r+="S"+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1]}if(n){var l=t[c];r+="Q"+(o[0]+2*u[0]/3)+","+(o[1]+2*u[1]/3)+","+l[0]+","+l[1]}return r}function Kt(t,e){for(var n,r=[],i=(1-e)/2,o=t[0],a=t[1],u=1,c=t.length;c>++u;)n=o,o=a,a=t[u],r.push([i*(a[0]-n[0]),i*(a[1]-n[1])]);return r}function Jt(t){if(3>t.length)return Vt(t);var e=1,n=t.length,r=t[0],i=r[0],o=r[1],a=[i,i,i,(r=t[1])[0]],u=[o,o,o,r[1]],c=[i,",",o];for(te(c,a,u);n>++e;)r=t[e],a.shift(),a.push(r[0]),u.shift(),u.push(r[1]),te(c,a,u);for(e=-1;2>++e;)a.shift(),a.push(r[0]),u.shift(),u.push(r[1]),te(c,a,u);return c.join("")}function Qt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function te(t,e,n){t.push("C",Qt(vi,e),",",Qt(vi,n),",",Qt(yi,e),",",Qt(yi,n),",",Qt(mi,e),",",Qt(mi,n))}function ee(t,e){return(e[1]-t[1])/(e[0]-t[0])}function ne(t){for(var e,n,r,i,o=[],a=function(t){for(var e=0,n=t.length-1,r=[],i=t[0],o=t[1],a=r[0]=ee(i,o);n>++e;)r[e]=(a+(a=ee(i=o,o=t[e+1])))/2;return r[e]=a,r}(t),u=-1,c=t.length-1;c>++u;)e=ee(t[u],t[u+1]),1e-6>Math.abs(e)?a[u]=a[u+1]=0:(i=(n=a[u]/e)*n+(r=a[u+1]/e)*r)>9&&(i=3*e/Math.sqrt(i),a[u]=i*n,a[u+1]=i*r);for(u=-1;c>=++u;)i=(t[Math.min(c,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+a[u]*a[u])),o.push([i||0,a[u]*i||0]);return o}function re(t){for(var e,n,r,i=-1,o=t.length;o>++i;)n=(e=t[i])[0],r=e[1]+di,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function ie(t){function e(e){function o(){v.push("M",s(t(m),d),h,f(t(y.reverse()),d),"Z")}for(var l,p,g,v=[],y=[],m=[],_=-1,b=e.length,x=a(n),w=a(i),E=n===r?function(){return p}:a(r),k=i===u?function(){return g}:a(u);b>++_;)c.call(this,l=e[_],_)?(y.push([p=+x.call(this,l,_),g=+w.call(this,l,_)]),m.push([+E.call(this,l,_),+k.call(this,l,_)])):y.length&&(o(),y=[],m=[]);return y.length&&o(),v.length?v.join(""):null}var n=Ut,r=Ut,i=0,u=Gt,c=o,s=Vt,l=s.key,f=s,h="L",d=.7;return e.x=function(t){return arguments.length?(n=r=t,e):r},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(i=u=t,e):u},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(u=t,e):u},e.defined=function(t){return arguments.length?(c=t,e):c},e.interpolate=function(t){return arguments.length?(l="function"==typeof t?s=t:(s=gi.get(t)||Vt).key,f=s.reverse||s,h=s.closed?"M":"L",e):l},e.tension=function(t){return arguments.length?(d=t,e):d},e}function oe(t){return t.radius}function ae(t){return[t.x,t.y]}function ue(){return 64}function ce(){return"circle"}function se(t){var e=Math.sqrt(t/dr);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function le(t,e){t.attr("transform",function(t){return"translate("+e(t)+",0)"})}function fe(t,e){t.attr("transform",function(t){return"translate(0,"+e(t)+")"})}function he(t){for(var e=t.source,n=t.target,r=function(t,e){if(t===e)return t;for(var n=de(t),r=de(e),i=n.pop(),o=r.pop(),a=null;i===o;)a=i,i=n.pop(),o=r.pop();return a}(e,n),i=[e];e!==r;)e=e.parent,i.push(e);for(var o=i.length;n!==r;)i.splice(o,0,n),n=n.parent;return i}function de(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function pe(t){t.fixed|=2}function ge(t){t.fixed&=1}function ve(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ye(t){t.fixed&=3}function me(){return 20}function _e(){return 1}function be(t){return t.x}function xe(t){return t.y}function we(t,e,n){t.y0=e,t.y=n}function Ee(t){return d3.range(t.length)}function ke(t){for(var e=-1,n=t[0].length,r=[];n>++e;)r[e]=0;return r}function Me(t){for(var e,n=1,r=0,i=t[0][1],o=t.length;o>n;++n)(e=t[n][1])>i&&(r=n,i=e);return r}function Ne(t){return t.reduce(Ae,0)}function Ae(t,e){return t+e[1]}function Ce(t,e){return Te(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Te(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];e>=++n;)o[n]=i*n+r;return o}function Se(t){return[d3.min(t),d3.max(t)]}function je(t,e){return d3.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=Ie,t}function De(t){return t.children}function Le(t){return t.value}function Oe(t,e){return e.value-t.value}function Ie(t){return d3.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function Re(t,e){return t.value-e.value}function ze(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function qe(t,e){t._pack_next=e,e._pack_prev=t}function Fe(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return i*i-n*n-r*r>.001}function Pe(t){function e(t){l=Math.min(t.x-t.r,l),f=Math.max(t.x+t.r,f),h=Math.min(t.y-t.r,h),d=Math.max(t.y+t.r,d)}if((n=t.children)&&(s=n.length)){var n,r,i,o,a,u,c,s,l=1/0,f=-1/0,h=1/0,d=-1/0;if(n.forEach(Be),(r=n[0]).x=-r.r,r.y=0,e(r),s>1&&((i=n[1]).x=i.r,i.y=0,e(i),s>2))for($e(r,i,o=n[2]),e(o),ze(r,o),r._pack_prev=o,ze(o,i),i=r._pack_next,a=3;s>a;a++){$e(r,i,o=n[a]);var p=0,g=1,v=1;for(u=i._pack_next;u!==i;u=u._pack_next,g++)if(Fe(u,o)){p=1;break}if(1==p)for(c=r._pack_prev;c!==u._pack_prev&&!Fe(c,o);c=c._pack_prev,v++);p?(v>g||g==v&&i.r<r.r?qe(r,i=u):qe(r=c,i),a--):(ze(r,o),i=o,e(o))}var y=(l+f)/2,m=(h+d)/2,_=0;for(a=0;s>a;a++)(o=n[a]).x-=y,o.y-=m,_=Math.max(_,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=_,n.forEach(He)}}function Be(t){t._pack_next=t._pack_prev=t}function He(t){delete t._pack_next,delete t._pack_prev}function $e(t,e,n){var r=t.r+n.r,i=e.x-t.x,o=e.y-t.y;if(r&&(i||o)){var a=e.r+n.r,u=i*i+o*o,c=.5+((r*=r)-(a*=a))/(2*u),s=Math.sqrt(Math.max(0,2*a*(r+u)-(r-=u)*r-a*a))/(2*u);n.x=t.x+c*i+s*o,n.y=t.y+c*o-s*i}else n.x=t.x+r,n.y=t.y}function We(t,e){return t.parent==e.parent?1:2}function Ue(t){var e=t.children;return e&&e.length?e[0]:t._tree.thread}function Ge(t){var e,n=t.children;return n&&(e=n.length)?n[e-1]:t._tree.thread}function Ve(t,e){var n=t.children;if(n&&(i=n.length))for(var r,i,o=-1;i>++o;)e(r=Ve(n[o],e),t)>0&&(t=r);return t}function Ye(t,e){return t.x-e.x}function Xe(t,e){return e.x-t.x}function Ze(t,e){return t.depth-e.depth}function Ke(t,e){!function t(n,r){var i=n.children;if(i&&(a=i.length))for(var o,a,u=null,c=-1;a>++c;)t(o=i[c],u),u=o;e(n,r)}(t,null)}function Je(t,e,n){t=t._tree;var r=n/((e=e._tree).number-t.number);t.change+=r,e.change-=r,e.shift+=n,e.prelim+=n,e.mod+=n}function Qe(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function tn(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],o=t.dy-e[0]-e[2];return 0>i&&(n+=i/2,i=0),0>o&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function en(t,e){function n(t,n){return d3.xhr(t,e,n).response(r)}function r(t){return n.parse(t.responseText)}function i(e){return e.map(o).join(t)}function o(t){return a.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var a=RegExp('["'+t+"\n]"),u=t.charCodeAt(0);return n.parse=function(t){var e;return n.parseRows(t,function(t){return e?e(t):void(e=Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}"))})},n.parseRows=function(t,e){function n(){if(l>=s)return a;if(i)return i=!1,o;var e=l;if(34===t.charCodeAt(e)){for(var n=e;s>n++;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}return l=n+2,13===(r=t.charCodeAt(n+1))?(i=!0,10===t.charCodeAt(n+2)&&++l):10===r&&(i=!0),t.substring(e+1,n).replace(/""/g,'"')}for(;s>l;){var r,c=1;if(10===(r=t.charCodeAt(l++)))i=!0;else if(13===r)i=!0,10===t.charCodeAt(l)&&(++l,++c);else if(r!==u)continue;return t.substring(e,l-c)}return t.substring(e)}for(var r,i,o={},a={},c=[],s=t.length,l=0,f=0;(r=n())!==a;){for(var h=[];r!==o&&r!==a;)h.push(r),r=n();(!e||(h=e(h,f++)))&&c.push(h)}return c},n.format=function(t){return t.map(i).join("\n")},n}function nn(t,e){Si.hasOwnProperty(t.type)&&Si[t.type](t,e)}function rn(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();o>++i;)r=t[i],e.point(r[0],r[1]);e.lineEnd()}function on(t,e){var n=-1,r=t.length;for(e.polygonStart();r>++n;)rn(t[n],e,1);e.polygonEnd()}function an(t){return[Math.atan2(t[1],t[0]),Math.asin(Math.max(-1,Math.min(1,t[2])))]}function un(t,e){return pr>Math.abs(t[0]-e[0])&&pr>Math.abs(t[1]-e[1])}function cn(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function sn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ln(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function fn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function hn(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function dn(t){function e(e){function r(n,r){n=t(n,r),e.point(n[0],n[1])}function o(){l=NaN,g.point=a,e.lineStart()}function a(r,o){var a=cn([r,o]),u=t(r,o);n(l,f,s,h,d,p,l=u[0],f=u[1],s=r,h=a[0],d=a[1],p=a[2],i,e),e.point(l,f)}function u(){g.point=r,e.lineEnd()}function c(){var t,r,c,v,y,m;o(),g.point=function(e,n){a(t=e,n),r=l,c=f,v=h,y=d,m=p,g.point=a},g.lineEnd=function(){n(l,f,s,h,d,p,r,c,t,v,y,m,i,e),g.lineEnd=u,u()}}var s,l,f,h,d,p,g={point:r,lineStart:o,lineEnd:u,polygonStart:function(){e.polygonStart(),g.lineStart=c},polygonEnd:function(){e.polygonEnd(),g.lineStart=o}};return g}function n(e,i,o,a,u,c,s,l,f,h,d,p,g,v){var y=s-e,m=l-i,_=y*y+m*m;if(_>4*r&&g--){var b=a+h,x=u+d,w=c+p,E=Math.sqrt(b*b+x*x+w*w),k=Math.asin(w/=E),M=pr>Math.abs(Math.abs(w)-1)?(o+f)/2:Math.atan2(x,b),N=t(M,k),A=N[0],C=N[1],T=A-e,S=C-i,j=m*T-y*S;(j*j/_>r||Math.abs((y*T+m*S)/_-.5)>.3)&&(n(e,i,o,a,u,c,A,C,M,b/=E,x/=E,w,g,v),v.point(A,C),n(A,C,M,b,x,w,s,l,f,h,d,p,g,v))}}var r=.5,i=16;return e.precision=function(t){return arguments.length?(i=(r=t*t)>0&&16,e):Math.sqrt(r)},e}function pn(t,e){function n(t,e){var n=Math.sqrt(o-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),a-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,o=1+r*(2*i-r),a=Math.sqrt(o)/i;return n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/i,Math.asin((o-(t*t+n*n)*i*i)/(2*i))]},n}function gn(t){function e(t,e){r>t&&(r=t),t>o&&(o=t),i>e&&(i=e),e>a&&(a=e)}function n(){u.point=u.lineEnd=Mt}var r,i,o,a,u={point:e,lineStart:Mt,lineEnd:Mt,polygonStart:function(){u.lineEnd=n},polygonEnd:function(){u.point=e}};return function(e){return a=o=-(r=i=1/0),d3.geo.stream(e,t(u)),[[r,i],[o,a]]}}function vn(t,e){if(!Li){++Oi,t*=gr;var n=Math.cos(e*=gr);Ii+=(n*Math.cos(t)-Ii)/Oi,Ri+=(n*Math.sin(t)-Ri)/Oi,zi+=(Math.sin(e)-zi)/Oi}}function yn(){var t,e;Li=1,mn(),Li=2;var n=qi.point;qi.point=function(r,i){n(t=r,e=i)},qi.lineEnd=function(){qi.point(t,e),_n(),qi.lineEnd=_n}}function mn(){function t(t,i){t*=gr;var o=Math.cos(i*=gr),a=o*Math.cos(t),u=o*Math.sin(t),c=Math.sin(i),s=Math.atan2(Math.sqrt((s=n*c-r*u)*s+(s=r*a-e*c)*s+(s=e*u-n*a)*s),e*a+n*u+r*c);Oi+=s,Ii+=s*(e+(e=a)),Ri+=s*(n+(n=u)),zi+=s*(r+(r=c))}var e,n,r;Li>1||(1>Li&&(Li=1,Oi=Ii=Ri=zi=0),qi.point=function(i,o){i*=gr;var a=Math.cos(o*=gr);e=a*Math.cos(i),n=a*Math.sin(i),r=Math.sin(o),qi.point=t})}function _n(){qi.point=vn}function bn(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,u){null!=i?(i=xn(n,i),o=xn(n,o),(a>0?o>i:i>o)&&(i+=2*a*dr)):(i=t+2*a*dr,o=t);for(var c,s=a*e,l=i;a>0?l>o:o>l;l-=s)u.point((c=an([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function xn(t,e){var n,r,i=cn(e);i[0]-=t,n=i,r=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]),n[0]/=r,n[1]/=r,n[2]/=r;var o=Math.acos(Math.max(-1,Math.min(1,-i[1])));return((0>-i[2]?-o:o)+2*Math.PI-pr)%(2*Math.PI)}function wn(t,e,n){return function(r){function i(e,n){t(e,n)&&r.point(e,n)}function o(t,e){m.point(t,e)}function a(){_.point=o,m.lineStart()}function u(){_.point=i,m.lineEnd()}function c(t,e){x.point(t,e),g.push([t,e])}function s(){x.lineStart(),g=[]}function l(){c(g[0][0],g[0][1]),x.lineEnd();var t,e=x.clean(),n=b.buffer();if(!(o=n.length))return p=!0,d+=Nn(g,-1),void(g=null);if(g=null,1&e){t=n[0],h+=Nn(t,1);var i,o=t.length-1,a=-1;for(r.lineStart();o>++a;)r.point((i=t[a])[0],i[1]);r.lineEnd()}else o>1&&2&e&&n.push(n.pop().concat(n.shift())),f.push(n.filter(Mn))}var f,h,d,p,g,v,y,m=e(r),_={point:i,lineStart:a,lineEnd:u,polygonStart:function(){_.point=c,_.lineStart=s,_.lineEnd=l,p=!1,d=h=0,f=[],r.polygonStart()},polygonEnd:function(){_.point=i,_.lineStart=a,_.lineEnd=u,(f=d3.merge(f)).length?function(t,e,n){var r=[],i=[];if(t.forEach(function(t){var e=t.length;if(!(1>=e)){var n=t[0],o=t[e-1],a={point:n,points:t,other:null,visited:!1,entry:!0,subject:!0},u={point:n,points:[n],other:a,visited:!1,entry:!1,subject:!1};a.other=u,r.push(a),i.push(u),u={point:o,points:[o],other:a={point:o,points:[o],other:null,visited:!1,entry:!1,subject:!0},visited:!1,entry:!0,subject:!1},a.other=u,r.push(a),i.push(u)}}),i.sort(kn),En(r),En(i),r.length)for(var o,a,u,c=r[0];;){for(o=c;o.visited;)if((o=o.next)===c)return;a=o.points,n.lineStart();do{if(o.visited=o.other.visited=!0,o.entry){if(o.subject)for(var s=0;a.length>s;s++)n.point((u=a[s])[0],u[1]);else e(o.point,o.next.point,1,n);o=o.next}else{if(o.subject)for(var s=(a=o.prev.points).length;--s>=0;)n.point((u=a[s])[0],u[1]);else e(o.point,o.prev.point,-1,n);o=o.prev}o=o.other,a=o.points}while(!o.visited);n.lineEnd()}}(f,n,r):(-pr>h||p&&-pr>d)&&(r.lineStart(),n(null,null,1,r),r.lineEnd()),r.polygonEnd(),f=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}},b=(y=[],{lineStart:function(){y.push(v=[])},point:function(t,e){v.push([t,e])},lineEnd:Mt,buffer:function(){var t=y;return y=[],v=null,t}}),x=e(b);return _}}function En(t){if(e=t.length){for(var e,n,r=0,i=t[0];e>++r;)i.next=n=t[r],n.prev=i,i=n;i.next=n=t[0],n.prev=i}}function kn(t,e){return(0>(t=t.point)[0]?t[1]-dr/2-pr:dr/2-t[1])-(0>(e=e.point)[0]?e[1]-dr/2-pr:dr/2-e[1])}function Mn(t){return t.length>1}function Nn(t,e){if(!(n=t.length))return 0;for(var n,r,i,o=0,a=0,u=t[0],c=u[0],s=u[1],l=Math.cos(s),f=Math.atan2(e*Math.sin(c)*l,Math.sin(s)),h=1-e*Math.cos(c)*l,d=f;n>++o;)u=t[o],l=Math.cos(s=u[1]),r=Math.atan2(e*Math.sin(c=u[0])*l,Math.sin(s)),i=1-e*Math.cos(c)*l,pr>Math.abs(h-2)&&pr>Math.abs(i-2)||(pr>Math.abs(i)||pr>Math.abs(h)||(pr>Math.abs(Math.abs(r-f)-dr)?i+h>2&&(a+=4*(r-f)):a+=pr>Math.abs(h-2)?4*(r-d):((3*dr+r-f)%(2*dr)-dr)*(h+i)),d=f,f=r,h=i);return a}function An(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function Cn(t,e){return[t,e]}function Tn(t,e){return[t/(2*dr),Math.max(-.5,Math.min(.5,Math.log(Math.tan(dr/4+e/2))/(2*dr)))]}function Sn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function jn(){function t(t,e){$i+=i*t-r*e,r=t,i=e}var e,n,r,i;Wi.point=function(o,a){Wi.point=t,e=r=o,n=i=a},Wi.lineEnd=function(){t(e,n)}}function Dn(t,e){Li||(Ii+=t,Ri+=e,++zi)}function Ln(){function t(t,r){var i=t-e,o=r-n,a=Math.sqrt(i*i+o*o);Ii+=a*(e+t)/2,Ri+=a*(n+r)/2,zi+=a,e=t,n=r}var e,n;if(1!==Li){if(!(1>Li))return;Li=1,Ii=Ri=zi=0}Ui.point=function(r,i){Ui.point=t,e=r,n=i}}function On(){Ui.point=Dn}function In(){function t(t,e){var n=i*t-r*e;Ii+=n*(r+t),Ri+=n*(i+e),zi+=3*n,r=t,i=e}var e,n,r,i;2>Li&&(Li=2,Ii=Ri=zi=0),Ui.point=function(o,a){Ui.point=t,e=r=o,n=i=a},Ui.lineEnd=function(){t(e,n)}}function Rn(){function t(t,e){if(t*=gr,e*=gr,!(pr>Math.abs(Math.abs(o)-dr/2)&&pr>Math.abs(Math.abs(e)-dr/2))){var n=Math.cos(e),c=Math.sin(e);if(pr>Math.abs(o-dr/2))Vi+=2*(t-r);else{var s=t-i,l=Math.cos(s),f=Math.atan2(Math.sqrt((f=n*Math.sin(s))*f+(f=a*c-u*n*l)*f),u*c+a*n*l),h=(f+dr+o+e)/4;Vi+=(0>s&&s>-dr||s>dr?-4:4)*Math.atan(Math.sqrt(Math.abs(Math.tan(h)*Math.tan(h-f/2)*Math.tan(h-dr/4-o/2)*Math.tan(h-dr/4-e/2))))}r=i,i=t,o=e,a=n,u=c}}var e,n,r,i,o,a,u;Yi.point=function(c,s){Yi.point=t,r=i=(e=c)*gr,o=(n=s)*gr,a=Math.cos(o),u=Math.sin(o)},Yi.lineEnd=function(){t(e,n)}}function zn(t){return qn(function(){return t})()}function qn(t){function e(t){return[(t=a(t[0]*gr,t[1]*gr))[0]*l+u,c-t[1]*l]}function n(t){return(t=a.invert((t[0]-u)/l,(c-t[1])/l))&&[t[0]*vr,t[1]*vr]}function r(){a=An(o=Fn(g,v,y),i);var t=i(d,p);return u=f-t[0]*l,c=h+t[1]*l,e}var i,o,a,u,c,s=dn(function(t,e){return[(t=i(t,e))[0]*l+u,c-t[1]*l]}),l=150,f=480,h=250,d=0,p=0,g=0,v=0,y=0,m=Fi,_=null;return e.stream=function(t){return e=o,n=m(s(t)),{point:function(t,r){r=e(t*gr,r*gr),t=r[0],n.point(t>dr?t-2*dr:-dr>t?t+2*dr:t,r[1])},sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}};var e,n},e.clipAngle=function(t){return arguments.length?(m=null==t?(_=t,Fi):function(t){function e(t,e){return Math.cos(t)*Math.cos(e)>i}function n(t,e){var n=[1,0,0],r=ln(cn(t),cn(e)),o=sn(r,r),a=r[0],u=o-a*a;if(!u)return t;var c=i*o/u,s=-i*a/u,l=ln(n,r),f=hn(n,c);fn(f,hn(r,s));var h=l,d=sn(f,h),p=sn(h,h),g=hn(h,(-d-Math.sqrt(d*d-p*(sn(f,f)-1)))/p);return fn(g,f),an(g)}var r=t*gr,i=Math.cos(r);return wn(e,function(t){var r,i,o,a;return{lineStart:function(){o=i=!1,a=1},point:function(u,c){var s,l=[u,c],f=e(u,c);!r&&(o=i=f)&&t.lineStart(),f!==i&&(s=n(r,l),(un(r,s)||un(l,s))&&(l[0]+=pr,l[1]+=pr,f=e(l[0],l[1]))),f!==i&&(a=0,(i=f)?(t.lineStart(),s=n(l,r),t.point(s[0],s[1])):(s=n(r,l),t.point(s[0],s[1]),t.lineEnd()),r=s),!f||r&&un(r,l)||t.point(l[0],l[1]),r=l},lineEnd:function(){i&&t.lineEnd(),r=null},clean:function(){return a|(o&&i)<<1}}},bn(r,6*gr))}(_=+t),e):_},e.scale=function(t){return arguments.length?(l=+t,r()):l},e.translate=function(t){return arguments.length?(f=+t[0],h=+t[1],r()):[f,h]},e.center=function(t){return arguments.length?(d=t[0]%360*gr,p=t[1]%360*gr,r()):[d*vr,p*vr]},e.rotate=function(t){return arguments.length?(g=t[0]%360*gr,v=t[1]%360*gr,y=t.length>2?t[2]%360*gr:0,r()):[g*vr,v*vr,y*vr]},d3.rebind(e,s,"precision"),function(){return i=t.apply(this,arguments),e.invert=i.invert&&n,r()}}function Fn(t,e,n){return t?e||n?An(Bn(t),Hn(e,n)):Bn(t):e||n?Hn(e,n):Cn}function Pn(t){return function(e,n){return[(e+=t)>dr?e-2*dr:-dr>e?e+2*dr:e,n]}}function Bn(t){var e=Pn(t);return e.invert=Pn(-t),e}function Hn(t,e){function n(t,e){var n=Math.cos(e),u=Math.cos(t)*n,c=Math.sin(t)*n,s=Math.sin(e),l=s*r+u*i;return[Math.atan2(c*o-l*a,u*r-s*i),Math.asin(Math.max(-1,Math.min(1,l*o+c*a)))]}var r=Math.cos(t),i=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),u=Math.cos(t)*n,c=Math.sin(t)*n,s=Math.sin(e),l=s*o-c*a;return[Math.atan2(c*o+s*a,u*r+l*i),Math.asin(Math.max(-1,Math.min(1,l*r-u*i)))]},n}function $n(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),o=t(r*i);return[o*i*Math.sin(e),o*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&n*o/r)]},n}function Wn(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Un(t,e,n,r){var i=t[0],o=n[0],a=e[0]-i,u=r[0]-o,c=t[1],s=n[1],l=e[1]-c,f=r[1]-s,h=(u*(c-s)-f*(i-o))/(f*a-u*l);return[i+h*a,c+h*l]}function Gn(t,e){var n={list:t.map(function(t,e){return{index:e,x:t[0],y:t[1]}}).sort(function(t,e){return t.y<e.y?-1:t.y>e.y?1:t.x<e.x?-1:t.x>e.x?1:0}),bottomSite:null},r={list:[],leftEnd:null,rightEnd:null,init:function(){r.leftEnd=r.createHalfEdge(null,"l"),r.rightEnd=r.createHalfEdge(null,"l"),r.leftEnd.r=r.rightEnd,r.rightEnd.l=r.leftEnd,r.list.unshift(r.leftEnd,r.rightEnd)},createHalfEdge:function(t,e){return{edge:t,side:e,vertex:null,l:null,r:null}},insert:function(t,e){e.l=t,e.r=t.r,t.r.l=e,t.r=e},leftBound:function(t){var e=r.leftEnd;do{e=e.r}while(e!=r.rightEnd&&i.rightOf(e,t));return e.l},del:function(t){t.l.r=t.r,t.r.l=t.l,t.edge=null},right:function(t){return t.r},left:function(t){return t.l},leftRegion:function(t){return null==t.edge?n.bottomSite:t.edge.region[t.side]},rightRegion:function(t){return null==t.edge?n.bottomSite:t.edge.region[Zi[t.side]]}},i={bisect:function(t,e){var n={region:{l:t,r:e},ep:{l:null,r:null}},r=e.x-t.x,i=e.y-t.y,o=r>0?r:-r,a=i>0?i:-i;return n.c=t.x*r+t.y*i+.5*(r*r+i*i),o>a?(n.a=1,n.b=i/r,n.c/=r):(n.b=1,n.a=r/i,n.c/=i),n},intersect:function(t,e){var n=t.edge,r=e.edge;if(!n||!r||n.region.r==r.region.r)return null;var i=n.a*r.b-n.b*r.a;if(1e-10>Math.abs(i))return null;var o,a,u=(n.c*r.b-r.c*n.b)/i,c=(r.c*n.a-n.c*r.a)/i,s=n.region.r,l=r.region.r;s.y<l.y||s.y==l.y&&s.x<l.x?(o=t,a=n):(o=e,a=r);var f=u>=a.region.r.x;return f&&"l"===o.side||!f&&"r"===o.side?null:{x:u,y:c}},rightOf:function(t,e){var n=t.edge,r=n.region.r,i=e.x>r.x;if(i&&"l"===t.side)return 1;if(!i&&"r"===t.side)return 0;if(1===n.a){var o=e.y-r.y,a=e.x-r.x,u=0,c=0;if(!i&&0>n.b||i&&n.b>=0?c=u=o>=n.b*a:(c=e.x+e.y*n.b>n.c,0>n.b&&(c=!c),c||(u=1)),!u){var s=r.x-n.region.l.x;c=n.b*(a*a-o*o)<s*o*(1+2*a/s+n.b*n.b),0>n.b&&(c=!c)}}else{var l=n.c-n.a*e.x,f=e.y-l,h=e.x-r.x,d=l-r.y;c=f*f>h*h+d*d}return"l"===t.side?c:!c},endPoint:function(t,n,r){t.ep[n]=r,t.ep[Zi[n]]&&e(t)},distance:function(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}},o={list:[],insert:function(t,e,n){t.vertex=e,t.ystar=e.y+n;for(var r=0,i=o.list,a=i.length;a>r;r++){var u=i[r];if(!(t.ystar>u.ystar||t.ystar==u.ystar&&e.x>u.vertex.x))break}i.splice(r,0,t)},del:function(t){for(var e=0,n=o.list,r=n.length;r>e&&n[e]!=t;++e);n.splice(e,1)},empty:function(){return 0===o.list.length},nextEvent:function(t){for(var e=0,n=o.list,r=n.length;r>e;++e)if(n[e]==t)return n[e+1];return null},min:function(){var t=o.list[0];return{x:t.vertex.x,y:t.ystar}},extractMin:function(){return o.list.shift()}};r.init(),n.bottomSite=n.list.shift();for(var a,u,c,s,l,f,h,d,p,g,v,y,m,_=n.list.shift();;)if(o.empty()||(a=o.min()),_&&(o.empty()||_.y<a.y||_.y==a.y&&_.x<a.x))u=r.leftBound(_),c=r.right(u),h=r.rightRegion(u),y=i.bisect(h,_),f=r.createHalfEdge(y,"l"),r.insert(u,f),(g=i.intersect(u,f))&&(o.del(u),o.insert(u,g,i.distance(g,_))),u=f,f=r.createHalfEdge(y,"r"),r.insert(u,f),(g=i.intersect(f,c))&&o.insert(f,g,i.distance(g,_)),_=n.list.shift();else{if(o.empty())break;u=o.extractMin(),s=r.left(u),c=r.right(u),l=r.right(c),h=r.leftRegion(u),d=r.rightRegion(c),v=u.vertex,i.endPoint(u.edge,u.side,v),i.endPoint(c.edge,c.side,v),r.del(u),o.del(c),r.del(c),m="l",h.y>d.y&&(p=h,h=d,d=p,m="r"),y=i.bisect(h,d),f=r.createHalfEdge(y,m),r.insert(s,f),i.endPoint(y,Zi[m],v),(g=i.intersect(s,f))&&(o.del(s),o.insert(s,g,i.distance(g,h))),(g=i.intersect(f,l))&&o.insert(f,g,i.distance(g,h))}for(u=r.right(r.leftEnd);u!=r.rightEnd;u=r.right(u))e(u.edge)}function Vn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Yn(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;u>a;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(!(o=fo[e.charAt(a++)])||0>(r=o(t,n,r)))return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function Xn(t){return RegExp("^(?:"+t.map(d3.requote).join("|")+")","i")}function Zn(t){for(var e=new r,n=-1,i=t.length;i>++n;)e.set(t[n].toLowerCase(),n);return e}function Kn(t,e,n){var r=(t+="").length;return n>r?Array(n-r+1).join(e)+t:t}function Jn(t,e,n){ho.lastIndex=0;var r=ho.exec(e.substring(n,n+2));return r?(t.d=+r[0],n+=r[0].length):-1}function Qn(t,e,n){ho.lastIndex=0;var r=ho.exec(e.substring(n,n+2));return r?(t.H=+r[0],n+=r[0].length):-1}function tr(t){return t.toISOString()}function er(t,e,n){function r(e){var n=t(e),r=o(n,1);return r-e>e-n?n:r}function i(n){return e(n=t(new Ki(n-1)),1),n}function o(t,n){return e(t=new Ki(+t),n),t}function a(t,r,o){var a=i(t),u=[];if(o>1)for(;r>a;)n(a)%o||u.push(new Date(+a)),e(a,1);else for(;r>a;)u.push(new Date(+a)),e(a,1);return u}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=a;var u=t.utc=nr(t);return u.floor=u,u.round=nr(r),u.ceil=nr(i),u.offset=nr(o),u.range=function(t,e,n){try{Ki=Vn;var r=new Vn;return r._=t,a(r,e,n)}finally{Ki=Date}},t}function nr(t){return function(e,n){try{Ki=Vn;var r=new Vn;return r._=e,t(r,n)._}finally{Ki=Date}}}function rr(t,e,n){function r(e){return t(e)}return r.invert=function(e){return ir(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(ir)},r.nice=function(t){return r.domain(Ct(r.domain(),function(){return t}))},r.ticks=function(n,i){var o,a,u,c=(o=r.domain(),a=o[0],(u=o[o.length-1])>a?[a,u]:[u,a]);if("function"!=typeof n){var s=(c[1]-c[0])/n,l=d3.bisect(vo,s);if(l==vo.length)return e.year(c,n);if(!l)return t.ticks(n).map(ir);Math.log(s/vo[l-1])<Math.log(vo[l]/s)&&--l,i=(n=e[l])[1],n=n[0].range}return n(c[0],new Date(+c[1]+1),i)},r.tickFormat=function(){return n},r.copy=function(){return rr(t.copy(),e,n)},d3.rebind(r,t,"range","rangeRound","interpolate","clamp")}function ir(t){return new Date(t)}function or(t){return function(e){for(var n=t.length-1,r=t[n];!r[1](e);)r=t[--n];return r[0](e)}}function ar(t){var e=new Date(t,0,1);return e.setFullYear(t),e}function ur(t){var e=t.getFullYear(),n=ar(e);return e+(t-n)/(ar(e+1)-n)}function cr(t){var e=new Date(Date.UTC(t,0,1));return e.setUTCFullYear(t),e}function sr(t){var e=t.getUTCFullYear(),n=cr(e);return e+(t-n)/(cr(e+1)-n)}var lr=[3,3];Date.now||(Date.now=function(){return+new Date});try{document.createElement("div").style.setProperty("opacity",0,"")}catch(t){var fr=CSSStyleDeclaration.prototype,hr=fr.setProperty;fr.setProperty=function(t,e,n){hr.call(this,t,e+"",n)}}d3={version:"3.0.4"};var dr=Math.PI,pr=1e-6,gr=dr/180,vr=180/dr,yr=function(t){return Array.prototype.slice.call(t)};try{yr(document.documentElement.childNodes)[0].nodeType}catch(t){yr=n}var mr=[].__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]};d3.map=function(t){var e=new r;for(var n in t)e.set(n,t[n]);return e},function(t,e){try{for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}catch(n){t.prototype=e}}(r,{has:function(t){return _r+t in this},get:function(t){return this[_r+t]},set:function(t,e){return this[_r+t]=e},remove:function(t){return(t=_r+t)in this&&delete this[t]},keys:function(){var t=[];return this.forEach(function(e){t.push(e)}),t},values:function(){var t=[];return this.forEach(function(e,n){t.push(n)}),t},entries:function(){var t=[];return this.forEach(function(e,n){t.push({key:e,value:n})}),t},forEach:function(t){for(var e in this)e.charCodeAt(0)===br&&t.call(this,e.substring(1),this[e])}});var _r="\0",br=_r.charCodeAt(0);d3.functor=a,d3.rebind=function(t,e){for(var n,r=1,i=arguments.length;i>++r;)t[n=arguments[r]]=u(t,e,e[n]);return t},d3.ascending=function(t,e){return e>t?-1:t>e?1:t>=e?0:NaN},d3.descending=function(t,e){return t>e?-1:e>t?1:e>=t?0:NaN},d3.mean=function(t,e){var n,r=t.length,i=0,o=-1,a=0;if(1===arguments.length)for(;r>++o;)c(n=t[o])&&(i+=(n-i)/++a);else for(;r>++o;)c(n=e.call(t,t[o],o))&&(i+=(n-i)/++a);return a?i:void 0},d3.median=function(t,e){return arguments.length>1&&(t=t.map(e)),(t=t.filter(c)).length?d3.quantile(t.sort(d3.ascending),.5):void 0},d3.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;o>++i&&(null==(n=t[i])||n!=n);)n=void 0;for(;o>++i;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;o>++i&&(null==(n=e.call(t,t[i],i))||n!=n);)n=void 0;for(;o>++i;)null!=(r=e.call(t,t[i],i))&&n>r&&(n=r)}return n},d3.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;o>++i&&(null==(n=t[i])||n!=n);)n=void 0;for(;o>++i;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;o>++i&&(null==(n=e.call(t,t[i],i))||n!=n);)n=void 0;for(;o>++i;)null!=(r=e.call(t,t[i],i))&&r>n&&(n=r)}return n},d3.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;a>++o&&(null==(n=i=t[o])||n!=n);)n=i=void 0;for(;a>++o;)null!=(r=t[o])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;a>++o&&(null==(n=i=e.call(t,t[o],o))||n!=n);)n=void 0;for(;a>++o;)null!=(r=e.call(t,t[o],o))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},d3.random={normal:function(t,e){var n=arguments.length;return 2>n&&(e=1),1>n&&(t=0),function(){var n,r,i;do{i=(n=2*Math.random()-1)*n+(r=2*Math.random()-1)*r}while(!i||i>1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(t,e){var n=arguments.length;2>n&&(e=1),1>n&&(t=0);var r=d3.random.normal();return function(){return Math.exp(t+e*r())}},irwinHall:function(t){return function(){for(var e=0,n=0;t>n;n++)e+=Math.random();return e/t}}},d3.sum=function(t,e){var n,r=0,i=t.length,o=-1;if(1===arguments.length)for(;i>++o;)isNaN(n=+t[o])||(r+=n);else for(;i>++o;)isNaN(n=+e.call(t,t[o],o))||(r+=n);return r},d3.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i},d3.shuffle=function(t){for(var e,n,r=t.length;r;)n=0|Math.random()*r--,e=t[r],t[r]=t[n],t[n]=e;return t},d3.transpose=function(t){return d3.zip.apply(d3,t)},d3.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,e=d3.min(arguments,s),n=Array(e);e>++t;)for(var r,i=-1,o=n[t]=Array(r);r>++i;)o[i]=arguments[i][t];return n},d3.bisector=function(t){return{left:function(e,n,r,i){for(3>arguments.length&&(r=0),4>arguments.length&&(i=e.length);i>r;){var o=r+i>>>1;n>t.call(e,e[o],o)?r=o+1:i=o}return r},right:function(e,n,r,i){for(3>arguments.length&&(r=0),4>arguments.length&&(i=e.length);i>r;){var o=r+i>>>1;t.call(e,e[o],o)>n?i=o:r=o+1}return r}}};var xr=d3.bisector(function(t){return t});d3.bisectLeft=xr.left,d3.bisect=d3.bisectRight=xr.right,d3.nest=function(){function t(a,u){if(u>=o.length)return n?n.call(i,a):e?a.sort(e):a;for(var c,s,l,f=-1,h=a.length,d=o[u++],p=new r,g={};h>++f;)(l=p.get(c=d(s=a[f])))?l.push(s):p.set(c,[s]);return p.forEach(function(e,n){g[e]=t(n,u)}),g}var e,n,i={},o=[],a=[];return i.map=function(e){return t(e,0)},i.entries=function(e){return function t(e,n){if(n>=o.length)return e;var r,i=[],u=a[n++];for(r in e)i.push({key:r,values:t(e[r],n)});return u&&i.sort(function(t,e){return u(t.key,e.key)}),i}(t(e,0),0)},i.key=function(t){return o.push(t),i},i.sortKeys=function(t){return a[o.length-1]=t,i},i.sortValues=function(t){return e=t,i},i.rollup=function(t){return n=t,i},i},d3.keys=function(t){var e=[];for(var n in t)e.push(n);return e},d3.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},d3.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},d3.permute=function(t,e){for(var n=[],r=-1,i=e.length;i>++r;)n[r]=t[e[r]];return n},d3.merge=function(t){return Array.prototype.concat.apply([],t)},d3.range=function(t,e,n){if(3>arguments.length&&(n=1,2>arguments.length&&(e=t,t=0)),1/0==(e-t)/n)throw Error("infinite range");var r,i=[],o=function(t){for(var e=1;t*e%1;)e*=10;return e}(Math.abs(n)),a=-1;if(t*=o,e*=o,0>(n*=o))for(;(r=t+n*++a)>e;)i.push(r/o);else for(;e>(r=t+n*++a);)i.push(r/o);return i},d3.requote=function(t){return t.replace(wr,"\\$&")};var wr=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;d3.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)},d3.xhr=function(t,e,n){function r(){var t=l.status;!t&&l.responseText||t>=200&&300>t||304===t?u.load.call(a,s.call(a,l)):u.error.call(a,l)}var o,a={},u=d3.dispatch("progress","load","error"),c={},s=i,l=new(window.XDomainRequest&&/^(http(s)?:)?\/\//.test(t)?XDomainRequest:XMLHttpRequest);return"onload"in l?l.onload=l.onerror=r:l.onreadystatechange=function(){l.readyState>3&&r()},l.onprogress=function(t){var e=d3.event;d3.event=t;try{u.progress.call(a,l)}finally{d3.event=e}},a.header=function(t,e){return t=(t+"").toLowerCase(),2>arguments.length?c[t]:(null==e?delete c[t]:c[t]=e+"",a)},a.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",a):e},a.response=function(t){return s=t,a},["get","post"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(yr(arguments)))}}),a.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),l.open(n,t,!0),null==e||"accept"in c||(c.accept=e+",*/*"),l.setRequestHeader)for(var o in c)l.setRequestHeader(o,c[o]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=i&&a.on("error",i).on("load",function(t){i(null,t)}),l.send(null==r?null:r),a},a.abort=function(){return l.abort(),a},d3.rebind(a,u,"on"),2===arguments.length&&"function"==typeof e&&(n=e,e=null),null==n?a:a.get(1===(o=n).length?function(t,e){o(null==t?e:null)}:o)},d3.text=function(){return d3.xhr.apply(d3,arguments).response(f)},d3.json=function(t,e){return d3.xhr(t,"application/json",e).response(h)},d3.html=function(t,e){return d3.xhr(t,"text/html",e).response(d)},d3.xml=function(){return d3.xhr.apply(d3,arguments).response(p)};var Er={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};d3.ns={prefix:Er,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&(n=t.substring(0,e),t=t.substring(e+1)),Er.hasOwnProperty(n)?{space:Er[n],local:t}:t}},d3.dispatch=function(){for(var t=new g,e=-1,n=arguments.length;n>++e;)t[arguments[e]]=v(t);return t},g.prototype.on=function(t,e){var n=t.indexOf("."),r="";return n>0&&(r=t.substring(n+1),t=t.substring(0,n)),2>arguments.length?this[t].on(r):this[t].on(r,e)},d3.format=function(t){var e=kr.exec(t),n=e[1]||" ",r=e[2]||">",i=e[3]||"",o=e[4]||"",a=e[5],u=+e[6],c=e[7],s=e[8],l=e[9],f=1,h="",d=!1;switch(s&&(s=+s.substring(1)),(a||"0"===n&&"="===r)&&(a=n="0",r="=",c&&(u-=Math.floor((u-1)/4))),l){case"n":c=!0,l="g";break;case"%":f=100,h="%",l="f";break;case"p":f=100,h="%",l="r";break;case"b":case"o":case"x":case"X":o&&(o="0"+l.toLowerCase());case"c":case"d":d=!0,s=0;break;case"s":f=-1,l="r"}"#"===o&&(o=""),"r"!=l||s||(l="g"),l=Mr.get(l)||m;var p=a&&c;return function(t){if(d&&t%1)return"";var e=0>t||0===t&&0>1/t?(t=-t,"-"):i;if(0>f){var g=d3.formatPrefix(t,s);t=g.scale(t),h=g.symbol}else t*=f;t=l(t,s),!a&&c&&(t=Nr(t));var v=o.length+t.length+(p?0:e.length),y=u>v?Array(v=u-v+1).join(n):"";return p&&(t=Nr(y+t)),t.replace(".","."),e+=o,("<"===r?e+t+y:">"===r?y+e+t:"^"===r?y.substring(0,v>>=1)+e+t+y.substring(v):e+(p?t:y+t))+h}};var kr=/(?:([^{])?([<>=^]))?([+\- ])?(#)?(0)?([0-9]+)?(,)?(\.[0-9]+)?([a-zA-Z%])?/,Mr=d3.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return d3.round(t,e=y(t,e)).toFixed(Math.max(0,Math.min(20,e)))}}),Nr=i;if(lr){var Ar=lr.length;Nr=function(t){for(var e=t.lastIndexOf("."),n=e>=0?"."+t.substring(e+1):(e=t.length,""),r=[],i=0,o=lr[0];e>0&&o>0;)r.push(t.substring(e-=o,e+o)),o=lr[i=(i+1)%Ar];return r.reverse().join(",")+n}}var Cr=["y","z","a","f","p","n","μ","m","","k","M","G","T","P","E","Z","Y"].map(function(t,e){var n=Math.pow(10,3*Math.abs(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}});d3.formatPrefix=function(t,e){var n=0;return t&&(0>t&&(t*=-1),e&&(t=d3.round(t,y(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((0>=n?n+1:n-1)/3)))),Cr[8+n/3]};var Tr=function(){return i},Sr=d3.map({linear:Tr,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return x},cubic:function(){return w},sin:function(){return E},exp:function(){return k},circle:function(){return M},elastic:function(t,e){var n;return 2>arguments.length&&(e=.45),arguments.length?n=e/(2*dr)*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,10*-r)*Math.sin(2*(r-n)*dr/e)}},back:function(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}},bounce:function(){return N}}),jr=d3.map({in:i,out:_,"in-out":b,"out-in":function(t){return b(_(t))}});d3.ease=function(t){var e,n=t.indexOf("-"),r=n>=0?t.substring(0,n):t,o=n>=0?t.substring(n+1):"in";return r=Sr.get(r)||Tr,o=jr.get(o)||i,e=o(r.apply(null,Array.prototype.slice.call(arguments,1))),function(t){return 0>=t?0:t>=1?1:e(t)}},d3.event=null,d3.transform=function(t){var e=document.createElementNS(d3.ns.prefix.svg,"g");return(d3.transform=function(t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate();return new S(n?n.matrix:Dr)})(t)},S.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Dr={a:1,b:0,c:0,d:1,e:0,f:0};d3.interpolate=function(t,e){for(var n,r=d3.interpolators.length;--r>=0&&!(n=d3.interpolators[r](t,e)););return n},d3.interpolateNumber=function(t,e){return e-=t,function(n){return t+e*n}},d3.interpolateRound=function(t,e){return e-=t,function(n){return Math.round(t+e*n)}},d3.interpolateString=function(t,e){var n,r,i,o,a,u=0,c=[],s=[];for(Lr.lastIndex=0,r=0;n=Lr.exec(e);++r)n.index&&c.push(e.substring(u,n.index)),s.push({i:c.length,x:n[0]}),c.push(null),u=Lr.lastIndex;for(e.length>u&&c.push(e.substring(u)),r=0,o=s.length;(n=Lr.exec(t))&&o>r;++r)if((a=s[r]).x==n[0]){if(a.i)if(null==c[a.i+1])for(c[a.i-1]+=a.x,c.splice(a.i,1),i=r+1;o>i;++i)s[i].i--;else for(c[a.i-1]+=a.x+c[a.i+1],c.splice(a.i,2),i=r+1;o>i;++i)s[i].i-=2;else if(null==c[a.i+1])c[a.i]=a.x;else for(c[a.i]=a.x+c[a.i+1],c.splice(a.i+1,1),i=r+1;o>i;++i)s[i].i--;s.splice(r,1),o--,r--}else a.x=d3.interpolateNumber(parseFloat(n[0]),parseFloat(a.x));for(;o>r;)a=s.pop(),null==c[a.i+1]?c[a.i]=a.x:(c[a.i]=a.x+c[a.i+1],c.splice(a.i+1,1)),o--;return 1===c.length?null==c[0]?s[0].x:function(){return e}:function(t){for(r=0;o>r;++r)c[(a=s[r]).i]=a.x(t);return c.join("")}},d3.interpolateTransform=function(t,e){var n,r=[],i=[],o=d3.transform(t),a=d3.transform(e),u=o.translate,c=a.translate,s=o.rotate,l=a.rotate,f=o.skew,h=a.skew,d=o.scale,p=a.scale;return u[0]!=c[0]||u[1]!=c[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:d3.interpolateNumber(u[0],c[0])},{i:3,x:d3.interpolateNumber(u[1],c[1])})):c[0]||c[1]?r.push("translate("+c+")"):r.push(""),s!=l?(s-l>180?l+=360:l-s>180&&(s+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:d3.interpolateNumber(s,l)})):l&&r.push(r.pop()+"rotate("+l+")"),f!=h?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:d3.interpolateNumber(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),d[0]!=p[0]||d[1]!=p[1]?(n=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:n-4,x:d3.interpolateNumber(d[0],p[0])},{i:n-2,x:d3.interpolateNumber(d[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),n=i.length,function(t){for(var e,o=-1;n>++o;)r[(e=i[o]).i]=e.x(t);return r.join("")}},d3.interpolateRgb=function(t,e){t=d3.rgb(t),e=d3.rgb(e);var n=t.r,r=t.g,i=t.b,o=e.r-n,a=e.g-r,u=e.b-i;return function(t){return"#"+F(Math.round(n+o*t))+F(Math.round(r+a*t))+F(Math.round(i+u*t))}},d3.interpolateHsl=function(t,e){t=d3.hsl(t),e=d3.hsl(e);var n=t.h,r=t.s,i=t.l,o=e.h-n,a=e.s-r,u=e.l-i;return o>180?o-=360:-180>o&&(o+=360),function(t){return V(n+o*t,r+a*t,i+u*t)+""}},d3.interpolateLab=function(t,e){t=d3.lab(t),e=d3.lab(e);var n=t.l,r=t.a,i=t.b,o=e.l-n,a=e.a-r,u=e.b-i;return function(t){return Q(n+o*t,r+a*t,i+u*t)+""}},d3.interpolateHcl=function(t,e){t=d3.hcl(t),e=d3.hcl(e);var n=t.h,r=t.c,i=t.l,o=e.h-n,a=e.c-r,u=e.l-i;return o>180?o-=360:-180>o&&(o+=360),function(t){return Z(n+o*t,r+a*t,i+u*t)+""}},d3.interpolateArray=function(t,e){var n,r=[],i=[],o=t.length,a=e.length,u=Math.min(t.length,e.length);for(n=0;u>n;++n)r.push(d3.interpolate(t[n],e[n]));for(;o>n;++n)i[n]=t[n];for(;a>n;++n)i[n]=e[n];return function(t){for(n=0;u>n;++n)i[n]=r[n](t);return i}},d3.interpolateObject=function(t,e){var n,r={},i={};for(n in t)n in e?r[n]=L(n)(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}};var Lr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;d3.interpolators=[d3.interpolateObject,function(t,e){return e instanceof Array&&d3.interpolateArray(t,e)},function(t,e){return("string"==typeof t||"string"==typeof e)&&d3.interpolateString(t+"",e+"")},function(t,e){return("string"==typeof e?Ir.has(e)||/^(#|rgb\(|hsl\()/.test(e):e instanceof R)&&d3.interpolateRgb(t,e)},function(t,e){return!isNaN(t=+t)&&!isNaN(e=+e)&&d3.interpolateNumber(t,e)}],R.prototype.toString=function(){return this.rgb()+""},d3.rgb=function(t,e,n){return 1===arguments.length?t instanceof q?z(t.r,t.g,t.b):P(""+t,z,V):z(~~t,~~e,~~n)};var Or=q.prototype=new R;Or.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b;return e||n||r?(e&&30>e&&(e=30),n&&30>n&&(n=30),r&&30>r&&(r=30),z(Math.min(255,Math.floor(e/t)),Math.min(255,Math.floor(n/t)),Math.min(255,Math.floor(r/t)))):z(30,30,30)},Or.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),z(Math.floor(t*this.r),Math.floor(t*this.g),Math.floor(t*this.b))},Or.hsl=function(){return B(this.r,this.g,this.b)},Or.toString=function(){return"#"+F(this.r)+F(this.g)+F(this.b)};var Ir=d3.map({aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"});Ir.forEach(function(t,e){Ir.set(t,P(e,z,V))}),d3.hsl=function(t,e,n){return 1===arguments.length?t instanceof G?U(t.h,t.s,t.l):P(""+t,B,U):U(+t,+e,+n)};var Rr=G.prototype=new R;Rr.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),U(this.h,this.s,this.l/t)},Rr.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),U(this.h,this.s,t*this.l)},Rr.rgb=function(){return V(this.h,this.s,this.l)},d3.hcl=function(t,e,n){return 1===arguments.length?t instanceof X?Y(t.h,t.c,t.l):tt(t instanceof J?t.l:(t=H((t=d3.rgb(t)).r,t.g,t.b)).l,t.a,t.b):Y(+t,+e,+n)};var zr=X.prototype=new R;zr.brighter=function(t){return Y(this.h,this.c,Math.min(100,this.l+qr*(arguments.length?t:1)))},zr.darker=function(t){return Y(this.h,this.c,Math.max(0,this.l-qr*(arguments.length?t:1)))},zr.rgb=function(){return Z(this.h,this.c,this.l).rgb()},d3.lab=function(t,e,n){return 1===arguments.length?t instanceof J?K(t.l,t.a,t.b):t instanceof X?Z(t.l,t.c,t.h):H((t=d3.rgb(t)).r,t.g,t.b):K(+t,+e,+n)};var qr=18,Fr=.95047,Pr=1,Br=1.08883,Hr=J.prototype=new R;Hr.brighter=function(t){return K(Math.min(100,this.l+qr*(arguments.length?t:1)),this.a,this.b)},Hr.darker=function(t){return K(Math.max(0,this.l-qr*(arguments.length?t:1)),this.a,this.b)},Hr.rgb=function(){return Q(this.l,this.a,this.b)};var $r=function(t,e){return e.querySelector(t)},Wr=function(t,e){return e.querySelectorAll(t)},Ur=document.documentElement,Gr=Ur.matchesSelector||Ur.webkitMatchesSelector||Ur.mozMatchesSelector||Ur.msMatchesSelector||Ur.oMatchesSelector,Vr=function(t,e){return Gr.call(t,e)};"function"==typeof Sizzle&&($r=function(t,e){return Sizzle(t,e)[0]||null},Wr=function(t,e){return Sizzle.uniqueSort(Sizzle(t,e))},Vr=Sizzle.matchesSelector);var Yr=[];d3.selection=function(){return Xr},d3.selection.prototype=Yr,Yr.select=function(t){var e,n,r,i,o=[];"function"!=typeof t&&(t=ot(t));for(var a=-1,u=this.length;u>++a;){o.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var c=-1,s=r.length;s>++c;)(i=r[c])?(e.push(n=t.call(i,i.__data__,c)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return it(o)},Yr.selectAll=function(t){var e,n,r=[];"function"!=typeof t&&(t=at(t));for(var i=-1,o=this.length;o>++i;)for(var a=this[i],u=-1,c=a.length;c>++u;)(n=a[u])&&(r.push(e=yr(t.call(n,n.__data__,u))),e.parentNode=n);return it(r)},Yr.attr=function(t,e){if(2>arguments.length){if("string"==typeof t){var n=this.node();return(t=d3.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(ut(e,t[e]));return this}return this.each(ut(t,e))},Yr.classed=function(t,e){if(2>arguments.length){if("string"==typeof t){var n=this.node(),r=(t=t.trim().split(/^|\s+/g)).length,i=-1;if(e=n.classList){for(;r>++i;)if(!e.contains(t[i]))return!1}else for(null!=(e=n.className).baseVal&&(e=e.baseVal);r>++i;)if(!ct(t[i]).test(e))return!1;return!0}for(e in t)this.each(st(e,t[e]));return this}return this.each(st(t,e))},Yr.style=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){for(n in 2>r&&(e=""),t)this.each(ft(n,t[n],e));return this}if(2>r)return getComputedStyle(this.node(),null).getPropertyValue(t);n=""}return this.each(ft(t,e,n))},Yr.property=function(t,e){if(2>arguments.length){if("string"==typeof t)return this.node()[t];for(e in t)this.each(ht(e,t[e]));return this}return this.each(ht(t,e))},Yr.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},Yr.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},Yr.append=function(t){return t=d3.ns.qualify(t),this.select(t.local?function(){return this.appendChild(document.createElementNS(t.space,t.local))}:function(){return this.appendChild(document.createElementNS(this.namespaceURI,t))})},Yr.insert=function(t,e){return t=d3.ns.qualify(t),this.select(t.local?function(){return this.insertBefore(document.createElementNS(t.space,t.local),$r(e,this))}:function(){return this.insertBefore(document.createElementNS(this.namespaceURI,t),$r(e,this))})},Yr.remove=function(){return this.each(function(){var t=this.parentNode;t&&t.removeChild(this)})},Yr.data=function(t,e){function n(t,n){var i,o,a,u=t.length,f=n.length,h=Math.min(u,f),d=Array(f),p=Array(f),g=Array(u);if(e){var v,y=new r,m=new r,_=[];for(i=-1;u>++i;)v=e.call(o=t[i],o.__data__,i),y.has(v)?g[i]=o:y.set(v,o),_.push(v);for(i=-1;f>++i;)v=e.call(n,a=n[i],i),(o=y.get(v))?(d[i]=o,o.__data__=a):m.has(v)||(p[i]=dt(a)),m.set(v,a),y.remove(v);for(i=-1;u>++i;)y.has(_[i])&&(g[i]=t[i])}else{for(i=-1;h>++i;)o=t[i],a=n[i],o?(o.__data__=a,d[i]=o):p[i]=dt(a);for(;f>i;++i)p[i]=dt(n[i]);for(;u>i;++i)g[i]=t[i]}p.update=d,p.parentNode=d.parentNode=g.parentNode=t.parentNode,c.push(p),s.push(d),l.push(g)}var i,o,a=-1,u=this.length;if(!arguments.length){for(t=Array(u=(i=this[0]).length);u>++a;)(o=i[a])&&(t[a]=o.__data__);return t}var c=yt([]),s=it([]),l=it([]);if("function"==typeof t)for(;u>++a;)n(i=this[a],t.call(i,i.parentNode.__data__,a));else for(;u>++a;)n(i=this[a],t);return s.enter=function(){return c},s.exit=function(){return l},s},Yr.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},Yr.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=pt(t));for(var o=0,a=this.length;a>o;o++){i.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var u=0,c=n.length;c>u;u++)(r=n[u])&&t.call(r,r.__data__,u)&&e.push(r)}return it(i)},Yr.order=function(){for(var t=-1,e=this.length;e>++t;)for(var n,r=this[t],i=r.length-1,o=r[i];--i>=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},Yr.sort=function(t){t=function(t){return arguments.length||(t=d3.ascending),function(e,n){return t(e&&e.__data__,n&&n.__data__)}}.apply(this,arguments);for(var e=-1,n=this.length;n>++e;)this[e].sort(t);return this.order()},Yr.on=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){for(n in 2>r&&(e=!1),t)this.each(gt(n,t[n],e));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(gt(t,e,n))},Yr.each=function(t){return vt(this,function(e,n,r){t.call(e,e.__data__,n,r)})},Yr.call=function(t){var e=yr(arguments);return t.apply(e[0]=this,e),this},Yr.empty=function(){return!this.node()},Yr.node=function(){for(var t=0,e=this.length;e>t;t++)for(var n=this[t],r=0,i=n.length;i>r;r++){var o=n[r];if(o)return o}return null},Yr.transition=function(){var t,e,n=Kr||++Qr,r=[],i=Object.create(ti);i.time=Date.now();for(var o=-1,a=this.length;a>++o;){r.push(t=[]);for(var u=this[o],c=-1,s=u.length;s>++c;)(e=u[c])&&_t(e,c,n,i),t.push(e)}return mt(r,n)};var Xr=it([[document]]);Xr[0].parentNode=Ur,d3.select=function(t){return"string"==typeof t?Xr.select(t):it([[t]])},d3.selectAll=function(t){return"string"==typeof t?Xr.selectAll(t):it([yr(t)])};var Zr=[];d3.selection.enter=yt,d3.selection.enter.prototype=Zr,Zr.append=Yr.append,Zr.insert=Yr.insert,Zr.empty=Yr.empty,Zr.node=Yr.node,Zr.select=function(t){for(var e,n,r,i,o,a=[],u=-1,c=this.length;c>++u;){r=(i=this[u]).update,a.push(e=[]),e.parentNode=i.parentNode;for(var s=-1,l=i.length;l>++s;)(o=i[s])?(e.push(r[s]=n=t.call(i.parentNode,o.__data__,s)),n.__data__=o.__data__):e.push(null)}return it(a)};var Kr,Jr=[],Qr=0,ti={ease:function(t){if(0>=t)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(.5>t?n:3*(t-e)+n-.75)},delay:0,duration:250};Jr.call=Yr.call,Jr.empty=Yr.empty,Jr.node=Yr.node,d3.transition=function(t){return arguments.length?Kr?t.transition():t:Xr.transition()},d3.transition.prototype=Jr,Jr.select=function(t){var e,n,r,i=this.id,o=[];"function"!=typeof t&&(t=ot(t));for(var a=-1,u=this.length;u>++a;){o.push(e=[]);for(var c=this[a],s=-1,l=c.length;l>++s;)(r=c[s])&&(n=t.call(r,r.__data__,s))?("__data__"in r&&(n.__data__=r.__data__),_t(n,s,i,r.__transition__[i]),e.push(n)):e.push(null)}return mt(o,i)},Jr.selectAll=function(t){var e,n,r,i,o,a=this.id,u=[];"function"!=typeof t&&(t=at(t));for(var c=-1,s=this.length;s>++c;)for(var l=this[c],f=-1,h=l.length;h>++f;)if(r=l[f]){o=r.__transition__[a],n=t.call(r,r.__data__,f),u.push(e=[]);for(var d=-1,p=n.length;p>++d;)_t(i=n[d],d,a,o),e.push(i)}return mt(u,a)},Jr.filter=function(t){var e,n,r=[];"function"!=typeof t&&(t=pt(t));for(var i=0,o=this.length;o>i;i++){r.push(e=[]);for(var a,u=0,c=(a=this[i]).length;c>u;u++)(n=a[u])&&t.call(n,n.__data__,u)&&e.push(n)}return mt(r,this.id,this.time).ease(this.ease())},Jr.attr=function(t,e){function n(){this.removeAttribute(o)}function r(){this.removeAttributeNS(o.space,o.local)}if(2>arguments.length){for(e in t)this.attr(e,t[e]);return this}var i=L(t),o=d3.ns.qualify(t);return xt(this,"attr."+t,e,function(t){return null==t?o.local?r:n:(t+="",o.local?function(){var e,n=this.getAttributeNS(o.space,o.local);return n!==t&&(e=i(n,t),function(t){this.setAttributeNS(o.space,o.local,e(t))})}:function(){var e,n=this.getAttribute(o);return n!==t&&(e=i(n,t),function(t){this.setAttribute(o,e(t))})})})},Jr.attrTween=function(t,e){var n=d3.ns.qualify(t);return this.tween("attr."+t,n.local?function(t,r){var i=e.call(this,t,r,this.getAttributeNS(n.space,n.local));return i&&function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,r){var i=e.call(this,t,r,this.getAttribute(n));return i&&function(t){this.setAttribute(n,i(t))}})},Jr.style=function(t,e,n){function r(){this.style.removeProperty(t)}var i=arguments.length;if(3>i){if("string"!=typeof t){for(n in 2>i&&(e=""),t)this.style(n,t[n],e);return this}n=""}var o=L(t);return xt(this,"style."+t,e,function(e){return null==e?r:(e+="",function(){var r,i=getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(r=o(i,e),function(e){this.style.setProperty(t,r(e),n)})})})},Jr.styleTween=function(t,e,n){return 3>arguments.length&&(n=""),this.tween("style."+t,function(r,i){var o=e.call(this,r,i,getComputedStyle(this,null).getPropertyValue(t));return o&&function(e){this.style.setProperty(t,o(e),n)}})},Jr.text=function(t){return xt(this,"text",t,bt)},Jr.remove=function(){return this.each("end.transition",function(){var t;!this.__transition__&&(t=this.parentNode)&&t.removeChild(this)})},Jr.ease=function(t){var e=this.id;return 1>arguments.length?this.node().__transition__[e].ease:("function"!=typeof t&&(t=d3.ease.apply(d3,arguments)),vt(this,function(n){n.__transition__[e].ease=t}))},Jr.delay=function(t){var e=this.id;return vt(this,"function"==typeof t?function(n,r,i){n.__transition__[e].delay=0|t.call(n,n.__data__,r,i)}:(t|=0,function(n){n.__transition__[e].delay=t}))},Jr.duration=function(t){var e=this.id;return vt(this,"function"==typeof t?function(n,r,i){n.__transition__[e].duration=Math.max(1,0|t.call(n,n.__data__,r,i))}:(t=Math.max(1,0|t),function(n){n.__transition__[e].duration=t}))},Jr.each=function(t,e){var n=this.id;if(2>arguments.length){var r=ti,i=Kr;Kr=n,vt(this,function(e,r,i){ti=e.__transition__[n],t.call(e,e.__data__,r,i)}),ti=r,Kr=i}else vt(this,function(r){r.__transition__[n].event.on(t,e)});return this},Jr.transition=function(){for(var t,e,n,r=this.id,i=++Qr,o=[],a=0,u=this.length;u>a;a++){o.push(t=[]);for(var c,s=0,l=(c=this[a]).length;l>s;s++)(e=c[s])&&((n=Object.create(e.__transition__[r])).delay+=n.duration,_t(e,s,i,n)),t.push(e)}return mt(o,i)},Jr.tween=function(t,e){var n=this.id;return 2>arguments.length?this.node().__transition__[n].tween.get(t):vt(this,null==e?function(e){e.__transition__[n].tween.remove(t)}:function(r){r.__transition__[n].tween.set(t,e)})};var ei,ni,ri=0,ii={},oi=null;d3.timer=function(t,e,n){if(3>arguments.length){if(2>arguments.length)e=0;else if(!isFinite(e))return;n=Date.now()}var r=ii[t.id];r&&r.callback===t?(r.then=n,r.delay=e):ii[t.id=++ri]=oi={callback:t,then:n,delay:e,next:oi},ei||(ni=clearTimeout(ni),ei=1,ai(wt))},d3.timer.flush=function(){for(var t,e=Date.now(),n=oi;n;)t=e-n.then,n.delay||(n.flush=n.callback(t)),n=n.next;Et()};var ai=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,17)};d3.mouse=function(t){return kt(t,C())};var ui=/WebKit/.test(navigator.userAgent)?-1:0;d3.touches=function(t,e){return 2>arguments.length&&(e=C().touches),e?yr(e).map(function(e){var n=kt(t,e);return n.identifier=e.identifier,n}):[]},d3.scale={},d3.scale.linear=function(){return function t(e,n,r,i){function o(){var t=Math.min(e.length,n.length)>2?Rt:It,o=i?I:O;return u=t(e,n,o,r),c=t(n,e,o,d3.interpolate),a}function a(t){return u(t)}var u,c;return a.invert=function(t){return c(t)},a.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},a.range=function(t){return arguments.length?(n=t,o()):n},a.rangeRound=function(t){return a.range(t).interpolate(d3.interpolateRound)},a.clamp=function(t){return arguments.length?(i=t,o()):i},a.interpolate=function(t){return arguments.length?(r=t,o()):r},a.ticks=function(t){return Lt(e,t)},a.tickFormat=function(t){return Ot(e,t)},a.nice=function(){return Ct(e,jt),o()},a.copy=function(){return t(e,n,r,i)},o()}([0,1],[0,1],d3.interpolate,!1)},d3.scale.log=function(){return function t(e,n){function r(t){return e(n(t))}var i=n.pow;return r.invert=function(t){return i(e.invert(t))},r.domain=function(t){return arguments.length?(n=0>t[0]?qt:zt,i=n.pow,e.domain(t.map(n)),r):e.domain().map(i)},r.nice=function(){return e.domain(Ct(e.domain(),Tt)),r},r.ticks=function(){var t=Nt(e.domain()),r=[];if(t.every(isFinite)){var o=Math.floor(t[0]),a=Math.ceil(t[1]),u=i(t[0]),c=i(t[1]);if(n===qt)for(r.push(i(o));a>o++;)for(var s=9;s>0;s--)r.push(i(o)*s);else{for(;a>o;o++)for(s=1;10>s;s++)r.push(i(o)*s);r.push(i(o))}for(o=0;u>r[o];o++);for(a=r.length;r[a-1]>c;a--);r=r.slice(o,a)}return r},r.tickFormat=function(t,e){if(2>arguments.length&&(e=ci),!arguments.length)return e;var o,a=Math.max(.1,t/r.ticks().length),u=n===qt?(o=-1e-12,Math.floor):(o=1e-12,Math.ceil);return function(t){return a>=t/i(u(n(t)+o))?e(t):""}},r.copy=function(){return t(e.copy(),n)},St(r,e)}(d3.scale.linear(),zt)};var ci=d3.format(".0e");zt.pow=function(t){return Math.pow(10,t)},qt.pow=function(t){return-Math.pow(10,-t)},d3.scale.pow=function(){return function t(e,n){function r(t){return e(i(t))}var i=Ft(n),o=Ft(1/n);return r.invert=function(t){return o(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t.map(i)),r):e.domain().map(o)},r.ticks=function(t){return Lt(r.domain(),t)},r.tickFormat=function(t){return Ot(r.domain(),t)},r.nice=function(){return r.domain(Ct(r.domain(),jt))},r.exponent=function(t){if(!arguments.length)return n;var e=r.domain();return i=Ft(n=t),o=Ft(1/n),r.domain(e)},r.copy=function(){return t(e.copy(),n)},St(r,e)}(d3.scale.linear(),1)},d3.scale.sqrt=function(){return d3.scale.pow().exponent(.5)},d3.scale.ordinal=function(){return function t(e,n){function i(t){return u[((a.get(t)||a.set(t,e.push(t)))-1)%u.length]}function o(t,n){return d3.range(e.length).map(function(e){return t+n*e})}var a,u,c;return i.domain=function(t){if(!arguments.length)return e;e=[],a=new r;for(var o,u=-1,c=t.length;c>++u;)a.has(o=t[u])||a.set(o,e.push(o));return i[n.t].apply(i,n.a)},i.range=function(t){return arguments.length?(u=t,c=0,n={t:"range",a:arguments},i):u},i.rangePoints=function(t,r){2>arguments.length&&(r=0);var a=t[0],s=t[1],l=(s-a)/(Math.max(1,e.length-1)+r);return u=o(2>e.length?(a+s)/2:a+l*r/2,l),c=0,n={t:"rangePoints",a:arguments},i},i.rangeBands=function(t,r,a){2>arguments.length&&(r=0),3>arguments.length&&(a=r);var s=t[1]<t[0],l=t[s-0],f=(t[1-s]-l)/(e.length-r+2*a);return u=o(l+f*a,f),s&&u.reverse(),c=f*(1-r),n={t:"rangeBands",a:arguments},i},i.rangeRoundBands=function(t,r,a){2>arguments.length&&(r=0),3>arguments.length&&(a=r);var s=t[1]<t[0],l=t[s-0],f=t[1-s],h=Math.floor((f-l)/(e.length-r+2*a)),d=f-l-(e.length-r)*h;return u=o(l+Math.round(d/2),h),s&&u.reverse(),c=Math.round(h*(1-r)),n={t:"rangeRoundBands",a:arguments},i},i.rangeBand=function(){return c},i.rangeExtent=function(){return Nt(n.a[0])},i.copy=function(){return t(e,n)},i.domain(e)}([],{t:"range",a:[[]]})},d3.scale.category10=function(){return d3.scale.ordinal().range(si)},d3.scale.category20=function(){return d3.scale.ordinal().range(li)},d3.scale.category20b=function(){return d3.scale.ordinal().range(fi)},d3.scale.category20c=function(){return d3.scale.ordinal().range(hi)};var si=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],li=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],fi=["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"],hi=["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"];d3.scale.quantile=function(){return function t(e,n){function r(){var t=0,r=n.length;for(o=[];r>++t;)o[t-1]=d3.quantile(e,t/r);return i}function i(t){return isNaN(t=+t)?NaN:n[d3.bisect(o,t)]}var o;return i.domain=function(t){return arguments.length?(e=t.filter(function(t){return!isNaN(t)}).sort(d3.ascending),r()):e},i.range=function(t){return arguments.length?(n=t,r()):n},i.quantiles=function(){return o},i.copy=function(){return t(e,n)},r()}([],[])},d3.scale.quantize=function(){return function t(e,n,r){function i(t){return r[Math.max(0,Math.min(u,Math.floor(a*(t-e))))]}function o(){return a=r.length/(n-e),u=r.length-1,i}var a,u;return i.domain=function(t){return arguments.length?(e=+t[0],n=+t[t.length-1],o()):[e,n]},i.range=function(t){return arguments.length?(r=t,o()):r},i.copy=function(){return t(e,n,r)},o()}(0,1,[0,1])},d3.scale.threshold=function(){return function t(e,n){function r(t){return n[d3.bisect(e,t)]}return r.domain=function(t){return arguments.length?(e=t,r):e},r.range=function(t){return arguments.length?(n=t,r):n},r.copy=function(){return t(e,n)},r}([.5],[0,1])},d3.scale.identity=function(){return function t(e){function n(t){return+t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=t.map(n),n):e},n.ticks=function(t){return Lt(e,t)},n.tickFormat=function(t){return Ot(e,t)},n.copy=function(){return t(e)},n}([0,1])},d3.svg={},d3.svg.arc=function(){function t(){var t=e.apply(this,arguments),o=n.apply(this,arguments),a=r.apply(this,arguments)+di,u=i.apply(this,arguments)+di,c=(a>u&&(c=a,a=u,u=c),u-a),s=dr>c?"0":"1",l=Math.cos(a),f=Math.sin(a),h=Math.cos(u),d=Math.sin(u);return c>=pi?t?"M0,"+o+"A"+o+","+o+" 0 1,1 0,"+-o+"A"+o+","+o+" 0 1,1 0,"+o+"M0,"+t+"A"+t+","+t+" 0 1,0 0,"+-t+"A"+t+","+t+" 0 1,0 0,"+t+"Z":"M0,"+o+"A"+o+","+o+" 0 1,1 0,"+-o+"A"+o+","+o+" 0 1,1 0,"+o+"Z":t?"M"+o*l+","+o*f+"A"+o+","+o+" 0 "+s+",1 "+o*h+","+o*d+"L"+t*h+","+t*d+"A"+t+","+t+" 0 "+s+",0 "+t*l+","+t*f+"Z":"M"+o*l+","+o*f+"A"+o+","+o+" 0 "+s+",1 "+o*h+","+o*d+"L0,0Z"}var e=Pt,n=Bt,r=Ht,i=$t;return t.innerRadius=function(n){return arguments.length?(e=a(n),t):e},t.outerRadius=function(e){return arguments.length?(n=a(e),t):n},t.startAngle=function(e){return arguments.length?(r=a(e),t):r},t.endAngle=function(e){return arguments.length?(i=a(e),t):i},t.centroid=function(){var t=(e.apply(this,arguments)+n.apply(this,arguments))/2,o=(r.apply(this,arguments)+i.apply(this,arguments))/2+di;return[Math.cos(o)*t,Math.sin(o)*t]},t};var di=-dr/2,pi=2*dr-1e-6;d3.svg.line=function(){return Wt(i)};var gi=d3.map({linear:Vt,"linear-closed":function(t){return Vt(t)+"Z"},"step-before":Yt,"step-after":Xt,basis:Jt,"basis-open":function(t){if(4>t.length)return Vt(t);for(var e,n=[],r=-1,i=t.length,o=[0],a=[0];3>++r;)e=t[r],o.push(e[0]),a.push(e[1]);for(n.push(Qt(mi,o)+","+Qt(mi,a)),--r;i>++r;)e=t[r],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),te(n,o,a);return n.join("")},"basis-closed":function(t){for(var e,n,r=-1,i=t.length,o=i+4,a=[],u=[];4>++r;)n=t[r%i],a.push(n[0]),u.push(n[1]);for(e=[Qt(mi,a),",",Qt(mi,u)],--r;o>++r;)n=t[r%i],a.shift(),a.push(n[0]),u.shift(),u.push(n[1]),te(e,a,u);return e.join("")},bundle:function(t,e){var n=t.length-1;if(n)for(var r,i,o=t[0][0],a=t[0][1],u=t[n][0]-o,c=t[n][1]-a,s=-1;n>=++s;)i=s/n,(r=t[s])[0]=e*r[0]+(1-e)*(o+i*u),r[1]=e*r[1]+(1-e)*(a+i*c);return Jt(t)},cardinal:function(t,e){return 3>t.length?Vt(t):t[0]+Zt(t,Kt(t,e))},"cardinal-open":function(t,e){return 4>t.length?Vt(t):t[1]+Zt(t.slice(1,t.length-1),Kt(t,e))},"cardinal-closed":function(t,e){return 3>t.length?Vt(t):t[0]+Zt((t.push(t[0]),t),Kt([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return 3>t.length?Vt(t):t[0]+Zt(t,ne(t))}});gi.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var vi=[0,2/3,1/3,0],yi=[0,1/3,2/3,0],mi=[0,1/6,2/3,1/6];d3.svg.line.radial=function(){var t=Wt(re);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Yt.reverse=Xt,Xt.reverse=Yt,d3.svg.area=function(){return ie(i)},d3.svg.area.radial=function(){var t=ie(re);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},d3.svg.chord=function(){function n(t,e){var n,a,s=r(this,u,t,e),l=r(this,c,t,e);return"M"+s.p0+i(s.r,s.p1,s.a1-s.a0)+(a=l,(n=s).a0==a.a0&&n.a1==a.a1?o(s.r,s.p1,s.r,s.p0):o(s.r,s.p1,l.r,l.p0)+i(l.r,l.p1,l.a1-l.a0)+o(l.r,l.p1,s.r,s.p0))+"Z"}function r(t,e,n,r){var i=e.call(t,n,r),o=s.call(t,i,r),a=l.call(t,i,r)+di,u=f.call(t,i,r)+di;return{r:o,a0:a,a1:u,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos(u),o*Math.sin(u)]}}function i(t,e,n){return"A"+t+","+t+" 0 "+ +(n>dr)+",1 "+e}function o(t,e,n,r){return"Q 0,0 "+r}var u=e,c=t,s=oe,l=Ht,f=$t;return n.radius=function(t){return arguments.length?(s=a(t),n):s},n.source=function(t){return arguments.length?(u=a(t),n):u},n.target=function(t){return arguments.length?(c=a(t),n):c},n.startAngle=function(t){return arguments.length?(l=a(t),n):l},n.endAngle=function(t){return arguments.length?(f=a(t),n):f},n},d3.svg.diagonal=function(){function n(t,e){var n=r.call(this,t,e),a=i.call(this,t,e),u=(n.y+a.y)/2,c=[n,{x:n.x,y:u},{x:a.x,y:u},a];return"M"+(c=c.map(o))[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var r=e,i=t,o=ae;return n.source=function(t){return arguments.length?(r=a(t),n):r},n.target=function(t){return arguments.length?(i=a(t),n):i},n.projection=function(t){return arguments.length?(o=t,n):o},n},d3.svg.diagonal.radial=function(){var t=d3.svg.diagonal(),e=ae,n=t.projection;return t.projection=function(t){return arguments.length?n((r=e=t,function(){var t=r.apply(this,arguments),e=t[0],n=t[1]+di;return[e*Math.cos(n),e*Math.sin(n)]})):e;var r},t},d3.svg.symbol=function(){function t(t,r){return(_i.get(e.call(this,t,r))||se)(n.call(this,t,r))}var e=ce,n=ue;return t.type=function(n){return arguments.length?(e=a(n),t):e},t.size=function(e){return arguments.length?(n=a(e),t):n},t};var _i=d3.map({circle:se,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*xi)),n=e*xi;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/bi),n=e*bi/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/bi),n=e*bi/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});d3.svg.symbolTypes=_i.keys();var bi=Math.sqrt(3),xi=Math.tan(30*gr);d3.svg.axis=function(){function t(t){t.each(function(){var t,f=d3.select(this),h=null==s?n.ticks?n.ticks.apply(n,c):n.domain():s,d=null==e?n.tickFormat?n.tickFormat.apply(n,c):String:e,p=function(t,e,n){if(r=[],n&&e.length>1){for(var r,i,o,a=Nt(t.domain()),u=-1,c=e.length,s=(e[1]-e[0])/++n;c>++u;)for(i=n;--i>0;)(o=+e[u]-i*s)>=a[0]&&r.push(o);for(--u,i=0;n>++i&&(o=+e[u]+i*s)<a[1];)r.push(o)}return r}(n,h,l),g=f.selectAll(".minor").data(p,String),v=g.enter().insert("line","g").attr("class","tick minor").style("opacity",1e-6),y=d3.transition(g.exit()).style("opacity",1e-6).remove(),m=d3.transition(g).style("opacity",1),_=f.selectAll("g").data(h,String),b=_.enter().insert("g","path").style("opacity",1e-6),x=d3.transition(_.exit()).style("opacity",1e-6).remove(),w=d3.transition(_).style("opacity",1),E=At(n),k=f.selectAll(".domain").data([0]),M=d3.transition(k),N=n.copy(),A=this.__chart__||N;this.__chart__=N,k.enter().append("path").attr("class","domain"),b.append("line").attr("class","tick"),b.append("text");var C=b.select("line"),T=w.select("line"),S=_.select("text").text(d),j=b.select("text"),D=w.select("text");switch(r){case"bottom":t=le,v.attr("y2",o),m.attr("x2",0).attr("y2",o),C.attr("y2",i),j.attr("y",Math.max(i,0)+u),T.attr("x2",0).attr("y2",i),D.attr("x",0).attr("y",Math.max(i,0)+u),S.attr("dy",".71em").style("text-anchor","middle"),M.attr("d","M"+E[0]+","+a+"V0H"+E[1]+"V"+a);break;case"top":t=le,v.attr("y2",-o),m.attr("x2",0).attr("y2",-o),C.attr("y2",-i),j.attr("y",-(Math.max(i,0)+u)),T.attr("x2",0).attr("y2",-i),D.attr("x",0).attr("y",-(Math.max(i,0)+u)),S.attr("dy","0em").style("text-anchor","middle"),M.attr("d","M"+E[0]+","+-a+"V0H"+E[1]+"V"+-a);break;case"left":t=fe,v.attr("x2",-o),m.attr("x2",-o).attr("y2",0),C.attr("x2",-i),j.attr("x",-(Math.max(i,0)+u)),T.attr("x2",-i).attr("y2",0),D.attr("x",-(Math.max(i,0)+u)).attr("y",0),S.attr("dy",".32em").style("text-anchor","end"),M.attr("d","M"+-a+","+E[0]+"H0V"+E[1]+"H"+-a);break;case"right":t=fe,v.attr("x2",o),m.attr("x2",o).attr("y2",0),C.attr("x2",i),j.attr("x",Math.max(i,0)+u),T.attr("x2",i).attr("y2",0),D.attr("x",Math.max(i,0)+u).attr("y",0),S.attr("dy",".32em").style("text-anchor","start"),M.attr("d","M"+a+","+E[0]+"H0V"+E[1]+"H"+a)}if(n.ticks)b.call(t,A),w.call(t,N),x.call(t,N),v.call(t,A),m.call(t,N),y.call(t,N);else{var L=N.rangeBand()/2,O=function(t){return N(t)+L};b.call(t,O),w.call(t,O)}})}var e,n=d3.scale.linear(),r="bottom",i=6,o=6,a=6,u=3,c=[10],s=null,l=0;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(r=e,t):r},t.ticks=function(){return arguments.length?(c=arguments,t):c},t.tickValues=function(e){return arguments.length?(s=e,t):s},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e,n){if(!arguments.length)return i;var r=arguments.length-1;return i=+e,o=r>1?+n:i,a=r>0?+arguments[r]:i,t},t.tickPadding=function(e){return arguments.length?(u=+e,t):u},t.tickSubdivide=function(e){return arguments.length?(l=+e,t):l},t},d3.svg.brush=function(){function t(o){o.each(function(){var o,a=d3.select(this),l=a.selectAll(".background").data([0]),f=a.selectAll(".extent").data([0]),h=a.selectAll(".resize").data(s,String);a.style("pointer-events","all").on("mousedown.brush",i).on("touchstart.brush",i),l.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),f.enter().append("rect").attr("class","extent").style("cursor","move"),h.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return wi[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),h.style("display",t.empty()?"none":null),h.exit().remove(),u&&(o=At(u),l.attr("x",o[0]).attr("width",o[1]-o[0]),n(a)),c&&(o=At(c),l.attr("y",o[0]).attr("height",o[1]-o[0]),r(a)),e(a)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+l[+/e$/.test(t)][0]+","+l[+/^s/.test(t)][1]+")"})}function n(t){t.select(".extent").attr("x",l[0][0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1][0]-l[0][0])}function r(t){t.select(".extent").attr("y",l[0][1]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1][1]-l[0][1])}function i(){function i(){var t=d3.event.changedTouches;return t?d3.touches(g,t)[0]:d3.mouse(g)}function s(){var t=i(),o=!1;p&&(t[0]+=p[0],t[1]+=p[1]),w||(d3.event.altKey?(d||(d=[(l[0][0]+l[1][0])/2,(l[0][1]+l[1][1])/2]),E[0]=l[+(t[0]<d[0])][0],E[1]=l[+(t[1]<d[1])][1]):d=null),b&&f(t,u,0)&&(n(m),o=!0),x&&f(t,c,1)&&(r(m),o=!0),o&&(e(m),y({type:"brush",mode:w?"move":"resize"}))}function f(t,e,n){var r,i,a=At(e),u=a[0],c=a[1],s=E[n],f=l[1][n]-l[0][n];return w&&(u-=s,c-=f+s),r=Math.max(u,Math.min(c,t[n])),w?i=(r+=s)+f:(d&&(s=Math.max(u,Math.min(c,2*d[n]-r))),r>s?(i=r,r=s):i=s),l[0][n]!==r||l[1][n]!==i?(o=null,l[0][n]=r,l[1][n]=i,!0):void 0}function h(){s(),m.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),d3.select("body").style("cursor",null),k.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),y({type:"brushend"}),A()}var d,p,g=this,v=d3.select(d3.event.target),y=a.of(g,arguments),m=d3.select(g),_=v.datum(),b=!/^(n|s)$/.test(_)&&u,x=!/^(e|w)$/.test(_)&&c,w=v.classed("extent"),E=i(),k=d3.select(window).on("mousemove.brush",s).on("mouseup.brush",h).on("touchmove.brush",s).on("touchend.brush",h).on("keydown.brush",function(){32==d3.event.keyCode&&(w||(d=null,E[0]-=l[1][0],E[1]-=l[1][1],w=2),A())}).on("keyup.brush",function(){32==d3.event.keyCode&&2==w&&(E[0]+=l[1][0],E[1]+=l[1][1],w=0,A())});if(w)E[0]=l[0][0]-E[0],E[1]=l[0][1]-E[1];else if(_){var M=+/w$/.test(_),N=+/^n/.test(_);p=[l[1-M][0]-E[0],l[1-N][1]-E[1]],E[0]=l[M][0],E[1]=l[N][1]}else d3.event.altKey&&(d=E.slice());m.style("pointer-events","none").selectAll(".resize").style("display",null),d3.select("body").style("cursor",v.style("cursor")),y({type:"brushstart"}),s(),A()}var o,a=T(t,"brushstart","brush","brushend"),u=null,c=null,s=Ei[0],l=[[0,0],[0,0]];return t.x=function(e){return arguments.length?(s=Ei[!(u=e)<<1|!c],t):u},t.y=function(e){return arguments.length?(s=Ei[!u<<1|!(c=e)],t):c},t.extent=function(e){var n,r,i,a,s;return arguments.length?(o=[[0,0],[0,0]],u&&(n=e[0],r=e[1],c&&(n=n[0],r=r[0]),o[0][0]=n,o[1][0]=r,u.invert&&(n=u(n),r=u(r)),n>r&&(s=n,n=r,r=s),l[0][0]=0|n,l[1][0]=0|r),c&&(i=e[0],a=e[1],u&&(i=i[1],a=a[1]),o[0][1]=i,o[1][1]=a,c.invert&&(i=c(i),a=c(a)),i>a&&(s=i,i=a,a=s),l[0][1]=0|i,l[1][1]=0|a),t):(e=o||l,u&&(n=e[0][0],r=e[1][0],o||(n=l[0][0],r=l[1][0],u.invert&&(n=u.invert(n),r=u.invert(r)),n>r&&(s=n,n=r,r=s))),c&&(i=e[0][1],a=e[1][1],o||(i=l[0][1],a=l[1][1],c.invert&&(i=c.invert(i),a=c.invert(a)),i>a&&(s=i,i=a,a=s))),u&&c?[[n,i],[r,a]]:u?[n,r]:c&&[i,a])},t.clear=function(){return o=null,l[0][0]=l[0][1]=l[1][0]=l[1][1]=0,t},t.empty=function(){return u&&l[0][0]===l[1][0]||c&&l[0][1]===l[1][1]},d3.rebind(t,a,"on")};var wi={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ei=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];d3.behavior={},d3.behavior.drag=function(){function t(){this.on("mousedown.drag",e).on("touchstart.drag",e)}function e(){function t(){var t=a.parentNode;return null!=s?d3.touches(t).filter(function(t){return t.identifier===s})[0]:d3.mouse(t)}function e(){u({type:"dragend"}),f&&(A(),d3.event.target===c&&h.on("click.drag",i,!0)),h.on(null!=s?"touchmove.drag-"+s:"mousemove.drag",null).on(null!=s?"touchend.drag-"+s:"mouseup.drag",null)}function i(){A(),h.on("click.drag",null)}var o,a=this,u=n.of(a,arguments),c=d3.event.target,s=d3.event.touches?d3.event.changedTouches[0].identifier:null,l=t(),f=0,h=d3.select(window).on(null!=s?"touchmove.drag-"+s:"mousemove.drag",function(){if(!a.parentNode)return e();var n=t(),r=n[0]-l[0],i=n[1]-l[1];f|=r|i,l=n,A(),u({type:"drag",x:n[0]+o[0],y:n[1]+o[1],dx:r,dy:i})}).on(null!=s?"touchend.drag-"+s:"mouseup.drag",e,!0);r?o=[(o=r.apply(a,arguments)).x-l[0],o.y-l[1]]:o=[0,0],null==s&&A(),u({type:"dragstart"})}var n=T(t,"drag","dragstart","dragend"),r=null;return t.origin=function(e){return arguments.length?(r=e,t):r},d3.rebind(t,n,"on")},d3.behavior.zoom=function(){function t(){this.on("mousedown.zoom",a).on("mousewheel.zoom",u).on("mousemove.zoom",c).on("DOMMouseScroll.zoom",u).on("dblclick.zoom",s).on("touchstart.zoom",l).on("touchmove.zoom",f).on("touchend.zoom",l)}function e(t){return[(t[0]-_[0])/b,(t[1]-_[1])/b]}function n(t){b=Math.max(x[0],Math.min(x[1],t))}function r(t,e){var n;e=[(n=e)[0]*b+_[0],n[1]*b+_[1]],_[0]+=t[0]-e[0],_[1]+=t[1]-e[1]}function i(){g&&g.domain(p.range().map(function(t){return(t-_[0])/b}).map(p.invert)),y&&y.domain(v.range().map(function(t){return(t-_[1])/b}).map(v.invert))}function o(t){i(),d3.event.preventDefault(),t({type:"zoom",scale:b,translate:_})}function a(){function t(){A(),c.on("click.zoom",null)}var n=this,i=w.of(n,arguments),a=d3.event.target,u=0,c=d3.select(window).on("mousemove.zoom",function(){u=1,r(d3.mouse(n),s),o(i)}).on("mouseup.zoom",function(){u&&A(),c.on("mousemove.zoom",null).on("mouseup.zoom",null),u&&d3.event.target===a&&c.on("click.zoom",t,!0)}),s=e(d3.mouse(n));window.focus(),A()}function u(){h||(h=e(d3.mouse(this))),n(Math.pow(2,.002*function(){ki||(ki=d3.select("body").append("div").style("visibility","hidden").style("top",0).style("height",0).style("width",0).style("overflow-y","scroll").append("div").style("height","2000px").node().parentNode);var t,e=d3.event;try{ki.scrollTop=1e3,ki.dispatchEvent(e),t=1e3-ki.scrollTop}catch(n){t=e.wheelDelta||5*-e.detail}return t}())*b),r(d3.mouse(this),h),o(w.of(this,arguments))}function c(){h=null}function s(){var t=d3.mouse(this),i=e(t),a=Math.log(b)/Math.LN2;n(Math.pow(2,d3.event.shiftKey?Math.ceil(a)-1:Math.floor(a)+1)),r(t,i),o(w.of(this,arguments))}function l(){var t=d3.touches(this),i=Date.now();if(d=b,h={},t.forEach(function(t){h[t.identifier]=e(t)}),A(),1===t.length){if(500>i-m){var a=t[0],u=e(t[0]);n(2*b),r(a,u),o(w.of(this,arguments))}m=i}}function f(){var t=d3.touches(this),e=t[0],i=h[e.identifier];if(a=t[1]){var a,u=h[a.identifier];e=[(e[0]+a[0])/2,(e[1]+a[1])/2],i=[(i[0]+u[0])/2,(i[1]+u[1])/2],n(d3.event.scale*d)}r(e,i),m=null,o(w.of(this,arguments))}var h,d,p,g,v,y,m,_=[0,0],b=1,x=Mi,w=T(t,"zoom");return t.translate=function(e){return arguments.length?(_=e.map(Number),i(),t):_},t.scale=function(e){return arguments.length?(b=+e,i(),t):b},t.scaleExtent=function(e){return arguments.length?(x=null==e?Mi:e.map(Number),t):x},t.x=function(e){return arguments.length?(g=e,p=e.copy(),_=[0,0],b=1,t):g},t.y=function(e){return arguments.length?(y=e,v=e.copy(),_=[0,0],b=1,t):y},d3.rebind(t,w,"on")};var ki,Mi=[0,1/0];d3.layout={},d3.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;r>++n;)e.push(he(t[n]));return e}},d3.layout.chord=function(){function t(){var t,s,f,h,d,p={},g=[],v=d3.range(o),y=[];for(n=[],r=[],t=0,h=-1;o>++h;){for(s=0,d=-1;o>++d;)s+=i[h][d];g.push(s),y.push(d3.range(o)),t+=s}for(a&&v.sort(function(t,e){return a(g[t],g[e])}),u&&y.forEach(function(t,e){t.sort(function(t,n){return u(i[e][t],i[e][n])})}),t=(2*dr-l*o)/t,s=0,h=-1;o>++h;){for(f=s,d=-1;o>++d;){var m=v[h],_=y[m][d],b=i[m][_],x=s,w=s+=b*t;p[m+"-"+_]={index:m,subindex:_,startAngle:x,endAngle:w,value:b}}r[m]={index:m,startAngle:f,endAngle:s,value:(s-f)/t},s+=l}for(h=-1;o>++h;)for(d=h-1;o>++d;){var E=p[h+"-"+d],k=p[d+"-"+h];(E.value||k.value)&&n.push(E.value<k.value?{source:k,target:E}:{source:E,target:k})}c&&e()}function e(){n.sort(function(t,e){return c((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,r,i,o,a,u,c,s={},l=0;return s.matrix=function(t){return arguments.length?(o=(i=t)&&i.length,n=r=null,s):i},s.padding=function(t){return arguments.length?(l=t,n=r=null,s):l},s.sortGroups=function(t){return arguments.length?(a=t,n=r=null,s):a},s.sortSubgroups=function(t){return arguments.length?(u=t,n=null,s):u},s.sortChords=function(t){return arguments.length?(c=t,n&&e(),s):c},s.chords=function(){return n||t(),n},s.groups=function(){return r||t(),r},s},d3.layout.force=function(){function t(t){return function(e,n,r,i){if(e.point!==t){var o=e.cx-t.x,a=e.cy-t.y,u=1/Math.sqrt(o*o+a*a);if(y>(i-n)*u){var c=e.charge*u*u;return t.px-=o*c,t.py-=a*c,!0}if(e.point&&isFinite(u)){c=e.pointCharge*u*u;t.px-=o*c,t.py-=a*c}}return!e.charge}}function e(t){t.px=d3.event.x,t.py=d3.event.y,s.resume()}var n,r,o,u,c,s={},l=d3.dispatch("start","tick","end"),f=[1,1],h=.9,d=me,p=_e,g=-30,v=.1,y=.8,m=[],_=[];return s.tick=function(){if(.005>(r*=.99))return l.end({type:"end",alpha:r=0}),!0;var e,n,i,a,s,d,p,y,b,x=m.length,w=_.length;for(n=0;w>n;++n)a=(i=_[n]).source,(d=(y=(s=i.target).x-a.x)*y+(b=s.y-a.y)*b)&&(y*=d=r*u[n]*((d=Math.sqrt(d))-o[n])/d,b*=d,s.x-=y*(p=a.weight/(s.weight+a.weight)),s.y-=b*p,a.x+=y*(p=1-p),a.y+=b*p);if((p=r*v)&&(y=f[0]/2,b=f[1]/2,n=-1,p))for(;x>++n;)(i=m[n]).x+=(y-i.x)*p,i.y+=(b-i.y)*p;if(g)for(function t(e,n,r){var i=0,o=0;if(e.charge=0,!e.leaf)for(var a,u=e.nodes,c=u.length,s=-1;c>++s;)null!=(a=u[s])&&(t(a,n,r),e.charge+=a.charge,i+=a.charge*a.cx,o+=a.charge*a.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var l=n*r[e.point.index];e.charge+=e.pointCharge=l,i+=l*e.point.x,o+=l*e.point.y}e.cx=i/e.charge,e.cy=o/e.charge}(e=d3.geom.quadtree(m),r,c),n=-1;x>++n;)(i=m[n]).fixed||e.visit(t(i));for(n=-1;x>++n;)(i=m[n]).fixed?(i.x=i.px,i.y=i.py):(i.x-=(i.px-(i.px=i.x))*h,i.y-=(i.py-(i.py=i.y))*h);l.tick({type:"tick",alpha:r})},s.nodes=function(t){return arguments.length?(m=t,s):m},s.links=function(t){return arguments.length?(_=t,s):_},s.size=function(t){return arguments.length?(f=t,s):f},s.linkDistance=function(t){return arguments.length?(d=a(t),s):d},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(p=a(t),s):p},s.friction=function(t){return arguments.length?(h=t,s):h},s.charge=function(t){return arguments.length?(g="function"==typeof t?t:+t,s):g},s.gravity=function(t){return arguments.length?(v=t,s):v},s.theta=function(t){return arguments.length?(y=t,s):y},s.alpha=function(t){return arguments.length?(r?r=t>0?t:0:t>0&&(l.start({type:"start",alpha:r=t}),d3.timer(s.tick)),s):r},s.start=function(){function t(t,i){for(var o,u=function(){if(!r){for(r=[],n=0;a>n;++n)r[n]=[];for(n=0;l>n;++n){var t=_[n];r[t.source.index].push(t.target),r[t.target.index].push(t.source)}}return r[e]}(),c=-1,s=u.length;s>++c;)if(!isNaN(o=u[c][t]))return o;return Math.random()*i}var e,n,r,i,a=m.length,l=_.length,h=f[0],v=f[1];for(e=0;a>e;++e)(i=m[e]).index=e,i.weight=0;for(o=[],u=[],e=0;l>e;++e)"number"==typeof(i=_[e]).source&&(i.source=m[i.source]),"number"==typeof i.target&&(i.target=m[i.target]),o[e]=d.call(this,i,e),u[e]=p.call(this,i,e),++i.source.weight,++i.target.weight;for(e=0;a>e;++e)i=m[e],isNaN(i.x)&&(i.x=t("x",h)),isNaN(i.y)&&(i.y=t("y",v)),isNaN(i.px)&&(i.px=i.x),isNaN(i.py)&&(i.py=i.y);if(c=[],"function"==typeof g)for(e=0;a>e;++e)c[e]=+g.call(this,m[e],e);else for(e=0;a>e;++e)c[e]=g;return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){n||(n=d3.behavior.drag().origin(i).on("dragstart",pe).on("drag",e).on("dragend",ge)),this.on("mouseover.force",ve).on("mouseout.force",ye).call(n)},d3.rebind(s,l,"on")},d3.layout.partition=function(){function t(t,r){var i=e.call(this,t,r);return function t(e,n,r,i){var o=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,o&&(a=o.length)){var a,u,c,s=-1;for(r=e.value?r/e.value:0;a>++s;)t(u=o[s],n,c=u.value*r,i),n+=c}}(i[0],0,n[0],n[1]/function t(e){var n=e.children,r=0;if(n&&(i=n.length))for(var i,o=-1;i>++o;)r=Math.max(r,t(n[o]));return 1+r}(i[0])),i}var e=d3.layout.hierarchy(),n=[1,1];return t.size=function(e){return arguments.length?(n=e,t):n},je(t,e)},d3.layout.pie=function(){function t(o){var a=o.map(function(n,r){return+e.call(t,n,r)}),u=+("function"==typeof r?r.apply(this,arguments):r),c=(("function"==typeof i?i.apply(this,arguments):i)-r)/d3.sum(a),s=d3.range(o.length);null!=n&&s.sort(n===Ni?function(t,e){return a[e]-a[t]}:function(t,e){return n(o[t],o[e])});var l=[];return s.forEach(function(t){var e;l[t]={data:o[t],value:e=a[t],startAngle:u,endAngle:u+=e*c}}),l}var e=Number,n=Ni,r=0,i=2*dr;return t.value=function(n){return arguments.length?(e=n,t):e},t.sort=function(e){return arguments.length?(n=e,t):n},t.startAngle=function(e){return arguments.length?(r=e,t):r},t.endAngle=function(e){return arguments.length?(i=e,t):i},t};var Ni={};d3.layout.stack=function(){function t(i,c){var s=i.map(function(n,r){return e.call(t,n,r)}),l=s.map(function(e){return e.map(function(e,n){return[a.call(t,e,n),u.call(t,e,n)]})}),f=n.call(t,l,c);s=d3.permute(s,f),l=d3.permute(l,f);var h,d,p,g=r.call(t,l,c),v=s.length,y=s[0].length;for(d=0;y>d;++d)for(o.call(t,s[0][d],p=g[d],l[0][d][1]),h=1;v>h;++h)o.call(t,s[h][d],p+=l[h-1][d][1],l[h][d][1]);return i}var e=i,n=Ee,r=ke,o=we,a=be,u=xe;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:Ai.get(e)||Ee,t):n},t.offset=function(e){return arguments.length?(r="function"==typeof e?e:Ci.get(e)||ke,t):r},t.x=function(e){return arguments.length?(a=e,t):a},t.y=function(e){return arguments.length?(u=e,t):u},t.out=function(e){return arguments.length?(o=e,t):o},t};var Ai=d3.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(Me),o=t.map(Ne),a=d3.range(r).sort(function(t,e){return i[t]-i[e]}),u=0,c=0,s=[],l=[];for(e=0;r>e;++e)n=a[e],c>u?(u+=o[n],s.push(n)):(c+=o[n],l.push(n));return l.reverse().concat(s)},reverse:function(t){return d3.range(t.length).reverse()},default:Ee}),Ci=d3.map({silhouette:function(t){var e,n,r,i=t.length,o=t[0].length,a=[],u=0,c=[];for(n=0;o>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];r>u&&(u=r),a.push(r)}for(n=0;o>n;++n)c[n]=(u-a[n])/2;return c},wiggle:function(t){var e,n,r,i,o,a,u,c,s,l=t.length,f=t[0],h=f.length,d=[];for(d[0]=c=s=0,n=1;h>n;++n){for(e=0,i=0;l>e;++e)i+=t[e][n][1];for(e=0,o=0,u=f[n][0]-f[n-1][0];l>e;++e){for(r=0,a=(t[e][n][1]-t[e][n-1][1])/(2*u);e>r;++r)a+=(t[r][n][1]-t[r][n-1][1])/u;o+=a*t[e][n][1]}d[n]=c-=i?o/i*u:0,s>c&&(s=c)}for(n=0;h>n;++n)d[n]-=s;return d},expand:function(t){var e,n,r,i=t.length,o=t[0].length,a=1/i,u=[];for(n=0;o>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];if(r)for(e=0;i>e;e++)t[e][n][1]/=r;else for(e=0;i>e;e++)t[e][n][1]=a}for(n=0;o>n;++n)u[n]=0;return u},zero:ke});d3.layout.histogram=function(){function t(t,o){for(var a,u,c=[],s=t.map(n,this),l=r.call(this,s,o),f=i.call(this,l,s,o),h=(o=-1,s.length),d=f.length-1,p=e?1:1/h;d>++o;)(a=c[o]=[]).dx=f[o+1]-(a.x=f[o]),a.y=0;if(d>0)for(o=-1;h>++o;)(u=s[o])>=l[0]&&l[1]>=u&&((a=c[d3.bisect(f,u,1,d)-1]).y+=p,a.push(t[o]));return c}var e=!0,n=Number,r=Se,i=Ce;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=a(e),t):r},t.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return Te(t,e)}:a(e),t):i},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},d3.layout.hierarchy=function(){function t(i){var o=[];return function i(o,a,u){var c=n.call(t,o,a);if(o.depth=a,u.push(o),c&&(s=c.length)){for(var s,l,f=-1,h=o.children=[],d=0,p=a+1;s>++f;)(l=i(c[f],p,u)).parent=o,h.push(l),d+=l.value;e&&h.sort(e),r&&(o.value=d)}else r&&(o.value=+r.call(t,o,a)||0);return o}(i,0,o),o}var e=Oe,n=De,r=Le;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return function e(n,i){var o=n.children,a=0;if(o&&(u=o.length))for(var u,c=-1,s=i+1;u>++c;)a+=e(o[c],s);else r&&(a=+r.call(t,n,i)||0);return r&&(n.value=a),a}(e,0),e},t},d3.layout.pack=function(){function t(t,i){var o=e.call(this,t,i),a=o[0];a.x=0,a.y=0,Ke(a,function(t){t.r=Math.sqrt(t.value)}),Ke(a,Pe);var u=r[0],c=r[1],s=Math.max(2*a.r/u,2*a.r/c);if(n>0){var l=n*s/2;Ke(a,function(t){t.r+=l}),Ke(a,Pe),Ke(a,function(t){t.r-=l}),s=Math.max(2*a.r/u,2*a.r/c)}return function t(e,n,r,i){var o=e.children;if(e.x=n+=i*e.x,e.y=r+=i*e.y,e.r*=i,o)for(var a=-1,u=o.length;u>++a;)t(o[a],n,r,i)}(a,u/2,c/2,1/s),o}var e=d3.layout.hierarchy().sort(Re),n=0,r=[1,1];return t.size=function(e){return arguments.length?(r=e,t):r},t.padding=function(e){return arguments.length?(n=+e,t):n},je(t,e)},d3.layout.cluster=function(){function t(t,i){var o,a=e.call(this,t,i),u=a[0],c=0;Ke(u,function(t){var e,r,i=t.children;i&&i.length?(t.x=(r=i).reduce(function(t,e){return t+e.x},0)/r.length,t.y=(e=i,1+d3.max(e,function(t){return t.y}))):(t.x=o?c+=n(t,o):0,t.y=0,o=t)});var s=function t(e){var n=e.children;return n&&n.length?t(n[0]):e}(u),l=function t(e){var n,r=e.children;return r&&(n=r.length)?t(r[n-1]):e}(u),f=s.x-n(s,l)/2,h=l.x+n(l,s)/2;return Ke(u,function(t){t.x=(t.x-f)/(h-f)*r[0],t.y=(1-(u.y?t.y/u.y:1))*r[1]}),a}var e=d3.layout.hierarchy().sort(null).value(null),n=We,r=[1,1];return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(r=e,t):r},je(t,e)},d3.layout.tree=function(){function t(t,i){function o(t,e,r){if(e){for(var i,o=t,a=t,u=e,c=t.parent.children[0],s=o._tree.mod,l=a._tree.mod,f=u._tree.mod,h=c._tree.mod;u=Ge(u),o=Ue(o),u&&o;)c=Ue(c),(a=Ge(a))._tree.ancestor=t,(i=u._tree.prelim+f-o._tree.prelim-s+n(u,o))>0&&(Je((p=t,g=r,(d=u)._tree.ancestor.parent==p.parent?d._tree.ancestor:g),t,i),s+=i,l+=i),f+=u._tree.mod,s+=o._tree.mod,h+=c._tree.mod,l+=a._tree.mod;u&&!Ge(a)&&(a._tree.thread=u,a._tree.mod+=f-l),o&&!Ue(c)&&(c._tree.thread=o,c._tree.mod+=s-h,r=t)}var d,p,g;return r}var a=e.call(this,t,i),u=a[0];Ke(u,function(t,e){t._tree={ancestor:t,prelim:0,mod:0,change:0,shift:0,number:e?e._tree.number+1:0}}),function t(e,r){var i=e.children,a=e._tree;if(i&&(u=i.length)){for(var u,c,s,l=i[0],f=l,h=-1;u>++h;)t(s=i[h],c),f=o(s,c,f),c=s;!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]._tree).prelim+=n,e.mod+=n,n+=e.shift+(r+=e.change)}(e);var d=.5*(l._tree.prelim+s._tree.prelim);r?(a.prelim=r._tree.prelim+n(e,r),a.mod=a.prelim-d):a.prelim=d}else r&&(a.prelim=r._tree.prelim+n(e,r))}(u),function t(e,n){e.x=e._tree.prelim+n;var r=e.children;if(r&&(i=r.length)){var i,o=-1;for(n+=e._tree.mod;i>++o;)t(r[o],n)}}(u,-u._tree.prelim);var c=Ve(u,Xe),s=Ve(u,Ye),l=Ve(u,Ze),f=c.x-n(c,s)/2,h=s.x+n(s,c)/2,d=l.depth||1;return Ke(u,function(t){t.x=(t.x-f)/(h-f)*r[0],t.y=t.depth/d*r[1],delete t._tree}),a}var e=d3.layout.hierarchy().sort(null).value(null),n=We,r=[1,1];return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(r=e,t):r},je(t,e)},d3.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,o=t.length;o>++i;)r=(n=t[i]).value*(0>e?0:e),n.area=isNaN(r)||0>=r?0:r}function e(n){var o=n.children;if(o&&o.length){var a,u,c,s=f(n),l=[],h=o.slice(),p=1/0,g="slice"===d?s.dx:"dice"===d?s.dy:"slice-dice"===d?1&n.depth?s.dy:s.dx:Math.min(s.dx,s.dy);for(t(h,s.dx*s.dy/n.value),l.area=0;(c=h.length)>0;)l.push(a=h[c-1]),l.area+=a.area,"squarify"!==d||p>=(u=r(l,g))?(h.pop(),p=u):(l.area-=l.pop().area,i(l,g,s,!1),g=Math.min(s.dx,s.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,s,!0),l.length=l.area=0),o.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var o,a=f(e),u=r.slice(),c=[];for(t(u,a.dx*a.dy/e.value),c.area=0;o=u.pop();)c.push(o),c.area+=o.area,null!=o.z&&(i(c,o.z?a.dx:a.dy,a,!u.length),c.length=c.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,u=t.length;u>++a;)(n=t[a].area)&&(o>n&&(o=n),n>i&&(i=n));return e*=e,(r*=r)?Math.max(e*i*p/r,r/(e*o*p)):1/0}function i(t,e,n,r){var i,o=-1,a=t.length,u=n.x,s=n.y,l=e?c(t.area/e):0;if(e==n.dx){for((r||l>n.dy)&&(l=n.dy);a>++o;)(i=t[o]).x=u,i.y=s,i.dy=l,u+=i.dx=Math.min(n.x+n.dx-u,l?c(i.area/l):0);i.z=!0,i.dx+=n.x+n.dx-u,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);a>++o;)(i=t[o]).x=u,i.y=s,i.dx=l,s+=i.dy=Math.min(n.y+n.dy-s,l?c(i.area/l):0);i.z=!1,i.dy+=n.y+n.dy-s,n.x+=l,n.dx-=l}}function o(r){var i=a||u(r),o=i[0];return o.x=0,o.y=0,o.dx=s[0],o.dy=s[1],a&&u.revalue(o),t([o],o.dx*o.dy/o.value),(a?n:e)(o),h&&(a=i),i}var a,u=d3.layout.hierarchy(),c=Math.round,s=[1,1],l=null,f=Qe,h=!1,d="squarify",p=.5*(1+Math.sqrt(5));return o.size=function(t){return arguments.length?(s=t,o):s},o.padding=function(t){function e(e){return tn(e,t)}return arguments.length?(f=null==(l=t)?Qe:"function"==(n=typeof t)?function(e){var n=t.call(o,e,e.depth);return null==n?Qe(e):tn(e,"number"==typeof n?[n,n,n,n]:n)}:"number"===n?(t=[t,t,t,t],e):e,o):l;var n},o.round=function(t){return arguments.length?(c=t?Math.round:Number,o):c!=Number},o.sticky=function(t){return arguments.length?(h=t,a=null,o):h},o.ratio=function(t){return arguments.length?(p=t,o):p},o.mode=function(t){return arguments.length?(d=t+"",o):d},je(o,u)},d3.csv=en(",","text/csv"),d3.tsv=en("\t","text/tab-separated-values"),d3.geo={},d3.geo.stream=function(t,e){Ti.hasOwnProperty(t.type)?Ti[t.type](t,e):nn(t,e)};var Ti={Feature:function(t,e){nn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;i>++r;)nn(n[r].geometry,e)}},Si={Sphere:function(t,e){e.sphere()},Point:function(t,e){var n=t.coordinates;e.point(n[0],n[1])},MultiPoint:function(t,e){for(var n,r=t.coordinates,i=-1,o=r.length;o>++i;)n=r[i],e.point(n[0],n[1])},LineString:function(t,e){rn(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;i>++r;)rn(n[r],e,0)},Polygon:function(t,e){on(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;i>++r;)on(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;i>++r;)nn(n[r],e)}};d3.geo.albersUsa=function(){function t(t){return(a=(o=t)[0],(u=o[1])>50?n:-140>a?r:21>u?i:e)(t);var o,a,u}var e=d3.geo.albers(),n=d3.geo.albers().rotate([160,0]).center([0,60]).parallels([55,65]),r=d3.geo.albers().rotate([160,0]).center([0,20]).parallels([8,18]),i=d3.geo.albers().rotate([60,0]).center([0,10]).parallels([8,18]);return t.scale=function(o){return arguments.length?(e.scale(o),n.scale(.6*o),r.scale(o),i.scale(1.5*o),t.translate(e.translate())):e.scale()},t.translate=function(o){if(!arguments.length)return e.translate();var a=e.scale(),u=o[0],c=o[1];return e.translate(o),n.translate([u-.4*a,c+.17*a]),r.translate([u-.19*a,c+.2*a]),i.translate([u+.58*a,c+.43*a]),t},t.scale(e.scale())},(d3.geo.albers=function(){var t=29.5*gr,e=45.5*gr,n=qn(pn),r=n(t,e);return r.parallels=function(r){return arguments.length?n(t=r[0]*gr,e=r[1]*gr):[t*vr,e*vr]},r.rotate([98,0]).center([0,38]).scale(1e3)}).raw=pn;var ji=$n(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(d3.geo.azimuthalEqualArea=function(){return zn(ji)}).raw=ji;var Di=$n(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},i);(d3.geo.azimuthalEquidistant=function(){return zn(Di)}).raw=Di,d3.geo.bounds=gn(i),d3.geo.centroid=function(t){var e;return Li=Oi=Ii=Ri=zi=0,d3.geo.stream(t,qi),Oi&&Math.abs(e=Math.sqrt(Ii*Ii+Ri*Ri+zi*zi))>pr?[Math.atan2(Ri,Ii)*vr,Math.asin(Math.max(-1,Math.min(1,zi/e)))*vr]:void 0};var Li,Oi,Ii,Ri,zi,qi={sphere:function(){2>Li&&(Li=2,Oi=Ii=Ri=zi=0)},point:vn,lineStart:mn,lineEnd:_n,polygonStart:function(){2>Li&&(Li=2,Oi=Ii=Ri=zi=0),qi.lineStart=yn},polygonEnd:function(){qi.lineStart=mn}};d3.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=Fn(-t[0]*gr,-t[1]*gr,0).invert,i=[];return n(null,null,1,{point:function(t,n){i.push(t=e(t,n)),t[0]*=vr,t[1]*=vr}}),{type:"Polygon",coordinates:[i]}}var e,n,r=[0,0],i=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=bn((e=+r)*gr,i*gr),t):e},t.precision=function(r){return arguments.length?(n=bn(e*gr,(i=+r)*gr),t):i},t.angle(90)};var Fi=wn(o,function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u,c,s,l,f,h,d,p=o>0?dr:-dr,g=Math.abs(o-n);pr>Math.abs(g-dr)?(t.point(n,r=(r+a)/2>0?dr/2:-dr/2),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(p,r),t.point(o,r),e=0):i!==p&&g>=dr&&(pr>Math.abs(n-i)&&(n-=i*pr),pr>Math.abs(o-p)&&(o-=p*pr),u=n,c=r,s=o,l=a,d=Math.sin(u-s),r=Math.abs(d)>pr?Math.atan((Math.sin(c)*(h=Math.cos(l))*Math.sin(s)-Math.sin(l)*(f=Math.cos(c))*Math.sin(u))/(f*h*d)):(c+l)/2,t.point(i,r),t.lineEnd(),t.lineStart(),t.point(p,r),e=0),t.point(n=o,r=a),i=p},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*dr/2,r.point(-dr,i),r.point(0,i),r.point(dr,i),r.point(dr,0),r.point(dr,-i),r.point(0,-i),r.point(-dr,-i),r.point(-dr,0),r.point(-dr,i);else if(Math.abs(t[0]-e[0])>pr){var o=(t[0]<e[0]?1:-1)*dr;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])});(d3.geo.equirectangular=function(){return zn(Cn).scale(250/dr)}).raw=Cn.invert=Cn;var Pi=$n(function(t){return 1/t},Math.atan);(d3.geo.gnomonic=function(){return zn(Pi)}).raw=Pi,d3.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return d3.range(Math.ceil(r/c)*c,n,c).map(a).concat(d3.range(Math.ceil(o/s)*s,i,s).map(u))}var n,r,i,o,a,u,c=22.5,s=c,l=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[a(r).concat(u(i).slice(1),a(n).reverse().slice(1),u(o).reverse().slice(1))]}},t.extent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],o=+e[0][1],i=+e[1][1],r>n&&(e=r,r=n,n=e),o>i&&(e=o,o=i,i=e),t.precision(l)):[[r,o],[n,i]]},t.step=function(e){return arguments.length?(c=+e[0],s=+e[1],t):[c,s]},t.precision=function(e){return arguments.length?(d=o,p=i,g=l=+e,v=d3.range(d,p-pr,g).concat(p),a=function(t){return v.map(function(e){return[t,e]})},c=r,s=n,f=l,h=d3.range(c,s-pr,f).concat(s),u=function(t){return h.map(function(e){return[e,t]})},t):l;var c,s,f,h,d,p,g,v},t.extent([[-180+pr,-90+pr],[180-pr,90-pr]])},d3.geo.interpolate=function(t,e){return function(t,e,n,r){function i(t){var e=Math.sin(t*=d)*p,n=Math.sin(d-t)*p,r=n*s+e*f,i=n*l+e*h,o=n*a+e*c;return[Math.atan2(i,r)/gr,Math.atan2(o,Math.sqrt(r*r+i*i))/gr]}var o=Math.cos(e),a=Math.sin(e),u=Math.cos(r),c=Math.sin(r),s=o*Math.cos(t),l=o*Math.sin(t),f=u*Math.cos(n),h=u*Math.sin(n),d=Math.acos(Math.max(-1,Math.min(1,a*c+o*u*Math.cos(n-t)))),p=1/Math.sin(d);return i.distance=d,i}(t[0]*gr,t[1]*gr,e[0]*gr,e[1]*gr)},d3.geo.greatArc=function(){function n(){for(var t=r||a.apply(this,arguments),e=i||u.apply(this,arguments),n=o||d3.geo.interpolate(t,e),s=0,l=c/n.distance,f=[t];1>(s+=l);)f.push(n(s));return f.push(e),{type:"LineString",coordinates:f}}var r,i,o,a=e,u=t,c=6*gr;return n.distance=function(){return(o||d3.geo.interpolate(r||a.apply(this,arguments),i||u.apply(this,arguments))).distance},n.source=function(t){return arguments.length?(a=t,o=(r="function"==typeof t?null:t)&&i?d3.geo.interpolate(r,i):null,n):a},n.target=function(t){return arguments.length?(u=t,i="function"==typeof t?null:t,o=r&&i?d3.geo.interpolate(r,i):null,n):u},n.precision=function(t){return arguments.length?(c=t*gr,n):c/gr},n},Tn.invert=function(t,e){return[2*dr*t,2*Math.atan(Math.exp(2*dr*e))-dr/2]},(d3.geo.mercator=function(){return zn(Tn).scale(500)}).raw=Tn;var Bi=$n(function(){return 1},Math.asin);(d3.geo.orthographic=function(){return zn(Bi)}).raw=Bi,d3.geo.path=function(){function t(t){return t&&d3.geo.stream(t,r(o.pointRadius("function"==typeof a?+a.apply(this,arguments):a))),o.result()}var e,n,r,o,a=4.5;return t.area=function(t){return Hi=0,d3.geo.stream(t,r(Wi)),Hi},t.centroid=function(t){return Li=Ii=Ri=zi=0,d3.geo.stream(t,r(Ui)),zi?[Ii/zi,Ri/zi]:void 0},t.bounds=function(t){return gn(r)(t)},t.projection=function(n){return arguments.length?(r=(e=n)?n.stream||(o=n,a=dn(function(t,e){return o([t*vr,e*vr])}),function(t){return t=a(t),{point:function(e,n){t.point(e*gr,n*gr)},sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}):i,t):e;var o,a},t.context=function(e){return arguments.length?(o=null==(n=e)?new function(){function t(t,e){a.push("M",t,",",e,o)}function e(t,e){a.push("M",t,",",e),u.point=n}function n(t,e){a.push("L",t,",",e)}function r(){u.point=t}function i(){a.push("Z")}var o=Sn(4.5),a=[],u={point:t,lineStart:function(){u.point=e},lineEnd:r,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=r,u.point=t},pointRadius:function(t){return o=Sn(t),u},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return u}:new function(t){function e(e,n){t.moveTo(e,n),t.arc(e,n,a,0,2*dr)}function n(e,n){t.moveTo(e,n),u.point=r}function r(e,n){t.lineTo(e,n)}function i(){u.point=e}function o(){t.closePath()}var a=4.5,u={point:e,lineStart:function(){u.point=n},lineEnd:i,polygonStart:function(){u.lineEnd=o},polygonEnd:function(){u.lineEnd=i,u.point=e},pointRadius:function(t){return a=t,u},result:Mt};return u}(e),t):n},t.pointRadius=function(e){return arguments.length?(a="function"==typeof e?e:+e,t):a},t.projection(d3.geo.albersUsa()).context(null)};var Hi,$i,Wi={point:Mt,lineStart:Mt,lineEnd:Mt,polygonStart:function(){$i=0,Wi.lineStart=jn},polygonEnd:function(){Wi.lineStart=Wi.lineEnd=Wi.point=Mt,Hi+=Math.abs($i/2)}},Ui={point:Dn,lineStart:Ln,lineEnd:On,polygonStart:function(){Ui.lineStart=In},polygonEnd:function(){Ui.point=Dn,Ui.lineStart=Ln,Ui.lineEnd=On}};d3.geo.area=function(t){return Gi=0,d3.geo.stream(t,Yi),Gi};var Gi,Vi,Yi={sphere:function(){Gi+=4*dr},point:Mt,lineStart:Mt,lineEnd:Mt,polygonStart:function(){Vi=0,Yi.lineStart=Rn},polygonEnd:function(){Gi+=0>Vi?4*dr+Vi:Vi,Yi.lineStart=Yi.lineEnd=Yi.point=Mt}};d3.geo.projection=zn,d3.geo.projectionMutator=qn;var Xi=$n(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(d3.geo.stereographic=function(){return zn(Xi)}).raw=Xi,d3.geom={},d3.geom.hull=function(t){if(3>t.length)return[];var e,n,r,i,o,a,u,c,s,l,f,h,d,p,g,v,y,m,_,b,x=t.length,w=x-1,E=[],k=[],M=0;for(e=1;x>e;++e)t[e][1]<t[M][1]?M=e:t[e][1]==t[M][1]&&(M=t[e][0]<t[M][0]?e:M);for(e=0;x>e;++e)e!==M&&(i=t[e][1]-t[M][1],r=t[e][0]-t[M][0],E.push({angle:Math.atan2(i,r),index:e}));for(E.sort(function(t,e){return t.angle-e.angle}),s=E[0].angle,c=E[0].index,u=0,e=1;w>e;++e)n=E[e].index,s==E[e].angle?(r=t[c][0]-t[M][0])*r+(i=t[c][1]-t[M][1])*i>=(o=t[n][0]-t[M][0])*o+(a=t[n][1]-t[M][1])*a?E[e].index=-1:(E[u].index=-1,s=E[e].angle,u=e,c=n):(s=E[e].angle,u=e,c=n);for(k.push(M),e=0,n=0;2>e;++n)-1!==E[n].index&&(k.push(E[n].index),e++);for(l=k.length;w>n;++n)if(-1!==E[n].index){for(;f=k[l-2],h=k[l-1],d=E[n].index,g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,b=void 0,v=(g=(p=t)[f])[0],y=g[1],m=(g=p[h])[0],_=g[1],b=(g=p[d])[0],!((g[1]-y)*(m-v)-(_-y)*(b-v)>0);)--l;k[l++]=E[n].index}var N=[];for(e=0;l>e;++e)N.push(t[k[e]]);return N},d3.geom.polygon=function(t){return t.area=function(){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];n>++e;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return.5*r},t.centroid=function(e){var n,r,i=-1,o=t.length,a=0,u=0,c=t[o-1];for(arguments.length||(e=-1/(6*t.area()));o>++i;)n=c,c=t[i],r=n[0]*c[1]-c[0]*n[1],a+=(n[0]+c[0])*r,u+=(n[1]+c[1])*r;return[a*e,u*e]},t.clip=function(e){for(var n,r,i,o,a,u,c=-1,s=t.length,l=t[s-1];s>++c;){for(n=e.slice(),e.length=0,o=t[c],a=n[(i=n.length)-1],r=-1;i>++r;)Wn(u=n[r],l,o)?(Wn(a,l,o)||e.push(Un(a,u,l,o)),e.push(u)):Wn(a,l,o)&&e.push(Un(a,u,l,o)),a=u;l=o}return e},t},d3.geom.voronoi=function(t){var e=t.map(function(){return[]});return Gn(t,function(t){var n,r,i,o,a,u;1===t.a&&t.b>=0?(n=t.ep.r,r=t.ep.l):(n=t.ep.l,r=t.ep.r),1===t.a?(a=n?n.y:-1e6,i=t.c-t.b*a,u=r?r.y:1e6,o=t.c-t.b*u):(i=n?n.x:-1e6,a=t.c-t.a*i,o=r?r.x:1e6,u=t.c-t.a*o);var c=[i,a],s=[o,u];e[t.region.l.index].push(c,s),e[t.region.r.index].push(c,s)}),(e=e.map(function(e,n){var r=t[n][0],i=t[n][1],o=e.map(function(t){return Math.atan2(t[0]-r,t[1]-i)});return d3.range(e.length).sort(function(t,e){return o[t]-o[e]}).filter(function(t,e,n){return!e||o[t]-o[n[e-1]]>pr}).map(function(t){return e[t]})})).forEach(function(e,n){var r=e.length;if(!r)return e.push([-1e6,-1e6],[-1e6,1e6],[1e6,1e6],[1e6,-1e6]);if(!(r>2)){var i=t[n],o=e[0],a=e[1],u=i[0],c=i[1],s=o[0],l=o[1],f=a[0],h=a[1],d=Math.abs(f-s),p=h-l;if(pr>Math.abs(p)){var g=l>c?-1e6:1e6;e.push([-1e6,g],[1e6,g])}else if(pr>d){var v=s>u?-1e6:1e6;e.push([v,-1e6],[v,1e6])}else{g=(s-u)*(h-l)>(f-s)*(l-c)?1e6:-1e6;var y=Math.abs(p)-d;pr>Math.abs(y)?e.push([0>p?g:-g,g]):(y>0&&(g*=-1),e.push([-1e6,g],[1e6,g]))}}}),e};var Zi={l:"r",r:"l"};d3.geom.delaunay=function(t){var e=t.map(function(){return[]}),n=[];return Gn(t,function(n){e[n.region.l.index].push(t[n.region.r.index])}),e.forEach(function(e,r){var i=t[r],o=i[0],a=i[1];e.forEach(function(t){t.angle=Math.atan2(t[0]-o,t[1]-a)}),e.sort(function(t,e){return t.angle-e.angle});for(var u=0,c=e.length-1;c>u;u++)n.push([i,e[u],e[u+1]])}),n},d3.geom.quadtree=function(t,e,n,r,i){function o(t,e,n,r,i,o){if(!isNaN(e.x)&&!isNaN(e.y))if(t.leaf){var u=t.point;u?.01>Math.abs(u.x-e.x)+Math.abs(u.y-e.y)?a(t,e,n,r,i,o):(t.point=null,a(t,u,n,r,i,o),a(t,e,n,r,i,o)):t.point=e}else a(t,e,n,r,i,o)}function a(t,e,n,r,i,a){var u=.5*(n+i),c=.5*(r+a),s=e.x>=u,l=e.y>=c,f=(l<<1)+s;t.leaf=!1,s?n=u:i=u,l?r=c:a=c,o(t=t.nodes[f]||(t.nodes[f]={leaf:!0,nodes:[],point:null,add:function(t){o(h,t,e,n,r,i)}}),e,n,r,i,a)}var u,c=-1,s=t.length;if(5>arguments.length)if(3===arguments.length)i=n,r=e,n=e=0;else for(e=n=1/0,r=i=-1/0;s>++c;)u=t[c],e>u.x&&(e=u.x),n>u.y&&(n=u.y),u.x>r&&(r=u.x),u.y>i&&(i=u.y);var l=r-e,f=i-n;l>f?i=n+l:r=e+f;var h={leaf:!0,nodes:[],point:null,add:function(t){o(h,t,e,n,r,i)}};return h.visit=function(t){!function t(e,n,r,i,o,a){if(!e(n,r,i,o,a)){var u=.5*(r+o),c=.5*(i+a),s=n.nodes;s[0]&&t(e,s[0],r,i,u,c),s[1]&&t(e,s[1],u,i,o,c),s[2]&&t(e,s[2],r,c,u,a),s[3]&&t(e,s[3],u,c,o,a)}}(t,h,e,n,r,i)},t.forEach(h.add),h},d3.time={};var Ki=Date;Vn.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Ji.setUTCDate.apply(this._,arguments)},setDay:function(){Ji.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ji.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ji.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ji.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ji.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ji.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ji.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ji.setTime.apply(this._,arguments)}};var Ji=Date.prototype,Qi=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],to=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],eo=["January","February","March","April","May","June","July","August","September","October","November","December"],no=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];d3.time.format=function(t){function e(e){for(var r,i,o,a=[],u=-1,c=0;n>++u;)37===t.charCodeAt(u)&&(a.push(t.substring(c,u)),null!=(i=so[r=t.charAt(++u)])&&(r=t.charAt(++u)),(o=lo[r])&&(r=o(e,null==i?"e"===r?" ":"0":i)),a.push(r),c=u+1);return a.push(t.substring(c,u)),a.join("")}var n=t.length;return e.parse=function(e){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0};if(Yn(n,t,e,0)!=e.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var r=new Ki;return r.setFullYear(n.y,n.m,n.d),r.setHours(n.H,n.M,n.S,n.L),r},e.toString=function(){return t},e};var ro=Xn(Qi),io=Xn(to),oo=Xn(eo),ao=Zn(eo),uo=Xn(no),co=Zn(no),so={"-":"",_:" ",0:"0"},lo={a:function(t){return to[t.getDay()]},A:function(t){return Qi[t.getDay()]},b:function(t){return no[t.getMonth()]},B:function(t){return eo[t.getMonth()]},c:d3.time.format("%a %b %e %X %Y"),d:function(t,e){return Kn(t.getDate(),e,2)},e:function(t,e){return Kn(t.getDate(),e,2)},H:function(t,e){return Kn(t.getHours(),e,2)},I:function(t,e){return Kn(t.getHours()%12||12,e,2)},j:function(t,e){return Kn(1+d3.time.dayOfYear(t),e,3)},L:function(t,e){return Kn(t.getMilliseconds(),e,3)},m:function(t,e){return Kn(t.getMonth()+1,e,2)},M:function(t,e){return Kn(t.getMinutes(),e,2)},p:function(t){return t.getHours()>=12?"PM":"AM"},S:function(t,e){return Kn(t.getSeconds(),e,2)},U:function(t,e){return Kn(d3.time.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Kn(d3.time.mondayOfYear(t),e,2)},x:d3.time.format("%m/%d/%Y"),X:d3.time.format("%H:%M:%S"),y:function(t,e){return Kn(t.getFullYear()%100,e,2)},Y:function(t,e){return Kn(t.getFullYear()%1e4,e,4)},Z:function(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=~~(Math.abs(e)/60),i=Math.abs(e)%60;return n+Kn(r,"0",2)+Kn(i,"0",2)},"%":function(){return"%"}},fo={a:function(t,e,n){io.lastIndex=0;var r=io.exec(e.substring(n));return r?n+=r[0].length:-1},A:function(t,e,n){ro.lastIndex=0;var r=ro.exec(e.substring(n));return r?n+=r[0].length:-1},b:function(t,e,n){uo.lastIndex=0;var r=uo.exec(e.substring(n));return r?(t.m=co.get(r[0].toLowerCase()),n+=r[0].length):-1},B:function(t,e,n){oo.lastIndex=0;var r=oo.exec(e.substring(n));return r?(t.m=ao.get(r[0].toLowerCase()),n+=r[0].length):-1},c:function(t,e,n){return Yn(t,""+lo.c,e,n)},d:Jn,e:Jn,H:Qn,I:Qn,L:function(t,e,n){ho.lastIndex=0;var r=ho.exec(e.substring(n,n+3));return r?(t.L=+r[0],n+=r[0].length):-1},m:function(t,e,n){ho.lastIndex=0;var r=ho.exec(e.substring(n,n+2));return r?(t.m=r[0]-1,n+=r[0].length):-1},M:function(t,e,n){ho.lastIndex=0;var r=ho.exec(e.substring(n,n+2));return r?(t.M=+r[0],n+=r[0].length):-1},p:function(t,e,n){var r=po.get(e.substring(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)},S:function(t,e,n){ho.lastIndex=0;var r=ho.exec(e.substring(n,n+2));return r?(t.S=+r[0],n+=r[0].length):-1},x:function(t,e,n){return Yn(t,""+lo.x,e,n)},X:function(t,e,n){return Yn(t,""+lo.X,e,n)},y:function(t,e,n){ho.lastIndex=0;var r,i=ho.exec(e.substring(n,n+2));return i?(t.y=(r=+i[0])+(r>68?1900:2e3),n+=i[0].length):-1},Y:function(t,e,n){ho.lastIndex=0;var r=ho.exec(e.substring(n,n+4));return r?(t.y=+r[0],n+=r[0].length):-1}},ho=/^\s*\d+/,po=d3.map({am:0,pm:1});d3.time.format.utc=function(t){function e(t){try{var e=new(Ki=Vn);return e._=t,n(e)}finally{Ki=Date}}var n=d3.time.format(t);return e.parse=function(t){try{Ki=Vn;var e=n.parse(t);return e&&e._}finally{Ki=Date}},e.toString=n.toString,e};var go=d3.time.format.utc("%Y-%m-%dT%H:%M:%S.%LZ");d3.time.format.iso=Date.prototype.toISOString?tr:go,tr.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},tr.toString=go.toString,d3.time.second=er(function(t){return new Ki(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),d3.time.seconds=d3.time.second.range,d3.time.seconds.utc=d3.time.second.utc.range,d3.time.minute=er(function(t){return new Ki(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),d3.time.minutes=d3.time.minute.range,d3.time.minutes.utc=d3.time.minute.utc.range,d3.time.hour=er(function(t){var e=t.getTimezoneOffset()/60;return new Ki(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),d3.time.hours=d3.time.hour.range,d3.time.hours.utc=d3.time.hour.utc.range,d3.time.day=er(function(t){var e=new Ki(1970,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),d3.time.days=d3.time.day.range,d3.time.days.utc=d3.time.day.utc.range,d3.time.dayOfYear=function(t){var e=d3.time.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].forEach(function(t,e){t=t.toLowerCase(),e=7-e;var n=d3.time[t]=er(function(t){return(t=d3.time.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=d3.time.year(t).getDay();return Math.floor((d3.time.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});d3.time[t+"s"]=n.range,d3.time[t+"s"].utc=n.utc.range,d3.time[t+"OfYear"]=function(t){var n=d3.time.year(t).getDay();return Math.floor((d3.time.dayOfYear(t)+(n+e)%7)/7)}}),d3.time.week=d3.time.sunday,d3.time.weeks=d3.time.sunday.range,d3.time.weeks.utc=d3.time.sunday.utc.range,d3.time.weekOfYear=d3.time.sundayOfYear,d3.time.month=er(function(t){return(t=d3.time.day(t)).setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),d3.time.months=d3.time.month.range,d3.time.months.utc=d3.time.month.utc.range,d3.time.year=er(function(t){return(t=d3.time.day(t)).setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),d3.time.years=d3.time.year.range,d3.time.years.utc=d3.time.year.utc.range;var vo=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],yo=[[d3.time.second,1],[d3.time.second,5],[d3.time.second,15],[d3.time.second,30],[d3.time.minute,1],[d3.time.minute,5],[d3.time.minute,15],[d3.time.minute,30],[d3.time.hour,1],[d3.time.hour,3],[d3.time.hour,6],[d3.time.hour,12],[d3.time.day,1],[d3.time.day,2],[d3.time.week,1],[d3.time.month,1],[d3.time.month,3],[d3.time.year,1]],mo=[[d3.time.format("%Y"),o],[d3.time.format("%B"),function(t){return t.getMonth()}],[d3.time.format("%b %d"),function(t){return 1!=t.getDate()}],[d3.time.format("%a %d"),function(t){return t.getDay()&&1!=t.getDate()}],[d3.time.format("%I %p"),function(t){return t.getHours()}],[d3.time.format("%I:%M"),function(t){return t.getMinutes()}],[d3.time.format(":%S"),function(t){return t.getSeconds()}],[d3.time.format(".%L"),function(t){return t.getMilliseconds()}]],_o=d3.scale.linear(),bo=or(mo);yo.year=function(t,e){return _o.domain(t.map(ur)).ticks(e).map(ar)},d3.time.scale=function(){return rr(d3.scale.linear(),yo,bo)};var xo=yo.map(function(t){return[t[0].utc,t[1]]}),wo=or([[d3.time.format.utc("%Y"),o],[d3.time.format.utc("%B"),function(t){return t.getUTCMonth()}],[d3.time.format.utc("%b %d"),function(t){return 1!=t.getUTCDate()}],[d3.time.format.utc("%a %d"),function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[d3.time.format.utc("%I %p"),function(t){return t.getUTCHours()}],[d3.time.format.utc("%I:%M"),function(t){return t.getUTCMinutes()}],[d3.time.format.utc(":%S"),function(t){return t.getUTCSeconds()}],[d3.time.format.utc(".%L"),function(t){return t.getUTCMilliseconds()}]]);xo.year=function(t,e){return _o.domain(t.map(sr)).ticks(e).map(cr)},d3.time.scale.utc=function(){return rr(d3.scale.linear(),xo,wo)}}(),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).dagre=t()}}(function(){return function t(e,n,r){function i(a,u){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(o)return o(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return i(n||t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){e.exports={graphlib:t("./lib/graphlib"),layout:t("./lib/layout"),debug:t("./lib/debug"),util:{time:t("./lib/util").time,notime:t("./lib/util").notime},version:t("./lib/version")}},{"./lib/debug":6,"./lib/graphlib":7,"./lib/layout":9,"./lib/util":29,"./lib/version":30}],2:[function(t,e,n){"use strict";var r=t("./lodash"),i=t("./greedy-fas");e.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,(n=t,function(t){return n.edge(t).weight})):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),function(t){r.has(n,t.w)?e.push(t):o(t.w)}),delete n[a])}),e}(t);var n;r.forEach(e,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))})},undo:function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}}},{"./greedy-fas":8,"./lodash":10}],3:[function(t,e,n){var r=t("./lodash"),i=t("./util");function o(t,e,n,r,o,a){var u={width:0,height:0,rank:a,borderType:e},c=o[e][a-1],s=i.addDummyNode(t,"border",u,n);o[e][a]=s,t.setParent(s,r),c&&t.setEdge(c,s,{weight:1})}e.exports=function(t){r.forEach(t.children(),function e(n){var i=t.children(n),a=t.node(n);i.length&&r.forEach(i,e);if(r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,c=a.maxRank+1;u<c;++u)o(t,"borderLeft","_bl",n,a,u),o(t,"borderRight","_br",n,a,u)}})}},{"./lodash":10,"./util":29}],4:[function(t,e,n){"use strict";var r=t("./lodash");function i(t){r.forEach(t.nodes(),function(e){o(t.node(e))}),r.forEach(t.edges(),function(e){o(t.edge(e))})}function o(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function u(t){var e=t.x;t.x=t.y,t.y=e}e.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||(n=t,r.forEach(n.nodes(),function(t){a(n.node(t))}),r.forEach(n.edges(),function(t){var e=n.edge(t);r.forEach(e.points,a),r.has(e,"y")&&a(e)}));var n;"lr"!==e&&"rl"!==e||(o=t,r.forEach(o.nodes(),function(t){u(o.node(t))}),r.forEach(o.edges(),function(t){var e=o.edge(t);r.forEach(e.points,u),r.has(e,"x")&&u(e)}),i(t));var o}}},{"./lodash":10}],5:[function(t,e,n){function r(){var t={};t._next=t._prev=t,this._sentinel=t}function i(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function o(t,e){if("_next"!==t&&"_prev"!==t)return e}e.exports=r,r.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return i(e),e},r.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&i(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},r.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,o)),n=n._prev;return"["+t.join(", ")+"]"}},{}],6:[function(t,e,n){var r=t("./lodash"),i=t("./util"),o=t("./graphlib").Graph;e.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)}),r.forEach(t.edges(),function(t){n.setEdge(t.v,t.w,{},t.name)}),r.forEach(e,function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,function(t,e){return n.setEdge(t,e,{style:"invis"}),e})}),n}}},{"./graphlib":7,"./lodash":10,"./util":29}],7:[function(t,e,n){var r;if("function"==typeof t)try{r=t("graphlib")}catch(t){}r||(r=window.graphlib),e.exports=r},{graphlib:31}],8:[function(t,e,n){var r=t("./lodash"),i=t("./graphlib").Graph,o=t("./data/list");e.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,a=0,u=0;r.forEach(t.nodes(),function(t){n.setNode(t,{v:t,in:0,out:0})}),r.forEach(t.edges(),function(t){var r=n.edge(t.v,t.w)||0,i=e(t),o=r+i;n.setEdge(t.v,t.w,o),u=Math.max(u,n.node(t.v).out+=i),a=Math.max(a,n.node(t.w).in+=i)});var s=r.range(u+a+3).map(function(){return new o}),l=a+1;return r.forEach(n.nodes(),function(t){c(s,l,n.node(t))}),{graph:n,buckets:s,zeroIdx:l}}(t,e||a),s=function(t,e,n){var r,i=[],o=e[e.length-1],a=e[0];for(;t.nodeCount();){for(;r=a.dequeue();)u(t,e,n,r);for(;r=o.dequeue();)u(t,e,n,r);if(t.nodeCount())for(var c=e.length-2;c>0;--c)if(r=e[c].dequeue()){i=i.concat(u(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(s,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function u(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),u=t.node(r.v);o&&a.push({v:r.v,w:r.w}),u.out-=i,c(e,n,u)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,c(e,n,a)}),t.removeNode(i.v),a}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},{"./data/list":5,"./graphlib":7,"./lodash":10}],9:[function(t,e,n){"use strict";var r=t("./lodash"),i=t("./acyclic"),o=t("./normalize"),a=t("./rank"),u=t("./util").normalizeRanks,c=t("./parent-dummy-chains"),s=t("./util").removeEmptyRanks,l=t("./nesting-graph"),f=t("./add-border-segments"),h=t("./coordinate-system"),d=t("./order"),p=t("./position"),g=t("./util"),v=t("./graphlib").Graph;e.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",function(){var e=n("  buildLayoutGraph",function(){return e=t,n=new v({multigraph:!0,compound:!0}),i=N(e.graph()),n.setGraph(r.merge({},m,M(i,y),r.pick(i,_))),r.forEach(e.nodes(),function(t){var i=N(e.node(t));n.setNode(t,r.defaults(M(i,b),x)),n.setParent(t,e.parent(t))}),r.forEach(e.edges(),function(t){var i=N(e.edge(t));n.setEdge(t,r.merge({},E,M(i,w),r.pick(i,k)))}),n;var e,n,i});n("  runLayout",function(){var t,v;t=e,(v=n)("    makeSpaceForEdgeLabels",function(){var e,n;(n=(e=t).graph()).ranksep/=2,r.forEach(e.edges(),function(t){var r=e.edge(t);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),v("    removeSelfEdges",function(){var e;e=t,r.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}),v("    acyclic",function(){i.run(t)}),v("    nestingGraph.run",function(){l.run(t)}),v("    rank",function(){a(g.asNonCompoundGraph(t))}),v("    injectEdgeLabelProxies",function(){var e;e=t,r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i=e.node(t.w),o={rank:(i.rank-r.rank)/2+r.rank,e:t};g.addDummyNode(e,"edge-proxy",o,"_ep")}})}),v("    removeEmptyRanks",function(){s(t)}),v("    nestingGraph.cleanup",function(){l.cleanup(t)}),v("    normalizeRanks",function(){u(t)}),v("    assignRankMinMax",function(){var e,n;e=t,n=0,r.forEach(e.nodes(),function(t){var i=e.node(t);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,n=r.max(n,i.maxRank))}),e.graph().maxRank=n}),v("    removeEdgeLabelProxies",function(){var e;e=t,r.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}),v("    normalize.run",function(){o.run(t)}),v("    parentDummyChains",function(){c(t)}),v("    addBorderSegments",function(){f(t)}),v("    order",function(){d(t)}),v("    insertSelfEdges",function(){var e,n;e=t,n=g.buildLayerMatrix(e),r.forEach(n,function(t){var n=0;r.forEach(t,function(t,i){var o=e.node(t);o.order=i+n,r.forEach(o.selfEdges,function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++n,e:t.e,label:t.label},"_se")}),delete o.selfEdges})})}),v("    adjustCoordinateSystem",function(){h.adjust(t)}),v("    position",function(){p(t)}),v("    positionSelfEdges",function(){var e;e=t,r.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,u=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],n.label.x=n.x,n.label.y=n.y}})}),v("    removeBorderNodes",function(){var e;e=t,r.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),i=e.node(n.borderTop),o=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),u=e.node(r.last(n.borderRight));n.width=Math.abs(u.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}),v("    normalize.undo",function(){o.undo(t)}),v("    fixupEdgeLabelCoords",function(){var e;e=t,r.forEach(e.edges(),function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),v("    undoCoordinateSystem",function(){h.undo(t)}),v("    translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),u=a.marginx||0,c=a.marginy||0;function s(t){var r=t.x,a=t.y,u=t.width,c=t.height;e=Math.min(e,r-u/2),n=Math.max(n,r+u/2),i=Math.min(i,a-c/2),o=Math.max(o,a+c/2)}r.forEach(t.nodes(),function(e){s(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&s(n)}),e-=u,i-=c,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),r.forEach(t.edges(),function(n){var o=t.edge(n);r.forEach(o.points,function(t){t.x-=e,t.y-=i}),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)}),a.width=n-e+u,a.height=o-i+c}(t)}),v("    assignNodeIntersects",function(){var e;e=t,r.forEach(e.edges(),function(t){var n,r,i=e.edge(t),o=e.node(t.v),a=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}),v("    reversePoints",function(){var e;e=t,r.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}),v("    acyclic.undo",function(){i.undo(t)})}),n("  updateInputGraph",function(){var n,i;n=t,i=e,r.forEach(n.nodes(),function(t){var e=n.node(t),r=i.node(t);e&&(e.x=r.x,e.y=r.y,i.children(t).length&&(e.width=r.width,e.height=r.height))}),r.forEach(n.edges(),function(t){var e=n.edge(t),o=i.edge(t);e.points=o.points,r.has(o,"x")&&(e.x=o.x,e.y=o.y)}),n.graph().width=i.graph().width,n.graph().height=i.graph().height})})};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],b=["width","height"],x={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function M(t,e){return r.mapValues(r.pick(t,e),Number)}function N(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},{"./acyclic":2,"./add-border-segments":3,"./coordinate-system":4,"./graphlib":7,"./lodash":10,"./nesting-graph":11,"./normalize":12,"./order":17,"./parent-dummy-chains":22,"./position":24,"./rank":26,"./util":29}],10:[function(t,e,n){var r;if("function"==typeof t)try{r=t("lodash")}catch(t){}r||(r=window._),e.exports=r},{lodash:51}],11:[function(t,e,n){var r=t("./lodash"),i=t("./util");e.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return r.forEach(t.children(),function(n){!function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){n(t,o+1)}),e[i]=o}(n,1)}),e}(t),o=r.max(r.values(n))-1,a=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=a});var u=(c=t,r.reduce(c.edges(),function(t,e){return t+c.edge(e).weight},0)+1);var c;r.forEach(t.children(),function(c){!function t(e,n,o,a,u,c,s){var l=e.children(s);if(!l.length)return void(s!==n&&e.setEdge(n,s,{weight:0,minlen:o}));var f=i.addBorderNode(e,"_bt"),h=i.addBorderNode(e,"_bb"),d=e.node(s);e.setParent(f,s);d.borderTop=f;e.setParent(h,s);d.borderBottom=h;r.forEach(l,function(r){t(e,n,o,a,u,c,r);var i=e.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:u-c[s]+1;e.setEdge(f,l,{weight:p,minlen:g,nestingEdge:!0}),e.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})});e.parent(s)||e.setEdge(n,f,{weight:0,minlen:u+c[s]})}(t,e,a,u,o,n,c)}),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)})}}},{"./lodash":10,"./util":29}],12:[function(t,e,n){"use strict";var r=t("./lodash"),i=t("./util");e.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,o,a=e.v,u=t.node(a).rank,c=e.w,s=t.node(c).rank,l=e.name,f=t.edge(e),h=f.labelRank;if(s===u+1)return;for(t.removeEdge(e),o=0,++u;u<s;++o,++u)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:e,rank:u},n=i.addDummyNode(t,"edge",r,"_d"),u===h&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),t.setEdge(a,n,{weight:f.weight},l),0===o&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,c,{weight:f.weight},l)}(t,e)})},undo:function(t){r.forEach(t.graph().dummyChains,function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)})}}},{"./lodash":10,"./util":29}],13:[function(t,e,n){var r=t("../lodash");e.exports=function(t,e,n){var i,o={};r.forEach(n,function(n){for(var r,a,u=t.parent(n);u;){if((r=t.parent(u))?(a=o[r],o[r]=u):(a=i,i=u),a&&a!==u)return void e.setEdge(a,u);u=r}})}},{"../lodash":10}],14:[function(t,e,n){var r=t("../lodash");e.exports=function(t,e){return r.map(e,function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}})}},{"../lodash":10}],15:[function(t,e,n){var r=t("../lodash"),i=t("../graphlib").Graph;e.exports=function(t,e,n){var o=function(t){var e;for(;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(e){return t.node(e)});return r.forEach(t.nodes(),function(i){var u=t.node(i),c=t.parent(i);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(a.setNode(i),a.setParent(i,c||o),r.forEach(t[n](i),function(e){var n=e.v===i?e.w:e.v,o=a.edge(n,i),u=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:t.edge(e).weight+u})}),r.has(u,"minRank")&&a.setNode(i,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))}),a}},{"../graphlib":7,"../lodash":10}],16:[function(t,e,n){"use strict";var r=t("../lodash");function i(t,e,n){for(var i=r.zipObject(n,r.map(n,function(t,e){return e})),o=r.flatten(r.map(e,function(e){return r.chain(t.outEdges(e)).map(function(e){return{pos:i[e.w],weight:t.edge(e).weight}}).sortBy("pos").value()}),!0),a=1;a<n.length;)a<<=1;var u=2*a-1;a-=1;var c=r.map(new Array(u),function(){return 0}),s=0;return r.forEach(o.forEach(function(t){var e=t.pos+a;c[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;s+=t.weight*n})),s}e.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=i(t,e[r-1],e[r]);return n}},{"../lodash":10}],17:[function(t,e,n){"use strict";var r=t("../lodash"),i=t("./init-order"),o=t("./cross-count"),a=t("./sort-subgraph"),u=t("./build-layer-graph"),c=t("./add-subgraph-constraints"),s=t("../graphlib").Graph,l=t("../util");function f(t,e,n){return r.map(e,function(e){return u(t,e,n)})}function h(t,e){var n=new s;r.forEach(t,function(t){var i=t.graph().root,o=a(t,i,n,e);r.forEach(o.vs,function(e,n){t.node(e).order=n}),c(t,n,o.vs)})}function d(t,e){r.forEach(e,function(e){r.forEach(e,function(e,n){t.node(e).order=n})})}e.exports=function(t){var e=l.maxRank(t),n=f(t,r.range(1,e+1),"inEdges"),a=f(t,r.range(e-1,-1,-1),"outEdges"),u=i(t);d(t,u);for(var c,s=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?n:a,p%4>=2),u=l.buildLayerMatrix(t);var v=o(t,u);v<s&&(g=0,c=r.cloneDeep(u),s=v)}d(t,c)}},{"../graphlib":7,"../lodash":10,"../util":29,"./add-subgraph-constraints":13,"./build-layer-graph":15,"./cross-count":16,"./init-order":18,"./sort-subgraph":20}],18:[function(t,e,n){"use strict";var r=t("../lodash");e.exports=function(t){var e={},n=r.filter(t.nodes(),function(e){return!t.children(e).length}),i=r.max(r.map(n,function(e){return t.node(e).rank})),o=r.map(r.range(i+1),function(){return[]});var a=r.sortBy(n,function(e){return t.node(e).rank});return r.forEach(a,function n(i){if(!r.has(e,i)){e[i]=!0;var a=t.node(i);o[a.rank].push(i),r.forEach(t.successors(i),n)}}),o}},{"../lodash":10}],19:[function(t,e,n){"use strict";var r=t("../lodash");e.exports=function(t,e){var n={};return r.forEach(t,function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),r.forEach(e.edges(),function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))}),function(t){var e=[];function n(t){return function(e){var n,i,o,a;e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(i=e,o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),i.weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.chain(e).filter(function(t){return!t.merged}).map(function(t){return r.pick(t,["vs","i","barycenter","weight"])}).value()}(r.filter(n,function(t){return!t.indegree}))}},{"../lodash":10}],20:[function(t,e,n){var r=t("../lodash"),i=t("./barycenter"),o=t("./resolve-conflicts"),a=t("./sort");e.exports=function t(e,n,u,c){var s=e.children(n),l=e.node(n),f=l?l.borderLeft:void 0,h=l?l.borderRight:void 0,d={};f&&(s=r.filter(s,function(t){return t!==f&&t!==h}));var p=i(e,s);r.forEach(p,function(n){if(e.children(n.v).length){var i=t(e,n.v,u,c);d[n.v]=i,r.has(i,"barycenter")&&(o=n,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var g=o(p,u);v=g,y=d,r.forEach(v,function(t){t.vs=r.flatten(t.vs.map(function(t){return y[t]?y[t].vs:t}),!0)});var v,y;var m=a(g,c);if(f&&(m.vs=r.flatten([f,m.vs,h],!0),e.predecessors(f).length)){var _=e.node(e.predecessors(f)[0]),b=e.node(e.predecessors(h)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+_.order+b.order)/(m.weight+2),m.weight+=2}return m}},{"../lodash":10,"./barycenter":14,"./resolve-conflicts":19,"./sort":21}],21:[function(t,e,n){var r=t("../lodash"),i=t("../util");function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}e.exports=function(t,e){var n=i.partition(t,function(t){return r.has(t,"barycenter")}),a=n.lhs,u=r.sortBy(n.rhs,function(t){return-t.i}),c=[],s=0,l=0,f=0;a.sort((h=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:h?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(a,function(t){f+=t.vs.length,c.push(t.vs),s+=t.barycenter*t.weight,l+=t.weight,f=o(c,u,f)});var h;var d={vs:r.flatten(c,!0)};l&&(d.barycenter=s/l,d.weight=l);return d}},{"../lodash":10,"../util":29}],22:[function(t,e,n){var r=t("./lodash");e.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],u=[],c=Math.min(e[n].low,e[r].low),s=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>c||s>e[i].lim));o=i,i=r;for(;(i=t.parent(i))!==o;)u.push(i);return{path:a.concat(u.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,u=o.lca,c=0,s=a[c],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(s=a[c])!==u&&t.node(s).maxRank<r.rank;)c++;s===u&&(l=!1)}if(!l){for(;c<a.length-1&&t.node(s=a[c+1]).minRank<=r.rank;)c++;s=a[c]}t.setParent(n,s),n=t.successors(n)[0]}})}},{"./lodash":10}],23:[function(t,e,n){"use strict";var r=t("../lodash"),i=t("../graphlib").Graph,o=t("../util");function a(t,e){var n={};return r.reduce(e,function(e,i){var o=0,a=0,u=e.length,s=r.last(i);return r.forEach(i,function(e,l){var f=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),function(e){return t.node(e).dummy})}(t,e),h=f?t.node(f).order:u;(f||e===s)&&(r.forEach(i.slice(a,l+1),function(e){r.forEach(t.predecessors(e),function(r){var i=t.node(r),a=i.order;!(a<o||h<a)||i.dummy&&t.node(e).dummy||c(n,r,e)})}),a=l+1,o=h)}),i}),n}function u(t,e){var n={};function i(e,i,o,a,u){var s;r.forEach(r.range(i,o),function(i){s=e[i],t.node(s).dummy&&r.forEach(t.predecessors(s),function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>u)&&c(n,e,s)})})}return r.reduce(e,function(e,n){var o,a=-1,u=0;return r.forEach(n,function(r,c){if("border"===t.node(r).dummy){var s=t.predecessors(r);s.length&&(o=t.node(s[0]).order,i(n,u,c,a,o),u=c,a=o)}i(n,u,n.length,o,e.length)}),n}),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function s(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},u={};return r.forEach(e,function(t){r.forEach(t,function(t,e){o[t]=t,a[t]=t,u[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var c=i(t);if(c.length)for(var l=((c=r.sortBy(c,function(t){return u[t]})).length-1)/2,f=Math.floor(l),h=Math.ceil(l);f<=h;++f){var d=c[f];a[t]===t&&e<u[d]&&!s(n,t,d)&&(a[d]=t,a[t]=o[t]=o[d],e=u[d])}})}),{root:o,align:a}}function f(t,e,n,o,a){var u,c,s,l,f,h,d,p,g,v,y={},m=(u=t,c=e,s=n,l=a,f=new i,h=u.graph(),p=h.nodesep,g=h.edgesep,v=l,d=function(t,e,n){var i,o=t.node(e),a=t.node(n),u=0;if(u+=o.width/2,r.has(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":i=-o.width/2;break;case"r":i=o.width/2}if(i&&(u+=v?i:-i),i=0,u+=(o.dummy?g:p)/2,u+=(a.dummy?g:p)/2,u+=a.width/2,r.has(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":i=a.width/2;break;case"r":i=-a.width/2}return i&&(u+=v?i:-i),i=0,u},r.forEach(c,function(t){var e;r.forEach(t,function(t){var n=s[t];if(f.setNode(n),e){var r=s[e],i=f.edge(r,n);f.setEdge(r,n,Math.max(d(u,t,e),i||0))}e=t})}),f),_=a?"borderLeft":"borderRight";function b(t,e){for(var n=m.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return b(function(t){y[t]=m.inEdges(t).reduce(function(t,e){return Math.max(t,y[e.v]+m.edge(e))},0)},r.bind(m.predecessors,m)),b(function(e){var n=m.outEdges(e).reduce(function(t,e){return Math.min(t,y[e.w]-m.edge(e))},Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==_&&(y[e]=Math.max(y[e],n))},r.bind(m.successors,m)),r.forEach(o,function(t){y[t]=y[n[t]]}),y}function h(t,e){return r.minBy(r.values(e),function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,function(e,r){var o,a=(o=r,t.node(o).width/2);n=Math.max(e+a,n),i=Math.min(e-a,i)}),n-i})}function d(t,e){var n=r.values(e),i=r.min(n),o=r.max(n);r.forEach(["u","d"],function(n){r.forEach(["l","r"],function(a){var u,c=n+a,s=t[c];if(s!==e){var l=r.values(s);(u="l"===a?i-r.min(l):o-r.max(l))&&(t[c]=r.mapValues(s,function(t){return t+u}))}})})}function p(t,e){return r.mapValues(t.ul,function(n,i){if(e)return t[e.toLowerCase()][i];var o=r.sortBy(r.map(t,i));return(o[1]+o[2])/2})}e.exports={positionX:function(t){var e,n=o.buildLayerMatrix(t),i=r.merge(a(t,n),u(t,n)),c={};r.forEach(["u","d"],function(o){e="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],function(n){"r"===n&&(e=r.map(e,function(t){return r.values(t).reverse()}));var a=r.bind("u"===o?t.predecessors:t.successors,t),u=l(t,e,i,a),s=f(t,e,u.root,u.align,"r"===n);"r"===n&&(s=r.mapValues(s,function(t){return-t})),c[o+n]=s})});var s=h(t,c);return d(c,s),p(c,t.graph().align)},findType1Conflicts:a,findType2Conflicts:u,addConflict:c,hasConflict:s,verticalAlignment:l,horizontalCompaction:f,alignCoordinates:d,findSmallestWidthAlignment:h,balance:p}},{"../graphlib":7,"../lodash":10,"../util":29}],24:[function(t,e,n){"use strict";var r=t("../lodash"),i=t("../util"),o=t("./bk").positionX;e.exports=function(t){e=t=i.asNonCompoundGraph(t),n=i.buildLayerMatrix(e),a=e.graph().ranksep,u=0,r.forEach(n,function(t){var n=r.max(r.map(t,function(t){return e.node(t).height}));r.forEach(t,function(t){e.node(t).y=u+n/2}),u+=n+a}),r.forEach(o(t),function(e,n){t.node(n).x=e});var e,n,a,u}},{"../lodash":10,"../util":29,"./bk":23}],25:[function(t,e,n){"use strict";var r=t("../lodash"),i=t("../graphlib").Graph,o=t("./util").slack;function a(t,e){return r.forEach(t.nodes(),function n(i){r.forEach(e.nodeEdges(i),function(r){var a=r.v,u=i===a?r.w:a;t.hasNode(u)||o(e,r)||(t.setNode(u,{}),t.setEdge(i,u,{}),n(u))})}),t.nodeCount()}function u(t,e){return r.minBy(e.edges(),function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)})}function c(t,e,n){r.forEach(t.nodes(),function(t){e.node(t).rank+=n})}e.exports=function(t){var e,n,r=new i({directed:!1}),s=t.nodes()[0],l=t.nodeCount();r.setNode(s,{});for(;a(r,t)<l;)e=u(r,t),n=r.hasNode(e.v)?o(t,e):-o(t,e),c(r,t,n);return r}},{"../graphlib":7,"../lodash":10,"./util":28}],26:[function(t,e,n){"use strict";var r=t("./util").longestPath,i=t("./feasible-tree"),o=t("./network-simplex");e.exports=function(t){switch(t.graph().ranker){case"network-simplex":u(t);break;case"tight-tree":r(e=t),i(e);break;case"longest-path":a(t);break;default:u(t)}var e};var a=r;function u(t){o(t)}},{"./feasible-tree":25,"./network-simplex":27,"./util":28}],27:[function(t,e,n){"use strict";var r=t("../lodash"),i=t("./feasible-tree"),o=t("./util").slack,a=t("./util").longestPath,u=t("../graphlib").alg.preorder,c=t("../graphlib").alg.postorder,s=t("../util").simplify;function l(t){t=s(t),a(t);var e,n=i(t);for(d(n),f(n,t);e=p(n);)v(n,t,e,g(n,t,e))}function f(t,e){var n=c(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,function(n){var r,i,o,a;i=e,o=n,a=(r=t).node(o).parent,r.edge(o,a).cutvalue=h(r,i,o)})}function h(t,e,n){var i=t.node(n).parent,o=!0,a=e.edge(n,i),u=0;return a||(o=!1,a=e.edge(i,n)),u=a.weight,r.forEach(e.nodeEdges(n),function(r){var a,c,s=r.v===n,l=s?r.w:r.v;if(l!==i){var f=s===o,h=e.edge(r).weight;if(u+=f?h:-h,a=n,c=l,t.hasEdge(a,c)){var d=t.edge(n,l).cutvalue;u+=f?-d:d}}}),u}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,n,i,o,a){var u=i,c=e.node(o);n[o]=!0;r.forEach(e.neighbors(o),function(a){r.has(n,a)||(i=t(e,n,i,a,o))});c.low=u;c.lim=i++;a?c.parent=a:delete c.parent;return i}(t,{},1,e)}function p(t){return r.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function g(t,e,n){var i=n.v,a=n.w;e.hasEdge(i,a)||(i=n.w,a=n.v);var u=t.node(i),c=t.node(a),s=u,l=!1;u.lim>c.lim&&(s=c,l=!0);var f=r.filter(e.edges(),function(e){return l===y(t,t.node(e.v),s)&&l!==y(t,t.node(e.w),s)});return r.minBy(f,function(t){return o(e,t)})}function v(t,e,n,i){var o,a,c,s,l=n.v,h=n.w;t.removeEdge(l,h),t.setEdge(i.v,i.w,{}),d(t),f(t,e),o=t,a=e,c=r.find(o.nodes(),function(t){return!a.node(t).parent}),s=(s=u(o,c)).slice(1),r.forEach(s,function(t){var e=o.node(t).parent,n=a.edge(t,e),r=!1;n||(n=a.edge(e,t),r=!0),a.node(t).rank=a.node(e).rank+(r?n.minlen:-n.minlen)})}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}e.exports=l,l.initLowLimValues=d,l.initCutValues=f,l.calcCutValue=h,l.leaveEdge=p,l.enterEdge=g,l.exchangeEdges=v},{"../graphlib":7,"../lodash":10,"../util":29,"./feasible-tree":25,"./util":28}],28:[function(t,e,n){"use strict";var r=t("../lodash");e.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.minBy(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));a!==Number.POSITIVE_INFINITY&&null!=a||(a=0);return o.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},{"../lodash":10}],29:[function(t,e,n){"use strict";var r=t("./lodash"),i=t("./graphlib").Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}e.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,u=e.y-o,c=t.width/2,s=t.height/2;if(!a&&!u)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(u)*c>Math.abs(a)*s?(u<0&&(s=-s),n=s*a/u,r=s):(a<0&&(c=-c),n=c,r=c*u/a);return{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)}),e},normalizeRanks:function(t){var e=r.minBy(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=r.minBy(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{}},notime:function(t,e){return e()}}},{"./graphlib":7,"./lodash":10}],30:[function(t,e,n){e.exports="0.8.2"},{}],31:[function(t,e,n){var r=t("./lib");e.exports={Graph:r.Graph,json:t("./lib/json"),alg:t("./lib/alg"),version:r.version}},{"./lib":47,"./lib/alg":38,"./lib/json":48}],32:[function(t,e,n){var r=t("../lodash");e.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},{"../lodash":49}],33:[function(t,e,n){var r=t("../lodash");e.exports=function(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],a={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,i,o,a,u){r.has(o,n)||(o[n]=!0,i||u.push(n),r.each(a(n),function(n){t(e,n,i,o,a,u)}),i&&u.push(n))}(t,e,"post"===n,a,i,o)}),o}},{"../lodash":49}],34:[function(t,e,n){var r=t("./dijkstra"),i=t("../lodash");e.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},{"../lodash":49,"./dijkstra":35}],35:[function(t,e,n){var r=t("../lodash"),i=t("../data/priority-queue");e.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,u={},c=new i,s=function(t){var e=t.v!==o?t.v:t.w,r=u[e],i=n(t),s=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);s<r.distance&&(r.distance=s,r.predecessor=o,c.decrease(e,s))};t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;u[t]={distance:n},c.add(t,n)});for(;c.size()>0&&(o=c.removeMin(),(a=u[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(s);return u}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},{"../data/priority-queue":45,"../lodash":49}],36:[function(t,e,n){var r=t("../lodash"),i=t("./tarjan");e.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},{"../lodash":49,"./tarjan":43}],37:[function(t,e,n){var r=t("../lodash");e.exports=function(t,e,n){return r=t,o=e||i,a=n||function(e){return t.outEdges(e)},u={},c=r.nodes(),c.forEach(function(t){u[t]={},u[t][t]={distance:0},c.forEach(function(e){t!==e&&(u[t][e]={distance:Number.POSITIVE_INFINITY})}),a(t).forEach(function(e){var n=e.v===t?e.w:e.v,r=o(e);u[t][n]={distance:r,predecessor:t}})}),c.forEach(function(t){var e=u[t];c.forEach(function(n){var r=u[n];c.forEach(function(n){var i=r[t],o=e[n],a=r[n],u=i.distance+o.distance;u<a.distance&&(a.distance=u,a.predecessor=o.predecessor)})})}),u;var r,o,a,u,c};var i=r.constant(1)},{"../lodash":49}],38:[function(t,e,n){e.exports={components:t("./components"),dijkstra:t("./dijkstra"),dijkstraAll:t("./dijkstra-all"),findCycles:t("./find-cycles"),floydWarshall:t("./floyd-warshall"),isAcyclic:t("./is-acyclic"),postorder:t("./postorder"),preorder:t("./preorder"),prim:t("./prim"),tarjan:t("./tarjan"),topsort:t("./topsort")}},{"./components":32,"./dijkstra":35,"./dijkstra-all":34,"./find-cycles":36,"./floyd-warshall":37,"./is-acyclic":39,"./postorder":40,"./preorder":41,"./prim":42,"./tarjan":43,"./topsort":44}],39:[function(t,e,n){var r=t("./topsort");e.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},{"./topsort":44}],40:[function(t,e,n){var r=t("./dfs");e.exports=function(t,e){return r(t,e,"post")}},{"./dfs":33}],41:[function(t,e,n){var r=t("./dfs");e.exports=function(t,e){return r(t,e,"pre")}},{"./dfs":33}],42:[function(t,e,n){var r=t("../lodash"),i=t("../graph"),o=t("../data/priority-queue");e.exports=function(t,e){var n,a=new i,u={},c=new o;function s(t){var r=t.v===n?t.w:t.v,i=c.priority(r);if(void 0!==i){var o=e(t);o<i&&(u[r]=n,c.decrease(r,o))}}if(0===t.nodeCount())return a;r.each(t.nodes(),function(t){c.add(t,Number.POSITIVE_INFINITY),a.setNode(t)}),c.decrease(t.nodes()[0],0);var l=!1;for(;c.size()>0;){if(n=c.removeMin(),r.has(u,n))a.setEdge(n,u[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(s)}return a}},{"../data/priority-queue":45,"../graph":46,"../lodash":49}],43:[function(t,e,n){var r=t("../lodash");e.exports=function(t){var e=0,n=[],i={},o=[];return t.nodes().forEach(function(a){r.has(i,a)||function a(u){var c=i[u]={onStack:!0,lowlink:e,index:e++};if(n.push(u),t.successors(u).forEach(function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(a(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))}),c.lowlink===c.index){var s,l=[];do{s=n.pop(),i[s].onStack=!1,l.push(s)}while(u!==s);o.push(l)}}(a)}),o}},{"../lodash":49}],44:[function(t,e,n){var r=t("../lodash");function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(u){if(r.has(n,u))throw new o;r.has(e,u)||(n[u]=!0,e[u]=!0,r.each(t.predecessors(u),a),delete n[u],i.push(u))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o},{"../lodash":49}],45:[function(t,e,n){var r=t("../lodash");function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e}},{"../lodash":49}],46:[function(t,e,n){"use strict";var r=t("./lodash");e.exports=u;var i="\0",o="\0",a="";function u(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function c(t,e){t[e]?t[e]++:t[e]=1}function s(t,e){--t[e]||delete t[e]}function l(t,e,n,o){var u=""+e,c=""+n;if(!t&&u>c){var s=u;u=c,c=s}return u+a+c+a+(r.isUndefined(o)?i:o)}function f(t,e){return l(t,e.v,e.w,e.name)}u.prototype._nodeCount=0,u.prototype._edgeCount=0,u.prototype.isDirected=function(){return this._isDirected},u.prototype.isMultigraph=function(){return this._isMultigraph},u.prototype.isCompound=function(){return this._isCompound},u.prototype.setGraph=function(t){return this._label=t,this},u.prototype.graph=function(){return this._label},u.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},u.prototype.nodeCount=function(){return this._nodeCount},u.prototype.nodes=function(){return r.keys(this._nodes)},u.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},u.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},u.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,function(t){n.length>1?i.setNode(t,e):i.setNode(t)}),this},u.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},u.prototype.node=function(t){return this._nodes[t]},u.prototype.hasNode=function(t){return r.has(this._nodes,t)},u.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},u.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=o;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},u.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},u.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==o)return e}},u.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},u.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},u.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},u.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},u.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},u.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var i={};return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,function t(r){var o=n.parent(r);return void 0===o||e.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))}),e},u.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},u.prototype.edgeCount=function(){return this._edgeCount},u.prototype.edges=function(){return r.values(this._edgeObjs)},u.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},u.prototype.setEdge=function(){var t,e,n,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var u=l(this._isDirected,t,e,n);if(r.has(this._edgeLabels,u))return o&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=o?i:this._defaultEdgeLabelFn(t,e,n);var s=function(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var u={v:i,w:o};r&&(u.name=r);return u}(this._isDirected,t,e,n);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[u]=s,c(this._preds[e],t),c(this._sucs[t],e),this._in[e][u]=s,this._out[t][u]=s,this._edgeCount++,this},u.prototype.edge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,n);return this._edgeLabels[r]},u.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},u.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},u.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},u.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},u.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},{"./lodash":49}],47:[function(t,e,n){e.exports={Graph:t("./graph"),version:t("./version")}},{"./graph":46,"./version":50}],48:[function(t,e,n){var r=t("./lodash"),i=t("./graph");e.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:(i=t,r.map(i.nodes(),function(t){var e=i.node(t),n=i.parent(t),o={v:t};return r.isUndefined(e)||(o.value=e),r.isUndefined(n)||(o.parent=n),o})),edges:(n=t,r.map(n.edges(),function(t){var e=n.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(e)||(i.value=e),i}))};var n;var i;r.isUndefined(t.graph())||(e.value=r.clone(t.graph()));return e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},{"./graph":46,"./lodash":49}],49:[function(t,e,n){arguments[4][10][0].apply(n,arguments)},{dup:10,lodash:51}],50:[function(t,e,n){e.exports="2.1.5"},{}],51:[function(t,e,n){(function(t){(function(){var r,i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="__lodash_hash_undefined__",c=500,s="__lodash_placeholder__",l=1,f=2,h=4,d=1,p=2,g=1,v=2,y=4,m=8,_=16,b=32,x=64,w=128,E=256,k=512,M=30,N="...",A=800,C=16,T=1,S=2,j=1/0,D=9007199254740991,L=1.7976931348623157e308,O=NaN,I=4294967295,R=I-1,z=I>>>1,q=[["ary",w],["bind",g],["bindKey",v],["curry",m],["curryRight",_],["flip",k],["partial",b],["partialRight",x],["rearg",E]],F="[object Arguments]",P="[object Array]",B="[object AsyncFunction]",H="[object Boolean]",$="[object Date]",W="[object DOMException]",U="[object Error]",G="[object Function]",V="[object GeneratorFunction]",Y="[object Map]",X="[object Number]",Z="[object Null]",K="[object Object]",J="[object Promise]",Q="[object Proxy]",tt="[object RegExp]",et="[object Set]",nt="[object String]",rt="[object Symbol]",it="[object Undefined]",ot="[object WeakMap]",at="[object WeakSet]",ut="[object ArrayBuffer]",ct="[object DataView]",st="[object Float32Array]",lt="[object Float64Array]",ft="[object Int8Array]",ht="[object Int16Array]",dt="[object Int32Array]",pt="[object Uint8Array]",gt="[object Uint8ClampedArray]",vt="[object Uint16Array]",yt="[object Uint32Array]",mt=/\b__p \+= '';/g,_t=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xt=/&(?:amp|lt|gt|quot|#39);/g,wt=/[&<>"']/g,Et=RegExp(xt.source),kt=RegExp(wt.source),Mt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,At=/<%=([\s\S]+?)%>/g,Ct=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tt=/^\w*$/,St=/^\./,jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dt=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(Dt.source),Ot=/^\s+|\s+$/g,It=/^\s+/,Rt=/\s+$/,zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ft=/,? & /,Pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bt=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$t=/\w*$/,Wt=/^[-+]0x[0-9a-f]+$/i,Ut=/^0b[01]+$/i,Gt=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Yt=/^(?:0|[1-9]\d*)$/,Xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zt=/($^)/,Kt=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",Qt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",te="\\u2700-\\u27bf",ee="a-z\\xdf-\\xf6\\xf8-\\xff",ne="A-Z\\xc0-\\xd6\\xd8-\\xde",re="\\ufe0e\\ufe0f",ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oe="["+Jt+"]",ae="["+ie+"]",ue="["+Qt+"]",ce="\\d+",se="["+te+"]",le="["+ee+"]",fe="[^"+Jt+ie+ce+te+ee+ne+"]",he="\\ud83c[\\udffb-\\udfff]",de="[^"+Jt+"]",pe="(?:\\ud83c[\\udde6-\\uddff]){2}",ge="[\\ud800-\\udbff][\\udc00-\\udfff]",ve="["+ne+"]",ye="(?:"+le+"|"+fe+")",me="(?:"+ve+"|"+fe+")",_e="(?:['’](?:d|ll|m|re|s|t|ve))?",be="(?:['’](?:D|LL|M|RE|S|T|VE))?",xe="(?:"+ue+"|"+he+")"+"?",we="["+re+"]?",Ee=we+xe+("(?:\\u200d(?:"+[de,pe,ge].join("|")+")"+we+xe+")*"),ke="(?:"+[se,pe,ge].join("|")+")"+Ee,Me="(?:"+[de+ue+"?",ue,pe,ge,oe].join("|")+")",Ne=RegExp("['’]","g"),Ae=RegExp(ue,"g"),Ce=RegExp(he+"(?="+he+")|"+Me+Ee,"g"),Te=RegExp([ve+"?"+le+"+"+_e+"(?="+[ae,ve,"$"].join("|")+")",me+"+"+be+"(?="+[ae,ve+ye,"$"].join("|")+")",ve+"?"+ye+"+"+_e,ve+"+"+be,"\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",ce,ke].join("|"),"g"),Se=RegExp("[\\u200d"+Jt+Qt+re+"]"),je=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,De=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Le=-1,Oe={};Oe[st]=Oe[lt]=Oe[ft]=Oe[ht]=Oe[dt]=Oe[pt]=Oe[gt]=Oe[vt]=Oe[yt]=!0,Oe[F]=Oe[P]=Oe[ut]=Oe[H]=Oe[ct]=Oe[$]=Oe[U]=Oe[G]=Oe[Y]=Oe[X]=Oe[K]=Oe[tt]=Oe[et]=Oe[nt]=Oe[ot]=!1;var Ie={};Ie[F]=Ie[P]=Ie[ut]=Ie[ct]=Ie[H]=Ie[$]=Ie[st]=Ie[lt]=Ie[ft]=Ie[ht]=Ie[dt]=Ie[Y]=Ie[X]=Ie[K]=Ie[tt]=Ie[et]=Ie[nt]=Ie[rt]=Ie[pt]=Ie[gt]=Ie[vt]=Ie[yt]=!0,Ie[U]=Ie[G]=Ie[ot]=!1;var Re={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ze=parseFloat,qe=parseInt,Fe="object"==typeof t&&t&&t.Object===Object&&t,Pe="object"==typeof self&&self&&self.Object===Object&&self,Be=Fe||Pe||Function("return this")(),He="object"==typeof n&&n&&!n.nodeType&&n,$e=He&&"object"==typeof e&&e&&!e.nodeType&&e,We=$e&&$e.exports===He,Ue=We&&Fe.process,Ge=function(){try{return Ue&&Ue.binding&&Ue.binding("util")}catch(t){}}(),Ve=Ge&&Ge.isArrayBuffer,Ye=Ge&&Ge.isDate,Xe=Ge&&Ge.isMap,Ze=Ge&&Ge.isRegExp,Ke=Ge&&Ge.isSet,Je=Ge&&Ge.isTypedArray;function Qe(t,e){return t.set(e[0],e[1]),t}function tn(t,e){return t.add(e),t}function en(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function nn(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function rn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function on(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function an(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function un(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function cn(t,e){return!!(null==t?0:t.length)&&mn(t,e,0)>-1}function sn(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function ln(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function fn(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function hn(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function dn(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function pn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var gn=wn("length");function vn(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function yn(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function mn(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):yn(t,bn,n)}function _n(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function bn(t){return t!=t}function xn(t,e){var n=null==t?0:t.length;return n?Mn(t,e)/n:O}function wn(t){return function(e){return null==e?r:e[t]}}function En(t){return function(e){return null==t?r:t[e]}}function kn(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Mn(t,e){for(var n,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==r&&(n=n===r?a:n+a)}return n}function Nn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function An(t){return function(e){return t(e)}}function Cn(t,e){return ln(e,function(e){return t[e]})}function Tn(t,e){return t.has(e)}function Sn(t,e){for(var n=-1,r=t.length;++n<r&&mn(e,t[n],0)>-1;);return n}function jn(t,e){for(var n=t.length;n--&&mn(e,t[n],0)>-1;);return n}var Dn=En({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Ln=En({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function On(t){return"\\"+Re[t]}function In(t){return Se.test(t)}function Rn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function zn(t,e){return function(n){return t(e(n))}}function qn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==s||(t[n]=s,o[i++]=n)}return o}function Fn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function Pn(t){return In(t)?function(t){var e=Ce.lastIndex=0;for(;Ce.test(t);)++e;return e}(t):gn(t)}function Bn(t){return In(t)?t.match(Ce)||[]:t.split("")}var Hn=En({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var $n=function t(e){var n,Jt=(e=null==e?Be:$n.defaults(Be.Object(),e,$n.pick(Be,De))).Array,Qt=e.Date,te=e.Error,ee=e.Function,ne=e.Math,re=e.Object,ie=e.RegExp,oe=e.String,ae=e.TypeError,ue=Jt.prototype,ce=ee.prototype,se=re.prototype,le=e["__core-js_shared__"],fe=ce.toString,he=se.hasOwnProperty,de=0,pe=(n=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ge=se.toString,ve=fe.call(re),ye=Be._,me=ie("^"+fe.call(he).replace(Dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_e=We?e.Buffer:r,be=e.Symbol,xe=e.Uint8Array,we=_e?_e.allocUnsafe:r,Ee=zn(re.getPrototypeOf,re),ke=re.create,Me=se.propertyIsEnumerable,Ce=ue.splice,Se=be?be.isConcatSpreadable:r,Re=be?be.iterator:r,Fe=be?be.toStringTag:r,Pe=function(){try{var t=Ho(re,"defineProperty");return t({},"",{}),t}catch(t){}}(),He=e.clearTimeout!==Be.clearTimeout&&e.clearTimeout,$e=Qt&&Qt.now!==Be.Date.now&&Qt.now,Ue=e.setTimeout!==Be.setTimeout&&e.setTimeout,Ge=ne.ceil,gn=ne.floor,En=re.getOwnPropertySymbols,Wn=_e?_e.isBuffer:r,Un=e.isFinite,Gn=ue.join,Vn=zn(re.keys,re),Yn=ne.max,Xn=ne.min,Zn=Qt.now,Kn=e.parseInt,Jn=ne.random,Qn=ue.reverse,tr=Ho(e,"DataView"),er=Ho(e,"Map"),nr=Ho(e,"Promise"),rr=Ho(e,"Set"),ir=Ho(e,"WeakMap"),or=Ho(re,"create"),ar=ir&&new ir,ur={},cr=ga(tr),sr=ga(er),lr=ga(nr),fr=ga(rr),hr=ga(ir),dr=be?be.prototype:r,pr=dr?dr.valueOf:r,gr=dr?dr.toString:r;function vr(t){if(Du(t)&&!xu(t)&&!(t instanceof br)){if(t instanceof _r)return t;if(he.call(t,"__wrapped__"))return va(t)}return new _r(t)}var yr=function(){function t(){}return function(e){if(!ju(e))return{};if(ke)return ke(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function mr(){}function _r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function br(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=I,this.__views__=[]}function xr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function wr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Er(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function kr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Er;++e<n;)this.add(t[e])}function Mr(t){var e=this.__data__=new wr(t);this.size=e.size}function Nr(t,e){var n=xu(t),r=!n&&bu(t),i=!n&&!r&&Mu(t),o=!n&&!r&&!i&&Pu(t),a=n||r||i||o,u=a?Nn(t.length,oe):[],c=u.length;for(var s in t)!e&&!he.call(t,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Xo(s,c))||u.push(s);return u}function Ar(t){var e=t.length;return e?t[ki(0,e-1)]:r}function Cr(t,e){return la(oo(t),zr(e,0,t.length))}function Tr(t){return la(oo(t))}function Sr(t,e,n){(n===r||yu(t[e],n))&&(n!==r||e in t)||Ir(t,e,n)}function jr(t,e,n){var i=t[e];he.call(t,e)&&yu(i,n)&&(n!==r||e in t)||Ir(t,e,n)}function Dr(t,e){for(var n=t.length;n--;)if(yu(t[n][0],e))return n;return-1}function Lr(t,e,n,r){return Hr(t,function(t,i,o){e(r,t,n(t),o)}),r}function Or(t,e){return t&&ao(e,cc(e),t)}function Ir(t,e,n){"__proto__"==e&&Pe?Pe(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Rr(t,e){for(var n=-1,i=e.length,o=Jt(i),a=null==t;++n<i;)o[n]=a?r:rc(t,e[n]);return o}function zr(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function qr(t,e,n,i,o,a){var u,c=e&l,s=e&f,d=e&h;if(n&&(u=o?n(t,i,o,a):n(t)),u!==r)return u;if(!ju(t))return t;var p,g,v,y,m,_,b,x,w,E=xu(t);if(E){if(x=(b=t).length,w=b.constructor(x),x&&"string"==typeof b[0]&&he.call(b,"index")&&(w.index=b.index,w.input=b.input),u=w,!c)return oo(t,u)}else{var k=Uo(t),M=k==G||k==V;if(Mu(t))return Qi(t,c);if(k==K||k==F||M&&!o){if(u=s||M?{}:Vo(t),!c)return s?(v=t,_=t,y=(m=u)&&ao(_,sc(_),m),ao(v,Wo(v),y)):(p=t,g=Or(u,t),ao(p,$o(p),g))}else{if(!Ie[k])return o?t:{};u=function(t,e,n,r){var i,o,a,u,c,s,f,h=t.constructor;switch(e){case ut:return to(t);case H:case $:return new h(+t);case ct:return s=t,f=r?to(s.buffer):s.buffer,new s.constructor(f,s.byteOffset,s.byteLength);case st:case lt:case ft:case ht:case dt:case pt:case gt:case vt:case yt:return eo(t,r);case Y:return c=t,hn(r?n(Rn(c),l):Rn(c),Qe,new c.constructor);case X:case nt:return new h(t);case tt:return(u=new(a=t).constructor(a.source,$t.exec(a))).lastIndex=a.lastIndex,u;case et:return o=t,hn(r?n(Fn(o),l):Fn(o),tn,new o.constructor);case rt:return i=t,pr?re(pr.call(i)):{}}}(t,k,qr,c)}}a||(a=new Mr);var N=a.get(t);if(N)return N;a.set(t,u);var A=E?r:(d?s?Io:Oo:s?sc:cc)(t);return rn(A||t,function(r,i){A&&(r=t[i=r]),jr(u,i,qr(r,e,n,i,t,a))}),u}function Fr(t,e,n){var i=n.length;if(null==t)return!i;for(t=re(t);i--;){var o=n[i],a=e[o],u=t[o];if(u===r&&!(o in t)||!a(u))return!1}return!0}function Pr(t,e,n){if("function"!=typeof t)throw new ae(a);return aa(function(){t.apply(r,n)},e)}function Br(t,e,n,r){var o=-1,a=cn,u=!0,c=t.length,s=[],l=e.length;if(!c)return s;n&&(e=ln(e,An(n))),r?(a=sn,u=!1):e.length>=i&&(a=Tn,u=!1,e=new kr(e));t:for(;++o<c;){var f=t[o],h=null==n?f:n(f);if(f=r||0!==f?f:0,u&&h==h){for(var d=l;d--;)if(e[d]===h)continue t;s.push(f)}else a(e,h,r)||s.push(f)}return s}vr.templateSettings={escape:Mt,evaluate:Nt,interpolate:At,variable:"",imports:{_:vr}},vr.prototype=mr.prototype,vr.prototype.constructor=vr,_r.prototype=yr(mr.prototype),_r.prototype.constructor=_r,br.prototype=yr(mr.prototype),br.prototype.constructor=br,xr.prototype.clear=function(){this.__data__=or?or(null):{},this.size=0},xr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xr.prototype.get=function(t){var e=this.__data__;if(or){var n=e[t];return n===u?r:n}return he.call(e,t)?e[t]:r},xr.prototype.has=function(t){var e=this.__data__;return or?e[t]!==r:he.call(e,t)},xr.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=or&&e===r?u:e,this},wr.prototype.clear=function(){this.__data__=[],this.size=0},wr.prototype.delete=function(t){var e=this.__data__,n=Dr(e,t);return!(n<0||(n==e.length-1?e.pop():Ce.call(e,n,1),--this.size,0))},wr.prototype.get=function(t){var e=this.__data__,n=Dr(e,t);return n<0?r:e[n][1]},wr.prototype.has=function(t){return Dr(this.__data__,t)>-1},wr.prototype.set=function(t,e){var n=this.__data__,r=Dr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Er.prototype.clear=function(){this.size=0,this.__data__={hash:new xr,map:new(er||wr),string:new xr}},Er.prototype.delete=function(t){var e=Po(this,t).delete(t);return this.size-=e?1:0,e},Er.prototype.get=function(t){return Po(this,t).get(t)},Er.prototype.has=function(t){return Po(this,t).has(t)},Er.prototype.set=function(t,e){var n=Po(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},kr.prototype.add=kr.prototype.push=function(t){return this.__data__.set(t,u),this},kr.prototype.has=function(t){return this.__data__.has(t)},Mr.prototype.clear=function(){this.__data__=new wr,this.size=0},Mr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Mr.prototype.get=function(t){return this.__data__.get(t)},Mr.prototype.has=function(t){return this.__data__.has(t)},Mr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!er||r.length<i-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Er(r)}return n.set(t,e),this.size=n.size,this};var Hr=so(Zr),$r=so(Kr,!0);function Wr(t,e){var n=!0;return Hr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Ur(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],u=e(a);if(null!=u&&(c===r?u==u&&!Fu(u):n(u,c)))var c=u,s=a}return s}function Gr(t,e){var n=[];return Hr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Vr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=Yo),i||(i=[]);++o<a;){var u=t[o];e>0&&n(u)?e>1?Vr(u,e-1,n,r,i):fn(i,u):r||(i[i.length]=u)}return i}var Yr=lo(),Xr=lo(!0);function Zr(t,e){return t&&Yr(t,e,cc)}function Kr(t,e){return t&&Xr(t,e,cc)}function Jr(t,e){return un(e,function(e){return Cu(t[e])})}function Qr(t,e){for(var n=0,i=(e=Xi(e,t)).length;null!=t&&n<i;)t=t[pa(e[n++])];return n&&n==i?t:r}function ti(t,e,n){var r=e(t);return xu(t)?r:fn(r,n(t))}function ei(t){return null==t?t===r?it:Z:Fe&&Fe in re(t)?function(t){var e=he.call(t,Fe),n=t[Fe];try{t[Fe]=r;var i=!0}catch(t){}var o=ge.call(t);return i&&(e?t[Fe]=n:delete t[Fe]),o}(t):(e=t,ge.call(e));var e}function ni(t,e){return t>e}function ri(t,e){return null!=t&&he.call(t,e)}function ii(t,e){return null!=t&&e in re(t)}function oi(t,e,n){for(var i=n?sn:cn,o=t[0].length,a=t.length,u=a,c=Jt(a),s=1/0,l=[];u--;){var f=t[u];u&&e&&(f=ln(f,An(e))),s=Xn(f.length,s),c[u]=!n&&(e||o>=120&&f.length>=120)?new kr(u&&f):r}f=t[0];var h=-1,d=c[0];t:for(;++h<o&&l.length<s;){var p=f[h],g=e?e(p):p;if(p=n||0!==p?p:0,!(d?Tn(d,g):i(l,g,n))){for(u=a;--u;){var v=c[u];if(!(v?Tn(v,g):i(t[u],g,n)))continue t}d&&d.push(g),l.push(p)}}return l}function ai(t,e,n){var i=null==(t=ia(t,e=Xi(e,t)))?t:t[pa(Aa(e))];return null==i?r:en(i,t,n)}function ui(t){return Du(t)&&ei(t)==F}function ci(t,e,n,i,o){return t===e||(null==t||null==e||!Du(t)&&!Du(e)?t!=t&&e!=e:function(t,e,n,i,o,a){var u=xu(t),c=xu(e),s=u?P:Uo(t),l=c?P:Uo(e),f=(s=s==F?K:s)==K,h=(l=l==F?K:l)==K,g=s==l;if(g&&Mu(t)){if(!Mu(e))return!1;u=!0,f=!1}if(g&&!f)return a||(a=new Mr),u||Pu(t)?Do(t,e,n,i,o,a):function(t,e,n,r,i,o,a){switch(n){case ct:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ut:return!(t.byteLength!=e.byteLength||!o(new xe(t),new xe(e)));case H:case $:case X:return yu(+t,+e);case U:return t.name==e.name&&t.message==e.message;case tt:case nt:return t==e+"";case Y:var u=Rn;case et:var c=r&d;if(u||(u=Fn),t.size!=e.size&&!c)return!1;var s=a.get(t);if(s)return s==e;r|=p,a.set(t,e);var l=Do(u(t),u(e),r,i,o,a);return a.delete(t),l;case rt:if(pr)return pr.call(t)==pr.call(e)}return!1}(t,e,s,n,i,o,a);if(!(n&d)){var v=f&&he.call(t,"__wrapped__"),y=h&&he.call(e,"__wrapped__");if(v||y){var m=v?t.value():t,_=y?e.value():e;return a||(a=new Mr),o(m,_,n,i,a)}}return!!g&&(a||(a=new Mr),function(t,e,n,i,o,a){var u=n&d,c=Oo(t),s=c.length,l=Oo(e).length;if(s!=l&&!u)return!1;for(var f=s;f--;){var h=c[f];if(!(u?h in e:he.call(e,h)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var g=!0;a.set(t,e),a.set(e,t);for(var v=u;++f<s;){h=c[f];var y=t[h],m=e[h];if(i)var _=u?i(m,y,h,e,t,a):i(y,m,h,t,e,a);if(!(_===r?y===m||o(y,m,n,i,a):_)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var b=t.constructor,x=e.constructor;b!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(g=!1)}return a.delete(t),a.delete(e),g}(t,e,n,i,o,a))}(t,e,n,i,ci,o))}function si(t,e,n,i){var o=n.length,a=o,u=!i;if(null==t)return!a;for(t=re(t);o--;){var c=n[o];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<a;){var s=(c=n[o])[0],l=t[s],f=c[1];if(u&&c[2]){if(l===r&&!(s in t))return!1}else{var h=new Mr;if(i)var g=i(l,f,s,t,e,h);if(!(g===r?ci(f,l,d|p,i,h):g))return!1}}return!0}function li(t){return!(!ju(t)||pe&&pe in t)&&(Cu(t)?me:Gt).test(ga(t))}function fi(t){return"function"==typeof t?t:null==t?Oc:"object"==typeof t?xu(t)?yi(t[0],t[1]):vi(t):$c(t)}function hi(t){if(!ta(t))return Vn(t);var e=[];for(var n in re(t))he.call(t,n)&&"constructor"!=n&&e.push(n);return e}function di(t){if(!ju(t))return function(t){var e=[];if(null!=t)for(var n in re(t))e.push(n);return e}(t);var e=ta(t),n=[];for(var r in t)("constructor"!=r||!e&&he.call(t,r))&&n.push(r);return n}function pi(t,e){return t<e}function gi(t,e){var n=-1,r=Eu(t)?Jt(t.length):[];return Hr(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function vi(t){var e=Bo(t);return 1==e.length&&e[0][2]?na(e[0][0],e[0][1]):function(n){return n===t||si(n,t,e)}}function yi(t,e){return Ko(t)&&ea(e)?na(pa(t),e):function(n){var i=rc(n,t);return i===r&&i===e?ic(n,t):ci(e,i,d|p)}}function mi(t,e,n,i,o){t!==e&&Yr(e,function(a,u){if(ju(a))o||(o=new Mr),function(t,e,n,i,o,a,u){var c=t[n],s=e[n],l=u.get(s);if(l)Sr(t,n,l);else{var f=a?a(c,s,n+"",t,e,u):r,h=f===r;if(h){var d=xu(s),p=!d&&Mu(s),g=!d&&!p&&Pu(s);f=s,d||p||g?xu(c)?f=c:ku(c)?f=oo(c):p?(h=!1,f=Qi(s,!0)):g?(h=!1,f=eo(s,!0)):f=[]:Iu(s)||bu(s)?(f=c,bu(c)?f=Yu(c):(!ju(c)||i&&Cu(c))&&(f=Vo(s))):h=!1}h&&(u.set(s,f),o(f,s,i,a,u),u.delete(s)),Sr(t,n,f)}}(t,e,u,n,mi,i,o);else{var c=i?i(t[u],a,u+"",t,e,o):r;c===r&&(c=a),Sr(t,u,c)}},sc)}function _i(t,e){var n=t.length;if(n)return Xo(e+=e<0?n:0,n)?t[e]:r}function bi(t,e,n){var r=-1;return e=ln(e.length?e:[Oc],An(Fo())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(gi(t,function(t,n,i){return{criteria:ln(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,u=n.length;++r<a;){var c=no(i[r],o[r]);if(c){if(r>=u)return c;var s=n[r];return c*("desc"==s?-1:1)}}return t.index-e.index}(t,e,n)})}function xi(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],u=Qr(t,a);n(u,a)&&Ti(o,Xi(a,t),u)}return o}function wi(t,e,n,r){var i=r?_n:mn,o=-1,a=e.length,u=t;for(t===e&&(e=oo(e)),n&&(u=ln(t,An(n)));++o<a;)for(var c=0,s=e[o],l=n?n(s):s;(c=i(u,l,c,r))>-1;)u!==t&&Ce.call(u,c,1),Ce.call(t,c,1);return t}function Ei(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Xo(i)?Ce.call(t,i,1):Bi(t,i)}}return t}function ki(t,e){return t+gn(Jn()*(e-t+1))}function Mi(t,e){var n="";if(!t||e<1||e>D)return n;do{e%2&&(n+=t),(e=gn(e/2))&&(t+=t)}while(e);return n}function Ni(t,e){return ua(ra(t,e,Oc),t+"")}function Ai(t){return Ar(yc(t))}function Ci(t,e){var n=yc(t);return la(n,zr(e,0,n.length))}function Ti(t,e,n,i){if(!ju(t))return t;for(var o=-1,a=(e=Xi(e,t)).length,u=a-1,c=t;null!=c&&++o<a;){var s=pa(e[o]),l=n;if(o!=u){var f=c[s];(l=i?i(f,s,c):r)===r&&(l=ju(f)?f:Xo(e[o+1])?[]:{})}jr(c,s,l),c=c[s]}return t}var Si=ar?function(t,e){return ar.set(t,e),t}:Oc,ji=Pe?function(t,e){return Pe(t,"toString",{configurable:!0,enumerable:!1,value:jc(e),writable:!0})}:Oc;function Di(t){return la(yc(t))}function Li(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Jt(i);++r<i;)o[r]=t[r+e];return o}function Oi(t,e){var n;return Hr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function Ii(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=z){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Fu(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Ri(t,e,Oc,n)}function Ri(t,e,n,i){e=n(e);for(var o=0,a=null==t?0:t.length,u=e!=e,c=null===e,s=Fu(e),l=e===r;o<a;){var f=gn((o+a)/2),h=n(t[f]),d=h!==r,p=null===h,g=h==h,v=Fu(h);if(u)var y=i||g;else y=l?g&&(i||d):c?g&&d&&(i||!p):s?g&&d&&!p&&(i||!v):!p&&!v&&(i?h<=e:h<e);y?o=f+1:a=f}return Xn(a,R)}function zi(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],u=e?e(a):a;if(!n||!yu(u,c)){var c=u;o[i++]=0===a?0:a}}return o}function qi(t){return"number"==typeof t?t:Fu(t)?O:+t}function Fi(t){if("string"==typeof t)return t;if(xu(t))return ln(t,Fi)+"";if(Fu(t))return gr?gr.call(t):"";var e=t+"";return"0"==e&&1/t==-j?"-0":e}function Pi(t,e,n){var r=-1,o=cn,a=t.length,u=!0,c=[],s=c;if(n)u=!1,o=sn;else if(a>=i){var l=e?null:No(t);if(l)return Fn(l);u=!1,o=Tn,s=new kr}else s=e?[]:c;t:for(;++r<a;){var f=t[r],h=e?e(f):f;if(f=n||0!==f?f:0,u&&h==h){for(var d=s.length;d--;)if(s[d]===h)continue t;e&&s.push(h),c.push(f)}else o(s,h,n)||(s!==c&&s.push(h),c.push(f))}return c}function Bi(t,e){return null==(t=ia(t,e=Xi(e,t)))||delete t[pa(Aa(e))]}function Hi(t,e,n,r){return Ti(t,e,n(Qr(t,e)),r)}function $i(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Li(t,r?0:o,r?o+1:i):Li(t,r?o+1:0,r?i:o)}function Wi(t,e){var n=t;return n instanceof br&&(n=n.value()),hn(e,function(t,e){return e.func.apply(e.thisArg,fn([t],e.args))},n)}function Ui(t,e,n){var r=t.length;if(r<2)return r?Pi(t[0]):[];for(var i=-1,o=Jt(r);++i<r;)for(var a=t[i],u=-1;++u<r;)u!=i&&(o[i]=Br(o[i]||a,t[u],e,n));return Pi(Vr(o,1),e,n)}function Gi(t,e,n){for(var i=-1,o=t.length,a=e.length,u={};++i<o;){var c=i<a?e[i]:r;n(u,t[i],c)}return u}function Vi(t){return ku(t)?t:[]}function Yi(t){return"function"==typeof t?t:Oc}function Xi(t,e){return xu(t)?t:Ko(t,e)?[t]:da(Xu(t))}var Zi=Ni;function Ki(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:Li(t,e,n)}var Ji=He||function(t){return Be.clearTimeout(t)};function Qi(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function to(t){var e=new t.constructor(t.byteLength);return new xe(e).set(new xe(t)),e}function eo(t,e){var n=e?to(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function no(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,a=Fu(t),u=e!==r,c=null===e,s=e==e,l=Fu(e);if(!c&&!l&&!a&&t>e||a&&u&&s&&!c&&!l||i&&u&&s||!n&&s||!o)return 1;if(!i&&!a&&!l&&t<e||l&&n&&o&&!i&&!a||c&&n&&o||!u&&o||!s)return-1}return 0}function ro(t,e,n,r){for(var i=-1,o=t.length,a=n.length,u=-1,c=e.length,s=Yn(o-a,0),l=Jt(c+s),f=!r;++u<c;)l[u]=e[u];for(;++i<a;)(f||i<o)&&(l[n[i]]=t[i]);for(;s--;)l[u++]=t[i++];return l}function io(t,e,n,r){for(var i=-1,o=t.length,a=-1,u=n.length,c=-1,s=e.length,l=Yn(o-u,0),f=Jt(l+s),h=!r;++i<l;)f[i]=t[i];for(var d=i;++c<s;)f[d+c]=e[c];for(;++a<u;)(h||i<o)&&(f[d+n[a]]=t[i++]);return f}function oo(t,e){var n=-1,r=t.length;for(e||(e=Jt(r));++n<r;)e[n]=t[n];return e}function ao(t,e,n,i){var o=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var c=e[a],s=i?i(n[c],t[c],c,n,t):r;s===r&&(s=t[c]),o?Ir(n,c,s):jr(n,c,s)}return n}function uo(t,e){return function(n,r){var i=xu(n)?nn:Lr,o=e?e():{};return i(n,t,Fo(r,2),o)}}function co(t){return Ni(function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,u=o>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(o--,a):r,u&&Zo(n[0],n[1],u)&&(a=o<3?r:a,o=1),e=re(e);++i<o;){var c=n[i];c&&t(e,c,i,a)}return e})}function so(t,e){return function(n,r){if(null==n)return n;if(!Eu(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=re(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function lo(t){return function(e,n,r){for(var i=-1,o=re(e),a=r(e),u=a.length;u--;){var c=a[t?u:++i];if(!1===n(o[c],c,o))break}return e}}function fo(t){return function(e){var n=In(e=Xu(e))?Bn(e):r,i=n?n[0]:e.charAt(0),o=n?Ki(n,1).join(""):e.slice(1);return i[t]()+o}}function ho(t){return function(e){return hn(Cc(bc(e).replace(Ne,"")),t,"")}}function po(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=yr(t.prototype),r=t.apply(n,e);return ju(r)?r:n}}function go(t){return function(e,n,i){var o=re(e);if(!Eu(e)){var a=Fo(n,3);e=cc(e),n=function(t){return a(o[t],t,o)}}var u=t(e,n,i);return u>-1?o[a?e[u]:u]:r}}function vo(t){return Lo(function(e){var n=e.length,i=n,o=_r.prototype.thru;for(t&&e.reverse();i--;){var u=e[i];if("function"!=typeof u)throw new ae(a);if(o&&!c&&"wrapper"==zo(u))var c=new _r([],!0)}for(i=c?i:n;++i<n;){var s=zo(u=e[i]),l="wrapper"==s?Ro(u):r;c=l&&Jo(l[0])&&l[1]==(w|m|b|E)&&!l[4].length&&1==l[9]?c[zo(l[0])].apply(c,l[3]):1==u.length&&Jo(u)?c[s]():c.thru(u)}return function(){var t=arguments,r=t[0];if(c&&1==t.length&&xu(r))return c.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function yo(t,e,n,i,o,a,u,c,s,l){var f=e&w,h=e&g,d=e&v,p=e&(m|_),y=e&k,b=d?r:po(t);return function g(){for(var v=arguments.length,m=Jt(v),_=v;_--;)m[_]=arguments[_];if(p)var x=qo(g),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(m,x);if(i&&(m=ro(m,i,o,p)),a&&(m=io(m,a,u,p)),v-=w,p&&v<l){var E=qn(m,x);return ko(t,e,yo,g.placeholder,n,m,E,c,s,l-v)}var k=h?n:this,M=d?k[t]:t;return v=m.length,c?m=function(t,e){for(var n=t.length,i=Xn(e.length,n),o=oo(t);i--;){var a=e[i];t[i]=Xo(a,n)?o[a]:r}return t}(m,c):y&&v>1&&m.reverse(),f&&s<v&&(m.length=s),this&&this!==Be&&this instanceof g&&(M=b||po(M)),M.apply(k,m)}}function mo(t,e){return function(n,r){return i=n,o=t,a=e(r),u={},Zr(i,function(t,e,n){o(u,a(t),e,n)}),u;var i,o,a,u}}function _o(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=Fi(n),i=Fi(i)):(n=qi(n),i=qi(i)),o=t(n,i)}return o}}function bo(t){return Lo(function(e){return e=ln(e,An(Fo())),Ni(function(n){var r=this;return t(e,function(t){return en(t,r,n)})})})}function xo(t,e){var n=(e=e===r?" ":Fi(e)).length;if(n<2)return n?Mi(e,t):e;var i=Mi(e,Ge(t/Pn(e)));return In(e)?Ki(Bn(i),0,t).join(""):i.slice(0,t)}function wo(t){return function(e,n,i){return i&&"number"!=typeof i&&Zo(e,n,i)&&(n=i=r),e=Wu(e),n===r?(n=e,e=0):n=Wu(n),function(t,e,n,r){for(var i=-1,o=Yn(Ge((e-t)/(n||1)),0),a=Jt(o);o--;)a[r?o:++i]=t,t+=n;return a}(e,n,i=i===r?e<n?1:-1:Wu(i),t)}}function Eo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Vu(e),n=Vu(n)),t(e,n)}}function ko(t,e,n,i,o,a,u,c,s,l){var f=e&m;e|=f?b:x,(e&=~(f?x:b))&y||(e&=~(g|v));var h=[t,e,o,f?a:r,f?u:r,f?r:a,f?r:u,c,s,l],d=n.apply(r,h);return Jo(t)&&oa(d,h),d.placeholder=i,ca(d,t,e)}function Mo(t){var e=ne[t];return function(t,n){if(t=Vu(t),n=null==n?0:Xn(Uu(n),292)){var r=(Xu(t)+"e").split("e");return+((r=(Xu(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var No=rr&&1/Fn(new rr([,-0]))[1]==j?function(t){return new rr(t)}:Fc;function Ao(t){return function(e){var n,r,i,o,a=Uo(e);return a==Y?Rn(e):a==et?(n=e,r=-1,i=Array(n.size),n.forEach(function(t){i[++r]=[t,t]}),i):(o=e,ln(t(e),function(t){return[t,o[t]]}))}}function Co(t,e,n,i,o,u,c,l){var f=e&v;if(!f&&"function"!=typeof t)throw new ae(a);var h=i?i.length:0;if(h||(e&=~(b|x),i=o=r),c=c===r?c:Yn(Uu(c),0),l=l===r?l:Uu(l),h-=o?o.length:0,e&x){var d=i,p=o;i=o=r}var k,M,N,A,C,T,S,j,D,L,O,I,R,z=f?r:Ro(t),q=[t,e,n,i,o,d,p,u,c,l];if(z&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<(g|v|w),a=r==w&&n==m||r==w&&n==E&&t[7].length<=e[8]||r==(w|E)&&e[7].length<=e[8]&&n==m;if(!o&&!a)return t;r&g&&(t[2]=e[2],i|=n&g?0:y);var u=e[3];if(u){var c=t[3];t[3]=c?ro(c,u,e[4]):u,t[4]=c?qn(t[3],s):e[4]}(u=e[5])&&(c=t[5],t[5]=c?io(c,u,e[6]):u,t[6]=c?qn(t[5],s):e[6]),(u=e[7])&&(t[7]=u),r&w&&(t[8]=null==t[8]?e[8]:Xn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(q,z),t=q[0],e=q[1],n=q[2],i=q[3],o=q[4],!(l=q[9]=q[9]===r?f?0:t.length:Yn(q[9]-h,0))&&e&(m|_)&&(e&=~(m|_)),e&&e!=g)e==m||e==_?(S=e,j=l,D=po(T=t),F=function t(){for(var e=arguments.length,n=Jt(e),i=e,o=qo(t);i--;)n[i]=arguments[i];var a=e<3&&n[0]!==o&&n[e-1]!==o?[]:qn(n,o);return(e-=a.length)<j?ko(T,S,yo,t.placeholder,r,n,a,r,r,j-e):en(this&&this!==Be&&this instanceof t?D:T,this,n)}):e!=b&&e!=(g|b)||o.length?F=yo.apply(r,q):(M=n,N=i,A=e&g,C=po(k=t),F=function t(){for(var e=-1,n=arguments.length,r=-1,i=N.length,o=Jt(i+n),a=this&&this!==Be&&this instanceof t?C:k;++r<i;)o[r]=N[r];for(;n--;)o[r++]=arguments[++e];return en(a,A?M:this,o)});else var F=(O=n,I=e&g,R=po(L=t),function t(){return(this&&this!==Be&&this instanceof t?R:L).apply(I?O:this,arguments)});return ca((z?Si:oa)(F,q),t,e)}function To(t,e,n,i){return t===r||yu(t,se[n])&&!he.call(i,n)?e:t}function So(t,e,n,i,o,a){return ju(t)&&ju(e)&&(a.set(e,t),mi(t,e,r,So,a),a.delete(e)),t}function jo(t){return Iu(t)?r:t}function Do(t,e,n,i,o,a){var u=n&d,c=t.length,s=e.length;if(c!=s&&!(u&&s>c))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var f=-1,h=!0,g=n&p?new kr:r;for(a.set(t,e),a.set(e,t);++f<c;){var v=t[f],y=e[f];if(i)var m=u?i(y,v,f,e,t,a):i(v,y,f,t,e,a);if(m!==r){if(m)continue;h=!1;break}if(g){if(!pn(e,function(t,e){if(!Tn(g,e)&&(v===t||o(v,t,n,i,a)))return g.push(e)})){h=!1;break}}else if(v!==y&&!o(v,y,n,i,a)){h=!1;break}}return a.delete(t),a.delete(e),h}function Lo(t){return ua(ra(t,r,wa),t+"")}function Oo(t){return ti(t,cc,$o)}function Io(t){return ti(t,sc,Wo)}var Ro=ar?function(t){return ar.get(t)}:Fc;function zo(t){for(var e=t.name+"",n=ur[e],r=he.call(ur,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function qo(t){return(he.call(vr,"placeholder")?vr:t).placeholder}function Fo(){var t=vr.iteratee||Ic;return t=t===Ic?fi:t,arguments.length?t(arguments[0],arguments[1]):t}function Po(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Bo(t){for(var e=cc(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,ea(i)]}return e}function Ho(t,e){var n,i=null==(n=t)?r:n[e];return li(i)?i:r}var $o=En?function(t){return null==t?[]:(t=re(t),un(En(t),function(e){return Me.call(t,e)}))}:Gc,Wo=En?function(t){for(var e=[];t;)fn(e,$o(t)),t=Ee(t);return e}:Gc,Uo=ei;function Go(t,e,n){for(var r=-1,i=(e=Xi(e,t)).length,o=!1;++r<i;){var a=pa(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Su(i)&&Xo(a,i)&&(xu(t)||bu(t))}function Vo(t){return"function"!=typeof t.constructor||ta(t)?{}:yr(Ee(t))}function Yo(t){return xu(t)||bu(t)||!!(Se&&t&&t[Se])}function Xo(t,e){return!!(e=null==e?D:e)&&("number"==typeof t||Yt.test(t))&&t>-1&&t%1==0&&t<e}function Zo(t,e,n){if(!ju(n))return!1;var r=typeof e;return!!("number"==r?Eu(n)&&Xo(e,n.length):"string"==r&&e in n)&&yu(n[e],t)}function Ko(t,e){if(xu(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Fu(t))||Tt.test(t)||!Ct.test(t)||null!=e&&t in re(e)}function Jo(t){var e=zo(t),n=vr[e];if("function"!=typeof n||!(e in br.prototype))return!1;if(t===n)return!0;var r=Ro(n);return!!r&&t===r[0]}(tr&&Uo(new tr(new ArrayBuffer(1)))!=ct||er&&Uo(new er)!=Y||nr&&Uo(nr.resolve())!=J||rr&&Uo(new rr)!=et||ir&&Uo(new ir)!=ot)&&(Uo=function(t){var e=ei(t),n=e==K?t.constructor:r,i=n?ga(n):"";if(i)switch(i){case cr:return ct;case sr:return Y;case lr:return J;case fr:return et;case hr:return ot}return e});var Qo=le?Cu:Vc;function ta(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||se)}function ea(t){return t==t&&!ju(t)}function na(t,e){return function(n){return null!=n&&n[t]===e&&(e!==r||t in re(n))}}function ra(t,e,n){return e=Yn(e===r?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Yn(r.length-e,0),a=Jt(o);++i<o;)a[i]=r[e+i];i=-1;for(var u=Jt(e+1);++i<e;)u[i]=r[i];return u[e]=n(a),en(t,this,u)}}function ia(t,e){return e.length<2?t:Qr(t,Li(e,0,-1))}var oa=sa(Si),aa=Ue||function(t,e){return Be.setTimeout(t,e)},ua=sa(ji);function ca(t,e,n){var r,i,o,a=e+"";return ua(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(zt,"{\n/* [wrapped with "+e+"] */\n")}(a,(o=a.match(qt),r=o?o[1].split(Ft):[],i=n,rn(q,function(t){var e="_."+t[0];i&t[1]&&!cn(r,e)&&r.push(e)}),r.sort())))}function sa(t){var e=0,n=0;return function(){var i=Zn(),o=C-(i-n);if(n=i,o>0){if(++e>=A)return arguments[0]}else e=0;return t.apply(r,arguments)}}function la(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var a=ki(n,o),u=t[a];t[a]=t[n],t[n]=u}return t.length=e,t}var fa,ha,da=(fa=fu(function(t){var e=[];return St.test(t)&&e.push(""),t.replace(jt,function(t,n,r,i){e.push(r?i.replace(Bt,"$1"):n||t)}),e},function(t){return ha.size===c&&ha.clear(),t}),ha=fa.cache,fa);function pa(t){if("string"==typeof t||Fu(t))return t;var e=t+"";return"0"==e&&1/t==-j?"-0":e}function ga(t){if(null!=t){try{return fe.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function va(t){if(t instanceof br)return t.clone();var e=new _r(t.__wrapped__,t.__chain__);return e.__actions__=oo(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var ya=Ni(function(t,e){return ku(t)?Br(t,Vr(e,1,ku,!0)):[]}),ma=Ni(function(t,e){var n=Aa(e);return ku(n)&&(n=r),ku(t)?Br(t,Vr(e,1,ku,!0),Fo(n,2)):[]}),_a=Ni(function(t,e){var n=Aa(e);return ku(n)&&(n=r),ku(t)?Br(t,Vr(e,1,ku,!0),r,n):[]});function ba(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Uu(n);return i<0&&(i=Yn(r+i,0)),yn(t,Fo(e,3),i)}function xa(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=Uu(n),o=n<0?Yn(i+o,0):Xn(o,i-1)),yn(t,Fo(e,3),o,!0)}function wa(t){return null!=t&&t.length?Vr(t,1):[]}function Ea(t){return t&&t.length?t[0]:r}var ka=Ni(function(t){var e=ln(t,Vi);return e.length&&e[0]===t[0]?oi(e):[]}),Ma=Ni(function(t){var e=Aa(t),n=ln(t,Vi);return e===Aa(n)?e=r:n.pop(),n.length&&n[0]===t[0]?oi(n,Fo(e,2)):[]}),Na=Ni(function(t){var e=Aa(t),n=ln(t,Vi);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?oi(n,r,e):[]});function Aa(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Ca=Ni(Ta);function Ta(t,e){return t&&t.length&&e&&e.length?wi(t,e):t}var Sa=Lo(function(t,e){var n=null==t?0:t.length,r=Rr(t,e);return Ei(t,ln(e,function(t){return Xo(t,n)?+t:t}).sort(no)),r});function ja(t){return null==t?t:Qn.call(t)}var Da=Ni(function(t){return Pi(Vr(t,1,ku,!0))}),La=Ni(function(t){var e=Aa(t);return ku(e)&&(e=r),Pi(Vr(t,1,ku,!0),Fo(e,2))}),Oa=Ni(function(t){var e=Aa(t);return e="function"==typeof e?e:r,Pi(Vr(t,1,ku,!0),r,e)});function Ia(t){if(!t||!t.length)return[];var e=0;return t=un(t,function(t){if(ku(t))return e=Yn(t.length,e),!0}),Nn(e,function(e){return ln(t,wn(e))})}function Ra(t,e){if(!t||!t.length)return[];var n=Ia(t);return null==e?n:ln(n,function(t){return en(e,r,t)})}var za=Ni(function(t,e){return ku(t)?Br(t,e):[]}),qa=Ni(function(t){return Ui(un(t,ku))}),Fa=Ni(function(t){var e=Aa(t);return ku(e)&&(e=r),Ui(un(t,ku),Fo(e,2))}),Pa=Ni(function(t){var e=Aa(t);return e="function"==typeof e?e:r,Ui(un(t,ku),r,e)}),Ba=Ni(Ia);var Ha=Ni(function(t){var e=t.length,n=e>1?t[e-1]:r;return Ra(t,n="function"==typeof n?(t.pop(),n):r)});function $a(t){var e=vr(t);return e.__chain__=!0,e}function Wa(t,e){return e(t)}var Ua=Lo(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return Rr(e,t)};return!(e>1||this.__actions__.length)&&i instanceof br&&Xo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:Wa,args:[o],thisArg:r}),new _r(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(r),t})):this.thru(o)});var Ga=uo(function(t,e,n){he.call(t,n)?++t[n]:Ir(t,n,1)});var Va=go(ba),Ya=go(xa);function Xa(t,e){return(xu(t)?rn:Hr)(t,Fo(e,3))}function Za(t,e){return(xu(t)?on:$r)(t,Fo(e,3))}var Ka=uo(function(t,e,n){he.call(t,n)?t[n].push(e):Ir(t,n,[e])});var Ja=Ni(function(t,e,n){var r=-1,i="function"==typeof e,o=Eu(t)?Jt(t.length):[];return Hr(t,function(t){o[++r]=i?en(e,t,n):ai(t,e,n)}),o}),Qa=uo(function(t,e,n){Ir(t,n,e)});function tu(t,e){return(xu(t)?ln:gi)(t,Fo(e,3))}var eu=uo(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var nu=Ni(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Zo(t,e[0],e[1])?e=[]:n>2&&Zo(e[0],e[1],e[2])&&(e=[e[0]]),bi(t,Vr(e,1),[])}),ru=$e||function(){return Be.Date.now()};function iu(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Co(t,w,r,r,r,r,e)}function ou(t,e){var n;if("function"!=typeof e)throw new ae(a);return t=Uu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var au=Ni(function(t,e,n){var r=g;if(n.length){var i=qn(n,qo(au));r|=b}return Co(t,r,e,n,i)}),uu=Ni(function(t,e,n){var r=g|v;if(n.length){var i=qn(n,qo(uu));r|=b}return Co(e,r,t,n,i)});function cu(t,e,n){var i,o,u,c,s,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new ae(a);function g(e){var n=i,a=o;return i=o=r,f=e,c=t.apply(a,n)}function v(t){var n=t-l;return l===r||n>=e||n<0||d&&t-f>=u}function y(){var t,n,r=ru();if(v(r))return m(r);s=aa(y,(n=e-((t=r)-l),d?Xn(n,u-(t-f)):n))}function m(t){return s=r,p&&i?g(t):(i=o=r,c)}function _(){var t,n=ru(),a=v(n);if(i=arguments,o=this,l=n,a){if(s===r)return f=t=l,s=aa(y,e),h?g(t):c;if(d)return s=aa(y,e),g(l)}return s===r&&(s=aa(y,e)),c}return e=Vu(e)||0,ju(n)&&(h=!!n.leading,u=(d="maxWait"in n)?Yn(Vu(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),_.cancel=function(){s!==r&&Ji(s),f=0,i=l=o=s=r},_.flush=function(){return s===r?c:m(ru())},_}var su=Ni(function(t,e){return Pr(t,1,e)}),lu=Ni(function(t,e,n){return Pr(t,Vu(e)||0,n)});function fu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ae(a);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(fu.Cache||Er),n}function hu(t){if("function"!=typeof t)throw new ae(a);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}fu.Cache=Er;var du=Zi(function(t,e){var n=(e=1==e.length&&xu(e[0])?ln(e[0],An(Fo())):ln(Vr(e,1),An(Fo()))).length;return Ni(function(r){for(var i=-1,o=Xn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return en(t,this,r)})}),pu=Ni(function(t,e){var n=qn(e,qo(pu));return Co(t,b,r,e,n)}),gu=Ni(function(t,e){var n=qn(e,qo(gu));return Co(t,x,r,e,n)}),vu=Lo(function(t,e){return Co(t,E,r,r,r,e)});function yu(t,e){return t===e||t!=t&&e!=e}var mu=Eo(ni),_u=Eo(function(t,e){return t>=e}),bu=ui(function(){return arguments}())?ui:function(t){return Du(t)&&he.call(t,"callee")&&!Me.call(t,"callee")},xu=Jt.isArray,wu=Ve?An(Ve):function(t){return Du(t)&&ei(t)==ut};function Eu(t){return null!=t&&Su(t.length)&&!Cu(t)}function ku(t){return Du(t)&&Eu(t)}var Mu=Wn||Vc,Nu=Ye?An(Ye):function(t){return Du(t)&&ei(t)==$};function Au(t){if(!Du(t))return!1;var e=ei(t);return e==U||e==W||"string"==typeof t.message&&"string"==typeof t.name&&!Iu(t)}function Cu(t){if(!ju(t))return!1;var e=ei(t);return e==G||e==V||e==B||e==Q}function Tu(t){return"number"==typeof t&&t==Uu(t)}function Su(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=D}function ju(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Du(t){return null!=t&&"object"==typeof t}var Lu=Xe?An(Xe):function(t){return Du(t)&&Uo(t)==Y};function Ou(t){return"number"==typeof t||Du(t)&&ei(t)==X}function Iu(t){if(!Du(t)||ei(t)!=K)return!1;var e=Ee(t);if(null===e)return!0;var n=he.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&fe.call(n)==ve}var Ru=Ze?An(Ze):function(t){return Du(t)&&ei(t)==tt};var zu=Ke?An(Ke):function(t){return Du(t)&&Uo(t)==et};function qu(t){return"string"==typeof t||!xu(t)&&Du(t)&&ei(t)==nt}function Fu(t){return"symbol"==typeof t||Du(t)&&ei(t)==rt}var Pu=Je?An(Je):function(t){return Du(t)&&Su(t.length)&&!!Oe[ei(t)]};var Bu=Eo(pi),Hu=Eo(function(t,e){return t<=e});function $u(t){if(!t)return[];if(Eu(t))return qu(t)?Bn(t):oo(t);if(Re&&t[Re])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Re]());var e=Uo(t);return(e==Y?Rn:e==et?Fn:yc)(t)}function Wu(t){return t?(t=Vu(t))===j||t===-j?(t<0?-1:1)*L:t==t?t:0:0===t?t:0}function Uu(t){var e=Wu(t),n=e%1;return e==e?n?e-n:e:0}function Gu(t){return t?zr(Uu(t),0,I):0}function Vu(t){if("number"==typeof t)return t;if(Fu(t))return O;if(ju(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ju(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ot,"");var n=Ut.test(t);return n||Vt.test(t)?qe(t.slice(2),n?2:8):Wt.test(t)?O:+t}function Yu(t){return ao(t,sc(t))}function Xu(t){return null==t?"":Fi(t)}var Zu=co(function(t,e){if(ta(e)||Eu(e))ao(e,cc(e),t);else for(var n in e)he.call(e,n)&&jr(t,n,e[n])}),Ku=co(function(t,e){ao(e,sc(e),t)}),Ju=co(function(t,e,n,r){ao(e,sc(e),t,r)}),Qu=co(function(t,e,n,r){ao(e,cc(e),t,r)}),tc=Lo(Rr);var ec=Ni(function(t){return t.push(r,To),en(Ju,r,t)}),nc=Ni(function(t){return t.push(r,So),en(fc,r,t)});function rc(t,e,n){var i=null==t?r:Qr(t,e);return i===r?n:i}function ic(t,e){return null!=t&&Go(t,e,ii)}var oc=mo(function(t,e,n){t[e]=n},jc(Oc)),ac=mo(function(t,e,n){he.call(t,e)?t[e].push(n):t[e]=[n]},Fo),uc=Ni(ai);function cc(t){return Eu(t)?Nr(t):hi(t)}function sc(t){return Eu(t)?Nr(t,!0):di(t)}var lc=co(function(t,e,n){mi(t,e,n)}),fc=co(function(t,e,n,r){mi(t,e,n,r)}),hc=Lo(function(t,e){var n={};if(null==t)return n;var r=!1;e=ln(e,function(e){return e=Xi(e,t),r||(r=e.length>1),e}),ao(t,Io(t),n),r&&(n=qr(n,l|f|h,jo));for(var i=e.length;i--;)Bi(n,e[i]);return n});var dc=Lo(function(t,e){return null==t?{}:xi(n=t,e,function(t,e){return ic(n,e)});var n});function pc(t,e){if(null==t)return{};var n=ln(Io(t),function(t){return[t]});return e=Fo(e),xi(t,n,function(t,n){return e(t,n[0])})}var gc=Ao(cc),vc=Ao(sc);function yc(t){return null==t?[]:Cn(t,cc(t))}var mc=ho(function(t,e,n){return e=e.toLowerCase(),t+(n?_c(e):e)});function _c(t){return Ac(Xu(t).toLowerCase())}function bc(t){return(t=Xu(t))&&t.replace(Xt,Dn).replace(Ae,"")}var xc=ho(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),wc=ho(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ec=fo("toLowerCase");var kc=ho(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var Mc=ho(function(t,e,n){return t+(n?" ":"")+Ac(e)});var Nc=ho(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Ac=fo("toUpperCase");function Cc(t,e,n){return t=Xu(t),(e=n?r:e)===r?(i=t,je.test(i)?t.match(Te)||[]:t.match(Pt)||[]):t.match(e)||[];var i}var Tc=Ni(function(t,e){try{return en(t,r,e)}catch(t){return Au(t)?t:new te(t)}}),Sc=Lo(function(t,e){return rn(e,function(e){e=pa(e),Ir(t,e,au(t[e],t))}),t});function jc(t){return function(){return t}}var Dc=vo(),Lc=vo(!0);function Oc(t){return t}function Ic(t){return fi("function"==typeof t?t:qr(t,l))}var Rc=Ni(function(t,e){return function(n){return ai(n,t,e)}}),zc=Ni(function(t,e){return function(n){return ai(t,n,e)}});function qc(t,e,n){var r=cc(e),i=Jr(e,r);null!=n||ju(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Jr(e,cc(e)));var o=!(ju(n)&&"chain"in n&&!n.chain),a=Cu(t);return rn(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=oo(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,fn([this.value()],arguments))})}),t}function Fc(){}var Pc=bo(ln),Bc=bo(an),Hc=bo(pn);function $c(t){return Ko(t)?wn(pa(t)):(e=t,function(t){return Qr(t,e)});var e}var Wc=wo(),Uc=wo(!0);function Gc(){return[]}function Vc(){return!1}var Yc=_o(function(t,e){return t+e},0),Xc=Mo("ceil"),Zc=_o(function(t,e){return t/e},1),Kc=Mo("floor");var Jc,Qc=_o(function(t,e){return t*e},1),ts=Mo("round"),es=_o(function(t,e){return t-e},0);return vr.after=function(t,e){if("function"!=typeof e)throw new ae(a);return t=Uu(t),function(){if(--t<1)return e.apply(this,arguments)}},vr.ary=iu,vr.assign=Zu,vr.assignIn=Ku,vr.assignInWith=Ju,vr.assignWith=Qu,vr.at=tc,vr.before=ou,vr.bind=au,vr.bindAll=Sc,vr.bindKey=uu,vr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return xu(t)?t:[t]},vr.chain=$a,vr.chunk=function(t,e,n){e=(n?Zo(t,e,n):e===r)?1:Yn(Uu(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,u=Jt(Ge(i/e));o<i;)u[a++]=Li(t,o,o+=e);return u},vr.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},vr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=Jt(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return fn(xu(n)?oo(n):[n],Vr(e,1))},vr.cond=function(t){var e=null==t?0:t.length,n=Fo();return t=e?ln(t,function(t){if("function"!=typeof t[1])throw new ae(a);return[n(t[0]),t[1]]}):[],Ni(function(n){for(var r=-1;++r<e;){var i=t[r];if(en(i[0],this,n))return en(i[1],this,n)}})},vr.conforms=function(t){return e=qr(t,l),n=cc(e),function(t){return Fr(t,e,n)};var e,n},vr.constant=jc,vr.countBy=Ga,vr.create=function(t,e){var n=yr(t);return null==e?n:Or(n,e)},vr.curry=function t(e,n,i){var o=Co(e,m,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},vr.curryRight=function t(e,n,i){var o=Co(e,_,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},vr.debounce=cu,vr.defaults=ec,vr.defaultsDeep=nc,vr.defer=su,vr.delay=lu,vr.difference=ya,vr.differenceBy=ma,vr.differenceWith=_a,vr.drop=function(t,e,n){var i=null==t?0:t.length;return i?Li(t,(e=n||e===r?1:Uu(e))<0?0:e,i):[]},vr.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?Li(t,0,(e=i-(e=n||e===r?1:Uu(e)))<0?0:e):[]},vr.dropRightWhile=function(t,e){return t&&t.length?$i(t,Fo(e,3),!0,!0):[]},vr.dropWhile=function(t,e){return t&&t.length?$i(t,Fo(e,3),!0):[]},vr.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Zo(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=Uu(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:Uu(i))<0&&(i+=o),i=n>i?0:Gu(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},vr.filter=function(t,e){return(xu(t)?un:Gr)(t,Fo(e,3))},vr.flatMap=function(t,e){return Vr(tu(t,e),1)},vr.flatMapDeep=function(t,e){return Vr(tu(t,e),j)},vr.flatMapDepth=function(t,e,n){return n=n===r?1:Uu(n),Vr(tu(t,e),n)},vr.flatten=wa,vr.flattenDeep=function(t){return null!=t&&t.length?Vr(t,j):[]},vr.flattenDepth=function(t,e){return null!=t&&t.length?Vr(t,e=e===r?1:Uu(e)):[]},vr.flip=function(t){return Co(t,k)},vr.flow=Dc,vr.flowRight=Lc,vr.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},vr.functions=function(t){return null==t?[]:Jr(t,cc(t))},vr.functionsIn=function(t){return null==t?[]:Jr(t,sc(t))},vr.groupBy=Ka,vr.initial=function(t){return null!=t&&t.length?Li(t,0,-1):[]},vr.intersection=ka,vr.intersectionBy=Ma,vr.intersectionWith=Na,vr.invert=oc,vr.invertBy=ac,vr.invokeMap=Ja,vr.iteratee=Ic,vr.keyBy=Qa,vr.keys=cc,vr.keysIn=sc,vr.map=tu,vr.mapKeys=function(t,e){var n={};return e=Fo(e,3),Zr(t,function(t,r,i){Ir(n,e(t,r,i),t)}),n},vr.mapValues=function(t,e){var n={};return e=Fo(e,3),Zr(t,function(t,r,i){Ir(n,r,e(t,r,i))}),n},vr.matches=function(t){return vi(qr(t,l))},vr.matchesProperty=function(t,e){return yi(t,qr(e,l))},vr.memoize=fu,vr.merge=lc,vr.mergeWith=fc,vr.method=Rc,vr.methodOf=zc,vr.mixin=qc,vr.negate=hu,vr.nthArg=function(t){return t=Uu(t),Ni(function(e){return _i(e,t)})},vr.omit=hc,vr.omitBy=function(t,e){return pc(t,hu(Fo(e)))},vr.once=function(t){return ou(2,t)},vr.orderBy=function(t,e,n,i){return null==t?[]:(xu(e)||(e=null==e?[]:[e]),xu(n=i?r:n)||(n=null==n?[]:[n]),bi(t,e,n))},vr.over=Pc,vr.overArgs=du,vr.overEvery=Bc,vr.overSome=Hc,vr.partial=pu,vr.partialRight=gu,vr.partition=eu,vr.pick=dc,vr.pickBy=pc,vr.property=$c,vr.propertyOf=function(t){return function(e){return null==t?r:Qr(t,e)}},vr.pull=Ca,vr.pullAll=Ta,vr.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?wi(t,e,Fo(n,2)):t},vr.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?wi(t,e,r,n):t},vr.pullAt=Sa,vr.range=Wc,vr.rangeRight=Uc,vr.rearg=vu,vr.reject=function(t,e){return(xu(t)?un:Gr)(t,hu(Fo(e,3)))},vr.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Fo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Ei(t,i),n},vr.rest=function(t,e){if("function"!=typeof t)throw new ae(a);return Ni(t,e=e===r?e:Uu(e))},vr.reverse=ja,vr.sampleSize=function(t,e,n){return e=(n?Zo(t,e,n):e===r)?1:Uu(e),(xu(t)?Cr:Ci)(t,e)},vr.set=function(t,e,n){return null==t?t:Ti(t,e,n)},vr.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:Ti(t,e,n,i)},vr.shuffle=function(t){return(xu(t)?Tr:Di)(t)},vr.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Zo(t,e,n)?(e=0,n=i):(e=null==e?0:Uu(e),n=n===r?i:Uu(n)),Li(t,e,n)):[]},vr.sortBy=nu,vr.sortedUniq=function(t){return t&&t.length?zi(t):[]},vr.sortedUniqBy=function(t,e){return t&&t.length?zi(t,Fo(e,2)):[]},vr.split=function(t,e,n){return n&&"number"!=typeof n&&Zo(t,e,n)&&(e=n=r),(n=n===r?I:n>>>0)?(t=Xu(t))&&("string"==typeof e||null!=e&&!Ru(e))&&!(e=Fi(e))&&In(t)?Ki(Bn(t),0,n):t.split(e,n):[]},vr.spread=function(t,e){if("function"!=typeof t)throw new ae(a);return e=null==e?0:Yn(Uu(e),0),Ni(function(n){var r=n[e],i=Ki(n,0,e);return r&&fn(i,r),en(t,this,i)})},vr.tail=function(t){var e=null==t?0:t.length;return e?Li(t,1,e):[]},vr.take=function(t,e,n){return t&&t.length?Li(t,0,(e=n||e===r?1:Uu(e))<0?0:e):[]},vr.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Li(t,(e=i-(e=n||e===r?1:Uu(e)))<0?0:e,i):[]},vr.takeRightWhile=function(t,e){return t&&t.length?$i(t,Fo(e,3),!1,!0):[]},vr.takeWhile=function(t,e){return t&&t.length?$i(t,Fo(e,3)):[]},vr.tap=function(t,e){return e(t),t},vr.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new ae(a);return ju(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),cu(t,e,{leading:r,maxWait:e,trailing:i})},vr.thru=Wa,vr.toArray=$u,vr.toPairs=gc,vr.toPairsIn=vc,vr.toPath=function(t){return xu(t)?ln(t,pa):Fu(t)?[t]:oo(da(Xu(t)))},vr.toPlainObject=Yu,vr.transform=function(t,e,n){var r=xu(t),i=r||Mu(t)||Pu(t);if(e=Fo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:ju(t)&&Cu(o)?yr(Ee(t)):{}}return(i?rn:Zr)(t,function(t,r,i){return e(n,t,r,i)}),n},vr.unary=function(t){return iu(t,1)},vr.union=Da,vr.unionBy=La,vr.unionWith=Oa,vr.uniq=function(t){return t&&t.length?Pi(t):[]},vr.uniqBy=function(t,e){return t&&t.length?Pi(t,Fo(e,2)):[]},vr.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?Pi(t,r,e):[]},vr.unset=function(t,e){return null==t||Bi(t,e)},vr.unzip=Ia,vr.unzipWith=Ra,vr.update=function(t,e,n){return null==t?t:Hi(t,e,Yi(n))},vr.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:Hi(t,e,Yi(n),i)},vr.values=yc,vr.valuesIn=function(t){return null==t?[]:Cn(t,sc(t))},vr.without=za,vr.words=Cc,vr.wrap=function(t,e){return pu(Yi(e),t)},vr.xor=qa,vr.xorBy=Fa,vr.xorWith=Pa,vr.zip=Ba,vr.zipObject=function(t,e){return Gi(t||[],e||[],jr)},vr.zipObjectDeep=function(t,e){return Gi(t||[],e||[],Ti)},vr.zipWith=Ha,vr.entries=gc,vr.entriesIn=vc,vr.extend=Ku,vr.extendWith=Ju,qc(vr,vr),vr.add=Yc,vr.attempt=Tc,vr.camelCase=mc,vr.capitalize=_c,vr.ceil=Xc,vr.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=Vu(n))==n?n:0),e!==r&&(e=(e=Vu(e))==e?e:0),zr(Vu(t),e,n)},vr.clone=function(t){return qr(t,h)},vr.cloneDeep=function(t){return qr(t,l|h)},vr.cloneDeepWith=function(t,e){return qr(t,l|h,e="function"==typeof e?e:r)},vr.cloneWith=function(t,e){return qr(t,h,e="function"==typeof e?e:r)},vr.conformsTo=function(t,e){return null==e||Fr(t,e,cc(e))},vr.deburr=bc,vr.defaultTo=function(t,e){return null==t||t!=t?e:t},vr.divide=Zc,vr.endsWith=function(t,e,n){t=Xu(t),e=Fi(e);var i=t.length,o=n=n===r?i:zr(Uu(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},vr.eq=yu,vr.escape=function(t){return(t=Xu(t))&&kt.test(t)?t.replace(wt,Ln):t},vr.escapeRegExp=function(t){return(t=Xu(t))&&Lt.test(t)?t.replace(Dt,"\\$&"):t},vr.every=function(t,e,n){var i=xu(t)?an:Wr;return n&&Zo(t,e,n)&&(e=r),i(t,Fo(e,3))},vr.find=Va,vr.findIndex=ba,vr.findKey=function(t,e){return vn(t,Fo(e,3),Zr)},vr.findLast=Ya,vr.findLastIndex=xa,vr.findLastKey=function(t,e){return vn(t,Fo(e,3),Kr)},vr.floor=Kc,vr.forEach=Xa,vr.forEachRight=Za,vr.forIn=function(t,e){return null==t?t:Yr(t,Fo(e,3),sc)},vr.forInRight=function(t,e){return null==t?t:Xr(t,Fo(e,3),sc)},vr.forOwn=function(t,e){return t&&Zr(t,Fo(e,3))},vr.forOwnRight=function(t,e){return t&&Kr(t,Fo(e,3))},vr.get=rc,vr.gt=mu,vr.gte=_u,vr.has=function(t,e){return null!=t&&Go(t,e,ri)},vr.hasIn=ic,vr.head=Ea,vr.identity=Oc,vr.includes=function(t,e,n,r){t=Eu(t)?t:yc(t),n=n&&!r?Uu(n):0;var i=t.length;return n<0&&(n=Yn(i+n,0)),qu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&mn(t,e,n)>-1},vr.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Uu(n);return i<0&&(i=Yn(r+i,0)),mn(t,e,i)},vr.inRange=function(t,e,n){return e=Wu(e),n===r?(n=e,e=0):n=Wu(n),t=Vu(t),(i=t)>=Xn(o=e,a=n)&&i<Yn(o,a);var i,o,a},vr.invoke=uc,vr.isArguments=bu,vr.isArray=xu,vr.isArrayBuffer=wu,vr.isArrayLike=Eu,vr.isArrayLikeObject=ku,vr.isBoolean=function(t){return!0===t||!1===t||Du(t)&&ei(t)==H},vr.isBuffer=Mu,vr.isDate=Nu,vr.isElement=function(t){return Du(t)&&1===t.nodeType&&!Iu(t)},vr.isEmpty=function(t){if(null==t)return!0;if(Eu(t)&&(xu(t)||"string"==typeof t||"function"==typeof t.splice||Mu(t)||Pu(t)||bu(t)))return!t.length;var e=Uo(t);if(e==Y||e==et)return!t.size;if(ta(t))return!hi(t).length;for(var n in t)if(he.call(t,n))return!1;return!0},vr.isEqual=function(t,e){return ci(t,e)},vr.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?ci(t,e,r,n):!!i},vr.isError=Au,vr.isFinite=function(t){return"number"==typeof t&&Un(t)},vr.isFunction=Cu,vr.isInteger=Tu,vr.isLength=Su,vr.isMap=Lu,vr.isMatch=function(t,e){return t===e||si(t,e,Bo(e))},vr.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,si(t,e,Bo(e),n)},vr.isNaN=function(t){return Ou(t)&&t!=+t},vr.isNative=function(t){if(Qo(t))throw new te(o);return li(t)},vr.isNil=function(t){return null==t},vr.isNull=function(t){return null===t},vr.isNumber=Ou,vr.isObject=ju,vr.isObjectLike=Du,vr.isPlainObject=Iu,vr.isRegExp=Ru,vr.isSafeInteger=function(t){return Tu(t)&&t>=-D&&t<=D},vr.isSet=zu,vr.isString=qu,vr.isSymbol=Fu,vr.isTypedArray=Pu,vr.isUndefined=function(t){return t===r},vr.isWeakMap=function(t){return Du(t)&&Uo(t)==ot},vr.isWeakSet=function(t){return Du(t)&&ei(t)==at},vr.join=function(t,e){return null==t?"":Gn.call(t,e)},vr.kebabCase=xc,vr.last=Aa,vr.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=Uu(n))<0?Yn(i+o,0):Xn(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):yn(t,bn,o,!0)},vr.lowerCase=wc,vr.lowerFirst=Ec,vr.lt=Bu,vr.lte=Hu,vr.max=function(t){return t&&t.length?Ur(t,Oc,ni):r},vr.maxBy=function(t,e){return t&&t.length?Ur(t,Fo(e,2),ni):r},vr.mean=function(t){return xn(t,Oc)},vr.meanBy=function(t,e){return xn(t,Fo(e,2))},vr.min=function(t){return t&&t.length?Ur(t,Oc,pi):r},vr.minBy=function(t,e){return t&&t.length?Ur(t,Fo(e,2),pi):r},vr.stubArray=Gc,vr.stubFalse=Vc,vr.stubObject=function(){return{}},vr.stubString=function(){return""},vr.stubTrue=function(){return!0},vr.multiply=Qc,vr.nth=function(t,e){return t&&t.length?_i(t,Uu(e)):r},vr.noConflict=function(){return Be._===this&&(Be._=ye),this},vr.noop=Fc,vr.now=ru,vr.pad=function(t,e,n){t=Xu(t);var r=(e=Uu(e))?Pn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return xo(gn(i),n)+t+xo(Ge(i),n)},vr.padEnd=function(t,e,n){t=Xu(t);var r=(e=Uu(e))?Pn(t):0;return e&&r<e?t+xo(e-r,n):t},vr.padStart=function(t,e,n){t=Xu(t);var r=(e=Uu(e))?Pn(t):0;return e&&r<e?xo(e-r,n)+t:t},vr.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Kn(Xu(t).replace(It,""),e||0)},vr.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Zo(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=Wu(t),e===r?(e=t,t=0):e=Wu(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=Jn();return Xn(t+o*(e-t+ze("1e-"+((o+"").length-1))),e)}return ki(t,e)},vr.reduce=function(t,e,n){var r=xu(t)?hn:kn,i=arguments.length<3;return r(t,Fo(e,4),n,i,Hr)},vr.reduceRight=function(t,e,n){var r=xu(t)?dn:kn,i=arguments.length<3;return r(t,Fo(e,4),n,i,$r)},vr.repeat=function(t,e,n){return e=(n?Zo(t,e,n):e===r)?1:Uu(e),Mi(Xu(t),e)},vr.replace=function(){var t=arguments,e=Xu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},vr.result=function(t,e,n){var i=-1,o=(e=Xi(e,t)).length;for(o||(o=1,t=r);++i<o;){var a=null==t?r:t[pa(e[i])];a===r&&(i=o,a=n),t=Cu(a)?a.call(t):a}return t},vr.round=ts,vr.runInContext=t,vr.sample=function(t){return(xu(t)?Ar:Ai)(t)},vr.size=function(t){if(null==t)return 0;if(Eu(t))return qu(t)?Pn(t):t.length;var e=Uo(t);return e==Y||e==et?t.size:hi(t).length},vr.snakeCase=kc,vr.some=function(t,e,n){var i=xu(t)?pn:Oi;return n&&Zo(t,e,n)&&(e=r),i(t,Fo(e,3))},vr.sortedIndex=function(t,e){return Ii(t,e)},vr.sortedIndexBy=function(t,e,n){return Ri(t,e,Fo(n,2))},vr.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Ii(t,e);if(r<n&&yu(t[r],e))return r}return-1},vr.sortedLastIndex=function(t,e){return Ii(t,e,!0)},vr.sortedLastIndexBy=function(t,e,n){return Ri(t,e,Fo(n,2),!0)},vr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Ii(t,e,!0)-1;if(yu(t[n],e))return n}return-1},vr.startCase=Mc,vr.startsWith=function(t,e,n){return t=Xu(t),n=null==n?0:zr(Uu(n),0,t.length),e=Fi(e),t.slice(n,n+e.length)==e},vr.subtract=es,vr.sum=function(t){return t&&t.length?Mn(t,Oc):0},vr.sumBy=function(t,e){return t&&t.length?Mn(t,Fo(e,2)):0},vr.template=function(t,e,n){var i=vr.templateSettings;n&&Zo(t,e,n)&&(e=r),t=Xu(t),e=Ju({},e,i,To);var o,a,u=Ju({},e.imports,i.imports,To),c=cc(u),s=Cn(u,c),l=0,f=e.interpolate||Zt,h="__p += '",d=ie((e.escape||Zt).source+"|"+f.source+"|"+(f===At?Ht:Zt).source+"|"+(e.evaluate||Zt).source+"|$","g"),p="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Le+"]")+"\n";t.replace(d,function(e,n,r,i,u,c){return r||(r=i),h+=t.slice(l,c).replace(Kt,On),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),u&&(a=!0,h+="';\n"+u+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+e.length,e}),h+="';\n";var g=e.variable;g||(h="with (obj) {\n"+h+"\n}\n"),h=(a?h.replace(mt,""):h).replace(_t,"$1").replace(bt,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Tc(function(){return ee(c,p+"return "+h).apply(r,s)});if(v.source=h,Au(v))throw v;return v},vr.times=function(t,e){if((t=Uu(t))<1||t>D)return[];var n=I,r=Xn(t,I);e=Fo(e),t-=I;for(var i=Nn(r,e);++n<t;)e(n);return i},vr.toFinite=Wu,vr.toInteger=Uu,vr.toLength=Gu,vr.toLower=function(t){return Xu(t).toLowerCase()},vr.toNumber=Vu,vr.toSafeInteger=function(t){return t?zr(Uu(t),-D,D):0===t?t:0},vr.toString=Xu,vr.toUpper=function(t){return Xu(t).toUpperCase()},vr.trim=function(t,e,n){if((t=Xu(t))&&(n||e===r))return t.replace(Ot,"");if(!t||!(e=Fi(e)))return t;var i=Bn(t),o=Bn(e);return Ki(i,Sn(i,o),jn(i,o)+1).join("")},vr.trimEnd=function(t,e,n){if((t=Xu(t))&&(n||e===r))return t.replace(Rt,"");if(!t||!(e=Fi(e)))return t;var i=Bn(t);return Ki(i,0,jn(i,Bn(e))+1).join("")},vr.trimStart=function(t,e,n){if((t=Xu(t))&&(n||e===r))return t.replace(It,"");if(!t||!(e=Fi(e)))return t;var i=Bn(t);return Ki(i,Sn(i,Bn(e))).join("")},vr.truncate=function(t,e){var n=M,i=N;if(ju(e)){var o="separator"in e?e.separator:o;n="length"in e?Uu(e.length):n,i="omission"in e?Fi(e.omission):i}var a=(t=Xu(t)).length;if(In(t)){var u=Bn(t);a=u.length}if(n>=a)return t;var c=n-Pn(i);if(c<1)return i;var s=u?Ki(u,0,c).join(""):t.slice(0,c);if(o===r)return s+i;if(u&&(c+=s.length-c),Ru(o)){if(t.slice(c).search(o)){var l,f=s;for(o.global||(o=ie(o.source,Xu($t.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var h=l.index;s=s.slice(0,h===r?c:h)}}else if(t.indexOf(Fi(o),c)!=c){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+i},vr.unescape=function(t){return(t=Xu(t))&&Et.test(t)?t.replace(xt,Hn):t},vr.uniqueId=function(t){var e=++de;return Xu(t)+e},vr.upperCase=Nc,vr.upperFirst=Ac,vr.each=Xa,vr.eachRight=Za,vr.first=Ea,qc(vr,(Jc={},Zr(vr,function(t,e){he.call(vr.prototype,e)||(Jc[e]=t)}),Jc),{chain:!1}),vr.VERSION="4.17.4",rn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){vr[t].placeholder=vr}),rn(["drop","take"],function(t,e){br.prototype[t]=function(n){n=n===r?1:Yn(Uu(n),0);var i=this.__filtered__&&!e?new br(this):this.clone();return i.__filtered__?i.__takeCount__=Xn(n,i.__takeCount__):i.__views__.push({size:Xn(n,I),type:t+(i.__dir__<0?"Right":"")}),i},br.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),rn(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==T||3==n;br.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Fo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),rn(["head","last"],function(t,e){var n="take"+(e?"Right":"");br.prototype[t]=function(){return this[n](1).value()[0]}}),rn(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");br.prototype[t]=function(){return this.__filtered__?new br(this):this[n](1)}}),br.prototype.compact=function(){return this.filter(Oc)},br.prototype.find=function(t){return this.filter(t).head()},br.prototype.findLast=function(t){return this.reverse().find(t)},br.prototype.invokeMap=Ni(function(t,e){return"function"==typeof t?new br(this):this.map(function(n){return ai(n,t,e)})}),br.prototype.reject=function(t){return this.filter(hu(Fo(t)))},br.prototype.slice=function(t,e){t=Uu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new br(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=Uu(e))<0?n.dropRight(-e):n.take(e-t)),n)},br.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},br.prototype.toArray=function(){return this.take(I)},Zr(br.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=vr[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(vr.prototype[e]=function(){var e=this.__wrapped__,u=i?[1]:arguments,c=e instanceof br,s=u[0],l=c||xu(e),f=function(t){var e=o.apply(vr,fn([t],u));return i&&h?e[0]:e};l&&n&&"function"==typeof s&&1!=s.length&&(c=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,g=c&&!d;if(!a&&l){e=g?e:new br(this);var v=t.apply(e,u);return v.__actions__.push({func:Wa,args:[f],thisArg:r}),new _r(v,h)}return p&&g?t.apply(this,u):(v=this.thru(f),p?i?v.value()[0]:v.value():v)})}),rn(["pop","push","shift","sort","splice","unshift"],function(t){var e=ue[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);vr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(xu(i)?i:[],t)}return this[n](function(n){return e.apply(xu(n)?n:[],t)})}}),Zr(br.prototype,function(t,e){var n=vr[e];if(n){var r=n.name+"";(ur[r]||(ur[r]=[])).push({name:e,func:n})}}),ur[yo(r,v).name]=[{name:"wrapper",func:r}],br.prototype.clone=function(){var t=new br(this.__wrapped__);return t.__actions__=oo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=oo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=oo(this.__views__),t},br.prototype.reverse=function(){if(this.__filtered__){var t=new br(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},br.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=xu(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Xn(e,t+a);break;case"takeRight":t=Yn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,u=o.end,c=u-a,s=r?u:a-1,l=this.__iteratees__,f=l.length,h=0,d=Xn(c,this.__takeCount__);if(!n||!r&&i==c&&d==c)return Wi(t,this.__actions__);var p=[];t:for(;c--&&h<d;){for(var g=-1,v=t[s+=e];++g<f;){var y=l[g],m=y.iteratee,_=y.type,b=m(v);if(_==S)v=b;else if(!b){if(_==T)continue t;break t}}p[h++]=v}return p},vr.prototype.at=Ua,vr.prototype.chain=function(){return $a(this)},vr.prototype.commit=function(){return new _r(this.value(),this.__chain__)},vr.prototype.next=function(){this.__values__===r&&(this.__values__=$u(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},vr.prototype.plant=function(t){for(var e,n=this;n instanceof mr;){var i=va(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},vr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof br){var e=t;return this.__actions__.length&&(e=new br(this)),(e=e.reverse()).__actions__.push({func:Wa,args:[ja],thisArg:r}),new _r(e,this.__chain__)}return this.thru(ja)},vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=function(){return Wi(this.__wrapped__,this.__actions__)},vr.prototype.first=vr.prototype.head,Re&&(vr.prototype[Re]=function(){return this}),vr}();$e?(($e.exports=$n)._=$n,He._=$n):Be._=$n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}),function t(e,n,r){function i(a,u){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(o)return o(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return i(n||t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){(function(e){e.graphlibDot=t("./index")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./index":2}],2:[function(t,e,n){var r=t("./lib/read-one"),i=t("./lib/read-many"),o=t("./lib/write-one"),a=t("./lib/version");e.exports={graphlib:t("./lib/graphlib"),read:r,readMany:i,write:o,version:a,type:"dot",buffer:!1}},{"./lib/graphlib":5,"./lib/read-many":7,"./lib/read-one":8,"./lib/version":9,"./lib/write-one":10}],3:[function(t,e,n){"use strict";var r=t("./lodash"),i=t("./graphlib").Graph;function o(t,e,n,i){switch(e.type){case"node":_=t,x=n,w=i,E=(b=e).id,k=b.attrs,a(_,E,x,w),r.merge(_.node(E),k);break;case"edge":h=t,p=n,g=i,m=(d=e).attrs,r.each(d.elems,function(t){switch(o(h,t,p,g),t.type){case"node":y=[t.id];break;case"subgraph":y=function(t){var e,n={},i=[],o=i.push.bind(i);for(o(t);i.length;)switch((e=i.pop()).type){case"node":n[e.id]=!0;break;case"edge":r.each(e.elems,o);break;case"subgraph":r.each(e.stmts,o)}return r.keys(n)}(t)}r.each(v,function(t){r.each(y,function(e){var n;h.hasEdge(t,e)&&h.isMultigraph()&&(n=r.uniqueId("edge")),h.hasEdge(t,e,n)||h.setEdge(t,e,r.clone(r.last(p).edge),n),r.merge(h.edge(t,e,n),m)})}),v=y});break;case"subgraph":!function(t,e,n,i){var u=e.id;void 0===u&&(u=function(t){var e;do{e=r.uniqueId("sg")}while(t.hasNode(e));return e}(t));n.push(r.clone(r.last(n))),a(t,u,n,i),r.each(e.stmts,function(e){o(t,e,n,u)}),t.children(u).length||t.removeNode(u);n.pop()}(t,e,n,i);break;case"attr":l=e,f=n,r.merge(r.last(f)[l.attrType],l.attrs);break;case"inlineAttr":u=t,c=e,s=i,r.merge(s?u.node(s):u.graph(),c.attrs)}var u,c,s,l,f,h,d,p,g,v,y,m,_,b,x,w,E,k}function a(t,e,n,i){t.hasNode(e)||(t.setNode(e,r.clone(r.last(n).node)),t.setParent(e,i))}e.exports=function(t){var e="graph"!==t.type,n=!t.strict,a=[{node:{},edge:{}}],u=t.id,c=new i({directed:e,multigraph:n,compound:!0});return c.setGraph(null===u?{}:{id:u}),r.each(t.stmts,function(t){o(c,t,a)}),c}},{"./graphlib":5,"./lodash":6}],4:[function(t,e,n){e.exports=function(){function e(t,e,n,r,i,o){this.message=t,this.expected=e,this.found=n,this.offset=r,this.line=i,this.column=o,this.name="SyntaxError"}return function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(e,Error),{SyntaxError:e,parse:function(n){var r,i=arguments.length>1?arguments[1]:{},o={},a={start:_e,graphStmt:be},u=_e,c=o,s=null,l="{",f={type:"literal",value:"{",description:'"{"'},h="}",d={type:"literal",value:"}",description:'"}"'},p=function(t,e,n,r){return{type:e,id:n,strict:null!==t,stmts:r}},g=";",v={type:"literal",value:";",description:'";"'},y=function(t,e){for(var n=[t],r=0;r<e.length;++r)n.push(e[r][1]);return n},m=function(t,e){return{type:"attr",attrType:t,attrs:e||{}}},_="=",b={type:"literal",value:"=",description:'"="'},x=function(t,e){var n={};return n[t]=e,{type:"inlineAttr",attrs:n}},w=function(t,e){return{type:"node",id:t,attrs:e||{}}},E=function(t,e,n){for(var r=[t],i=0;i<e.length;++i)r.push(e[i]);return{type:"edge",elems:r,attrs:n||{}}},k=function(t,e){return{type:"subgraph",id:(t=t&&t[2]||[])[0],stmts:e}},M=function(t,e){for(var n=t,r=0;r<e.length;++r)Le.merge(n,e[r][1]);return n},N="[",A={type:"literal",value:"[",description:'"["'},C="]",T={type:"literal",value:"]",description:'"]"'},S=function(t){return t},j=",",D={type:"literal",value:",",description:'","'},L=function(t,e){for(var n=t,r=0;r<e.length;++r)Le.merge(n,e[r][3]);return n},O="--",I={type:"literal",value:"--",description:'"--"'},R=function(){return De},z=void 0,q="->",F={type:"literal",value:"->",description:'"->"'},P=function(t,e){var n=[t];if(e)for(var r=0;r<e.length;++r)n.push(e[r]);return n},B=function(t,e){var n={};return n[t]=e[3],n},H=function(t){return{type:"node",id:t,attrs:{}}},$=function(t){return t},W=":",U={type:"literal",value:":",description:'":"'},G="ne",V={type:"literal",value:"ne",description:'"ne"'},Y="se",X={type:"literal",value:"se",description:'"se"'},Z="sw",K={type:"literal",value:"sw",description:'"sw"'},J="nw",Q={type:"literal",value:"nw",description:'"nw"'},tt="n",et={type:"literal",value:"n",description:'"n"'},nt="e",rt={type:"literal",value:"e",description:'"e"'},it="s",ot={type:"literal",value:"s",description:'"s"'},at="w",ut={type:"literal",value:"w",description:'"w"'},ct="c",st={type:"literal",value:"c",description:'"c"'},lt="_",ft={type:"literal",value:"_",description:'"_"'},ht={type:"other",description:"identifier"},dt=/^[a-zA-Z\u0200-\u0377_]/,pt={type:"class",value:"[a-zA-Z\\u0200-\\u0377_]",description:"[a-zA-Z\\u0200-\\u0377_]"},gt=/^[a-zA-Z\u0200-\u0377_0-9]/,vt={type:"class",value:"[a-zA-Z\\u0200-\\u0377_0-9]",description:"[a-zA-Z\\u0200-\\u0377_0-9]"},yt=function(t,e){return t+e.join("")},mt="-",_t={type:"literal",value:"-",description:'"-"'},bt=".",xt={type:"literal",value:".",description:'"."'},wt=/^[0-9]/,Et={type:"class",value:"[0-9]",description:"[0-9]"},kt=function(t,e,n){return(t||"")+e+n.join("")},Mt=function(t,e,n){return(t||"")+e.join("")+(n?n[0]:"")+(n?n[1].join(""):"")},Nt='"',At={type:"literal",value:'"',description:'"\\""'},Ct='\\"',Tt={type:"literal",value:'\\"',description:'"\\\\\\""'},St=function(){return'"'},jt="\\",Dt={type:"literal",value:"\\",description:'"\\\\"'},Lt=/^[^"]/,Ot={type:"class",value:'[^"]',description:'[^"]'},It=function(t){return"\\"+t},Rt=function(t){return t.join("")},zt="node",qt={type:"literal",value:"node",description:'"node"'},Ft=function(t){return t.toLowerCase()},Pt="edge",Bt={type:"literal",value:"edge",description:'"edge"'},Ht="graph",$t={type:"literal",value:"graph",description:'"graph"'},Wt="digraph",Ut={type:"literal",value:"digraph",description:'"digraph"'},Gt="subgraph",Vt={type:"literal",value:"subgraph",description:'"subgraph"'},Yt="strict",Xt={type:"literal",value:"strict",description:'"strict"'},Zt=function(t){return De="digraph"===t,t},Kt={type:"other",description:"whitespace"},Jt=/^[ \t\r\n]/,Qt={type:"class",value:"[ \\t\\r\\n]",description:"[ \\t\\r\\n]"},te={type:"other",description:"comment"},ee="//",ne={type:"literal",value:"//",description:'"//"'},re=/^[^\n]/,ie={type:"class",value:"[^\\n]",description:"[^\\n]"},oe="/*",ae={type:"literal",value:"/*",description:'"/*"'},ue="*/",ce={type:"literal",value:"*/",description:'"*/"'},se={type:"any",description:"any character"},le=0,fe=0,he={line:1,column:1,seenCR:!1},de=0,pe=[],ge=0;if("startRule"in i){if(!(i.startRule in a))throw new Error("Can't start parsing from rule \""+i.startRule+'".');u=a[i.startRule]}function ve(t){return fe!==t&&(fe>t&&(fe=0,he={line:1,column:1,seenCR:!1}),function(t,e,r){var i,o;for(i=e;i<r;i++)"\n"===(o=n.charAt(i))?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}(he,fe,t),fe=t),he}function ye(t){le<de||(le>de&&(de=le,pe=[]),pe.push(t))}function me(t,r,i){var o=ve(i),a=i<n.length?n.charAt(i):null;return null!==r&&function(t){var e=1;for(t.sort(function(t,e){return t.description<e.description?-1:t.description>e.description?1:0});e<t.length;)t[e-1]===t[e]?t.splice(e,1):e++}(r),new e(null!==t?t:function(t,e){var n,r=new Array(t.length);for(n=0;n<t.length;n++)r[n]=t[n].description;return"Expected "+(t.length>1?r.slice(0,-1).join(", ")+" or "+r[t.length-1]:r[0])+" but "+(e?'"'+function(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(t){return"\\x0"+e(t)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(t){return"\\x"+e(t)}).replace(/[\u0180-\u0FFF]/g,function(t){return"\\u0"+e(t)}).replace(/[\u1080-\uFFFF]/g,function(t){return"\\u"+e(t)})}(e)+'"':"end of input")+" found."}(r,a),r,a,i,o.line,o.column)}function _e(){var t,e;if(t=[],(e=be())!==o)for(;e!==o;)t.push(e),e=be();else t=c;return t}function be(){var t,e,r,i,a,u,g,v,y,m,_,b,x,w,E,k,M,N;for(t=le,e=[],r=je();r!==o;)e.push(r),r=je();if(e!==o)if(r=le,n.substr(le,6).toLowerCase()===Yt?(N=n.substr(le,6),le+=6):(N=o,0===ge&&ye(Xt)),N!==o&&(N=Ft(N)),(i=N)!==o&&(a=je())!==o?r=i=[i,a]:(le=r,r=c),r===o&&(r=s),r!==o)if((E=Se())===o&&(E=le,n.substr(le,7).toLowerCase()===Wt?(M=n.substr(le,7),le+=7):(M=o,0===ge&&ye(Ut)),M!==o&&(M=Ft(M)),(k=M)!==o&&(k=Zt(k)),E=k),(i=E)!==o){for(a=[],u=je();u!==o;)a.push(u),u=je();if(a!==o)if((u=Te())===o&&(u=s),u!==o){for(g=[],v=je();v!==o;)g.push(v),v=je();if(g!==o)if(123===n.charCodeAt(le)?(v=l,le++):(v=o,0===ge&&ye(f)),v!==o){for(y=[],m=je();m!==o;)y.push(m),m=je();if(y!==o)if((m=xe())===o&&(m=s),m!==o){for(_=[],b=je();b!==o;)_.push(b),b=je();if(_!==o)if(125===n.charCodeAt(le)?(b=h,le++):(b=o,0===ge&&ye(d)),b!==o){for(x=[],w=je();w!==o;)x.push(w),w=je();x!==o?t=e=p(r,i,u,m):(le=t,t=c)}else le=t,t=c;else le=t,t=c}else le=t,t=c;else le=t,t=c}else le=t,t=c;else le=t,t=c}else le=t,t=c;else le=t,t=c}else le=t,t=c;else le=t,t=c;else le=t,t=c;return t}function xe(){var t,e,r,i,a,u,l,f,h,d;if(t=le,(e=we())!==o){for(r=[],i=je();i!==o;)r.push(i),i=je();if(r!==o)if(59===n.charCodeAt(le)?(i=g,le++):(i=o,0===ge&&ye(v)),i===o&&(i=s),i!==o){for(a=[],u=le,l=[],f=je();f!==o;)l.push(f),f=je();if(l!==o)if((f=we())!==o){for(h=[],d=je();d!==o;)h.push(d),d=je();h!==o?(59===n.charCodeAt(le)?(d=g,le++):(d=o,0===ge&&ye(v)),d===o&&(d=s),d!==o?u=l=[l,f,h,d]:(le=u,u=c)):(le=u,u=c)}else le=u,u=c;else le=u,u=c;for(;u!==o;){for(a.push(u),u=le,l=[],f=je();f!==o;)l.push(f),f=je();if(l!==o)if((f=we())!==o){for(h=[],d=je();d!==o;)h.push(d),d=je();h!==o?(59===n.charCodeAt(le)?(d=g,le++):(d=o,0===ge&&ye(v)),d===o&&(d=s),d!==o?u=l=[l,f,h,d]:(le=u,u=c)):(le=u,u=c)}else le=u,u=c;else le=u,u=c}a!==o?t=e=y(e,a):(le=t,t=c)}else le=t,t=c;else le=t,t=c}else le=t,t=c;return t}function we(){var t;return(t=function(){var t,e,r,i,a,u;if(t=le,(e=Se())===o&&(n.substr(le,4).toLowerCase()===zt?(u=n.substr(le,4),le+=4):(u=o,0===ge&&ye(qt)),u!==o&&(u=Ft(u)),(e=u)===o)&&(n.substr(le,4).toLowerCase()===Pt?(a=n.substr(le,4),le+=4):(a=o,0===ge&&ye(Bt)),a!==o&&(a=Ft(a)),e=a),e!==o){for(r=[],i=je();i!==o;)r.push(i),i=je();r!==o&&(i=ke())!==o?(e=m(e,i),t=e):(le=t,t=c)}else le=t,t=c;return t}())===o&&(t=function(){var t,e,r,i,a,u;if(t=le,(e=Ae())!==o){for(r=[],i=je();i!==o;)r.push(i),i=je();if(r!==o)if((i=function t(){var e,r,i,a,u,l;if(e=le,r=le,n.substr(le,2)===O?(i=O,le+=2):(i=o,0===ge&&ye(I)),i!==o&&(a=(a=R())?c:z)!==o?r=i=[i,a]:(le=r,r=c),r===o&&(r=le,n.substr(le,2)===q?(i=q,le+=2):(i=o,0===ge&&ye(F)),i!==o&&(a=(a=R())?z:c)!==o?r=i=[i,a]:(le=r,r=c)),r!==o){for(i=[],a=je();a!==o;)i.push(a),a=je();if(i!==o)if((a=Ae())!==o){for(u=[],l=je();l!==o;)u.push(l),l=je();u!==o?((l=t())===o&&(l=s),l!==o?(r=P(a,l),e=r):(le=e,e=c)):(le=e,e=c)}else le=e,e=c;else le=e,e=c}else le=e,e=c;return e}())!==o){for(a=[],u=je();u!==o;)a.push(u),u=je();a!==o?((u=ke())===o&&(u=s),u!==o?(e=E(e,i,u),t=e):(le=t,t=c)):(le=t,t=c)}else le=t,t=c;else le=t,t=c}else le=t,t=c;return t}())===o&&(t=Ee())===o&&(t=function(){var t,e,r,i,a,u;if(t=le,(e=Te())!==o){for(r=[],i=je();i!==o;)r.push(i),i=je();if(r!==o)if(61===n.charCodeAt(le)?(i=_,le++):(i=o,0===ge&&ye(b)),i!==o){for(a=[],u=je();u!==o;)a.push(u),u=je();a!==o&&(u=Te())!==o?(e=x(e,u),t=e):(le=t,t=c)}else le=t,t=c;else le=t,t=c}else le=t,t=c;return t}())===o&&(t=function(){var t,e,n,r;if(t=le,(e=Ce())!==o){for(n=[],r=je();r!==o;)n.push(r),r=je();n!==o?((r=ke())===o&&(r=s),r!==o?(e=w(e,r),t=e):(le=t,t=c)):(le=t,t=c)}else le=t,t=c;return t}()),t}function Ee(){var t,e,r,i,a,u,p,g,v;if(t=le,e=le,n.substr(le,8).toLowerCase()===Gt?(v=n.substr(le,8),le+=8):(v=o,0===ge&&ye(Vt)),v!==o&&(v=Ft(v)),(r=v)!==o){for(i=[],a=je();a!==o;)i.push(a),a=je();if(i!==o){if(a=le,(u=Te())!==o){for(p=[],g=je();g!==o;)p.push(g),g=je();p!==o?a=u=[u,p]:(le=a,a=c)}else le=a,a=c;a===o&&(a=s),a!==o?e=r=[r,i,a]:(le=e,e=c)}else le=e,e=c}else le=e,e=c;if(e===o&&(e=s),e!==o)if(123===n.charCodeAt(le)?(r=l,le++):(r=o,0===ge&&ye(f)),r!==o){for(i=[],a=je();a!==o;)i.push(a),a=je();if(i!==o)if((a=xe())===o&&(a=s),a!==o){for(u=[],p=je();p!==o;)u.push(p),p=je();u!==o?(125===n.charCodeAt(le)?(p=h,le++):(p=o,0===ge&&ye(d)),p!==o?t=e=k(e,a):(le=t,t=c)):(le=t,t=c)}else le=t,t=c;else le=t,t=c}else le=t,t=c;else le=t,t=c;return t}function ke(){var t,e,n,r,i,a;if(t=le,(e=Me())!==o){for(n=[],r=le,i=[],a=je();a!==o;)i.push(a),a=je();for(i!==o&&(a=Me())!==o?r=i=[i,a]:(le=r,r=c);r!==o;){for(n.push(r),r=le,i=[],a=je();a!==o;)i.push(a),a=je();i!==o&&(a=Me())!==o?r=i=[i,a]:(le=r,r=c)}n!==o?t=e=M(e,n):(le=t,t=c)}else le=t,t=c;return t}function Me(){var t,e,r,i,a,u;if(t=le,91===n.charCodeAt(le)?(e=N,le++):(e=o,0===ge&&ye(A)),e!==o){for(r=[],i=je();i!==o;)r.push(i),i=je();if(r!==o)if((i=function(){var t,e,r,i,a,u,l,f;if(t=le,(e=Ne())!==o){for(r=[],i=le,a=[],u=je();u!==o;)a.push(u),u=je();if(a!==o)if(44===n.charCodeAt(le)?(u=j,le++):(u=o,0===ge&&ye(D)),u===o&&(u=s),u!==o){for(l=[],f=je();f!==o;)l.push(f),f=je();l!==o&&(f=Ne())!==o?i=a=[a,u,l,f]:(le=i,i=c)}else le=i,i=c;else le=i,i=c;for(;i!==o;){for(r.push(i),i=le,a=[],u=je();u!==o;)a.push(u),u=je();if(a!==o)if(44===n.charCodeAt(le)?(u=j,le++):(u=o,0===ge&&ye(D)),u===o&&(u=s),u!==o){for(l=[],f=je();f!==o;)l.push(f),f=je();l!==o&&(f=Ne())!==o?i=a=[a,u,l,f]:(le=i,i=c)}else le=i,i=c;else le=i,i=c}r!==o?(e=L(e,r),t=e):(le=t,t=c)}else le=t,t=c;return t}())===o&&(i=s),i!==o){for(a=[],u=je();u!==o;)a.push(u),u=je();a!==o?(93===n.charCodeAt(le)?(u=C,le++):(u=o,0===ge&&ye(T)),u!==o?t=e=S(i):(le=t,t=c)):(le=t,t=c)}else le=t,t=c;else le=t,t=c}else le=t,t=c;return t}function Ne(){var t,e,r,i,a,u,l;if(t=le,(e=Te())!==o){for(r=le,i=[],a=je();a!==o;)i.push(a),a=je();if(i!==o)if(61===n.charCodeAt(le)?(a=_,le++):(a=o,0===ge&&ye(b)),a!==o){for(u=[],l=je();l!==o;)u.push(l),l=je();u!==o&&(l=Te())!==o?r=i=[i,a,u,l]:(le=r,r=c)}else le=r,r=c;else le=r,r=c;r===o&&(r=s),r!==o?t=e=B(e,r):(le=t,t=c)}else le=t,t=c;return t}function Ae(){var t,e;return(t=Ee())===o&&(t=le,(e=Ce())!==o&&(e=H(e)),t=e),t}function Ce(){var t,e,r,i;if(t=le,(e=Te())!==o){for(r=[],i=je();i!==o;)r.push(i),i=je();r!==o?((i=function(){var t,e,r,i,a,u,l,f,h,d;if(t=le,58===n.charCodeAt(le)?(e=W,le++):(e=o,0===ge&&ye(U)),e!==o){for(r=[],i=je();i!==o;)r.push(i),i=je();if(r!==o)if((i=Te())!==o){for(a=[],u=je();u!==o;)a.push(u),u=je();if(a!==o){if(u=le,58===n.charCodeAt(le)?(l=W,le++):(l=o,0===ge&&ye(U)),l!==o){for(f=[],h=je();h!==o;)f.push(h),h=je();f!==o&&(n.substr(le,2)===G?(d=G,le+=2):(d=o,0===ge&&ye(V)),d===o&&(n.substr(le,2)===Y?(d=Y,le+=2):(d=o,0===ge&&ye(X)),d===o&&(n.substr(le,2)===Z?(d=Z,le+=2):(d=o,0===ge&&ye(K)),d===o&&(n.substr(le,2)===J?(d=J,le+=2):(d=o,0===ge&&ye(Q)),d===o&&(110===n.charCodeAt(le)?(d=tt,le++):(d=o,0===ge&&ye(et)),d===o&&(101===n.charCodeAt(le)?(d=nt,le++):(d=o,0===ge&&ye(rt)),d===o&&(115===n.charCodeAt(le)?(d=it,le++):(d=o,0===ge&&ye(ot)),d===o&&(119===n.charCodeAt(le)?(d=at,le++):(d=o,0===ge&&ye(ut)),d===o&&(99===n.charCodeAt(le)?(d=ct,le++):(d=o,0===ge&&ye(st)),d===o&&(95===n.charCodeAt(le)?(d=lt,le++):(d=o,0===ge&&ye(ft))))))))))),(h=d)!==o)?u=l=[l,f,h]:(le=u,u=c)}else le=u,u=c;u===o&&(u=s),u!==o?t=e=[e,r,i,a,u]:(le=t,t=c)}else le=t,t=c}else le=t,t=c;else le=t,t=c}else le=t,t=c;return t}())===o&&(i=s),i!==o?t=e=$(e):(le=t,t=c)):(le=t,t=c)}else le=t,t=c;return t}function Te(){var t,e,r,i,a,u,l;if(ge++,t=le,dt.test(n.charAt(le))?(e=n.charAt(le),le++):(e=o,0===ge&&ye(pt)),e!==o){for(r=[],gt.test(n.charAt(le))?(i=n.charAt(le),le++):(i=o,0===ge&&ye(vt));i!==o;)r.push(i),gt.test(n.charAt(le))?(i=n.charAt(le),le++):(i=o,0===ge&&ye(vt));r!==o?t=e=yt(e,r):(le=t,t=c)}else le=t,t=c;if(t===o){if(t=le,45===n.charCodeAt(le)?(e=mt,le++):(e=o,0===ge&&ye(_t)),e===o&&(e=s),e!==o)if(46===n.charCodeAt(le)?(r=bt,le++):(r=o,0===ge&&ye(xt)),r!==o){if(i=[],wt.test(n.charAt(le))?(a=n.charAt(le),le++):(a=o,0===ge&&ye(Et)),a!==o)for(;a!==o;)i.push(a),wt.test(n.charAt(le))?(a=n.charAt(le),le++):(a=o,0===ge&&ye(Et));else i=c;i!==o?t=e=kt(e,r,i):(le=t,t=c)}else le=t,t=c;else le=t,t=c;if(t===o){if(t=le,45===n.charCodeAt(le)?(e=mt,le++):(e=o,0===ge&&ye(_t)),e===o&&(e=s),e!==o){if(r=[],wt.test(n.charAt(le))?(i=n.charAt(le),le++):(i=o,0===ge&&ye(Et)),i!==o)for(;i!==o;)r.push(i),wt.test(n.charAt(le))?(i=n.charAt(le),le++):(i=o,0===ge&&ye(Et));else r=c;if(r!==o){if(i=le,46===n.charCodeAt(le)?(a=bt,le++):(a=o,0===ge&&ye(xt)),a!==o){for(u=[],wt.test(n.charAt(le))?(l=n.charAt(le),le++):(l=o,0===ge&&ye(Et));l!==o;)u.push(l),wt.test(n.charAt(le))?(l=n.charAt(le),le++):(l=o,0===ge&&ye(Et));u!==o?i=a=[a,u]:(le=i,i=c)}else le=i,i=c;i===o&&(i=s),i!==o?t=e=Mt(e,r,i):(le=t,t=c)}else le=t,t=c}else le=t,t=c;if(t===o)if(t=le,34===n.charCodeAt(le)?(e=Nt,le++):(e=o,0===ge&&ye(At)),e!==o){for(r=[],i=le,n.substr(le,2)===Ct?(a=Ct,le+=2):(a=o,0===ge&&ye(Tt)),a!==o&&(a=St()),(i=a)===o&&(i=le,92===n.charCodeAt(le)?(a=jt,le++):(a=o,0===ge&&ye(Dt)),a!==o?(Lt.test(n.charAt(le))?(u=n.charAt(le),le++):(u=o,0===ge&&ye(Ot)),u!==o?i=a=It(u):(le=i,i=c)):(le=i,i=c),i===o&&(Lt.test(n.charAt(le))?(i=n.charAt(le),le++):(i=o,0===ge&&ye(Ot))));i!==o;)r.push(i),i=le,n.substr(le,2)===Ct?(a=Ct,le+=2):(a=o,0===ge&&ye(Tt)),a!==o&&(a=St()),(i=a)===o&&(i=le,92===n.charCodeAt(le)?(a=jt,le++):(a=o,0===ge&&ye(Dt)),a!==o?(Lt.test(n.charAt(le))?(u=n.charAt(le),le++):(u=o,0===ge&&ye(Ot)),u!==o?i=a=It(u):(le=i,i=c)):(le=i,i=c),i===o&&(Lt.test(n.charAt(le))?(i=n.charAt(le),le++):(i=o,0===ge&&ye(Ot))));r!==o?(34===n.charCodeAt(le)?(i=Nt,le++):(i=o,0===ge&&ye(At)),i!==o?t=e=Rt(r):(le=t,t=c)):(le=t,t=c)}else le=t,t=c}}return ge--,t===o&&(e=o,0===ge&&ye(ht)),t}function Se(){var t;return le,n.substr(le,5).toLowerCase()===Ht?(t=n.substr(le,5),le+=5):(t=o,0===ge&&ye($t)),t!==o&&(t=Ft(t)),t}function je(){var t;return(t=function(){var t,e;if(ge++,t=[],Jt.test(n.charAt(le))?(e=n.charAt(le),le++):(e=o,0===ge&&ye(Qt)),e!==o)for(;e!==o;)t.push(e),Jt.test(n.charAt(le))?(e=n.charAt(le),le++):(e=o,0===ge&&ye(Qt));else t=c;return ge--,t===o&&(e=o,0===ge&&ye(Kt)),t}())===o&&(t=function(){var t,e,r,i,a,u;if(ge++,t=le,n.substr(le,2)===ee?(e=ee,le+=2):(e=o,0===ge&&ye(ne)),e!==o){for(r=[],re.test(n.charAt(le))?(i=n.charAt(le),le++):(i=o,0===ge&&ye(ie));i!==o;)r.push(i),re.test(n.charAt(le))?(i=n.charAt(le),le++):(i=o,0===ge&&ye(ie));r!==o?t=e=[e,r]:(le=t,t=c)}else le=t,t=c;if(t===o)if(t=le,n.substr(le,2)===oe?(e=oe,le+=2):(e=o,0===ge&&ye(ae)),e!==o){for(r=[],i=le,a=le,ge++,n.substr(le,2)===ue?(u=ue,le+=2):(u=o,0===ge&&ye(ce)),ge--,u===o?a=z:(le=a,a=c),a!==o?(n.length>le?(u=n.charAt(le),le++):(u=o,0===ge&&ye(se)),u!==o?i=a=[a,u]:(le=i,i=c)):(le=i,i=c);i!==o;)r.push(i),i=le,a=le,ge++,n.substr(le,2)===ue?(u=ue,le+=2):(u=o,0===ge&&ye(ce)),ge--,u===o?a=z:(le=a,a=c),a!==o?(n.length>le?(u=n.charAt(le),le++):(u=o,0===ge&&ye(se)),u!==o?i=a=[a,u]:(le=i,i=c)):(le=i,i=c);r!==o?(n.substr(le,2)===ue?(i=ue,le+=2):(i=o,0===ge&&ye(ce)),i!==o?t=e=[e,r,i]:(le=t,t=c)):(le=t,t=c)}else le=t,t=c;return ge--,t===o&&(e=o,0===ge&&ye(te)),t}()),t}var De,Le=t("./lodash");if((r=u())!==o&&le===n.length)return r;throw r!==o&&le<n.length&&ye({type:"end",description:"end of input"}),me(null,pe,de)}}}()},{"./lodash":6}],5:[function(t,e,n){var r;if(t)try{r=t("graphlib")}catch(t){}r||(r=window.graphlib),e.exports=r},{graphlib:11}],6:[function(t,e,n){var r;if(t)try{r=t("lodash")}catch(t){}r||(r=window._),e.exports=r},{lodash:32}],7:[function(t,e,n){var r=t("./lodash"),i=t("./dot-grammar"),o=t("./build-graph");e.exports=function(t){var e=i.parse(t);return r.map(e,o)}},{"./build-graph":3,"./dot-grammar":4,"./lodash":6}],8:[function(t,e,n){var r=t("./dot-grammar"),i=t("./build-graph");e.exports=function(t){var e=r.parse(t,{startRule:"graphStmt"});return i(e)}},{"./build-graph":3,"./dot-grammar":4}],9:[function(t,e,n){e.exports="0.6.3"},{}],10:[function(t,e,n){var r=t("./lodash");e.exports=function(t){var e=t.isDirected()?"->":"--",n=new u;t.isMultigraph()||n.write("strict ");n.writeLine((t.isDirected()?"digraph":"graph")+" {"),n.indent();var i=t.graph();r.isObject(i)&&r.each(i,function(t,e){n.writeLine(a(e)+"="+a(t)+";")});return function t(e,n,i){var u=e.isCompound()?e.children(n):e.nodes();r.each(u,function(n){var u,c,s;e.isCompound()&&e.children(n).length?(i.writeLine("subgraph "+a(n)+" {"),i.indent(),r.isObject(e.node(n))&&r.map(e.node(n),function(t,e){i.writeLine(a(e)+"="+a(t)+";")}),t(e,n,i),i.unindent(),i.writeLine("}")):(u=e,c=n,(s=i).write(a(c)),o(u.node(c),s),s.writeLine())})}(t,void 0,n),t.edges().forEach(function(r){var i,u,c,s,l,f,h;i=t,c=e,s=n,l=(u=r).v,f=u.w,h=i.edge(u),s.write(a(l)+" "+c+" "+a(f)),o(h,s),s.writeLine()}),n.unindent(),n.writeLine("}"),n.toString()};var i=/^[a-zA-Z\200-\377_][a-zA-Z\200-\377_0-9]*$/;function o(t,e){if(r.isObject(t)){var n=r.map(t,function(t,e){return a(e)+"="+a(t)});n.length&&e.write(" ["+n.join(",")+"]")}}function a(t){return"number"==typeof t||t.toString().match(i)?t:'"'+t.toString().replace(/"/g,'\\"')+'"'}function u(){this._indent="",this._content="",this._shouldIndent=!0}u.prototype.INDENT="  ",u.prototype.indent=function(){this._indent+=this.INDENT},u.prototype.unindent=function(){this._indent=this._indent.slice(this.INDENT.length)},u.prototype.writeLine=function(t){this.write((t||"")+"\n"),this._shouldIndent=!0},u.prototype.write=function(t){this._shouldIndent&&(this._shouldIndent=!1,this._content+=this._indent),this._content+=t},u.prototype.toString=function(){return this._content}},{"./lodash":6}],11:[function(t,e,n){var r=t("./lib");e.exports={Graph:r.Graph,json:t("./lib/json"),alg:t("./lib/alg"),version:r.version}},{"./lib":27,"./lib/alg":18,"./lib/json":28}],12:[function(t,e,n){var r=t("../lodash");e.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},{"../lodash":29}],13:[function(t,e,n){var r=t("../lodash");e.exports=function(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],a={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,i,o,a,u){r.has(o,n)||(o[n]=!0,i||u.push(n),r.each(a(n),function(n){t(e,n,i,o,a,u)}),i&&u.push(n))}(t,e,"post"===n,a,i,o)}),o}},{"../lodash":29}],14:[function(t,e,n){var r=t("./dijkstra"),i=t("../lodash");e.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},{"../lodash":29,"./dijkstra":15}],15:[function(t,e,n){var r=t("../lodash"),i=t("../data/priority-queue");e.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,u={},c=new i,s=function(t){var e=t.v!==o?t.v:t.w,r=u[e],i=n(t),s=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);s<r.distance&&(r.distance=s,r.predecessor=o,c.decrease(e,s))};t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;u[t]={distance:n},c.add(t,n)});for(;c.size()>0&&(o=c.removeMin(),(a=u[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(s);return u}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},{"../data/priority-queue":25,"../lodash":29}],16:[function(t,e,n){var r=t("../lodash"),i=t("./tarjan");e.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},{"../lodash":29,"./tarjan":23}],17:[function(t,e,n){var r=t("../lodash");e.exports=function(t,e,n){return r=t,o=e||i,a=n||function(e){return t.outEdges(e)},u={},c=r.nodes(),c.forEach(function(t){u[t]={},u[t][t]={distance:0},c.forEach(function(e){t!==e&&(u[t][e]={distance:Number.POSITIVE_INFINITY})}),a(t).forEach(function(e){var n=e.v===t?e.w:e.v,r=o(e);u[t][n]={distance:r,predecessor:t}})}),c.forEach(function(t){var e=u[t];c.forEach(function(n){var r=u[n];c.forEach(function(n){var i=r[t],o=e[n],a=r[n],u=i.distance+o.distance;u<a.distance&&(a.distance=u,a.predecessor=o.predecessor)})})}),u;var r,o,a,u,c};var i=r.constant(1)},{"../lodash":29}],18:[function(t,e,n){e.exports={components:t("./components"),dijkstra:t("./dijkstra"),dijkstraAll:t("./dijkstra-all"),findCycles:t("./find-cycles"),floydWarshall:t("./floyd-warshall"),isAcyclic:t("./is-acyclic"),postorder:t("./postorder"),preorder:t("./preorder"),prim:t("./prim"),tarjan:t("./tarjan"),topsort:t("./topsort")}},{"./components":12,"./dijkstra":15,"./dijkstra-all":14,"./find-cycles":16,"./floyd-warshall":17,"./is-acyclic":19,"./postorder":20,"./preorder":21,"./prim":22,"./tarjan":23,"./topsort":24}],19:[function(t,e,n){var r=t("./topsort");e.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},{"./topsort":24}],20:[function(t,e,n){var r=t("./dfs");e.exports=function(t,e){return r(t,e,"post")}},{"./dfs":13}],21:[function(t,e,n){var r=t("./dfs");e.exports=function(t,e){return r(t,e,"pre")}},{"./dfs":13}],22:[function(t,e,n){var r=t("../lodash"),i=t("../graph"),o=t("../data/priority-queue");e.exports=function(t,e){var n,a=new i,u={},c=new o;function s(t){var r=t.v===n?t.w:t.v,i=c.priority(r);if(void 0!==i){var o=e(t);o<i&&(u[r]=n,c.decrease(r,o))}}if(0===t.nodeCount())return a;r.each(t.nodes(),function(t){c.add(t,Number.POSITIVE_INFINITY),a.setNode(t)}),c.decrease(t.nodes()[0],0);var l=!1;for(;c.size()>0;){if(n=c.removeMin(),r.has(u,n))a.setEdge(n,u[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(s)}return a}},{"../data/priority-queue":25,"../graph":26,"../lodash":29}],23:[function(t,e,n){var r=t("../lodash");e.exports=function(t){var e=0,n=[],i={},o=[];return t.nodes().forEach(function(a){r.has(i,a)||function a(u){var c=i[u]={onStack:!0,lowlink:e,index:e++};if(n.push(u),t.successors(u).forEach(function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(a(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))}),c.lowlink===c.index){var s,l=[];do{s=n.pop(),i[s].onStack=!1,l.push(s)}while(u!==s);o.push(l)}}(a)}),o}},{"../lodash":29}],24:[function(t,e,n){var r=t("../lodash");function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(u){if(r.has(n,u))throw new o;r.has(e,u)||(n[u]=!0,e[u]=!0,r.each(t.predecessors(u),a),delete n[u],i.push(u))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o},{"../lodash":29}],25:[function(t,e,n){var r=t("../lodash");function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e}},{"../lodash":29}],26:[function(t,e,n){"use strict";var r=t("./lodash");e.exports=u;var i="\0",o="\0",a="";function u(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function c(t,e){t[e]?t[e]++:t[e]=1}function s(t,e){--t[e]||delete t[e]}function l(t,e,n,o){var u=""+e,c=""+n;if(!t&&u>c){var s=u;u=c,c=s}return u+a+c+a+(r.isUndefined(o)?i:o)}function f(t,e){return l(t,e.v,e.w,e.name)}u.prototype._nodeCount=0,u.prototype._edgeCount=0,u.prototype.isDirected=function(){return this._isDirected},u.prototype.isMultigraph=function(){return this._isMultigraph},u.prototype.isCompound=function(){return this._isCompound},u.prototype.setGraph=function(t){return this._label=t,this},u.prototype.graph=function(){return this._label},u.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},u.prototype.nodeCount=function(){return this._nodeCount},u.prototype.nodes=function(){return r.keys(this._nodes)},u.prototype.sources=function(){return r.filter(this.nodes(),r.bind(function(t){return r.isEmpty(this._in[t])},this))},u.prototype.sinks=function(){return r.filter(this.nodes(),r.bind(function(t){return r.isEmpty(this._out[t])},this))},u.prototype.setNodes=function(t,e){var n=arguments;return r.each(t,r.bind(function(t){n.length>1?this.setNode(t,e):this.setNode(t)},this)),this},u.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},u.prototype.node=function(t){return this._nodes[t]},u.prototype.hasNode=function(t){return r.has(this._nodes,t)},u.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),r.bind(function(t){this.setParent(t)},this)),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},u.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=o;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},u.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},u.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==o)return e}},u.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},u.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},u.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},u.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},u.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},u.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph()),r.each(this._nodes,r.bind(function(n,r){t(r)&&e.setNode(r,n)},this)),r.each(this._edgeObjs,r.bind(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,this.edge(t))},this));var n=this,i={};return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,function t(r){var o=n.parent(r);return void 0===o||e.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))}),e},u.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},u.prototype.edgeCount=function(){return this._edgeCount},u.prototype.edges=function(){return r.values(this._edgeObjs)},u.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},u.prototype.setEdge=function(){var t,e,n,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var u=l(this._isDirected,t,e,n);if(r.has(this._edgeLabels,u))return o&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=o?i:this._defaultEdgeLabelFn(t,e,n);var s=function(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var u={v:i,w:o};r&&(u.name=r);return u}(this._isDirected,t,e,n);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[u]=s,c(this._preds[e],t),c(this._sucs[t],e),this._in[e][u]=s,this._out[t][u]=s,this._edgeCount++,this},u.prototype.edge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,n);return this._edgeLabels[r]},u.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},u.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},u.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},u.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},u.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},{"./lodash":29}],27:[function(t,e,n){e.exports={Graph:t("./graph"),version:t("./version")}},{"./graph":26,"./version":30}],28:[function(t,e,n){var r=t("./lodash"),i=t("./graph");e.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:(i=t,r.map(i.nodes(),function(t){var e=i.node(t),n=i.parent(t),o={v:t};return r.isUndefined(e)||(o.value=e),r.isUndefined(n)||(o.parent=n),o})),edges:(n=t,r.map(n.edges(),function(t){var e=n.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(e)||(i.value=e),i}))};var n;var i;r.isUndefined(t.graph())||(e.value=r.clone(t.graph()));return e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},{"./graph":26,"./lodash":29}],29:[function(t,e,n){var r;if("function"==typeof t)try{r=t("lodash")}catch(t){}r||(r=window._),e.exports=r},{lodash:31}],30:[function(t,e,n){e.exports="2.1.2"},{}],31:[function(t,e,n){(function(t){(function(){var r,i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="__lodash_hash_undefined__",c=500,s="__lodash_placeholder__",l=1,f=2,h=4,d=1,p=2,g=1,v=2,y=4,m=8,_=16,b=32,x=64,w=128,E=256,k=512,M=30,N="...",A=800,C=16,T=1,S=2,j=1/0,D=9007199254740991,L=1.7976931348623157e308,O=NaN,I=4294967295,R=I-1,z=I>>>1,q=[["ary",w],["bind",g],["bindKey",v],["curry",m],["curryRight",_],["flip",k],["partial",b],["partialRight",x],["rearg",E]],F="[object Arguments]",P="[object Array]",B="[object AsyncFunction]",H="[object Boolean]",$="[object Date]",W="[object DOMException]",U="[object Error]",G="[object Function]",V="[object GeneratorFunction]",Y="[object Map]",X="[object Number]",Z="[object Null]",K="[object Object]",J="[object Promise]",Q="[object Proxy]",tt="[object RegExp]",et="[object Set]",nt="[object String]",rt="[object Symbol]",it="[object Undefined]",ot="[object WeakMap]",at="[object WeakSet]",ut="[object ArrayBuffer]",ct="[object DataView]",st="[object Float32Array]",lt="[object Float64Array]",ft="[object Int8Array]",ht="[object Int16Array]",dt="[object Int32Array]",pt="[object Uint8Array]",gt="[object Uint8ClampedArray]",vt="[object Uint16Array]",yt="[object Uint32Array]",mt=/\b__p \+= '';/g,_t=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xt=/&(?:amp|lt|gt|quot|#39);/g,wt=/[&<>"']/g,Et=RegExp(xt.source),kt=RegExp(wt.source),Mt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,At=/<%=([\s\S]+?)%>/g,Ct=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tt=/^\w*$/,St=/^\./,jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dt=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(Dt.source),Ot=/^\s+|\s+$/g,It=/^\s+/,Rt=/\s+$/,zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ft=/,? & /,Pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bt=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$t=/\w*$/,Wt=/^[-+]0x[0-9a-f]+$/i,Ut=/^0b[01]+$/i,Gt=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Yt=/^(?:0|[1-9]\d*)$/,Xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zt=/($^)/,Kt=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",Qt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",te="\\u2700-\\u27bf",ee="a-z\\xdf-\\xf6\\xf8-\\xff",ne="A-Z\\xc0-\\xd6\\xd8-\\xde",re="\\ufe0e\\ufe0f",ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oe="["+Jt+"]",ae="["+ie+"]",ue="["+Qt+"]",ce="\\d+",se="["+te+"]",le="["+ee+"]",fe="[^"+Jt+ie+ce+te+ee+ne+"]",he="\\ud83c[\\udffb-\\udfff]",de="[^"+Jt+"]",pe="(?:\\ud83c[\\udde6-\\uddff]){2}",ge="[\\ud800-\\udbff][\\udc00-\\udfff]",ve="["+ne+"]",ye="(?:"+le+"|"+fe+")",me="(?:"+ve+"|"+fe+")",_e="(?:['’](?:d|ll|m|re|s|t|ve))?",be="(?:['’](?:D|LL|M|RE|S|T|VE))?",xe="(?:"+ue+"|"+he+")"+"?",we="["+re+"]?",Ee=we+xe+("(?:\\u200d(?:"+[de,pe,ge].join("|")+")"+we+xe+")*"),ke="(?:"+[se,pe,ge].join("|")+")"+Ee,Me="(?:"+[de+ue+"?",ue,pe,ge,oe].join("|")+")",Ne=RegExp("['’]","g"),Ae=RegExp(ue,"g"),Ce=RegExp(he+"(?="+he+")|"+Me+Ee,"g"),Te=RegExp([ve+"?"+le+"+"+_e+"(?="+[ae,ve,"$"].join("|")+")",me+"+"+be+"(?="+[ae,ve+ye,"$"].join("|")+")",ve+"?"+ye+"+"+_e,ve+"+"+be,"\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",ce,ke].join("|"),"g"),Se=RegExp("[\\u200d"+Jt+Qt+re+"]"),je=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,De=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Le=-1,Oe={};Oe[st]=Oe[lt]=Oe[ft]=Oe[ht]=Oe[dt]=Oe[pt]=Oe[gt]=Oe[vt]=Oe[yt]=!0,Oe[F]=Oe[P]=Oe[ut]=Oe[H]=Oe[ct]=Oe[$]=Oe[U]=Oe[G]=Oe[Y]=Oe[X]=Oe[K]=Oe[tt]=Oe[et]=Oe[nt]=Oe[ot]=!1;var Ie={};Ie[F]=Ie[P]=Ie[ut]=Ie[ct]=Ie[H]=Ie[$]=Ie[st]=Ie[lt]=Ie[ft]=Ie[ht]=Ie[dt]=Ie[Y]=Ie[X]=Ie[K]=Ie[tt]=Ie[et]=Ie[nt]=Ie[rt]=Ie[pt]=Ie[gt]=Ie[vt]=Ie[yt]=!0,Ie[U]=Ie[G]=Ie[ot]=!1;var Re={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ze=parseFloat,qe=parseInt,Fe="object"==typeof t&&t&&t.Object===Object&&t,Pe="object"==typeof self&&self&&self.Object===Object&&self,Be=Fe||Pe||Function("return this")(),He="object"==typeof n&&n&&!n.nodeType&&n,$e=He&&"object"==typeof e&&e&&!e.nodeType&&e,We=$e&&$e.exports===He,Ue=We&&Fe.process,Ge=function(){try{return Ue&&Ue.binding&&Ue.binding("util")}catch(t){}}(),Ve=Ge&&Ge.isArrayBuffer,Ye=Ge&&Ge.isDate,Xe=Ge&&Ge.isMap,Ze=Ge&&Ge.isRegExp,Ke=Ge&&Ge.isSet,Je=Ge&&Ge.isTypedArray;function Qe(t,e){return t.set(e[0],e[1]),t}function tn(t,e){return t.add(e),t}function en(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function nn(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function rn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function on(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function an(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function un(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function cn(t,e){return!!(null==t?0:t.length)&&mn(t,e,0)>-1}function sn(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function ln(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function fn(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function hn(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function dn(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function pn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var gn=wn("length");function vn(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function yn(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function mn(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):yn(t,bn,n)}function _n(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function bn(t){return t!=t}function xn(t,e){var n=null==t?0:t.length;return n?Mn(t,e)/n:O}function wn(t){return function(e){return null==e?r:e[t]}}function En(t){return function(e){return null==t?r:t[e]}}function kn(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Mn(t,e){for(var n,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==r&&(n=n===r?a:n+a)}return n}function Nn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function An(t){return function(e){return t(e)}}function Cn(t,e){return ln(e,function(e){return t[e]})}function Tn(t,e){return t.has(e)}function Sn(t,e){for(var n=-1,r=t.length;++n<r&&mn(e,t[n],0)>-1;);return n}function jn(t,e){for(var n=t.length;n--&&mn(e,t[n],0)>-1;);return n}var Dn=En({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Ln=En({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function On(t){return"\\"+Re[t]}function In(t){return Se.test(t)}function Rn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function zn(t,e){return function(n){return t(e(n))}}function qn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==s||(t[n]=s,o[i++]=n)}return o}function Fn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function Pn(t){return In(t)?function(t){var e=Ce.lastIndex=0;for(;Ce.test(t);)++e;return e}(t):gn(t)}function Bn(t){return In(t)?t.match(Ce)||[]:t.split("")}var Hn=En({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var $n=function t(e){var n,Jt=(e=null==e?Be:$n.defaults(Be.Object(),e,$n.pick(Be,De))).Array,Qt=e.Date,te=e.Error,ee=e.Function,ne=e.Math,re=e.Object,ie=e.RegExp,oe=e.String,ae=e.TypeError,ue=Jt.prototype,ce=ee.prototype,se=re.prototype,le=e["__core-js_shared__"],fe=ce.toString,he=se.hasOwnProperty,de=0,pe=(n=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ge=se.toString,ve=fe.call(re),ye=Be._,me=ie("^"+fe.call(he).replace(Dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_e=We?e.Buffer:r,be=e.Symbol,xe=e.Uint8Array,we=_e?_e.allocUnsafe:r,Ee=zn(re.getPrototypeOf,re),ke=re.create,Me=se.propertyIsEnumerable,Ce=ue.splice,Se=be?be.isConcatSpreadable:r,Re=be?be.iterator:r,Fe=be?be.toStringTag:r,Pe=function(){try{var t=Ho(re,"defineProperty");return t({},"",{}),t}catch(t){}}(),He=e.clearTimeout!==Be.clearTimeout&&e.clearTimeout,$e=Qt&&Qt.now!==Be.Date.now&&Qt.now,Ue=e.setTimeout!==Be.setTimeout&&e.setTimeout,Ge=ne.ceil,gn=ne.floor,En=re.getOwnPropertySymbols,Wn=_e?_e.isBuffer:r,Un=e.isFinite,Gn=ue.join,Vn=zn(re.keys,re),Yn=ne.max,Xn=ne.min,Zn=Qt.now,Kn=e.parseInt,Jn=ne.random,Qn=ue.reverse,tr=Ho(e,"DataView"),er=Ho(e,"Map"),nr=Ho(e,"Promise"),rr=Ho(e,"Set"),ir=Ho(e,"WeakMap"),or=Ho(re,"create"),ar=ir&&new ir,ur={},cr=ga(tr),sr=ga(er),lr=ga(nr),fr=ga(rr),hr=ga(ir),dr=be?be.prototype:r,pr=dr?dr.valueOf:r,gr=dr?dr.toString:r;function vr(t){if(Du(t)&&!xu(t)&&!(t instanceof br)){if(t instanceof _r)return t;if(he.call(t,"__wrapped__"))return va(t)}return new _r(t)}var yr=function(){function t(){}return function(e){if(!ju(e))return{};if(ke)return ke(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function mr(){}function _r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function br(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=I,this.__views__=[]}function xr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function wr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Er(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function kr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Er;++e<n;)this.add(t[e])}function Mr(t){var e=this.__data__=new wr(t);this.size=e.size}function Nr(t,e){var n=xu(t),r=!n&&bu(t),i=!n&&!r&&Mu(t),o=!n&&!r&&!i&&Pu(t),a=n||r||i||o,u=a?Nn(t.length,oe):[],c=u.length;for(var s in t)!e&&!he.call(t,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Xo(s,c))||u.push(s);return u}function Ar(t){var e=t.length;return e?t[ki(0,e-1)]:r}function Cr(t,e){return la(oo(t),zr(e,0,t.length))}function Tr(t){return la(oo(t))}function Sr(t,e,n){(n===r||yu(t[e],n))&&(n!==r||e in t)||Ir(t,e,n)}function jr(t,e,n){var i=t[e];he.call(t,e)&&yu(i,n)&&(n!==r||e in t)||Ir(t,e,n)}function Dr(t,e){for(var n=t.length;n--;)if(yu(t[n][0],e))return n;return-1}function Lr(t,e,n,r){return Hr(t,function(t,i,o){e(r,t,n(t),o)}),r}function Or(t,e){return t&&ao(e,cc(e),t)}function Ir(t,e,n){"__proto__"==e&&Pe?Pe(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Rr(t,e){for(var n=-1,i=e.length,o=Jt(i),a=null==t;++n<i;)o[n]=a?r:rc(t,e[n]);return o}function zr(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function qr(t,e,n,i,o,a){var u,c=e&l,s=e&f,d=e&h;if(n&&(u=o?n(t,i,o,a):n(t)),u!==r)return u;if(!ju(t))return t;var p,g,v,y,m,_,b,x,w,E=xu(t);if(E){if(x=(b=t).length,w=b.constructor(x),x&&"string"==typeof b[0]&&he.call(b,"index")&&(w.index=b.index,w.input=b.input),u=w,!c)return oo(t,u)}else{var k=Uo(t),M=k==G||k==V;if(Mu(t))return Qi(t,c);if(k==K||k==F||M&&!o){if(u=s||M?{}:Vo(t),!c)return s?(v=t,_=t,y=(m=u)&&ao(_,sc(_),m),ao(v,Wo(v),y)):(p=t,g=Or(u,t),ao(p,$o(p),g))}else{if(!Ie[k])return o?t:{};u=function(t,e,n,r){var i,o,a,u,c,s,f,h=t.constructor;switch(e){case ut:return to(t);case H:case $:return new h(+t);case ct:return s=t,f=r?to(s.buffer):s.buffer,new s.constructor(f,s.byteOffset,s.byteLength);case st:case lt:case ft:case ht:case dt:case pt:case gt:case vt:case yt:return eo(t,r);case Y:return c=t,hn(r?n(Rn(c),l):Rn(c),Qe,new c.constructor);case X:case nt:return new h(t);case tt:return(u=new(a=t).constructor(a.source,$t.exec(a))).lastIndex=a.lastIndex,u;case et:return o=t,hn(r?n(Fn(o),l):Fn(o),tn,new o.constructor);case rt:return i=t,pr?re(pr.call(i)):{}}}(t,k,qr,c)}}a||(a=new Mr);var N=a.get(t);if(N)return N;a.set(t,u);var A=E?r:(d?s?Io:Oo:s?sc:cc)(t);return rn(A||t,function(r,i){A&&(r=t[i=r]),jr(u,i,qr(r,e,n,i,t,a))}),u}function Fr(t,e,n){var i=n.length;if(null==t)return!i;for(t=re(t);i--;){var o=n[i],a=e[o],u=t[o];if(u===r&&!(o in t)||!a(u))return!1}return!0}function Pr(t,e,n){if("function"!=typeof t)throw new ae(a);return aa(function(){t.apply(r,n)},e)}function Br(t,e,n,r){var o=-1,a=cn,u=!0,c=t.length,s=[],l=e.length;if(!c)return s;n&&(e=ln(e,An(n))),r?(a=sn,u=!1):e.length>=i&&(a=Tn,u=!1,e=new kr(e));t:for(;++o<c;){var f=t[o],h=null==n?f:n(f);if(f=r||0!==f?f:0,u&&h==h){for(var d=l;d--;)if(e[d]===h)continue t;s.push(f)}else a(e,h,r)||s.push(f)}return s}vr.templateSettings={escape:Mt,evaluate:Nt,interpolate:At,variable:"",imports:{_:vr}},vr.prototype=mr.prototype,vr.prototype.constructor=vr,_r.prototype=yr(mr.prototype),_r.prototype.constructor=_r,br.prototype=yr(mr.prototype),br.prototype.constructor=br,xr.prototype.clear=function(){this.__data__=or?or(null):{},this.size=0},xr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xr.prototype.get=function(t){var e=this.__data__;if(or){var n=e[t];return n===u?r:n}return he.call(e,t)?e[t]:r},xr.prototype.has=function(t){var e=this.__data__;return or?e[t]!==r:he.call(e,t)},xr.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=or&&e===r?u:e,this},wr.prototype.clear=function(){this.__data__=[],this.size=0},wr.prototype.delete=function(t){var e=this.__data__,n=Dr(e,t);return!(n<0||(n==e.length-1?e.pop():Ce.call(e,n,1),--this.size,0))},wr.prototype.get=function(t){var e=this.__data__,n=Dr(e,t);return n<0?r:e[n][1]},wr.prototype.has=function(t){return Dr(this.__data__,t)>-1},wr.prototype.set=function(t,e){var n=this.__data__,r=Dr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Er.prototype.clear=function(){this.size=0,this.__data__={hash:new xr,map:new(er||wr),string:new xr}},Er.prototype.delete=function(t){var e=Po(this,t).delete(t);return this.size-=e?1:0,e},Er.prototype.get=function(t){return Po(this,t).get(t)},Er.prototype.has=function(t){return Po(this,t).has(t)},Er.prototype.set=function(t,e){var n=Po(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},kr.prototype.add=kr.prototype.push=function(t){return this.__data__.set(t,u),this},kr.prototype.has=function(t){return this.__data__.has(t)},Mr.prototype.clear=function(){this.__data__=new wr,this.size=0},Mr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Mr.prototype.get=function(t){return this.__data__.get(t)},Mr.prototype.has=function(t){return this.__data__.has(t)},Mr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!er||r.length<i-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Er(r)}return n.set(t,e),this.size=n.size,this};var Hr=so(Zr),$r=so(Kr,!0);function Wr(t,e){var n=!0;return Hr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Ur(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],u=e(a);if(null!=u&&(c===r?u==u&&!Fu(u):n(u,c)))var c=u,s=a}return s}function Gr(t,e){var n=[];return Hr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Vr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=Yo),i||(i=[]);++o<a;){var u=t[o];e>0&&n(u)?e>1?Vr(u,e-1,n,r,i):fn(i,u):r||(i[i.length]=u)}return i}var Yr=lo(),Xr=lo(!0);function Zr(t,e){return t&&Yr(t,e,cc)}function Kr(t,e){return t&&Xr(t,e,cc)}function Jr(t,e){return un(e,function(e){return Cu(t[e])})}function Qr(t,e){for(var n=0,i=(e=Xi(e,t)).length;null!=t&&n<i;)t=t[pa(e[n++])];return n&&n==i?t:r}function ti(t,e,n){var r=e(t);return xu(t)?r:fn(r,n(t))}function ei(t){return null==t?t===r?it:Z:Fe&&Fe in re(t)?function(t){var e=he.call(t,Fe),n=t[Fe];try{t[Fe]=r;var i=!0}catch(t){}var o=ge.call(t);return i&&(e?t[Fe]=n:delete t[Fe]),o}(t):(e=t,ge.call(e));var e}function ni(t,e){return t>e}function ri(t,e){return null!=t&&he.call(t,e)}function ii(t,e){return null!=t&&e in re(t)}function oi(t,e,n){for(var i=n?sn:cn,o=t[0].length,a=t.length,u=a,c=Jt(a),s=1/0,l=[];u--;){var f=t[u];u&&e&&(f=ln(f,An(e))),s=Xn(f.length,s),c[u]=!n&&(e||o>=120&&f.length>=120)?new kr(u&&f):r}f=t[0];var h=-1,d=c[0];t:for(;++h<o&&l.length<s;){var p=f[h],g=e?e(p):p;if(p=n||0!==p?p:0,!(d?Tn(d,g):i(l,g,n))){for(u=a;--u;){var v=c[u];if(!(v?Tn(v,g):i(t[u],g,n)))continue t}d&&d.push(g),l.push(p)}}return l}function ai(t,e,n){var i=null==(t=ia(t,e=Xi(e,t)))?t:t[pa(Aa(e))];return null==i?r:en(i,t,n)}function ui(t){return Du(t)&&ei(t)==F}function ci(t,e,n,i,o){return t===e||(null==t||null==e||!Du(t)&&!Du(e)?t!=t&&e!=e:function(t,e,n,i,o,a){var u=xu(t),c=xu(e),s=u?P:Uo(t),l=c?P:Uo(e),f=(s=s==F?K:s)==K,h=(l=l==F?K:l)==K,g=s==l;if(g&&Mu(t)){if(!Mu(e))return!1;u=!0,f=!1}if(g&&!f)return a||(a=new Mr),u||Pu(t)?Do(t,e,n,i,o,a):function(t,e,n,r,i,o,a){switch(n){case ct:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ut:return!(t.byteLength!=e.byteLength||!o(new xe(t),new xe(e)));case H:case $:case X:return yu(+t,+e);case U:return t.name==e.name&&t.message==e.message;case tt:case nt:return t==e+"";case Y:var u=Rn;case et:var c=r&d;if(u||(u=Fn),t.size!=e.size&&!c)return!1;var s=a.get(t);if(s)return s==e;r|=p,a.set(t,e);var l=Do(u(t),u(e),r,i,o,a);return a.delete(t),l;case rt:if(pr)return pr.call(t)==pr.call(e)}return!1}(t,e,s,n,i,o,a);if(!(n&d)){var v=f&&he.call(t,"__wrapped__"),y=h&&he.call(e,"__wrapped__");if(v||y){var m=v?t.value():t,_=y?e.value():e;return a||(a=new Mr),o(m,_,n,i,a)}}return!!g&&(a||(a=new Mr),function(t,e,n,i,o,a){var u=n&d,c=Oo(t),s=c.length,l=Oo(e).length;if(s!=l&&!u)return!1;for(var f=s;f--;){var h=c[f];if(!(u?h in e:he.call(e,h)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var g=!0;a.set(t,e),a.set(e,t);for(var v=u;++f<s;){h=c[f];var y=t[h],m=e[h];if(i)var _=u?i(m,y,h,e,t,a):i(y,m,h,t,e,a);if(!(_===r?y===m||o(y,m,n,i,a):_)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var b=t.constructor,x=e.constructor;b!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(g=!1)}return a.delete(t),a.delete(e),g}(t,e,n,i,o,a))}(t,e,n,i,ci,o))}function si(t,e,n,i){var o=n.length,a=o,u=!i;if(null==t)return!a;for(t=re(t);o--;){var c=n[o];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<a;){var s=(c=n[o])[0],l=t[s],f=c[1];if(u&&c[2]){if(l===r&&!(s in t))return!1}else{var h=new Mr;if(i)var g=i(l,f,s,t,e,h);if(!(g===r?ci(f,l,d|p,i,h):g))return!1}}return!0}function li(t){return!(!ju(t)||pe&&pe in t)&&(Cu(t)?me:Gt).test(ga(t))}function fi(t){return"function"==typeof t?t:null==t?Oc:"object"==typeof t?xu(t)?yi(t[0],t[1]):vi(t):$c(t)}function hi(t){if(!ta(t))return Vn(t);var e=[];for(var n in re(t))he.call(t,n)&&"constructor"!=n&&e.push(n);return e}function di(t){if(!ju(t))return function(t){var e=[];if(null!=t)for(var n in re(t))e.push(n);return e}(t);var e=ta(t),n=[];for(var r in t)("constructor"!=r||!e&&he.call(t,r))&&n.push(r);return n}function pi(t,e){return t<e}function gi(t,e){var n=-1,r=Eu(t)?Jt(t.length):[];return Hr(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function vi(t){var e=Bo(t);return 1==e.length&&e[0][2]?na(e[0][0],e[0][1]):function(n){return n===t||si(n,t,e)}}function yi(t,e){return Ko(t)&&ea(e)?na(pa(t),e):function(n){var i=rc(n,t);return i===r&&i===e?ic(n,t):ci(e,i,d|p)}}function mi(t,e,n,i,o){t!==e&&Yr(e,function(a,u){if(ju(a))o||(o=new Mr),function(t,e,n,i,o,a,u){var c=t[n],s=e[n],l=u.get(s);if(l)Sr(t,n,l);else{var f=a?a(c,s,n+"",t,e,u):r,h=f===r;if(h){var d=xu(s),p=!d&&Mu(s),g=!d&&!p&&Pu(s);f=s,d||p||g?xu(c)?f=c:ku(c)?f=oo(c):p?(h=!1,f=Qi(s,!0)):g?(h=!1,f=eo(s,!0)):f=[]:Iu(s)||bu(s)?(f=c,bu(c)?f=Yu(c):(!ju(c)||i&&Cu(c))&&(f=Vo(s))):h=!1}h&&(u.set(s,f),o(f,s,i,a,u),u.delete(s)),Sr(t,n,f)}}(t,e,u,n,mi,i,o);else{var c=i?i(t[u],a,u+"",t,e,o):r;c===r&&(c=a),Sr(t,u,c)}},sc)}function _i(t,e){var n=t.length;if(n)return Xo(e+=e<0?n:0,n)?t[e]:r}function bi(t,e,n){var r=-1;return e=ln(e.length?e:[Oc],An(Fo())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(gi(t,function(t,n,i){return{criteria:ln(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,u=n.length;++r<a;){var c=no(i[r],o[r]);if(c){if(r>=u)return c;var s=n[r];return c*("desc"==s?-1:1)}}return t.index-e.index}(t,e,n)})}function xi(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],u=Qr(t,a);n(u,a)&&Ti(o,Xi(a,t),u)}return o}function wi(t,e,n,r){var i=r?_n:mn,o=-1,a=e.length,u=t;for(t===e&&(e=oo(e)),n&&(u=ln(t,An(n)));++o<a;)for(var c=0,s=e[o],l=n?n(s):s;(c=i(u,l,c,r))>-1;)u!==t&&Ce.call(u,c,1),Ce.call(t,c,1);return t}function Ei(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Xo(i)?Ce.call(t,i,1):Bi(t,i)}}return t}function ki(t,e){return t+gn(Jn()*(e-t+1))}function Mi(t,e){var n="";if(!t||e<1||e>D)return n;do{e%2&&(n+=t),(e=gn(e/2))&&(t+=t)}while(e);return n}function Ni(t,e){return ua(ra(t,e,Oc),t+"")}function Ai(t){return Ar(yc(t))}function Ci(t,e){var n=yc(t);return la(n,zr(e,0,n.length))}function Ti(t,e,n,i){if(!ju(t))return t;for(var o=-1,a=(e=Xi(e,t)).length,u=a-1,c=t;null!=c&&++o<a;){var s=pa(e[o]),l=n;if(o!=u){var f=c[s];(l=i?i(f,s,c):r)===r&&(l=ju(f)?f:Xo(e[o+1])?[]:{})}jr(c,s,l),c=c[s]}return t}var Si=ar?function(t,e){return ar.set(t,e),t}:Oc,ji=Pe?function(t,e){return Pe(t,"toString",{configurable:!0,enumerable:!1,value:jc(e),writable:!0})}:Oc;function Di(t){return la(yc(t))}function Li(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Jt(i);++r<i;)o[r]=t[r+e];return o}function Oi(t,e){var n;return Hr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function Ii(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=z){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Fu(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Ri(t,e,Oc,n)}function Ri(t,e,n,i){e=n(e);for(var o=0,a=null==t?0:t.length,u=e!=e,c=null===e,s=Fu(e),l=e===r;o<a;){var f=gn((o+a)/2),h=n(t[f]),d=h!==r,p=null===h,g=h==h,v=Fu(h);if(u)var y=i||g;else y=l?g&&(i||d):c?g&&d&&(i||!p):s?g&&d&&!p&&(i||!v):!p&&!v&&(i?h<=e:h<e);y?o=f+1:a=f}return Xn(a,R)}function zi(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],u=e?e(a):a;if(!n||!yu(u,c)){var c=u;o[i++]=0===a?0:a}}return o}function qi(t){return"number"==typeof t?t:Fu(t)?O:+t}function Fi(t){if("string"==typeof t)return t;if(xu(t))return ln(t,Fi)+"";if(Fu(t))return gr?gr.call(t):"";var e=t+"";return"0"==e&&1/t==-j?"-0":e}function Pi(t,e,n){var r=-1,o=cn,a=t.length,u=!0,c=[],s=c;if(n)u=!1,o=sn;else if(a>=i){var l=e?null:No(t);if(l)return Fn(l);u=!1,o=Tn,s=new kr}else s=e?[]:c;t:for(;++r<a;){var f=t[r],h=e?e(f):f;if(f=n||0!==f?f:0,u&&h==h){for(var d=s.length;d--;)if(s[d]===h)continue t;e&&s.push(h),c.push(f)}else o(s,h,n)||(s!==c&&s.push(h),c.push(f))}return c}function Bi(t,e){return null==(t=ia(t,e=Xi(e,t)))||delete t[pa(Aa(e))]}function Hi(t,e,n,r){return Ti(t,e,n(Qr(t,e)),r)}function $i(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Li(t,r?0:o,r?o+1:i):Li(t,r?o+1:0,r?i:o)}function Wi(t,e){var n=t;return n instanceof br&&(n=n.value()),hn(e,function(t,e){return e.func.apply(e.thisArg,fn([t],e.args))},n)}function Ui(t,e,n){var r=t.length;if(r<2)return r?Pi(t[0]):[];for(var i=-1,o=Jt(r);++i<r;)for(var a=t[i],u=-1;++u<r;)u!=i&&(o[i]=Br(o[i]||a,t[u],e,n));return Pi(Vr(o,1),e,n)}function Gi(t,e,n){for(var i=-1,o=t.length,a=e.length,u={};++i<o;){var c=i<a?e[i]:r;n(u,t[i],c)}return u}function Vi(t){return ku(t)?t:[]}function Yi(t){return"function"==typeof t?t:Oc}function Xi(t,e){return xu(t)?t:Ko(t,e)?[t]:da(Xu(t))}var Zi=Ni;function Ki(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:Li(t,e,n)}var Ji=He||function(t){return Be.clearTimeout(t)};function Qi(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function to(t){var e=new t.constructor(t.byteLength);return new xe(e).set(new xe(t)),e}function eo(t,e){var n=e?to(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function no(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,a=Fu(t),u=e!==r,c=null===e,s=e==e,l=Fu(e);if(!c&&!l&&!a&&t>e||a&&u&&s&&!c&&!l||i&&u&&s||!n&&s||!o)return 1;if(!i&&!a&&!l&&t<e||l&&n&&o&&!i&&!a||c&&n&&o||!u&&o||!s)return-1}return 0}function ro(t,e,n,r){for(var i=-1,o=t.length,a=n.length,u=-1,c=e.length,s=Yn(o-a,0),l=Jt(c+s),f=!r;++u<c;)l[u]=e[u];for(;++i<a;)(f||i<o)&&(l[n[i]]=t[i]);for(;s--;)l[u++]=t[i++];return l}function io(t,e,n,r){for(var i=-1,o=t.length,a=-1,u=n.length,c=-1,s=e.length,l=Yn(o-u,0),f=Jt(l+s),h=!r;++i<l;)f[i]=t[i];for(var d=i;++c<s;)f[d+c]=e[c];for(;++a<u;)(h||i<o)&&(f[d+n[a]]=t[i++]);return f}function oo(t,e){var n=-1,r=t.length;for(e||(e=Jt(r));++n<r;)e[n]=t[n];return e}function ao(t,e,n,i){var o=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var c=e[a],s=i?i(n[c],t[c],c,n,t):r;s===r&&(s=t[c]),o?Ir(n,c,s):jr(n,c,s)}return n}function uo(t,e){return function(n,r){var i=xu(n)?nn:Lr,o=e?e():{};return i(n,t,Fo(r,2),o)}}function co(t){return Ni(function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,u=o>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(o--,a):r,u&&Zo(n[0],n[1],u)&&(a=o<3?r:a,o=1),e=re(e);++i<o;){var c=n[i];c&&t(e,c,i,a)}return e})}function so(t,e){return function(n,r){if(null==n)return n;if(!Eu(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=re(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function lo(t){return function(e,n,r){for(var i=-1,o=re(e),a=r(e),u=a.length;u--;){var c=a[t?u:++i];if(!1===n(o[c],c,o))break}return e}}function fo(t){return function(e){var n=In(e=Xu(e))?Bn(e):r,i=n?n[0]:e.charAt(0),o=n?Ki(n,1).join(""):e.slice(1);return i[t]()+o}}function ho(t){return function(e){return hn(Cc(bc(e).replace(Ne,"")),t,"")}}function po(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=yr(t.prototype),r=t.apply(n,e);return ju(r)?r:n}}function go(t){return function(e,n,i){var o=re(e);if(!Eu(e)){var a=Fo(n,3);e=cc(e),n=function(t){return a(o[t],t,o)}}var u=t(e,n,i);return u>-1?o[a?e[u]:u]:r}}function vo(t){return Lo(function(e){var n=e.length,i=n,o=_r.prototype.thru;for(t&&e.reverse();i--;){var u=e[i];if("function"!=typeof u)throw new ae(a);if(o&&!c&&"wrapper"==zo(u))var c=new _r([],!0)}for(i=c?i:n;++i<n;){var s=zo(u=e[i]),l="wrapper"==s?Ro(u):r;c=l&&Jo(l[0])&&l[1]==(w|m|b|E)&&!l[4].length&&1==l[9]?c[zo(l[0])].apply(c,l[3]):1==u.length&&Jo(u)?c[s]():c.thru(u)}return function(){var t=arguments,r=t[0];if(c&&1==t.length&&xu(r))return c.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function yo(t,e,n,i,o,a,u,c,s,l){var f=e&w,h=e&g,d=e&v,p=e&(m|_),y=e&k,b=d?r:po(t);return function g(){for(var v=arguments.length,m=Jt(v),_=v;_--;)m[_]=arguments[_];if(p)var x=qo(g),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(m,x);if(i&&(m=ro(m,i,o,p)),a&&(m=io(m,a,u,p)),v-=w,p&&v<l){var E=qn(m,x);return ko(t,e,yo,g.placeholder,n,m,E,c,s,l-v)}var k=h?n:this,M=d?k[t]:t;return v=m.length,c?m=function(t,e){for(var n=t.length,i=Xn(e.length,n),o=oo(t);i--;){var a=e[i];t[i]=Xo(a,n)?o[a]:r}return t}(m,c):y&&v>1&&m.reverse(),f&&s<v&&(m.length=s),this&&this!==Be&&this instanceof g&&(M=b||po(M)),M.apply(k,m)}}function mo(t,e){return function(n,r){return i=n,o=t,a=e(r),u={},Zr(i,function(t,e,n){o(u,a(t),e,n)}),u;var i,o,a,u}}function _o(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=Fi(n),i=Fi(i)):(n=qi(n),i=qi(i)),o=t(n,i)}return o}}function bo(t){return Lo(function(e){return e=ln(e,An(Fo())),Ni(function(n){var r=this;return t(e,function(t){return en(t,r,n)})})})}function xo(t,e){var n=(e=e===r?" ":Fi(e)).length;if(n<2)return n?Mi(e,t):e;var i=Mi(e,Ge(t/Pn(e)));return In(e)?Ki(Bn(i),0,t).join(""):i.slice(0,t)}function wo(t){return function(e,n,i){return i&&"number"!=typeof i&&Zo(e,n,i)&&(n=i=r),e=Wu(e),n===r?(n=e,e=0):n=Wu(n),function(t,e,n,r){for(var i=-1,o=Yn(Ge((e-t)/(n||1)),0),a=Jt(o);o--;)a[r?o:++i]=t,t+=n;return a}(e,n,i=i===r?e<n?1:-1:Wu(i),t)}}function Eo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Vu(e),n=Vu(n)),t(e,n)}}function ko(t,e,n,i,o,a,u,c,s,l){var f=e&m;e|=f?b:x,(e&=~(f?x:b))&y||(e&=~(g|v));var h=[t,e,o,f?a:r,f?u:r,f?r:a,f?r:u,c,s,l],d=n.apply(r,h);return Jo(t)&&oa(d,h),d.placeholder=i,ca(d,t,e)}function Mo(t){var e=ne[t];return function(t,n){if(t=Vu(t),n=null==n?0:Xn(Uu(n),292)){var r=(Xu(t)+"e").split("e");return+((r=(Xu(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var No=rr&&1/Fn(new rr([,-0]))[1]==j?function(t){return new rr(t)}:Fc;function Ao(t){return function(e){var n,r,i,o,a=Uo(e);return a==Y?Rn(e):a==et?(n=e,r=-1,i=Array(n.size),n.forEach(function(t){i[++r]=[t,t]}),i):(o=e,ln(t(e),function(t){return[t,o[t]]}))}}function Co(t,e,n,i,o,u,c,l){var f=e&v;if(!f&&"function"!=typeof t)throw new ae(a);var h=i?i.length:0;if(h||(e&=~(b|x),i=o=r),c=c===r?c:Yn(Uu(c),0),l=l===r?l:Uu(l),h-=o?o.length:0,e&x){var d=i,p=o;i=o=r}var k,M,N,A,C,T,S,j,D,L,O,I,R,z=f?r:Ro(t),q=[t,e,n,i,o,d,p,u,c,l];if(z&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<(g|v|w),a=r==w&&n==m||r==w&&n==E&&t[7].length<=e[8]||r==(w|E)&&e[7].length<=e[8]&&n==m;if(!o&&!a)return t;r&g&&(t[2]=e[2],i|=n&g?0:y);var u=e[3];if(u){var c=t[3];t[3]=c?ro(c,u,e[4]):u,t[4]=c?qn(t[3],s):e[4]}(u=e[5])&&(c=t[5],t[5]=c?io(c,u,e[6]):u,t[6]=c?qn(t[5],s):e[6]),(u=e[7])&&(t[7]=u),r&w&&(t[8]=null==t[8]?e[8]:Xn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(q,z),t=q[0],e=q[1],n=q[2],i=q[3],o=q[4],!(l=q[9]=q[9]===r?f?0:t.length:Yn(q[9]-h,0))&&e&(m|_)&&(e&=~(m|_)),e&&e!=g)e==m||e==_?(S=e,j=l,D=po(T=t),F=function t(){for(var e=arguments.length,n=Jt(e),i=e,o=qo(t);i--;)n[i]=arguments[i];var a=e<3&&n[0]!==o&&n[e-1]!==o?[]:qn(n,o);return(e-=a.length)<j?ko(T,S,yo,t.placeholder,r,n,a,r,r,j-e):en(this&&this!==Be&&this instanceof t?D:T,this,n)}):e!=b&&e!=(g|b)||o.length?F=yo.apply(r,q):(M=n,N=i,A=e&g,C=po(k=t),F=function t(){for(var e=-1,n=arguments.length,r=-1,i=N.length,o=Jt(i+n),a=this&&this!==Be&&this instanceof t?C:k;++r<i;)o[r]=N[r];for(;n--;)o[r++]=arguments[++e];return en(a,A?M:this,o)});else var F=(O=n,I=e&g,R=po(L=t),function t(){return(this&&this!==Be&&this instanceof t?R:L).apply(I?O:this,arguments)});return ca((z?Si:oa)(F,q),t,e)}function To(t,e,n,i){return t===r||yu(t,se[n])&&!he.call(i,n)?e:t}function So(t,e,n,i,o,a){return ju(t)&&ju(e)&&(a.set(e,t),mi(t,e,r,So,a),a.delete(e)),t}function jo(t){return Iu(t)?r:t}function Do(t,e,n,i,o,a){var u=n&d,c=t.length,s=e.length;if(c!=s&&!(u&&s>c))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var f=-1,h=!0,g=n&p?new kr:r;for(a.set(t,e),a.set(e,t);++f<c;){var v=t[f],y=e[f];if(i)var m=u?i(y,v,f,e,t,a):i(v,y,f,t,e,a);if(m!==r){if(m)continue;h=!1;break}if(g){if(!pn(e,function(t,e){if(!Tn(g,e)&&(v===t||o(v,t,n,i,a)))return g.push(e)})){h=!1;break}}else if(v!==y&&!o(v,y,n,i,a)){h=!1;break}}return a.delete(t),a.delete(e),h}function Lo(t){return ua(ra(t,r,wa),t+"")}function Oo(t){return ti(t,cc,$o)}function Io(t){return ti(t,sc,Wo)}var Ro=ar?function(t){return ar.get(t)}:Fc;function zo(t){for(var e=t.name+"",n=ur[e],r=he.call(ur,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function qo(t){return(he.call(vr,"placeholder")?vr:t).placeholder}function Fo(){var t=vr.iteratee||Ic;return t=t===Ic?fi:t,arguments.length?t(arguments[0],arguments[1]):t}function Po(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Bo(t){for(var e=cc(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,ea(i)]}return e}function Ho(t,e){var n,i=null==(n=t)?r:n[e];return li(i)?i:r}var $o=En?function(t){return null==t?[]:(t=re(t),un(En(t),function(e){return Me.call(t,e)}))}:Gc,Wo=En?function(t){for(var e=[];t;)fn(e,$o(t)),t=Ee(t);return e}:Gc,Uo=ei;function Go(t,e,n){for(var r=-1,i=(e=Xi(e,t)).length,o=!1;++r<i;){var a=pa(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Su(i)&&Xo(a,i)&&(xu(t)||bu(t))}function Vo(t){return"function"!=typeof t.constructor||ta(t)?{}:yr(Ee(t))}function Yo(t){return xu(t)||bu(t)||!!(Se&&t&&t[Se])}function Xo(t,e){return!!(e=null==e?D:e)&&("number"==typeof t||Yt.test(t))&&t>-1&&t%1==0&&t<e}function Zo(t,e,n){if(!ju(n))return!1;var r=typeof e;return!!("number"==r?Eu(n)&&Xo(e,n.length):"string"==r&&e in n)&&yu(n[e],t)}function Ko(t,e){if(xu(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Fu(t))||Tt.test(t)||!Ct.test(t)||null!=e&&t in re(e)}function Jo(t){var e=zo(t),n=vr[e];if("function"!=typeof n||!(e in br.prototype))return!1;if(t===n)return!0;var r=Ro(n);return!!r&&t===r[0]}(tr&&Uo(new tr(new ArrayBuffer(1)))!=ct||er&&Uo(new er)!=Y||nr&&Uo(nr.resolve())!=J||rr&&Uo(new rr)!=et||ir&&Uo(new ir)!=ot)&&(Uo=function(t){var e=ei(t),n=e==K?t.constructor:r,i=n?ga(n):"";if(i)switch(i){case cr:return ct;case sr:return Y;case lr:return J;case fr:return et;case hr:return ot}return e});var Qo=le?Cu:Vc;function ta(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||se)}function ea(t){return t==t&&!ju(t)}function na(t,e){return function(n){return null!=n&&n[t]===e&&(e!==r||t in re(n))}}function ra(t,e,n){return e=Yn(e===r?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Yn(r.length-e,0),a=Jt(o);++i<o;)a[i]=r[e+i];i=-1;for(var u=Jt(e+1);++i<e;)u[i]=r[i];return u[e]=n(a),en(t,this,u)}}function ia(t,e){return e.length<2?t:Qr(t,Li(e,0,-1))}var oa=sa(Si),aa=Ue||function(t,e){return Be.setTimeout(t,e)},ua=sa(ji);function ca(t,e,n){var r,i,o,a=e+"";return ua(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(zt,"{\n/* [wrapped with "+e+"] */\n")}(a,(o=a.match(qt),r=o?o[1].split(Ft):[],i=n,rn(q,function(t){var e="_."+t[0];i&t[1]&&!cn(r,e)&&r.push(e)}),r.sort())))}function sa(t){var e=0,n=0;return function(){var i=Zn(),o=C-(i-n);if(n=i,o>0){if(++e>=A)return arguments[0]}else e=0;return t.apply(r,arguments)}}function la(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var a=ki(n,o),u=t[a];t[a]=t[n],t[n]=u}return t.length=e,t}var fa,ha,da=(fa=fu(function(t){var e=[];return St.test(t)&&e.push(""),t.replace(jt,function(t,n,r,i){e.push(r?i.replace(Bt,"$1"):n||t)}),e},function(t){return ha.size===c&&ha.clear(),t}),ha=fa.cache,fa);function pa(t){if("string"==typeof t||Fu(t))return t;var e=t+"";return"0"==e&&1/t==-j?"-0":e}function ga(t){if(null!=t){try{return fe.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function va(t){if(t instanceof br)return t.clone();var e=new _r(t.__wrapped__,t.__chain__);return e.__actions__=oo(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var ya=Ni(function(t,e){return ku(t)?Br(t,Vr(e,1,ku,!0)):[]}),ma=Ni(function(t,e){var n=Aa(e);return ku(n)&&(n=r),ku(t)?Br(t,Vr(e,1,ku,!0),Fo(n,2)):[]}),_a=Ni(function(t,e){var n=Aa(e);return ku(n)&&(n=r),ku(t)?Br(t,Vr(e,1,ku,!0),r,n):[]});function ba(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Uu(n);return i<0&&(i=Yn(r+i,0)),yn(t,Fo(e,3),i)}function xa(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=Uu(n),o=n<0?Yn(i+o,0):Xn(o,i-1)),yn(t,Fo(e,3),o,!0)}function wa(t){return null!=t&&t.length?Vr(t,1):[]}function Ea(t){return t&&t.length?t[0]:r}var ka=Ni(function(t){var e=ln(t,Vi);return e.length&&e[0]===t[0]?oi(e):[]}),Ma=Ni(function(t){var e=Aa(t),n=ln(t,Vi);return e===Aa(n)?e=r:n.pop(),n.length&&n[0]===t[0]?oi(n,Fo(e,2)):[]}),Na=Ni(function(t){var e=Aa(t),n=ln(t,Vi);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?oi(n,r,e):[]});function Aa(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Ca=Ni(Ta);function Ta(t,e){return t&&t.length&&e&&e.length?wi(t,e):t}var Sa=Lo(function(t,e){var n=null==t?0:t.length,r=Rr(t,e);return Ei(t,ln(e,function(t){return Xo(t,n)?+t:t}).sort(no)),r});function ja(t){return null==t?t:Qn.call(t)}var Da=Ni(function(t){return Pi(Vr(t,1,ku,!0))}),La=Ni(function(t){var e=Aa(t);return ku(e)&&(e=r),Pi(Vr(t,1,ku,!0),Fo(e,2))}),Oa=Ni(function(t){var e=Aa(t);return e="function"==typeof e?e:r,Pi(Vr(t,1,ku,!0),r,e)});function Ia(t){if(!t||!t.length)return[];var e=0;return t=un(t,function(t){if(ku(t))return e=Yn(t.length,e),!0}),Nn(e,function(e){return ln(t,wn(e))})}function Ra(t,e){if(!t||!t.length)return[];var n=Ia(t);return null==e?n:ln(n,function(t){return en(e,r,t)})}var za=Ni(function(t,e){return ku(t)?Br(t,e):[]}),qa=Ni(function(t){return Ui(un(t,ku))}),Fa=Ni(function(t){var e=Aa(t);return ku(e)&&(e=r),Ui(un(t,ku),Fo(e,2))}),Pa=Ni(function(t){var e=Aa(t);return e="function"==typeof e?e:r,Ui(un(t,ku),r,e)}),Ba=Ni(Ia);var Ha=Ni(function(t){var e=t.length,n=e>1?t[e-1]:r;return Ra(t,n="function"==typeof n?(t.pop(),n):r)});function $a(t){var e=vr(t);return e.__chain__=!0,e}function Wa(t,e){return e(t)}var Ua=Lo(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return Rr(e,t)};return!(e>1||this.__actions__.length)&&i instanceof br&&Xo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:Wa,args:[o],thisArg:r}),new _r(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(r),t})):this.thru(o)});var Ga=uo(function(t,e,n){he.call(t,n)?++t[n]:Ir(t,n,1)});var Va=go(ba),Ya=go(xa);function Xa(t,e){return(xu(t)?rn:Hr)(t,Fo(e,3))}function Za(t,e){return(xu(t)?on:$r)(t,Fo(e,3))}var Ka=uo(function(t,e,n){he.call(t,n)?t[n].push(e):Ir(t,n,[e])});var Ja=Ni(function(t,e,n){var r=-1,i="function"==typeof e,o=Eu(t)?Jt(t.length):[];return Hr(t,function(t){o[++r]=i?en(e,t,n):ai(t,e,n)}),o}),Qa=uo(function(t,e,n){Ir(t,n,e)});function tu(t,e){return(xu(t)?ln:gi)(t,Fo(e,3))}var eu=uo(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var nu=Ni(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Zo(t,e[0],e[1])?e=[]:n>2&&Zo(e[0],e[1],e[2])&&(e=[e[0]]),bi(t,Vr(e,1),[])}),ru=$e||function(){return Be.Date.now()};function iu(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Co(t,w,r,r,r,r,e)}function ou(t,e){var n;if("function"!=typeof e)throw new ae(a);return t=Uu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var au=Ni(function(t,e,n){var r=g;if(n.length){var i=qn(n,qo(au));r|=b}return Co(t,r,e,n,i)}),uu=Ni(function(t,e,n){var r=g|v;if(n.length){var i=qn(n,qo(uu));r|=b}return Co(e,r,t,n,i)});function cu(t,e,n){var i,o,u,c,s,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new ae(a);function g(e){var n=i,a=o;return i=o=r,f=e,c=t.apply(a,n)}function v(t){var n=t-l;return l===r||n>=e||n<0||d&&t-f>=u}function y(){var t,n,r=ru();if(v(r))return m(r);s=aa(y,(n=e-((t=r)-l),d?Xn(n,u-(t-f)):n))}function m(t){return s=r,p&&i?g(t):(i=o=r,c)}function _(){var t,n=ru(),a=v(n);if(i=arguments,o=this,l=n,a){if(s===r)return f=t=l,s=aa(y,e),h?g(t):c;if(d)return s=aa(y,e),g(l)}return s===r&&(s=aa(y,e)),c}return e=Vu(e)||0,ju(n)&&(h=!!n.leading,u=(d="maxWait"in n)?Yn(Vu(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),_.cancel=function(){s!==r&&Ji(s),f=0,i=l=o=s=r},_.flush=function(){return s===r?c:m(ru())},_}var su=Ni(function(t,e){return Pr(t,1,e)}),lu=Ni(function(t,e,n){return Pr(t,Vu(e)||0,n)});function fu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ae(a);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(fu.Cache||Er),n}function hu(t){if("function"!=typeof t)throw new ae(a);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}fu.Cache=Er;var du=Zi(function(t,e){var n=(e=1==e.length&&xu(e[0])?ln(e[0],An(Fo())):ln(Vr(e,1),An(Fo()))).length;return Ni(function(r){for(var i=-1,o=Xn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return en(t,this,r)})}),pu=Ni(function(t,e){var n=qn(e,qo(pu));return Co(t,b,r,e,n)}),gu=Ni(function(t,e){var n=qn(e,qo(gu));return Co(t,x,r,e,n)}),vu=Lo(function(t,e){return Co(t,E,r,r,r,e)});function yu(t,e){return t===e||t!=t&&e!=e}var mu=Eo(ni),_u=Eo(function(t,e){return t>=e}),bu=ui(function(){return arguments}())?ui:function(t){return Du(t)&&he.call(t,"callee")&&!Me.call(t,"callee")},xu=Jt.isArray,wu=Ve?An(Ve):function(t){return Du(t)&&ei(t)==ut};function Eu(t){return null!=t&&Su(t.length)&&!Cu(t)}function ku(t){return Du(t)&&Eu(t)}var Mu=Wn||Vc,Nu=Ye?An(Ye):function(t){return Du(t)&&ei(t)==$};function Au(t){if(!Du(t))return!1;var e=ei(t);return e==U||e==W||"string"==typeof t.message&&"string"==typeof t.name&&!Iu(t)}function Cu(t){if(!ju(t))return!1;var e=ei(t);return e==G||e==V||e==B||e==Q}function Tu(t){return"number"==typeof t&&t==Uu(t)}function Su(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=D}function ju(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Du(t){return null!=t&&"object"==typeof t}var Lu=Xe?An(Xe):function(t){return Du(t)&&Uo(t)==Y};function Ou(t){return"number"==typeof t||Du(t)&&ei(t)==X}function Iu(t){if(!Du(t)||ei(t)!=K)return!1;var e=Ee(t);if(null===e)return!0;var n=he.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&fe.call(n)==ve}var Ru=Ze?An(Ze):function(t){return Du(t)&&ei(t)==tt};var zu=Ke?An(Ke):function(t){return Du(t)&&Uo(t)==et};function qu(t){return"string"==typeof t||!xu(t)&&Du(t)&&ei(t)==nt}function Fu(t){return"symbol"==typeof t||Du(t)&&ei(t)==rt}var Pu=Je?An(Je):function(t){return Du(t)&&Su(t.length)&&!!Oe[ei(t)]};var Bu=Eo(pi),Hu=Eo(function(t,e){return t<=e});function $u(t){if(!t)return[];if(Eu(t))return qu(t)?Bn(t):oo(t);if(Re&&t[Re])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Re]());var e=Uo(t);return(e==Y?Rn:e==et?Fn:yc)(t)}function Wu(t){return t?(t=Vu(t))===j||t===-j?(t<0?-1:1)*L:t==t?t:0:0===t?t:0}function Uu(t){var e=Wu(t),n=e%1;return e==e?n?e-n:e:0}function Gu(t){return t?zr(Uu(t),0,I):0}function Vu(t){if("number"==typeof t)return t;if(Fu(t))return O;if(ju(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ju(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ot,"");var n=Ut.test(t);return n||Vt.test(t)?qe(t.slice(2),n?2:8):Wt.test(t)?O:+t}function Yu(t){return ao(t,sc(t))}function Xu(t){return null==t?"":Fi(t)}var Zu=co(function(t,e){if(ta(e)||Eu(e))ao(e,cc(e),t);else for(var n in e)he.call(e,n)&&jr(t,n,e[n])}),Ku=co(function(t,e){ao(e,sc(e),t)}),Ju=co(function(t,e,n,r){ao(e,sc(e),t,r)}),Qu=co(function(t,e,n,r){ao(e,cc(e),t,r)}),tc=Lo(Rr);var ec=Ni(function(t){return t.push(r,To),en(Ju,r,t)}),nc=Ni(function(t){return t.push(r,So),en(fc,r,t)});function rc(t,e,n){var i=null==t?r:Qr(t,e);return i===r?n:i}function ic(t,e){return null!=t&&Go(t,e,ii)}var oc=mo(function(t,e,n){t[e]=n},jc(Oc)),ac=mo(function(t,e,n){he.call(t,e)?t[e].push(n):t[e]=[n]},Fo),uc=Ni(ai);function cc(t){return Eu(t)?Nr(t):hi(t)}function sc(t){return Eu(t)?Nr(t,!0):di(t)}var lc=co(function(t,e,n){mi(t,e,n)}),fc=co(function(t,e,n,r){mi(t,e,n,r)}),hc=Lo(function(t,e){var n={};if(null==t)return n;var r=!1;e=ln(e,function(e){return e=Xi(e,t),r||(r=e.length>1),e}),ao(t,Io(t),n),r&&(n=qr(n,l|f|h,jo));for(var i=e.length;i--;)Bi(n,e[i]);return n});var dc=Lo(function(t,e){return null==t?{}:xi(n=t,e,function(t,e){return ic(n,e)});var n});function pc(t,e){if(null==t)return{};var n=ln(Io(t),function(t){return[t]});return e=Fo(e),xi(t,n,function(t,n){return e(t,n[0])})}var gc=Ao(cc),vc=Ao(sc);function yc(t){return null==t?[]:Cn(t,cc(t))}var mc=ho(function(t,e,n){return e=e.toLowerCase(),t+(n?_c(e):e)});function _c(t){return Ac(Xu(t).toLowerCase())}function bc(t){return(t=Xu(t))&&t.replace(Xt,Dn).replace(Ae,"")}var xc=ho(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),wc=ho(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ec=fo("toLowerCase");var kc=ho(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var Mc=ho(function(t,e,n){return t+(n?" ":"")+Ac(e)});var Nc=ho(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Ac=fo("toUpperCase");function Cc(t,e,n){return t=Xu(t),(e=n?r:e)===r?(i=t,je.test(i)?t.match(Te)||[]:t.match(Pt)||[]):t.match(e)||[];var i}var Tc=Ni(function(t,e){try{return en(t,r,e)}catch(t){return Au(t)?t:new te(t)}}),Sc=Lo(function(t,e){return rn(e,function(e){e=pa(e),Ir(t,e,au(t[e],t))}),t});function jc(t){return function(){return t}}var Dc=vo(),Lc=vo(!0);function Oc(t){return t}function Ic(t){return fi("function"==typeof t?t:qr(t,l))}var Rc=Ni(function(t,e){return function(n){return ai(n,t,e)}}),zc=Ni(function(t,e){return function(n){return ai(t,n,e)}});function qc(t,e,n){var r=cc(e),i=Jr(e,r);null!=n||ju(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Jr(e,cc(e)));var o=!(ju(n)&&"chain"in n&&!n.chain),a=Cu(t);return rn(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=oo(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,fn([this.value()],arguments))})}),t}function Fc(){}var Pc=bo(ln),Bc=bo(an),Hc=bo(pn);function $c(t){return Ko(t)?wn(pa(t)):(e=t,function(t){return Qr(t,e)});var e}var Wc=wo(),Uc=wo(!0);function Gc(){return[]}function Vc(){return!1}var Yc=_o(function(t,e){return t+e},0),Xc=Mo("ceil"),Zc=_o(function(t,e){return t/e},1),Kc=Mo("floor");var Jc,Qc=_o(function(t,e){return t*e},1),ts=Mo("round"),es=_o(function(t,e){return t-e},0);return vr.after=function(t,e){if("function"!=typeof e)throw new ae(a);return t=Uu(t),function(){if(--t<1)return e.apply(this,arguments)}},vr.ary=iu,vr.assign=Zu,vr.assignIn=Ku,vr.assignInWith=Ju,vr.assignWith=Qu,vr.at=tc,vr.before=ou,vr.bind=au,vr.bindAll=Sc,vr.bindKey=uu,vr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return xu(t)?t:[t]},vr.chain=$a,vr.chunk=function(t,e,n){e=(n?Zo(t,e,n):e===r)?1:Yn(Uu(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,u=Jt(Ge(i/e));o<i;)u[a++]=Li(t,o,o+=e);return u},vr.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},vr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=Jt(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return fn(xu(n)?oo(n):[n],Vr(e,1))},vr.cond=function(t){var e=null==t?0:t.length,n=Fo();return t=e?ln(t,function(t){if("function"!=typeof t[1])throw new ae(a);return[n(t[0]),t[1]]}):[],Ni(function(n){for(var r=-1;++r<e;){var i=t[r];if(en(i[0],this,n))return en(i[1],this,n)}})},vr.conforms=function(t){return e=qr(t,l),n=cc(e),function(t){return Fr(t,e,n)};var e,n},vr.constant=jc,vr.countBy=Ga,vr.create=function(t,e){var n=yr(t);return null==e?n:Or(n,e)},vr.curry=function t(e,n,i){var o=Co(e,m,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},vr.curryRight=function t(e,n,i){var o=Co(e,_,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},vr.debounce=cu,vr.defaults=ec,vr.defaultsDeep=nc,vr.defer=su,vr.delay=lu,vr.difference=ya,vr.differenceBy=ma,vr.differenceWith=_a,vr.drop=function(t,e,n){var i=null==t?0:t.length;return i?Li(t,(e=n||e===r?1:Uu(e))<0?0:e,i):[]},vr.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?Li(t,0,(e=i-(e=n||e===r?1:Uu(e)))<0?0:e):[]},vr.dropRightWhile=function(t,e){return t&&t.length?$i(t,Fo(e,3),!0,!0):[]},vr.dropWhile=function(t,e){return t&&t.length?$i(t,Fo(e,3),!0):[]},vr.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Zo(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=Uu(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:Uu(i))<0&&(i+=o),i=n>i?0:Gu(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},vr.filter=function(t,e){return(xu(t)?un:Gr)(t,Fo(e,3))},vr.flatMap=function(t,e){return Vr(tu(t,e),1)},vr.flatMapDeep=function(t,e){return Vr(tu(t,e),j)},vr.flatMapDepth=function(t,e,n){return n=n===r?1:Uu(n),Vr(tu(t,e),n)},vr.flatten=wa,vr.flattenDeep=function(t){return null!=t&&t.length?Vr(t,j):[]},vr.flattenDepth=function(t,e){return null!=t&&t.length?Vr(t,e=e===r?1:Uu(e)):[]},vr.flip=function(t){return Co(t,k)},vr.flow=Dc,vr.flowRight=Lc,vr.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},vr.functions=function(t){return null==t?[]:Jr(t,cc(t))},vr.functionsIn=function(t){return null==t?[]:Jr(t,sc(t))},vr.groupBy=Ka,vr.initial=function(t){return null!=t&&t.length?Li(t,0,-1):[]},vr.intersection=ka,vr.intersectionBy=Ma,vr.intersectionWith=Na,vr.invert=oc,vr.invertBy=ac,vr.invokeMap=Ja,vr.iteratee=Ic,vr.keyBy=Qa,vr.keys=cc,vr.keysIn=sc,vr.map=tu,vr.mapKeys=function(t,e){var n={};return e=Fo(e,3),Zr(t,function(t,r,i){Ir(n,e(t,r,i),t)}),n},vr.mapValues=function(t,e){var n={};return e=Fo(e,3),Zr(t,function(t,r,i){Ir(n,r,e(t,r,i))}),n},vr.matches=function(t){return vi(qr(t,l))},vr.matchesProperty=function(t,e){return yi(t,qr(e,l))},vr.memoize=fu,vr.merge=lc,vr.mergeWith=fc,vr.method=Rc,vr.methodOf=zc,vr.mixin=qc,vr.negate=hu,vr.nthArg=function(t){return t=Uu(t),Ni(function(e){return _i(e,t)})},vr.omit=hc,vr.omitBy=function(t,e){return pc(t,hu(Fo(e)))},vr.once=function(t){return ou(2,t)},vr.orderBy=function(t,e,n,i){return null==t?[]:(xu(e)||(e=null==e?[]:[e]),xu(n=i?r:n)||(n=null==n?[]:[n]),bi(t,e,n))},vr.over=Pc,vr.overArgs=du,vr.overEvery=Bc,vr.overSome=Hc,vr.partial=pu,vr.partialRight=gu,vr.partition=eu,vr.pick=dc,vr.pickBy=pc,vr.property=$c,vr.propertyOf=function(t){return function(e){return null==t?r:Qr(t,e)}},vr.pull=Ca,vr.pullAll=Ta,vr.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?wi(t,e,Fo(n,2)):t},vr.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?wi(t,e,r,n):t},vr.pullAt=Sa,vr.range=Wc,vr.rangeRight=Uc,vr.rearg=vu,vr.reject=function(t,e){return(xu(t)?un:Gr)(t,hu(Fo(e,3)))},vr.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Fo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Ei(t,i),n},vr.rest=function(t,e){if("function"!=typeof t)throw new ae(a);return Ni(t,e=e===r?e:Uu(e))},vr.reverse=ja,vr.sampleSize=function(t,e,n){return e=(n?Zo(t,e,n):e===r)?1:Uu(e),(xu(t)?Cr:Ci)(t,e)},vr.set=function(t,e,n){return null==t?t:Ti(t,e,n)},vr.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:Ti(t,e,n,i)},vr.shuffle=function(t){return(xu(t)?Tr:Di)(t)},vr.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Zo(t,e,n)?(e=0,n=i):(e=null==e?0:Uu(e),n=n===r?i:Uu(n)),Li(t,e,n)):[]},vr.sortBy=nu,vr.sortedUniq=function(t){return t&&t.length?zi(t):[]},vr.sortedUniqBy=function(t,e){return t&&t.length?zi(t,Fo(e,2)):[]},vr.split=function(t,e,n){return n&&"number"!=typeof n&&Zo(t,e,n)&&(e=n=r),(n=n===r?I:n>>>0)?(t=Xu(t))&&("string"==typeof e||null!=e&&!Ru(e))&&!(e=Fi(e))&&In(t)?Ki(Bn(t),0,n):t.split(e,n):[]},vr.spread=function(t,e){if("function"!=typeof t)throw new ae(a);return e=null==e?0:Yn(Uu(e),0),Ni(function(n){var r=n[e],i=Ki(n,0,e);return r&&fn(i,r),en(t,this,i)})},vr.tail=function(t){var e=null==t?0:t.length;return e?Li(t,1,e):[]},vr.take=function(t,e,n){return t&&t.length?Li(t,0,(e=n||e===r?1:Uu(e))<0?0:e):[]},vr.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Li(t,(e=i-(e=n||e===r?1:Uu(e)))<0?0:e,i):[]},vr.takeRightWhile=function(t,e){return t&&t.length?$i(t,Fo(e,3),!1,!0):[]},vr.takeWhile=function(t,e){return t&&t.length?$i(t,Fo(e,3)):[]},vr.tap=function(t,e){return e(t),t},vr.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new ae(a);return ju(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),cu(t,e,{leading:r,maxWait:e,trailing:i})},vr.thru=Wa,vr.toArray=$u,vr.toPairs=gc,vr.toPairsIn=vc,vr.toPath=function(t){return xu(t)?ln(t,pa):Fu(t)?[t]:oo(da(Xu(t)))},vr.toPlainObject=Yu,vr.transform=function(t,e,n){var r=xu(t),i=r||Mu(t)||Pu(t);if(e=Fo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:ju(t)&&Cu(o)?yr(Ee(t)):{}}return(i?rn:Zr)(t,function(t,r,i){return e(n,t,r,i)}),n},vr.unary=function(t){return iu(t,1)},vr.union=Da,vr.unionBy=La,vr.unionWith=Oa,vr.uniq=function(t){return t&&t.length?Pi(t):[]},vr.uniqBy=function(t,e){return t&&t.length?Pi(t,Fo(e,2)):[]},vr.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?Pi(t,r,e):[]},vr.unset=function(t,e){return null==t||Bi(t,e)},vr.unzip=Ia,vr.unzipWith=Ra,vr.update=function(t,e,n){return null==t?t:Hi(t,e,Yi(n))},vr.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:Hi(t,e,Yi(n),i)},vr.values=yc,vr.valuesIn=function(t){return null==t?[]:Cn(t,sc(t))},vr.without=za,vr.words=Cc,vr.wrap=function(t,e){return pu(Yi(e),t)},vr.xor=qa,vr.xorBy=Fa,vr.xorWith=Pa,vr.zip=Ba,vr.zipObject=function(t,e){return Gi(t||[],e||[],jr)},vr.zipObjectDeep=function(t,e){return Gi(t||[],e||[],Ti)},vr.zipWith=Ha,vr.entries=gc,vr.entriesIn=vc,vr.extend=Ku,vr.extendWith=Ju,qc(vr,vr),vr.add=Yc,vr.attempt=Tc,vr.camelCase=mc,vr.capitalize=_c,vr.ceil=Xc,vr.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=Vu(n))==n?n:0),e!==r&&(e=(e=Vu(e))==e?e:0),zr(Vu(t),e,n)},vr.clone=function(t){return qr(t,h)},vr.cloneDeep=function(t){return qr(t,l|h)},vr.cloneDeepWith=function(t,e){return qr(t,l|h,e="function"==typeof e?e:r)},vr.cloneWith=function(t,e){return qr(t,h,e="function"==typeof e?e:r)},vr.conformsTo=function(t,e){return null==e||Fr(t,e,cc(e))},vr.deburr=bc,vr.defaultTo=function(t,e){return null==t||t!=t?e:t},vr.divide=Zc,vr.endsWith=function(t,e,n){t=Xu(t),e=Fi(e);var i=t.length,o=n=n===r?i:zr(Uu(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},vr.eq=yu,vr.escape=function(t){return(t=Xu(t))&&kt.test(t)?t.replace(wt,Ln):t},vr.escapeRegExp=function(t){return(t=Xu(t))&&Lt.test(t)?t.replace(Dt,"\\$&"):t},vr.every=function(t,e,n){var i=xu(t)?an:Wr;return n&&Zo(t,e,n)&&(e=r),i(t,Fo(e,3))},vr.find=Va,vr.findIndex=ba,vr.findKey=function(t,e){return vn(t,Fo(e,3),Zr)},vr.findLast=Ya,vr.findLastIndex=xa,vr.findLastKey=function(t,e){return vn(t,Fo(e,3),Kr)},vr.floor=Kc,vr.forEach=Xa,vr.forEachRight=Za,vr.forIn=function(t,e){return null==t?t:Yr(t,Fo(e,3),sc)},vr.forInRight=function(t,e){return null==t?t:Xr(t,Fo(e,3),sc)},vr.forOwn=function(t,e){return t&&Zr(t,Fo(e,3))},vr.forOwnRight=function(t,e){return t&&Kr(t,Fo(e,3))},vr.get=rc,vr.gt=mu,vr.gte=_u,vr.has=function(t,e){return null!=t&&Go(t,e,ri)},vr.hasIn=ic,vr.head=Ea,vr.identity=Oc,vr.includes=function(t,e,n,r){t=Eu(t)?t:yc(t),n=n&&!r?Uu(n):0;var i=t.length;return n<0&&(n=Yn(i+n,0)),qu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&mn(t,e,n)>-1},vr.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Uu(n);return i<0&&(i=Yn(r+i,0)),mn(t,e,i)},vr.inRange=function(t,e,n){return e=Wu(e),n===r?(n=e,e=0):n=Wu(n),t=Vu(t),(i=t)>=Xn(o=e,a=n)&&i<Yn(o,a);var i,o,a},vr.invoke=uc,vr.isArguments=bu,vr.isArray=xu,vr.isArrayBuffer=wu,vr.isArrayLike=Eu,vr.isArrayLikeObject=ku,vr.isBoolean=function(t){return!0===t||!1===t||Du(t)&&ei(t)==H},vr.isBuffer=Mu,vr.isDate=Nu,vr.isElement=function(t){return Du(t)&&1===t.nodeType&&!Iu(t)},vr.isEmpty=function(t){if(null==t)return!0;if(Eu(t)&&(xu(t)||"string"==typeof t||"function"==typeof t.splice||Mu(t)||Pu(t)||bu(t)))return!t.length;var e=Uo(t);if(e==Y||e==et)return!t.size;if(ta(t))return!hi(t).length;for(var n in t)if(he.call(t,n))return!1;return!0},vr.isEqual=function(t,e){return ci(t,e)},vr.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?ci(t,e,r,n):!!i},vr.isError=Au,vr.isFinite=function(t){return"number"==typeof t&&Un(t)},vr.isFunction=Cu,vr.isInteger=Tu,vr.isLength=Su,vr.isMap=Lu,vr.isMatch=function(t,e){return t===e||si(t,e,Bo(e))},vr.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,si(t,e,Bo(e),n)},vr.isNaN=function(t){return Ou(t)&&t!=+t},vr.isNative=function(t){if(Qo(t))throw new te(o);return li(t)},vr.isNil=function(t){return null==t},vr.isNull=function(t){return null===t},vr.isNumber=Ou,vr.isObject=ju,vr.isObjectLike=Du,vr.isPlainObject=Iu,vr.isRegExp=Ru,vr.isSafeInteger=function(t){return Tu(t)&&t>=-D&&t<=D},vr.isSet=zu,vr.isString=qu,vr.isSymbol=Fu,vr.isTypedArray=Pu,vr.isUndefined=function(t){return t===r},vr.isWeakMap=function(t){return Du(t)&&Uo(t)==ot},vr.isWeakSet=function(t){return Du(t)&&ei(t)==at},vr.join=function(t,e){return null==t?"":Gn.call(t,e)},vr.kebabCase=xc,vr.last=Aa,vr.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=Uu(n))<0?Yn(i+o,0):Xn(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):yn(t,bn,o,!0)},vr.lowerCase=wc,vr.lowerFirst=Ec,vr.lt=Bu,vr.lte=Hu,vr.max=function(t){return t&&t.length?Ur(t,Oc,ni):r},vr.maxBy=function(t,e){return t&&t.length?Ur(t,Fo(e,2),ni):r},vr.mean=function(t){return xn(t,Oc)},vr.meanBy=function(t,e){return xn(t,Fo(e,2))},vr.min=function(t){return t&&t.length?Ur(t,Oc,pi):r},vr.minBy=function(t,e){return t&&t.length?Ur(t,Fo(e,2),pi):r},vr.stubArray=Gc,vr.stubFalse=Vc,vr.stubObject=function(){return{}},vr.stubString=function(){return""},vr.stubTrue=function(){return!0},vr.multiply=Qc,vr.nth=function(t,e){return t&&t.length?_i(t,Uu(e)):r},vr.noConflict=function(){return Be._===this&&(Be._=ye),this},vr.noop=Fc,vr.now=ru,vr.pad=function(t,e,n){t=Xu(t);var r=(e=Uu(e))?Pn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return xo(gn(i),n)+t+xo(Ge(i),n)},vr.padEnd=function(t,e,n){t=Xu(t);var r=(e=Uu(e))?Pn(t):0;return e&&r<e?t+xo(e-r,n):t},vr.padStart=function(t,e,n){t=Xu(t);var r=(e=Uu(e))?Pn(t):0;return e&&r<e?xo(e-r,n)+t:t},vr.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Kn(Xu(t).replace(It,""),e||0)},vr.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Zo(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=Wu(t),e===r?(e=t,t=0):e=Wu(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=Jn();return Xn(t+o*(e-t+ze("1e-"+((o+"").length-1))),e)}return ki(t,e)},vr.reduce=function(t,e,n){var r=xu(t)?hn:kn,i=arguments.length<3;return r(t,Fo(e,4),n,i,Hr)},vr.reduceRight=function(t,e,n){var r=xu(t)?dn:kn,i=arguments.length<3;return r(t,Fo(e,4),n,i,$r)},vr.repeat=function(t,e,n){return e=(n?Zo(t,e,n):e===r)?1:Uu(e),Mi(Xu(t),e)},vr.replace=function(){var t=arguments,e=Xu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},vr.result=function(t,e,n){var i=-1,o=(e=Xi(e,t)).length;for(o||(o=1,t=r);++i<o;){var a=null==t?r:t[pa(e[i])];a===r&&(i=o,a=n),t=Cu(a)?a.call(t):a}return t},vr.round=ts,vr.runInContext=t,vr.sample=function(t){return(xu(t)?Ar:Ai)(t)},vr.size=function(t){if(null==t)return 0;if(Eu(t))return qu(t)?Pn(t):t.length;var e=Uo(t);return e==Y||e==et?t.size:hi(t).length},vr.snakeCase=kc,vr.some=function(t,e,n){var i=xu(t)?pn:Oi;return n&&Zo(t,e,n)&&(e=r),i(t,Fo(e,3))},vr.sortedIndex=function(t,e){return Ii(t,e)},vr.sortedIndexBy=function(t,e,n){return Ri(t,e,Fo(n,2))},vr.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Ii(t,e);if(r<n&&yu(t[r],e))return r}return-1},vr.sortedLastIndex=function(t,e){return Ii(t,e,!0)},vr.sortedLastIndexBy=function(t,e,n){return Ri(t,e,Fo(n,2),!0)},vr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Ii(t,e,!0)-1;if(yu(t[n],e))return n}return-1},vr.startCase=Mc,vr.startsWith=function(t,e,n){return t=Xu(t),n=null==n?0:zr(Uu(n),0,t.length),e=Fi(e),t.slice(n,n+e.length)==e},vr.subtract=es,vr.sum=function(t){return t&&t.length?Mn(t,Oc):0},vr.sumBy=function(t,e){return t&&t.length?Mn(t,Fo(e,2)):0},vr.template=function(t,e,n){var i=vr.templateSettings;n&&Zo(t,e,n)&&(e=r),t=Xu(t),e=Ju({},e,i,To);var o,a,u=Ju({},e.imports,i.imports,To),c=cc(u),s=Cn(u,c),l=0,f=e.interpolate||Zt,h="__p += '",d=ie((e.escape||Zt).source+"|"+f.source+"|"+(f===At?Ht:Zt).source+"|"+(e.evaluate||Zt).source+"|$","g"),p="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Le+"]")+"\n";t.replace(d,function(e,n,r,i,u,c){return r||(r=i),h+=t.slice(l,c).replace(Kt,On),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),u&&(a=!0,h+="';\n"+u+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+e.length,e}),h+="';\n";var g=e.variable;g||(h="with (obj) {\n"+h+"\n}\n"),h=(a?h.replace(mt,""):h).replace(_t,"$1").replace(bt,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Tc(function(){return ee(c,p+"return "+h).apply(r,s)});if(v.source=h,Au(v))throw v;return v},vr.times=function(t,e){if((t=Uu(t))<1||t>D)return[];var n=I,r=Xn(t,I);e=Fo(e),t-=I;for(var i=Nn(r,e);++n<t;)e(n);return i},vr.toFinite=Wu,vr.toInteger=Uu,vr.toLength=Gu,vr.toLower=function(t){return Xu(t).toLowerCase()},vr.toNumber=Vu,vr.toSafeInteger=function(t){return t?zr(Uu(t),-D,D):0===t?t:0},vr.toString=Xu,vr.toUpper=function(t){return Xu(t).toUpperCase()},vr.trim=function(t,e,n){if((t=Xu(t))&&(n||e===r))return t.replace(Ot,"");if(!t||!(e=Fi(e)))return t;var i=Bn(t),o=Bn(e);return Ki(i,Sn(i,o),jn(i,o)+1).join("")},vr.trimEnd=function(t,e,n){if((t=Xu(t))&&(n||e===r))return t.replace(Rt,"");if(!t||!(e=Fi(e)))return t;var i=Bn(t);return Ki(i,0,jn(i,Bn(e))+1).join("")},vr.trimStart=function(t,e,n){if((t=Xu(t))&&(n||e===r))return t.replace(It,"");if(!t||!(e=Fi(e)))return t;var i=Bn(t);return Ki(i,Sn(i,Bn(e))).join("")},vr.truncate=function(t,e){var n=M,i=N;if(ju(e)){var o="separator"in e?e.separator:o;n="length"in e?Uu(e.length):n,i="omission"in e?Fi(e.omission):i}var a=(t=Xu(t)).length;if(In(t)){var u=Bn(t);a=u.length}if(n>=a)return t;var c=n-Pn(i);if(c<1)return i;var s=u?Ki(u,0,c).join(""):t.slice(0,c);if(o===r)return s+i;if(u&&(c+=s.length-c),Ru(o)){if(t.slice(c).search(o)){var l,f=s;for(o.global||(o=ie(o.source,Xu($t.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var h=l.index;s=s.slice(0,h===r?c:h)}}else if(t.indexOf(Fi(o),c)!=c){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+i},vr.unescape=function(t){return(t=Xu(t))&&Et.test(t)?t.replace(xt,Hn):t},vr.uniqueId=function(t){var e=++de;return Xu(t)+e},vr.upperCase=Nc,vr.upperFirst=Ac,vr.each=Xa,vr.eachRight=Za,vr.first=Ea,qc(vr,(Jc={},Zr(vr,function(t,e){he.call(vr.prototype,e)||(Jc[e]=t)}),Jc),{chain:!1}),vr.VERSION="4.17.4",rn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){vr[t].placeholder=vr}),rn(["drop","take"],function(t,e){br.prototype[t]=function(n){n=n===r?1:Yn(Uu(n),0);var i=this.__filtered__&&!e?new br(this):this.clone();return i.__filtered__?i.__takeCount__=Xn(n,i.__takeCount__):i.__views__.push({size:Xn(n,I),type:t+(i.__dir__<0?"Right":"")}),i},br.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),rn(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==T||3==n;br.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Fo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),rn(["head","last"],function(t,e){var n="take"+(e?"Right":"");br.prototype[t]=function(){return this[n](1).value()[0]}}),rn(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");br.prototype[t]=function(){return this.__filtered__?new br(this):this[n](1)}}),br.prototype.compact=function(){return this.filter(Oc)},br.prototype.find=function(t){return this.filter(t).head()},br.prototype.findLast=function(t){return this.reverse().find(t)},br.prototype.invokeMap=Ni(function(t,e){return"function"==typeof t?new br(this):this.map(function(n){return ai(n,t,e)})}),br.prototype.reject=function(t){return this.filter(hu(Fo(t)))},br.prototype.slice=function(t,e){t=Uu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new br(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=Uu(e))<0?n.dropRight(-e):n.take(e-t)),n)},br.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},br.prototype.toArray=function(){return this.take(I)},Zr(br.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=vr[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(vr.prototype[e]=function(){var e=this.__wrapped__,u=i?[1]:arguments,c=e instanceof br,s=u[0],l=c||xu(e),f=function(t){var e=o.apply(vr,fn([t],u));return i&&h?e[0]:e};l&&n&&"function"==typeof s&&1!=s.length&&(c=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,g=c&&!d;if(!a&&l){e=g?e:new br(this);var v=t.apply(e,u);return v.__actions__.push({func:Wa,args:[f],thisArg:r}),new _r(v,h)}return p&&g?t.apply(this,u):(v=this.thru(f),p?i?v.value()[0]:v.value():v)})}),rn(["pop","push","shift","sort","splice","unshift"],function(t){var e=ue[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);vr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(xu(i)?i:[],t)}return this[n](function(n){return e.apply(xu(n)?n:[],t)})}}),Zr(br.prototype,function(t,e){var n=vr[e];if(n){var r=n.name+"";(ur[r]||(ur[r]=[])).push({name:e,func:n})}}),ur[yo(r,v).name]=[{name:"wrapper",func:r}],br.prototype.clone=function(){var t=new br(this.__wrapped__);return t.__actions__=oo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=oo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=oo(this.__views__),t},br.prototype.reverse=function(){if(this.__filtered__){var t=new br(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},br.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=xu(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Xn(e,t+a);break;case"takeRight":t=Yn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,u=o.end,c=u-a,s=r?u:a-1,l=this.__iteratees__,f=l.length,h=0,d=Xn(c,this.__takeCount__);if(!n||!r&&i==c&&d==c)return Wi(t,this.__actions__);var p=[];t:for(;c--&&h<d;){for(var g=-1,v=t[s+=e];++g<f;){var y=l[g],m=y.iteratee,_=y.type,b=m(v);if(_==S)v=b;else if(!b){if(_==T)continue t;break t}}p[h++]=v}return p},vr.prototype.at=Ua,vr.prototype.chain=function(){return $a(this)},vr.prototype.commit=function(){return new _r(this.value(),this.__chain__)},vr.prototype.next=function(){this.__values__===r&&(this.__values__=$u(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},vr.prototype.plant=function(t){for(var e,n=this;n instanceof mr;){var i=va(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},vr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof br){var e=t;return this.__actions__.length&&(e=new br(this)),(e=e.reverse()).__actions__.push({func:Wa,args:[ja],thisArg:r}),new _r(e,this.__chain__)}return this.thru(ja)},vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=function(){return Wi(this.__wrapped__,this.__actions__)},vr.prototype.first=vr.prototype.head,Re&&(vr.prototype[Re]=function(){return this}),vr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Be._=$n,define(function(){return $n})):$e?(($e.exports=$n)._=$n,He._=$n):Be._=$n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],32:[function(t,e,n){(function(t){(function(){var r,i=[],o=[],a=0,u=+new Date+"",c=75,s=40,l=" \t\v\f \ufeff\n\r\u2028\u2029 ᠎             　",f=/\b__p \+= '';/g,h=/\b(__p \+=) '' \+/g,d=/(__e\(.*?\)|\b__t\)) \+\n'';/g,p=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,g=/\w*$/,v=/^\s*function[ \n\r\t]+\w/,y=/<%=([\s\S]+?)%>/g,m=RegExp("^["+l+"]*0+(?=.$)"),_=/($^)/,b=/\bthis\b/,x=/['\n\r\t\u2028\u2029\\]/g,w=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],E=0,k="[object Arguments]",M="[object Array]",N="[object Boolean]",A="[object Date]",C="[object Function]",T="[object Number]",S="[object Object]",j="[object RegExp]",D="[object String]",L={};L[C]=!1,L[k]=L[M]=L[N]=L[A]=L[T]=L[S]=L[j]=L[D]=!0;var O={leading:!1,maxWait:0,trailing:!1},I={configurable:!1,enumerable:!1,value:null,writable:!1},R={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},z={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},q=R[typeof window]&&window||this,F=R[typeof n]&&n&&!n.nodeType&&n,P=R[typeof e]&&e&&!e.nodeType&&e,B=P&&P.exports===F&&F,H=R[typeof t]&&t;function $(t,e,n){for(var r=(n||0)-1,i=t?t.length:0;++r<i;)if(t[r]===e)return r;return-1}function W(t,e){var n=typeof e;if(t=t.cache,"boolean"==n||null==e)return t[e]?0:-1;"number"!=n&&"string"!=n&&(n="object");var r="number"==n?e:u+e;return t=(t=t[n])&&t[r],"object"==n?t&&$(t,e)>-1?0:-1:t?0:-1}function U(t){var e=this.cache,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:u+t,i=e[n]||(e[n]={});"object"==n?(i[r]||(i[r]=[])).push(t):i[r]=!0}}function G(t){return t.charCodeAt(0)}function V(t,e){for(var n=t.criteria,r=e.criteria,i=-1,o=n.length;++i<o;){var a=n[i],u=r[i];if(a!==u){if(a>u||void 0===a)return 1;if(a<u||void 0===u)return-1}}return t.index-e.index}function Y(t){var e=-1,n=t.length,r=t[0],i=t[n/2|0],o=t[n-1];if(r&&"object"==typeof r&&i&&"object"==typeof i&&o&&"object"==typeof o)return!1;var a=K();a.false=a.null=a.true=a[void 0]=!1;var u=K();for(u.array=t,u.cache=a,u.push=U;++e<n;)u.push(t[e]);return u}function X(t){return"\\"+z[t]}function Z(){return i.pop()||[]}function K(){return o.pop()||{array:null,cache:null,criteria:null,false:!1,index:0,null:!1,number:null,object:null,push:null,string:null,true:!1,undefined:!1,value:null}}function J(t){t.length=0,i.length<s&&i.push(t)}function Q(t){var e=t.cache;e&&Q(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,o.length<s&&o.push(t)}function tt(t,e,n){e||(e=0),void 0===n&&(n=t?t.length:0);for(var r=-1,i=n-e||0,o=Array(i<0?0:i);++r<i;)o[r]=t[e+r];return o}!H||H.global!==H&&H.window!==H||(q=H);var et=function t(e){var n=(e=e?et.defaults(q.Object(),e,et.pick(q,w)):q).Array,i=e.Boolean,o=e.Date,s=e.Function,z=e.Math,F=e.Number,P=e.Object,B=e.RegExp,H=e.String,U=e.TypeError,nt=[],rt=P.prototype,it=e._,ot=rt.toString,at=B("^"+H(ot).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),ut=z.ceil,ct=e.clearTimeout,st=z.floor,lt=s.prototype.toString,ft=Gt(ft=P.getPrototypeOf)&&ft,ht=rt.hasOwnProperty,dt=nt.push,pt=e.setTimeout,gt=nt.splice,vt=nt.unshift,yt=function(){try{var t={},e=Gt(e=P.defineProperty)&&e,n=e(t,t,t)&&e}catch(t){}return n}(),mt=Gt(mt=P.create)&&mt,_t=Gt(_t=n.isArray)&&_t,bt=e.isFinite,xt=e.isNaN,wt=Gt(wt=P.keys)&&wt,Et=z.max,kt=z.min,Mt=e.parseInt,Nt=z.random,At={};function Ct(t){return t&&"object"==typeof t&&!Kt(t)&&ht.call(t,"__wrapped__")?t:new Tt(t)}function Tt(t,e){this.__chain__=!!e,this.__wrapped__=t}At[M]=n,At[N]=i,At[A]=o,At[C]=s,At[S]=P,At[T]=F,At[j]=B,At[D]=H,Tt.prototype=Ct.prototype;var St=Ct.support={};function jt(t){var e=t[0],n=t[2],r=t[4];function i(){if(n){var t=tt(n);dt.apply(t,arguments)}if(this instanceof i){var o=Lt(e.prototype),a=e.apply(o,t||arguments);return fe(a)?a:o}return e.apply(r,t||arguments)}return Vt(i,t),i}function Dt(t,e,n,r,i){if(n){var o=n(t);if(void 0!==o)return o}if(!fe(t))return t;var a=ot.call(t);if(!L[a])return t;var u=At[a];switch(a){case N:case A:return new u(+t);case T:case D:return new u(t);case j:return(o=u(t.source,g.exec(t))).lastIndex=t.lastIndex,o}var c=Kt(t);if(e){var s=!r;r||(r=Z()),i||(i=Z());for(var l=r.length;l--;)if(r[l]==t)return i[l];o=c?u(t.length):{}}else o=c?tt(t):re({},t);return c&&(ht.call(t,"index")&&(o.index=t.index),ht.call(t,"input")&&(o.input=t.input)),e?(r.push(t),i.push(o),(c?xe:ae)(t,function(t,a){o[a]=Dt(t,e,n,r,i)}),s&&(J(r),J(i)),o):o}function Lt(t,e){return fe(t)?mt(t):{}}function Ot(t,e,n){if("function"!=typeof t)return He;if(void 0===e||!("prototype"in t))return t;var r=t.__bindData__;if(void 0===r&&(St.funcNames&&(r=!t.name),!(r=r||!St.funcDecomp))){var i=lt.call(t);St.funcNames||(r=!v.test(i)),r||(r=b.test(i),Vt(t,r))}if(!1===r||!0!==r&&1&r[1])return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return Pe(t,e)}function It(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],u=1&n,c=2&n,s=4&n,l=8&n,f=e;function h(){var t=u?o:this;if(r){var d=tt(r);dt.apply(d,arguments)}if((i||s)&&(d||(d=tt(arguments)),i&&dt.apply(d,i),s&&d.length<a))return n|=16,It([e,l?n:-4&n,d,null,o,a]);if(d||(d=arguments),c&&(e=t[f]),this instanceof h){t=Lt(e.prototype);var p=e.apply(t,d);return fe(p)?p:t}return e.apply(t,d)}return Vt(h,t),h}function Rt(t,e){var n=-1,r=Ut(),i=t?t.length:0,o=i>=c&&r===$,a=[];if(o){var u=Y(e);u?(r=W,e=u):o=!1}for(;++n<i;){var s=t[n];r(e,s)<0&&a.push(s)}return o&&Q(e),a}function zt(t,e,n,r){for(var i=(r||0)-1,o=t?t.length:0,a=[];++i<o;){var u=t[i];if(u&&"object"==typeof u&&"number"==typeof u.length&&(Kt(u)||Zt(u))){e||(u=zt(u,e,n));var c=-1,s=u.length,l=a.length;for(a.length+=s;++c<s;)a[l++]=u[c]}else n||a.push(u)}return a}function qt(t,e,n,r,i,o){if(n){var a=n(t,e);if(void 0!==a)return!!a}if(t===e)return 0!==t||1/t==1/e;var u=typeof e;if(!(t!=t||t&&R[typeof t]||e&&R[u]))return!1;if(null==t||null==e)return t===e;var c=ot.call(t),s=ot.call(e);if(c==k&&(c=S),s==k&&(s=S),c!=s)return!1;switch(c){case N:case A:return+t==+e;case T:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case j:case D:return t==H(e)}var l=c==M;if(!l){var f=ht.call(t,"__wrapped__"),h=ht.call(e,"__wrapped__");if(f||h)return qt(f?t.__wrapped__:t,h?e.__wrapped__:e,n,r,i,o);if(c!=S)return!1;var d=t.constructor,p=e.constructor;if(d!=p&&!(le(d)&&d instanceof d&&le(p)&&p instanceof p)&&"constructor"in t&&"constructor"in e)return!1}var g=!i;i||(i=Z()),o||(o=Z());for(var v=i.length;v--;)if(i[v]==t)return o[v]==e;var y=0;if(a=!0,i.push(t),o.push(e),l){if(v=t.length,y=e.length,(a=y==v)||r)for(;y--;){var m=v,_=e[y];if(r)for(;m--&&!(a=qt(t[m],_,n,r,i,o)););else if(!(a=qt(t[y],_,n,r,i,o)))break}}else oe(e,function(e,u,c){if(ht.call(c,u))return y++,a=ht.call(t,u)&&qt(t[u],e,n,r,i,o)}),a&&!r&&oe(t,function(t,e,n){if(ht.call(n,e))return a=--y>-1});return i.pop(),o.pop(),g&&(J(i),J(o)),a}function Ft(t,e,n,r,i){(Kt(e)?xe:ae)(e,function(e,o){var a,u,c=e,s=t[o];if(e&&((u=Kt(e))||de(e))){for(var l,f=r.length;f--;)if(a=r[f]==e){s=i[f];break}a||(n&&(l=void 0!==(c=n(s,e)))&&(s=c),l||(s=u?Kt(s)?s:[]:de(s)?s:{}),r.push(e),i.push(s),l||Ft(s,e,n,r,i))}else n&&void 0===(c=n(s,e))&&(c=e),void 0!==c&&(s=c);t[o]=s})}function Pt(t,e){return t+st(Nt()*(e-t+1))}function Bt(t,e,n){var r=-1,i=Ut(),o=t?t.length:0,a=[],u=!e&&o>=c&&i===$,s=n||u?Z():a;for(u&&(i=W,s=Y(s));++r<o;){var l=t[r],f=n?n(l,r,t):l;(e?!r||s[s.length-1]!==f:i(s,f)<0)&&((n||u)&&s.push(f),a.push(l))}return u?(J(s.array),Q(s)):n&&J(s),a}function Ht(t){return function(e,n,r){var i={};n=Ct.createCallback(n,r,3);var o=-1,a=e?e.length:0;if("number"==typeof a)for(;++o<a;){var u=e[o];t(i,u,n(u,o,e),e)}else ae(e,function(e,r,o){t(i,e,n(e,r,o),o)});return i}}function $t(t,e,n,r,i,o){var a=1&e,u=4&e,c=16&e,s=32&e;if(!(2&e||le(t)))throw new U;c&&!n.length&&(e&=-17,c=n=!1),s&&!r.length&&(e&=-33,s=r=!1);var l=t&&t.__bindData__;return l&&!0!==l?((l=tt(l))[2]&&(l[2]=tt(l[2])),l[3]&&(l[3]=tt(l[3])),!a||1&l[1]||(l[4]=i),!a&&1&l[1]&&(e|=8),!u||4&l[1]||(l[5]=o),c&&dt.apply(l[2]||(l[2]=[]),n),s&&vt.apply(l[3]||(l[3]=[]),r),l[1]|=e,$t.apply(null,l)):(1==e||17===e?jt:It)([t,e,n,r,i,o])}function Wt(t){return Qt[t]}function Ut(){var t=(t=Ct.indexOf)===Oe?$:t;return t}function Gt(t){return"function"==typeof t&&at.test(t)}St.funcDecomp=!Gt(e.WinRTError)&&b.test(t),St.funcNames="string"==typeof s.name,Ct.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:y,variable:"",imports:{_:Ct}},mt||(Lt=function(){function t(){}return function(n){if(fe(n)){t.prototype=n;var r=new t;t.prototype=null}return r||e.Object()}}());var Vt=yt?function(t,e){I.value=e,yt(t,"__bindData__",I),I.value=null}:We;function Yt(t){var e,n;return!(!t||ot.call(t)!=S||le(e=t.constructor)&&!(e instanceof e))&&(oe(t,function(t,e){n=e}),void 0===n||ht.call(t,n))}function Xt(t){return te[t]}function Zt(t){return t&&"object"==typeof t&&"number"==typeof t.length&&ot.call(t)==k||!1}var Kt=_t||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&ot.call(t)==M||!1},Jt=wt?function(t){return fe(t)?wt(t):[]}:function(t){var e,n=t,r=[];if(!n)return r;if(!R[typeof t])return r;for(e in n)ht.call(n,e)&&r.push(e);return r},Qt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},te=se(Qt),ee=B("("+Jt(te).join("|")+")","g"),ne=B("["+Jt(Qt).join("")+"]","g"),re=function(t,e,n){var r,i=t,o=i;if(!i)return o;var a=arguments,u=0,c="number"==typeof n?2:a.length;if(c>3&&"function"==typeof a[c-2])var s=Ot(a[--c-1],a[c--],2);else c>2&&"function"==typeof a[c-1]&&(s=a[--c]);for(;++u<c;)if((i=a[u])&&R[typeof i])for(var l=-1,f=R[typeof i]&&Jt(i),h=f?f.length:0;++l<h;)o[r=f[l]]=s?s(o[r],i[r]):i[r];return o};var ie=function(t,e,n){var r,i=t,o=i;if(!i)return o;for(var a=arguments,u=0,c="number"==typeof n?2:a.length;++u<c;)if((i=a[u])&&R[typeof i])for(var s=-1,l=R[typeof i]&&Jt(i),f=l?l.length:0;++s<f;)void 0===o[r=l[s]]&&(o[r]=i[r]);return o};var oe=function(t,e,n){var r,i=t,o=i;if(!i)return o;if(!R[typeof i])return o;for(r in e=e&&void 0===n?e:Ot(e,n,3),i)if(!1===e(i[r],r,t))return o;return o};var ae=function(t,e,n){var r,i=t,o=i;if(!i)return o;if(!R[typeof i])return o;e=e&&void 0===n?e:Ot(e,n,3);for(var a=-1,u=R[typeof i]&&Jt(i),c=u?u.length:0;++a<c;)if(!1===e(i[r=u[a]],r,t))return o;return o};function ue(t,e,n){var r=Jt(t),i=r.length;for(e=Ot(e,n,3);i--;){var o=r[i];if(!1===e(t[o],o,t))break}return t}function ce(t){var e=[];return oe(t,function(t,n){le(t)&&e.push(n)}),e.sort()}function se(t){for(var e=-1,n=Jt(t),r=n.length,i={};++e<r;){var o=n[e];i[t[o]]=o}return i}function le(t){return"function"==typeof t}function fe(t){return!(!t||!R[typeof t])}function he(t){return"number"==typeof t||t&&"object"==typeof t&&ot.call(t)==T||!1}var de=ft?function(t){if(!t||ot.call(t)!=S)return!1;var e=t.valueOf,n=Gt(e)&&(n=ft(e))&&ft(n);return n?t==n||ft(t)==n:Yt(t)}:Yt;function pe(t){return"string"==typeof t||t&&"object"==typeof t&&ot.call(t)==D||!1}function ge(t){for(var e=-1,r=Jt(t),i=r.length,o=n(i);++e<i;)o[e]=t[r[e]];return o}function ve(t,e,n){var r=-1,i=Ut(),o=t?t.length:0,a=!1;return n=(n<0?Et(0,o+n):n)||0,Kt(t)?a=i(t,e,n)>-1:"number"==typeof o?a=(pe(t)?t.indexOf(e,n):i(t,e,n))>-1:ae(t,function(t){if(++r>=n)return!(a=t===e)}),a}var ye=Ht(function(t,e,n){ht.call(t,n)?t[n]++:t[n]=1});function me(t,e,n){var r=!0;e=Ct.createCallback(e,n,3);var i=-1,o=t?t.length:0;if("number"==typeof o)for(;++i<o&&(r=!!e(t[i],i,t)););else ae(t,function(t,n,i){return r=!!e(t,n,i)});return r}function _e(t,e,n){var r=[];e=Ct.createCallback(e,n,3);var i=-1,o=t?t.length:0;if("number"==typeof o)for(;++i<o;){var a=t[i];e(a,i,t)&&r.push(a)}else ae(t,function(t,n,i){e(t,n,i)&&r.push(t)});return r}function be(t,e,n){e=Ct.createCallback(e,n,3);var r,i=-1,o=t?t.length:0;if("number"!=typeof o)return ae(t,function(t,n,i){if(e(t,n,i))return r=t,!1}),r;for(;++i<o;){var a=t[i];if(e(a,i,t))return a}}function xe(t,e,n){var r=-1,i=t?t.length:0;if(e=e&&void 0===n?e:Ot(e,n,3),"number"==typeof i)for(;++r<i&&!1!==e(t[r],r,t););else ae(t,e);return t}function we(t,e,n){var r=t?t.length:0;if(e=e&&void 0===n?e:Ot(e,n,3),"number"==typeof r)for(;r--&&!1!==e(t[r],r,t););else{var i=Jt(t);r=i.length,ae(t,function(t,n,o){return n=i?i[--r]:--r,e(o[n],n,o)})}return t}var Ee=Ht(function(t,e,n){(ht.call(t,n)?t[n]:t[n]=[]).push(e)}),ke=Ht(function(t,e,n){t[n]=e});function Me(t,e,r){var i=-1,o=t?t.length:0;if(e=Ct.createCallback(e,r,3),"number"==typeof o)for(var a=n(o);++i<o;)a[i]=e(t[i],i,t);else a=[],ae(t,function(t,n,r){a[++i]=e(t,n,r)});return a}function Ne(t,e,n){var r=-1/0,i=r;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&Kt(t))for(var o=-1,a=t.length;++o<a;){var u=t[o];u>i&&(i=u)}else e=null==e&&pe(t)?G:Ct.createCallback(e,n,3),xe(t,function(t,n,o){var a=e(t,n,o);a>r&&(r=a,i=t)});return i}var Ae=Me;function Ce(t,e,n,r){if(!t)return n;var i=arguments.length<3;e=Ct.createCallback(e,r,4);var o=-1,a=t.length;if("number"==typeof a)for(i&&(n=t[++o]);++o<a;)n=e(n,t[o],o,t);else ae(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)});return n}function Te(t,e,n,r){var i=arguments.length<3;return e=Ct.createCallback(e,r,4),we(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}function Se(t){var e=-1,r=t?t.length:0,i=n("number"==typeof r?r:0);return xe(t,function(t){var n=Pt(0,++e);i[e]=i[n],i[n]=t}),i}function je(t,e,n){var r;e=Ct.createCallback(e,n,3);var i=-1,o=t?t.length:0;if("number"==typeof o)for(;++i<o&&!(r=e(t[i],i,t)););else ae(t,function(t,n,i){return!(r=e(t,n,i))});return!!r}var De=_e;function Le(t,e,n){var i=0,o=t?t.length:0;if("number"!=typeof e&&null!=e){var a=-1;for(e=Ct.createCallback(e,n,3);++a<o&&e(t[a],a,t);)i++}else if(null==(i=e)||n)return t?t[0]:r;return tt(t,0,kt(Et(0,i),o))}function Oe(t,e,n){if("number"==typeof n){var r=t?t.length:0;n=n<0?Et(0,r+n):n||0}else if(n){var i=Re(t,e);return t[i]===e?i:-1}return $(t,e,n)}function Ie(t,e,n){if("number"!=typeof e&&null!=e){var r=0,i=-1,o=t?t.length:0;for(e=Ct.createCallback(e,n,3);++i<o&&e(t[i],i,t);)r++}else r=null==e||n?1:Et(0,e);return tt(t,r)}function Re(t,e,n,r){var i=0,o=t?t.length:i;for(e=(n=n?Ct.createCallback(n,r,1):He)(e);i<o;){var a=i+o>>>1;n(t[a])<e?i=a+1:o=a}return i}function ze(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n="function"!=typeof e&&r&&r[e]===t?null:e,e=!1),null!=n&&(n=Ct.createCallback(n,r,3)),Bt(t,e,n)}function qe(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,r=t?Ne(Ae(t,"length")):0,i=n(r<0?0:r);++e<r;)i[e]=Ae(t,e);return i}function Fe(t,e){var n=-1,r=t?t.length:0,i={};for(e||!r||Kt(t[0])||(e=[]);++n<r;){var o=t[n];e?i[o]=e[n]:o&&(i[o[0]]=o[1])}return i}function Pe(t,e){return arguments.length>2?$t(t,17,tt(arguments,2),null,e):$t(t,1,null,null,e)}function Be(t,e,n){var i,o,a,u,c,s,l,f=0,h=!1,d=!0;if(!le(t))throw new U;if(e=Et(0,e)||0,!0===n){var p=!0;d=!1}else fe(n)&&(p=n.leading,h="maxWait"in n&&(Et(e,n.maxWait)||0),d="trailing"in n?n.trailing:d);var g=function(){var n=e-(Ge()-u);if(n<=0){o&&ct(o);var h=l;o=s=l=r,h&&(f=Ge(),a=t.apply(c,i),s||o||(i=c=null))}else s=pt(g,n)},v=function(){s&&ct(s),o=s=l=r,(d||h!==e)&&(f=Ge(),a=t.apply(c,i),s||o||(i=c=null))};return function(){if(i=arguments,u=Ge(),c=this,l=d&&(s||!p),!1===h)var n=p&&!s;else{o||p||(f=u);var r=h-(u-f),y=r<=0;y?(o&&(o=ct(o)),f=u,a=t.apply(c,i)):o||(o=pt(v,r))}return y&&s?s=ct(s):s||e===h||(s=pt(g,e)),n&&(y=!0,a=t.apply(c,i)),!y||s||o||(i=c=null),a}}function He(t){return t}function $e(t,e,n){var r=!0,i=e&&ce(e);e&&(n||i.length)||(null==n&&(n=e),o=Tt,e=t,t=Ct,i=ce(e)),!1===n?r=!1:fe(n)&&"chain"in n&&(r=n.chain);var o=t,a=le(o);xe(i,function(n){var i=t[n]=e[n];a&&(o.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,a=[n];dt.apply(a,arguments);var u=i.apply(t,a);if(r||e){if(n===u&&fe(u))return this;(u=new o(u)).__chain__=e}return u})})}function We(){}var Ue,Ge=Gt(Ge=o.now)&&Ge||function(){return(new o).getTime()},Ve=8==Mt(l+"08")?Mt:function(t,e){return Mt(pe(t)?t.replace(m,""):t,e||0)};function Ye(t){return function(e){return e[t]}}function Xe(){return this.__wrapped__}return Ct.after=function(t,e){if(!le(e))throw new U;return function(){if(--t<1)return e.apply(this,arguments)}},Ct.assign=re,Ct.at=function(t){for(var e=arguments,r=-1,i=zt(e,!0,!1,1),o=e[2]&&e[2][e[1]]===t?1:i.length,a=n(o);++r<o;)a[r]=t[i[r]];return a},Ct.bind=Pe,Ct.bindAll=function(t){for(var e=arguments.length>1?zt(arguments,!0,!1,1):ce(t),n=-1,r=e.length;++n<r;){var i=e[n];t[i]=$t(t[i],1,null,null,t)}return t},Ct.bindKey=function(t,e){return arguments.length>2?$t(e,19,tt(arguments,2),null,t):$t(e,3,null,null,t)},Ct.chain=function(t){return(t=new Tt(t)).__chain__=!0,t},Ct.compact=function(t){for(var e=-1,n=t?t.length:0,r=[];++e<n;){var i=t[e];i&&r.push(i)}return r},Ct.compose=function(){for(var t=arguments,e=t.length;e--;)if(!le(t[e]))throw new U;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}},Ct.constant=function(t){return function(){return t}},Ct.countBy=ye,Ct.create=function(t,e){var n=Lt(t);return e?re(n,e):n},Ct.createCallback=function(t,e,n){var r=typeof t;if(null==t||"function"==r)return Ot(t,e,n);if("object"!=r)return Ye(t);var i=Jt(t),o=i[0],a=t[o];return 1!=i.length||a!=a||fe(a)?function(e){for(var n=i.length,r=!1;n--&&(r=qt(e[i[n]],t[i[n]],null,!0)););return r}:function(t){var e=t[o];return a===e&&(0!==a||1/a==1/e)}},Ct.curry=function(t,e){return $t(t,4,null,null,null,e="number"==typeof e?e:+e||t.length)},Ct.debounce=Be,Ct.defaults=ie,Ct.defer=function(t){if(!le(t))throw new U;var e=tt(arguments,1);return pt(function(){t.apply(r,e)},1)},Ct.delay=function(t,e){if(!le(t))throw new U;var n=tt(arguments,2);return pt(function(){t.apply(r,n)},e)},Ct.difference=function(t){return Rt(t,zt(arguments,!0,!0,1))},Ct.filter=_e,Ct.flatten=function(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n="function"!=typeof e&&r&&r[e]===t?null:e,e=!1),null!=n&&(t=Me(t,n,r)),zt(t,e)},Ct.forEach=xe,Ct.forEachRight=we,Ct.forIn=oe,Ct.forInRight=function(t,e,n){var r=[];oe(t,function(t,e){r.push(e,t)});var i=r.length;for(e=Ot(e,n,3);i--&&!1!==e(r[i--],r[i],t););return t},Ct.forOwn=ae,Ct.forOwnRight=ue,Ct.functions=ce,Ct.groupBy=Ee,Ct.indexBy=ke,Ct.initial=function(t,e,n){var r=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var o=i;for(e=Ct.createCallback(e,n,3);o--&&e(t[o],o,t);)r++}else r=null==e||n?1:e||r;return tt(t,0,kt(Et(0,i-r),i))},Ct.intersection=function(){for(var t=[],e=-1,n=arguments.length,r=Z(),i=Ut(),o=i===$,a=Z();++e<n;){var u=arguments[e];(Kt(u)||Zt(u))&&(t.push(u),r.push(o&&u.length>=c&&Y(e?t[e]:a)))}var s=t[0],l=-1,f=s?s.length:0,h=[];t:for(;++l<f;){var d=r[0];if(u=s[l],(d?W(d,u):i(a,u))<0){for(e=n,(d||a).push(u);--e;)if(((d=r[e])?W(d,u):i(t[e],u))<0)continue t;h.push(u)}}for(;n--;)(d=r[n])&&Q(d);return J(r),J(a),h},Ct.invert=se,Ct.invoke=function(t,e){var r=tt(arguments,2),i=-1,o="function"==typeof e,a=t?t.length:0,u=n("number"==typeof a?a:0);return xe(t,function(t){u[++i]=(o?e:t[e]).apply(t,r)}),u},Ct.keys=Jt,Ct.map=Me,Ct.mapValues=function(t,e,n){var r={};return e=Ct.createCallback(e,n,3),ae(t,function(t,n,i){r[n]=e(t,n,i)}),r},Ct.max=Ne,Ct.memoize=function(t,e){if(!le(t))throw new U;var n=function(){var r=n.cache,i=e?e.apply(this,arguments):u+arguments[0];return ht.call(r,i)?r[i]:r[i]=t.apply(this,arguments)};return n.cache={},n},Ct.merge=function(t){var e=arguments,n=2;if(!fe(t))return t;if("number"!=typeof e[2]&&(n=e.length),n>3&&"function"==typeof e[n-2])var r=Ot(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(r=e[--n]);for(var i=tt(arguments,1,n),o=-1,a=Z(),u=Z();++o<n;)Ft(t,i[o],r,a,u);return J(a),J(u),t},Ct.min=function(t,e,n){var r=1/0,i=r;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&Kt(t))for(var o=-1,a=t.length;++o<a;){var u=t[o];u<i&&(i=u)}else e=null==e&&pe(t)?G:Ct.createCallback(e,n,3),xe(t,function(t,n,o){var a=e(t,n,o);a<r&&(r=a,i=t)});return i},Ct.omit=function(t,e,n){var r={};if("function"!=typeof e){var i=[];oe(t,function(t,e){i.push(e)});for(var o=-1,a=(i=Rt(i,zt(arguments,!0,!1,1))).length;++o<a;){var u=i[o];r[u]=t[u]}}else e=Ct.createCallback(e,n,3),oe(t,function(t,n,i){e(t,n,i)||(r[n]=t)});return r},Ct.once=function(t){var e,n;if(!le(t))throw new U;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}},Ct.pairs=function(t){for(var e=-1,r=Jt(t),i=r.length,o=n(i);++e<i;){var a=r[e];o[e]=[a,t[a]]}return o},Ct.partial=function(t){return $t(t,16,tt(arguments,1))},Ct.partialRight=function(t){return $t(t,32,null,tt(arguments,1))},Ct.pick=function(t,e,n){var r={};if("function"!=typeof e)for(var i=-1,o=zt(arguments,!0,!1,1),a=fe(t)?o.length:0;++i<a;){var u=o[i];u in t&&(r[u]=t[u])}else e=Ct.createCallback(e,n,3),oe(t,function(t,n,i){e(t,n,i)&&(r[n]=t)});return r},Ct.pluck=Ae,Ct.property=Ye,Ct.pull=function(t){for(var e=arguments,n=0,r=e.length,i=t?t.length:0;++n<r;)for(var o=-1,a=e[n];++o<i;)t[o]===a&&(gt.call(t,o--,1),i--);return t},Ct.range=function(t,e,r){t=+t||0,null==e&&(e=t,t=0);for(var i=-1,o=Et(0,ut((e-t)/((r="number"==typeof r?r:+r||1)||1))),a=n(o);++i<o;)a[i]=t,t+=r;return a},Ct.reject=function(t,e,n){return e=Ct.createCallback(e,n,3),_e(t,function(t,n,r){return!e(t,n,r)})},Ct.remove=function(t,e,n){var r=-1,i=t?t.length:0,o=[];for(e=Ct.createCallback(e,n,3);++r<i;){var a=t[r];e(a,r,t)&&(o.push(a),gt.call(t,r--,1),i--)}return o},Ct.rest=Ie,Ct.shuffle=Se,Ct.sortBy=function(t,e,r){var i=-1,o=Kt(e),a=t?t.length:0,u=n("number"==typeof a?a:0);for(o||(e=Ct.createCallback(e,r,3)),xe(t,function(t,n,r){var a=u[++i]=K();o?a.criteria=Me(e,function(e){return t[e]}):(a.criteria=Z())[0]=e(t,n,r),a.index=i,a.value=t}),a=u.length,u.sort(V);a--;){var c=u[a];u[a]=c.value,o||J(c.criteria),Q(c)}return u},Ct.tap=function(t,e){return e(t),t},Ct.throttle=function(t,e,n){var r=!0,i=!0;if(!le(t))throw new U;return!1===n?r=!1:fe(n)&&(r="leading"in n?n.leading:r,i="trailing"in n?n.trailing:i),O.leading=r,O.maxWait=e,O.trailing=i,Be(t,e,O)},Ct.times=function(t,e,r){t=(t=+t)>-1?t:0;var i=-1,o=n(t);for(e=Ot(e,r,1);++i<t;)o[i]=e(i);return o},Ct.toArray=function(t){return t&&"number"==typeof t.length?tt(t):ge(t)},Ct.transform=function(t,e,n,r){var i=Kt(t);if(null==n)if(i)n=[];else{var o=t&&t.constructor,a=o&&o.prototype;n=Lt(a)}return e&&(e=Ct.createCallback(e,r,4),(i?xe:ae)(t,function(t,r,i){return e(n,t,r,i)})),n},Ct.union=function(){return Bt(zt(arguments,!0,!0))},Ct.uniq=ze,Ct.values=ge,Ct.where=De,Ct.without=function(t){return Rt(t,tt(arguments,1))},Ct.wrap=function(t,e){return $t(e,16,[t])},Ct.xor=function(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(Kt(n)||Zt(n))var r=r?Bt(Rt(r,n).concat(Rt(n,r))):n}return r||[]},Ct.zip=qe,Ct.zipObject=Fe,Ct.collect=Me,Ct.drop=Ie,Ct.each=xe,Ct.eachRight=we,Ct.extend=re,Ct.methods=ce,Ct.object=Fe,Ct.select=_e,Ct.tail=Ie,Ct.unique=ze,Ct.unzip=qe,$e(Ct),Ct.clone=function(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n=e,e=!1),Dt(t,e,"function"==typeof n&&Ot(n,r,1))},Ct.cloneDeep=function(t,e,n){return Dt(t,!0,"function"==typeof e&&Ot(e,n,1))},Ct.contains=ve,Ct.escape=function(t){return null==t?"":H(t).replace(ne,Wt)},Ct.every=me,Ct.find=be,Ct.findIndex=function(t,e,n){var r=-1,i=t?t.length:0;for(e=Ct.createCallback(e,n,3);++r<i;)if(e(t[r],r,t))return r;return-1},Ct.findKey=function(t,e,n){var r;return e=Ct.createCallback(e,n,3),ae(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r},Ct.findLast=function(t,e,n){var r;return e=Ct.createCallback(e,n,3),we(t,function(t,n,i){if(e(t,n,i))return r=t,!1}),r},Ct.findLastIndex=function(t,e,n){var r=t?t.length:0;for(e=Ct.createCallback(e,n,3);r--;)if(e(t[r],r,t))return r;return-1},Ct.findLastKey=function(t,e,n){var r;return e=Ct.createCallback(e,n,3),ue(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r},Ct.has=function(t,e){return!!t&&ht.call(t,e)},Ct.identity=He,Ct.indexOf=Oe,Ct.isArguments=Zt,Ct.isArray=Kt,Ct.isBoolean=function(t){return!0===t||!1===t||t&&"object"==typeof t&&ot.call(t)==N||!1},Ct.isDate=function(t){return t&&"object"==typeof t&&ot.call(t)==A||!1},Ct.isElement=function(t){return t&&1===t.nodeType||!1},Ct.isEmpty=function(t){var e=!0;if(!t)return e;var n=ot.call(t),r=t.length;return n==M||n==D||n==k||n==S&&"number"==typeof r&&le(t.splice)?!r:(ae(t,function(){return e=!1}),e)},Ct.isEqual=function(t,e,n,r){return qt(t,e,"function"==typeof n&&Ot(n,r,2))},Ct.isFinite=function(t){return bt(t)&&!xt(parseFloat(t))},Ct.isFunction=le,Ct.isNaN=function(t){return he(t)&&t!=+t},Ct.isNull=function(t){return null===t},Ct.isNumber=he,Ct.isObject=fe,Ct.isPlainObject=de,Ct.isRegExp=function(t){return t&&"object"==typeof t&&ot.call(t)==j||!1},Ct.isString=pe,Ct.isUndefined=function(t){return void 0===t},Ct.lastIndexOf=function(t,e,n){var r=t?t.length:0;for("number"==typeof n&&(r=(n<0?Et(0,r+n):kt(n,r-1))+1);r--;)if(t[r]===e)return r;return-1},Ct.mixin=$e,Ct.noConflict=function(){return e._=it,this},Ct.noop=We,Ct.now=Ge,Ct.parseInt=Ve,Ct.random=function(t,e,n){var r=null==t,i=null==e;if(null==n&&("boolean"==typeof t&&i?(n=t,t=1):i||"boolean"!=typeof e||(n=e,i=!0)),r&&i&&(e=1),t=+t||0,i?(e=t,t=0):e=+e||0,n||t%1||e%1){var o=Nt();return kt(t+o*(e-t+parseFloat("1e-"+((o+"").length-1))),e)}return Pt(t,e)},Ct.reduce=Ce,Ct.reduceRight=Te,Ct.result=function(t,e){if(t){var n=t[e];return le(n)?t[e]():n}},Ct.runInContext=t,Ct.size=function(t){var e=t?t.length:0;return"number"==typeof e?e:Jt(t).length},Ct.some=je,Ct.sortedIndex=Re,Ct.template=function(t,e,n){var i=Ct.templateSettings;t=H(t||""),n=ie({},n,i);var o,a=ie({},n.imports,i.imports),u=Jt(a),c=ge(a),l=0,g=n.interpolate||_,v="__p += '",m=B((n.escape||_).source+"|"+g.source+"|"+(g===y?p:_).source+"|"+(n.evaluate||_).source+"|$","g");t.replace(m,function(e,n,r,i,a,u){return r||(r=i),v+=t.slice(l,u).replace(x,X),n&&(v+="' +\n__e("+n+") +\n'"),a&&(o=!0,v+="';\n"+a+";\n__p += '"),r&&(v+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e}),v+="';\n";var b=n.variable,w=b;w||(v="with ("+(b="obj")+") {\n"+v+"\n}\n"),v=(o?v.replace(f,""):v).replace(h,"$1").replace(d,"$1;"),v="function("+b+") {\n"+(w?"":b+" || ("+b+" = {});\n")+"var __t, __p = '', __e = _.escape"+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+v+"return __p\n}";var k="\n/*\n//# sourceURL="+(n.sourceURL||"/lodash/template/source["+E+++"]")+"\n*/";try{var M=s(u,"return "+v+k).apply(r,c)}catch(t){throw t.source=v,t}return e?M(e):(M.source=v,M)},Ct.unescape=function(t){return null==t?"":H(t).replace(ee,Xt)},Ct.uniqueId=function(t){var e=++a;return H(null==t?"":t)+e},Ct.all=me,Ct.any=je,Ct.detect=be,Ct.findWhere=be,Ct.foldl=Ce,Ct.foldr=Te,Ct.include=ve,Ct.inject=Ce,$e((Ue={},ae(Ct,function(t,e){Ct.prototype[e]||(Ue[e]=t)}),Ue),!1),Ct.first=Le,Ct.last=function(t,e,n){var i=0,o=t?t.length:0;if("number"!=typeof e&&null!=e){var a=o;for(e=Ct.createCallback(e,n,3);a--&&e(t[a],a,t);)i++}else if(null==(i=e)||n)return t?t[o-1]:r;return tt(t,Et(0,o-i))},Ct.sample=function(t,e,n){if(t&&"number"!=typeof t.length&&(t=ge(t)),null==e||n)return t?t[Pt(0,t.length-1)]:r;var i=Se(t);return i.length=kt(Et(0,e),i.length),i},Ct.take=Le,Ct.head=Le,ae(Ct,function(t,e){var n="sample"!==e;Ct.prototype[e]||(Ct.prototype[e]=function(e,r){var i=this.__chain__,o=t(this.__wrapped__,e,r);return i||null!=e&&(!r||n&&"function"==typeof e)?new Tt(o,i):o})}),Ct.VERSION="2.4.2",Ct.prototype.chain=function(){return this.__chain__=!0,this},Ct.prototype.toString=function(){return H(this.__wrapped__)},Ct.prototype.value=Xe,Ct.prototype.valueOf=Xe,xe(["join","pop","shift"],function(t){var e=nt[t];Ct.prototype[t]=function(){var t=this.__chain__,n=e.apply(this.__wrapped__,arguments);return t?new Tt(n,t):n}}),xe(["push","reverse","sort","unshift"],function(t){var e=nt[t];Ct.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),xe(["concat","slice","splice"],function(t){var e=nt[t];Ct.prototype[t]=function(){return new Tt(e.apply(this.__wrapped__,arguments),this.__chain__)}}),Ct}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(q._=et,define(function(){return et})):F&&P?B?(P.exports=et)._=et:F._=et:q._=et}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]),function(t,e){"use strict";var n,r,i=t.document,o=t.location,a=t.jQuery,u=t.$,c={},s=[],l=s.concat,f=s.push,h=s.slice,d=s.indexOf,p=c.toString,g=c.hasOwnProperty,v="1.9.0".trim,y=function(t,e){return new y.fn.init(t,e,n)},m=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_=/\S+/g,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,x=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,w=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,k=/(?:^|:|,)(?:\s*\[)+/g,M=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,A=/^-ms-/,C=/-([\da-z])/gi,T=function(t,e){return e.toUpperCase()},S=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",S,!1),y.ready()):"complete"===i.readyState&&(i.detachEvent("onreadystatechange",S),y.ready())};function j(t){var e=t.length,n=y.type(t);return!y.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||"function"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)))}y.fn=y.prototype={jquery:"1.9.0",constructor:y,init:function(t,n,r){var o,a;if(!t)return this;if("string"==typeof t){if(!(o="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:x.exec(t))||!o[1]&&n)return!n||n.jquery?(n||r).find(t):this.constructor(n).find(t);if(o[1]){if(n=n instanceof y?n[0]:n,y.merge(this,y.parseHTML(o[1],n&&n.nodeType?n.ownerDocument||n:i,!0)),w.test(o[1])&&y.isPlainObject(n))for(o in n)y.isFunction(this[o])?this[o](n[o]):this.attr(o,n[o]);return this}if((a=i.getElementById(o[2]))&&a.parentNode){if(a.id!==o[2])return r.find(t);this.length=1,this[0]=a}return this.context=i,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):y.isFunction(t)?r.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),y.makeArray(t,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t){var e=y.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return y.each(this,t,e)},ready:function(t){return y.ready.promise().done(t),this},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},map:function(t){return this.pushStack(y.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},y.fn.init.prototype=y.fn,y.extend=y.fn.extend=function(){var t,n,r,i,o,a,u=arguments[0]||{},c=1,s=arguments.length,l=!1;for("boolean"==typeof u&&(l=u,u=arguments[1]||{},c=2),"object"==typeof u||y.isFunction(u)||(u={}),s===c&&(u=this,--c);c<s;c++)if(null!=(t=arguments[c]))for(n in t)r=u[n],u!==(i=t[n])&&(l&&i&&(y.isPlainObject(i)||(o=y.isArray(i)))?(o?(o=!1,a=r&&y.isArray(r)?r:[]):a=r&&y.isPlainObject(r)?r:{},u[n]=y.extend(l,a,i)):i!==e&&(u[n]=i));return u},y.extend({noConflict:function(e){return t.$===y&&(t.$=u),e&&t.jQuery===y&&(t.jQuery=a),y},isReady:!1,readyWait:1,holdReady:function(t){t?y.readyWait++:y.ready(!0)},ready:function(t){if(!0===t?!--y.readyWait:!y.isReady){if(!i.body)return setTimeout(y.ready);y.isReady=!0,!0!==t&&--y.readyWait>0||(r.resolveWith(i,[y]),y.fn.trigger&&y(i).trigger("ready").off("ready"))}},isFunction:function(t){return"function"===y.type(t)},isArray:Array.isArray||function(t){return"array"===y.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?c[p.call(t)]||"object":typeof t},isPlainObject:function(t){if(!t||"object"!==y.type(t)||t.nodeType||y.isWindow(t))return!1;try{if(t.constructor&&!g.call(t,"constructor")&&!g.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}var n;for(n in t);return n===e||g.call(t,n)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||i;var r=w.exec(t),o=!n&&[];return r?[e.createElement(r[1])]:(r=y.buildFragment([t],e,o),o&&y(o).remove(),y.merge([],r.childNodes))},parseJSON:function(e){return t.JSON&&t.JSON.parse?t.JSON.parse(e):null===e?e:"string"==typeof e&&(e=y.trim(e))&&E.test(e.replace(M,"@").replace(N,"]").replace(k,""))?new Function("return "+e)():void y.error("Invalid JSON: "+e)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{t.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):((r=new ActiveXObject("Microsoft.XMLDOM")).async="false",r.loadXML(n))}catch(t){r=e}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||y.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(e){e&&y.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(A,"ms-").replace(C,T)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=j(t);if(n){if(o)for(;r<i&&!1!==e.apply(t[r],n);r++);else for(r in t)if(!1===e.apply(t[r],n))break}else if(o)for(;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:v&&!v.call("\ufeff ")?function(t){return null==t?"":v.call(t)}:function(t){return null==t?"":(t+"").replace(b,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(j(Object(t))?y.merge(n,"string"==typeof t?[t]:t):f.call(n,t)),n},inArray:function(t,e,n){var r;if(e){if(d)return d.call(e,t,n);for(r=e.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,n){var r=n.length,i=t.length,o=0;if("number"==typeof r)for(;o<r;o++)t[i++]=n[o];else for(;n[o]!==e;)t[i++]=n[o++];return t.length=i,t},grep:function(t,e,n){var r=[],i=0,o=t.length;for(n=!!n;i<o;i++)n!==!!e(t[i],i)&&r.push(t[i]);return r},map:function(t,e,n){var r,i=0,o=t.length,a=[];if(j(t))for(;i<o;i++)null!=(r=e(t[i],i,n))&&(a[a.length]=r);else for(i in t)null!=(r=e(t[i],i,n))&&(a[a.length]=r);return l.apply([],a)},guid:1,proxy:function(t,n){var r,i,o;return"string"==typeof n&&(r=t[n],n=t,t=r),y.isFunction(t)?(i=h.call(arguments,2),(o=function(){return t.apply(n||this,i.concat(h.call(arguments)))}).guid=t.guid=t.guid||y.guid++,o):e},access:function(t,n,r,i,o,a,u){var c=0,s=t.length,l=null==r;if("object"===y.type(r))for(c in o=!0,r)y.access(t,n,c,r[c],!0,a,u);else if(i!==e&&(o=!0,y.isFunction(i)||(u=!0),l&&(u?(n.call(t,i),n=null):(l=n,n=function(t,e,n){return l.call(y(t),n)})),n))for(;c<s;c++)n(t[c],r,u?i:i.call(t[c],c,n(t[c],r)));return o?t:l?n.call(t):s?n(t[0],r):a},now:function(){return(new Date).getTime()}}),y.ready.promise=function(e){if(!r)if(r=y.Deferred(),"complete"===i.readyState)setTimeout(y.ready);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",S,!1),t.addEventListener("load",y.ready,!1);else{i.attachEvent("onreadystatechange",S),t.attachEvent("onload",y.ready);var n=!1;try{n=null==t.frameElement&&i.documentElement}catch(t){}n&&n.doScroll&&function t(){if(!y.isReady){try{n.doScroll("left")}catch(e){return setTimeout(t,50)}y.ready()}}()}return r.promise(e)},y.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){c["[object "+e+"]"]=e.toLowerCase()}),n=y(i);var D={};y.Callbacks=function(t){var n,r;t="string"==typeof t?D[t]||(r=D[n=t]={},y.each(n.match(_)||[],function(t,e){r[e]=!0}),r):y.extend({},t);var i,o,a,u,c,s,l=[],f=!t.once&&[],h=function(e){for(i=t.memory&&e,o=!0,s=u||0,u=0,c=l.length,a=!0;l&&s<c;s++)if(!1===l[s].apply(e[0],e[1])&&t.stopOnFalse){i=!1;break}a=!1,l&&(f?f.length&&h(f.shift()):i?l=[]:d.disable())},d={add:function(){if(l){var e=l.length;!function e(n){y.each(n,function(n,r){var i=y.type(r);"function"===i?t.unique&&d.has(r)||l.push(r):r&&r.length&&"string"!==i&&e(r)})}(arguments),a?c=l.length:i&&(u=e,h(i))}return this},remove:function(){return l&&y.each(arguments,function(t,e){for(var n;(n=y.inArray(e,l,n))>-1;)l.splice(n,1),a&&(n<=c&&c--,n<=s&&s--)}),this},has:function(t){return y.inArray(t,l)>-1},empty:function(){return l=[],this},disable:function(){return l=f=i=e,this},disabled:function(){return!l},lock:function(){return f=e,i||d.disable(),this},locked:function(){return!f},fireWith:function(t,e){return e=[t,(e=e||[]).slice?e.slice():e],!l||o&&!f||(a?f.push(e):h(e)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},y.extend({Deferred:function(t){var e=[["resolve","done",y.Callbacks("once memory"),"resolved"],["reject","fail",y.Callbacks("once memory"),"rejected"],["notify","progress",y.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return y.Deferred(function(n){y.each(e,function(e,o){var a=o[0],u=y.isFunction(t[e])&&t[e];i[o[1]](function(){var t=u&&u.apply(this,arguments);t&&y.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,u?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?y.extend(t,r):r}},i={};return r.pipe=r.then,y.each(e,function(t,o){var a=o[2],u=o[3];r[o[1]]=a.add,u&&a.add(function(){n=u},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=h.call(arguments),a=o.length,u=1!==a||t&&y.isFunction(t.promise)?a:0,c=1===u?t:y.Deferred(),s=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?h.call(arguments):i,r===e?c.notifyWith(n,r):--u||c.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&y.isFunction(o[i].promise)?o[i].promise().done(s(i,r,o)).fail(c.reject).progress(s(i,n,e)):--u;return u||c.resolveWith(r,o),c.promise()}}),y.support=function(){var e,n,r,o,a,u,c,s,l,f,h=i.createElement("div");if(h.setAttribute("className","t"),h.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=h.getElementsByTagName("*"),r=h.getElementsByTagName("a")[0],!n||!r||!n.length)return{};a=(o=i.createElement("select")).appendChild(i.createElement("option")),u=h.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",e={getSetAttribute:"t"!==h.className,leadingWhitespace:3===h.firstChild.nodeType,tbody:!h.getElementsByTagName("tbody").length,htmlSerialize:!!h.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!u.value,optSelected:a.selected,enctype:!!i.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==i.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===i.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,e.noCloneChecked=u.cloneNode(!0).checked,o.disabled=!0,e.optDisabled=!a.disabled;try{delete h.test}catch(t){e.deleteExpando=!1}for(f in(u=i.createElement("input")).setAttribute("value",""),e.input=""===u.getAttribute("value"),u.value="t",u.setAttribute("type","radio"),e.radioValue="t"===u.value,u.setAttribute("checked","t"),u.setAttribute("name","t"),(c=i.createDocumentFragment()).appendChild(u),e.appendChecked=u.checked,e.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,h.attachEvent&&(h.attachEvent("onclick",function(){e.noCloneEvent=!1}),h.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})h.setAttribute(s="on"+f,"t"),e[f+"Bubbles"]=s in t||!1===h.attributes[s].expando;return h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===h.style.backgroundClip,y(function(){var n,r,o,a="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=i.getElementsByTagName("body")[0];u&&((n=i.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(h),h.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(o=h.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",l=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",e.reliableHiddenOffsets=l&&0===o[0].offsetHeight,h.innerHTML="",h.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",e.boxSizing=4===h.offsetWidth,e.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,t.getComputedStyle&&(e.pixelPosition="1%"!==(t.getComputedStyle(h,null)||{}).top,e.boxSizingReliable="4px"===(t.getComputedStyle(h,null)||{width:"4px"}).width,(r=h.appendChild(i.createElement("div"))).style.cssText=h.style.cssText=a,r.style.marginRight=r.style.width="0",h.style.width="1px",e.reliableMarginRight=!parseFloat((t.getComputedStyle(r,null)||{}).marginRight)),void 0!==h.style.zoom&&(h.innerHTML="",h.style.cssText=a+"width:1px;padding:1px;display:inline;zoom:1",e.inlineBlockNeedsLayout=3===h.offsetWidth,h.style.display="block",h.innerHTML="<div></div>",h.firstChild.style.width="5px",e.shrinkWrapBlocks=3!==h.offsetWidth,u.style.zoom=1),u.removeChild(n),n=h=o=r=null)}),n=o=c=a=r=u=null,e}();var L=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;function I(t,n,r,i){if(y.acceptData(t)){var o,a,u=y.expando,c="string"==typeof n,l=t.nodeType,f=l?y.cache:t,h=l?t[u]:t[u]&&u;if(h&&f[h]&&(i||f[h].data)||!c||r!==e)return h||(l?t[u]=h=s.pop()||y.guid++:h=u),f[h]||(f[h]={},l||(f[h].toJSON=y.noop)),"object"!=typeof n&&"function"!=typeof n||(i?f[h]=y.extend(f[h],n):f[h].data=y.extend(f[h].data,n)),o=f[h],i||(o.data||(o.data={}),o=o.data),r!==e&&(o[y.camelCase(n)]=r),c?null==(a=o[n])&&(a=o[y.camelCase(n)]):a=o,a}}function R(t,e,n){if(y.acceptData(t)){var r,i,o,a=t.nodeType,u=a?y.cache:t,c=a?t[y.expando]:y.expando;if(u[c]){if(e&&(r=n?u[c]:u[c].data)){for((i=0,o=(e=y.isArray(e)?e.concat(y.map(e,y.camelCase)):e in r?[e]:(e=y.camelCase(e))in r?[e]:e.split(" ")).length);i<o;i++)delete r[e[i]];if(!(n?q:y.isEmptyObject)(r))return}(n||(delete u[c].data,q(u[c])))&&(a?y.cleanData([t],!0):y.support.deleteExpando||u!=u.window?delete u[c]:u[c]=null)}}}function z(t,n,r){if(r===e&&1===t.nodeType){var i="data-"+n.replace(O,"-$1").toLowerCase();if("string"==typeof(r=t.getAttribute(i))){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:L.test(r)?y.parseJSON(r):r)}catch(t){}y.data(t,n,r)}else r=e}return r}function q(t){var e;for(e in t)if(("data"!==e||!y.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}y.extend({cache:{},expando:"jQuery"+("1.9.0"+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return!!(t=t.nodeType?y.cache[t[y.expando]]:t[y.expando])&&!q(t)},data:function(t,e,n){return I(t,e,n,!1)},removeData:function(t,e){return R(t,e,!1)},_data:function(t,e,n){return I(t,e,n,!0)},_removeData:function(t,e){return R(t,e,!0)},acceptData:function(t){var e=t.nodeName&&y.noData[t.nodeName.toLowerCase()];return!e||!0!==e&&t.getAttribute("classid")===e}}),y.fn.extend({data:function(t,n){var r,i,o=this[0],a=0,u=null;if(t===e){if(this.length&&(u=y.data(o),1===o.nodeType&&!y._data(o,"parsedAttrs"))){for(r=o.attributes;a<r.length;a++)(i=r[a].name).indexOf("data-")||(i=y.camelCase(i.substring(5)),z(o,i,u[i]));y._data(o,"parsedAttrs",!0)}return u}return"object"==typeof t?this.each(function(){y.data(this,t)}):y.access(this,function(n){if(n===e)return o?z(o,t,y.data(o,t)):null;this.each(function(){y.data(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){y.removeData(this,t)})}}),y.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=y._data(t,e),n&&(!r||y.isArray(n)?r=y._data(t,e,y.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=y.queue(t,e),r=n.length,i=n.shift(),o=y._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){y.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return y._data(t,n)||y._data(t,n,{empty:y.Callbacks("once memory").add(function(){y._removeData(t,e+"queue"),y._removeData(t,n)})})}}),y.fn.extend({queue:function(t,n){var r=2;return"string"!=typeof t&&(n=t,t="fx",r--),arguments.length<r?y.queue(this[0],t):n===e?this:this.each(function(){var e=y.queue(this,t,n);y._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&y.dequeue(this,t)})},dequeue:function(t){return this.each(function(){y.dequeue(this,t)})},delay:function(t,e){return t=y.fx&&y.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var r,i=1,o=y.Deferred(),a=this,u=this.length,c=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof t&&(n=t,t=e),t=t||"fx";u--;)(r=y._data(a[u],t+"queueHooks"))&&r.empty&&(i++,r.empty.add(c));return c(),o.promise(n)}});var F,P,B=/[\t\r\n]/g,H=/\r/g,$=/^(?:input|select|textarea|button|object)$/i,W=/^(?:a|area)$/i,U=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)$/i,V=y.support.getSetAttribute,Y=y.support.input;y.fn.extend({attr:function(t,e){return y.access(this,y.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){y.removeAttr(this,t)})},prop:function(t,e){return y.access(this,y.prop,t,e,arguments.length>1)},removeProp:function(t){return t=y.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(t){}})},addClass:function(t){var e,n,r,i,o,a=0,u=this.length,c="string"==typeof t&&t;if(y.isFunction(t))return this.each(function(e){y(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(_)||[];a<u;a++)if(r=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(B," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");n.className=y.trim(r)}return this},removeClass:function(t){var e,n,r,i,o,a=0,u=this.length,c=0===arguments.length||"string"==typeof t&&t;if(y.isFunction(t))return this.each(function(e){y(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(_)||[];a<u;a++)if(r=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(B," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");n.className=t?y.trim(r):""}return this},toggleClass:function(t,e){var n=typeof t,r="boolean"==typeof e;return y.isFunction(t)?this.each(function(n){y(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var i,o=0,a=y(this),u=e,c=t.match(_)||[];i=c[o++];)a[(u=r?u:!a.hasClass(i))?"addClass":"removeClass"](i);else"undefined"!==n&&"boolean"!==n||(this.className&&y._data(this,"__className__",this.className),this.className=this.className||!1===t?"":y._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(B," ").indexOf(e)>=0)return!0;return!1},val:function(t){var n,r,i,o=this[0];return arguments.length?(i=y.isFunction(t),this.each(function(r){var o,a=y(this);1===this.nodeType&&(null==(o=i?t.call(this,r,a.val()):t)?o="":"number"==typeof o?o+="":y.isArray(o)&&(o=y.map(o,function(t){return null==t?"":t+""})),(n=y.valHooks[this.type]||y.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,o,"value")!==e||(this.value=o))})):o?(n=y.valHooks[o.type]||y.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&(r=n.get(o,"value"))!==e?r:"string"==typeof(r=o.value)?r.replace(H,""):null==r?"":r:void 0}}),y.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],u=o?i+1:r.length,c=i<0?u:o?i:0;c<u;c++)if(((n=r[c]).selected||c===i)&&(y.support.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!y.nodeName(n.parentNode,"optgroup"))){if(e=y(n).val(),o)return e;a.push(e)}return a},set:function(t,e){var n=y.makeArray(e);return y(t).find("option").each(function(){this.selected=y.inArray(y(this).val(),n)>=0}),n.length||(t.selectedIndex=-1),n}}},attr:function(t,n,r){var i,o,a,u=t.nodeType;if(t&&3!==u&&8!==u&&2!==u)return void 0===t.getAttribute?y.prop(t,n,r):((a=1!==u||!y.isXMLDoc(t))&&(n=n.toLowerCase(),o=y.attrHooks[n]||(U.test(n)?P:F)),r===e?o&&a&&"get"in o&&null!==(i=o.get(t,n))?i:(void 0!==t.getAttribute&&(i=t.getAttribute(n)),null==i?e:i):null!==r?o&&a&&"set"in o&&(i=o.set(t,r,n))!==e?i:(t.setAttribute(n,r+""),r):void y.removeAttr(t,n))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(_);if(o&&1===t.nodeType)for(;n=o[i++];)r=y.propFix[n]||n,U.test(n)?!V&&G.test(n)?t[y.camelCase("default-"+n)]=t[r]=!1:t[r]=!1:y.attr(t,n,""),t.removeAttribute(V?n:r)},attrHooks:{type:{set:function(t,e){if(!y.support.radioValue&&"radio"===e&&y.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,n,r){var i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return(1!==a||!y.isXMLDoc(t))&&(n=y.propFix[n]||n,o=y.propHooks[n]),r!==e?o&&"set"in o&&(i=o.set(t,r,n))!==e?i:t[n]=r:o&&"get"in o&&null!==(i=o.get(t,n))?i:t[n]},propHooks:{tabIndex:{get:function(t){var n=t.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):$.test(t.nodeName)||W.test(t.nodeName)&&t.href?0:e}}}}),P={get:function(t,n){var r=y.prop(t,n),i="boolean"==typeof r&&t.getAttribute(n),o="boolean"==typeof r?Y&&V?null!=i:G.test(n)?t[y.camelCase("default-"+n)]:!!i:t.getAttributeNode(n);return o&&!1!==o.value?n.toLowerCase():e},set:function(t,e,n){return!1===e?y.removeAttr(t,n):Y&&V||!G.test(n)?t.setAttribute(!V&&y.propFix[n]||n,n):t[y.camelCase("default-"+n)]=t[n]=!0,n}},Y&&V||(y.attrHooks.value={get:function(t,n){var r=t.getAttributeNode(n);return y.nodeName(t,"input")?t.defaultValue:r&&r.specified?r.value:e},set:function(t,e,n){if(!y.nodeName(t,"input"))return F&&F.set(t,e,n);t.defaultValue=e}}),V||(F=y.valHooks.button={get:function(t,n){var r=t.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:e},set:function(t,n,r){var i=t.getAttributeNode(r);return i||t.setAttributeNode(i=t.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===t.getAttribute(r)?n:e}},y.attrHooks.contenteditable={get:F.get,set:function(t,e,n){F.set(t,""!==e&&e,n)}},y.each(["width","height"],function(t,e){y.attrHooks[e]=y.extend(y.attrHooks[e],{set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}})})),y.support.hrefNormalized||(y.each(["href","src","width","height"],function(t,n){y.attrHooks[n]=y.extend(y.attrHooks[n],{get:function(t){var r=t.getAttribute(n,2);return null==r?e:r}})}),y.each(["href","src"],function(t,e){y.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}})),y.support.style||(y.attrHooks.style={get:function(t){return t.style.cssText||e},set:function(t,e){return t.style.cssText=e+""}}),y.support.optSelected||(y.propHooks.selected=y.extend(y.propHooks.selected,{get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}})),y.support.enctype||(y.propFix.enctype="encoding"),y.support.checkOn||y.each(["radio","checkbox"],function(){y.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}}),y.each(["radio","checkbox"],function(){y.valHooks[this]=y.extend(y.valHooks[this],{set:function(t,e){if(y.isArray(e))return t.checked=y.inArray(y(t).val(),e)>=0}})});var X=/^(?:input|select|textarea)$/i,Z=/^key/,K=/^(?:mouse|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function tt(){return!0}function et(){return!1}y.event={global:{},add:function(t,n,r,i,o){var a,u,c,s,l,f,h,d,p,g,v,m=3!==t.nodeType&&8!==t.nodeType&&y._data(t);if(m){for(r.handler&&(r=(a=r).handler,o=a.selector),r.guid||(r.guid=y.guid++),(s=m.events)||(s=m.events={}),(u=m.handle)||((u=m.handle=function(t){return void 0===y||t&&y.event.triggered===t.type?e:y.event.dispatch.apply(u.elem,arguments)}).elem=t),l=(n=(n||"").match(_)||[""]).length;l--;)p=v=(c=Q.exec(n[l])||[])[1],g=(c[2]||"").split(".").sort(),h=y.event.special[p]||{},p=(o?h.delegateType:h.bindType)||p,h=y.event.special[p]||{},f=y.extend({type:p,origType:v,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&y.expr.match.needsContext.test(o),namespace:g.join(".")},a),(d=s[p])||((d=s[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,g,u)||(t.addEventListener?t.addEventListener(p,u,!1):t.attachEvent&&t.attachEvent("on"+p,u))),h.add&&(h.add.call(t,f),f.handler.guid||(f.handler.guid=r.guid)),o?d.splice(d.delegateCount++,0,f):d.push(f),y.event.global[p]=!0;t=null}},remove:function(t,e,n,r,i){var o,a,u,c,s,l,f,h,d,p,g,v=y.hasData(t)&&y._data(t);if(v&&(c=v.events)){for(s=(e=(e||"").match(_)||[""]).length;s--;)if(d=g=(u=Q.exec(e[s])||[])[1],p=(u[2]||"").split(".").sort(),d){for(f=y.event.special[d]||{},h=c[d=(r?f.delegateType:f.bindType)||d]||[],u=u[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)l=h[o],!i&&g!==l.origType||n&&n.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||y.removeEvent(t,d,v.handle),delete c[d])}else for(d in c)y.event.remove(t,d+e[s],n,r,!0);y.isEmptyObject(c)&&(delete v.handle,y._removeData(t,"events"))}},trigger:function(n,r,o,a){var u,c,s,l,f,h,d,p=[o||i],g=n.type||n,v=n.namespace?n.namespace.split("."):[];if(c=s=o=o||i,3!==o.nodeType&&8!==o.nodeType&&!J.test(g+y.event.triggered)&&(g.indexOf(".")>=0&&(g=(v=g.split(".")).shift(),v.sort()),f=g.indexOf(":")<0&&"on"+g,(n=n[y.expando]?n:new y.Event(g,"object"==typeof n&&n)).isTrigger=!0,n.namespace=v.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=e,n.target||(n.target=o),r=null==r?[n]:y.makeArray(r,[n]),d=y.event.special[g]||{},a||!d.trigger||!1!==d.trigger.apply(o,r))){if(!a&&!d.noBubble&&!y.isWindow(o)){for(l=d.delegateType||g,J.test(l+g)||(c=c.parentNode);c;c=c.parentNode)p.push(c),s=c;s===(o.ownerDocument||i)&&p.push(s.defaultView||s.parentWindow||t)}for(u=0;(c=p[u++])&&!n.isPropagationStopped();)n.type=u>1?l:d.bindType||g,(h=(y._data(c,"events")||{})[n.type]&&y._data(c,"handle"))&&h.apply(c,r),(h=f&&c[f])&&y.acceptData(c)&&h.apply&&!1===h.apply(c,r)&&n.preventDefault();if(n.type=g,!a&&!n.isDefaultPrevented()&&(!d._default||!1===d._default.apply(o.ownerDocument,r))&&("click"!==g||!y.nodeName(o,"a"))&&y.acceptData(o)&&f&&o[g]&&!y.isWindow(o)){(s=o[f])&&(o[f]=null),y.event.triggered=g;try{o[g]()}catch(t){}y.event.triggered=e,s&&(o[f]=s)}return n.result}},dispatch:function(t){t=y.event.fix(t);var n,r,i,o,a,u,c=h.call(arguments),s=(y._data(this,"events")||{})[t.type]||[],l=y.event.special[t.type]||{};if(c[0]=t,t.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(u=y.event.handlers.call(this,t,s),n=0;(o=u[n++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,r=0;(a=o.handlers[r++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(a.namespace)||(t.handleObj=a,t.data=a.data,(i=((y.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,c))!==e&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,n){var r,i,o,a,u=[],c=n.delegateCount,s=t.target;if(c&&s.nodeType&&(!t.button||"click"!==t.type))for(;s!=this;s=s.parentNode||this)if(!0!==s.disabled||"click"!==t.type){for(i=[],r=0;r<c;r++)i[o=(a=n[r]).selector+" "]===e&&(i[o]=a.needsContext?y(o,this).index(s)>=0:y.find(o,this,null,[s]).length),i[o]&&i.push(a);i.length&&u.push({elem:s,handlers:i})}return c<n.length&&u.push({elem:this,handlers:n.slice(c)}),u},fix:function(t){if(t[y.expando])return t;var e,n,r=t,o=y.event.fixHooks[t.type]||{},a=o.props?this.props.concat(o.props):this.props;for(t=new y.Event(r),e=a.length;e--;)t[n=a[e]]=r[n];return t.target||(t.target=r.srcElement||i),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,o.filter?o.filter(t,r):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var r,o,a,u=n.button,c=n.fromElement;return null==t.pageX&&null!=n.clientX&&(o=(r=t.target.ownerDocument||i).documentElement,a=r.body,t.pageX=n.clientX+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),t.pageY=n.clientY+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)),!t.relatedTarget&&c&&(t.relatedTarget=c===t.target?n.toElement:c),t.which||u===e||(t.which=1&u?1:2&u?3:4&u?2:0),t}},special:{load:{noBubble:!0},click:{trigger:function(){if(y.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1}},focus:{trigger:function(){if(this!==i.activeElement&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===i.activeElement&&this.blur)return this.blur(),!1},delegateType:"focusout"},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=y.extend(new y.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?y.event.trigger(i,null,e):y.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},y.removeEvent=i.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var r="on"+e;t.detachEvent&&(void 0===t[r]&&(t[r]=null),t.detachEvent(r,n))},y.Event=function(t,e){if(!(this instanceof y.Event))return new y.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||!1===t.returnValue||t.getPreventDefault&&t.getPreventDefault()?tt:et):this.type=t,e&&y.extend(this,e),this.timeStamp=t&&t.timeStamp||y.now(),this[y.expando]=!0},y.Event.prototype={isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=tt,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=tt,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()}},y.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){y.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||y.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),y.support.submitBubbles||(y.event.special.submit={setup:function(){if(y.nodeName(this,"form"))return!1;y.event.add(this,"click._submit keypress._submit",function(t){var n=t.target,r=y.nodeName(n,"input")||y.nodeName(n,"button")?n.form:e;r&&!y._data(r,"submitBubbles")&&(y.event.add(r,"submit._submit",function(t){t._submit_bubble=!0}),y._data(r,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&y.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(y.nodeName(this,"form"))return!1;y.event.remove(this,"._submit")}}),y.support.changeBubbles||(y.event.special.change={setup:function(){if(X.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(y.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),y.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),y.event.simulate("change",this,t,!0)})),!1;y.event.add(this,"beforeactivate._change",function(t){var e=t.target;X.test(e.nodeName)&&!y._data(e,"changeBubbles")&&(y.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||y.event.simulate("change",this.parentNode,t,!0)}),y._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return y.event.remove(this,"._change"),!X.test(this.nodeName)}}),y.support.focusinBubbles||y.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,r=function(t){y.event.simulate(e,t.target,y.event.fix(t),!0)};y.event.special[e]={setup:function(){0==n++&&i.addEventListener(t,r,!0)},teardown:function(){0==--n&&i.removeEventListener(t,r,!0)}}}),y.fn.extend({on:function(t,n,r,i,o){var a,u;if("object"==typeof t){for(u in"string"!=typeof n&&(r=r||n,n=e),t)this.on(u,n,r,t[u],o);return this}if(null==r&&null==i?(i=n,r=n=e):null==i&&("string"==typeof n?(i=r,r=e):(i=r,r=n,n=e)),!1===i)i=et;else if(!i)return this;return 1===o&&(a=i,(i=function(t){return y().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=y.guid++)),this.each(function(){y.event.add(this,t,i,r,n)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,n,r){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,y(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,n,t[o]);return this}return!1!==n&&"function"!=typeof n||(r=n,n=e),!1===r&&(r=et),this.each(function(){y.event.remove(this,t,r,n)})},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},trigger:function(t,e){return this.each(function(){y.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return y.event.trigger(t,e,n,!0)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),y.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){y.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)},Z.test(e)&&(y.event.fixHooks[e]=y.event.keyHooks),K.test(e)&&(y.event.fixHooks[e]=y.event.mouseHooks)}),function(t,e){var n,r,i,o,a,u,c,s,l,f,h,d,p,g,v,m,_,b="sizzle"+-new Date,x=t.document,w={},E=0,k=0,M=et(),N=et(),A=et(),C="undefined",T=[],S=T.pop,j=T.push,D=T.slice,L=T.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},O="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R=I.replace("w","w#"),z="\\["+O+"*("+I+")"+O+"*(?:([*^$|!~]?=)"+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+R+")|)|)"+O+"*\\]",q=":("+I+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+z.replace(3,8)+")*)|.*)\\)|)",F=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),P=new RegExp("^"+O+"*,"+O+"*"),B=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),H=new RegExp(q),$=new RegExp("^"+R+"$"),W={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),NAME:new RegExp("^\\[name=['\"]?("+I+")['\"]?\\]"),TAG:new RegExp("^("+I.replace("w","w*")+")"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},U=/[\x20\t\r\n\f]*[+~]/,G=/\{\s*\[native code\]\s*\}/,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/'|\\/g,K=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,J=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,Q=function(t,e){var n="0x"+e-65536;return n!=n?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{D.call(h.childNodes,0)[0].nodeType}catch(t){D=function(t){for(var e,n=[];e=this[t];t++)n.push(e);return n}}function tt(t){return G.test(t+"")}function et(){var t,e=[];return t=function(n,r){return e.push(n+=" ")>i.cacheLength&&delete t[e.shift()],t[n]=r}}function nt(t){return t[b]=!0,t}function rt(t){var e=f.createElement("div");try{return t(e)}catch(t){return!1}finally{e=null}}function it(t,e,n,r){var o,a,c,s,h,g,v,y,_,E;if((e?e.ownerDocument||e:x)!==f&&l(e),n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=(e=e||f).nodeType)&&9!==s)return[];if(!d&&!r){if(o=V.exec(t))if(c=o[1]){if(9===s){if(!(a=e.getElementById(c))||!a.parentNode)return n;if(a.id===c)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(c))&&m(e,a)&&a.id===c)return n.push(a),n}else{if(o[2])return j.apply(n,D.call(e.getElementsByTagName(t),0)),n;if((c=o[3])&&w.getByClassName&&e.getElementsByClassName)return j.apply(n,D.call(e.getElementsByClassName(c),0)),n}if(w.qsa&&!p.test(t)){if(v=!0,y=b,_=e,E=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(g=st(t),(v=e.getAttribute("id"))?y=v.replace(Z,"\\$&"):e.setAttribute("id",y),y="[id='"+y+"'] ",h=g.length;h--;)g[h]=y+lt(g[h]);_=U.test(t)&&e.parentNode||e,E=g.join(",")}if(E)try{return j.apply(n,D.call(_.querySelectorAll(E),0)),n}catch(t){}finally{v||e.removeAttribute("id")}}}return function(t,e,n,r){var o,a,c,s,l,f=st(t);if(!r&&1===f.length){if((a=f[0]=f[0].slice(0)).length>2&&"ID"===(c=a[0]).type&&9===e.nodeType&&!d&&i.relative[a[1].type]){if(!(e=i.find.ID(c.matches[0].replace(J,Q),e)[0]))return n;t=t.slice(a.shift().value.length)}for(o=W.needsContext.test(t)?-1:a.length-1;o>=0&&(c=a[o],!i.relative[s=c.type]);o--)if((l=i.find[s])&&(r=l(c.matches[0].replace(J,Q),U.test(a[0].type)&&e.parentNode||e))){if(a.splice(o,1),!(t=r.length&&lt(a)))return j.apply(n,D.call(r,0)),n;break}}return u(t,f)(r,e,d,n,U.test(t)),n}(t.replace(F,"$1"),e,n,r)}function ot(t,e){for(var n=t&&e&&t.nextSibling;n;n=n.nextSibling)if(n===e)return-1;return t?1:-1}function at(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ut(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ct(t){return nt(function(e){return e=+e,nt(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}for(n in a=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},l=it.setDocument=function(t){var e=t?t.ownerDocument||t:x;return e!==f&&9===e.nodeType&&e.documentElement?(f=e,h=e.documentElement,d=a(e),w.tagNameNoComments=rt(function(t){return t.appendChild(e.createComment("")),!t.getElementsByTagName("*").length}),w.attributes=rt(function(t){t.innerHTML="<select></select>";var e=typeof t.lastChild.getAttribute("multiple");return"boolean"!==e&&"string"!==e}),w.getByClassName=rt(function(t){return t.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!(!t.getElementsByClassName||!t.getElementsByClassName("e").length)&&(t.lastChild.className="e",2===t.getElementsByClassName("e").length)}),w.getByName=rt(function(t){t.id=b+0,t.innerHTML="<a name='"+b+"'></a><div name='"+b+"'></div>",h.insertBefore(t,h.firstChild);var n=e.getElementsByName&&e.getElementsByName(b).length===2+e.getElementsByName(b+0).length;return w.getIdNotName=!e.getElementById(b),h.removeChild(t),n}),i.attrHandle=rt(function(t){return t.innerHTML="<a href='#'></a>",t.firstChild&&typeof t.firstChild.getAttribute!==C&&"#"===t.firstChild.getAttribute("href")})?{}:{href:function(t){return t.getAttribute("href",2)},type:function(t){return t.getAttribute("type")}},w.getIdNotName?(i.find.ID=function(t,e){if(typeof e.getElementById!==C&&!d){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(t){var e=t.replace(J,Q);return function(t){return t.getAttribute("id")===e}}):(i.find.ID=function(t,e){if(typeof e.getElementById!==C&&!d){var n=e.getElementById(t);return n?n.id===t||typeof n.getAttributeNode!==C&&n.getAttributeNode("id").value===t?[n]:void 0:[]}},i.filter.ID=function(t){var e=t.replace(J,Q);return function(t){var n=typeof t.getAttributeNode!==C&&t.getAttributeNode("id");return n&&n.value===e}}),i.find.TAG=w.tagNameNoComments?function(t,e){if(typeof e.getElementsByTagName!==C)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i];i++)1===n.nodeType&&r.push(n);return r}return o},i.find.NAME=w.getByName&&function(t,e){if(typeof e.getElementsByName!==C)return e.getElementsByName(name)},i.find.CLASS=w.getByClassName&&function(t,e){if(typeof e.getElementsByClassName!==C&&!d)return e.getElementsByClassName(t)},g=[],p=[":focus"],(w.qsa=tt(e.querySelectorAll))&&(rt(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||p.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),t.querySelectorAll(":checked").length||p.push(":checked")}),rt(function(t){t.innerHTML="<input type='hidden' i=''/>",t.querySelectorAll("[i^='']").length&&p.push("[*^$]="+O+"*(?:\"\"|'')"),t.querySelectorAll(":enabled").length||p.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),p.push(",.*:")})),(w.matchesSelector=tt(v=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&rt(function(t){w.disconnectedMatch=v.call(t,"div"),v.call(t,"[s!='']:x"),g.push("!=",q)}),p=new RegExp(p.join("|")),g=new RegExp(g.join("|")),m=tt(h.contains)||h.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},_=h.compareDocumentPosition?function(t,n){var r;return t===n?(c=!0,0):(r=n.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(n))?1&r||t.parentNode&&11===t.parentNode.nodeType?t===e||m(x,t)?-1:n===e||m(x,n)?1:0:4&r?-1:1:t.compareDocumentPosition?-1:1}:function(t,n){var r,i=0,o=t.parentNode,a=n.parentNode,u=[t],s=[n];if(t===n)return c=!0,0;if(t.sourceIndex&&n.sourceIndex)return(~n.sourceIndex||1<<31)-(m(x,t)&&~t.sourceIndex||1<<31);if(!o||!a)return t===e?-1:n===e?1:o?-1:a?1:0;if(o===a)return ot(t,n);for(r=t;r=r.parentNode;)u.unshift(r);for(r=n;r=r.parentNode;)s.unshift(r);for(;u[i]===s[i];)i++;return i?ot(u[i],s[i]):u[i]===x?-1:s[i]===x?1:0},c=!1,[0,0].sort(_),w.detectDuplicates=c,f):f},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&l(t),e=e.replace(K,"='$1']"),w.matchesSelector&&!d&&(!g||!g.test(e))&&!p.test(e))try{var n=v.call(t,e);if(n||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return it(e,f,null,[t]).length>0},it.contains=function(t,e){return(t.ownerDocument||t)!==f&&l(t),m(t,e)},it.attr=function(t,e){var n;return(t.ownerDocument||t)!==f&&l(t),d||(e=e.toLowerCase()),(n=i.attrHandle[e])?n(t):d||w.attributes?t.getAttribute(e):((n=t.getAttributeNode(e))||t.getAttribute(e))&&!0===t[e]?e:n&&n.specified?n.value:null},it.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},it.uniqueSort=function(t){var e,n=[],r=1,i=0;if(c=!w.detectDuplicates,t.sort(_),c){for(;e=t[r];r++)e===t[r-1]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return t},o=it.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r];r++)n+=o(e);return n},i=it.selectors={cacheLength:50,createPseudo:nt,match:W,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,Q),t[3]=(t[4]||t[5]||"").replace(J,Q),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||it.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[5]&&t[2];return W.CHILD.test(t[0])?null:(t[4]?t[2]=t[4]:n&&H.test(n)&&(e=st(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){return"*"===t?function(){return!0}:(t=t.replace(J,Q).toLowerCase(),function(e){return e.nodeName&&e.nodeName.toLowerCase()===t})},CLASS:function(t){var e=M[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&M(t,function(t){return e.test(t.className||typeof t.getAttribute!==C&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=it.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.substr(i.length-n.length)===n:"~="===e?(" "+i+" ").indexOf(n)>-1:"|="===e&&(i===n||i.substr(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,c){var s,l,f,h,d,p,g=o!==a?"nextSibling":"previousSibling",v=e.parentNode,y=u&&e.nodeName.toLowerCase(),m=!c&&!u;if(v){if(o){for(;g;){for(f=e;f=f[g];)if(u?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&m){for(d=(s=(l=v[b]||(v[b]={}))[t]||[])[0]===E&&s[1],h=s[0]===E&&s[2],f=d&&v.childNodes[d];f=++d&&f&&f[g]||(h=d=0)||p.pop();)if(1===f.nodeType&&++h&&f===e){l[t]=[E,d,h];break}}else if(m&&(s=(e[b]||(e[b]={}))[t])&&s[0]===E)h=s[1];else for(;(f=++d&&f&&f[g]||(h=d=0)||p.pop())&&((u?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++h||(m&&((f[b]||(f[b]={}))[t]=[E,h]),f!==e)););return(h-=i)===r||h%r==0&&h/r>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||it.error("unsupported pseudo: "+t);return r[b]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?nt(function(t,n){for(var i,o=r(t,e),a=o.length;a--;)t[i=L.call(t,o[a])]=!(n[i]=o[a])}):function(t){return r(t,0,n)}):r}},pseudos:{not:nt(function(t){var e=[],n=[],r=u(t.replace(F,"$1"));return r[b]?nt(function(t,e,n,i){for(var o,a=r(t,null,i,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(e[u]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),!n.pop()}}),has:nt(function(t){return function(e){return it(t,e).length>0}}),contains:nt(function(t){return function(e){return(e.textContent||e.innerText||o(e)).indexOf(t)>-1}}),lang:nt(function(t){return $.test(t||"")||it.error("unsupported lang: "+t),t=t.replace(J,Q).toLowerCase(),function(e){var n;do{if(n=d?e.getAttribute("xml:lang")||e.getAttribute("lang"):e.lang)return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeName>"@"||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return Y.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||e.toLowerCase()===t.type)},first:ct(function(){return[0]}),last:ct(function(t,e){return[e-1]}),eq:ct(function(t,e,n){return[n<0?n+e:n]}),even:ct(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ct(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ct(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:ct(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=at(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ut(n);function st(t,e){var n,r,o,a,u,c,s,l=N[t+" "];if(l)return e?0:l.slice(0);for(u=t,c=[],s=i.preFilter;u;){for(a in n&&!(r=P.exec(u))||(r&&(u=u.slice(r[0].length)||u),c.push(o=[])),n=!1,(r=B.exec(u))&&(n=r.shift(),o.push({value:n,type:r[0].replace(F," ")}),u=u.slice(n.length)),i.filter)!(r=W[a].exec(u))||s[a]&&!(r=s[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),u=u.slice(n.length));if(!n)break}return e?u.length:u?it.error(t):N(t,c).slice(0)}function lt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function ft(t,e,n){var i=e.dir,o=n&&"parentNode"===e.dir,a=k++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r)}:function(e,n,u){var c,s,l,f=E+" "+a;if(u){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,u))return!0}else for(;e=e[i];)if(1===e.nodeType||o)if((s=(l=e[b]||(e[b]={}))[i])&&s[0]===f){if(!0===(c=s[1])||c===r)return!0===c}else if((s=l[i]=[f])[1]=t(e,n,u)||r,!0===s[1])return!0}}function ht(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function dt(t,e,n,r,i){for(var o,a=[],u=0,c=t.length,s=null!=e;u<c;u++)(o=t[u])&&(n&&!n(o,r,i)||(a.push(o),s&&e.push(u)));return a}function pt(t,e,n,r,i,o){return r&&!r[b]&&(r=pt(r)),i&&!i[b]&&(i=pt(i,o)),nt(function(o,a,u,c){var s,l,f,h=[],d=[],p=a.length,g=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)it(t,e[r],n);return n}(e||"*",u.nodeType?[u]:u,[]),v=!t||!o&&e?g:dt(g,h,t,u,c),y=n?i||(o?t:p||r)?[]:a:v;if(n&&n(v,y,u,c),r)for(s=dt(y,d),r(s,[],u,c),l=s.length;l--;)(f=s[l])&&(y[d[l]]=!(v[d[l]]=f));if(o){if(i||t){if(i){for(s=[],l=y.length;l--;)(f=y[l])&&s.push(v[l]=f);i(null,y=[],s,c)}for(l=y.length;l--;)(f=y[l])&&(s=i?L.call(o,f):h[l])>-1&&(o[s]=!(a[s]=f))}}else y=dt(y===a?y.splice(p,y.length):y),i?i(null,a,y,c):j.apply(a,y)})}function gt(t){for(var e,n,r,o=t.length,a=i.relative[t[0].type],u=a||i.relative[" "],c=a?1:0,l=ft(function(t){return t===e},u,!0),f=ft(function(t){return L.call(e,t)>-1},u,!0),h=[function(t,n,r){return!a&&(r||n!==s)||((e=n).nodeType?l(t,n,r):f(t,n,r))}];c<o;c++)if(n=i.relative[t[c].type])h=[ft(ht(h),n)];else{if((n=i.filter[t[c].type].apply(null,t[c].matches))[b]){for(r=++c;r<o&&!i.relative[t[r].type];r++);return pt(c>1&&ht(h),c>1&&lt(t.slice(0,c-1)).replace(F,"$1"),n,c<r&&gt(t.slice(c,r)),r<o&&gt(t=t.slice(r)),r<o&&lt(t))}h.push(n)}return ht(h)}function vt(){}u=it.compile=function(t,e){var n,o,a,u,c,l,h,d=[],p=[],g=A[t+" "];if(!g){for(e||(e=st(t)),n=e.length;n--;)(g=gt(e[n]))[b]?d.push(g):p.push(g);g=A(t,(o=p,u=0,c=(a=d).length>0,l=o.length>0,h=function(t,e,n,h,d){var p,g,v,y=[],m=0,_="0",b=t&&[],x=null!=d,w=s,k=t||l&&i.find.TAG("*",d&&e.parentNode||e),M=E+=null==w?1:Math.E;for(x&&(s=e!==f&&e,r=u);null!=(p=k[_]);_++){if(l&&p){for(g=0;v=o[g];g++)if(v(p,e,n)){h.push(p);break}x&&(E=M,r=++u)}c&&((p=!v&&p)&&m--,t&&b.push(p))}if(m+=_,c&&_!==m){for(g=0;v=a[g];g++)v(b,y,e,n);if(t){if(m>0)for(;_--;)b[_]||y[_]||(y[_]=S.call(h));y=dt(y)}j.apply(h,y),x&&!t&&y.length>0&&m+a.length>1&&it.uniqueSort(h)}return x&&(E=M,s=w),b},c?nt(h):h))}return g},i.pseudos.nth=i.pseudos.eq,i.filters=vt.prototype=i.pseudos,i.setFilters=new vt,l(),it.attr=y.attr,y.find=it,y.expr=it.selectors,y.expr[":"]=y.expr.pseudos,y.unique=it.uniqueSort,y.text=it.getText,y.isXMLDoc=it.isXML,y.contains=it.contains}(t);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,ot=y.expr.match.needsContext,at={children:!0,contents:!0,next:!0,prev:!0};function ut(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function ct(t,e,n){if(e=e||0,y.isFunction(e))return y.grep(t,function(t,r){return!!e.call(t,r,t)===n});if(e.nodeType)return y.grep(t,function(t){return t===e===n});if("string"==typeof e){var r=y.grep(t,function(t){return 1===t.nodeType});if(it.test(e))return y.filter(e,r,!n);e=y.filter(e,r)}return y.grep(t,function(t){return y.inArray(t,e)>=0===n})}function st(t){var e=lt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}y.fn.extend({find:function(t){var e,n,r;if("string"!=typeof t)return r=this,this.pushStack(y(t).filter(function(){for(e=0;e<r.length;e++)if(y.contains(r[e],this))return!0}));for(n=[],e=0;e<this.length;e++)y.find(t,this[e],n);return(n=this.pushStack(y.unique(n))).selector=(this.selector?this.selector+" ":"")+t,n},has:function(t){var e,n=y(t,this),r=n.length;return this.filter(function(){for(e=0;e<r;e++)if(y.contains(this,n[e]))return!0})},not:function(t){return this.pushStack(ct(this,t,!1))},filter:function(t){return this.pushStack(ct(this,t,!0))},is:function(t){return!!t&&("string"==typeof t?ot.test(t)?y(t,this.context).index(this[0])>=0:y.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=ot.test(t)||"string"!=typeof t?y(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n.ownerDocument&&n!==e&&11!==n.nodeType;){if(a?a.index(n)>-1:y.find.matchesSelector(n,t)){o.push(n);break}n=n.parentNode}return this.pushStack(o.length>1?y.unique(o):o)},index:function(t){return t?"string"==typeof t?y.inArray(this[0],y(t)):y.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n="string"==typeof t?y(t,e):y.makeArray(t&&t.nodeType?[t]:t),r=y.merge(this.get(),n);return this.pushStack(y.unique(r))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),y.fn.andSelf=y.fn.addBack,y.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return y.dir(t,"parentNode")},parentsUntil:function(t,e,n){return y.dir(t,"parentNode",n)},next:function(t){return ut(t,"nextSibling")},prev:function(t){return ut(t,"previousSibling")},nextAll:function(t){return y.dir(t,"nextSibling")},prevAll:function(t){return y.dir(t,"previousSibling")},nextUntil:function(t,e,n){return y.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return y.dir(t,"previousSibling",n)},siblings:function(t){return y.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return y.sibling(t.firstChild)},contents:function(t){return y.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:y.merge([],t.childNodes)}},function(t,e){y.fn[t]=function(n,r){var i=y.map(this,e,n);return nt.test(t)||(r=n),r&&"string"==typeof r&&(i=y.filter(r,i)),i=this.length>1&&!at[t]?y.unique(i):i,this.length>1&&rt.test(t)&&(i=i.reverse()),this.pushStack(i)}}),y.extend({filter:function(t,e,n){return n&&(t=":not("+t+")"),1===e.length?y.find.matchesSelector(e[0],t)?[e[0]]:[]:y.find.matches(t,e)},dir:function(t,n,r){for(var i=[],o=t[n];o&&9!==o.nodeType&&(r===e||1!==o.nodeType||!y(o).is(r));)1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var lt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ft=/ jQuery\d+="(?:null|\d+)"/g,ht=new RegExp("<(?:"+lt+")[\\s/>]","i"),dt=/^\s+/,pt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,gt=/<([\w:]+)/,vt=/<tbody/i,yt=/<|&#?\w+;/,mt=/<(?:script|style|link)/i,_t=/^(?:checkbox|radio)$/i,bt=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/^$|\/(?:java|ecma)script/i,wt=/^true\/(.*)/,Et=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,kt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:y.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Mt=st(i).appendChild(i.createElement("div"));function Nt(t){var e=t.getAttributeNode("type");return t.type=(e&&e.specified)+"/"+t.type,t}function At(t){var e=wt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Ct(t,e){for(var n,r=0;null!=(n=t[r]);r++)y._data(n,"globalEval",!e||y._data(e[r],"globalEval"))}function Tt(t,e){if(1===e.nodeType&&y.hasData(t)){var n,r,i,o=y._data(t),a=y._data(e,o),u=o.events;if(u)for(n in delete a.handle,a.events={},u)for(r=0,i=u[n].length;r<i;r++)y.event.add(e,n,u[n][r]);a.data&&(a.data=y.extend({},a.data))}}function St(t,e){var n,r,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!y.support.noCloneEvent&&e[y.expando]){for(i in(r=y._data(e)).events)y.removeEvent(e,i,r.handle);e.removeAttribute(y.expando)}"script"===n&&e.text!==t.text?(Nt(e).text=t.text,At(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),y.support.html5Clone&&t.innerHTML&&!y.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&_t.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}function jt(t,n){var r,i,o=0,a=void 0!==t.getElementsByTagName?t.getElementsByTagName(n||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(n||"*"):e;if(!a)for(a=[],r=t.childNodes||t;null!=(i=r[o]);o++)!n||y.nodeName(i,n)?a.push(i):y.merge(a,jt(i,n));return n===e||n&&y.nodeName(t,n)?y.merge([t],a):a}function Dt(t){_t.test(t.type)&&(t.defaultChecked=t.checked)}kt.optgroup=kt.option,kt.tbody=kt.tfoot=kt.colgroup=kt.caption=kt.thead,kt.th=kt.td,y.fn.extend({text:function(t){return y.access(this,function(t){return t===e?y.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(t))},null,t,arguments.length)},wrapAll:function(t){if(y.isFunction(t))return this.each(function(e){y(this).wrapAll(t.call(this,e))});if(this[0]){var e=y(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return y.isFunction(t)?this.each(function(e){y(this).wrapInner(t.call(this,e))}):this.each(function(){var e=y(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y.isFunction(t);return this.each(function(n){y(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){y.nodeName(this,"body")||y(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this.appendChild(t)})},prepend:function(){return this.domManip(arguments,!0,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this.insertBefore(t,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,!1,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=0;null!=(n=this[r]);r++)(!t||y.filter(t,[n]).length>0)&&(e||1!==n.nodeType||y.cleanData(jt(n)),n.parentNode&&(e&&y.contains(n.ownerDocument,n)&&Ct(jt(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&y.cleanData(jt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&y.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return y.clone(this,t,e)})},html:function(t){return y.access(this,function(t){var n=this[0]||{},r=0,i=this.length;if(t===e)return 1===n.nodeType?n.innerHTML.replace(ft,""):e;if("string"==typeof t&&!mt.test(t)&&(y.support.htmlSerialize||!ht.test(t))&&(y.support.leadingWhitespace||!dt.test(t))&&!kt[(gt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(pt,"<$1></$2>");try{for(;r<i;r++)1===(n=this[r]||{}).nodeType&&(y.cleanData(jt(n,!1)),n.innerHTML=t);n=0}catch(t){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(t){return y.isFunction(t)||"string"==typeof t||(t=y(t).not(this).detach()),this.domManip([t],!0,function(t){var e=this.nextSibling,n=this.parentNode;(n&&1===this.nodeType||11===this.nodeType)&&(y(this).remove(),e?e.parentNode.insertBefore(t,e):n.appendChild(t))})},detach:function(t){return this.remove(t,!0)},domManip:function(t,n,r){t=l.apply([],t);var i,o,a,u,c,s,f,h,d=0,p=this.length,g=this,v=p-1,m=t[0],_=y.isFunction(m);if(_||!(p<=1||"string"!=typeof m||y.support.checkClone)&&bt.test(m))return this.each(function(i){var o=g.eq(i);_&&(t[0]=m.call(this,i,n?o.html():e)),o.domManip(t,n,r)});if(p&&(o=(i=y.buildFragment(t,this[0].ownerDocument,!1,this)).firstChild,1===i.childNodes.length&&(i=o),o)){for(n=n&&y.nodeName(o,"tr"),u=(a=y.map(jt(i,"script"),Nt)).length;d<p;d++)c=i,d!==v&&(c=y.clone(c,!0,!0),u&&y.merge(a,jt(c,"script"))),r.call(n&&y.nodeName(this[d],"table")?(f=this[d],h="tbody",f.getElementsByTagName(h)[0]||f.appendChild(f.ownerDocument.createElement(h))):this[d],c,d);if(u)for(s=a[a.length-1].ownerDocument,y.map(a,At),d=0;d<u;d++)c=a[d],xt.test(c.type||"")&&!y._data(c,"globalEval")&&y.contains(s,c)&&(c.src?y.ajax({url:c.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):y.globalEval((c.text||c.textContent||c.innerHTML||"").replace(Et,"")));i=o=null}return this}}),y.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){y.fn[t]=function(t){for(var n,r=0,i=[],o=y(t),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),y(o[r])[e](n),f.apply(i,n.get());return this.pushStack(i)}}),y.extend({clone:function(t,e,n){var r,i,o,a,u,c=y.contains(t.ownerDocument,t);if(y.support.html5Clone||y.isXMLDoc(t)||!ht.test("<"+t.nodeName+">")?u=t.cloneNode(!0):(Mt.innerHTML=t.outerHTML,Mt.removeChild(u=Mt.firstChild)),!(y.support.noCloneEvent&&y.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||y.isXMLDoc(t)))for(r=jt(u),i=jt(t),a=0;null!=(o=i[a]);++a)r[a]&&St(o,r[a]);if(e)if(n)for(i=i||jt(t),r=r||jt(u),a=0;null!=(o=i[a]);a++)Tt(o,r[a]);else Tt(t,u);return(r=jt(u,"script")).length>0&&Ct(r,!c&&jt(t,"script")),r=i=o=null,u},buildFragment:function(t,e,n,r){for(var i,o,a,u,c,s,l,f=t.length,h=st(e),d=[],p=0;p<f;p++)if((o=t[p])||0===o)if("object"===y.type(o))y.merge(d,o.nodeType?[o]:o);else if(yt.test(o)){for(u=u||h.appendChild(e.createElement("div")),a=(gt.exec(o)||["",""])[1].toLowerCase(),c=kt[a]||kt._default,u.innerHTML=c[1]+o.replace(pt,"<$1></$2>")+c[2],l=c[0];l--;)u=u.lastChild;if(!y.support.leadingWhitespace&&dt.test(o)&&d.push(e.createTextNode(dt.exec(o)[0])),!y.support.tbody)for(l=(o="table"!==a||vt.test(o)?"<table>"!==c[1]||vt.test(o)?0:u:u.firstChild)&&o.childNodes.length;l--;)y.nodeName(s=o.childNodes[l],"tbody")&&!s.childNodes.length&&o.removeChild(s);for(y.merge(d,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=h.lastChild}else d.push(e.createTextNode(o));for(u&&h.removeChild(u),y.support.appendChecked||y.grep(jt(d,"input"),Dt),p=0;o=d[p++];)if((!r||-1===y.inArray(o,r))&&(i=y.contains(o.ownerDocument,o),u=jt(h.appendChild(o),"script"),i&&Ct(u),n))for(l=0;o=u[l++];)xt.test(o.type||"")&&n.push(o);return u=null,h},cleanData:function(t,e){for(var n,r,i,o,a=0,u=y.expando,c=y.cache,l=y.support.deleteExpando,f=y.event.special;null!=(i=t[a]);a++)if((e||y.acceptData(i))&&(n=(r=i[u])&&c[r])){if(n.events)for(o in n.events)f[o]?y.event.remove(i,o):y.removeEvent(i,o,n.handle);c[r]&&(delete c[r],l?delete i[u]:void 0!==i.removeAttribute?i.removeAttribute(u):i[u]=null,s.push(r))}}});var Lt,Ot,It,Rt=/alpha\([^)]*\)/i,zt=/opacity\s*=\s*([^)]*)/,qt=/^(top|right|bottom|left)$/,Ft=/^(none|table(?!-c[ea]).+)/,Pt=/^margin/,Bt=new RegExp("^("+m+")(.*)$","i"),Ht=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),$t=new RegExp("^([+-])=("+m+")","i"),Wt={BODY:"block"},Ut={position:"absolute",visibility:"hidden",display:"block"},Gt={letterSpacing:0,fontWeight:400},Vt=["Top","Right","Bottom","Left"],Yt=["Webkit","O","Moz","ms"];function Xt(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=Yt.length;i--;)if((e=Yt[i]+n)in t)return e;return r}function Zt(t,e){return t=e||t,"none"===y.css(t,"display")||!y.contains(t.ownerDocument,t)}function Kt(t,e){for(var n,r=[],i=0,o=t.length;i<o;i++)(n=t[i]).style&&(r[i]=y._data(n,"olddisplay"),e?(r[i]||"none"!==n.style.display||(n.style.display=""),""===n.style.display&&Zt(n)&&(r[i]=y._data(n,"olddisplay",ee(n.nodeName)))):r[i]||Zt(n)||y._data(n,"olddisplay",y.css(n,"display")));for(i=0;i<o;i++)(n=t[i]).style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?r[i]||"":"none"));return t}function Jt(t,e,n){var r=Bt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function Qt(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=y.css(t,n+Vt[o],!0,i)),r?("content"===n&&(a-=y.css(t,"padding"+Vt[o],!0,i)),"margin"!==n&&(a-=y.css(t,"border"+Vt[o]+"Width",!0,i))):(a+=y.css(t,"padding"+Vt[o],!0,i),"padding"!==n&&(a+=y.css(t,"border"+Vt[o]+"Width",!0,i)));return a}function te(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Ot(t),a=y.support.boxSizing&&"border-box"===y.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Lt(t,e,o))<0||null==i)&&(i=t.style[e]),Ht.test(i))return i;r=a&&(y.support.boxSizingReliable||i===t.style[e]),i=parseFloat(i)||0}return i+Qt(t,e,n||(a?"border":"content"),r,o)+"px"}function ee(t){var e=i,n=Wt[t];return n||("none"!==(n=ne(t,e))&&n||((e=((It=(It||y("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(e.documentElement))[0].contentWindow||It[0].contentDocument).document).write("<!doctype html><html><body>"),e.close(),n=ne(t,e),It.detach()),Wt[t]=n),n}function ne(t,e){var n=y(e.createElement(t)).appendTo(e.body),r=y.css(n[0],"display");return n.remove(),r}y.fn.extend({css:function(t,n){return y.access(this,function(t,n,r){var i,o,a={},u=0;if(y.isArray(n)){for(i=Ot(t),o=n.length;u<o;u++)a[n[u]]=y.css(t,n[u],!1,i);return a}return r!==e?y.style(t,n,r):y.css(t,n)},t,n,arguments.length>1)},show:function(){return Kt(this,!0)},hide:function(){return Kt(this)},toggle:function(t){var e="boolean"==typeof t;return this.each(function(){(e?t:Zt(this))?y(this).show():y(this).hide()})}}),y.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Lt(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:y.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,n,r,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,a,u,c=y.camelCase(n),s=t.style;if(n=y.cssProps[c]||(y.cssProps[c]=Xt(s,c)),u=y.cssHooks[n]||y.cssHooks[c],r===e)return u&&"get"in u&&(o=u.get(t,!1,i))!==e?o:s[n];if(!("string"===(a=typeof r)&&(o=$t.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(y.css(t,n)),a="number"),null==r||"number"===a&&isNaN(r)||("number"!==a||y.cssNumber[c]||(r+="px"),y.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(s[n]="inherit"),u&&"set"in u&&(r=u.set(t,r,i))===e)))try{s[n]=r}catch(t){}}},css:function(t,n,r,i){var o,a,u,c=y.camelCase(n);return n=y.cssProps[c]||(y.cssProps[c]=Xt(t.style,c)),(u=y.cssHooks[n]||y.cssHooks[c])&&"get"in u&&(o=u.get(t,!0,r)),o===e&&(o=Lt(t,n,i)),"normal"===o&&n in Gt&&(o=Gt[n]),r?(a=parseFloat(o),!0===r||y.isNumeric(a)?a||0:o):o},swap:function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i}}),t.getComputedStyle?(Ot=function(e){return t.getComputedStyle(e,null)},Lt=function(t,n,r){var i,o,a,u=r||Ot(t),c=u?u.getPropertyValue(n)||u[n]:e,s=t.style;return u&&(""!==c||y.contains(t.ownerDocument,t)||(c=y.style(t,n)),Ht.test(c)&&Pt.test(n)&&(i=s.width,o=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=c,c=u.width,s.width=i,s.minWidth=o,s.maxWidth=a)),c}):i.documentElement.currentStyle&&(Ot=function(t){return t.currentStyle},Lt=function(t,n,r){var i,o,a,u=r||Ot(t),c=u?u[n]:e,s=t.style;return null==c&&s&&s[n]&&(c=s[n]),Ht.test(c)&&!qt.test(n)&&(i=s.left,(a=(o=t.runtimeStyle)&&o.left)&&(o.left=t.currentStyle.left),s.left="fontSize"===n?"1em":c,c=s.pixelLeft+"px",s.left=i,a&&(o.left=a)),""===c?"auto":c}),y.each(["height","width"],function(t,e){y.cssHooks[e]={get:function(t,n,r){if(n)return 0===t.offsetWidth&&Ft.test(y.css(t,"display"))?y.swap(t,Ut,function(){return te(t,e,r)}):te(t,e,r)},set:function(t,n,r){var i=r&&Ot(t);return Jt(0,n,r?Qt(t,e,r,y.support.boxSizing&&"border-box"===y.css(t,"boxSizing",!1,i),i):0)}}}),y.support.opacity||(y.cssHooks.opacity={get:function(t,e){return zt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,r=t.currentStyle,i=y.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===y.trim(o.replace(Rt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||r&&!r.filter)||(n.filter=Rt.test(o)?o.replace(Rt,i):o+" "+i)}}),y(function(){y.support.reliableMarginRight||(y.cssHooks.marginRight={get:function(t,e){if(e)return y.swap(t,{display:"inline-block"},Lt,[t,"marginRight"])}}),!y.support.pixelPosition&&y.fn.position&&y.each(["top","left"],function(t,e){y.cssHooks[e]={get:function(t,n){if(n)return n=Lt(t,e),Ht.test(n)?y(t).position()[e]+"px":n}}})}),y.expr&&y.expr.filters&&(y.expr.filters.hidden=function(t){return 0===t.offsetWidth&&0===t.offsetHeight||!y.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||y.css(t,"display"))},y.expr.filters.visible=function(t){return!y.expr.filters.hidden(t)}),y.each({margin:"",padding:"",border:"Width"},function(t,e){y.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+Vt[r]+e]=o[r]||o[r-2]||o[0];return i}},Pt.test(t)||(y.cssHooks[t+e].set=Jt)});var re=/%20/g,ie=/\[\]$/,oe=/\r?\n/g,ae=/^(?:submit|button|image|reset)$/i,ue=/^(?:input|select|textarea|keygen)/i;function ce(t,e,n,r){var i;if(y.isArray(e))y.each(e,function(e,i){n||ie.test(t)?r(t,i):ce(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==y.type(e))r(t,e);else for(i in e)ce(t+"["+i+"]",e[i],n,r)}y.fn.extend({serialize:function(){return y.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=y.prop(this,"elements");return t?y.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!y(this).is(":disabled")&&ue.test(this.nodeName)&&!ae.test(t)&&(this.checked||!_t.test(t))}).map(function(t,e){var n=y(this).val();return null==n?null:y.isArray(n)?y.map(n,function(t){return{name:e.name,value:t.replace(oe,"\r\n")}}):{name:e.name,value:n.replace(oe,"\r\n")}}).get()}}),y.param=function(t,n){var r,i=[],o=function(t,e){e=y.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=y.ajaxSettings&&y.ajaxSettings.traditional),y.isArray(t)||t.jquery&&!y.isPlainObject(t))y.each(t,function(){o(this.name,this.value)});else for(r in t)ce(r,t[r],n,o);return i.join("&").replace(re,"+")};var se,le,fe=y.now(),he=/\?/,de=/#.*$/,pe=/([?&])_=[^&]*/,ge=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ve=/^(?:GET|HEAD)$/,ye=/^\/\//,me=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,_e=y.fn.load,be={},xe={},we="*/".concat("*");try{le=o.href}catch(t){(le=i.createElement("a")).href="",le=le.href}function Ee(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(_)||[];if(y.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function ke(t,e,n,r){var i={},o=t===xe;function a(u){var c;return i[u]=!0,y.each(t[u]||[],function(t,u){var s=u(e,n,r);return"string"!=typeof s||o||i[s]?o?!(c=s):void 0:(e.dataTypes.unshift(s),a(s),!1)}),c}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Me(t,n){var r,i,o=y.ajaxSettings.flatOptions||{};for(r in n)n[r]!==e&&((o[r]?t:i||(i={}))[r]=n[r]);return i&&y.extend(!0,t,i),t}se=me.exec(le.toLowerCase())||[],y.fn.load=function(t,n,r){if("string"!=typeof t&&_e)return _e.apply(this,arguments);var i,o,a,u=this,c=t.indexOf(" ");return c>=0&&(i=t.slice(c,t.length),t=t.slice(0,c)),y.isFunction(n)?(r=n,n=e):n&&"object"==typeof n&&(o="POST"),u.length>0&&y.ajax({url:t,type:o,dataType:"html",data:n}).done(function(t){a=arguments,u.html(i?y("<div>").append(y.parseHTML(t)).find(i):t)}).complete(r&&function(t,e){u.each(r,a||[t.responseText,e,t])}),this},y.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){y.fn[e]=function(t){return this.on(e,t)}}),y.each(["get","post"],function(t,n){y[n]=function(t,r,i,o){return y.isFunction(r)&&(o=o||i,i=r,r=e),y.ajax({url:t,type:n,dataType:o,data:r,success:i})}}),y.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:le,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(se[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":we,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":t.String,"text html":!0,"text json":y.parseJSON,"text xml":y.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Me(Me(t,y.ajaxSettings),e):Me(y.ajaxSettings,t)},ajaxPrefilter:Ee(be),ajaxTransport:Ee(xe),ajax:function(t,n){"object"==typeof t&&(n=t,t=e),n=n||{};var r,i,o,a,u,c,s,l,f=y.ajaxSetup({},n),h=f.context||f,d=f.context&&(h.nodeType||h.jquery)?y(h):y.event,p=y.Deferred(),g=y.Callbacks("once memory"),v=f.statusCode||{},m={},b={},x=0,w="canceled",E={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!a)for(a={};e=ge.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=b[n]=b[n]||t,m[t]=e),this},overrideMimeType:function(t){return x||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)v[e]=[v[e],t[e]];else E.always(t[E.status]);return this},abort:function(t){var e=t||w;return r&&r.abort(e),k(0,e),this}};if(p.promise(E).complete=g.add,E.success=E.done,E.error=E.fail,f.url=((t||f.url||le)+"").replace(de,"").replace(ye,se[1]+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=y.trim(f.dataType||"*").toLowerCase().match(_)||[""],null==f.crossDomain&&(c=me.exec(f.url.toLowerCase()),f.crossDomain=!(!c||c[1]===se[1]&&c[2]===se[2]&&(c[3]||("http:"===c[1]?80:443))==(se[3]||("http:"===se[1]?80:443)))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=y.param(f.data,f.traditional)),ke(be,f,n,E),2===x)return E;for(l in(s=f.global)&&0==y.active++&&y.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ve.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(he.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=pe.test(i)?i.replace(pe,"$1_="+fe++):i+(he.test(i)?"&":"?")+"_="+fe++)),f.ifModified&&(y.lastModified[i]&&E.setRequestHeader("If-Modified-Since",y.lastModified[i]),y.etag[i]&&E.setRequestHeader("If-None-Match",y.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+we+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(l,f.headers[l]);if(f.beforeSend&&(!1===f.beforeSend.call(h,E,f)||2===x))return E.abort();for(l in w="abort",{success:1,error:1,complete:1})E[l](f[l]);if(r=ke(xe,f,n,E)){E.readyState=1,s&&d.trigger("ajaxSend",[E,f]),f.async&&f.timeout>0&&(u=setTimeout(function(){E.abort("timeout")},f.timeout));try{x=1,r.send(m,k)}catch(t){if(!(x<2))throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,n,a,c){var l,m,_,b,w,k=n;2!==x&&(x=2,u&&clearTimeout(u),r=e,o=c||"",E.readyState=t>0?4:0,a&&(b=function(t,n,r){var i,o,a,u,c=t.contents,s=t.dataTypes,l=t.responseFields;for(o in l)o in r&&(n[l[o]]=r[o]);for(;"*"===s[0];)s.shift(),i===e&&(i=t.mimeType||n.getResponseHeader("Content-Type"));if(i)for(o in c)if(c[o]&&c[o].test(i)){s.unshift(o);break}if(s[0]in r)a=s[0];else{for(o in r){if(!s[0]||t.converters[o+" "+s[0]]){a=o;break}u||(u=o)}a=a||u}if(a)return a!==s[0]&&s.unshift(a),r[a]}(f,E,a)),t>=200&&t<300||304===t?(f.ifModified&&((w=E.getResponseHeader("Last-Modified"))&&(y.lastModified[i]=w),(w=E.getResponseHeader("etag"))&&(y.etag[i]=w)),304===t?(l=!0,k="notmodified"):(k=(l=function(t,e){var n,r,i,o,a={},u=0,c=t.dataTypes.slice(),s=c[0];t.dataFilter&&(e=t.dataFilter(e,t.dataType));if(c[1])for(n in t.converters)a[n.toLowerCase()]=t.converters[n];for(;i=c[++u];)if("*"!==i){if("*"!==s&&s!==i){if(!(n=a[s+" "+i]||a["* "+i]))for(r in a)if((o=r.split(" "))[1]===i&&(n=a[s+" "+o[0]]||a["* "+o[0]])){!0===n?n=a[r]:!0!==a[r]&&(i=o[0],c.splice(u--,0,i));break}if(!0!==n)if(n&&t.throws)e=n(e);else try{e=n(e)}catch(t){return{state:"parsererror",error:n?t:"No conversion from "+s+" to "+i}}}s=i}return{state:"success",data:e}}(f,b)).state,m=l.data,l=!(_=l.error))):(_=k,!t&&k||(k="error",t<0&&(t=0))),E.status=t,E.statusText=(n||k)+"",l?p.resolveWith(h,[m,k,E]):p.rejectWith(h,[E,k,_]),E.statusCode(v),v=e,s&&d.trigger(l?"ajaxSuccess":"ajaxError",[E,f,l?m:_]),g.fireWith(h,[E,k]),s&&(d.trigger("ajaxComplete",[E,f]),--y.active||y.event.trigger("ajaxStop")))}return E},getScript:function(t,n){return y.get(t,e,n,"script")},getJSON:function(t,e,n){return y.get(t,e,n,"json")}}),y.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return y.globalEval(t),t}}}),y.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),y.ajaxTransport("script",function(t){if(t.crossDomain){var n,r=i.head||y("head")[0]||i.documentElement;return{send:function(e,o){(n=i.createElement("script")).async=!0,t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.url,n.onload=n.onreadystatechange=function(t,e){(e||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,e||o(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(e,!0)}}}});var Ne=[],Ae=/(=)\?(?=&|$)|\?\?/;y.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ne.pop()||y.expando+"_"+fe++;return this[t]=!0,t}}),y.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,u,c=!1!==n.jsonp&&(Ae.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ae.test(n.data)&&"data");if(c||"jsonp"===n.dataTypes[0])return o=n.jsonpCallback=y.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,c?n[c]=n[c].replace(Ae,"$1"+o):!1!==n.jsonp&&(n.url+=(he.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return u||y.error(o+" was not called"),u[0]},n.dataTypes[0]="json",a=t[o],t[o]=function(){u=arguments},i.always(function(){t[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Ne.push(o)),u&&y.isFunction(a)&&a(u[0]),u=a=e}),"script"});var Ce,Te,Se=0,je=t.ActiveXObject&&function(){var t;for(t in Ce)Ce[t](e,!0)};function De(){try{return new t.XMLHttpRequest}catch(t){}}y.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&De()||function(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:De,Te=y.ajaxSettings.xhr(),y.support.cors=!!Te&&"withCredentials"in Te,(Te=y.support.ajax=!!Te)&&y.ajaxTransport(function(n){var r;if(!n.crossDomain||y.support.cors)return{send:function(i,o){var a,u,c=n.xhr();if(n.username?c.open(n.type,n.url,n.async,n.username,n.password):c.open(n.type,n.url,n.async),n.xhrFields)for(u in n.xhrFields)c[u]=n.xhrFields[u];n.mimeType&&c.overrideMimeType&&c.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)c.setRequestHeader(u,i[u])}catch(t){}c.send(n.hasContent&&n.data||null),r=function(t,i){var u,s,l,f,h;try{if(r&&(i||4===c.readyState))if(r=e,a&&(c.onreadystatechange=y.noop,je&&delete Ce[a]),i)4!==c.readyState&&c.abort();else{f={},u=c.status,h=c.responseXML,l=c.getAllResponseHeaders(),h&&h.documentElement&&(f.xml=h),"string"==typeof c.responseText&&(f.text=c.responseText);try{s=c.statusText}catch(t){s=""}u||!n.isLocal||n.crossDomain?1223===u&&(u=204):u=f.text?200:404}}catch(t){i||o(-1,t)}f&&o(u,s,f,l)},n.async?4===c.readyState?setTimeout(r):(a=++Se,je&&(Ce||(Ce={},y(t).unload(je)),Ce[a]=r),c.onreadystatechange=r):r()},abort:function(){r&&r(e,!0)}}});var Le,Oe,Ie=/^(?:toggle|show|hide)$/,Re=new RegExp("^(?:([+-])=|)("+m+")([a-z%]*)$","i"),ze=/queueHooks$/,qe=[function(t,e,n){var r,i,o,a,u,c,s,l,f,h=this,d=t.style,p={},g=[],v=t.nodeType&&Zt(t);n.queue||(null==(l=y._queueHooks(t,"fx")).unqueued&&(l.unqueued=0,f=l.empty.fire,l.empty.fire=function(){l.unqueued||f()}),l.unqueued++,h.always(function(){h.always(function(){l.unqueued--,y.queue(t,"fx").length||l.empty.fire()})}));1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===y.css(t,"display")&&"none"===y.css(t,"float")&&(y.support.inlineBlockNeedsLayout&&"inline"!==ee(t.nodeName)?d.zoom=1:d.display="inline-block"));n.overflow&&(d.overflow="hidden",y.support.shrinkWrapBlocks||h.done(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in e)if(o=e[r],Ie.exec(o)){if(delete e[r],c=c||"toggle"===o,o===(v?"hide":"show"))continue;g.push(r)}if(a=g.length){"hidden"in(u=y._data(t,"fxshow")||y._data(t,"fxshow",{}))&&(v=u.hidden),c&&(u.hidden=!v),v?y(t).show():h.done(function(){y(t).hide()}),h.done(function(){var e;for(e in y._removeData(t,"fxshow"),p)y.style(t,e,p[e])});for(r=0;r<a;r++)i=g[r],s=h.createTween(i,v?u[i]:0),p[i]=u[i]||y.style(t,i),i in u||(u[i]=s.start,v&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}],Fe={"*":[function(t,e){var n,r,i=this.createTween(t,e),o=Re.exec(e),a=i.cur(),u=+a||0,c=1,s=20;if(o){if(n=+o[2],"px"!==(r=o[3]||(y.cssNumber[t]?"":"px"))&&u){u=y.css(i.elem,t,!0)||n||1;do{u/=c=c||".5",y.style(i.elem,t,u+r)}while(c!==(c=i.cur()/a)&&1!==c&&--s)}i.unit=r,i.start=u,i.end=o[1]?u+(o[1]+1)*n:n}return i}]};function Pe(){return setTimeout(function(){Le=e}),Le=y.now()}function Be(t,e,n){var r,i,o,a,u=0,c=qe.length,s=y.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var e=Le||Pe(),n=Math.max(0,f.startTime+f.duration-e),r=1-(n/f.duration||0),o=0,a=f.tweens.length;o<a;o++)f.tweens[o].run(r);return s.notifyWith(t,[f,r,n]),r<1&&a?n:(s.resolveWith(t,[f]),!1)},f=s.promise({elem:t,props:y.extend({},e),opts:y.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Le||Pe(),duration:n.duration,tweens:[],createTween:function(e,n){var r=y.Tween(t,f.opts,e,n,f.opts.specialEasing[e]||f.opts.easing);return f.tweens.push(r),r},stop:function(e){var n=0,r=e?f.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)f.tweens[n].run(1);return e?s.resolveWith(t,[f,e]):s.rejectWith(t,[f,e]),this}}),h=f.props;for(!function(t,e){var n,r,i,o,a;for(n in t)if(r=y.camelCase(n),i=e[r],o=t[n],y.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=y.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(h,f.opts.specialEasing);u<c;u++)if(r=qe[u].call(f,t,h,f.opts))return r;return o=f,a=h,y.each(a,function(t,e){for(var n=(Fe[t]||[]).concat(Fe["*"]),r=0,i=n.length;r<i;r++)if(n[r].call(o,t,e))return}),y.isFunction(f.opts.start)&&f.opts.start.call(t,f),y.fx.timer(y.extend(l,{elem:t,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function He(t,e,n,r,i){return new He.prototype.init(t,e,n,r,i)}function $e(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=Vt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function We(t){return y.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}y.Animation=y.extend(Be,{tweener:function(t,e){y.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;r<i;r++)n=t[r],Fe[n]=Fe[n]||[],Fe[n].unshift(e)},prefilter:function(t,e){e?qe.unshift(t):qe.push(t)}}),y.Tween=He,He.prototype={constructor:He,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(y.cssNumber[n]?"":"px")},cur:function(){var t=He.propHooks[this.prop];return t&&t.get?t.get(this):He.propHooks._default.get(this)},run:function(t){var e,n=He.propHooks[this.prop];return this.options.duration?this.pos=e=y.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):He.propHooks._default.set(this),this}},He.prototype.init.prototype=He.prototype,He.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=y.css(t.elem,t.prop,"auto"))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){y.fx.step[t.prop]?y.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[y.cssProps[t.prop]]||y.cssHooks[t.prop])?y.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},He.propHooks.scrollTop=He.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},y.each(["toggle","show","hide"],function(t,e){var n=y.fn[e];y.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate($e(e,!0),t,r,i)}}),y.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Zt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=y.isEmptyObject(t),o=y.speed(e,n,r),a=function(){var e=Be(this,y.extend({},t),o);a.finish=function(){e.stop(!0)},(i||y._data(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,n,r){var i=function(t){var e=t.stop;delete t.stop,e(r)};return"string"!=typeof t&&(r=n,n=t,t=e),n&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",o=y.timers,a=y._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&ze.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=t&&o[n].queue!==t||(o[n].anim.stop(r),e=!1,o.splice(n,1));!e&&r||y.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=y._data(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=y.timers,a=r?r.length:0;for(n.finish=!0,y.queue(this,t,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),y.each({slideDown:$e("show"),slideUp:$e("hide"),slideToggle:$e("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){y.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),y.speed=function(t,e,n){var r=t&&"object"==typeof t?y.extend({},t):{complete:n||!n&&e||y.isFunction(t)&&t,duration:t,easing:n&&e||e&&!y.isFunction(e)&&e};return r.duration=y.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in y.fx.speeds?y.fx.speeds[r.duration]:y.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y.isFunction(r.old)&&r.old.call(this),r.queue&&y.dequeue(this,r.queue)},r},y.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},y.timers=[],y.fx=He.prototype.init,y.fx.tick=function(){var t,n=y.timers,r=0;for(Le=y.now();r<n.length;r++)(t=n[r])()||n[r]!==t||n.splice(r--,1);n.length||y.fx.stop(),Le=e},y.fx.timer=function(t){t()&&y.timers.push(t)&&y.fx.start()},y.fx.interval=13,y.fx.start=function(){Oe||(Oe=setInterval(y.fx.tick,y.fx.interval))},y.fx.stop=function(){clearInterval(Oe),Oe=null},y.fx.speeds={slow:600,fast:200,_default:400},y.fx.step={},y.expr&&y.expr.filters&&(y.expr.filters.animated=function(t){return y.grep(y.timers,function(e){return t===e.elem}).length}),y.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){y.offset.setOffset(this,t,e)});var n,r,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;return a?(n=a.documentElement,y.contains(n,o)?(void 0!==o.getBoundingClientRect&&(i=o.getBoundingClientRect()),r=We(a),{top:i.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:i.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):i):void 0},y.offset={setOffset:function(t,e,n){var r=y.css(t,"position");"static"===r&&(t.style.position="relative");var i,o,a=y(t),u=a.offset(),c=y.css(t,"top"),s=y.css(t,"left"),l={},f={};("absolute"===r||"fixed"===r)&&y.inArray("auto",[c,s])>-1?(i=(f=a.position()).top,o=f.left):(i=parseFloat(c)||0,o=parseFloat(s)||0),y.isFunction(e)&&(e=e.call(t,n,u)),null!=e.top&&(l.top=e.top-u.top+i),null!=e.left&&(l.left=e.left-u.left+o),"using"in e?e.using.call(t,l):a.css(l)}},y.fn.extend({position:function(){if(this[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===y.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),y.nodeName(t[0],"html")||(n=t.offset()),n.top+=y.css(t[0],"borderTopWidth",!0),n.left+=y.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-y.css(r,"marginTop",!0),left:e.left-n.left-y.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||i.documentElement;t&&!y.nodeName(t,"html")&&"static"===y.css(t,"position");)t=t.offsetParent;return t||i.documentElement})}}),y.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r=/Y/.test(n);y.fn[t]=function(i){return y.access(this,function(t,i,o){var a=We(t);if(o===e)return a?n in a?a[n]:a.document.documentElement[i]:t[i];a?a.scrollTo(r?y(a).scrollLeft():o,r?o:y(a).scrollTop()):t[i]=o},t,i,arguments.length,null)}}),y.each({Height:"height",Width:"width"},function(t,n){y.each({padding:"inner"+t,content:n,"":"outer"+t},function(r,i){y.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),u=r||(!0===i||!0===o?"margin":"border");return y.access(this,function(n,r,i){var o;return y.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):i===e?y.css(n,r,u):y.style(n,r,i,u)},n,a?i:e,a,null)}})}),t.jQuery=t.$=y,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return y})}(window),function(t){jQuery.fn.contextMenu=function(e,n,r){var i=t(window);return this.bind("contextmenu",{name:e,actions:n,options:r},function(e){var n=e.data.name,r=e.data.actions;if((c=e.data.options).leftClick&&0==e.button||!c.leftClick&&2==e.button){a=t(this),c.showMenu&&c.showMenu.call(o,a);var o=t('<ul id="'+n+'" class="context-menu"></ul>').hide().appendTo("body"),a=null,u=function(){t(".context-menu:visible").each(function(){t(this).trigger("closed"),t(this).hide(),t("body").unbind("click",u)}),c.hideMenu&&c.hideMenu.call(o,a)},c=t.extend({disable_native_context_menu:!1,leftClick:!1},c);t(document).bind("contextmenu",function(t){c.disable_native_context_menu&&t.preventDefault(),u()}),t.each(r,function(e,n){if(n.link)var r=n.link;else r='<a href="#">'+e+"</a>";var i=t("<li>"+r+"</li>");n.klass&&i.attr("class",n.klass),i.appendTo(o).bind("click",function(t){d3.event=t,n.click(a),t.preventDefault()}).bind("mouseover",function(t){d3.event=t,n.mouseover(a),t.preventDefault()}).bind("mouseout",function(t){d3.event=t,n.mouseout(a),t.preventDefault()})}),u(),o.css({visibility:"hidden",position:"absolute",zIndex:1e3});var s=o.outerWidth(!0),l=o.outerHeight(!0),f=e.pageX-i.scrollLeft()+s<i.width()?e.pageX:e.pageX-s,h=e.pageY-i.scrollTop()+l<i.height()?e.pageY:e.pageY-l;return o.show(0,function(){t("body").bind("click",u)}).css({visibility:"visible",top:h+"px",left:f+"px",zIndex:1e3}),!1}})}}(jQuery),function(t){function e(t,e){return"function"==typeof t?t.call(e):t}function n(e,n){this.$element=t(e),this.options=n,this.enabled=!0,this.fixTitle()}n.prototype={show:function(){var n=this.getTitle();if(n&&this.enabled){var r=this.tip();r.find(".tipsy-inner")[this.options.html?"html":"text"](n),r[0].className="tipsy",r.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var i=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth||0,height:this.$element[0].offsetHeight||0});if("object"==typeof this.$element[0].nearestViewportElement){var o=this.$element[0].getBoundingClientRect();i.width=o.width,i.height=o.height}var a,u=r[0].offsetWidth,c=r[0].offsetHeight,s=e(this.options.gravity,this.$element[0]);switch(s.charAt(0)){case"n":a={top:i.top+i.height+this.options.offset,left:i.left+i.width/2-u/2};break;case"s":a={top:i.top-c-this.options.offset,left:i.left+i.width/2-u/2};break;case"e":a={top:i.top+i.height/2-c/2,left:i.left-u-this.options.offset};break;case"w":a={top:i.top+i.height/2-c/2,left:i.left+i.width+this.options.offset}}2==s.length&&("w"==s.charAt(1)?a.left=i.left+i.width/2-15:a.left=i.left+i.width/2-u+15),r.css(a).addClass("tipsy-"+s),r.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+s.charAt(0),this.options.className&&r.addClass(e(this.options.className,this.$element[0])),this.options.fade?r.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):r.css({visibility:"visible",opacity:this.options.opacity});var l=this,f=function(t){return function(){l.$tip.stop(),l.tipHovered=t,t||(0===l.options.delayOut?l.hide():setTimeout(function(){"out"==l.hoverState&&l.hide()},l.options.delayOut))}};r.hover(f(!0),f(!1))}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){t(this).remove()}):this.tip().remove()},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("original-title"))&&t.attr("original-title",t.attr("title")||"").removeAttr("title"),"object"==typeof t.context.nearestViewportElement&&t.children("title").length&&t.append("<original-title>"+(t.children("title").text()||"")+"</original-title>").children("title").remove()},getTitle:function(){var t,e=this.$element,n=this.options;if(this.fixTitle(),"string"==typeof n.title){var r="title"==n.title?"original-title":n.title;t=e.children(r).length?e.children(r).html():e.attr(r)}else"function"==typeof n.title&&(t=n.title.call(e[0]));return(t=(""+t).replace(/(^\s*|\s*$)/,""))||n.fallback},tip:function(){return this.$tip||(this.$tip=t('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>')),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},t.fn.tipsy=function(e){if(!0===e)return this.data("tipsy");if("string"==typeof e){var r=this.data("tipsy");return r&&r[e](),this}function i(r){var i=t.data(r,"tipsy");return i||(i=new n(r,t.fn.tipsy.elementOptions(r,e)),t.data(r,"tipsy",i)),i}if((e=t.extend({},t.fn.tipsy.defaults,e)).hoverlock&&0===e.delayOut&&(e.delayOut=100),"manual"!=e.trigger){var o=e.live?"live":"bind",a="hover"==e.trigger?"mouseenter":"focus",u="hover"==e.trigger?"mouseleave":"blur";this[o](a,function(){var t=i(this);t.hoverState="in",0===e.delayIn?t.show():(t.fixTitle(),setTimeout(function(){"in"==t.hoverState&&t.show()},e.delayIn))})[o](u,function(){var t=i(this);t.hoverState="out",0===e.delayOut?t.hide():setTimeout(function(){t.tipHovered&&e.hoverlock||"out"==t.hoverState&&t.hide()},e.delayOut)})}return this},t.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:10,opacity:.8,title:"title",trigger:"hover",hoverlock:!1},t.fn.tipsy.elementOptions=function(e,n){return t.metadata?t.extend({},n,t(e).metadata()):n},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"},t.fn.tipsy.autoBounds=function(e,n){return function(){var r={ns:n[0],ew:n.length>1&&n[1]},i=t(document).scrollTop()+e,o=t(document).scrollLeft()+e,a=t(this);return a.offset().top<i&&(r.ns="n"),a.offset().left<o&&(r.ew="w"),t(window).width()+t(document).scrollLeft()-a.offset().left<e&&(r.ew="e"),t(window).height()+t(document).scrollTop()-a.offset().top<e&&(r.ns="s"),r.ns+(r.ew?r.ew:"")}}}(jQuery);var DirectedAcyclicGraphContextMenu=function(t,e){var n=ContextMenu().on("open",function(t){i.open.call(this,t)}).on("close",function(t){i.close.call(this,t)}).on("click",function(n){if("hideselected"==n.operation){var r=e.selectAll(".node.selected").data(),o="User Selection";i.hidenodes.call(this,r,o)}"hideunselected"==n.operation&&(r=e.selectAll(".node").filter(function(t){return!d3.select(this).classed("selected")}).data(),o="User Selection",i.hidenodes.call(this,r,o));"hidethis"==n.operation&&(r=d3.select(this).data(),o="User Selection",i.hidenodes.call(this,r,o));if("hidefield"==n.operation){var a=n.fieldname,u=n.value;r=t.getNodes().filter(function(t){return!t.never_visible&&t.report&&t.report[a]&&t.report[a][0]==u}),o=a+": "+u,i.hidenodes.call(this,r,o)}"invertselection"==n.operation&&(r=e.selectAll(".node").filter(function(t){return!d3.select(this).classed("selected")}).data(),i.selectnodes.call(this,r));"selectall"==n.operation&&(r=t.getVisibleNodes(),i.selectnodes.call(this,r));if("selectneighbours"==n.operation){var c=d3.select(this).data()[0];(r=c.getVisibleParents().concat(c.getVisibleChildren())).push(c),i.selectnodes.call(this,r)}"selectpath"==n.operation&&(r=getEntirePathNodes(d3.select(this).data()[0]),i.selectnodes.call(this,r,o));"selectfield"==n.operation&&(a=n.fieldname,u=n.value,r=t.getVisibleNodes().filter(function(t){return t.report&&t.report[a]&&t.report[a][0]==u}),i.selectnodes.call(this,r))}).on("mouseover",function(n){var r=[];"hideselected"==n.operation&&(r=e.selectAll(".node.selected").data()),"hideunselected"==n.operation&&(r=e.selectAll(".node").filter(function(t){return!d3.select(this).classed("selected")}).data());if("hidethis"==n.operation&&(r=d3.select(this).data()),"hidefield"==n.operation||"selectfield"==n.operation){var o=n.fieldname,a=n.value;r=t.getVisibleNodes().filter(function(t){return t.report&&t.report[o]&&t.report[o][0]==a})}"invertselection"==n.operation&&(r=e.selectAll(".node").filter(function(t){return!d3.select(this).classed("selected")}).data());if("selectall"==n.operation&&(r=t.getVisibleNodes()),"selectneighbours"==n.operation){var u=d3.select(this).data()[0];(r=u.getVisibleParents().concat(u.getVisibleChildren())).push(u)}"selectpath"==n.operation&&(r=getEntirePathNodes(d3.select(this).data()[0])),i.hovernodes.call(this,r)}).on("mouseout",function(t){i.hovernodes.call(this,[])}),r=function(t){r.hide.call(this,t),t.each(function(e){var r=[];r.push({operation:"hidethis",name:"Hide this node"}),t.filter(".selected").empty()||(r.push({operation:"hideselected",name:"Hide selected nodes"}),r.push({operation:"hideunselected",name:"Hide non-selected nodes"}));var i=function(t){e.report&&e.report[t]&&e.report[t][0]&&r.push({operation:"hidefield",name:"Hide all <span class='highlight'>"+e.report[t][0]+"</span> nodes",fieldname:t,value:e.report[t][0]})},o=function(t){e.report&&e.report[t]&&e.report[t][0]&&r.push({operation:"selectfield",name:"Select all <span class='highlight'>"+e.report[t][0]+"</span> nodes",fieldname:t,value:e.report[t][0]})};i("Agent"),i("Host"),i("Class"),i("ProcessID"),i("StateMachineID"),t.filter(".selected").empty()||r.push({operation:"invertselection",name:"Invert selection"}),r.push({operation:"selectall",name:"Select all"}),r.push({operation:"selectneighbours",name:"Select neighbours"}),r.push({operation:"selectpath",name:"Select path"}),o("Agent"),o("Host"),o("Class"),o("ProcessID"),o("StateMachineID"),n.call(this,r),d3.select(this).classed("hascontextmenu",!0)})};r.hide=function(t){d3.select(this).selectAll(".hascontextmenu").each(function(t){$(this).unbind("contextmenu")}),d3.select(this).selectAll(".context-menu").remove()};var i={hidenodes:function(){},selectnodes:function(){},hovernodes:function(){},open:function(){},close:function(){}};return r.on=function(t,e){return i.hasOwnProperty(t)?1==arguments.length?i[t]:(i[t]=e,r):r},r},CompareGraphContextMenu=function(){var t=ContextMenu().on("click",function(t){if("viewthis"==t.operation&&n.view.call(this,d3.select(this).datum()),"removeselected"==t.operation&&n.hide.call(this,d3.selectAll(".node.selected").data()),"clusterselected"==t.operation&&n.hide.call(this,d3.selectAll(".node").filter(function(t){return!d3.select(this).classed("selected")}).data()),"compareselected"==t.operation&&n.compare.call(this,d3.selectAll(".node.selected").data()),"comparetoselected"==t.operation){var e=d3.selectAll(".node.selected").data().concat(d3.select(this).data());n.compare.call(this,e)}}).on("open",function(t){n.open.call(this,t)}),e=function(n){e.hide.call(this,n),n.each(function(e){var r=[];r.push({operation:"viewthis",name:"View execution graph"});var i=n.filter(".selected");!i.empty()&&n[0].length-i[0].length>1&&r.push({operation:"removeselected",name:"Remove selected from the clustering"}),i[0].length>1&&r.push({operation:"clusterselected",name:"Re-cluster using selected"}),2==i[0].length&&r.push({operation:"compareselected",name:"Compare graphs of selected"}),1==i[0].length&&i.datum()!=d3.select(this).datum()&&r.push({operation:"comparetoselected",name:"Compare graph of this to selected"}),t.call(this,r),d3.select(this).classed("hascontextmenu",!0)})};e.hide=function(t){d3.select(this).selectAll(".hascontextmenu").each(function(t){$(this).unbind("contextmenu")}),d3.select(this).selectAll(".context-menu").remove()};var n={open:function(){},view:function(){},hide:function(){},compare:function(){}};return e.on=function(t,r){return n.hasOwnProperty(t)?1==arguments.length?n[t]:(n[t]=r,e):e},e},ContextMenu=function(){var t=0,e=function(e){for(var u=this,c={},s=0;s<e.length;s++){var l=e[s];c[o.call(this,l)]={click:n(u,l,s),mouseover:r(u,l,s),mouseout:i(u,l,s)}}var f={disable_native_context_menu:!0,showMenu:function(){a.open.call(u,e)},hideMenu:function(){a.close.call(u,e)}};$(u).contextMenu("context-menu"+t++,c,f)},n=function(t,e,n){return function(){a.click.call(t,e,n)}},r=function(t,e,n){return function(){a.mouseover.call(t,e,n)}},i=function(t,e,n){return function(){a.mouseout.call(t,e,n)}},o=function(t){return t.name},a={click:function(){},open:function(){},close:function(){},mouseover:function(){},mouseout:function(){}};return e.name=function(t){return 0==arguments.length?o:(o=t,e)},e.on=function(t,n){return a[t]?1==arguments.length?a[t]:(a[t]=n,e):e},e};function DirectedAcyclicGraph(){var t=0,e=!0;function n(t){t.each(function(t){var o=d3.select(this).selectAll("svg").data([t]);o.enter().append("svg").append("g").attr("class","graph").classed("animate",e),o.attr("width",width.call(this,t)),o.attr("height",height.call(this,t));var s=u.call(this,t),m=a.call(this,t),_=c.call(this,t),b=o.select(".graph").selectAll(".edge").data(s,r),x=o.select(".graph").selectAll(".node").data(m,i),w=o.select(".graph").selectAll(".edgelabel").data(_,r),E=b.exit(),k=x.exit(),M=(w.exit(),b.enter().insert("path",":first-child").attr("class","edge entering")),N=x.enter().append("g").attr("class","node entering"),A=w.enter().append("g").attr("class","edgelabel");N.classed("group",function(t){return t.params.isGroup}),N.each(l),A.each(f),x.each(p),k.each(g),e?E.classed("visible",!1).transition().duration(500).remove():E.classed("visible",!1).remove(),x.classed("pre-existing",!0),y.call(o.select(".graph").node(),m,s,t.digraph),x.classed("pre-existing",!1),e?(o.select(".graph").selectAll(".edge.visible").transition().duration(800).attrTween("d",n.edgeTween),x.transition().duration(800).attr("transform",n.nodeTranslate)):(o.select(".graph").selectAll(".edge.visible").attr("d",n.splineGenerator),x.attr("transform",n.nodeTranslate)),N.each(v),N.filter(".group").each(h).each(function(){this.parentNode.insertBefore(this,this.parentNode.firstChild)}).order(function(t,e){return null}),A.each(d),M.attr("d",n.splineGenerator).classed("visible",!0),x.classed("visible",!0),A.classed("visible",!0),window.setTimeout(function(){M.classed("entering",!1),N.classed("entering",!1)},2e3)})}var r=function(t){return t.source.id+t.target.id},i=function(t){return t.id},o=function(t){return t.params.label},a=function(t){return t.getVisibleNodes()},u=function(t){return t.getVisibleEdges()},c=function(t){return t.getVisibleLabels()},s=function(t){return d3.select(this).select("rect").node().getBBox()},l=function(t){var e=d3.select(this).append("rect");d3.select(this).append("text").attr("text-anchor","middle").attr("x",0).append("tspan").attr("x",0).attr("dy","1.2em").text(o),e.classed("color-"+t.params.fillcolor,!0),null!=m.call(this,t)&&d3.select(this).attr("transform",n.nodeTranslate)},f=function(t){var e=d3.select(this).append("rect").attr("x",0).attr("y",0),n=d3.select(this).append("text").attr("text-anchor","middle").text(function(t){return t.params.label});e.attr("width",n.node().getBBox().width).attr("height",n.node().getBBox().height).attr("x",n.node().getBBox().x).attr("y",n.node().getBBox().y)},h=function(t){var e=d3.select(this).select("rect").attr("width",t.dagre.width).attr("height",t.dagre.height+30).attr("x",-t.dagre.width/2).attr("y",-t.dagre.height/2-30);d3.select(this).select("text").attr("y",e.attr("y"))},d=function(t){d3.select(this).attr("transform","translate("+t.dagre.x+","+t.dagre.y+")")},p=function(t){var e=d3.select(this).select("rect"),n=d3.select(this).select("text"),r=n.node().getBBox().width,i={height:50,width:n.node().getBBox().width+10};e.attr("x",-i.width/2).attr("y",-i.height/2),e.attr("width",i.width).attr("height",i.height),n.attr("x",-r/2).attr("y",-i.height/2)},g=function(t){e?d3.select(this).classed("visible",!1).transition().duration(200).remove():d3.select(this).classed("visible",!1).remove()},v=function(t){d3.select(this).classed("visible",!0).attr("transform",n.nodeTranslate)},y=function(e,n,r){var i=(new Date).getTime();d3.select(this).selectAll(".node").each(function(e){e.bbox=s.call(this,e),e.width=e.bbox.width,e.height=e.bbox.height,r.node(e.id).width=e.width,r.node(e.id).height=e.height,e.dagre_prev=e.dagre_id==t?e.dagre:null,e.dagre_id=t+1}),t++,d3.select(this).selectAll(".edgelabel").each(function(t){var e=d3.select(this).select("text").node().getBBox();r.edge(t.source.id,t.target.id).width=e.width,r.edge(t.source.id,t.target.id).height=e.height,r.edge(t.source.id,t.target.id).labelpos="c"}),i=(new Date).getTime(),dagre.layout(r),e.forEach(function(t){t.dagre=r.node(t.id)}),n.forEach(function(t){t.dagre=r.edge(t.source.id,t.target.id)})},m=function(t){return t.dagre},_=function(t){return t.dagre.points};return n.splineGenerator=function(t){return d3.svg.line().x(function(t){return t.x}).y(function(t){return t.y}).interpolate("linear")(_.call(this,t))},n.edgeTween=function(t){for(var e=n.splineGenerator.call(this,t),r=this,i=r.cloneNode(),o=r.getTotalLength(),a=(i.setAttribute("d",e),i).getTotalLength(),u=[0],c=0,s=Math.max(1/8,4/Math.max(o,a));(c+=s)<1;)u.push(c);u.push(1);var l=u.map(function(t){var e=r.getPointAtLength(t*o),n=i.getPointAtLength(t*a);return d3.interpolate([e.x,e.y],[n.x,n.y])}),f=d3.svg.line().interpolate("linear");return function(t){return f(l.map(function(e){return e(t)}))}},n.nodeTranslate=function(t){var e=m.call(this,t);return"translate("+e.x+","+e.y+")"},n.width=function(t){return arguments.length?(width=d3.functor(t),n):width},n.height=function(t){return arguments.length?(height=d3.functor(t),n):height},n.edgeid=function(t){return arguments.length?(r=t,n):r},n.nodeid=function(t){return arguments.length?(i=t,n):i},n.nodename=function(t){return arguments.length?(o=t,n):o},n.nodes=function(t){return arguments.length?(a=d3.functor(t),n):a},n.edges=function(t){return arguments.length?(u=d3.functor(t),n):u},n.bbox=function(t){return arguments.length?(s=d3.functor(t),n):s},n.drawnode=function(t){return arguments.length?(l=t,n):l},n.removenode=function(t){return arguments.length?(g=t,n):g},n.newnodetransition=function(t){return arguments.length?(v=t,n):v},n.layout=function(t){return arguments.length?(y=t,n):y},n.nodepos=function(t){return arguments.length?(m=t,n):m},n.edgepos=function(t){return arguments.length?(_=t,n):_},n.animate=function(t){return arguments.length?(e=t,n):e},n}var Node=function(t){this.id=t,this.never_visible=!1,this.hidden=!1,this.isGroup=!1,this.child_nodes={},this.parent_nodes={}};Node.prototype.visible=function(t){return 0==arguments.length?!this.never_visible&&!this.hidden:(this.hidden=!t,this)},Node.prototype.addChild=function(t){this.child_nodes[t.id]=t},Node.prototype.addParent=function(t){this.parent_nodes[t.id]=t},Node.prototype.removeChild=function(t){t.id in this.child_nodes&&delete this.child_nodes[t.id]},Node.prototype.removeParent=function(t){t.id in this.parent_nodes&&delete this.parent_nodes[t.id]},Node.prototype.getParents=function(){return values(this.parent_nodes)},Node.prototype.getChildren=function(){return values(this.child_nodes)},Node.prototype.getVisibleParents=function(){var t={},e=function(n){if(!t[n.id]){t[n.id]={};var r=n.parent_nodes;for(var i in r){var o=r[i];if(o.visible())t[n.id][i]=o;else{e(o);var a=t[i];for(var u in a)t[n.id][u]=a[u]}}}};return e(this),values(t[this.id])},Node.prototype.getVisibleChildren=function(){var t={},e=function(n){if(!t[n.id]){t[n.id]={};var r=n.child_nodes;for(var i in r){var o=r[i];if(o.visible())t[n.id][i]=o;else{e(o);var a=t[i];for(var u in a)t[n.id][u]=a[u]}}}};return e(this),values(t[this.id])};var Edge=function(t,e,n){this.id=t,this.source=e,this.target=n},Graph=function(t){this.digraph=t,this.nodelist=[],this.nodes={},this.edgelist=[],this.edges={}};function getNodesBetween(t,e){var n={},r=[t,e],i=function(t){return null==n[t.id]&&(t==e?(r.push(t),n[t.id]=!0):-1!=t.getParents().map(i).indexOf(!0)?(r.push(t),n[t.id]=!0):n[t.id]=!1),n[t.id]};return i(t),r}function getEntirePathNodes(t){var e={},n={},r={},i=function(t){if(!e[t.id]){e[t.id]={},r[t.id]=t;var n=t.parent_nodes;for(var o in n){var a=n[o];if(a.visible())e[t.id][o]=!0,i(a);else{i(a);var u=e[o];for(var c in u)e[t.id][c]=!0}}}},o=function(t){if(!n[t.id]){n[t.id]={},r[t.id]=t;var e=t.child_nodes;for(var i in e){var a=e[i];if(a.visible())n[t.id][i]=!0,o(a);else{o(a);var u=n[i];for(var c in u)n[t.id][c]=!0}}}};return i(t),o(t),values(r)}function getEntirePathLinks(t){var e={},n={},r={},i=function(t){if(!e[t.id]){e[t.id]={},r[t.id]=t;var n=t.parent_nodes;for(var o in n){var a=n[o];if(a.visible())e[t.id][o]=!0,i(a);else{i(a);var u=e[o];for(var c in u)e[t.id][c]=!0}}}},o=function(t){if(!n[t.id]){n[t.id]={},r[t.id]=t;var e=t.child_nodes;for(var i in e){var a=e[i];if(a.visible())n[t.id][i]=!0,o(a);else{o(a);var u=n[i];for(var c in u)n[t.id][c]=!0}}}};i(t),o(t);var a=[];for(var u in e){var c=r[u],s=e[u];for(var l in s){var f=r[l];a.push({source:f,target:c})}}for(var l in n){f=r[l];var h=n[l];for(var u in h){c=r[u];a.push({source:f,target:c})}}return a}function values(t){return Object.keys(t).map(function(e){return t[e]})}function flatten(t){var e=[];return e.concat.apply(e,t)}Graph.prototype.addNode=function(t){this.nodelist.push(t),this.nodes[t.id]=t},Graph.prototype.addEdge=function(t){this.edgelist.push(t),this.edges[t.id]=t},Graph.prototype.getNode=function(t){return this.nodes[t]},Graph.prototype.getNodes=function(){return this.nodelist},Graph.prototype.getVisibleNodes=function(){return this.nodelist.filter(function(t){return!t.isGroup&&t})},Graph.prototype.getVisibleEdges=function(){return this.edgelist},Graph.prototype.getVisibleLabels=function(){return this.edgelist.filter(function(t){return!!t.params.label&&t})},Graph.prototype.getVisibleLinks=function(){for(var t={},e=function(n){if(!t[n.id]){t[n.id]={};var r=n.parent_nodes;for(var i in r){var o=r[i];if(o.visible())t[n.id][i]=!0;else{e(o);var a=t[i];for(var u in a)t[n.id][u]=!0}}}},n=0;n<this.nodelist.length;n++)e(this.nodelist[n]);var r=this.nodes,i=[],o=this.getVisibleNodes();for(n=0;n<o.length;n++){var a=o[n],u=t[a.id];Object.keys(u).forEach(function(t){i.push({source:r[t],target:a})})}return i};var DirectedAcyclicGraphHistory=function(){var t=History();return t.addSelection=function(e,n){if(0!=e.length){var r={apply:function(){e.forEach(function(t){t.visible(!1)})},unapply:function(){e.forEach(function(t){t.visible(!0)})}};return r.name=n,r.selection=e,t.add(r)}},t},History=function(){var t=0,e=[];return e.add=function(n){return n.id=t++,e.push(n),n.apply(),n},e.remove=function(t){-1!=(n=e.indexOf(t))&&e.splice(n,1),t.unapply();for(var n=0;n<e.length;n++)e[n].apply();return t},e};function List(){var t=d3.functor(100),e=d3.functor(100),n=d3.functor(0),r=d3.functor(0),i=d3.functor("100%"),o=d3.functor(50),a=d3.functor(0),u=function(t,e){return(o.call(this,t,e)+2)*e};function c(c){c.each(function(c){var l=d3.select(this).selectAll("svg").data([c]),f=l.enter().append("svg");f.append("rect").attr("class","background").attr("fill","#DDD").attr("fill-opacity",.5).attr("width","100%").attr("height","100%");f.append("svg").attr("class","list");l.attr("width",t.call(this,c)),l.attr("height",e.call(this,c)),l.attr("x",n.call(this,c)),l.attr("y",r.call(this,c));var h=l.select(".list").selectAll(".item").data(c,function(t){return t.id}),d=h.enter().insert("svg",":first-child").attr("class","item").attr("opacity",1e-8).attr("width",i).attr("height",o).attr("x",a).attr("y",u);d.each(s),h.transition().delay(400).duration(600).attr("x",a).attr("y",u),d.transition().delay(400).duration(600).attr("opacity",1),h.exit().transition().duration(1e3).attr("opacity",1e-6).remove()})}var s=function(t,e){var n=d3.select(this);if(n.append("rect").attr("x","1%").attr("y","1%").attr("width","98%").attr("height","98%").attr("rx",o.call(this,t,e)/2).attr("ry",o.call(this,t,e)/2),t.name&&n.append("text").text(t.name).attr("x","50%").attr("dy","1em"),t.selection){var r=t.selection.length,i="("+r+" nodes)";if(1==r)i="("+r+" node)";n.append("text").text(i).attr("x","50%").attr("dy","2em")}},l=function(t,e){var n=this.getBoundingClientRect();return{x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top}};return c.select=function(t){return d3.select(this).selectAll(".item").data([t],function(t){return t.id}).node()},c.width=function(e){return arguments.length?(t=d3.functor(e),c):t},c.height=function(t){return arguments.length?(e=d3.functor(t),c):e},c.x=function(t){return arguments.length?(n=d3.functor(t),c):n},c.y=function(t){return arguments.length?(r=d3.functor(t),c):r},c.itemwidth=function(t){return arguments.length?(i=d3.functor(t),c):i},c.itemheight=function(t){return arguments.length?(o=d3.functor(t),c):o},c.itemx=function(t){return arguments.length?(a=d3.functor(t),c):a},c.itemy=function(t){return arguments.length?(u=d3.functor(t),c):u},c.bbox=function(t){return arguments.length?(l=d3.functor(t),c):l},c}function DirectedAcyclicGraphMinimap(t){return Minimap().draw(function(e){var n=d3.select(e).selectAll(".edge.visible").data(),r=d3.select(e).selectAll(".node.visible").data(),i=d3.select(this).selectAll(".edge").data(n);i.enter().append("path").attr("class","edge"),i.exit().remove();var o=d3.select(this).selectAll(".node").data(r);o.enter().append("g").attr("class","node").append("rect"),o.selectAll("rect").attr("x",function(t){return-t.bbox.width/2}).attr("y",function(t){return-t.bbox.height/2}).attr("width",function(t){return t.width}).attr("height",function(t){return t.height}),o.exit().remove(),o.attr("transform",t.nodeTranslate),i.attr("d",t.splineGenerator)})}function Minimap(){var t=d3.functor(100),e=d3.functor(100),n=d3.functor(0),r=d3.functor(0);function i(i){i.each(function(i){var a=d3.select(this).selectAll("svg").data([i]),u=a.enter().append("svg");u.append("rect").attr("class","background").attr("fill","#DDD").attr("fill-opacity",.5).attr("width","100%").attr("height","100%");var c=u.append("svg").attr("class","minimap");c.append("g").attr("class","contents"),c.append("rect").attr("class","viewfinder").attr("stroke","black").attr("fill","black").attr("opacity",.1),a.attr("width",t.call(this,i)),a.attr("height",e.call(this,i)),a.attr("x",n.call(this,i)),a.attr("y",r.call(this,i)),o.call(a.select(".contents").node(),i);var s=a.select(".contents").node().getBBox(),l={x:s.x-50,y:s.y-50,width:s.width+100,height:s.height+100};a.select(".minimap").attr("viewBox",l.x+" "+l.y+" "+l.width+" "+l.height),c.select(".viewfinder").attr("x",l.x).attr("y",l.y).attr("width",l.width).attr("height",l.height)})}var o=function(t){var e=this;d3.selectAll(d3.select(t).select("svg").node().childNodes).each(function(t){e.appendChild(this.cloneNode(!0))})};return i.draw=function(t){return arguments.length?(o=t,i):o},i.width=function(e){return arguments.length?(t=d3.functor(e),i):t},i.height=function(t){return arguments.length?(e=d3.functor(t),i):e},i.x=function(t){return arguments.length?(n=d3.functor(t),i):n},i.y=function(t){return arguments.length?(r=d3.functor(t),i):r},i}function MinimapZoom(){var t=null,e=d3.behavior.zoom().on("zoom",function(){r.scale(d3.event.scale).translate(d3.event.translate),t&&t()}),n=d3.behavior.zoom().on("zoom",function(){var e=d3.mouse(d3.select(this).select(".minimap").node()),n=d3.select(this).select(".viewfinder").node().getBBox(),i=n?n.width:0,o=n?n.height:0,a=r.scale(),u=a*(i/2-e[0]),c=a*(o/2-e[1]);d3.event.scale=a,d3.event.translate=[u,c],r.translate(d3.event.translate),t&&t()}).scaleExtent([1,1]);function r(t,r){t.call(e).on("dblclick.zoom",null),r.call(n)}return r.translate=function(t){return arguments.length?(e.translate(t),n.translate([0,0]),r):e.translate()},r.scale=function(t){return arguments.length?(e.scale(t),n.scale(1),r):e.scale()},r.scaleExtent=function(t){return arguments.length?(e.scaleExtent(t),r):e.scaleExtent()},r.on=function(e,n){return"zoom"!=e?r:null==n?t:(t=n,r)},r.getTransform=function(t){return"translate("+(t.x+t.width/2-r.translate()[0])/r.scale()+","+(t.y+t.height/2-r.translate()[1])/r.scale()+") scale("+.5/r.scale()+")"},r}var Selectable=function(){var t=function(t){var r=null;t.on("click",function(i){var o=d3.select(this),a=!o.classed("selected");d3.event.ctrlKey&&d3.event.shiftKey?a?(r=r||i,e.call(this,i,r).classed("selected",!0)):(o.classed("selected",a),r=r==i?null:r):d3.event.ctrlKey?(o.classed("selected",a),a?r=i:r==i&&(r=null)):d3.event.shiftKey?(t.classed("selected",!1),r=r||i,e.call(this,i,r).classed("selected",!0)):1==t.filter(".selected")[0].length?(t.classed("selected",!1),o.classed("selected",a),r=a?i:null):(t.classed("selected",!1),o.classed("selected",!0),r=i),n()});d3.select("body").on("keyup",function(e){if(d3.event.ctrlKey&&65==d3.event.keyCode){var r=t.filter(function(t){return!d3.select(this).classed("selected")}).empty();t.classed("selected",!r),n()}})},e=function(t,e){return[t,e]},n=function(){};return t.getrange=function(n){return 0==arguments.length?e:(e=n,t)},t.on=function(e,r){if("select"==e)return null==r?n:(n=r,t)},t};jQuery.fn.outerHTML=function(){return jQuery("<div />").append(this.eq(0).clone()).html()};var timestampToTimeString=function(t){t=Math.floor(t);var e=new Date(t),n=e.getHours(),r=e.getMinutes();r=r<10?"0"+r:r;var i=e.getSeconds();i=i<10?"0"+i:i;var o=e.getMilliseconds();return n+":"+r+":"+i+"."+(o=o<10?"00"+o:o<100?"0"+o:o)},DirectedAcyclicGraphTooltip=function(t){return Tooltip(t).title(function(t){var e=t.report,n=["Source","Operation","Agent","Label","Class","Timestamp","HRT","Cycles","Host","ProcessID","ThreadID","ThreadName","X-Trace"];function r(t,e,n){var r=$("<div>").attr("class","key").append(t),i=$("<div>").attr("class","value").append(e),o=$("<div>").attr("class","clear");n.append($("<div>").append(r).append(i).append(o))}for(var i=$("<div>").attr("class","xtrace-tooltip"),o={Edge:!0,version:!0},a=0;a<n.length;a++){var u=n[a];e.hasOwnProperty(u)&&(o[u]=!0,r(u,"Timestamp"==u?timestampToTimeString(e[u][0]):e[u].join(", "),i))}for(var u in e)o[u]||r(u,e[u].join(", "),i);return r("(hash)",hash_report(e),i),i.outerHTML()})},CompareTooltip=function(){return Tooltip().title(function(t){function e(t,e,n){var r=$("<div>").attr("class","key").append(t),i=$("<div>").attr("class","value").append(e),o=$("<div>").attr("class","clear");n.append($("<div>").append(r).append(i).append(o))}var n=$("<div>").attr("class","xtrace-tooltip");return e("ID",t.get_id(),n),e("NumReports",t.get_node_ids().length,n),e("NumLabels",Object.keys(t.get_labels()).length,n),n.outerHTML()})},Tooltip=function(t){null==t&&(t=$.fn.tipsy.autoWE);var e=function(e){e.each(function(e){$(this).tipsy({gravity:t,html:!0,title:function(){return n(e)},opacity:1})})},n=function(t){return""};return e.hide=function(){$(".tipsy").remove()},e.title=function(t){return 0==arguments.length?n:(n=t,e)},e};function XTraceDAG(t,e,n){var r=this,i=!1,o=d3.select(t).append("svg").attr("width","100%").attr("height","100%"),a=o.append("svg").attr("width","100%").attr("height","100%").attr("class","graph-attach");a.node().oncontextmenu=function(t){return!1};var u=o.append("svg").attr("class","minimap-attach"),c=o.append("svg").attr("class","history-attach"),s=createGraphFromDigraph(e),l=DirectedAcyclicGraphHistory(),f=DirectedAcyclicGraph().animate(!i),d=DirectedAcyclicGraphMinimap(f).width("19.5%").height("19.5%").x("80%").y("80%"),p=List().width("15%").height("99%").x("0.5%").y("0.5%"),g=DirectedAcyclicGraphTooltip(),v=DirectedAcyclicGraphContextMenu(s,a),y=function(){var e=m.translate(),n=m.scale();a.select(".graph").attr("transform","translate("+e[0]+","+e[1]+") scale("+n+")"),u.select(".viewfinder").attr("x",-e[0]/n).attr("y",-e[1]/n).attr("width",t.offsetWidth/n).attr("height",t.offsetHeight/n),i||a.selectAll(".node text").attr("opacity",3*n-.3)},m=MinimapZoom().scaleExtent([.001,2]).on("zoom",y);m.call(this,o,u);var _=function(){var e=a.node().getBBox(),n=e.x,r=e.y,i=e.width+50,o=e.height+50;scale=Math.min(t.offsetWidth/i,t.offsetHeight/o),w=t.offsetWidth/scale,h=t.offsetHeight/scale,tx=((w-i)/2-n+25)*scale,ty=((h-o)/2-r+25)*scale,m.translate([tx,ty]).scale(scale),y()};function b(){v.call(a.node(),a.selectAll(".node:not(.group)")),v.on("open",function(){g.hide()}).on("close",function(){i||(a.selectAll(".node:not(.group)").classed("preview",!1),a.selectAll(".edge").classed("preview",!1))}).on("hidenodes",function(t,e){var n=l.addSelection(t,e);i||a.classed("hovering",!1),c.datum(l).call(p);var o=p.bbox().call(p.select.call(c.node(),n),n),u=m.getTransform(o);f.removenode(function(t){i?d3.select(this).remove():d3.select(this).classed("visible",!1).transition().duration(800).attr("transform",u).remove()}),r.draw();var s={};a.selectAll(".node.selected").data().forEach(function(t){s[t.id]=!0}),a.selectAll(".edge").classed("selected",function(t){return s[t.source.id]&&s[t.target.id]})}).on("hovernodes",function(t){if(!i){a.selectAll(".node:not(.group)").classed("preview",function(e){return-1!=t.indexOf(e)});var e={};a.selectAll(".node.preview").data().forEach(function(t){e[t.id]=!0}),a.selectAll(".edge").classed("preview",function(t){return e[t.source.id]&&e[t.target.id]})}}).on("selectnodes",function(t){var e={};t.forEach(function(t){e[t.id]=!0}),a.selectAll(".node:not(.group)").classed("selected",function(t){var n=e[t.id];return d3.event.ctrlKey&&(n=n||d3.select(this).classed("selected")),n}),a.selectAll(".edge").classed("selected",function(t){var n=e[t.source.id]&&e[t.target.id];return d3.event.ctrlKey&&(n=n||d3.select(this).classed("selected")),n}),b(),g.hide()})}function x(){var t=a.selectAll(".node.node:not(.group)"),e=a.selectAll(".edge"),n=c.selectAll(".item"),o=a.selectAll(".edgelabel");Selectable().getrange(function(e,n){var r=getNodesBetween(e,n).concat(getNodesBetween(n,e));return t.data(r,f.nodeid())}).on("select",function(){var t={};a.selectAll(".node.selected").data().forEach(function(e){t[e.id]=!0}),e.classed("selected",function(e){return t[e.source.id]&&t[e.target.id]}),o.classed("selected",function(e){return t[e.source.id]&&t[e.target.id]}),b(),g.hide()})(t),i||t.on("mouseover",function(n){a.classed("hovering",!0),function(n){var r=getEntirePathLinks(n),i={},a={};r.forEach(function(t){i[t.source.id]=!0,i[t.target.id]=!0,a[t.source.id+t.target.id]=!0}),e.classed("hovered",function(t){return a[t.source.id+t.target.id]}),o.classed("hovered",function(t){return a[t.source.id+t.target.id]}),t.classed("hovered",function(t){return i[t.id]});var u={},c={};u[n.id]=!0,n.getVisibleParents().forEach(function(t){u[t.id]=!0,c[t.id+n.id]=!0}),n.getVisibleChildren().forEach(function(t){u[t.id]=!0,c[n.id+t.id]=!0}),e.classed("immediate",function(t){return c[t.source.id+t.target.id]}),o.classed("immediate",function(t){return c[t.source.id+t.target.id]}),t.classed("immediate",function(t){return u[t.id]})}(n)}).on("mouseout",function(n){a.classed("hovering",!1),e.classed("hovered",!1).classed("immediate",!1),t.classed("hovered",!1).classed("immediate",!1),o.classed("hovered",!1).classed("immediate",!1)}),n.on("click",function(t,e){l.remove(t),c.datum(l).call(p);var n=m.getTransform(p.bbox().call(this,t));f.newnodetransition(function(t){f.animate()?d3.select(this).attr("transform",n).transition().duration(800).attr("transform",f.nodeTranslate):d3.select(this).attr("transform",n).attr("transform",f.nodeTranslate)}),r.draw()})}this.draw=function(){g.hide();var t=(new Date).getTime(),e=(new Date).getTime();a.datum(s).call(f),e=(new Date).getTime(),u.datum(a.node()).call(d),e=(new Date).getTime(),e=(new Date).getTime(),x(),e=(new Date).getTime(),y(),e=(new Date).getTime(),b()},this.draw(),_(),this.attachPoint=t,this.digraph=e,this.DAG=f,this.DAGMinimap=d,this.DAGHistory=p,this.DAGTooltip=g,this.DAGContextMenu=v,this.graph=s,this.resetViewport=_,this.history=l}window.width=function(){return document.body.clientWidth},window.height=function(){return document.body.clientHeight};var getParameter=function(t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(window.location.href);return null==e?"":e[1]},getParameters=function(){if(-1==window.location.href.indexOf("?"))return{};var t=window.location.href.substr(window.location.href.indexOf("?")+1).split("&"),e={};return t.forEach(function(t){splits=t.split("="),2==splits.length&&(e[splits[0]]=splits[1])}),e},getReports=function(t,e,n){null==t&&n("No IDs specified");var r=0;ids=t.split(","),json_ids=[],regular_ids=[];for(r=0;r<ids.length;r++){var i=ids[r];-1!=i.indexOf(".json")?json_ids.push(i):regular_ids.push(i)}var o=[],a=!1,u=!1,c=function(t){o=o.concat(t),r++,0==regular_ids.length?(u=!0,a&&u&&e(o)):(next_request_ids=regular_ids.splice(0,20),console.info("Retrieving batch "+r+":",next_request_ids),getAllReports(next_request_ids.join(),c,n))},s=null,l=function(t){1==t.length&&(t[0].id=s),o=o.concat(t),0==json_ids.length?(a=!0)&&u&&e(o):(s=json_ids.splice(0,1),d3.json(s,l),console.info("Retrieving JSON file "+i))};c([]),l([])},getAllReports=function(t,e,n){var r="reports/"+t,i=new XMLHttpRequest;i.open("GET",r,!0),i.onreadystatechange=function(){if(4==i.readyState)if(i.status=200){var t=JSON.parse(i.responseText);t.forEach(function(t){sanitizeReports(t.reports)}),e(t)}else n(i.status,i)},i.send(null)};function getRelated(t,e,n){var r="overlapping/"+t,i=new XMLHttpRequest;i.open("GET",r,!0),i.onreadystatechange=function(){if(4==i.readyState)if(i.status=200)try{var t=JSON.parse(i.responseText);e(t)}catch(t){n(t)}else n(i)},i.send(null)}function getTags(t,e,n){var r="tags/"+t,i=new XMLHttpRequest;i.open("GET",r,!0),i.onreadystatechange=function(){if(4==i.readyState)if(i.status=200)try{var t=JSON.parse(i.responseText);e(t)}catch(t){n(t)}else n(i)},i.send(null)}function getGCReports(t,e,n){var r=function(t){for(var n={},r=0;r<t.length;r++)for(var i=t[r].reports,o=0;o<i.length;o++){var a=i[o];if(a.Operation&&"GC"==a.Operation[0]){var u=a.ProcessID[0];n[u]?n[u].push(a):n[u]=[a]}}e(n)},i=function(t){var i=[];for(var o in t){-1!=t[o].indexOf("GC")&&i.push(o)}i.length>0?getReports(i.join(","),r,n):e({})};getRelated(t,function(t){getTags(t.join(","),i,n)},n)}var sanitizeReports=function(t){for(var e=0;e<t.length;){var n=t[e];n.hasOwnProperty("X-Trace")&&n.hasOwnProperty("Edge")&&1!=!n["X-Trace"].length&&n.Edge.hasOwnProperty("length")?e++:(t.splice(e,1),console.warn("Got a bad report:",n))}return t},createGraphFromDigraph=function(t){for(var e={},n=0;n<t.nodes().length;n++){var r=t.nodes()[n];e[r]=new Node(r),e[r].params=t.node(r),e[r].params.label&&(e[r].params.label=jQuery.parseHTML(e[r].params.label)[0].textContent,e[r].params.label=e[r].params.label.replace(/\\</g,"<").replace(/\\>/g,">")),e[r].params.isGroup=!!t.children(r).length}for(var i in e){var o=e[i];t.successors(o.id).forEach(function(t){o.addChild(e[t])}),t.predecessors(o.id).forEach(function(t){o.addParent(e[t])})}var a={};for(n=0;n<t.edges().length;n++){var u=t.edges()[n],c=u.v+u.w;a[c]=new Edge(c,e[u.v],e[u.w]),a[c].params=t.edge(u)}var s=new Graph(t);for(var r in e)s.addNode(e[r]);for(var r in a)s.addEdge(a[r]);return s},createJSONFromVisibleGraph=function(t){for(var e=t.getVisibleNodes(),n=[],r=0;r<e.length;r++){var i=e[r],o=i.getVisibleParents(),a=$.extend({},i.report);a.Edge=[];for(var u=0;u<o.length;u++)a.Edge.push(o[u].id);n.push(a)}return{reports:n}};function hash_report(t){return hash=0,t.Agent&&(hash+=("Agent:"+t.Agent[0]).hashCode()),t.Label&&(hash+=("Label:"+t.Label[0]).hashCode()),t.Class&&(hash+=("Class:"+t.Class[0]).hashCode()),hash&hash}String.prototype.hashCode=function(){var t,e=0;if(0==this.length)return e;for(t=0;t<this.length;t++)e=(e<<5)-e+this.charCodeAt(t),e&=e;return e};var filter_yarnchild_reports=function(t){for(var e={},n=0;n<t.length;n++){var r=t[n];!r.hasOwnProperty("Agent")||"YarnChild"!=r.Agent[0]&&"Hadoop Job"!=r.Agent[0]||(e[r.ProcessID[0]]=!0)}return filter_reports(t,function(t){return!e[t.ProcessID[0]]})},filter_merge_reports=function(t){return filter_reports(t,function(t){return t.Operation&&"merge"==t.Operation[0]})},filter_agent_reports=function(t,e){return filter_reports(t,function(t){return t.Agent&&t.Agent[0]==e})},filter_reports=function(t,e){for(var n={},r={},i={},o=0;o<t.length;o++){var a=t[o],u=a["X-Trace"][0].substr(18);i[u]=a,e(a)?r[u]=a:n[u]=a}var c={},s=function(t){if(!c[t]){for(var e=i[t],n=e.Edge,o={},a=0;a<n.length;a++)r[n[a]]?(s(n[a]),i[n[a]].Edge.forEach(function(t){o[t]=!0})):o[n[a]]=!0;e.Edge=Object.keys(o),c[t]=!0}};return Object.keys(n).map(function(t){return s(t),n[t]})},kernelgraph_for_trace=function(t){return KernelGraph.fromJSON(t)},yarnchild_kernelgraph_for_trace=function(t){return t.reports=filter_yarnchild_reports(t.reports),t.reports=filter_merge_reports(t.reports),kernelgraph_for_trace(t)},report_id=function(t){return t["X-Trace"][0].substr(18)},critical_path=function(t,e){null==e&&(e=t[t.length-1]);for(var n={},r=0;r<t.length;r++)n[report_id(t[r])]=t[r];for(var i=[],o=e;o&&o.Edge;){i.push(o);var a=o.Edge;o=n[a[0]];for(r=1;null==o&&r<a.length;r++)o=n[a[r]];for(r=1;r<a.length;r++){var u=n[a[r]];n[a[r]]&&Number(u.Timestamp[0])>Number(o.Timestamp[0])&&(o=u)}}for(r=0;r<i.length;r++)i[r].criticalpath=["true"];return i};