text: !function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=t.length,n=te.type(t);return"function"===n||te.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,n){if(te.isFunction(e))return te.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return te.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(ue.test(e))return te.filter(e,t,n);e=te.filter(e,t)}return te.grep(t,function(t){return W.call(e,t)>=0!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e=he[t]={};return te.each(t.match(pe)||[],function(t,n){e[n]=!0}),e}function a(){K.removeEventListener("DOMContentLoaded",a,!1),t.removeEventListener("load",a,!1),te.ready()}function u(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=te.expando+Math.random()}function s(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(xe,"-$1").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:be.test(n)?te.parseJSON(n):n}catch(i){}ye.set(t,e,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function f(){try{return K.activeElement}catch(t){}}function d(t,e){return te.nodeName(t,"table")&&te.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function p(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function h(t){var e=Oe.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function v(t,e){for(var n=0,r=t.length;r>n;n++)me.set(t[n],"globalEval",!e||me.get(e[n],"globalEval"))}function g(t,e){var n,r,i,o,a,u,s,l;if(1===e.nodeType){if(me.hasData(t)&&(o=me.access(t),a=me.set(e,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)te.event.add(e,i,l[i][n])}ye.hasData(t)&&(u=ye.access(t),s=te.extend({},u),ye.set(e,s))}}function m(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&te.nodeName(t,e)?te.merge([t],n):n}function y(t,e){var n=e.nodeName.toLowerCase();"input"===n&&ke.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function b(e,n){var r=te(n.createElement(e)).appendTo(n.body),i=t.getDefaultComputedStyle?t.getDefaultComputedStyle(r[0]).display:te.css(r[0],"display");return r.detach(),i}function x(t){var e=K,n=Fe[t];return n||(n=b(t,e),"none"!==n&&n||(He=(He||te("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=He[0].contentDocument,e.write(),e.close(),n=b(t,e),He.detach()),Fe[t]=n),n}function $(t,e,n){var r,i,o,a,u=t.style;return n=n||ze(t),n&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||te.contains(t.ownerDocument,t)||(a=te.style(t,e)),Ie.test(a)&&Ue.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function w(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function M(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Je.length;i--;)if(e=Je[i]+n,e in t)return e;return r}function k(t,e,n){var r=Ve.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function C(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=te.css(t,n+we[o],!0,i)),r?("content"===n&&(a-=te.css(t,"padding"+we[o],!0,i)),"margin"!==n&&(a-=te.css(t,"border"+we[o]+"Width",!0,i))):(a+=te.css(t,"padding"+we[o],!0,i),"padding"!==n&&(a+=te.css(t,"border"+we[o]+"Width",!0,i)));return a}function _(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=ze(t),a="border-box"===te.css(t,"boxSizing",!1,o);if(0>=i||null==i){if(i=$(t,e,o),(0>i||null==i)&&(i=t.style[e]),Ie.test(i))return i;r=a&&(G.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+C(t,e,n||(a?"border":"content"),r,o)+"px"}function S(t,e){for(var n,r,i,o=[],a=0,u=t.length;u>a;a++)r=t[a],r.style&&(o[a]=me.get(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Me(r)&&(o[a]=me.access(r,"olddisplay",x(r.nodeName)))):o[a]||(i=Me(r),(n&&"none"!==n||!i)&&me.set(r,"olddisplay",i?n:te.css(r,"display"))));for(a=0;u>a;a++)r=t[a],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function E(t,e,n,r,i){return new E.prototype.init(t,e,n,r,i)}function A(){return setTimeout(function(){Ze=void 0}),Ze=te.now()}function T(t,e){var n,r=0,i={height:t};for(e=e?1:0;4>r;r+=2-e)n=we[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function N(t,e,n){for(var r,i=(nn[e]||[]).concat(nn["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,e,t))return r}function j(t,e,n){var r,i,o,a,u,s,l,c=this,f={},d=t.style,p=t.nodeType&&Me(t),h=me.get(t,"fxshow");n.queue||(u=te._queueHooks(t,"fx"),null==u.unqueued&&(u.unqueued=0,s=u.empty.fire,u.empty.fire=function(){u.unqueued||s()}),u.unqueued++,c.always(function(){c.always(function(){u.unqueued--,te.queue(t,"fx").length||u.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],l=te.css(t,"display"),"none"===l&&(l=x(t.nodeName)),"inline"===l&&"none"===te.css(t,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],Ke.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}f[r]=h&&h[r]||te.style(t,r)}if(!te.isEmptyObject(f)){h?"hidden"in h&&(p=h.hidden):h=me.access(t,"fxshow",{}),o&&(h.hidden=!p),p?te(t).show():c.done(function(){te(t).hide()}),c.done(function(){var e;me.remove(t,"fxshow");for(e in f)te.style(t,e,f[e])});for(r in f)a=N(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function D(t,e){var n,r,i,o,a;for(n in t)if(r=te.camelCase(n),i=e[r],o=t[n],te.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),a=te.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function L(t,e,n){var r,i,o=0,a=en.length,u=te.Deferred().always(function(){delete s.elem}),s=function(){if(i)return!1;for(var e=Ze||A(),n=Math.max(0,l.startTime+l.duration-e),r=n/l.duration||0,o=1-r,a=0,s=l.tweens.length;s>a;a++)l.tweens[a].run(o);return u.notifyWith(t,[l,o,n]),1>o&&s?n:(u.resolveWith(t,[l]),!1)},l=u.promise({elem:t,props:te.extend({},e),opts:te.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Ze||A(),duration:n.duration,tweens:[],createTween:function(e,n){var r=te.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return e?u.resolveWith(t,[l,e]):u.rejectWith(t,[l,e]),this}}),c=l.props;for(D(c,l.opts.specialEasing);a>o;o++)if(r=en[o].call(l,t,c,l.opts))return r;return te.map(c,N,l),te.isFunction(l.opts.start)&&l.opts.start.call(t,l),te.fx.timer(te.extend(s,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function R(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(pe)||[];if(te.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 O(t,e,n,r){function i(u){var s;return o[u]=!0,te.each(t[u]||[],function(t,u){var l=u(e,n,r);return"string"!=typeof l||a||o[l]?a?!(s=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),s}var o={},a=t===wn;return i(e.dataTypes[0])||!o["*"]&&i("*")}function q(t,e){var n,r,i=te.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&te.extend(!0,t,r),t}function P(t,e,n){for(var r,i,o,a,u=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){s.unshift(i);break}if(s[0]in n)o=s[0];else{for(i in n){if(!s[0]||t.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}return o?(o!==s[0]&&s.unshift(o),n[o]):void 0}function H(t,e,n,r){var i,o,a,u,s,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!s&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),s=o,o=c.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(a=l[s+" "+o]||l["* "+o],!a)for(i in l)if(u=i.split(" "),u[1]===o&&(a=l[s+" "+u[0]]||l["* "+u[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=u[0],c.unshift(u[1]));break}if(a!==!0)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+s+" to "+o}}}return{state:"success",data:e}}function F(t,e,n,r){var i;if(te.isArray(e))te.each(e,function(e,i){n||_n.test(t)?r(t,i):F(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==te.type(e))r(t,e);else for(i in e)F(t+"["+i+"]",e[i],n,r)}function U(t){return te.isWindow(t)?t:9===t.nodeType&&t.defaultView}var I=[],z=I.slice,B=I.concat,V=I.push,W=I.indexOf,Y={},X=Y.toString,J=Y.hasOwnProperty,Z="".trim,G={},K=t.document,Q="2.1.0",te=function(t,e){return new te.fn.init(t,e)},ee=/^-ms-/,ne=/-([\da-z])/gi,re=function(t,e){return e.toUpperCase()};te.fn=te.prototype={jquery:Q,constructor:te,selector:"",length:0,toArray:function(){return z.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:z.call(this)},pushStack:function(t){var e=te.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return te.each(this,t,e)},map:function(t){return this.pushStack(te.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:I.sort,splice:I.splice},te.extend=te.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},u=1,s=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[u]||{},u++),"object"==typeof a||te.isFunction(a)||(a={}),u===s&&(a=this,u--);s>u;u++)if(null!=(t=arguments[u]))for(e in t)n=a[e],r=t[e],a!==r&&(l&&r&&(te.isPlainObject(r)||(i=te.isArray(r)))?(i?(i=!1,o=n&&te.isArray(n)?n:[]):o=n&&te.isPlainObject(n)?n:{},a[e]=te.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},te.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===te.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return t-parseFloat(t)>=0},isPlainObject:function(t){if("object"!==te.type(t)||t.nodeType||te.isWindow(t))return!1;try{if(t.constructor&&!J.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Y[X.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=te.trim(t),t&&(1===t.indexOf("use strict")?(e=K.createElement("script"),e.text=t,K.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ee,"ms-").replace(ne,re)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,r){var i,o=0,a=t.length,u=n(t);if(r){if(u)for(;a>o&&(i=e.apply(t[o],r),i!==!1);o++);else for(o in t)if(i=e.apply(t[o],r),i===!1)break}else if(u)for(;a>o&&(i=e.call(t[o],o,t[o]),i!==!1);o++);else for(o in t)if(i=e.call(t[o],o,t[o]),i===!1)break;return t},trim:function(t){return null==t?"":Z.call(t)},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?te.merge(r,"string"==typeof t?[t]:t):V.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:W.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;n>r;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,a=t.length,u=!n;a>o;o++)r=!e(t[o],o),r!==u&&i.push(t[o]);return i},map:function(t,e,r){var i,o=0,a=t.length,u=n(t),s=[];if(u)for(;a>o;o++)i=e(t[o],o,r),null!=i&&s.push(i);else for(o in t)i=e(t[o],o,r),null!=i&&s.push(i);return B.apply([],s)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),te.isFunction(t)?(r=z.call(arguments,2),i=function(){return t.apply(e||this,r.concat(z.call(arguments)))},i.guid=t.guid=t.guid||te.guid++,i):void 0},now:Date.now,support:G}),te.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Y["[object "+e+"]"]=e.toLowerCase()});var ie=function(t){function e(t,e,n,r){var i,o,a,u,s,l,f,h,v,g;if((e?e.ownerDocument||e:F)!==j&&N(e),e=e||j,n=n||[],!t||"string"!=typeof t)return n;if(1!==(u=e.nodeType)&&9!==u)return[];if(L&&!r){if(i=ye.exec(t))if(a=i[1]){if(9===u){if(o=e.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&P(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&M.getElementsByClassName&&e.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(a)),n}if(M.qsa&&(!R||!R.test(t))){if(h=f=H,v=e,g=9===u&&t,1===u&&"object"!==e.nodeName.toLowerCase()){for(l=d(t),(f=e.getAttribute("id"))?h=f.replace(xe,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",s=l.length;s--;)l[s]=h+p(l[s]);v=be.test(t)&&c(e.parentNode)||e,g=l.join(",")}if(g)try{return Q.apply(n,v.querySelectorAll(g)),n}catch(m){}finally{f||e.removeAttribute("id")}}}return $(t.replace(se,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>k.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[H]=!0,t}function i(t){var e=j.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=t.length;r--;)k.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||X)-(~t.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function u(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function s(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return r(function(e){return e=+e,r(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]))})})}function c(t){return t&&typeof t.getElementsByTagName!==Y&&t}function f(){}function d(t,n){var r,i,o,a,u,s,l,c=B[t+" "];if(c)return n?0:c.slice(0);for(u=t,s=[],l=k.preFilter;u;){(!r||(i=le.exec(u)))&&(i&&(u=u.slice(i[0].length)||u),s.push(o=[])),r=!1,(i=ce.exec(u))&&(r=i.shift(),o.push({value:r,type:i[0].replace(se," ")}),u=u.slice(r.length));for(a in k.filter)!(i=he[a].exec(u))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),u=u.slice(r.length));if(!r)break}return n?u.length:u?e.error(t):B(t,s).slice(0)}function p(t){for(var e=0,n=t.length,r="";n>e;e++)r+=t[e].value;return r}function h(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=I++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var u,s,l=[U,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(s=e[H]||(e[H]={}),(u=s[r])&&u[0]===U&&u[1]===o)return l[2]=u[2];if(s[r]=l,l[2]=t(e,n,a))return!0}}}function v(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 g(t,e,n,r,i){for(var o,a=[],u=0,s=t.length,l=null!=e;s>u;u++)(o=t[u])&&(!n||n(o,r,i))&&(a.push(o),l&&e.push(u));return a}function m(t,e,n,i,o,a){return i&&!i[H]&&(i=m(i)),o&&!o[H]&&(o=m(o,a)),r(function(r,a,u,s){var l,c,f,d=[],p=[],h=a.length,v=r||x(e||"*",u.nodeType?[u]:u,[]),m=!t||!r&&e?v:g(v,d,t,u,s),y=n?o||(r?t:h||i)?[]:a:m;if(n&&n(m,y,u,s),i)for(l=g(y,p),i(l,[],u,s),c=l.length;c--;)(f=l[c])&&(y[p[c]]=!(m[p[c]]=f));if(r){if(o||t){if(o){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(m[c]=f);o(null,y=[],l,s)}for(c=y.length;c--;)(f=y[c])&&(l=o?ee.call(r,f):d[c])>-1&&(r[l]=!(a[l]=f))}}else y=g(y===a?y.splice(h,y.length):y),o?o(null,a,y,s):Q.apply(a,y)})}function y(t){for(var e,n,r,i=t.length,o=k.relative[t[0].type],a=o||k.relative[" "],u=o?1:0,s=h(function(t){return t===e},a,!0),l=h(function(t){return ee.call(e,t)>-1},a,!0),c=[function(t,n,r){return!o&&(r||n!==E)||((e=n).nodeType?s(t,n,r):l(t,n,r))}];i>u;u++)if(n=k.relative[t[u].type])c=[h(v(c),n)];else{if(n=k.filter[t[u].type].apply(null,t[u].matches),n[H]){for(r=++u;i>r&&!k.relative[t[r].type];r++);return m(u>1&&v(c),u>1&&p(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(se,"$1"),n,r>u&&y(t.slice(u,r)),i>r&&y(t=t.slice(r)),i>r&&p(t))}c.push(n)}return v(c)}function b(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,u,s,l){var c,f,d,p=0,h="0",v=r&&[],m=[],y=E,b=r||o&&k.find.TAG("*",l),x=U+=null==y?1:Math.random()||.1,$=b.length;for(l&&(E=a!==j&&a);h!==$&&null!=(c=b[h]);h++){if(o&&c){for(f=0;d=t[f++];)if(d(c,a,u)){s.push(c);break}l&&(U=x)}i&&((c=!d&&c)&&p--,r&&v.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(v,m,a,u);if(r){if(p>0)for(;h--;)v[h]||m[h]||(m[h]=G.call(s));m=g(m)}Q.apply(s,m),l&&!r&&m.length>0&&p+n.length>1&&e.uniqueSort(s)}return l&&(U=x,E=y),v};return i?r(a):a}function x(t,n,r){for(var i=0,o=n.length;o>i;i++)e(t,n[i],r);return r}function $(t,e,n,r){var i,o,a,u,s,l=d(t);if(!r&&1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&M.getById&&9===e.nodeType&&L&&k.relative[o[1].type]){if(e=(k.find.ID(a.matches[0].replace($e,we),e)||[])[0],!e)return n;t=t.slice(o.shift().value.length)}for(i=he.needsContext.test(t)?0:o.length;i--&&(a=o[i],!k.relative[u=a.type]);)if((s=k.find[u])&&(r=s(a.matches[0].replace($e,we),be.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&p(o),!t)return Q.apply(n,r),n;break}}return S(t,l)(r,e,!L,n,be.test(t)&&c(e.parentNode)||e),n}var w,M,k,C,_,S,E,A,T,N,j,D,L,R,O,q,P,H="sizzle"+-new Date,F=t.document,U=0,I=0,z=n(),B=n(),V=n(),W=function(t,e){return t===e&&(T=!0),0},Y="undefined",X=1<<31,J={}.hasOwnProperty,Z=[],G=Z.pop,K=Z.push,Q=Z.push,te=Z.slice,ee=Z.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",re="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe=ie.replace("w","w#"),ae="\\["+re+"*("+ie+")"+re+"*(?:([*^$|!~]?=)"+re+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+oe+")|)|)"+re+"*\\]",ue=":("+ie+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ae.replace(3,8)+")*)|.*)\\)|)",se=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g"),le=new RegExp("^"+re+"*,"+re+"*"),ce=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),fe=new RegExp("="+re+"*([^\\]'\"]*?)"+re+"*\\]","g"),de=new RegExp(ue),pe=new RegExp("^"+oe+"$"),he={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie.replace("w","w*")+")"),ATTR:new RegExp("^"+ae),PSEUDO:new RegExp("^"+ue),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},ve=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,xe=/'|\\/g,$e=new RegExp("\\\\([\\da-f]{1,6}"+re+"?|("+re+")|.)","ig"),we=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{Q.apply(Z=te.call(F.childNodes),F.childNodes),Z[F.childNodes.length].nodeType}catch(Me){Q={apply:Z.length?function(t,e){K.apply(t,te.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}M=e.support={},_=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},N=e.setDocument=function(t){var e,n=t?t.ownerDocument||t:F,r=n.defaultView;return n!==j&&9===n.nodeType&&n.documentElement?(j=n,D=n.documentElement,L=!_(n),r&&r!==r.top&&(r.addEventListener?r.addEventListener("unload",function(){N()},!1):r.attachEvent&&r.attachEvent("onunload",function(){N()})),M.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),M.getElementsByTagName=i(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),M.getElementsByClassName=me.test(n.getElementsByClassName)&&i(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),M.getById=i(function(t){return D.appendChild(t).id=H,!n.getElementsByName||!n.getElementsByName(H).length}),M.getById?(k.find.ID=function(t,e){if(typeof e.getElementById!==Y&&L){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},k.filter.ID=function(t){var e=t.replace($e,we);return function(t){return t.getAttribute("id")===e}}):(delete k.find.ID,k.filter.ID=function(t){var e=t.replace($e,we);return function(t){var n=typeof t.getAttributeNode!==Y&&t.getAttributeNode("id");return n&&n.value===e}}),k.find.TAG=M.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==Y?e.getElementsByTagName(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},k.find.CLASS=M.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==Y&&L?e.getElementsByClassName(t):void 0},O=[],R=[],(M.qsa=me.test(n.querySelectorAll))&&(i(function(t){t.innerHTML="<select t=''><option selected=''></option></select>",t.querySelectorAll("[t^='']").length&&R.push("[*^$]="+re+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+re+"*(?:value|"+ne+")"),t.querySelectorAll(":checked").length||R.push(":checked")}),i(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+re+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(M.matchesSelector=me.test(q=D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&i(function(t){M.disconnectedMatch=q.call(t,"div"),q.call(t,"[s!='']:x"),O.push("!=",ue)}),R=R.length&&new RegExp(R.join("|")),O=O.length&&new RegExp(O.join("|")),e=me.test(D.compareDocumentPosition),P=e||me.test(D.contains)?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},W=e?function(t,e){if(t===e)return T=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r?r:(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!M.sortDetached&&e.compareDocumentPosition(t)===r?t===n||t.ownerDocument===F&&P(F,t)?-1:e===n||e.ownerDocument===F&&P(F,e)?1:A?ee.call(A,t)-ee.call(A,e):0:4&r?-1:1)}:function(t,e){if(t===e)return T=!0,0;var r,i=0,o=t.parentNode,u=e.parentNode,s=[t],l=[e];if(!o||!u)return t===n?-1:e===n?1:o?-1:u?1:A?ee.call(A,t)-ee.call(A,e):0;if(o===u)return a(t,e);for(r=t;r=r.parentNode;)s.unshift(r);for(r=e;r=r.parentNode;)l.unshift(r);for(;s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]===F?-1:l[i]===F?1:0},n):j},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==j&&N(t),n=n.replace(fe,"='$1']"),!(!M.matchesSelector||!L||O&&O.test(n)||R&&R.test(n)))try{var r=q.call(t,n);if(r||M.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,j,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==j&&N(t),P(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==j&&N(t);var n=k.attrHandle[e.toLowerCase()],r=n&&J.call(k.attrHandle,e.toLowerCase())?n(t,e,!L):void 0;return void 0!==r?r:M.attributes||!L?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(T=!M.detectDuplicates,A=!M.sortStable&&t.slice(0),t.sort(W),T){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return A=null,t},C=e.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+=C(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=C(e);return n},k=e.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($e,we),t[3]=(t[4]||t[5]||"").replace($e,we),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[5]&&t[2];return he.CHILD.test(t[0])?null:(t[3]&&void 0!==t[4]?t[2]=t[4]:n&&de.test(n)&&(e=d(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){var e=t.replace($e,we).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=z[t+" "];return e||(e=new RegExp("(^|"+re+")"+t+"("+re+"|$)"))&&z(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==Y&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},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,s){var l,c,f,d,p,h,v=o!==a?"nextSibling":"previousSibling",g=e.parentNode,m=u&&e.nodeName.toLowerCase(),y=!s&&!u;if(g){if(o){for(;v;){for(f=e;f=f[v];)if(u?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;h=v="only"===t&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(c=g[H]||(g[H]={}),l=c[t]||[],p=l[0]===U&&l[1],d=l[0]===U&&l[2],f=p&&g.childNodes[p];f=++p&&f&&f[v]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===e){c[t]=[U,p,d];break}}else if(y&&(l=(e[H]||(e[H]={}))[t])&&l[0]===U)d=l[1];else for(;(f=++p&&f&&f[v]||(d=p=0)||h.pop())&&((u?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++d||(y&&((f[H]||(f[H]={}))[t]=[U,d]),f!==e)););return d-=i,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(t,n){var i,o=k.pseudos[t]||k.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[H]?o(n):o.length>1?(i=[t,t,"",n],k.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=ee.call(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(se,"$1"));return i[H]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(e[u]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return function(e){return(e.textContent||e.innerText||C(e)).indexOf(t)>-1}}),lang:r(function(t){return pe.test(t||"")||e.error("unsupported lang: "+t),t=t.replace($e,we).toLowerCase(),function(e){var n;do if(n=L?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===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===D},focus:function(t){return t===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},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,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!k.pseudos.empty(t)},header:function(t){return ge.test(t.nodeName)},input:function(t){return ve.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"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[0>n?n+e:n]}),even:l(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:l(function(t,e,n){for(var r=0>n?n+e:n;++r<e;)t.push(r);return t})}},k.pseudos.nth=k.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[w]=u(w);for(w in{submit:!0,reset:!0})k.pseudos[w]=s(w);return f.prototype=k.filters=k.pseudos,k.setFilters=new f,S=e.compile=function(t,e){var n,r=[],i=[],o=V[t+" "];if(!o){for(e||(e=d(t)),n=e.length;n--;)o=y(e[n]),o[H]?r.push(o):i.push(o);o=V(t,b(i,r))}return o},M.sortStable=H.split("").sort(W).join("")===H,M.detectDuplicates=!!T,N(),M.sortDetached=i(function(t){return 1&t.compareDocumentPosition(j.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),M.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(ne,function(t,e,n){var r;return n?void 0:t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);te.find=ie,te.expr=ie.selectors,te.expr[":"]=te.expr.pseudos,te.unique=ie.uniqueSort,te.text=ie.getText,te.isXMLDoc=ie.isXML,te.contains=ie.contains;var oe=te.expr.match.needsContext,ae=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ue=/^.[^:#\[\.,]*$/;te.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?te.find.matchesSelector(r,t)?[r]:[]:te.find.matches(t,te.grep(e,function(t){return 1===t.nodeType}))},te.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(te(t).filter(function(){for(e=0;n>e;e++)if(te.contains(i[e],this))return!0}));for(e=0;n>e;e++)te.find(t,i[e],r);return r=this.pushStack(n>1?te.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&oe.test(t)?te(t):t||[],!1).length}});var se,le=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ce=te.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:le.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||se).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof te?e[0]:e,te.merge(this,te.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:K,!0)),ae.test(n[1])&&te.isPlainObject(e))for(n in e)te.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=K.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=K,this.selector=t,this
  }return t.nodeType?(this.context=this[0]=t,this.length=1,this):te.isFunction(t)?"undefined"!=typeof se.ready?se.ready(t):t(te):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),te.makeArray(t,this))};ce.prototype=te.fn,se=te(K);var fe=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};te.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&te(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),te.fn.extend({has:function(t){var e=te(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(te.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=oe.test(t)||"string"!=typeof t?te(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&te.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?te.unique(o):o)},index:function(t){return t?"string"==typeof t?W.call(te(t),this[0]):W.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(te.unique(te.merge(this.get(),te(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),te.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return te.dir(t,"parentNode")},parentsUntil:function(t,e,n){return te.dir(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return te.dir(t,"nextSibling")},prevAll:function(t){return te.dir(t,"previousSibling")},nextUntil:function(t,e,n){return te.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return te.dir(t,"previousSibling",n)},siblings:function(t){return te.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return te.sibling(t.firstChild)},contents:function(t){return t.contentDocument||te.merge([],t.childNodes)}},function(t,e){te.fn[t]=function(n,r){var i=te.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=te.filter(r,i)),this.length>1&&(de[t]||te.unique(i),fe.test(t)&&i.reverse()),this.pushStack(i)}});var pe=/\S+/g,he={};te.Callbacks=function(t){t="string"==typeof t?he[t]||o(t):te.extend({},t);var e,n,r,i,a,u,s=[],l=!t.once&&[],c=function(o){for(e=t.memory&&o,n=!0,u=i||0,i=0,a=s.length,r=!0;s&&a>u;u++)if(s[u].apply(o[0],o[1])===!1&&t.stopOnFalse){e=!1;break}r=!1,s&&(l?l.length&&c(l.shift()):e?s=[]:f.disable())},f={add:function(){if(s){var n=s.length;!function o(e){te.each(e,function(e,n){var r=te.type(n);"function"===r?t.unique&&f.has(n)||s.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),r?a=s.length:e&&(i=n,c(e))}return this},remove:function(){return s&&te.each(arguments,function(t,e){for(var n;(n=te.inArray(e,s,n))>-1;)s.splice(n,1),r&&(a>=n&&a--,u>=n&&u--)}),this},has:function(t){return t?te.inArray(t,s)>-1:!(!s||!s.length)},empty:function(){return s=[],a=0,this},disable:function(){return s=l=e=void 0,this},disabled:function(){return!s},lock:function(){return l=void 0,e||f.disable(),this},locked:function(){return!l},fireWith:function(t,e){return!s||n&&!l||(e=e||[],e=[t,e.slice?e.slice():e],r?l.push(e):c(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!n}};return f},te.extend({Deferred:function(t){var e=[["resolve","done",te.Callbacks("once memory"),"resolved"],["reject","fail",te.Callbacks("once memory"),"rejected"],["notify","progress",te.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return te.Deferred(function(n){te.each(e,function(e,o){var a=te.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&te.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?te.extend(t,r):r}},i={};return r.pipe=r.then,te.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=z.call(arguments),a=o.length,u=1!==a||t&&te.isFunction(t.promise)?a:0,s=1===u?t:te.Deferred(),l=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?z.call(arguments):i,r===e?s.notifyWith(n,r):--u||s.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&te.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(s.reject).progress(l(i,n,e)):--u;return u||s.resolveWith(r,o),s.promise()}});var ve;te.fn.ready=function(t){return te.ready.promise().done(t),this},te.extend({isReady:!1,readyWait:1,holdReady:function(t){t?te.readyWait++:te.ready(!0)},ready:function(t){(t===!0?--te.readyWait:te.isReady)||(te.isReady=!0,t!==!0&&--te.readyWait>0||(ve.resolveWith(K,[te]),te.fn.trigger&&te(K).trigger("ready").off("ready")))}}),te.ready.promise=function(e){return ve||(ve=te.Deferred(),"complete"===K.readyState?setTimeout(te.ready):(K.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",a,!1))),ve.promise(e)},te.ready.promise();var ge=te.access=function(t,e,n,r,i,o,a){var u=0,s=t.length,l=null==n;if("object"===te.type(n)){i=!0;for(u in n)te.access(t,e,u,n[u],!0,o,a)}else if(void 0!==r&&(i=!0,te.isFunction(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(te(t),n)})),e))for(;s>u;u++)e(t[u],n,a?r:r.call(t[u],u,e(t[u],n)));return i?t:l?e.call(t):s?e(t[0],n):o};te.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},u.uid=1,u.accepts=te.acceptData,u.prototype={key:function(t){if(!u.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=u.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,te.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(te.isEmptyObject(o))te.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,te.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),a=this.cache[o];if(void 0===e)this.cache[o]={};else{te.isArray(e)?r=e.concat(e.map(te.camelCase)):(i=te.camelCase(e),e in a?r=[e,i]:(r=i,r=r in a?[r]:r.match(pe)||[])),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(t){return!te.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var me=new u,ye=new u,be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xe=/([A-Z])/g;te.extend({hasData:function(t){return ye.hasData(t)||me.hasData(t)},data:function(t,e,n){return ye.access(t,e,n)},removeData:function(t,e){ye.remove(t,e)},_data:function(t,e,n){return me.access(t,e,n)},_removeData:function(t,e){me.remove(t,e)}}),te.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=ye.get(o),1===o.nodeType&&!me.get(o,"hasDataAttrs"))){for(n=a.length;n--;)r=a[n].name,0===r.indexOf("data-")&&(r=te.camelCase(r.slice(5)),s(o,r,i[r]));me.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){ye.set(this,t)}):ge(this,function(e){var n,r=te.camelCase(t);if(o&&void 0===e){if(n=ye.get(o,t),void 0!==n)return n;if(n=ye.get(o,r),void 0!==n)return n;if(n=s(o,r,void 0),void 0!==n)return n}else this.each(function(){var n=ye.get(this,r);ye.set(this,r,e),-1!==t.indexOf("-")&&void 0!==n&&ye.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ye.remove(this,t)})}}),te.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=me.get(t,e),n&&(!r||te.isArray(n)?r=me.access(t,e,te.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=te.queue(t,e),r=n.length,i=n.shift(),o=te._queueHooks(t,e),a=function(){te.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return me.get(t,n)||me.access(t,n,{empty:te.Callbacks("once memory").add(function(){me.remove(t,[e+"queue",n])})})}}),te.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?te.queue(this[0],t):void 0===e?this:this.each(function(){var n=te.queue(this,t,e);te._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&te.dequeue(this,t)})},dequeue:function(t){return this.each(function(){te.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=te.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=me.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(e)}});var $e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,we=["Top","Right","Bottom","Left"],Me=function(t,e){return t=e||t,"none"===te.css(t,"display")||!te.contains(t.ownerDocument,t)},ke=/^(?:checkbox|radio)$/i;!function(){var t=K.createDocumentFragment(),e=t.appendChild(K.createElement("div"));e.innerHTML="<input type='radio' checked='checked' name='t'/>",G.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",G.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ce="undefined";G.focusinBubbles="onfocusin"in t;var _e=/^key/,Se=/^(?:mouse|contextmenu)|click/,Ee=/^(?:focusinfocus|focusoutblur)$/,Ae=/^([^.]*)(?:\.(.+)|)$/;te.event={global:{},add:function(t,e,n,r,i){var o,a,u,s,l,c,f,d,p,h,v,g=me.get(t);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=te.guid++),(s=g.events)||(s=g.events={}),(a=g.handle)||(a=g.handle=function(e){return typeof te!==Ce&&te.event.triggered!==e.type?te.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(pe)||[""],l=e.length;l--;)u=Ae.exec(e[l])||[],p=v=u[1],h=(u[2]||"").split(".").sort(),p&&(f=te.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=te.event.special[p]||{},c=te.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&te.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=s[p])||(d=s[p]=[],d.delegateCount=0,f.setup&&f.setup.call(t,r,h,a)!==!1||t.addEventListener&&t.addEventListener(p,a,!1)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),te.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,u,s,l,c,f,d,p,h,v,g=me.hasData(t)&&me.get(t);if(g&&(s=g.events)){for(e=(e||"").match(pe)||[""],l=e.length;l--;)if(u=Ae.exec(e[l])||[],p=v=u[1],h=(u[2]||"").split(".").sort(),p){for(f=te.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=s[p]||[],u=u[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&v!==c.origType||n&&n.guid!==c.guid||u&&!u.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(t,c));a&&!d.length&&(f.teardown&&f.teardown.call(t,h,g.handle)!==!1||te.removeEvent(t,p,g.handle),delete s[p])}else for(p in s)te.event.remove(t,p+e[l],n,r,!0);te.isEmptyObject(s)&&(delete g.handle,me.remove(t,"events"))}},trigger:function(e,n,r,i){var o,a,u,s,l,c,f,d=[r||K],p=J.call(e,"type")?e.type:e,h=J.call(e,"namespace")?e.namespace.split("."):[];if(a=u=r=r||K,3!==r.nodeType&&8!==r.nodeType&&!Ee.test(p+te.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.shift(),h.sort()),l=p.indexOf(":")<0&&"on"+p,e=e[te.expando]?e:new te.Event(p,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=h.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:te.makeArray(n,[e]),f=te.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!te.isWindow(r)){for(s=f.delegateType||p,Ee.test(s+p)||(a=a.parentNode);a;a=a.parentNode)d.push(a),u=a;u===(r.ownerDocument||K)&&d.push(u.defaultView||u.parentWindow||t)}for(o=0;(a=d[o++])&&!e.isPropagationStopped();)e.type=o>1?s:f.bindType||p,c=(me.get(a,"events")||{})[e.type]&&me.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&te.acceptData(a)&&(e.result=c.apply(a,n),e.result===!1&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||f._default&&f._default.apply(d.pop(),n)!==!1||!te.acceptData(r)||l&&te.isFunction(r[p])&&!te.isWindow(r)&&(u=r[l],u&&(r[l]=null),te.event.triggered=p,r[p](),te.event.triggered=void 0,u&&(r[l]=u)),e.result}},dispatch:function(t){t=te.event.fix(t);var e,n,r,i,o,a=[],u=z.call(arguments),s=(me.get(this,"events")||{})[t.type]||[],l=te.event.special[t.type]||{};if(u[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(a=te.event.handlers.call(this,t,s),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,r=((te.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],u=e.delegateCount,s=t.target;if(u&&s.nodeType&&(!t.button||"click"!==t.type))for(;s!==this;s=s.parentNode||this)if(s.disabled!==!0||"click"!==t.type){for(r=[],n=0;u>n;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?te(i,this).index(s)>=0:te.find(i,this,null,[s]).length),r[i]&&r.push(o);r.length&&a.push({elem:s,handlers:r})}return u<e.length&&a.push({elem:this,handlers:e.slice(u)}),a},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 offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||K,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[te.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Se.test(i)?this.mouseHooks:_e.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new te.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==f()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&te.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return te.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=te.extend(new te.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?te.event.trigger(i,null,e):te.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},te.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},te.Event=function(t,e){return this instanceof te.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.getPreventDefault&&t.getPreventDefault()?l:c):this.type=t,e&&te.extend(this,e),this.timeStamp=t&&t.timeStamp||te.now(),void(this[te.expando]=!0)):new te.Event(t,e)},te.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=l,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=l,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=l,this.stopPropagation()}},te.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){te.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==r&&!te.contains(r,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),G.focusinBubbles||te.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){te.event.simulate(e,t.target,te.event.fix(t),!0)};te.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=me.access(r,e);i||r.addEventListener(t,n,!0),me.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=me.access(r,e)-1;i?me.access(r,e,i):(r.removeEventListener(t,n,!0),me.remove(r,e))}}}),te.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(a in t)this.on(a,e,n,t[a],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),r===!1)r=c;else if(!r)return this;return 1===i&&(o=r,r=function(t){return te().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=te.guid++)),this.each(function(){te.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,te(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=c),this.each(function(){te.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){te.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?te.event.trigger(t,e,n,!0):void 0}});var Te=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ne=/<([\w:]+)/,je=/<|&#?\w+;/,De=/<(?:script|style|link)/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^$|\/(?:java|ecma)script/i,Oe=/^true\/(.*)/,qe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Pe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Pe.optgroup=Pe.option,Pe.tbody=Pe.tfoot=Pe.colgroup=Pe.caption=Pe.thead,Pe.th=Pe.td,te.extend({clone:function(t,e,n){var r,i,o,a,u=t.cloneNode(!0),s=te.contains(t.ownerDocument,t);if(!(G.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||te.isXMLDoc(t)))for(a=m(u),o=m(t),r=0,i=o.length;i>r;r++)y(o[r],a[r]);if(e)if(n)for(o=o||m(t),a=a||m(u),r=0,i=o.length;i>r;r++)g(o[r],a[r]);else g(t,u);return a=m(u,"script"),a.length>0&&v(a,!s&&m(t,"script")),u},buildFragment:function(t,e,n,r){for(var i,o,a,u,s,l,c=e.createDocumentFragment(),f=[],d=0,p=t.length;p>d;d++)if(i=t[d],i||0===i)if("object"===te.type(i))te.merge(f,i.nodeType?[i]:i);else if(je.test(i)){for(o=o||c.appendChild(e.createElement("div")),a=(Ne.exec(i)||["",""])[1].toLowerCase(),u=Pe[a]||Pe._default,o.innerHTML=u[1]+i.replace(Te,"<$1></$2>")+u[2],l=u[0];l--;)o=o.lastChild;te.merge(f,o.childNodes),o=c.firstChild,o.textContent=""}else f.push(e.createTextNode(i));for(c.textContent="",d=0;i=f[d++];)if((!r||-1===te.inArray(i,r))&&(s=te.contains(i.ownerDocument,i),o=m(c.appendChild(i),"script"),s&&v(o),n))for(l=0;i=o[l++];)Re.test(i.type||"")&&n.push(i);return c},cleanData:function(t){for(var e,n,r,i,o,a,u=te.event.special,s=0;void 0!==(n=t[s]);s++){if(te.acceptData(n)&&(o=n[me.expando],o&&(e=me.cache[o]))){if(r=Object.keys(e.events||{}),r.length)for(a=0;void 0!==(i=r[a]);a++)u[i]?te.event.remove(n,i):te.removeEvent(n,i,e.handle);me.cache[o]&&delete me.cache[o]}delete ye.cache[n[ye.expando]]}}}),te.fn.extend({text:function(t){return ge(this,function(t){return void 0===t?te.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?te.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||te.cleanData(m(n)),n.parentNode&&(e&&te.contains(n.ownerDocument,n)&&v(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(te.cleanData(m(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return te.clone(this,t,e)})},html:function(t){return ge(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!De.test(t)&&!Pe[(Ne.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Te,"<$1></$2>");try{for(;r>n;n++)e=this[n]||{},1===e.nodeType&&(te.cleanData(m(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,te.cleanData(m(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=B.apply([],t);var n,r,i,o,a,u,s=0,l=this.length,c=this,f=l-1,d=t[0],v=te.isFunction(d);if(v||l>1&&"string"==typeof d&&!G.checkClone&&Le.test(d))return this.each(function(n){var r=c.eq(n);v&&(t[0]=d.call(this,n,r.html())),r.domManip(t,e)});if(l&&(n=te.buildFragment(t,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=te.map(m(n,"script"),p),o=i.length;l>s;s++)a=n,s!==f&&(a=te.clone(a,!0,!0),o&&te.merge(i,m(a,"script"))),e.call(this[s],a,s);if(o)for(u=i[i.length-1].ownerDocument,te.map(i,h),s=0;o>s;s++)a=i[s],Re.test(a.type||"")&&!me.access(a,"globalEval")&&te.contains(u,a)&&(a.src?te._evalUrl&&te._evalUrl(a.src):te.globalEval(a.textContent.replace(qe,"")))}return this}}),te.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){te.fn[t]=function(t){for(var n,r=[],i=te(t),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),te(i[a])[e](n),V.apply(r,n.get());return this.pushStack(r)}});var He,Fe={},Ue=/^margin/,Ie=new RegExp("^("+$e+")(?!px)[a-z%]+$","i"),ze=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};!function(){function e(){u.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",o.appendChild(a);var e=t.getComputedStyle(u,null);n="1%"!==e.top,r="4px"===e.width,o.removeChild(a)}var n,r,i="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",o=K.documentElement,a=K.createElement("div"),u=K.createElement("div");u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",G.clearCloneStyle="content-box"===u.style.backgroundClip,a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(u),t.getComputedStyle&&te.extend(G,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},reliableMarginRight:function(){var e,n=u.appendChild(K.createElement("div"));return n.style.cssText=u.style.cssText=i,n.style.marginRight=n.style.width="0",u.style.width="1px",o.appendChild(a),e=!parseFloat(t.getComputedStyle(n,null).marginRight),o.removeChild(a),u.innerHTML="",e}})}(),te.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i};var Be=/^(none|table(?!-c[ea]).+)/,Ve=new RegExp("^("+$e+")(.*)$","i"),We=new RegExp("^([+-])=("+$e+")","i"),Ye={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:0,fontWeight:400},Je=["Webkit","O","Moz","ms"];te.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=te.camelCase(e),s=t.style;return e=te.cssProps[u]||(te.cssProps[u]=M(s,u)),a=te.cssHooks[e]||te.cssHooks[u],void 0===n?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[e]:(o=typeof n,"string"===o&&(i=We.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(te.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||te.cssNumber[u]||(n+="px"),G.clearCloneStyle||""!==n||0!==e.indexOf("background")||(s[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(s[e]="",s[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,a,u=te.camelCase(e);return e=te.cssProps[u]||(te.cssProps[u]=M(t.style,u)),a=te.cssHooks[e]||te.cssHooks[u],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=$(t,e,r)),"normal"===i&&e in Xe&&(i=Xe[e]),""===n||n?(o=parseFloat(i),n===!0||te.isNumeric(o)?o||0:i):i}}),te.each(["height","width"],function(t,e){te.cssHooks[e]={get:function(t,n,r){return n?0===t.offsetWidth&&Be.test(te.css(t,"display"))?te.swap(t,Ye,function(){return _(t,e,r)}):_(t,e,r):void 0},set:function(t,n,r){var i=r&&ze(t);return k(t,n,r?C(t,e,r,"border-box"===te.css(t,"boxSizing",!1,i),i):0)}}}),te.cssHooks.marginRight=w(G.reliableMarginRight,function(t,e){return e?te.swap(t,{display:"inline-block"},$,[t,"marginRight"]):void 0}),te.each({margin:"",padding:"",border:"Width"},function(t,e){te.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[t+we[r]+e]=o[r]||o[r-2]||o[0];return i}},Ue.test(t)||(te.cssHooks[t+e].set=k)}),te.fn.extend({css:function(t,e){return ge(this,function(t,e,n){var r,i,o={},a=0;if(te.isArray(e)){for(r=ze(t),i=e.length;i>a;a++)o[e[a]]=te.css(t,e[a],!1,r);return o}return void 0!==n?te.style(t,e,n):te.css(t,e)},t,e,arguments.length>1)},show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Me(this)?te(this).show():te(this).hide()})}}),te.Tween=E,E.prototype={constructor:E,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||(te.cssNumber[n]?"":"px")},cur:function(){var t=E.propHooks[this.prop];return t&&t.get?t.get(this):E.propHooks._default.get(this)},run:function(t){var e,n=E.propHooks[this.prop];return this.pos=e=this.options.duration?te.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):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):E.propHooks._default.set(this),this}},E.prototype.init.prototype=E.prototype,E.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=te.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){te.fx.step[t.prop]?te.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[te.cssProps[t.prop]]||te.cssHooks[t.prop])?te.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},E.propHooks.scrollTop=E.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},te.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},te.fx=E.prototype.init,te.fx.step={};var Ze,Ge,Ke=/^(?:toggle|show|hide)$/,Qe=new RegExp("^(?:([+-])=|)("+$e+")([a-z%]*)$","i"),tn=/queueHooks$/,en=[j],nn={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Qe.exec(e),o=i&&i[3]||(te.cssNumber[t]?"":"px"),a=(te.cssNumber[t]||"px"!==o&&+r)&&Qe.exec(te.css(n.elem,t)),u=1,s=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do u=u||".5",a/=u,te.style(n.elem,t,a+o);while(u!==(u=n.cur()/r)&&1!==u&&--s)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};te.Animation=te.extend(L,{tweener:function(t,e){te.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;i>r;r++)n=t[r],nn[n]=nn[n]||[],nn[n].unshift(e)},prefilter:function(t,e){e?en.unshift(t):en.push(t)}}),te.speed=function(t,e,n){var r=t&&"object"==typeof t?te.extend({},t):{complete:n||!n&&e||te.isFunction(t)&&t,duration:t,easing:n&&e||e&&!te.isFunction(e)&&e};return r.duration=te.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in te.fx.speeds?te.fx.speeds[r.duration]:te.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){te.isFunction(r.old)&&r.old.call(this),r.queue&&te.dequeue(this,r.queue)},r},te.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Me).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=te.isEmptyObject(t),o=te.speed(e,n,r),a=function(){var e=L(this,te.extend({},t),o);(i||me.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=te.timers,a=me.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&tn.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));(e||!n)&&te.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=me.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=te.timers,a=r?r.length:0;for(n.finish=!0,te.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;a>e;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),te.each(["toggle","show","hide"],function(t,e){var n=te.fn[e];te.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(T(e,!0),t,r,i)}}),te.each({slideDown:T("show"),slideUp:T("hide"),slideToggle:T("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){te.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),te.timers=[],te.fx.tick=function(){var t,e=0,n=te.timers;for(Ze=te.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||te.fx.stop(),Ze=void 0},te.fx.timer=function(t){te.timers.push(t),t()?te.fx.start():te.timers.pop()},te.fx.interval=13,te.fx.start=function(){Ge||(Ge=setInterval(te.fx.tick,te.fx.interval))},te.fx.stop=function(){clearInterval(Ge),Ge=null},te.fx.speeds={slow:600,fast:200,_default:400},te.fn.delay=function(t,e){return t=te.fx?te.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t=K.createElement("input"),e=K.createElement("select"),n=e.appendChild(K.createElement("option"));t.type="checkbox",G.checkOn=""!==t.value,G.optSelected=n.selected,e.disabled=!0,G.optDisabled=!n.disabled,t=K.createElement("input"),t.value="t",t.type="radio",G.radioValue="t"===t.value}();var rn,on,an=te.expr.attrHandle;te.fn.extend({attr:function(t,e){return ge(this,te.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){te.removeAttr(this,t)})}}),te.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===Ce?te.prop(t,e,n):(1===o&&te.isXMLDoc(t)||(e=e.toLowerCase(),r=te.attrHooks[e]||(te.expr.match.bool.test(e)?on:rn)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=te.find.attr(t,e),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void te.removeAttr(t,e))
  },removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(pe);if(o&&1===t.nodeType)for(;n=o[i++];)r=te.propFix[n]||n,te.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!G.radioValue&&"radio"===e&&te.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),on={set:function(t,e,n){return e===!1?te.removeAttr(t,n):t.setAttribute(n,n),n}},te.each(te.expr.match.bool.source.match(/\w+/g),function(t,e){var n=an[e]||te.find.attr;an[e]=function(t,e,r){var i,o;return r||(o=an[e],an[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,an[e]=o),i}});var un=/^(?:input|select|textarea|button)$/i;te.fn.extend({prop:function(t,e){return ge(this,te.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[te.propFix[t]||t]})}}),te.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var r,i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return o=1!==a||!te.isXMLDoc(t),o&&(e=te.propFix[e]||e,i=te.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||un.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),G.optSelected||(te.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),te.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){te.propFix[this.toLowerCase()]=this});var sn=/[\t\r\n\f]/g;te.fn.extend({addClass:function(t){var e,n,r,i,o,a,u="string"==typeof t&&t,s=0,l=this.length;if(te.isFunction(t))return this.each(function(e){te(this).addClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(pe)||[];l>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(sn," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=te.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,u=0===arguments.length||"string"==typeof t&&t,s=0,l=this.length;if(te.isFunction(t))return this.each(function(e){te(this).removeClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(pe)||[];l>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(sn," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=t?te.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(te.isFunction(t)?function(n){te(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,r=0,i=te(this),o=t.match(pe)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===Ce||"boolean"===n)&&(this.className&&me.set(this,"__className__",this.className),this.className=this.className||t===!1?"":me.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(sn," ").indexOf(e)>=0)return!0;return!1}});var ln=/\r/g;te.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=te.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,te(this).val()):t,null==i?i="":"number"==typeof i?i+="":te.isArray(i)&&(i=te.map(i,function(t){return null==t?"":t+""})),e=te.valHooks[this.type]||te.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=te.valHooks[i.type]||te.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ln,""):null==n?"":n)}}}),te.extend({valHooks:{select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,a=o?null:[],u=o?i+1:r.length,s=0>i?u:o?i:0;u>s;s++)if(n=r[s],!(!n.selected&&s!==i||(G.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&te.nodeName(n.parentNode,"optgroup"))){if(e=te(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=te.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=te.inArray(te(r).val(),o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),te.each(["radio","checkbox"],function(){te.valHooks[this]={set:function(t,e){return te.isArray(e)?t.checked=te.inArray(te(t).val(),e)>=0:void 0}},G.checkOn||(te.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),te.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){te.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),te.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},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)}});var cn=te.now(),fn=/\?/;te.parseJSON=function(t){return JSON.parse(t+"")},te.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{n=new DOMParser,e=n.parseFromString(t,"text/xml")}catch(r){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&te.error("Invalid XML: "+t),e};var dn,pn,hn=/#.*$/,vn=/([?&])_=[^&]*/,gn=/^(.*?):[ \t]*([^\r\n]*)$/gm,mn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,yn=/^(?:GET|HEAD)$/,bn=/^\/\//,xn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,$n={},wn={},Mn="*/".concat("*");try{pn=location.href}catch(kn){pn=K.createElement("a"),pn.href="",pn=pn.href}dn=xn.exec(pn.toLowerCase())||[],te.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pn,type:"GET",isLocal:mn.test(dn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mn,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",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":te.parseJSON,"text xml":te.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?q(q(t,te.ajaxSettings),e):q(te.ajaxSettings,t)},ajaxPrefilter:R($n),ajaxTransport:R(wn),ajax:function(t,e){function n(t,e,n,a){var s,c,m,y,x,w=e;2!==b&&(b=2,u&&clearTimeout(u),r=void 0,o=a||"",$.readyState=t>0?4:0,s=t>=200&&300>t||304===t,n&&(y=P(f,$,n)),y=H(f,y,$,s),s?(f.ifModified&&(x=$.getResponseHeader("Last-Modified"),x&&(te.lastModified[i]=x),x=$.getResponseHeader("etag"),x&&(te.etag[i]=x)),204===t||"HEAD"===f.type?w="nocontent":304===t?w="notmodified":(w=y.state,c=y.data,m=y.error,s=!m)):(m=w,(t||!w)&&(w="error",0>t&&(t=0))),$.status=t,$.statusText=(e||w)+"",s?h.resolveWith(d,[c,w,$]):h.rejectWith(d,[$,w,m]),$.statusCode(g),g=void 0,l&&p.trigger(s?"ajaxSuccess":"ajaxError",[$,f,s?c:m]),v.fireWith(d,[$,w]),l&&(p.trigger("ajaxComplete",[$,f]),--te.active||te.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,u,s,l,c,f=te.ajaxSetup({},e),d=f.context||f,p=f.context&&(d.nodeType||d.jquery)?te(d):te.event,h=te.Deferred(),v=te.Callbacks("once memory"),g=f.statusCode||{},m={},y={},b=0,x="canceled",$={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!a)for(a={};e=gn.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,m[t]=e),this},overrideMimeType:function(t){return b||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)g[e]=[g[e],t[e]];else $.always(t[$.status]);return this},abort:function(t){var e=t||x;return r&&r.abort(e),n(0,e),this}};if(h.promise($).complete=v.add,$.success=$.done,$.error=$.fail,f.url=((t||f.url||pn)+"").replace(hn,"").replace(bn,dn[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=te.trim(f.dataType||"*").toLowerCase().match(pe)||[""],null==f.crossDomain&&(s=xn.exec(f.url.toLowerCase()),f.crossDomain=!(!s||s[1]===dn[1]&&s[2]===dn[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(dn[3]||("http:"===dn[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=te.param(f.data,f.traditional)),O($n,f,e,$),2===b)return $;l=f.global,l&&0===te.active++&&te.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!yn.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(fn.test(i)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=vn.test(i)?i.replace(vn,"$1_="+cn++):i+(fn.test(i)?"&":"?")+"_="+cn++)),f.ifModified&&(te.lastModified[i]&&$.setRequestHeader("If-Modified-Since",te.lastModified[i]),te.etag[i]&&$.setRequestHeader("If-None-Match",te.etag[i])),(f.data&&f.hasContent&&f.contentType!==!1||e.contentType)&&$.setRequestHeader("Content-Type",f.contentType),$.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Mn+"; q=0.01":""):f.accepts["*"]);for(c in f.headers)$.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(f.beforeSend.call(d,$,f)===!1||2===b))return $.abort();x="abort";for(c in{success:1,error:1,complete:1})$[c](f[c]);if(r=O(wn,f,e,$)){$.readyState=1,l&&p.trigger("ajaxSend",[$,f]),f.async&&f.timeout>0&&(u=setTimeout(function(){$.abort("timeout")},f.timeout));try{b=1,r.send(m,n)}catch(w){if(!(2>b))throw w;n(-1,w)}}else n(-1,"No Transport");return $},getJSON:function(t,e,n){return te.get(t,e,n,"json")},getScript:function(t,e){return te.get(t,void 0,e,"script")}}),te.each(["get","post"],function(t,e){te[e]=function(t,n,r,i){return te.isFunction(n)&&(i=i||r,r=n,n=void 0),te.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),te.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){te.fn[e]=function(t){return this.on(e,t)}}),te._evalUrl=function(t){return te.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},te.fn.extend({wrapAll:function(t){var e;return te.isFunction(t)?this.each(function(e){te(this).wrapAll(t.call(this,e))}):(this[0]&&(e=te(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return this.each(te.isFunction(t)?function(e){te(this).wrapInner(t.call(this,e))}:function(){var e=te(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=te.isFunction(t);return this.each(function(n){te(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){te.nodeName(this,"body")||te(this).replaceWith(this.childNodes)}).end()}}),te.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},te.expr.filters.visible=function(t){return!te.expr.filters.hidden(t)};var Cn=/%20/g,_n=/\[\]$/,Sn=/\r?\n/g,En=/^(?:submit|button|image|reset|file)$/i,An=/^(?:input|select|textarea|keygen)/i;te.param=function(t,e){var n,r=[],i=function(t,e){e=te.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=te.ajaxSettings&&te.ajaxSettings.traditional),te.isArray(t)||t.jquery&&!te.isPlainObject(t))te.each(t,function(){i(this.name,this.value)});else for(n in t)F(n,t[n],e,i);return r.join("&").replace(Cn,"+")},te.fn.extend({serialize:function(){return te.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=te.prop(this,"elements");return t?te.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!te(this).is(":disabled")&&An.test(this.nodeName)&&!En.test(t)&&(this.checked||!ke.test(t))}).map(function(t,e){var n=te(this).val();return null==n?null:te.isArray(n)?te.map(n,function(t){return{name:e.name,value:t.replace(Sn,"\r\n")}}):{name:e.name,value:n.replace(Sn,"\r\n")}}).get()}}),te.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Tn=0,Nn={},jn={0:200,1223:204},Dn=te.ajaxSettings.xhr();t.ActiveXObject&&te(t).on("unload",function(){for(var t in Nn)Nn[t]()}),G.cors=!!Dn&&"withCredentials"in Dn,G.ajax=Dn=!!Dn,te.ajaxTransport(function(t){var e;return G.cors||Dn&&!t.crossDomain?{send:function(n,r){var i,o=t.xhr(),a=++Tn;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(delete Nn[a],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?r(o.status,o.statusText):r(jn[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e("error"),e=Nn[a]=e("abort"),o.send(t.hasContent&&t.data||null)},abort:function(){e&&e()}}:void 0}),te.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return te.globalEval(t),t}}}),te.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),te.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=te("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),K.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Ln=[],Rn=/(=)\?(?=&|$)|\?\?/;te.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ln.pop()||te.expando+"_"+cn++;return this[t]=!0,t}}),te.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,a,u=e.jsonp!==!1&&(Rn.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rn.test(e.data)&&"data");return u||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=te.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,u?e[u]=e[u].replace(Rn,"$1"+i):e.jsonp!==!1&&(e.url+=(fn.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||te.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){a=arguments},r.always(function(){t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,Ln.push(i)),a&&te.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),te.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||K;var r=ae.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=te.buildFragment([t],e,i),i&&i.length&&te(i).remove(),te.merge([],r.childNodes))};var On=te.fn.load;te.fn.load=function(t,e,n){if("string"!=typeof t&&On)return On.apply(this,arguments);var r,i,o,a=this,u=t.indexOf(" ");return u>=0&&(r=t.slice(u),t=t.slice(0,u)),te.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&te.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?te("<div>").append(te.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},te.expr.filters.animated=function(t){return te.grep(te.timers,function(e){return t===e.elem}).length};var qn=t.document.documentElement;te.offset={setOffset:function(t,e,n){var r,i,o,a,u,s,l,c=te.css(t,"position"),f=te(t),d={};"static"===c&&(t.style.position="relative"),u=f.offset(),o=te.css(t,"top"),s=te.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+s).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(s)||0),te.isFunction(e)&&(e=e.call(t,n,u)),null!=e.top&&(d.top=e.top-u.top+a),null!=e.left&&(d.left=e.left-u.left+i),"using"in e?e.using.call(t,d):f.css(d)}},te.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){te.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,te.contains(e,r)?(typeof r.getBoundingClientRect!==Ce&&(i=r.getBoundingClientRect()),n=U(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===te.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),te.nodeName(t[0],"html")||(r=t.offset()),r.top+=te.css(t[0],"borderTopWidth",!0),r.left+=te.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-te.css(n,"marginTop",!0),left:e.left-r.left-te.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||qn;t&&!te.nodeName(t,"html")&&"static"===te.css(t,"position");)t=t.offsetParent;return t||qn})}}),te.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r="pageYOffset"===n;te.fn[e]=function(i){return ge(this,function(e,i,o){var a=U(e);return void 0===o?a?a[n]:e[i]:void(a?a.scrollTo(r?t.pageXOffset:o,r?o:t.pageYOffset):e[i]=o)},e,i,arguments.length,null)}}),te.each(["top","left"],function(t,e){te.cssHooks[e]=w(G.pixelPosition,function(t,n){return n?(n=$(t,e),Ie.test(n)?te(t).position()[e]+"px":n):void 0})}),te.each({Height:"height",Width:"width"},function(t,e){te.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){te.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return ge(this,function(e,n,r){var i;return te.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?te.css(e,n,a):te.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),te.fn.size=function(){return this.length},te.fn.andSelf=te.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return te});var Pn=t.jQuery,Hn=t.$;return te.noConflict=function(e){return t.$===te&&(t.$=Hn),e&&t.jQuery===te&&(t.jQuery=Pn),te},typeof e===Ce&&(t.jQuery=t.$=te),te}),window.Modernizr=function(t,e,n){function r(t){b.cssText=t}function i(t,e){return r(M.join(t+";")+(e||""))}function o(t,e){return typeof t===e}function a(t,e){return!!~(""+t).indexOf(e)}function u(t,e){for(var r in t){var i=t[r];if(!a(i,"-")&&b[i]!==n)return"pfx"==e?i:!0}return!1}function s(t,e,r){for(var i in t){var a=e[t[i]];if(a!==n)return r===!1?t[i]:o(a,"function")?a.bind(r||e):a}return!1}function l(t,e,n){var r=t.charAt(0).toUpperCase()+t.slice(1),i=(t+" "+C.join(r+" ")+r).split(" ");return o(e,"string")||o(e,"undefined")?u(i,e):(i=(t+" "+_.join(r+" ")+r).split(" "),s(i,e,n))}function c(){h.input=function(n){for(var r=0,i=n.length;i>r;r++)T[n[r]]=!!(n[r]in x);return T.list&&(T.list=!(!e.createElement("datalist")||!t.HTMLDataListElement)),T}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),h.inputtypes=function(t){for(var r,i,o,a=0,u=t.length;u>a;a++)x.setAttribute("type",i=t[a]),r="text"!==x.type,r&&(x.value=$,x.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(i)&&x.style.WebkitAppearance!==n?(g.appendChild(x),o=e.defaultView,r=o.getComputedStyle&&"textfield"!==o.getComputedStyle(x,null).WebkitAppearance&&0!==x.offsetHeight,g.removeChild(x)):/^(search|tel)$/.test(i)||(r=/^(url|email)$/.test(i)?x.checkValidity&&x.checkValidity()===!1:x.value!=$)),A[t[a]]=!!r;return A}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var f,d,p="2.7.1",h={},v=!0,g=e.documentElement,m="modernizr",y=e.createElement(m),b=y.style,x=e.createElement("input"),$=":)",w={}.toString,M=" -webkit- -moz- -o- -ms- ".split(" "),k="Webkit Moz O ms",C=k.split(" "),_=k.toLowerCase().split(" "),S={svg:"http://www.w3.org/2000/svg"},E={},A={},T={},N=[],j=N.slice,D=function(t,n,r,i){var o,a,u,s,l=e.createElement("div"),c=e.body,f=c||e.createElement("body");if(parseInt(r,10))for(;r--;)u=e.createElement("div"),u.id=i?i[r]:m+(r+1),l.appendChild(u);return o=["&#173;",'<style id="s',m,'">',t,"</style>"].join(""),l.id=m,(c?l:f).innerHTML+=o,f.appendChild(l),c||(f.style.background="",f.style.overflow="hidden",s=g.style.overflow,g.style.overflow="hidden",g.appendChild(f)),a=n(l,t),c?l.parentNode.removeChild(l):(f.parentNode.removeChild(f),g.style.overflow=s),!!a},L=function(){function t(t,i){i=i||e.createElement(r[t]||"div"),t="on"+t;var a=t in i;return a||(i.setAttribute||(i=e.createElement("div")),i.setAttribute&&i.removeAttribute&&(i.setAttribute(t,""),a=o(i[t],"function"),o(i[t],"undefined")||(i[t]=n),i.removeAttribute(t))),i=null,a}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t}(),R={}.hasOwnProperty;d=o(R,"undefined")||o(R.call,"undefined")?function(t,e){return e in t&&o(t.constructor.prototype[e],"undefined")}:function(t,e){return R.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var n=j.call(arguments,1),r=function(){if(this instanceof r){var i=function(){};i.prototype=e.prototype;var o=new i,a=e.apply(o,n.concat(j.call(arguments)));return Object(a)===a?a:o}return e.apply(t,n.concat(j.call(arguments)))};return r}),E.flexbox=function(){return l("flexWrap")},E.canvas=function(){var t=e.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},E.canvastext=function(){return!(!h.canvas||!o(e.createElement("canvas").getContext("2d").fillText,"function"))},E.webgl=function(){return!!t.WebGLRenderingContext},E.touch=function(){var n;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?n=!0:D(["@media (",M.join("touch-enabled),("),m,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){n=9===t.offsetTop}),n},E.geolocation=function(){return"geolocation"in navigator},E.postmessage=function(){return!!t.postMessage},E.websqldatabase=function(){return!!t.openDatabase},E.indexedDB=function(){return!!l("indexedDB",t)},E.hashchange=function(){return L("hashchange",t)&&(e.documentMode===n||e.documentMode>7)},E.history=function(){return!(!t.history||!history.pushState)},E.draganddrop=function(){var t=e.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},E.websockets=function(){return"WebSocket"in t||"MozWebSocket"in t},E.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),a(b.backgroundColor,"rgba")},E.hsla=function(){return r("background-color:hsla(120,40%,100%,.5)"),a(b.backgroundColor,"rgba")||a(b.backgroundColor,"hsla")},E.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(b.background)},E.backgroundsize=function(){return l("backgroundSize")},E.borderimage=function(){return l("borderImage")},E.borderradius=function(){return l("borderRadius")},E.boxshadow=function(){return l("boxShadow")},E.textshadow=function(){return""===e.createElement("div").style.textShadow},E.opacity=function(){return i("opacity:.55"),/^0.55$/.test(b.opacity)},E.cssanimations=function(){return l("animationName")},E.csscolumns=function(){return l("columnCount")},E.cssgradients=function(){var t="background-image:",e="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return r((t+"-webkit- ".split(" ").join(e+t)+M.join(n+t)).slice(0,-t.length)),a(b.backgroundImage,"gradient")},E.cssreflections=function(){return l("boxReflect")},E.csstransforms=function(){return!!l("transform")},E.csstransforms3d=function(){var t=!!l("perspective");return t&&"webkitPerspective"in g.style&&D("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e){t=9===e.offsetLeft&&3===e.offsetHeight}),t},E.csstransitions=function(){return l("transition")},E.fontface=function(){var t;return D('@font-face {font-family:"font";src:url("https://")}',function(n,r){var i=e.getElementById("smodernizr"),o=i.sheet||i.styleSheet,a=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"";t=/src/i.test(a)&&0===a.indexOf(r.split(" ")[0])}),t},E.generatedcontent=function(){var t;return D(["#",m,"{font:0/0 a}#",m,':after{content:"',$,'";visibility:hidden;font:3px/1 a}'].join(""),function(e){t=e.offsetHeight>=3}),t},E.video=function(){var t=e.createElement("video"),n=!1;try{(n=!!t.canPlayType)&&(n=new Boolean(n),n.ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n},E.audio=function(){var t=e.createElement("audio"),n=!1;try{(n=!!t.canPlayType)&&(n=new Boolean(n),n.ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n},E.localstorage=function(){try{return localStorage.setItem(m,m),localStorage.removeItem(m),!0}catch(t){return!1}},E.sessionstorage=function(){try{return sessionStorage.setItem(m,m),sessionStorage.removeItem(m),!0}catch(t){return!1}},E.webworkers=function(){return!!t.Worker},E.applicationcache=function(){return!!t.applicationCache},E.svg=function(){return!!e.createElementNS&&!!e.createElementNS(S.svg,"svg").createSVGRect},E.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==S.svg},E.smil=function(){return!!e.createElementNS&&/SVGAnimate/.test(w.call(e.createElementNS(S.svg,"animate")))},E.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(w.call(e.createElementNS(S.svg,"clipPath")))};for(var O in E)d(E,O)&&(f=O.toLowerCase(),h[f]=E[O](),N.push((h[f]?"":"no-")+f));return h.input||c(),h.addTest=function(t,e){if("object"==typeof t)for(var r in t)d(t,r)&&h.addTest(r,t[r]);else{if(t=t.toLowerCase(),h[t]!==n)return h;e="function"==typeof e?e():e,"undefined"!=typeof v&&v&&(g.className+=" "+(e?"":"no-")+t),h[t]=e}return h},r(""),y=x=null,function(t,e){function n(t,e){var n=t.createElement("p"),r=t.getElementsByTagName("head")[0]||t.documentElement;return n.innerHTML="x<style>"+e+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var t=y.elements;return"string"==typeof t?t.split(" "):t}function i(t){var e=m[t[v]];return e||(e={},g++,t[v]=g,m[g]=e),e}function o(t,n,r){if(n||(n=e),c)return n.createElement(t);r||(r=i(n));var o;return o=r.cache[t]?r.cache[t].cloneNode():h.test(t)?(r.cache[t]=r.createElem(t)).cloneNode():r.createElem(t),!o.canHaveChildren||p.test(t)||o.tagUrn?o:r.frag.appendChild(o)}function a(t,n){if(t||(t=e),c)return t.createDocumentFragment();n=n||i(t);for(var o=n.frag.cloneNode(),a=0,u=r(),s=u.length;s>a;a++)o.createElement(u[a]);return o}function u(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(n){return y.shivMethods?o(n,t,e):e.createElem(n)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(y,e.frag)}function s(t){t||(t=e);var r=i(t);return!y.shivCSS||l||r.hasCSS||(r.hasCSS=!!n(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),c||u(t,r),t}var l,c,f="3.7.0",d=t.html5||{},p=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,v="_html5shiv",g=0,m={};!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",l="hidden"in t,c=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return"undefined"==typeof t.cloneNode||"undefined"==typeof t.createDocumentFragment||"undefined"==typeof t.createElement}()}catch(n){l=!0,c=!0}}();var y={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:f,shivCSS:d.shivCSS!==!1,supportsUnknownElements:c,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:s,createElement:o,createDocumentFragment:a};t.html5=y,s(e)}(this,e),h._version=p,h._prefixes=M,h._domPrefixes=_,h._cssomPrefixes=C,h.hasEvent=L,h.testProp=function(t){return u([t])},h.testAllProps=l,h.testStyles=D,h.prefixed=function(t,e,n){return e?l(t,e,n):l(t,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(v?" js "+N.join(" "):""),h}(this,this.document),function(t,e,n){function r(t){return"[object Function]"==g.call(t)}function i(t){return"string"==typeof t}function o(){}function a(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function u(){var t=m.shift();y=1,t?t.t?h(function(){("c"==t.t?d.injectCss:d.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),u()):y=0}function s(t,n,r,i,o,s,l){function c(e){if(!p&&a(f.readyState)&&(b.r=p=1,!y&&u(),f.onload=f.onreadystatechange=null,e)){"img"!=t&&h(function(){$.removeChild(f)},50);for(var r in _[n])_[n].hasOwnProperty(r)&&_[n][r].onload()}}var l=l||d.errorTimeout,f=e.createElement(t),p=0,g=0,b={t:r,s:n,e:o,a:s,x:l};1===_[n]&&(g=1,_[n]=[]),"object"==t?f.data=n:(f.src=n,f.type=t),f.width=f.height="0",f.onerror=f.onload=f.onreadystatechange=function(){c.call(this,g)},m.splice(i,0,b),"img"!=t&&(g||2===_[n]?($.insertBefore(f,x?null:v),h(c,l)):_[n].push(f))}function l(t,e,n,r,o){return y=0,e=e||"j",i(t)?s("c"==e?M:w,t,e,this.i++,n,r,o):(m.splice(this.i++,0,t),1==m.length&&u()),this}function c(){var t=d;return t.loader={load:l,i:0},t}var f,d,p=e.documentElement,h=t.setTimeout,v=e.getElementsByTagName("script")[0],g={}.toString,m=[],y=0,b="MozAppearance"in p.style,x=b&&!!e.createRange().compareNode,$=x?p:v.parentNode,p=t.opera&&"[object Opera]"==g.call(t.opera),p=!!e.attachEvent&&!p,w=b?"object":p?"script":"img",M=p?"script":w,k=Array.isArray||function(t){return"[object Array]"==g.call(t)},C=[],_={},S={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}};d=function(t){function e(t){var e,n,r,t=t.split("!"),i=C.length,o=t.pop(),a=t.length,o={url:o,origUrl:o,prefixes:t};for(n=0;a>n;n++)r=t[n].split("="),(e=S[r.shift()])&&(o=e(o,r));for(n=0;i>n;n++)o=C[n](o);return o}function a(t,i,o,a,u){var s=e(t),l=s.autoCallback;s.url.split(".").pop().split("?").shift(),s.bypass||(i&&(i=r(i)?i:i[t]||i[a]||i[t.split("/").pop().split("?")[0]]),s.instead?s.instead(t,i,o,a,u):(_[s.url]?s.noexec=!0:_[s.url]=1,o.load(s.url,s.forceCSS||!s.forceJS&&"css"==s.url.split(".").pop().split("?").shift()?"c":n,s.noexec,s.attrs,s.timeout),(r(i)||r(l))&&o.load(function(){c(),i&&i(s.origUrl,u,a),l&&l(s.origUrl,u,a),_[s.url]=2})))}function u(t,e){function n(t,n){if(t){if(i(t))n||(f=function(){var t=[].slice.call(arguments);d.apply(this,t),p()}),a(t,f,e,0,l);else if(Object(t)===t)for(s in u=function(){var e,n=0;for(e in t)t.hasOwnProperty(e)&&n++;return n}(),t)t.hasOwnProperty(s)&&(!n&&!--u&&(r(f)?f=function(){var t=[].slice.call(arguments);d.apply(this,t),p()}:f[s]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),p()}}(d[s])),a(t[s],f,e,s,l))}else!n&&p()}var u,s,l=!!t.test,c=t.load||t.both,f=t.callback||o,d=f,p=t.complete||o;n(l?t.yep:t.nope,!!c),c&&n(c)}var s,l,f=this.yepnope.loader;if(i(t))a(t,0,f,0);else if(k(t))for(s=0;s<t.length;s++)l=t[s],i(l)?a(l,0,f,0):k(l)?d(l):Object(l)===l&&u(l,f);else Object(t)===t&&u(t,f)},d.addPrefix=function(t,e){S[t]=e},d.addFilter=function(t){C.push(t)},d.errorTimeout=1e4,null==e.readyState&&e.addEventListener&&(e.readyState="loading",e.addEventListener("DOMContentLoaded",f=function(){e.removeEventListener("DOMContentLoaded",f,0),e.readyState="complete"},0)),t.yepnope=c(),t.yepnope.executeStack=u,t.yepnope.injectJs=function(t,n,r,i,s,l){var c,f,p=e.createElement("script"),i=i||d.errorTimeout;p.src=t;for(f in r)p.setAttribute(f,r[f]);n=l?u:n||o,p.onreadystatechange=p.onload=function(){!c&&a(p.readyState)&&(c=1,n(),p.onload=p.onreadystatechange=null)},h(function(){c||(c=1,n(1))},i),s?p.onload():v.parentNode.insertBefore(p,v)},t.yepnope.injectCss=function(t,n,r,i,a,s){var l,i=e.createElement("link"),n=s?u:n||o;i.href=t,i.rel="stylesheet",i.type="text/css";for(l in r)i.setAttribute(l,r[l]);a||(v.parentNode.insertBefore(i,v),h(n,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))
  },!function(){function t(t){return null!=t&&!isNaN(t)}function e(t){return t.length}function n(t){for(var e=1;t*e%1;)e*=10;return e}function r(t,e){try{for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}catch(r){t.prototype=e}}function i(){}function o(t){return su+t in this}function a(t){return t=su+t,t in this&&delete this[t]}function u(){var t=[];return this.forEach(function(e){t.push(e)}),t}function s(){var t=0;for(var e in this)e.charCodeAt(0)===lu&&++t;return t}function l(){for(var t in this)if(t.charCodeAt(0)===lu)return!1;return!0}function c(){}function f(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function d(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.substring(1);for(var n=0,r=cu.length;r>n;++n){var i=cu[n]+e;if(i in t)return i}}function p(){}function h(){}function v(t){function e(){for(var e,r=n,i=-1,o=r.length;++i<o;)(e=r[i].on)&&e.apply(this,arguments);return t}var n=[],r=new i;return e.on=function(e,i){var o,a=r.get(e);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,o=n.indexOf(a)).concat(n.slice(o+1)),r.remove(e)),i&&n.push(r.set(e,{on:i})),t)},e}function g(){Ya.event.preventDefault()}function m(){for(var t,e=Ya.event;t=e.sourceEvent;)e=t;return e}function y(t){for(var e=new h,n=0,r=arguments.length;++n<r;)e[arguments[n]]=v(e);return e.of=function(n,r){return function(i){try{var o=i.sourceEvent=Ya.event;i.target=t,Ya.event=i,e[i.type].apply(n,r)}finally{Ya.event=o}}},e}function b(t){return du(t,mu),t}function x(t){return"function"==typeof t?t:function(){return pu(t,this)}}function $(t){return"function"==typeof t?t:function(){return hu(t,this)}}function w(t,e){function n(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,e)}function o(){this.setAttributeNS(t.space,t.local,e)}function a(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function u(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=Ya.ns.qualify(t),null==e?t.local?r:n:"function"==typeof e?t.local?u:a:t.local?o:i}function M(t){return t.trim().replace(/\s+/g," ")}function k(t){return new RegExp("(?:^|\\s+)"+Ya.requote(t)+"(?:\\s+|$)","g")}function C(t){return t.trim().split(/^|\s+/)}function _(t,e){function n(){for(var n=-1;++n<i;)t[n](this,e)}function r(){for(var n=-1,r=e.apply(this,arguments);++n<i;)t[n](this,r)}t=C(t).map(S);var i=t.length;return"function"==typeof e?r:n}function S(t){var e=k(t);return function(n,r){if(i=n.classList)return r?i.add(t):i.remove(t);var i=n.getAttribute("class")||"";r?(e.lastIndex=0,e.test(i)||n.setAttribute("class",M(i+" "+t))):n.setAttribute("class",M(i.replace(e," ")))}}function E(t,e,n){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,e,n)}function o(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}return null==e?r:"function"==typeof e?o:i}function A(t,e){function n(){delete this[t]}function r(){this[t]=e}function i(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}return null==e?n:"function"==typeof e?i:r}function T(t){return"function"==typeof t?t:(t=Ya.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,t)}}function N(t){return{__data__:t}}function j(t){return function(){return gu(this,t)}}function D(t){return arguments.length||(t=Ya.ascending),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function L(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 R(t){return du(t,bu),t}function O(t){var e,n;return function(r,i,o){var a,u=t[o].update,s=u.length;for(o!=n&&(n=o,e=0),i>=e&&(e=i+1);!(a=u[e])&&++e<s;);return a}}function q(){var t=this.__transition__;t&&++t.active}function P(t,e,n){function r(){var e=this[a];e&&(this.removeEventListener(t,e,e.$),delete this[a])}function i(){var i=s(e,Ja(arguments));r.call(this),this.addEventListener(t,this[a]=i,i.$=n),i._=e}function o(){var e,n=new RegExp("^__on([^.]+)"+Ya.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}var a="__on"+t,u=t.indexOf("."),s=H;u>0&&(t=t.substring(0,u));var l=$u.get(t);return l&&(t=l,s=F),u?e?i:r:e?p:o}function H(t,e){return function(n){var r=Ya.event;Ya.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{Ya.event=r}}}function F(t,e){var n=H(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function U(){var t=".dragsuppress-"+ ++Mu,e="click"+t,n=Ya.select(Ka).on("touchmove"+t,g).on("dragstart"+t,g).on("selectstart"+t,g);if(wu){var r=Ga.style,i=r[wu];r[wu]="none"}return function(o){function a(){n.on(e,null)}n.on(t,null),wu&&(r[wu]=i),o&&(n.on(e,function(){g(),a()},!0),setTimeout(a,0))}}function I(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(0>ku&&(Ka.scrollX||Ka.scrollY)){n=Ya.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=n[0][0].getScreenCTM();ku=!(i.f||i.e),n.remove()}return ku?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}function z(t){return t>0?1:0>t?-1:0}function B(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function V(t){return t>1?0:-1>t?Cu:Math.acos(t)}function W(t){return t>1?Su:-1>t?-Su:Math.asin(t)}function Y(t){return((t=Math.exp(t))-1/t)/2}function X(t){return((t=Math.exp(t))+1/t)/2}function J(t){return((t=Math.exp(2*t))-1)/(t+1)}function Z(t){return(t=Math.sin(t/2))*t}function G(){}function K(t,e,n){return new Q(t,e,n)}function Q(t,e,n){this.h=t,this.s=e,this.l=n}function te(t,e,n){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?o+(a-o)*t/60:180>t?a:240>t?o+(a-o)*(240-t)/60:o}function i(t){return Math.round(255*r(t))}var o,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:0>e?0:e>1?1:e,n=0>n?0:n>1?1:n,a=.5>=n?n*(1+e):n+e-n*e,o=2*n-a,pe(i(t+120),i(t),i(t-120))}function ee(t,e,n){return new ne(t,e,n)}function ne(t,e,n){this.h=t,this.c=e,this.l=n}function re(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),ie(n,Math.cos(t*=Tu)*e,Math.sin(t)*e)}function ie(t,e,n){return new oe(t,e,n)}function oe(t,e,n){this.l=t,this.a=e,this.b=n}function ae(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return i=se(i)*Uu,r=se(r)*Iu,o=se(o)*zu,pe(ce(3.2404542*i-1.5371385*r-.4985314*o),ce(-.969266*i+1.8760108*r+.041556*o),ce(.0556434*i-.2040259*r+1.0572252*o))}function ue(t,e,n){return t>0?ee(Math.atan2(n,e)*Nu,Math.sqrt(e*e+n*n),t):ee(0/0,0/0,t)}function se(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function le(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function ce(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function fe(t){return pe(t>>16,t>>8&255,255&t)}function de(t){return fe(t)+""}function pe(t,e,n){return new he(t,e,n)}function he(t,e,n){this.r=t,this.g=e,this.b=n}function ve(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ge(t,e,n){var r,i,o,a=0,u=0,s=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(xe(i[0]),xe(i[1]),xe(i[2]))}return(o=Wu.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,s=t.charAt(3),s+=s):7===t.length&&(a=t.substring(1,3),u=t.substring(3,5),s=t.substring(5,7)),a=parseInt(a,16),u=parseInt(u,16),s=parseInt(s,16)),e(a,u,s))}function me(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),u=a-o,s=(a+o)/2;return u?(i=.5>s?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):(r=0/0,i=s>0&&1>s?0:r),K(r,i,s)}function ye(t,e,n){t=be(t),e=be(e),n=be(n);var r=le((.4124564*t+.3575761*e+.1804375*n)/Uu),i=le((.2126729*t+.7151522*e+.072175*n)/Iu),o=le((.0193339*t+.119192*e+.9503041*n)/zu);return ie(116*i-16,500*(r-i),200*(i-o))}function be(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xe(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function $e(t){return"function"==typeof t?t:function(){return t}}function we(t){return t}function Me(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),ke(e,n,t,r)}}function ke(t,e,n,r){function i(){var t,e=s.status;if(!e&&s.responseText||e>=200&&300>e||304===e){try{t=n.call(o,s)}catch(r){return void a.error.call(o,r)}a.load.call(o,t)}else a.error.call(o,s)}var o={},a=Ya.dispatch("beforesend","progress","load","error"),u={},s=new XMLHttpRequest,l=null;return!Ka.XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=i:s.onreadystatechange=function(){s.readyState>3&&i()},s.onprogress=function(t){var e=Ya.event;Ya.event=t;try{a.progress.call(o,s)}finally{Ya.event=e}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",o):e},o.responseType=function(t){return arguments.length?(l=t,o):l},o.response=function(t){return n=t,o},["get","post"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(Ja(arguments)))}}),o.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),s.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),s.setRequestHeader)for(var c in u)s.setRequestHeader(c,u[c]);return null!=e&&s.overrideMimeType&&s.overrideMimeType(e),null!=l&&(s.responseType=l),null!=i&&o.on("error",i).on("load",function(t){i(null,t)}),a.beforesend.call(o,s),s.send(null==r?null:r),o},o.abort=function(){return s.abort(),o},Ya.rebind(o,a,"on"),null==r?o:o.get(Ce(r))}function Ce(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function _e(){var t=Se(),e=Ee()-t;e>24?(isFinite(e)&&(clearTimeout(Zu),Zu=setTimeout(_e,e)),Ju=0):(Ju=1,Ku(_e))}function Se(){var t=Date.now();for(Gu=Yu;Gu;)t>=Gu.t&&(Gu.f=Gu.c(t-Gu.t)),Gu=Gu.n;return t}function Ee(){for(var t,e=Yu,n=1/0;e;)e.f?e=t?t.n=e.n:Yu=e.n:(e.t<n&&(n=e.t),e=(t=e).n);return Xu=t,n}function Ae(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Te(t,e){var n=Math.pow(10,3*uu(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Ne(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,o=r?function(t){for(var e=t.length,i=[],o=0,a=r[0];e>0&&a>0;)i.push(t.substring(e-=a,e+a)),a=r[o=(o+1)%r.length];return i.reverse().join(n)}:we;return function(t){var n=ts.exec(t),r=n[1]||" ",a=n[2]||">",u=n[3]||"",s=n[4]||"",l=n[5],c=+n[6],f=n[7],d=n[8],p=n[9],h=1,v="",g="",m=!1;switch(d&&(d=+d.substring(1)),(l||"0"===r&&"="===a)&&(l=r="0",a="=",f&&(c-=Math.floor((c-1)/4))),p){case"n":f=!0,p="g";break;case"%":h=100,g="%",p="f";break;case"p":h=100,g="%",p="r";break;case"b":case"o":case"x":case"X":"#"===s&&(v="0"+p.toLowerCase());case"c":case"d":m=!0,d=0;break;case"s":h=-1,p="r"}"$"===s&&(v=i[0],g=i[1]),"r"!=p||d||(p="g"),null!=d&&("g"==p?d=Math.max(1,Math.min(21,d)):("e"==p||"f"==p)&&(d=Math.max(0,Math.min(20,d)))),p=es.get(p)||je;var y=l&&f;return function(t){if(m&&t%1)return"";var n=0>t||0===t&&0>1/t?(t=-t,"-"):u;if(0>h){var i=Ya.formatPrefix(t,d);t=i.scale(t),g=i.symbol}else t*=h;t=p(t,d);var s=t.lastIndexOf("."),b=0>s?t:t.substring(0,s),x=0>s?"":e+t.substring(s+1);!l&&f&&(b=o(b));var $=v.length+b.length+x.length+(y?0:n.length),w=c>$?new Array($=c-$+1).join(r):"";return y&&(b=o(w+b)),n+=v,t=b+x,("<"===a?n+t+w:">"===a?w+n+t:"^"===a?w.substring(0,$>>=1)+n+t+w.substring($):n+(y?t:w+t))+g}}}function je(t){return t+""}function De(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Le(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 rs(n-1)),1),n}function o(t,n){return e(t=new rs(+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}function u(t,e,n){try{rs=De;var r=new De;return r._=t,a(r,e,n)}finally{rs=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=a;var s=t.utc=Re(t);return s.floor=s,s.round=Re(r),s.ceil=Re(i),s.offset=Re(o),s.range=u,t}function Re(t){return function(e,n){try{rs=De;var r=new De;return r._=e,t(r,n)._}finally{rs=Date}}}function Oe(t){function e(t){function e(e){for(var n,i,o,a=[],u=-1,s=0;++u<r;)37===t.charCodeAt(u)&&(a.push(t.substring(s,u)),null!=(i=os[n=t.charAt(++u)])&&(n=t.charAt(++u)),(o=E[n])&&(n=o(e,null==i?"e"===n?" ":"0":i)),a.push(n),s=u+1);return a.push(t.substring(s,u)),a.join("")}var r=t.length;return e.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=n(r,t,e,0);if(i!=e.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var o=null!=r.Z&&rs!==De,a=new(o?De:rs);return"j"in r?a.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+Math.floor(r.Z/100),r.M+r.Z%100,r.S,r.L),o?a._:a},e.toString=function(){return t},e}function n(t,e,n,r){for(var i,o,a,u=0,s=e.length,l=n.length;s>u;){if(r>=l)return-1;if(i=e.charCodeAt(u++),37===i){if(a=e.charAt(u++),o=A[a in os?e.charAt(u++):a],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){w.lastIndex=0;var r=w.exec(e.substring(n));return r?(t.w=M.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){x.lastIndex=0;var r=x.exec(e.substring(n));return r?(t.w=$.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){_.lastIndex=0;var r=_.exec(e.substring(n));return r?(t.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){k.lastIndex=0;var r=k.exec(e.substring(n));return r?(t.m=C.get(r[0].toLowerCase()),n+r[0].length):-1}function u(t,e,r){return n(t,E.c.toString(),e,r)}function s(t,e,r){return n(t,E.x.toString(),e,r)}function l(t,e,r){return n(t,E.X.toString(),e,r)}function c(t,e,n){var r=b.get(e.substring(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var f=t.dateTime,d=t.date,p=t.time,h=t.periods,v=t.days,g=t.shortDays,m=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{rs=De;var e=new rs;return e._=t,r(e)}finally{rs=Date}}var r=e(t);return n.parse=function(t){try{rs=De;var e=r.parse(t);return e&&e._}finally{rs=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=nn;var b=Ya.map(),x=Pe(v),$=He(v),w=Pe(g),M=He(g),k=Pe(m),C=He(m),_=Pe(y),S=He(y);h.forEach(function(t,e){b.set(t.toLowerCase(),e)});var E={a:function(t){return g[t.getDay()]},A:function(t){return v[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:e(f),d:function(t,e){return qe(t.getDate(),e,2)},e:function(t,e){return qe(t.getDate(),e,2)},H:function(t,e){return qe(t.getHours(),e,2)},I:function(t,e){return qe(t.getHours()%12||12,e,2)},j:function(t,e){return qe(1+ns.dayOfYear(t),e,3)},L:function(t,e){return qe(t.getMilliseconds(),e,3)},m:function(t,e){return qe(t.getMonth()+1,e,2)},M:function(t,e){return qe(t.getMinutes(),e,2)},p:function(t){return h[+(t.getHours()>=12)]},S:function(t,e){return qe(t.getSeconds(),e,2)},U:function(t,e){return qe(ns.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return qe(ns.mondayOfYear(t),e,2)},x:e(d),X:e(p),y:function(t,e){return qe(t.getFullYear()%100,e,2)},Y:function(t,e){return qe(t.getFullYear()%1e4,e,4)},Z:tn,"%":function(){return"%"}},A={a:r,A:i,b:o,B:a,c:u,d:Xe,e:Xe,H:Ze,I:Ze,j:Je,L:Qe,m:Ye,M:Ge,p:c,S:Ke,U:Ue,w:Fe,W:Ie,x:s,X:l,y:Be,Y:ze,Z:Ve,"%":en};return e}function qe(t,e,n){var r=0>t?"-":"",i=(r?-t:t)+"",o=i.length;return r+(n>o?new Array(n-o+1).join(e)+i:i)}function Pe(t){return new RegExp("^(?:"+t.map(Ya.requote).join("|")+")","i")}function He(t){for(var e=new i,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function Fe(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ue(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n));return r?(t.U=+r[0],n+r[0].length):-1}function Ie(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n));return r?(t.W=+r[0],n+r[0].length):-1}function ze(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Be(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+2));return r?(t.y=We(+r[0]),n+r[0].length):-1}function Ve(t,e,n){return/^[+-]\d{4}$/.test(e=e.substring(n,n+5))?(t.Z=+e,n+5):-1}function We(t){return t+(t>68?1900:2e3)}function Ye(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Xe(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Je(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function Ze(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ge(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ke(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Qe(t,e,n){as.lastIndex=0;var r=as.exec(e.substring(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function tn(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=~~(uu(e)/60),i=uu(e)%60;return n+qe(r,"0",2)+qe(i,"0",2)}function en(t,e,n){us.lastIndex=0;var r=us.exec(e.substring(n,n+1));return r?n+r[0].length:-1}function nn(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,r=t[n];!r[1](e);)r=t[++n];return r[0](e)}}function rn(){}function on(t,e,n){var r=n.s=t+e,i=r-t,o=r-i;n.t=t-o+(e-i)}function an(t,e){t&&fs.hasOwnProperty(t.type)&&fs[t.type](t,e)}function un(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function sn(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)un(t[n],e,1);e.polygonEnd()}function ln(){function t(t,e){t*=Tu,e=e*Tu/2+Cu/4;var n=t-r,a=Math.cos(e),u=Math.sin(e),s=o*u,l=i*a+s*Math.cos(n),c=s*Math.sin(n);ps.add(Math.atan2(c,l)),r=t,i=a,o=u}var e,n,r,i,o;hs.point=function(a,u){hs.point=t,r=(e=a)*Tu,i=Math.cos(u=(n=u)*Tu/2+Cu/4),o=Math.sin(u)},hs.lineEnd=function(){t(e,n)}}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 fn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function dn(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 pn(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 vn(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function gn(t){return[Math.atan2(t[1],t[0]),W(t[2])]}function mn(t,e){return uu(t[0]-e[0])<Eu&&uu(t[1]-e[1])<Eu}function yn(t,e){t*=Tu;var n=Math.cos(e*=Tu);bn(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function bn(t,e,n){++vs,ms+=(t-ms)/vs,ys+=(e-ys)/vs,bs+=(n-bs)/vs}function xn(){function t(t,i){t*=Tu;var o=Math.cos(i*=Tu),a=o*Math.cos(t),u=o*Math.sin(t),s=Math.sin(i),l=Math.atan2(Math.sqrt((l=n*s-r*u)*l+(l=r*a-e*s)*l+(l=e*u-n*a)*l),e*a+n*u+r*s);gs+=l,xs+=l*(e+(e=a)),$s+=l*(n+(n=u)),ws+=l*(r+(r=s)),bn(e,n,r)}var e,n,r;_s.point=function(i,o){i*=Tu;var a=Math.cos(o*=Tu);e=a*Math.cos(i),n=a*Math.sin(i),r=Math.sin(o),_s.point=t,bn(e,n,r)}}function $n(){_s.point=yn}function wn(){function t(t,e){t*=Tu;var n=Math.cos(e*=Tu),a=n*Math.cos(t),u=n*Math.sin(t),s=Math.sin(e),l=i*s-o*u,c=o*a-r*s,f=r*u-i*a,d=Math.sqrt(l*l+c*c+f*f),p=r*a+i*u+o*s,h=d&&-V(p)/d,v=Math.atan2(d,p);Ms+=h*l,ks+=h*c,Cs+=h*f,gs+=v,xs+=v*(r+(r=a)),$s+=v*(i+(i=u)),ws+=v*(o+(o=s)),bn(r,i,o)}var e,n,r,i,o;_s.point=function(a,u){e=a,n=u,_s.point=t,a*=Tu;var s=Math.cos(u*=Tu);r=s*Math.cos(a),i=s*Math.sin(a),o=Math.sin(u),bn(r,i,o)},_s.lineEnd=function(){t(e,n),_s.lineEnd=$n,_s.point=yn}}function Mn(){return!0}function kn(t,e,n,r,i){var o=[],a=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(mn(n,r)){i.lineStart();for(var u=0;e>u;++u)i.point((n=t[u])[0],n[1]);return void i.lineEnd()}var s=new _n(n,t,null,!0),l=new _n(n,null,s,!1);s.o=l,o.push(s),a.push(l),s=new _n(r,t,null,!1),l=new _n(r,null,s,!0),s.o=l,o.push(s),a.push(l)}}),a.sort(e),Cn(o),Cn(a),o.length){for(var u=0,s=n,l=a.length;l>u;++u)a[u].e=s=!s;for(var c,f,d=o[0];;){for(var p=d,h=!0;p.v;)if((p=p.n)===d)return;c=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(h)for(var u=0,l=c.length;l>u;++u)i.point((f=c[u])[0],f[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(h){c=p.p.z;for(var u=c.length-1;u>=0;--u)i.point((f=c[u])[0],f[1])}else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,c=p.z,h=!h}while(!p.v);i.lineEnd()}}}function Cn(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function _n(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Sn(t,e,n,r){return function(i,o){function a(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&o.point(e,n)}function u(t,e){var n=i(t,e);g.point(n[0],n[1])}function s(){y.point=u,g.lineStart()}function l(){y.point=a,g.lineEnd()}function c(t,e){v.push([t,e]);var n=i(t,e);x.point(n[0],n[1])}function f(){x.lineStart(),v=[]}function d(){c(v[0][0],v[0][1]),x.lineEnd();var t,e=x.clean(),n=b.buffer(),r=n.length;if(v.pop(),h.push(v),v=null,r){if(1&e){t=n[0];var i,r=t.length-1,a=-1;for(o.lineStart();++a<r;)o.point((i=t[a])[0],i[1]);return void o.lineEnd()}r>1&&2&e&&n.push(n.pop().concat(n.shift())),p.push(n.filter(En))}}var p,h,v,g=e(o),m=i.invert(r[0],r[1]),y={point:a,lineStart:s,lineEnd:l,polygonStart:function(){y.point=c,y.lineStart=f,y.lineEnd=d,p=[],h=[],o.polygonStart()},polygonEnd:function(){y.point=a,y.lineStart=s,y.lineEnd=l,p=Ya.merge(p);var t=Nn(m,h);p.length?kn(p,Tn,t,n,o):t&&(o.lineStart(),n(null,null,1,o),o.lineEnd()),o.polygonEnd(),p=h=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}},b=An(),x=e(b);return y}}function En(t){return t.length>1}function An(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:p,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function Tn(t,e){return((t=t.x)[0]<0?t[1]-Su-Eu:Su-t[1])-((e=e.x)[0]<0?e[1]-Su-Eu:Su-e[1])}function Nn(t,e){var n=t[0],r=t[1],i=[Math.sin(n),-Math.cos(n),0],o=0,a=0;ps.reset();for(var u=0,s=e.length;s>u;++u){var l=e[u],c=l.length;if(c)for(var f=l[0],d=f[0],p=f[1]/2+Cu/4,h=Math.sin(p),v=Math.cos(p),g=1;;){g===c&&(g=0),t=l[g];var m=t[0],y=t[1]/2+Cu/4,b=Math.sin(y),x=Math.cos(y),$=m-d,w=uu($)>Cu,M=h*b;if(ps.add(Math.atan2(M*Math.sin($),v*x+M*Math.cos($))),o+=w?$+($>=0?_u:-_u):$,w^d>=n^m>=n){var k=dn(cn(f),cn(t));vn(k);var C=dn(i,k);vn(C);var _=(w^$>=0?-1:1)*W(C[2]);(r>_||r===_&&(k[0]||k[1]))&&(a+=w^$>=0?1:-1)}if(!g++)break;d=m,h=b,v=x,f=t}}return(-Eu>o||Eu>o&&0>ps)^1&a}function jn(t){var e,n=0/0,r=0/0,i=0/0;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?Cu:-Cu,s=uu(o-n);uu(s-Cu)<Eu?(t.point(n,r=(r+a)/2>0?Su:-Su),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&s>=Cu&&(uu(n-i)<Eu&&(n-=i*Eu),uu(o-u)<Eu&&(o-=u*Eu),r=Dn(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=a),i=u},lineEnd:function(){t.lineEnd(),n=r=0/0},clean:function(){return 2-e}}}function Dn(t,e,n,r){var i,o,a=Math.sin(t-n);return uu(a)>Eu?Math.atan((Math.sin(e)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*o*a)):(e+r)/2}function Ln(t,e,n,r){var i;if(null==t)i=n*Su,r.point(-Cu,i),r.point(0,i),r.point(Cu,i),r.point(Cu,0),r.point(Cu,-i),r.point(0,-i),r.point(-Cu,-i),r.point(-Cu,0),r.point(-Cu,i);else if(uu(t[0]-e[0])>Eu){var o=t[0]<e[0]?Cu:-Cu;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}function Rn(t){function e(t,e){return Math.cos(t)*Math.cos(e)>o}function n(t){var n,o,s,l,c;return{lineStart:function(){l=s=!1,c=1},point:function(f,d){var p,h=[f,d],v=e(f,d),g=a?v?0:i(f,d):v?i(f+(0>f?Cu:-Cu),d):0;if(!n&&(l=s=v)&&t.lineStart(),v!==s&&(p=r(n,h),(mn(n,p)||mn(h,p))&&(h[0]+=Eu,h[1]+=Eu,v=e(h[0],h[1]))),v!==s)c=0,v?(t.lineStart(),p=r(h,n),t.point(p[0],p[1])):(p=r(n,h),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(u&&n&&a^v){var m;g&o||!(m=r(h,n,!0))||(c=0,a?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!v||n&&mn(n,h)||t.point(h[0],h[1]),n=h,s=v,o=g},lineEnd:function(){s&&t.lineEnd(),n=null},clean:function(){return c|(l&&s)<<1}}}function r(t,e,n){var r=cn(t),i=cn(e),a=[1,0,0],u=dn(r,i),s=fn(u,u),l=u[0],c=s-l*l;if(!c)return!n&&t;var f=o*s/c,d=-o*l/c,p=dn(a,u),h=hn(a,f),v=hn(u,d);pn(h,v);var g=p,m=fn(h,g),y=fn(g,g),b=m*m-y*(fn(h,h)-1);if(!(0>b)){var x=Math.sqrt(b),$=hn(g,(-m-x)/y);if(pn($,h),$=gn($),!n)return $;var w,M=t[0],k=e[0],C=t[1],_=e[1];M>k&&(w=M,M=k,k=w);var S=k-M,E=uu(S-Cu)<Eu,A=E||Eu>S;if(!E&&C>_&&(w=C,C=_,_=w),A?E?C+_>0^$[1]<(uu($[0]-M)<Eu?C:_):C<=$[1]&&$[1]<=_:S>Cu^(M<=$[0]&&$[0]<=k)){var T=hn(g,(-m+x)/y);return pn(T,h),[$,gn(T)]}}}function i(e,n){var r=a?t:Cu-t,i=0;return-r>e?i|=1:e>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var o=Math.cos(t),a=o>0,u=uu(o)>Eu,s=lr(t,6*Tu);return Sn(e,n,s,a?[0,-t]:[-Cu,t-Cu])}function On(t,e,n,r){return function(i){var o,a=i.a,u=i.b,s=a.x,l=a.y,c=u.x,f=u.y,d=0,p=1,h=c-s,v=f-l;if(o=t-s,h||!(o>0)){if(o/=h,0>h){if(d>o)return;p>o&&(p=o)}else if(h>0){if(o>p)return;o>d&&(d=o)}if(o=n-s,h||!(0>o)){if(o/=h,0>h){if(o>p)return;o>d&&(d=o)}else if(h>0){if(d>o)return;p>o&&(p=o)}if(o=e-l,v||!(o>0)){if(o/=v,0>v){if(d>o)return;p>o&&(p=o)}else if(v>0){if(o>p)return;o>d&&(d=o)}if(o=r-l,v||!(0>o)){if(o/=v,0>v){if(o>p)return;o>d&&(d=o)}else if(v>0){if(d>o)return;p>o&&(p=o)}return d>0&&(i.a={x:s+d*h,y:l+d*v}),1>p&&(i.b={x:s+p*h,y:l+p*v}),i}}}}}}function qn(t,e,n,r){function i(r,i){return uu(r[0]-t)<Eu?i>0?0:3:uu(r[0]-n)<Eu?i>0?2:1:uu(r[1]-e)<Eu?i>0?1:0:i>0?3:2}function o(t,e){return a(t.x,e.x)}function a(t,e){var n=i(t,1),r=i(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(u){function s(t){for(var e=0,n=g.length,r=t[1],i=0;n>i;++i)for(var o,a=1,u=g[i],s=u.length,l=u[0];s>a;++a)o=u[a],l[1]<=r?o[1]>r&&B(l,o,t)>0&&++e:o[1]<=r&&B(l,o,t)<0&&--e,l=o;return 0!==e}function l(o,u,s,l){var c=0,f=0;if(null==o||(c=i(o,s))!==(f=i(u,s))||a(o,u)<0^s>0){do l.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+s+4)%4)!==f)}else l.point(u[0],u[1])}function c(i,o){return i>=t&&n>=i&&o>=e&&r>=o}function f(t,e){c(t,e)&&u.point(t,e)}function d(){A.point=h,g&&g.push(m=[]),k=!0,M=!1,$=w=0/0}function p(){v&&(h(y,b),x&&M&&S.rejoin(),v.push(S.buffer())),A.point=f,M&&u.lineEnd()}function h(t,e){t=Math.max(-Es,Math.min(Es,t)),e=Math.max(-Es,Math.min(Es,e));var n=c(t,e);if(g&&m.push([t,e]),k)y=t,b=e,x=n,k=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&M)u.point(t,e);else{var r={a:{x:$,y:w},b:{x:t,y:e}};E(r)?(M||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),C=!1):n&&(u.lineStart(),u.point(t,e),C=!1)}$=t,w=e,M=n}var v,g,m,y,b,x,$,w,M,k,C,_=u,S=An(),E=On(t,e,n,r),A={point:f,lineStart:d,lineEnd:p,polygonStart:function(){u=S,v=[],g=[],C=!0},polygonEnd:function(){u=_,v=Ya.merge(v);var e=s([t,r]),n=C&&e,i=v.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),l(null,null,1,u),u.lineEnd()),i&&kn(v,o,e,l,u),u.polygonEnd()),v=g=m=null}};return A}}function Pn(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),n&&t.invert(n[0],n[1])}),n}function Hn(t){var e=0,n=Cu/3,r=er(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Cu/180,n=t[1]*Cu/180):[e/Cu*180,n/Cu*180]},i}function Fn(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,W((o-(t*t+n*n)*i*i)/(2*i))]},n}function Un(){function t(t,e){Ts+=i*t-r*e,r=t,i=e}var e,n,r,i;Rs.point=function(o,a){Rs.point=t,e=r=o,n=i=a},Rs.lineEnd=function(){t(e,n)}}function In(t,e){Ns>t&&(Ns=t),t>Ds&&(Ds=t),js>e&&(js=e),e>Ls&&(Ls=e)}function zn(){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=Bn(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=Bn(t),u},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return u}function Bn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Vn(t,e){ms+=t,ys+=e,++bs}function Wn(){function t(t,r){var i=t-e,o=r-n,a=Math.sqrt(i*i+o*o);xs+=a*(e+t)/2,$s+=a*(n+r)/2,ws+=a,Vn(e=t,n=r)}var e,n;qs.point=function(r,i){qs.point=t,Vn(e=r,n=i)}}function Yn(){qs.point=Vn}function Xn(){function t(t,e){var n=t-r,o=e-i,a=Math.sqrt(n*n+o*o);xs+=a*(r+t)/2,$s+=a*(i+e)/2,ws+=a,a=i*t-r*e,Ms+=a*(r+t),ks+=a*(i+e),Cs+=3*a,Vn(r=t,i=e)}var e,n,r,i;qs.point=function(o,a){qs.point=t,Vn(e=r=o,n=i=a)},qs.lineEnd=function(){t(e,n)}}function Jn(t){function e(e,n){t.moveTo(e,n),t.arc(e,n,a,0,_u)}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:p};return u}function Zn(t){function e(t){return(u?r:n)(t)}function n(e){return Qn(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){b=0/0,k.point=o,e.lineStart()}function o(n,r){var o=cn([n,r]),a=t(n,r);i(b,x,y,$,w,M,b=a[0],x=a[1],y=n,$=o[0],w=o[1],M=o[2],u,e),e.point(b,x)}function a(){k.point=n,e.lineEnd()}function s(){r(),k.point=l,k.lineEnd=c}function l(t,e){o(f=t,d=e),p=b,h=x,v=$,g=w,m=M,k.point=o}function c(){i(b,x,y,$,w,M,p,h,f,v,g,m,u,e),k.lineEnd=a,a()}var f,d,p,h,v,g,m,y,b,x,$,w,M,k={point:n,lineStart:r,lineEnd:a,polygonStart:function(){e.polygonStart(),k.lineStart=s},polygonEnd:function(){e.polygonEnd(),k.lineStart=r}};return k}function i(e,n,r,u,s,l,c,f,d,p,h,v,g,m){var y=c-e,b=f-n,x=y*y+b*b;if(x>4*o&&g--){var $=u+p,w=s+h,M=l+v,k=Math.sqrt($*$+w*w+M*M),C=Math.asin(M/=k),_=uu(uu(M)-1)<Eu||uu(r-d)<Eu?(r+d)/2:Math.atan2(w,$),S=t(_,C),E=S[0],A=S[1],T=E-e,N=A-n,j=b*T-y*N;(j*j/x>o||uu((y*T+b*N)/x-.5)>.3||a>u*p+s*h+l*v)&&(i(e,n,r,u,s,l,E,A,_,$/=k,w/=k,M,g,m),m.point(E,A),i(E,A,_,$,w,M,c,f,d,p,h,v,g,m))}}var o=.5,a=Math.cos(30*Tu),u=16;return e.precision=function(t){return arguments.length?(u=(o=t*t)>0&&16,e):Math.sqrt(o)},e}function Gn(t){var e=Zn(function(e,n){return t([e*Nu,n*Nu])});return function(t){return nr(e(t))}}function Kn(t){this.stream=t}function Qn(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function tr(t){return er(function(){return t})()}function er(t){function e(t){return t=u(t[0]*Tu,t[1]*Tu),[t[0]*d+s,l-t[1]*d]}function n(t){return t=u.invert((t[0]-s)/d,(l-t[1])/d),t&&[t[0]*Nu,t[1]*Nu]}function r(){u=Pn(a=or(m,y,b),o);var t=o(v,g);return s=p-t[0]*d,l=h+t[1]*d,i()}function i(){return c&&(c.valid=!1,c=null),e}var o,a,u,s,l,c,f=Zn(function(t,e){return t=o(t,e),[t[0]*d+s,l-t[1]*d]}),d=150,p=480,h=250,v=0,g=0,m=0,y=0,b=0,x=Ss,$=we,w=null,M=null;return e.stream=function(t){return c&&(c.valid=!1),c=nr(x(a,f($(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(x=null==t?(w=t,Ss):Rn((w=+t)*Tu),i()):w},e.clipExtent=function(t){return arguments.length?(M=t,$=t?qn(t[0][0],t[0][1],t[1][0],t[1][1]):we,i()):M},e.scale=function(t){return arguments.length?(d=+t,r()):d},e.translate=function(t){return arguments.length?(p=+t[0],h=+t[1],r()):[p,h]},e.center=function(t){return arguments.length?(v=t[0]%360*Tu,g=t[1]%360*Tu,r()):[v*Nu,g*Nu]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Tu,y=t[1]%360*Tu,b=t.length>2?t[2]%360*Tu:0,r()):[m*Nu,y*Nu,b*Nu]},Ya.rebind(e,f,"precision"),function(){return o=t.apply(this,arguments),e.invert=o.invert&&n,r()}}function nr(t){return Qn(t,function(e,n){t.point(e*Tu,n*Tu)})}function rr(t,e){return[t,e]}function ir(t,e){return[t>Cu?t-_u:-Cu>t?t+_u:t,e]}function or(t,e,n){return t?e||n?Pn(ur(t),sr(e,n)):ur(t):e||n?sr(e,n):ir
  }function ar(t){return function(e,n){return e+=t,[e>Cu?e-_u:-Cu>e?e+_u:e,n]}}function ur(t){var e=ar(t);return e.invert=ar(-t),e}function sr(t,e){function n(t,e){var n=Math.cos(e),u=Math.cos(t)*n,s=Math.sin(t)*n,l=Math.sin(e),c=l*r+u*i;return[Math.atan2(s*o-c*a,u*r-l*i),W(c*o+s*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,s=Math.sin(t)*n,l=Math.sin(e),c=l*o-s*a;return[Math.atan2(s*o+l*a,u*r+c*i),W(c*r-u*i)]},n}function lr(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,u){var s=a*e;null!=i?(i=cr(n,i),o=cr(n,o),(a>0?o>i:i>o)&&(i+=a*_u)):(i=t+a*_u,o=t-.5*s);for(var l,c=i;a>0?c>o:o>c;c-=s)u.point((l=gn([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],l[1])}}function cr(t,e){var n=cn(e);n[0]-=t,vn(n);var r=V(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Eu)%(2*Math.PI)}function fr(t,e,n){var r=Ya.range(t,e-Eu,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function dr(t,e,n){var r=Ya.range(t,e-Eu,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function pr(t){return t.source}function hr(t){return t.target}function vr(t,e,n,r){var i=Math.cos(e),o=Math.sin(e),a=Math.cos(r),u=Math.sin(r),s=i*Math.cos(t),l=i*Math.sin(t),c=a*Math.cos(n),f=a*Math.sin(n),d=2*Math.asin(Math.sqrt(Z(r-e)+i*a*Z(n-t))),p=1/Math.sin(d),h=d?function(t){var e=Math.sin(t*=d)*p,n=Math.sin(d-t)*p,r=n*s+e*c,i=n*l+e*f,a=n*o+e*u;return[Math.atan2(i,r)*Nu,Math.atan2(a,Math.sqrt(r*r+i*i))*Nu]}:function(){return[t*Nu,e*Nu]};return h.distance=d,h}function gr(){function t(t,i){var o=Math.sin(i*=Tu),a=Math.cos(i),u=uu((t*=Tu)-e),s=Math.cos(u);Ps+=Math.atan2(Math.sqrt((u=a*Math.sin(u))*u+(u=r*o-n*a*s)*u),n*o+r*a*s),e=t,n=o,r=a}var e,n,r;Hs.point=function(i,o){e=i*Tu,n=Math.sin(o*=Tu),r=Math.cos(o),Hs.point=t},Hs.lineEnd=function(){Hs.point=Hs.lineEnd=p}}function mr(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 yr(t,e){function n(t,e){var n=uu(uu(e)-Su)<Eu?0:a/Math.pow(i(e),o);return[n*Math.sin(o*t),a-n*Math.cos(o*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Cu/4+t/2)},o=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(i(e)/i(t)),a=r*Math.pow(i(t),o)/o;return o?(n.invert=function(t,e){var n=a-e,r=z(o)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/o,2*Math.atan(Math.pow(a/r,1/o))-Su]},n):xr}function br(t,e){function n(t,e){var n=o-e;return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}var r=Math.cos(t),i=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),o=r/i+t;return uu(i)<Eu?rr:(n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,o-z(i)*Math.sqrt(t*t+n*n)]},n)}function xr(t,e){return[t,Math.log(Math.tan(Cu/4+e/2))]}function $r(t){var e,n=tr(t),r=n.scale,i=n.translate,o=n.clipExtent;return n.scale=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=i.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var a=o.apply(n,arguments);if(a===n){if(e=null==t){var u=Cu*r(),s=i();o([[s[0]-u,s[1]-u],[s[0]+u,s[1]+u]])}}else e&&(a=null);return a},n.clipExtent(null)}function wr(t,e){return[Math.log(Math.tan(Cu/4+e/2)),-t]}function Mr(t){return t[0]}function kr(t){return t[1]}function Cr(t){for(var e=t.length,n=[0,1],r=2,i=2;e>i;i++){for(;r>1&&B(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function _r(t,e){return t[0]-e[0]||t[1]-e[1]}function Sr(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Er(t,e,n,r){var i=t[0],o=n[0],a=e[0]-i,u=r[0]-o,s=t[1],l=n[1],c=e[1]-s,f=r[1]-l,d=(u*(s-l)-f*(i-o))/(f*a-u*c);return[i+d*a,s+d*c]}function Ar(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function Tr(){Gr(this),this.edge=this.site=this.circle=null}function Nr(t){var e=Gs.pop()||new Tr;return e.site=t,e}function jr(t){Ir(t),Xs.remove(t),Gs.push(t),Gr(t)}function Dr(t){var e=t.circle,n=e.x,r=e.cy,i={x:n,y:r},o=t.P,a=t.N,u=[t];jr(t);for(var s=o;s.circle&&uu(n-s.circle.x)<Eu&&uu(r-s.circle.cy)<Eu;)o=s.P,u.unshift(s),jr(s),s=o;u.unshift(s),Ir(s);for(var l=a;l.circle&&uu(n-l.circle.x)<Eu&&uu(r-l.circle.cy)<Eu;)a=l.N,u.push(l),jr(l),l=a;u.push(l),Ir(l);var c,f=u.length;for(c=1;f>c;++c)l=u[c],s=u[c-1],Xr(l.edge,s.site,l.site,i);s=u[0],l=u[f-1],l.edge=Wr(s.site,l.site,null,i),Ur(s),Ur(l)}function Lr(t){for(var e,n,r,i,o=t.x,a=t.y,u=Xs._;u;)if(r=Rr(u,a)-o,r>Eu)u=u.L;else{if(i=o-Or(u,a),!(i>Eu)){r>-Eu?(e=u.P,n=u):i>-Eu?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}var s=Nr(t);if(Xs.insert(e,s),e||n){if(e===n)return Ir(e),n=Nr(e.site),Xs.insert(s,n),s.edge=n.edge=Wr(e.site,s.site),Ur(e),void Ur(n);if(!n)return void(s.edge=Wr(e.site,s.site));Ir(e),Ir(n);var l=e.site,c=l.x,f=l.y,d=t.x-c,p=t.y-f,h=n.site,v=h.x-c,g=h.y-f,m=2*(d*g-p*v),y=d*d+p*p,b=v*v+g*g,x={x:(g*y-p*b)/m+c,y:(d*b-v*y)/m+f};Xr(n.edge,l,h,x),s.edge=Wr(l,t,null,x),n.edge=Wr(t,h,null,x),Ur(e),Ur(n)}}function Rr(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;n=a.site;var u=n.x,s=n.y,l=s-e;if(!l)return u;var c=u-r,f=1/o-1/l,d=c/l;return f?(-d+Math.sqrt(d*d-2*f*(c*c/(-2*l)-s+l/2+i-o/2)))/f+r:(r+u)/2}function Or(t,e){var n=t.N;if(n)return Rr(n,e);var r=t.site;return r.y===e?r.x:1/0}function qr(t){this.site=t,this.edges=[]}function Pr(t){for(var e,n,r,i,o,a,u,s,l,c,f=t[0][0],d=t[1][0],p=t[0][1],h=t[1][1],v=Ys,g=v.length;g--;)if(o=v[g],o&&o.prepare())for(u=o.edges,s=u.length,a=0;s>a;)c=u[a].end(),r=c.x,i=c.y,l=u[++a%s].start(),e=l.x,n=l.y,(uu(r-e)>Eu||uu(i-n)>Eu)&&(u.splice(a,0,new Jr(Yr(o.site,c,uu(r-f)<Eu&&h-i>Eu?{x:f,y:uu(e-f)<Eu?n:h}:uu(i-h)<Eu&&d-r>Eu?{x:uu(n-h)<Eu?e:d,y:h}:uu(r-d)<Eu&&i-p>Eu?{x:d,y:uu(e-d)<Eu?n:p}:uu(i-p)<Eu&&r-f>Eu?{x:uu(n-p)<Eu?e:f,y:p}:null),o.site,null)),++s)}function Hr(t,e){return e.angle-t.angle}function Fr(){Gr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ur(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,u=i.y,s=r.x-a,l=r.y-u,c=o.x-a,f=o.y-u,d=2*(s*f-l*c);if(!(d>=-Au)){var p=s*s+l*l,h=c*c+f*f,v=(f*p-l*h)/d,g=(s*h-c*p)/d,f=g+u,m=Ks.pop()||new Fr;m.arc=t,m.site=i,m.x=v+a,m.y=f+Math.sqrt(v*v+g*g),m.cy=f,t.circle=m;for(var y=null,b=Zs._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}Zs.insert(y,m),y||(Js=m)}}}}function Ir(t){var e=t.circle;e&&(e.P||(Js=e.N),Zs.remove(e),Ks.push(e),Gr(e),t.circle=null)}function zr(t){for(var e,n=Ws,r=On(t[0][0],t[0][1],t[1][0],t[1][1]),i=n.length;i--;)e=n[i],(!Br(e,t)||!r(e)||uu(e.a.x-e.b.x)<Eu&&uu(e.a.y-e.b.y)<Eu)&&(e.a=e.b=null,n.splice(i,1))}function Br(t,e){var n=t.b;if(n)return!0;var r,i,o=t.a,a=e[0][0],u=e[1][0],s=e[0][1],l=e[1][1],c=t.l,f=t.r,d=c.x,p=c.y,h=f.x,v=f.y,g=(d+h)/2,m=(p+v)/2;if(v===p){if(a>g||g>=u)return;if(d>h){if(o){if(o.y>=l)return}else o={x:g,y:s};n={x:g,y:l}}else{if(o){if(o.y<s)return}else o={x:g,y:l};n={x:g,y:s}}}else if(r=(d-h)/(v-p),i=m-r*g,-1>r||r>1)if(d>h){if(o){if(o.y>=l)return}else o={x:(s-i)/r,y:s};n={x:(l-i)/r,y:l}}else{if(o){if(o.y<s)return}else o={x:(l-i)/r,y:l};n={x:(s-i)/r,y:s}}else if(v>p){if(o){if(o.x>=u)return}else o={x:a,y:r*a+i};n={x:u,y:r*u+i}}else{if(o){if(o.x<a)return}else o={x:u,y:r*u+i};n={x:a,y:r*a+i}}return t.a=o,t.b=n,!0}function Vr(t,e){this.l=t,this.r=e,this.a=this.b=null}function Wr(t,e,n,r){var i=new Vr(t,e);return Ws.push(i),n&&Xr(i,t,e,n),r&&Xr(i,e,t,r),Ys[t.i].edges.push(new Jr(i,t,e)),Ys[e.i].edges.push(new Jr(i,e,t)),i}function Yr(t,e,n){var r=new Vr(t,null);return r.a=e,r.b=n,Ws.push(r),r}function Xr(t,e,n,r){t.a||t.b?t.l===n?t.b=r:t.a=r:(t.a=r,t.l=e,t.r=n)}function Jr(t,e,n){var r=t.a,i=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function Zr(){this._=null}function Gr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Kr(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Qr(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function ti(t){for(;t.L;)t=t.L;return t}function ei(t,e){var n,r,i,o=t.sort(ni).pop();for(Ws=[],Ys=new Array(t.length),Xs=new Zr,Zs=new Zr;;)if(i=Js,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))(o.x!==n||o.y!==r)&&(Ys[o.i]=new qr(o),Lr(o),n=o.x,r=o.y),o=t.pop();else{if(!i)break;Dr(i.arc)}e&&(zr(e),Pr(e));var a={cells:Ys,edges:Ws};return Xs=Zs=Ws=Ys=null,a}function ni(t,e){return e.y-t.y||e.x-t.x}function ri(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function ii(t){return t.x}function oi(t){return t.y}function ai(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function ui(t,e,n,r,i,o){if(!t(e,n,r,i,o)){var a=.5*(n+i),u=.5*(r+o),s=e.nodes;s[0]&&ui(t,s[0],n,r,a,u),s[1]&&ui(t,s[1],a,r,i,u),s[2]&&ui(t,s[2],n,u,a,o),s[3]&&ui(t,s[3],a,u,i,o)}}function si(t,e){t=Ya.rgb(t),e=Ya.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"#"+ve(Math.round(n+o*t))+ve(Math.round(r+a*t))+ve(Math.round(i+u*t))}}function li(t,e){var n,r={},i={};for(n in t)n in e?r[n]=di(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}}function ci(t,e){return e-=t=+t,function(n){return t+e*n}}function fi(t,e){var n,r,i,o,a,u=0,s=0,l=[],c=[];for(t+="",e+="",tl.lastIndex=0,r=0;n=tl.exec(e);++r)n.index&&l.push(e.substring(u,s=n.index)),c.push({i:l.length,x:n[0]}),l.push(null),u=tl.lastIndex;for(u<e.length&&l.push(e.substring(u)),r=0,o=c.length;(n=tl.exec(t))&&o>r;++r)if(a=c[r],a.x==n[0]){if(a.i)if(null==l[a.i+1])for(l[a.i-1]+=a.x,l.splice(a.i,1),i=r+1;o>i;++i)c[i].i--;else for(l[a.i-1]+=a.x+l[a.i+1],l.splice(a.i,2),i=r+1;o>i;++i)c[i].i-=2;else if(null==l[a.i+1])l[a.i]=a.x;else for(l[a.i]=a.x+l[a.i+1],l.splice(a.i+1,1),i=r+1;o>i;++i)c[i].i--;c.splice(r,1),o--,r--}else a.x=ci(parseFloat(n[0]),parseFloat(a.x));for(;o>r;)a=c.pop(),null==l[a.i+1]?l[a.i]=a.x:(l[a.i]=a.x+l[a.i+1],l.splice(a.i+1,1)),o--;return 1===l.length?null==l[0]?(a=c[0].x,function(t){return a(t)+""}):function(){return e}:function(t){for(r=0;o>r;++r)l[(a=c[r]).i]=a.x(t);return l.join("")}}function di(t,e){for(var n,r=Ya.interpolators.length;--r>=0&&!(n=Ya.interpolators[r](t,e)););return n}function pi(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(di(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}}function hi(t){return function(e){return 0>=e?0:e>=1?1:t(e)}}function vi(t){return function(e){return 1-t(1-e)}}function gi(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function mi(t){return t*t}function yi(t){return t*t*t}function bi(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)}function xi(t){return function(e){return Math.pow(e,t)}}function $i(t){return 1-Math.cos(t*Su)}function wi(t){return Math.pow(2,10*(t-1))}function Mi(t){return 1-Math.sqrt(1-t*t)}function ki(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/_u*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*_u/e)}}function Ci(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function _i(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 Si(t,e){t=Ya.hcl(t),e=Ya.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 isNaN(a)&&(a=0,r=isNaN(r)?e.c:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:-180>o&&(o+=360),function(t){return re(n+o*t,r+a*t,i+u*t)+""}}function Ei(t,e){t=Ya.hsl(t),e=Ya.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 isNaN(a)&&(a=0,r=isNaN(r)?e.s:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:-180>o&&(o+=360),function(t){return te(n+o*t,r+a*t,i+u*t)+""}}function Ai(t,e){t=Ya.lab(t),e=Ya.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 ae(n+o*t,r+a*t,i+u*t)+""}}function Ti(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function Ni(t){var e=[t.a,t.b],n=[t.c,t.d],r=Di(e),i=ji(e,n),o=Di(Li(n,e,-i))||0;e[0]*n[1]<n[0]*e[1]&&(e[0]*=-1,e[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(e[1],e[0]):Math.atan2(-n[0],n[1]))*Nu,this.translate=[t.e,t.f],this.scale=[r,o],this.skew=o?Math.atan2(i,o)*Nu:0}function ji(t,e){return t[0]*e[0]+t[1]*e[1]}function Di(t){var e=Math.sqrt(ji(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Li(t,e,n){return t[0]+=n*e[0],t[1]+=n*e[1],t}function Ri(t,e){var n,r=[],i=[],o=Ya.transform(t),a=Ya.transform(e),u=o.translate,s=a.translate,l=o.rotate,c=a.rotate,f=o.skew,d=a.skew,p=o.scale,h=a.scale;return u[0]!=s[0]||u[1]!=s[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:ci(u[0],s[0])},{i:3,x:ci(u[1],s[1])})):r.push(s[0]||s[1]?"translate("+s+")":""),l!=c?(l-c>180?c+=360:c-l>180&&(l+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:ci(l,c)})):c&&r.push(r.pop()+"rotate("+c+")"),f!=d?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:ci(f,d)}):d&&r.push(r.pop()+"skewX("+d+")"),p[0]!=h[0]||p[1]!=h[1]?(n=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:n-4,x:ci(p[0],h[0])},{i:n-2,x:ci(p[1],h[1])})):(1!=h[0]||1!=h[1])&&r.push(r.pop()+"scale("+h+")"),n=i.length,function(t){for(var e,o=-1;++o<n;)r[(e=i[o]).i]=e.x(t);return r.join("")}}function Oi(t,e){return e=e-(t=+t)?1/(e-t):0,function(n){return(n-t)*e}}function qi(t,e){return e=e-(t=+t)?1/(e-t):0,function(n){return Math.max(0,Math.min(1,(n-t)*e))}}function Pi(t){for(var e=t.source,n=t.target,r=Fi(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 Hi(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function Fi(t,e){if(t===e)return t;for(var n=Hi(t),r=Hi(e),i=n.pop(),o=r.pop(),a=null;i===o;)a=i,i=n.pop(),o=r.pop();return a}function Ui(t){t.fixed|=2}function Ii(t){t.fixed&=-7}function zi(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Bi(t){t.fixed&=-5}function Vi(t,e,n){var r=0,i=0;if(t.charge=0,!t.leaf)for(var o,a=t.nodes,u=a.length,s=-1;++s<u;)o=a[s],null!=o&&(Vi(o,e,n),t.charge+=o.charge,r+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var l=e*n[t.point.index];t.charge+=t.pointCharge=l,r+=l*t.point.x,i+=l*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function Wi(t,e){return Ya.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=Zi,t}function Yi(t){return t.children}function Xi(t){return t.value}function Ji(t,e){return e.value-t.value}function Zi(t){return Ya.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function Gi(t){return t.x}function Ki(t){return t.y}function Qi(t,e,n){t.y0=e,t.y=n}function to(t){return Ya.range(t.length)}function eo(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function no(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 ro(t){return t.reduce(io,0)}function io(t,e){return t+e[1]}function oo(t,e){return ao(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function ao(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function uo(t){return[Ya.min(t),Ya.max(t)]}function so(t,e){return t.parent==e.parent?1:2}function lo(t){var e=t.children;return e&&e.length?e[0]:t._tree.thread}function co(t){var e,n=t.children;return n&&(e=n.length)?n[e-1]:t._tree.thread}function fo(t,e){var n=t.children;if(n&&(i=n.length))for(var r,i,o=-1;++o<i;)e(r=fo(n[o],e),t)>0&&(t=r);return t}function po(t,e){return t.x-e.x}function ho(t,e){return e.x-t.x}function vo(t,e){return t.depth-e.depth}function go(t,e){function n(t,r){var i=t.children;if(i&&(a=i.length))for(var o,a,u=null,s=-1;++s<a;)o=i[s],n(o,u),u=o;e(t,r)}n(t,null)}function mo(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)e=i[o]._tree,e.prelim+=n,e.mod+=n,n+=e.shift+(r+=e.change)}function yo(t,e,n){t=t._tree,e=e._tree;var r=n/(e.number-t.number);t.change+=r,e.change-=r,e.shift+=n,e.prelim+=n,e.mod+=n}function bo(t,e,n){return t._tree.ancestor.parent==e.parent?t._tree.ancestor:n}function xo(t,e){return t.value-e.value}function $o(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function wo(t,e){t._pack_next=e,e._pack_prev=t}function Mo(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function ko(t){function e(t){c=Math.min(t.x-t.r,c),f=Math.max(t.x+t.r,f),d=Math.min(t.y-t.r,d),p=Math.max(t.y+t.r,p)}if((n=t.children)&&(l=n.length)){var n,r,i,o,a,u,s,l,c=1/0,f=-1/0,d=1/0,p=-1/0;if(n.forEach(Co),r=n[0],r.x=-r.r,r.y=0,e(r),l>1&&(i=n[1],i.x=i.r,i.y=0,e(i),l>2))for(o=n[2],Eo(r,i,o),e(o),$o(r,o),r._pack_prev=o,$o(o,i),i=r._pack_next,a=3;l>a;a++){Eo(r,i,o=n[a]);var h=0,v=1,g=1;for(u=i._pack_next;u!==i;u=u._pack_next,v++)if(Mo(u,o)){h=1;break}if(1==h)for(s=r._pack_prev;s!==u._pack_prev&&!Mo(s,o);s=s._pack_prev,g++);h?(g>v||v==g&&i.r<r.r?wo(r,i=u):wo(r=s,i),a--):($o(r,o),i=o,e(o))}var m=(c+f)/2,y=(d+p)/2,b=0;for(a=0;l>a;a++)o=n[a],o.x-=m,o.y-=y,b=Math.max(b,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=b,n.forEach(_o)}}function Co(t){t._pack_next=t._pack_prev=t}function _o(t){delete t._pack_next,delete t._pack_prev}function So(t,e,n,r){var i=t.children;if(t.x=e+=r*t.x,t.y=n+=r*t.y,t.r*=r,i)for(var o=-1,a=i.length;++o<a;)So(i[o],e,n,r)}function Eo(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;a*=a,r*=r;var s=.5+(r-a)/(2*u),l=Math.sqrt(Math.max(0,2*a*(r+u)-(r-=u)*r-a*a))/(2*u);n.x=t.x+s*i+l*o,n.y=t.y+s*o-l*i}else n.x=t.x+r,n.y=t.y}function Ao(t){return 1+Ya.max(t,function(t){return t.y})}function To(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function No(t){var e=t.children;return e&&e.length?No(e[0]):t}function jo(t){var e,n=t.children;return n&&(e=n.length)?jo(n[e-1]):t}function Do(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Lo(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 Ro(t){var e=t[0],n=t[t.length-1];return n>e?[e,n]:[n,e]}function Oo(t){return t.rangeExtent?t.rangeExtent():Ro(t.range())}function qo(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 Po(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),t[r]=e.floor(o),t[i]=e.ceil(a),t}function Ho(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:fl}function Fo(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());++a<=u;)i.push(n(t[a-1],t[a])),o.push(r(e[a-1],e[a]));return function(e){var n=Ya.bisect(t,e,1,u)-1;return o[n](i[n](e))}}function Uo(t,e,n,r){function i(){var i=Math.min(t.length,e.length)>2?Fo:qo,s=r?qi:Oi;return a=i(t,e,s,n),u=i(e,t,s,di),o}function o(t){return a(t)}var a,u;return o.invert=function(t){return u(t)},o.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},o.range=function(t){return arguments.length?(e=t,i()):e},o.rangeRound=function(t){return o.range(t).interpolate(Ti)},o.clamp=function(t){return arguments.length?(r=t,i()):r},o.interpolate=function(t){return arguments.length?(n=t,i()):n},o.ticks=function(e){return Vo(t,e)},o.tickFormat=function(e,n){return Wo(t,e,n)},o.nice=function(e){return zo(t,e),i()},o.copy=function(){return Uo(t,e,n,r)},i()}function Io(t,e){return Ya.rebind(t,e,"range","rangeRound","interpolate","clamp")}function zo(t,e){return Po(t,Ho(Bo(t,e)[2]))}function Bo(t,e){null==e&&(e=10);var n=Ro(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 Vo(t,e){return Ya.range.apply(Ya,Bo(t,e))}function Wo(t,e,n){var r=Bo(t,e);return Ya.format(n?n.replace(ts,function(t,e,n,i,o,a,u,s,l,c){return[e,n,i,o,a,u,s,l||"."+Xo(c,r),c].join("")}):",."+Yo(r[2])+"f")}function Yo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Xo(t,e){var n=Yo(e[2]);return t in dl?Math.abs(n-Yo(Math.max(Math.abs(e[0]),Math.abs(e[1]))))+ +("e"!==t):n-2*("%"===t)}function Jo(t,e,n,r){function i(t){return(n?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function o(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function a(e){return t(i(e))}return a.invert=function(e){return o(t.invert(e))},a.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),a):r},a.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),a):e},a.nice=function(){var e=Po(r.map(i),n?Math:hl);return t.domain(e),r=e.map(o),a},a.ticks=function(){var t=Ro(r),a=[],u=t[0],s=t[1],l=Math.floor(i(u)),c=Math.ceil(i(s)),f=e%1?2:e;if(isFinite(c-l)){if(n){for(;c>l;l++)for(var d=1;f>d;d++)a.push(o(l)*d);a.push(o(l))}else for(a.push(o(l));l++<c;)for(var d=f-1;d>0;d--)a.push(o(l)*d);for(l=0;a[l]<u;l++);for(c=a.length;a[c-1]>s;c--);a=a.slice(l,c)}return a},a.tickFormat=function(t,e){if(!arguments.length)return pl;arguments.length<2?e=pl:"function"!=typeof e&&(e=Ya.format(e));var r,u=Math.max(.1,t/a.ticks().length),s=n?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/o(s(i(t)+r))<=u?e(t):""}},a.copy=function(){return Jo(t.copy(),e,n,r)},Io(a,t)}function Zo(t,e,n){function r(e){return t(i(e))}var i=Go(e),o=Go(1/e);return r.invert=function(e){return o(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(i)),r):n},r.ticks=function(t){return Vo(n,t)},r.tickFormat=function(t,e){return Wo(n,t,e)},r.nice=function(t){return r.domain(zo(n,t))},r.exponent=function(a){return arguments.length?(i=Go(e=a),o=Go(1/e),t.domain(n.map(i)),r):e},r.copy=function(){return Zo(t.copy(),e,n)},Io(r,t)}function Go(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function Ko(t,e){function n(n){return a[((o.get(n)||"range"===e.t&&o.set(n,t.push(n)))-1)%a.length]}function r(e,n){return Ya.range(t.length).map(function(t){return e+n*t})}var o,a,u;return n.domain=function(r){if(!arguments.length)return t;t=[],o=new i;for(var a,u=-1,s=r.length;++u<s;)o.has(a=r[u])||o.set(a,t.push(a));return n[e.t].apply(n,e.a)},n.range=function(t){return arguments.length?(a=t,u=0,e={t:"range",a:arguments},n):a},n.rangePoints=function(i,o){arguments.length<2&&(o=0);var s=i[0],l=i[1],c=(l-s)/(Math.max(1,t.length-1)+o);return a=r(t.length<2?(s+l)/2:s+c*o/2,c),u=0,e={t:"rangePoints",a:arguments},n},n.rangeBands=function(i,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var l=i[1]<i[0],c=i[l-0],f=i[1-l],d=(f-c)/(t.length-o+2*s);return a=r(c+d*s,d),l&&a.reverse(),u=d*(1-o),e={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var l=i[1]<i[0],c=i[l-0],f=i[1-l],d=Math.floor((f-c)/(t.length-o+2*s)),p=f-c-(t.length-o)*d;return a=r(c+Math.round(p/2),d),l&&a.reverse(),u=Math.round(d*(1-o)),e={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return u},n.rangeExtent=function(){return Ro(e.a[0])},n.copy=function(){return Ko(t,e)},n.domain(t)}function Qo(t,e){function n(){var n=0,o=e.length;for(i=[];++n<o;)i[n-1]=Ya.quantile(t,n/o);return r}function r(t){return isNaN(t=+t)?void 0:e[Ya.bisect(i,t)]}var i;return r.domain=function(e){return arguments.length?(t=e.filter(function(t){return!isNaN(t)}).sort(Ya.ascending),n()):t},r.range=function(t){return arguments.length?(e=t,n()):e},r.quantiles=function(){return i},r.invertExtent=function(n){return n=e.indexOf(n),0>n?[0/0,0/0]:[n>0?i[n-1]:t[0],n<i.length?i[n]:t[t.length-1]]},r.copy=function(){return Qo(t,e)},n()}function ta(t,e,n){function r(e){return n[Math.max(0,Math.min(a,Math.floor(o*(e-t))))]}function i(){return o=n.length/(e-t),a=n.length-1,r}var o,a;return r.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],i()):[t,e]},r.range=function(t){return arguments.length?(n=t,i()):n},r.invertExtent=function(e){return e=n.indexOf(e),e=0>e?0/0:e/o+t,[e,e+1/o]},r.copy=function(){return ta(t,e,n)},i()}function ea(t,e){function n(n){return n>=n?e[Ya.bisect(t,n)]:void 0}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(t){return arguments.length?(e=t,n):e},n.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]},n.copy=function(){return ea(t,e)},n}function na(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=n.map(e),e):t},e.ticks=function(e){return Vo(t,e)},e.tickFormat=function(e,n){return Wo(t,e,n)},e.copy=function(){return na(t)},e}function ra(t){return t.innerRadius}function ia(t){return t.outerRadius}function oa(t){return t.startAngle}function aa(t){return t.endAngle}function ua(t){function e(e){function a(){l.push("M",o(t(c),u))}for(var s,l=[],c=[],f=-1,d=e.length,p=$e(n),h=$e(r);++f<d;)i.call(this,s=e[f],f)?c.push([+p.call(this,s,f),+h.call(this,s,f)]):c.length&&(a(),c=[]);return c.length&&a(),l.length?l.join(""):null}var n=Mr,r=kr,i=Mn,o=sa,a=o.key,u=.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?(a="function"==typeof t?o=t:(o=$l.get(t)||sa).key,e):a},e.tension=function(t){return arguments.length?(u=t,e):u},e}function sa(t){return t.join("L")}function la(t){return sa(t)+"Z"}function ca(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function fa(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function da(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function pa(t,e){return t.length<4?sa(t):t[1]+ga(t.slice(1,t.length-1),ma(t,e))}function ha(t,e){return t.length<3?sa(t):t[0]+ga((t.push(t[0]),t),ma([t[t.length-2]].concat(t,[t[1]]),e))}function va(t,e){return t.length<3?sa(t):t[0]+ga(t,ma(t,e))}function ga(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return sa(t);var n=t.length!=e.length,r="",i=t[0],o=t[1],a=e[0],u=a,s=1;if(n&&(r+="Q"+(o[0]-2*a[0]/3)+","+(o[1]-2*a[1]/3)+","+o[0]+","+o[1],i=t[1],s=2),e.length>1){u=e[1],o=t[s],s++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1];for(var l=2;l<e.length;l++,s++)o=t[s],u=e[l],r+="S"+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1]}if(n){var c=t[s];r+="Q"+(o[0]+2*u[0]/3)+","+(o[1]+2*u[1]/3)+","+c[0]+","+c[1]}return r}function ma(t,e){for(var n,r=[],i=(1-e)/2,o=t[0],a=t[1],u=1,s=t.length;++u<s;)n=o,o=a,a=t[u],r.push([i*(a[0]-n[0]),i*(a[1]-n[1])]);return r}function ya(t){if(t.length<3)return sa(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]],s=[i,",",o,"L",wa(kl,a),",",wa(kl,u)];for(t.push(t[n-1]);++e<=n;)r=t[e],a.shift(),a.push(r[0]),u.shift(),u.push(r[1]),Ma(s,a,u);return t.pop(),s.push("L",r),s.join("")}function ba(t){if(t.length<4)return sa(t);for(var e,n=[],r=-1,i=t.length,o=[0],a=[0];++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);for(n.push(wa(kl,o)+","+wa(kl,a)),--r;++r<i;)e=t[r],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Ma(n,o,a);return n.join("")}function xa(t){for(var e,n,r=-1,i=t.length,o=i+4,a=[],u=[];++r<4;)n=t[r%i],a.push(n[0]),u.push(n[1]);for(e=[wa(kl,a),",",wa(kl,u)],--r;++r<o;)n=t[r%i],a.shift(),a.push(n[0]),u.shift(),u.push(n[1]),Ma(e,a,u);return e.join("")}function $a(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,s=t[n][1]-a,l=-1;++l<=n;)r=t[l],i=l/n,r[0]=e*r[0]+(1-e)*(o+i*u),r[1]=e*r[1]+(1-e)*(a+i*s);return ya(t)}function wa(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Ma(t,e,n){t.push("C",wa(wl,e),",",wa(wl,n),",",wa(Ml,e),",",wa(Ml,n),",",wa(kl,e),",",wa(kl,n))}function ka(t,e){return(e[1]-t[1])/(e[0]-t[0])}function Ca(t){for(var e=0,n=t.length-1,r=[],i=t[0],o=t[1],a=r[0]=ka(i,o);++e<n;)r[e]=(a+(a=ka(i=o,o=t[e+1])))/2;return r[e]=a,r}function _a(t){for(var e,n,r,i,o=[],a=Ca(t),u=-1,s=t.length-1;++u<s;)e=ka(t[u],t[u+1]),uu(e)<Eu?a[u]=a[u+1]=0:(n=a[u]/e,r=a[u+1]/e,i=n*n+r*r,i>9&&(i=3*e/Math.sqrt(i),a[u]=i*n,a[u+1]=i*r));for(u=-1;++u<=s;)i=(t[Math.min(s,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 Sa(t){return t.length<3?sa(t):t[0]+ga(t,_a(t))}function Ea(t){for(var e,n,r,i=-1,o=t.length;++i<o;)e=t[i],n=e[0],r=e[1]+bl,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function Aa(t){function e(e){function s(){v.push("M",u(t(m),f),c,l(t(g.reverse()),f),"Z")}for(var d,p,h,v=[],g=[],m=[],y=-1,b=e.length,x=$e(n),$=$e(i),w=n===r?function(){return p}:$e(r),M=i===o?function(){return h}:$e(o);++y<b;)a.call(this,d=e[y],y)?(g.push([p=+x.call(this,d,y),h=+$.call(this,d,y)]),m.push([+w.call(this,d,y),+M.call(this,d,y)])):g.length&&(s(),g=[],m=[]);return g.length&&s(),v.length?v.join(""):null}var n=Mr,r=Mr,i=0,o=kr,a=Mn,u=sa,s=u.key,l=u,c="L",f=.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=o=t,e):o},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(o=t,e):o},e.defined=function(t){return arguments.length?(a=t,e):a},e.interpolate=function(t){return arguments.length?(s="function"==typeof t?u=t:(u=$l.get(t)||sa).key,l=u.reverse||u,c=u.closed?"M":"L",e):s},e.tension=function(t){return arguments.length?(f=t,e):f},e}function Ta(t){return t.radius}function Na(t){return[t.x,t.y]}function ja(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]+bl;return[n*Math.cos(r),n*Math.sin(r)]}}function Da(){return 64}function La(){return"circle"}function Ra(t){var e=Math.sqrt(t/Cu);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function Oa(t,e){return du(t,Tl),t.id=e,t}function qa(t,e,n,r){var i=t.id;return L(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 Pa(t){return null==t&&(t=""),function(){this.textContent=t}}function Ha(t,e,n,r){var o=t.__transition__||(t.__transition__={active:0,count:0}),a=o[n];if(!a){var u=r.time;a=o[n]={tween:new i,time:u,ease:r.ease,delay:r.delay,duration:r.duration},++o.count,Ya.timer(function(r){function i(r){return o.active>n?l():(o.active=n,a.event&&a.event.start.call(t,c,e),a.tween.forEach(function(n,r){(r=r.call(t,c,e))&&v.push(r)}),void Ya.timer(function(){return h.c=s(r||1)?Mn:s,1},0,u))}function s(r){if(o.active!==n)return l();for(var i=r/p,u=f(i),s=v.length;s>0;)v[--s].call(t,u);return i>=1?(a.event&&a.event.end.call(t,c,e),l()):void 0}function l(){return--o.count?delete o[n]:delete t.__transition__,1}var c=t.__data__,f=a.ease,d=a.delay,p=a.duration,h=Gu,v=[];return h.t=d+u,r>=d?i(r-d):void(h.c=i)},0,u)}}function Fa(t,e){t.attr("transform",function(t){return"translate("+e(t)+",0)"})}function Ua(t,e){t.attr("transform",function(t){return"translate(0,"+e(t)+")"})}function Ia(t){return t.toISOString()}function za(t,e,n){function r(e){return t(e)}function i(t,n){var r=t[1]-t[0],i=r/n,o=Ya.bisect(Hl,i);return o==Hl.length?[e.year,Bo(t.map(function(t){return t/31536e6}),n)[2]]:o?e[i/Hl[o-1]<Hl[o]/i?o-1:o]:[Il,Bo(t,n)[2]]}return r.invert=function(e){return Ba(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(Ba)},r.nice=function(t,e){function n(n){return!isNaN(n)&&!t.range(n,Ba(+n+1),e).length}var o=r.domain(),a=Ro(o),u=null==t?i(a,10):"number"==typeof t&&i(a,t);return u&&(t=u[0],e=u[1]),r.domain(Po(o,e>1?{floor:function(e){for(;n(e=t.floor(e));)e=Ba(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=Ba(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Ro(r.domain()),o=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return o&&(t=o[0],e=o[1]),t.range(n[0],Ba(+n[1]+1),1>e?1:e)},r.tickFormat=function(){return n},r.copy=function(){return za(t.copy(),e,n)},Io(r,t)}function Ba(t){return new Date(t)}function Va(t){return JSON.parse(t.responseText)}function Wa(t){var e=Za.createRange();return e.selectNode(Za.body),e.createContextualFragment(t.responseText)}var Ya={version:"3.4.1"};Date.now||(Date.now=function(){return+new Date});var Xa=[].slice,Ja=function(t){return Xa.call(t)},Za=document,Ga=Za.documentElement,Ka=window;try{Ja(Ga.childNodes)[0].nodeType}catch(Qa){Ja=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}try{Za.createElement("div").style.setProperty("opacity",0,"")}catch(tu){var eu=Ka.Element.prototype,nu=eu.setAttribute,ru=eu.setAttributeNS,iu=Ka.CSSStyleDeclaration.prototype,ou=iu.setProperty;eu.setAttribute=function(t,e){nu.call(this,t,e+"")},eu.setAttributeNS=function(t,e,n){ru.call(this,t,e,n+"")},iu.setProperty=function(t,e,n){ou.call(this,t,e+"",n)
  }}Ya.ascending=function(t,e){return e>t?-1:t>e?1:t>=e?0:0/0},Ya.descending=function(t,e){return t>e?-1:e>t?1:e>=t?0:0/0},Ya.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o&&!(null!=(n=t[i])&&n>=n);)n=void 0;for(;++i<o;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<o&&!(null!=(n=e.call(t,t[i],i))&&n>=n);)n=void 0;for(;++i<o;)null!=(r=e.call(t,t[i],i))&&n>r&&(n=r)}return n},Ya.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o&&!(null!=(n=t[i])&&n>=n);)n=void 0;for(;++i<o;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<o&&!(null!=(n=e.call(t,t[i],i))&&n>=n);)n=void 0;for(;++i<o;)null!=(r=e.call(t,t[i],i))&&r>n&&(n=r)}return n},Ya.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o<a&&!(null!=(n=i=t[o])&&n>=n);)n=i=void 0;for(;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;++o<a&&!(null!=(n=i=e.call(t,t[o],o))&&n>=n);)n=void 0;for(;++o<a;)null!=(r=e.call(t,t[o],o))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},Ya.sum=function(t,e){var n,r=0,i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)isNaN(n=+t[o])||(r+=n);else for(;++o<i;)isNaN(n=+e.call(t,t[o],o))||(r+=n);return r},Ya.mean=function(e,n){var r,i=e.length,o=0,a=-1,u=0;if(1===arguments.length)for(;++a<i;)t(r=e[a])&&(o+=(r-o)/++u);else for(;++a<i;)t(r=n.call(e,e[a],a))&&(o+=(r-o)/++u);return u?o:void 0},Ya.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},Ya.median=function(e,n){return arguments.length>1&&(e=e.map(n)),e=e.filter(t),e.length?Ya.quantile(e.sort(Ya.ascending),.5):void 0},Ya.bisector=function(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var o=r+i>>>1;t.call(e,e[o],o)<n?r=o+1:i=o}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var o=r+i>>>1;n<t.call(e,e[o],o)?i=o:r=o+1}return r}}};var au=Ya.bisector(function(t){return t});Ya.bisectLeft=au.left,Ya.bisect=Ya.bisectRight=au.right,Ya.shuffle=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t},Ya.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},Ya.pairs=function(t){for(var e,n=0,r=t.length-1,i=t[0],o=new Array(0>r?0:r);r>n;)o[n]=[e=i,i=t[++n]];return o},Ya.zip=function(){if(!(i=arguments.length))return[];for(var t=-1,n=Ya.min(arguments,e),r=new Array(n);++t<n;)for(var i,o=-1,a=r[t]=new Array(i);++o<i;)a[o]=arguments[o][t];return r},Ya.transpose=function(t){return Ya.zip.apply(Ya,t)},Ya.keys=function(t){var e=[];for(var n in t)e.push(n);return e},Ya.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Ya.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},Ya.merge=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(r=t[i],e=r.length;--e>=0;)n[--a]=r[e];return n};var uu=Math.abs;Ya.range=function(t,e,r){if(arguments.length<3&&(r=1,arguments.length<2&&(e=t,t=0)),(e-t)/r===1/0)throw new Error("infinite range");var i,o=[],a=n(uu(r)),u=-1;if(t*=a,e*=a,r*=a,0>r)for(;(i=t+r*++u)>e;)o.push(i/a);else for(;(i=t+r*++u)<e;)o.push(i/a);return o},Ya.map=function(t){var e=new i;if(t instanceof i)t.forEach(function(t,n){e.set(t,n)});else for(var n in t)e.set(n,t[n]);return e},r(i,{has:o,get:function(t){return this[su+t]},set:function(t,e){return this[su+t]=e},remove:a,keys:u,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},size:s,empty:l,forEach:function(t){for(var e in this)e.charCodeAt(0)===lu&&t.call(this,e.substring(1),this[e])}});var su="\x00",lu=su.charCodeAt(0);Ya.nest=function(){function t(e,u,s){if(s>=a.length)return r?r.call(o,u):n?u.sort(n):u;for(var l,c,f,d,p=-1,h=u.length,v=a[s++],g=new i;++p<h;)(d=g.get(l=v(c=u[p])))?d.push(c):g.set(l,[c]);return e?(c=e(),f=function(n,r){c.set(n,t(e,r,s))}):(c={},f=function(n,r){c[n]=t(e,r,s)}),g.forEach(f),c}function e(t,n){if(n>=a.length)return t;var r=[],i=u[n++];return t.forEach(function(t,i){r.push({key:t,values:e(i,n)})}),i?r.sort(function(t,e){return i(t.key,e.key)}):r}var n,r,o={},a=[],u=[];return o.map=function(e,n){return t(n,e,0)},o.entries=function(n){return e(t(Ya.map,n,0),0)},o.key=function(t){return a.push(t),o},o.sortKeys=function(t){return u[a.length-1]=t,o},o.sortValues=function(t){return n=t,o},o.rollup=function(t){return r=t,o},o},Ya.set=function(t){var e=new c;if(t)for(var n=0,r=t.length;r>n;++n)e.add(t[n]);return e},r(c,{has:o,add:function(t){return this[su+t]=!0,t},remove:function(t){return t=su+t,t in this&&delete this[t]},values:u,size:s,empty:l,forEach:function(t){for(var e in this)e.charCodeAt(0)===lu&&t.call(this,e.substring(1))}}),Ya.behavior={},Ya.rebind=function(t,e){for(var n,r=1,i=arguments.length;++r<i;)t[n=arguments[r]]=f(t,e,e[n]);return t};var cu=["webkit","ms","moz","Moz","o","O"];Ya.dispatch=function(){for(var t=new h,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=v(t);return t},h.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(n>=0&&(r=t.substring(n+1),t=t.substring(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},Ya.event=null,Ya.requote=function(t){return t.replace(fu,"\\$&")};var fu=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,du={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},pu=function(t,e){return e.querySelector(t)},hu=function(t,e){return e.querySelectorAll(t)},vu=Ga[d(Ga,"matchesSelector")],gu=function(t,e){return vu.call(t,e)};"function"==typeof Sizzle&&(pu=function(t,e){return Sizzle(t,e)[0]||null},hu=function(t,e){return Sizzle.uniqueSort(Sizzle(t,e))},gu=Sizzle.matchesSelector),Ya.selection=function(){return xu};var mu=Ya.selection.prototype=[];mu.select=function(t){var e,n,r,i,o=[];t=x(t);for(var a=-1,u=this.length;++a<u;){o.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=-1,l=r.length;++s<l;)(i=r[s])?(e.push(n=t.call(i,i.__data__,s,a)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return b(o)},mu.selectAll=function(t){var e,n,r=[];t=$(t);for(var i=-1,o=this.length;++i<o;)for(var a=this[i],u=-1,s=a.length;++u<s;)(n=a[u])&&(r.push(e=Ja(t.call(n,n.__data__,u,i))),e.parentNode=n);return b(r)};var yu={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/"};Ya.ns={prefix:yu,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&(n=t.substring(0,e),t=t.substring(e+1)),yu.hasOwnProperty(n)?{space:yu[n],local:t}:t}},mu.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=Ya.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(w(e,t[e]));return this}return this.each(w(t,e))},mu.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=C(t)).length,i=-1;if(e=n.classList){for(;++i<r;)if(!e.contains(t[i]))return!1}else for(e=n.getAttribute("class");++i<r;)if(!k(t[i]).test(e))return!1;return!0}for(e in t)this.each(_(e,t[e]));return this}return this.each(_(t,e))},mu.style=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(e="");for(n in t)this.each(E(n,t[n],e));return this}if(2>r)return Ka.getComputedStyle(this.node(),null).getPropertyValue(t);n=""}return this.each(E(t,e,n))},mu.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(A(e,t[e]));return this}return this.each(A(t,e))},mu.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},mu.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},mu.append=function(t){return t=T(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},mu.insert=function(t,e){return t=T(t),e=x(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},mu.remove=function(){return this.each(function(){var t=this.parentNode;t&&t.removeChild(this)})},mu.data=function(t,e){function n(t,n){var r,o,a,u=t.length,f=n.length,d=Math.min(u,f),p=new Array(f),h=new Array(f),v=new Array(u);if(e){var g,m=new i,y=new i,b=[];for(r=-1;++r<u;)g=e.call(o=t[r],o.__data__,r),m.has(g)?v[r]=o:m.set(g,o),b.push(g);for(r=-1;++r<f;)g=e.call(n,a=n[r],r),(o=m.get(g))?(p[r]=o,o.__data__=a):y.has(g)||(h[r]=N(a)),y.set(g,a),m.remove(g);for(r=-1;++r<u;)m.has(b[r])&&(v[r]=t[r])}else{for(r=-1;++r<d;)o=t[r],a=n[r],o?(o.__data__=a,p[r]=o):h[r]=N(a);for(;f>r;++r)h[r]=N(n[r]);for(;u>r;++r)v[r]=t[r]}h.update=p,h.parentNode=p.parentNode=v.parentNode=t.parentNode,s.push(h),l.push(p),c.push(v)}var r,o,a=-1,u=this.length;if(!arguments.length){for(t=new Array(u=(r=this[0]).length);++a<u;)(o=r[a])&&(t[a]=o.__data__);return t}var s=R([]),l=b([]),c=b([]);if("function"==typeof t)for(;++a<u;)n(r=this[a],t.call(r,r.parentNode.__data__,a));else for(;++a<u;)n(r=this[a],t);return l.enter=function(){return s},l.exit=function(){return c},l},mu.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},mu.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=j(t));for(var o=0,a=this.length;a>o;o++){i.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var u=0,s=n.length;s>u;u++)(r=n[u])&&t.call(r,r.__data__,u,o)&&e.push(r)}return b(i)},mu.order=function(){for(var t=-1,e=this.length;++t<e;)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},mu.sort=function(t){t=D.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},mu.each=function(t){return L(this,function(e,n,r){t.call(e,e.__data__,n,r)})},mu.call=function(t){var e=Ja(arguments);return t.apply(e[0]=this,e),this},mu.empty=function(){return!this.node()},mu.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},mu.size=function(){var t=0;return this.each(function(){++t}),t};var bu=[];Ya.selection.enter=R,Ya.selection.enter.prototype=bu,bu.append=mu.append,bu.empty=mu.empty,bu.node=mu.node,bu.call=mu.call,bu.size=mu.size,bu.select=function(t){for(var e,n,r,i,o,a=[],u=-1,s=this.length;++u<s;){r=(i=this[u]).update,a.push(e=[]),e.parentNode=i.parentNode;for(var l=-1,c=i.length;++l<c;)(o=i[l])?(e.push(r[l]=n=t.call(i.parentNode,o.__data__,l,u)),n.__data__=o.__data__):e.push(null)}return b(a)},bu.insert=function(t,e){return arguments.length<2&&(e=O(this)),mu.insert.call(this,t,e)},mu.transition=function(){for(var t,e,n=_l||++Nl,r=[],i=Sl||{time:Date.now(),ease:bi,delay:0,duration:250},o=-1,a=this.length;++o<a;){r.push(t=[]);for(var u=this[o],s=-1,l=u.length;++s<l;)(e=u[s])&&Ha(e,s,n,i),t.push(e)}return Oa(r,n)},mu.interrupt=function(){return this.each(q)},Ya.select=function(t){var e=["string"==typeof t?pu(t,Za):t];return e.parentNode=Ga,b([e])},Ya.selectAll=function(t){var e=Ja("string"==typeof t?hu(t,Za):t);return e.parentNode=Ga,b([e])};var xu=Ya.select(Ga);mu.on=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(e=!1);for(n in t)this.each(P(n,t[n],e));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(P(t,e,n))};var $u=Ya.map({mouseenter:"mouseover",mouseleave:"mouseout"});$u.forEach(function(t){"on"+t in Za&&$u.remove(t)});var wu="onselectstart"in Za?null:d(Ga.style,"userSelect"),Mu=0;Ya.mouse=function(t){return I(t,m())};var ku=/WebKit/.test(Ka.navigator.userAgent)?-1:0;Ya.touches=function(t,e){return arguments.length<2&&(e=m().touches),e?Ja(e).map(function(e){var n=I(t,e);return n.identifier=e.identifier,n}):[]},Ya.behavior.drag=function(){function t(){this.on("mousedown.drag",a).on("touchstart.drag",u)}function e(){return Ya.event.changedTouches[0].identifier}function n(t,e){return Ya.touches(t).filter(function(t){return t.identifier===e})[0]}function r(t,e,n,r){return function(){function a(){var t=e(c,p),n=t[0]-v[0],r=t[1]-v[1];g|=n|r,v=t,f({type:"drag",x:t[0]+s[0],y:t[1]+s[1],dx:n,dy:r})}function u(){m.on(n+"."+h,null).on(r+"."+h,null),y(g&&Ya.event.target===d),f({type:"dragend"})}var s,l=this,c=l.parentNode,f=i.of(l,arguments),d=Ya.event.target,p=t(),h=null==p?"drag":"drag-"+p,v=e(c,p),g=0,m=Ya.select(Ka).on(n+"."+h,a).on(r+"."+h,u),y=U();o?(s=o.apply(l,arguments),s=[s.x-v[0],s.y-v[1]]):s=[0,0],f({type:"dragstart"})}}var i=y(t,"drag","dragstart","dragend"),o=null,a=r(p,Ya.mouse,"mousemove","mouseup"),u=r(e,n,"touchmove","touchend");return t.origin=function(e){return arguments.length?(o=e,t):o},Ya.rebind(t,i,"on")};var Cu=Math.PI,_u=2*Cu,Su=Cu/2,Eu=1e-6,Au=Eu*Eu,Tu=Cu/180,Nu=180/Cu,ju=Math.SQRT2,Du=2,Lu=4;Ya.interpolateZoom=function(t,e){function n(t){var e=t*y;if(m){var n=X(v),a=o/(Du*d)*(n*J(ju*e+v)-Y(v));return[r+a*l,i+a*c,o*n/X(ju*e+v)]}return[r+t*l,i+t*c,o*Math.exp(ju*e)]}var r=t[0],i=t[1],o=t[2],a=e[0],u=e[1],s=e[2],l=a-r,c=u-i,f=l*l+c*c,d=Math.sqrt(f),p=(s*s-o*o+Lu*f)/(2*o*Du*d),h=(s*s-o*o-Lu*f)/(2*s*Du*d),v=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(h*h+1)-h),m=g-v,y=(m||Math.log(s/o))/ju;return n.duration=1e3*y,n},Ya.behavior.zoom=function(){function t(t){t.on(S,l).on(qu+".zoom",f).on(E,d).on("dblclick.zoom",p).on(T,c)}function e(t){return[(t[0]-k.x)/k.k,(t[1]-k.y)/k.k]}function n(t){return[t[0]*k.k+k.x,t[1]*k.k+k.y]}function r(t){k.k=Math.max(_[0],Math.min(_[1],t))}function i(t,e){e=n(e),k.x+=t[0]-e[0],k.y+=t[1]-e[1]}function o(){$&&$.domain(x.range().map(function(t){return(t-k.x)/k.k}).map(x.invert)),M&&M.domain(w.range().map(function(t){return(t-k.y)/k.k}).map(w.invert))}function a(t){t({type:"zoomstart"})}function u(t){o(),t({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function s(t){t({type:"zoomend"})}function l(){function t(){c=1,i(Ya.mouse(r),p),u(o)}function n(){f.on(E,Ka===r?d:null).on(A,null),h(c&&Ya.event.target===l),s(o)}var r=this,o=N.of(r,arguments),l=Ya.event.target,c=0,f=Ya.select(Ka).on(E,t).on(A,n),p=e(Ya.mouse(r)),h=U();q.call(r),a(o)}function c(){function t(){var t=Ya.touches(p);return d=k.k,t.forEach(function(t){t.identifier in v&&(v[t.identifier]=e(t))}),t}function n(){for(var e=Ya.event.changedTouches,n=0,o=e.length;o>n;++n)v[e[n].identifier]=null;var a=t(),s=Date.now();if(1===a.length){if(500>s-b){var l=a[0],c=v[l.identifier];r(2*k.k),i(l,c),g(),u(h)}b=s}else if(a.length>1){var l=a[0],f=a[1],d=l[0]-f[0],p=l[1]-f[1];m=d*d+p*p}}function o(){for(var t,e,n,o,a=Ya.touches(p),s=0,l=a.length;l>s;++s,o=null)if(n=a[s],o=v[n.identifier]){if(e)break;t=n,e=o}if(o){var c=(c=n[0]-t[0])*c+(c=n[1]-t[1])*c,f=m&&Math.sqrt(c/m);t=[(t[0]+n[0])/2,(t[1]+n[1])/2],e=[(e[0]+o[0])/2,(e[1]+o[1])/2],r(f*d)}b=null,i(t,e),u(h)}function f(){if(Ya.event.touches.length){for(var e=Ya.event.changedTouches,n=0,r=e.length;r>n;++n)delete v[e[n].identifier];for(var i in v)return void t()}w.on(x,null).on($,null),M.on(S,l).on(T,c),C(),s(h)}var d,p=this,h=N.of(p,arguments),v={},m=0,y=Ya.event.changedTouches[0].identifier,x="touchmove.zoom-"+y,$="touchend.zoom-"+y,w=Ya.select(Ka).on(x,o).on($,f),M=Ya.select(p).on(S,null).on(T,n),C=U();q.call(p),n(),a(h)}function f(){var t=N.of(this,arguments);m?clearTimeout(m):(q.call(this),a(t)),m=setTimeout(function(){m=null,s(t)},50),g();var n=v||Ya.mouse(this);h||(h=e(n)),r(Math.pow(2,.002*Ru())*k.k),i(n,h),u(t)}function d(){h=null}function p(){var t=N.of(this,arguments),n=Ya.mouse(this),o=e(n),l=Math.log(k.k)/Math.LN2;a(t),r(Math.pow(2,Ya.event.shiftKey?Math.ceil(l)-1:Math.floor(l)+1)),i(n,o),u(t),s(t)}var h,v,m,b,x,$,w,M,k={x:0,y:0,k:1},C=[960,500],_=Ou,S="mousedown.zoom",E="mousemove.zoom",A="mouseup.zoom",T="touchstart.zoom",N=y(t,"zoomstart","zoom","zoomend");return t.event=function(t){t.each(function(){var t=N.of(this,arguments),e=k;_l?Ya.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},a(t)}).tween("zoom:zoom",function(){var n=C[0],r=C[1],i=n/2,o=r/2,a=Ya.interpolateZoom([(i-k.x)/k.k,(o-k.y)/k.k,n/k.k],[(i-e.x)/e.k,(o-e.y)/e.k,n/e.k]);return function(e){var r=a(e),s=n/r[2];this.__chart__=k={x:i-r[0]*s,y:o-r[1]*s,k:s},u(t)}}).each("end.zoom",function(){s(t)}):(this.__chart__=k,a(t),u(t),s(t))})},t.translate=function(e){return arguments.length?(k={x:+e[0],y:+e[1],k:k.k},o(),t):[k.x,k.y]},t.scale=function(e){return arguments.length?(k={x:k.x,y:k.y,k:+e},o(),t):k.k},t.scaleExtent=function(e){return arguments.length?(_=null==e?Ou:[+e[0],+e[1]],t):_},t.center=function(e){return arguments.length?(v=e&&[+e[0],+e[1]],t):v},t.size=function(e){return arguments.length?(C=e&&[+e[0],+e[1]],t):C},t.x=function(e){return arguments.length?($=e,x=e.copy(),k={x:0,y:0,k:1},t):$},t.y=function(e){return arguments.length?(M=e,w=e.copy(),k={x:0,y:0,k:1},t):M},Ya.rebind(t,N,"on")};var Ru,Ou=[0,1/0],qu="onwheel"in Za?(Ru=function(){return-Ya.event.deltaY*(Ya.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Za?(Ru=function(){return Ya.event.wheelDelta},"mousewheel"):(Ru=function(){return-Ya.event.detail},"MozMousePixelScroll");G.prototype.toString=function(){return this.rgb()+""},Ya.hsl=function(t,e,n){return 1===arguments.length?t instanceof Q?K(t.h,t.s,t.l):ge(""+t,me,K):K(+t,+e,+n)};var Pu=Q.prototype=new G;Pu.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),K(this.h,this.s,this.l/t)},Pu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),K(this.h,this.s,t*this.l)},Pu.rgb=function(){return te(this.h,this.s,this.l)},Ya.hcl=function(t,e,n){return 1===arguments.length?t instanceof ne?ee(t.h,t.c,t.l):t instanceof oe?ue(t.l,t.a,t.b):ue((t=ye((t=Ya.rgb(t)).r,t.g,t.b)).l,t.a,t.b):ee(+t,+e,+n)};var Hu=ne.prototype=new G;Hu.brighter=function(t){return ee(this.h,this.c,Math.min(100,this.l+Fu*(arguments.length?t:1)))},Hu.darker=function(t){return ee(this.h,this.c,Math.max(0,this.l-Fu*(arguments.length?t:1)))},Hu.rgb=function(){return re(this.h,this.c,this.l).rgb()},Ya.lab=function(t,e,n){return 1===arguments.length?t instanceof oe?ie(t.l,t.a,t.b):t instanceof ne?re(t.l,t.c,t.h):ye((t=Ya.rgb(t)).r,t.g,t.b):ie(+t,+e,+n)};var Fu=18,Uu=.95047,Iu=1,zu=1.08883,Bu=oe.prototype=new G;Bu.brighter=function(t){return ie(Math.min(100,this.l+Fu*(arguments.length?t:1)),this.a,this.b)},Bu.darker=function(t){return ie(Math.max(0,this.l-Fu*(arguments.length?t:1)),this.a,this.b)},Bu.rgb=function(){return ae(this.l,this.a,this.b)},Ya.rgb=function(t,e,n){return 1===arguments.length?t instanceof he?pe(t.r,t.g,t.b):ge(""+t,pe,te):pe(~~t,~~e,~~n)};var Vu=he.prototype=new G;Vu.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&i>e&&(e=i),n&&i>n&&(n=i),r&&i>r&&(r=i),pe(Math.min(255,~~(e/t)),Math.min(255,~~(n/t)),Math.min(255,~~(r/t)))):pe(i,i,i)},Vu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),pe(~~(t*this.r),~~(t*this.g),~~(t*this.b))},Vu.hsl=function(){return me(this.r,this.g,this.b)},Vu.toString=function(){return"#"+ve(this.r)+ve(this.g)+ve(this.b)};var Wu=Ya.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Wu.forEach(function(t,e){Wu.set(t,fe(e))}),Ya.functor=$e,Ya.xhr=Me(we),Ya.dsv=function(t,e){function n(t,n,o){arguments.length<3&&(o=n,n=null);var a=ke(t,e,null==n?r:i(n),o);return a.row=function(t){return arguments.length?a.response(null==(n=t)?r:i(t)):n},a}function r(t){return n.parse(t.responseText)}function i(t){return function(e){return n.parse(e.responseText,t)}}function o(e){return e.map(a).join(t)}function a(t){return u.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return n.parse=function(t,e){var r;return n.parseRows(t,function(t,n){if(r)return r(t,n-1);var i=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");r=e?function(t,n){return e(i(t),n)}:i})},n.parseRows=function(t,e){function n(){if(c>=l)return a;if(i)return i=!1,o;var e=c;if(34===t.charCodeAt(e)){for(var n=e;n++<l;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}c=n+2;var r=t.charCodeAt(n+1);return 13===r?(i=!0,10===t.charCodeAt(n+2)&&++c):10===r&&(i=!0),t.substring(e+1,n).replace(/""/g,'"')}for(;l>c;){var r=t.charCodeAt(c++),u=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(c)&&(++c,++u);else if(r!==s)continue;return t.substring(e,c-u)}return t.substring(e)}for(var r,i,o={},a={},u=[],l=t.length,c=0,f=0;(r=n())!==a;){for(var d=[];r!==o&&r!==a;)d.push(r),r=n();(!e||(d=e(d,f++)))&&u.push(d)}return u},n.format=function(e){if(Array.isArray(e[0]))return n.formatRows(e);var r=new c,i=[];return e.forEach(function(t){for(var e in t)r.has(e)||i.push(r.add(e))}),[i.map(a).join(t)].concat(e.map(function(e){return i.map(function(t){return a(e[t])}).join(t)})).join("\n")},n.formatRows=function(t){return t.map(o).join("\n")},n},Ya.csv=Ya.dsv(",","text/csv"),Ya.tsv=Ya.dsv("	","text/tab-separated-values");var Yu,Xu,Ju,Zu,Gu,Ku=Ka[d(Ka,"requestAnimationFrame")]||function(t){setTimeout(t,17)};Ya.timer=function(t,e,n){var r=arguments.length;2>r&&(e=0),3>r&&(n=Date.now());var i=n+e,o={c:t,t:i,f:!1,n:null};Xu?Xu.n=o:Yu=o,Xu=o,Ju||(Zu=clearTimeout(Zu),Ju=1,Ku(_e))},Ya.timer.flush=function(){Se(),Ee()},Ya.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Qu=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(Te);Ya.formatPrefix=function(t,e){var n=0;return t&&(0>t&&(t*=-1),e&&(t=Ya.round(t,Ae(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)))),Qu[8+n/3]};var ts=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,es=Ya.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(t=Ya.round(t,Ae(t,e))).toFixed(Math.max(0,Math.min(20,Ae(t*(1+1e-15),e))))}}),ns=Ya.time={},rs=Date;De.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(){is.setUTCDate.apply(this._,arguments)},setDay:function(){is.setUTCDay.apply(this._,arguments)},setFullYear:function(){is.setUTCFullYear.apply(this._,arguments)},setHours:function(){is.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){is.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){is.setUTCMinutes.apply(this._,arguments)},setMonth:function(){is.setUTCMonth.apply(this._,arguments)},setSeconds:function(){is.setUTCSeconds.apply(this._,arguments)},setTime:function(){is.setTime.apply(this._,arguments)}};var is=Date.prototype;ns.year=Le(function(t){return t=ns.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),ns.years=ns.year.range,ns.years.utc=ns.year.utc.range,ns.day=Le(function(t){var e=new rs(2e3,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}),ns.days=ns.day.range,ns.days.utc=ns.day.utc.range,ns.dayOfYear=function(t){var e=ns.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=ns[t]=Le(function(t){return(t=ns.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=ns.year(t).getDay();return Math.floor((ns.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});ns[t+"s"]=n.range,ns[t+"s"].utc=n.utc.range,ns[t+"OfYear"]=function(t){var n=ns.year(t).getDay();return Math.floor((ns.dayOfYear(t)+(n+e)%7)/7)}}),ns.week=ns.sunday,ns.weeks=ns.sunday.range,ns.weeks.utc=ns.sunday.utc.range,ns.weekOfYear=ns.sundayOfYear;var os={"-":"",_:" ",0:"0"},as=/^\s*\d+/,us=/^%/;Ya.locale=function(t){return{numberFormat:Ne(t),timeFormat:Oe(t)}};var ss=Ya.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Ya.format=ss.numberFormat,Ya.geo={},rn.prototype={s:0,t:0,add:function(t){on(t,this.t,ls),on(ls.s,this.s,this),this.s?this.t+=ls.t:this.s=ls.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ls=new rn;Ya.geo.stream=function(t,e){t&&cs.hasOwnProperty(t.type)?cs[t.type](t,e):an(t,e)};var cs={Feature:function(t,e){an(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)an(n[r].geometry,e)}},fs={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){un(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)un(n[r],e,0)},Polygon:function(t,e){sn(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)sn(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)an(n[r],e)}};Ya.geo.area=function(t){return ds=0,Ya.geo.stream(t,hs),ds};var ds,ps=new rn,hs={sphere:function(){ds+=4*Cu},point:p,lineStart:p,lineEnd:p,polygonStart:function(){ps.reset(),hs.lineStart=ln},polygonEnd:function(){var t=2*ps;ds+=0>t?4*Cu+t:t,hs.lineStart=hs.lineEnd=hs.point=p}};Ya.geo.bounds=function(){function t(t,e){b.push(x=[c=t,d=t]),f>e&&(f=e),e>p&&(p=e)}function e(e,n){var r=cn([e*Tu,n*Tu]);if(m){var i=dn(m,r),o=[i[1],-i[0],0],a=dn(o,i);vn(a),a=gn(a);var s=e-h,l=s>0?1:-1,v=a[0]*Nu*l,g=uu(s)>180;if(g^(v>l*h&&l*e>v)){var y=a[1]*Nu;y>p&&(p=y)}else if(v=(v+360)%360-180,g^(v>l*h&&l*e>v)){var y=-a[1]*Nu;f>y&&(f=y)}else f>n&&(f=n),n>p&&(p=n);g?h>e?u(c,e)>u(c,d)&&(d=e):u(e,d)>u(c,d)&&(c=e):d>=c?(c>e&&(c=e),e>d&&(d=e)):e>h?u(c,e)>u(c,d)&&(d=e):u(e,d)>u(c,d)&&(c=e)}else t(e,n);m=r,h=e}function n(){$.point=e}function r(){x[0]=c,x[1]=d,$.point=t,m=null}function i(t,n){if(m){var r=t-h;y+=uu(r)>180?r+(r>0?360:-360):r}else v=t,g=n;hs.point(t,n),e(t,n)}function o(){hs.lineStart()}function a(){i(v,g),hs.lineEnd(),uu(y)>Eu&&(c=-(d=180)),x[0]=c,x[1]=d,m=null}function u(t,e){return(e-=t)<0?e+360:e}function s(t,e){return t[0]-e[0]}function l(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var c,f,d,p,h,v,g,m,y,b,x,$={point:t,lineStart:n,lineEnd:r,polygonStart:function(){$.point=i,$.lineStart=o,$.lineEnd=a,y=0,hs.polygonStart()},polygonEnd:function(){hs.polygonEnd(),$.point=t,$.lineStart=n,$.lineEnd=r,0>ps?(c=-(d=180),f=-(p=90)):y>Eu?p=90:-Eu>y&&(f=-90),x[0]=c,x[1]=d}};return function(t){p=d=-(c=f=1/0),b=[],Ya.geo.stream(t,$);var e=b.length;if(e){b.sort(s);for(var n,r=1,i=b[0],o=[i];e>r;++r)n=b[r],l(n[0],i)||l(n[1],i)?(u(i[0],n[1])>u(i[0],i[1])&&(i[1]=n[1]),u(n[0],i[1])>u(i[0],i[1])&&(i[0]=n[0])):o.push(i=n);for(var a,n,h=-1/0,e=o.length-1,r=0,i=o[e];e>=r;i=n,++r)n=o[r],(a=u(i[1],n[0]))>h&&(h=a,c=n[0],d=i[1])}return b=x=null,1/0===c||1/0===f?[[0/0,0/0],[0/0,0/0]]:[[c,f],[d,p]]}}(),Ya.geo.centroid=function(t){vs=gs=ms=ys=bs=xs=$s=ws=Ms=ks=Cs=0,Ya.geo.stream(t,_s);var e=Ms,n=ks,r=Cs,i=e*e+n*n+r*r;return Au>i&&(e=xs,n=$s,r=ws,Eu>gs&&(e=ms,n=ys,r=bs),i=e*e+n*n+r*r,Au>i)?[0/0,0/0]:[Math.atan2(n,e)*Nu,W(r/Math.sqrt(i))*Nu]};var vs,gs,ms,ys,bs,xs,$s,ws,Ms,ks,Cs,_s={sphere:p,point:yn,lineStart:xn,lineEnd:$n,polygonStart:function(){_s.lineStart=wn},polygonEnd:function(){_s.lineStart=xn}},Ss=Sn(Mn,jn,Ln,[-Cu,-Cu/2]),Es=1e9;Ya.geo.clipExtent=function(){var t,e,n,r,i,o,a={stream:function(t){return i&&(i.valid=!1),i=o(t),i.valid=!0,i},extent:function(u){return arguments.length?(o=qn(t=+u[0][0],e=+u[0][1],n=+u[1][0],r=+u[1][1]),i&&(i.valid=!1,i=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(Ya.geo.conicEqualArea=function(){return Hn(Fn)}).raw=Fn,Ya.geo.albers=function(){return Ya.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Ya.geo.albersUsa=function(){function t(t){var o=t[0],a=t[1];return e=null,n(o,a),e||(r(o,a),e)||i(o,a),e}var e,n,r,i,o=Ya.geo.albers(),a=Ya.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=Ya.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){e=[t,n]}};return t.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?a:i>=.166&&.234>i&&r>=-.214&&-.115>r?u:o).invert(t)},t.stream=function(t){var e=o.stream(t),n=a.stream(t),r=u.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},t.precision=function(e){return arguments.length?(o.precision(e),a.precision(e),u.precision(e),t):o.precision()
  },t.scale=function(e){return arguments.length?(o.scale(e),a.scale(.35*e),u.scale(e),t.translate(o.translate())):o.scale()},t.translate=function(e){if(!arguments.length)return o.translate();var l=o.scale(),c=+e[0],f=+e[1];return n=o.translate(e).clipExtent([[c-.455*l,f-.238*l],[c+.455*l,f+.238*l]]).stream(s).point,r=a.translate([c-.307*l,f+.201*l]).clipExtent([[c-.425*l+Eu,f+.12*l+Eu],[c-.214*l-Eu,f+.234*l-Eu]]).stream(s).point,i=u.translate([c-.205*l,f+.212*l]).clipExtent([[c-.214*l+Eu,f+.166*l+Eu],[c-.115*l-Eu,f+.234*l-Eu]]).stream(s).point,t},t.scale(1070)};var As,Ts,Ns,js,Ds,Ls,Rs={point:p,lineStart:p,lineEnd:p,polygonStart:function(){Ts=0,Rs.lineStart=Un},polygonEnd:function(){Rs.lineStart=Rs.lineEnd=Rs.point=p,As+=uu(Ts/2)}},Os={point:In,lineStart:p,lineEnd:p,polygonStart:p,polygonEnd:p},qs={point:Vn,lineStart:Wn,lineEnd:Yn,polygonStart:function(){qs.lineStart=Xn},polygonEnd:function(){qs.point=Vn,qs.lineStart=Wn,qs.lineEnd=Yn}};Ya.geo.path=function(){function t(t){return t&&("function"==typeof u&&o.pointRadius(+u.apply(this,arguments)),a&&a.valid||(a=i(o)),Ya.geo.stream(t,a)),o.result()}function e(){return a=null,t}var n,r,i,o,a,u=4.5;return t.area=function(t){return As=0,Ya.geo.stream(t,i(Rs)),As},t.centroid=function(t){return ms=ys=bs=xs=$s=ws=Ms=ks=Cs=0,Ya.geo.stream(t,i(qs)),Cs?[Ms/Cs,ks/Cs]:ws?[xs/ws,$s/ws]:bs?[ms/bs,ys/bs]:[0/0,0/0]},t.bounds=function(t){return Ds=Ls=-(Ns=js=1/0),Ya.geo.stream(t,i(Os)),[[Ns,js],[Ds,Ls]]},t.projection=function(t){return arguments.length?(i=(n=t)?t.stream||Gn(t):we,e()):n},t.context=function(t){return arguments.length?(o=null==(r=t)?new zn:new Jn(t),"function"!=typeof u&&o.pointRadius(u),e()):r},t.pointRadius=function(e){return arguments.length?(u="function"==typeof e?e:(o.pointRadius(+e),+e),t):u},t.projection(Ya.geo.albersUsa()).context(null)},Ya.geo.transform=function(t){return{stream:function(e){var n=new Kn(e);for(var r in t)n[r]=t[r];return n}}},Kn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},Ya.geo.projection=tr,Ya.geo.projectionMutator=er,(Ya.geo.equirectangular=function(){return tr(rr)}).raw=rr.invert=rr,Ya.geo.rotation=function(t){function e(e){return e=t(e[0]*Tu,e[1]*Tu),e[0]*=Nu,e[1]*=Nu,e}return t=or(t[0]%360*Tu,t[1]*Tu,t.length>2?t[2]*Tu:0),e.invert=function(e){return e=t.invert(e[0]*Tu,e[1]*Tu),e[0]*=Nu,e[1]*=Nu,e},e},ir.invert=rr,Ya.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=or(-t[0]*Tu,-t[1]*Tu,0).invert,i=[];return n(null,null,1,{point:function(t,n){i.push(t=e(t,n)),t[0]*=Nu,t[1]*=Nu}}),{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=lr((e=+r)*Tu,i*Tu),t):e},t.precision=function(r){return arguments.length?(n=lr(e*Tu,(i=+r)*Tu),t):i},t.angle(90)},Ya.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Tu,i=t[1]*Tu,o=e[1]*Tu,a=Math.sin(r),u=Math.cos(r),s=Math.sin(i),l=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-s*f*u)*n),s*c+l*f*u)},Ya.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return Ya.range(Math.ceil(o/g)*g,i,g).map(d).concat(Ya.range(Math.ceil(l/m)*m,s,m).map(p)).concat(Ya.range(Math.ceil(r/h)*h,n,h).filter(function(t){return uu(t%g)>Eu}).map(c)).concat(Ya.range(Math.ceil(u/v)*v,a,v).filter(function(t){return uu(t%m)>Eu}).map(f))}var n,r,i,o,a,u,s,l,c,f,d,p,h=10,v=h,g=90,m=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[d(o).concat(p(s).slice(1),d(i).reverse().slice(1),p(l).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(o=+e[0][0],i=+e[1][0],l=+e[0][1],s=+e[1][1],o>i&&(e=o,o=i,i=e),l>s&&(e=l,l=s,s=e),t.precision(y)):[[o,l],[i,s]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),u>a&&(e=u,u=a,a=e),t.precision(y)):[[r,u],[n,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(g=+e[0],m=+e[1],t):[g,m]},t.minorStep=function(e){return arguments.length?(h=+e[0],v=+e[1],t):[h,v]},t.precision=function(e){return arguments.length?(y=+e,c=fr(u,a,90),f=dr(r,n,y),d=fr(l,s,90),p=dr(o,i,y),t):y},t.majorExtent([[-180,-90+Eu],[180,90-Eu]]).minorExtent([[-180,-80-Eu],[180,80+Eu]])},Ya.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||i.apply(this,arguments)]}}var e,n,r=pr,i=hr;return t.distance=function(){return Ya.geo.distance(e||r.apply(this,arguments),n||i.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(i=e,n="function"==typeof e?null:e,t):i},t.precision=function(){return arguments.length?t:0},t},Ya.geo.interpolate=function(t,e){return vr(t[0]*Tu,t[1]*Tu,e[0]*Tu,e[1]*Tu)},Ya.geo.length=function(t){return Ps=0,Ya.geo.stream(t,Hs),Ps};var Ps,Hs={sphere:p,point:p,lineStart:gr,lineEnd:p,polygonStart:p,polygonEnd:p},Fs=mr(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(Ya.geo.azimuthalEqualArea=function(){return tr(Fs)}).raw=Fs;var Us=mr(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},we);(Ya.geo.azimuthalEquidistant=function(){return tr(Us)}).raw=Us,(Ya.geo.conicConformal=function(){return Hn(yr)}).raw=yr,(Ya.geo.conicEquidistant=function(){return Hn(br)}).raw=br;var Is=mr(function(t){return 1/t},Math.atan);(Ya.geo.gnomonic=function(){return tr(Is)}).raw=Is,xr.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Su]},(Ya.geo.mercator=function(){return $r(xr)}).raw=xr;var zs=mr(function(){return 1},Math.asin);(Ya.geo.orthographic=function(){return tr(zs)}).raw=zs;var Bs=mr(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(Ya.geo.stereographic=function(){return tr(Bs)}).raw=Bs,wr.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Su]},(Ya.geo.transverseMercator=function(){var t=$r(wr),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[-t[1],t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},t.rotate([0,0])}).raw=wr,Ya.geom={},Ya.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,i=$e(n),o=$e(r),a=t.length,u=[],s=[];for(e=0;a>e;e++)u.push([+i.call(this,t[e],e),+o.call(this,t[e],e),e]);for(u.sort(_r),e=0;a>e;e++)s.push([u[e][0],-u[e][1]]);var l=Cr(u),c=Cr(s),f=c[0]===l[0],d=c[c.length-1]===l[l.length-1],p=[];for(e=l.length-1;e>=0;--e)p.push(t[u[l[e]][2]]);for(e=+f;e<c.length-d;++e)p.push(t[u[c[e]][2]]);return p}var n=Mr,r=kr;return arguments.length?e(t):(e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e)},Ya.geom.polygon=function(t){return du(t,Vs),t};var Vs=Ya.geom.polygon.prototype=[];Vs.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],i=0;++e<n;)t=r,r=this[e],i+=t[1]*r[0]-t[0]*r[1];return.5*i},Vs.centroid=function(t){var e,n,r=-1,i=this.length,o=0,a=0,u=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=u,u=this[r],n=e[0]*u[1]-u[0]*e[1],o+=(e[0]+u[0])*n,a+=(e[1]+u[1])*n;return[o*t,a*t]},Vs.clip=function(t){for(var e,n,r,i,o,a,u=Ar(t),s=-1,l=this.length-Ar(this),c=this[l-1];++s<l;){for(e=t.slice(),t.length=0,i=this[s],o=e[(r=e.length-u)-1],n=-1;++n<r;)a=e[n],Sr(a,c,i)?(Sr(o,c,i)||t.push(Er(o,a,c,i)),t.push(a)):Sr(o,c,i)&&t.push(Er(o,a,c,i)),o=a;u&&t.push(t[0]),c=i}return t};var Ws,Ys,Xs,Js,Zs,Gs=[],Ks=[];qr.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)t=e[n].edge,t.b&&t.a||e.splice(n,1);return e.sort(Hr),e.length},Jr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Zr.prototype={insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=ti(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(Kr(this,n),t=n,n=t.U),n.C=!1,r.C=!0,Qr(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(Qr(this,n),t=n,n=t.U),n.C=!1,r.C=!0,Kr(this,r))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?ti(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,Kr(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Qr(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Kr(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,Qr(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Kr(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Qr(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},Ya.geom.voronoi=function(t){function e(t){var e=new Array(t.length),r=u[0][0],i=u[0][1],o=u[1][0],a=u[1][1];return ei(n(t),u).cells.forEach(function(n,u){var s=n.edges,l=n.site,c=e[u]=s.length?s.map(function(t){var e=t.start();return[e.x,e.y]}):l.x>=r&&l.x<=o&&l.y>=i&&l.y<=a?[[r,a],[o,a],[o,i],[r,i]]:[];c.point=t[u]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(o(t,e)/Eu)*Eu,y:Math.round(a(t,e)/Eu)*Eu,i:e}})}var r=Mr,i=kr,o=r,a=i,u=Qs;return t?e(t):(e.links=function(t){return ei(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return ei(n(t)).cells.forEach(function(n,r){for(var i,o,a=n.site,u=n.edges.sort(Hr),s=-1,l=u.length,c=u[l-1].edge,f=c.l===a?c.r:c.l;++s<l;)i=c,o=f,c=u[s].edge,f=c.l===a?c.r:c.l,r<o.i&&r<f.i&&ri(a,o,f)<0&&e.push([t[r],t[o.i],t[f.i]])}),e},e.x=function(t){return arguments.length?(o=$e(r=t),e):r},e.y=function(t){return arguments.length?(a=$e(i=t),e):i},e.clipExtent=function(t){return arguments.length?(u=null==t?Qs:t,e):u===Qs?null:u},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):u===Qs?null:u&&u[1]},e)};var Qs=[[-1e6,-1e6],[1e6,1e6]];Ya.geom.delaunay=function(t){return Ya.geom.voronoi().triangles(t)},Ya.geom.quadtree=function(t,e,n,r,i){function o(t){function o(t,e,n,r,i,o,a,u){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var s=t.x,c=t.y;if(null!=s)if(uu(s-n)+uu(c-r)<.01)l(t,e,n,r,i,o,a,u);else{var f=t.point;t.x=t.y=t.point=null,l(t,f,s,c,i,o,a,u),l(t,e,n,r,i,o,a,u)}else t.x=n,t.y=r,t.point=e}else l(t,e,n,r,i,o,a,u)}function l(t,e,n,r,i,a,u,s){var l=.5*(i+u),c=.5*(a+s),f=n>=l,d=r>=c,p=(d<<1)+f;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=ai()),f?i=l:u=l,d?a=c:s=c,o(t,e,n,r,i,a,u,s)}var c,f,d,p,h,v,g,m,y,b=$e(u),x=$e(s);if(null!=e)v=e,g=n,m=r,y=i;else if(m=y=-(v=g=1/0),f=[],d=[],h=t.length,a)for(p=0;h>p;++p)c=t[p],c.x<v&&(v=c.x),c.y<g&&(g=c.y),c.x>m&&(m=c.x),c.y>y&&(y=c.y),f.push(c.x),d.push(c.y);else for(p=0;h>p;++p){var $=+b(c=t[p],p),w=+x(c,p);v>$&&(v=$),g>w&&(g=w),$>m&&(m=$),w>y&&(y=w),f.push($),d.push(w)}var M=m-v,k=y-g;M>k?y=g+M:m=v+k;var C=ai();if(C.add=function(t){o(C,t,+b(t,++p),+x(t,p),v,g,m,y)},C.visit=function(t){ui(t,C,v,g,m,y)},p=-1,null==e){for(;++p<h;)o(C,t[p],f[p],d[p],v,g,m,y);--p}else t.forEach(C.add);return f=d=t=c=null,C}var a,u=Mr,s=kr;return(a=arguments.length)?(u=ii,s=oi,3===a&&(i=n,r=e,n=e=0),o(t)):(o.x=function(t){return arguments.length?(u=t,o):u},o.y=function(t){return arguments.length?(s=t,o):s},o.extent=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),o):null==e?null:[[e,n],[r,i]]},o.size=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=n=0,r=+t[0],i=+t[1]),o):null==e?null:[r-e,i-n]},o)},Ya.interpolateRgb=si,Ya.interpolateObject=li,Ya.interpolateNumber=ci,Ya.interpolateString=fi;var tl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;Ya.interpolate=di,Ya.interpolators=[function(t,e){var n=typeof e;return("string"===n?Wu.has(e)||/^(#|rgb\(|hsl\()/.test(e)?si:fi:e instanceof G?si:"object"===n?Array.isArray(e)?pi:li:ci)(t,e)}],Ya.interpolateArray=pi;var el=function(){return we},nl=Ya.map({linear:el,poly:xi,quad:function(){return mi},cubic:function(){return yi},sin:function(){return $i},exp:function(){return wi},circle:function(){return Mi},elastic:ki,back:Ci,bounce:function(){return _i}}),rl=Ya.map({"in":we,out:vi,"in-out":gi,"out-in":function(t){return gi(vi(t))}});Ya.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.substring(0,e):t,r=e>=0?t.substring(e+1):"in";return n=nl.get(n)||el,r=rl.get(r)||we,hi(r(n.apply(null,Xa.call(arguments,1))))},Ya.interpolateHcl=Si,Ya.interpolateHsl=Ei,Ya.interpolateLab=Ai,Ya.interpolateRound=Ti,Ya.transform=function(t){var e=Za.createElementNS(Ya.ns.prefix.svg,"g");return(Ya.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Ni(n?n.matrix:il)})(t)},Ni.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var il={a:1,b:0,c:0,d:1,e:0,f:0};Ya.interpolateTransform=Ri,Ya.layout={},Ya.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(Pi(t[n]));return e}},Ya.layout.chord=function(){function t(){var t,l,f,d,p,h={},v=[],g=Ya.range(o),m=[];for(n=[],r=[],t=0,d=-1;++d<o;){for(l=0,p=-1;++p<o;)l+=i[d][p];v.push(l),m.push(Ya.range(o)),t+=l}for(a&&g.sort(function(t,e){return a(v[t],v[e])}),u&&m.forEach(function(t,e){t.sort(function(t,n){return u(i[e][t],i[e][n])})}),t=(_u-c*o)/t,l=0,d=-1;++d<o;){for(f=l,p=-1;++p<o;){var y=g[d],b=m[y][p],x=i[y][b],$=l,w=l+=x*t;h[y+"-"+b]={index:y,subindex:b,startAngle:$,endAngle:w,value:x}}r[y]={index:y,startAngle:f,endAngle:l,value:(l-f)/t},l+=c}for(d=-1;++d<o;)for(p=d-1;++p<o;){var M=h[d+"-"+p],k=h[p+"-"+d];(M.value||k.value)&&n.push(M.value<k.value?{source:k,target:M}:{source:M,target:k})}s&&e()}function e(){n.sort(function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,r,i,o,a,u,s,l={},c=0;return l.matrix=function(t){return arguments.length?(o=(i=t)&&i.length,n=r=null,l):i},l.padding=function(t){return arguments.length?(c=t,n=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,n=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(u=t,n=null,l):u},l.sortChords=function(t){return arguments.length?(s=t,n&&e(),l):s},l.chords=function(){return n||t(),n},l.groups=function(){return r||t(),r},l},Ya.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=i-n,s=o*o+a*a;if(s>u*u/g){if(h>s){var l=e.charge/s;t.px-=o*l,t.py-=a*l}return!0}if(e.point&&s&&h>s){var l=e.pointCharge/s;t.px-=o*l,t.py-=a*l}}return!e.charge}}function e(t){t.px=Ya.event.x,t.py=Ya.event.y,u.resume()}var n,r,i,o,a,u={},s=Ya.dispatch("start","tick","end"),l=[1,1],c=.9,f=ol,d=al,p=-30,h=ul,v=.1,g=.64,m=[],y=[];return u.tick=function(){if((r*=.99)<.005)return s.end({type:"end",alpha:r=0}),!0;var e,n,u,f,d,h,g,b,x,$=m.length,w=y.length;for(n=0;w>n;++n)u=y[n],f=u.source,d=u.target,b=d.x-f.x,x=d.y-f.y,(h=b*b+x*x)&&(h=r*o[n]*((h=Math.sqrt(h))-i[n])/h,b*=h,x*=h,d.x-=b*(g=f.weight/(d.weight+f.weight)),d.y-=x*g,f.x+=b*(g=1-g),f.y+=x*g);if((g=r*v)&&(b=l[0]/2,x=l[1]/2,n=-1,g))for(;++n<$;)u=m[n],u.x+=(b-u.x)*g,u.y+=(x-u.y)*g;if(p)for(Vi(e=Ya.geom.quadtree(m),r,a),n=-1;++n<$;)(u=m[n]).fixed||e.visit(t(u));for(n=-1;++n<$;)u=m[n],u.fixed?(u.x=u.px,u.y=u.py):(u.x-=(u.px-(u.px=u.x))*c,u.y-=(u.py-(u.py=u.y))*c);s.tick({type:"tick",alpha:r})},u.nodes=function(t){return arguments.length?(m=t,u):m},u.links=function(t){return arguments.length?(y=t,u):y},u.size=function(t){return arguments.length?(l=t,u):l},u.linkDistance=function(t){return arguments.length?(f="function"==typeof t?t:+t,u):f},u.distance=u.linkDistance,u.linkStrength=function(t){return arguments.length?(d="function"==typeof t?t:+t,u):d},u.friction=function(t){return arguments.length?(c=+t,u):c},u.charge=function(t){return arguments.length?(p="function"==typeof t?t:+t,u):p},u.chargeDistance=function(t){return arguments.length?(h=t*t,u):Math.sqrt(h)},u.gravity=function(t){return arguments.length?(v=+t,u):v},u.theta=function(t){return arguments.length?(g=t*t,u):Math.sqrt(g)},u.alpha=function(t){return arguments.length?(t=+t,r?r=t>0?t:0:t>0&&(s.start({type:"start",alpha:r=t}),Ya.timer(u.tick)),u):r},u.start=function(){function t(t,r){if(!n){for(n=new Array(s),u=0;s>u;++u)n[u]=[];for(u=0;l>u;++u){var i=y[u];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var o,a=n[e],u=-1,l=a.length;++u<l;)if(!isNaN(o=a[u][t]))return o;return Math.random()*r}var e,n,r,s=m.length,c=y.length,h=l[0],v=l[1];for(e=0;s>e;++e)(r=m[e]).index=e,r.weight=0;for(e=0;c>e;++e)r=y[e],"number"==typeof r.source&&(r.source=m[r.source]),"number"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(e=0;s>e;++e)r=m[e],isNaN(r.x)&&(r.x=t("x",h)),isNaN(r.y)&&(r.y=t("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof f)for(e=0;c>e;++e)i[e]=+f.call(this,y[e],e);else for(e=0;c>e;++e)i[e]=f;if(o=[],"function"==typeof d)for(e=0;c>e;++e)o[e]=+d.call(this,y[e],e);else for(e=0;c>e;++e)o[e]=d;if(a=[],"function"==typeof p)for(e=0;s>e;++e)a[e]=+p.call(this,m[e],e);else for(e=0;s>e;++e)a[e]=p;return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){return n||(n=Ya.behavior.drag().origin(we).on("dragstart.force",Ui).on("drag.force",e).on("dragend.force",Ii)),arguments.length?void this.on("mouseover.force",zi).on("mouseout.force",Bi).call(n):n},Ya.rebind(u,s,"on")};var ol=20,al=1,ul=1/0;Ya.layout.hierarchy=function(){function t(e,a,u){var s=i.call(n,e,a);if(e.depth=a,u.push(e),s&&(l=s.length)){for(var l,c,f=-1,d=e.children=new Array(l),p=0,h=a+1;++f<l;)c=d[f]=t(s[f],h,u),c.parent=e,p+=c.value;r&&d.sort(r),o&&(e.value=p)}else delete e.children,o&&(e.value=+o.call(n,e,a)||0);return e}function e(t,r){var i=t.children,a=0;if(i&&(u=i.length))for(var u,s=-1,l=r+1;++s<u;)a+=e(i[s],l);else o&&(a=+o.call(n,t,r)||0);return o&&(t.value=a),a}function n(e){var n=[];return t(e,0,n),n}var r=Ji,i=Yi,o=Xi;return n.sort=function(t){return arguments.length?(r=t,n):r},n.children=function(t){return arguments.length?(i=t,n):i},n.value=function(t){return arguments.length?(o=t,n):o},n.revalue=function(t){return e(t,0),t},n},Ya.layout.partition=function(){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,s,l=-1;for(r=e.value?r/e.value:0;++l<a;)t(u=o[l],n,s=u.value*r,i),n+=s}}function e(t){var n=t.children,r=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)r=Math.max(r,e(n[o]));return 1+r}function n(n,o){var a=r.call(this,n,o);return t(a[0],0,i[0],i[1]/e(a[0])),a}var r=Ya.layout.hierarchy(),i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},Wi(n,r)},Ya.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),s=(("function"==typeof i?i.apply(this,arguments):i)-u)/Ya.sum(a),l=Ya.range(o.length);null!=n&&l.sort(n===sl?function(t,e){return a[e]-a[t]}:function(t,e){return n(o[t],o[e])});var c=[];return l.forEach(function(t){var e;c[t]={data:o[t],value:e=a[t],startAngle:u,endAngle:u+=e*s}}),c}var e=Number,n=sl,r=0,i=_u;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 sl={};Ya.layout.stack=function(){function t(u,s){var l=u.map(function(n,r){return e.call(t,n,r)}),c=l.map(function(e){return e.map(function(e,n){return[o.call(t,e,n),a.call(t,e,n)]})}),f=n.call(t,c,s);l=Ya.permute(l,f),c=Ya.permute(c,f);var d,p,h,v=r.call(t,c,s),g=l.length,m=l[0].length;for(p=0;m>p;++p)for(i.call(t,l[0][p],h=v[p],c[0][p][1]),d=1;g>d;++d)i.call(t,l[d][p],h+=c[d-1][p][1],c[d][p][1]);return u}var e=we,n=to,r=eo,i=Qi,o=Gi,a=Ki;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:ll.get(e)||to,t):n},t.offset=function(e){return arguments.length?(r="function"==typeof e?e:cl.get(e)||eo,t):r},t.x=function(e){return arguments.length?(o=e,t):o},t.y=function(e){return arguments.length?(a=e,t):a},t.out=function(e){return arguments.length?(i=e,t):i},t};var ll=Ya.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(no),o=t.map(ro),a=Ya.range(r).sort(function(t,e){return i[t]-i[e]}),u=0,s=0,l=[],c=[];for(e=0;r>e;++e)n=a[e],s>u?(u+=o[n],l.push(n)):(s+=o[n],c.push(n));return c.reverse().concat(l)},reverse:function(t){return Ya.range(t.length).reverse()},"default":to}),cl=Ya.map({silhouette:function(t){var e,n,r,i=t.length,o=t[0].length,a=[],u=0,s=[];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)s[n]=(u-a[n])/2;return s},wiggle:function(t){var e,n,r,i,o,a,u,s,l,c=t.length,f=t[0],d=f.length,p=[];for(p[0]=s=l=0,n=1;d>n;++n){for(e=0,i=0;c>e;++e)i+=t[e][n][1];for(e=0,o=0,u=f[n][0]-f[n-1][0];c>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]}p[n]=s-=i?o/i*u:0,l>s&&(l=s)}for(n=0;d>n;++n)p[n]-=l;return p},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:eo});Ya.layout.histogram=function(){function t(t,o){for(var a,u,s=[],l=t.map(n,this),c=r.call(this,l,o),f=i.call(this,c,l,o),o=-1,d=l.length,p=f.length-1,h=e?1:1/d;++o<p;)a=s[o]=[],a.dx=f[o+1]-(a.x=f[o]),a.y=0;if(p>0)for(o=-1;++o<d;)u=l[o],u>=c[0]&&u<=c[1]&&(a=s[Ya.bisect(f,u,1,p)-1],a.y+=h,a.push(t[o]));return s}var e=!0,n=Number,r=uo,i=oo;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=$e(e),t):r},t.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return ao(t,e)}:$e(e),t):i},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},Ya.layout.tree=function(){function t(t,o){function a(t,e){var r=t.children,i=t._tree;if(r&&(o=r.length)){for(var o,u,l,c=r[0],f=c,d=-1;++d<o;)l=r[d],a(l,u),f=s(l,u,f),u=l;mo(t);var p=.5*(c._tree.prelim+l._tree.prelim);e?(i.prelim=e._tree.prelim+n(t,e),i.mod=i.prelim-p):i.prelim=p}else e&&(i.prelim=e._tree.prelim+n(t,e))}function u(t,e){t.x=t._tree.prelim+e;var n=t.children;if(n&&(r=n.length)){var r,i=-1;for(e+=t._tree.mod;++i<r;)u(n[i],e)}}function s(t,e,r){if(e){for(var i,o=t,a=t,u=e,s=t.parent.children[0],l=o._tree.mod,c=a._tree.mod,f=u._tree.mod,d=s._tree.mod;u=co(u),o=lo(o),u&&o;)s=lo(s),a=co(a),a._tree.ancestor=t,i=u._tree.prelim+f-o._tree.prelim-l+n(u,o),i>0&&(yo(bo(u,t,r),t,i),l+=i,c+=i),f+=u._tree.mod,l+=o._tree.mod,d+=s._tree.mod,c+=a._tree.mod;u&&!co(a)&&(a._tree.thread=u,a._tree.mod+=f-c),o&&!lo(s)&&(s._tree.thread=o,s._tree.mod+=l-d,r=t)}return r}var l=e.call(this,t,o),c=l[0];go(c,function(t,e){t._tree={ancestor:t,prelim:0,mod:0,change:0,shift:0,number:e?e._tree.number+1:0}}),a(c),u(c,-c._tree.prelim);var f=fo(c,ho),d=fo(c,po),p=fo(c,vo),h=f.x-n(f,d)/2,v=d.x+n(d,f)/2,g=p.depth||1;return go(c,i?function(t){t.x*=r[0],t.y=t.depth*r[1],delete t._tree}:function(t){t.x=(t.x-h)/(v-h)*r[0],t.y=t.depth/g*r[1],delete t._tree}),l}var e=Ya.layout.hierarchy().sort(null).value(null),n=so,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},Wi(t,e)},Ya.layout.pack=function(){function t(t,o){var a=n.call(this,t,o),u=a[0],s=i[0],l=i[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(u.x=u.y=0,go(u,function(t){t.r=+c(t.value)}),go(u,ko),r){var f=r*(e?1:Math.max(2*u.r/s,2*u.r/l))/2;go(u,function(t){t.r+=f}),go(u,ko),go(u,function(t){t.r-=f})}return So(u,s/2,l/2,e?1:1/Math.max(2*u.r/s,2*u.r/l)),a}var e,n=Ya.layout.hierarchy().sort(xo),r=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},Wi(t,n)},Ya.layout.cluster=function(){function t(t,o){var a,u=e.call(this,t,o),s=u[0],l=0;go(s,function(t){var e=t.children;e&&e.length?(t.x=To(e),t.y=Ao(e)):(t.x=a?l+=n(t,a):0,t.y=0,a=t)});var c=No(s),f=jo(s),d=c.x-n(c,f)/2,p=f.x+n(f,c)/2;return go(s,i?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-d)/(p-d)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),u}var e=Ya.layout.hierarchy().sort(null).value(null),n=so,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},Wi(t,e)},Ya.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,o=t.length;++i<o;)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,s,l=f(n),c=[],d=o.slice(),h=1/0,v="slice"===p?l.dx:"dice"===p?l.dy:"slice-dice"===p?1&n.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(t(d,l.dx*l.dy/n.value),c.area=0;(s=d.length)>0;)c.push(a=d[s-1]),c.area+=a.area,"squarify"!==p||(u=r(c,v))<=h?(d.pop(),h=u):(c.area-=c.pop().area,i(c,v,l,!1),v=Math.min(l.dx,l.dy),c.length=c.area=0,h=1/0);c.length&&(i(c,v,l,!0),c.length=c.area=0),o.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var o,a=f(e),u=r.slice(),s=[];for(t(u,a.dx*a.dy/e.value),s.area=0;o=u.pop();)s.push(o),s.area+=o.area,null!=o.z&&(i(s,o.z?a.dx:a.dy,a,!u.length),s.length=s.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;++a<u;)(n=t[a].area)&&(o>n&&(o=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*h/r,r/(e*o*h)):1/0}function i(t,e,n,r){var i,o=-1,a=t.length,u=n.x,l=n.y,c=e?s(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++o<a;)i=t[o],i.x=u,i.y=l,i.dy=c,u+=i.dx=Math.min(n.x+n.dx-u,c?s(i.area/c):0);i.z=!0,i.dx+=n.x+n.dx-u,n.y+=c,n.dy-=c}else{for((r||c>n.dx)&&(c=n.dx);++o<a;)i=t[o],i.x=u,i.y=l,i.dx=c,l+=i.dy=Math.min(n.y+n.dy-l,c?s(i.area/c):0);i.z=!1,i.dy+=n.y+n.dy-l,n.x+=c,n.dx-=c}}function o(r){var i=a||u(r),o=i[0];return o.x=0,o.y=0,o.dx=l[0],o.dy=l[1],a&&u.revalue(o),t([o],o.dx*o.dy/o.value),(a?n:e)(o),d&&(a=i),i}var a,u=Ya.layout.hierarchy(),s=Math.round,l=[1,1],c=null,f=Do,d=!1,p="squarify",h=.5*(1+Math.sqrt(5));return o.size=function(t){return arguments.length?(l=t,o):l},o.padding=function(t){function e(e){var n=t.call(o,e,e.depth);return null==n?Do(e):Lo(e,"number"==typeof n?[n,n,n,n]:n)}function n(e){return Lo(e,t)}if(!arguments.length)return c;var r;return f=null==(c=t)?Do:"function"==(r=typeof t)?e:"number"===r?(t=[t,t,t,t],n):n,o},o.round=function(t){return arguments.length?(s=t?Math.round:Number,o):s!=Number},o.sticky=function(t){return arguments.length?(d=t,a=null,o):d},o.ratio=function(t){return arguments.length?(h=t,o):h},o.mode=function(t){return arguments.length?(p=t+"",o):p},Wi(o,u)},Ya.random={normal:function(t,e){var n=arguments.length;return 2>n&&(e=1),1>n&&(t=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=Ya.random.normal.apply(Ya,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=Ya.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;t>n;n++)e+=Math.random();return e}}},Ya.scale={};var fl={floor:we,ceil:we};Ya.scale.linear=function(){return Uo([0,1],[0,1],di,!1)};var dl={s:1,g:1,p:1,r:1,e:1};Ya.scale.log=function(){return Jo(Ya.scale.linear().domain([0,1]),10,!0,[1,10])};var pl=Ya.format(".0e"),hl={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};Ya.scale.pow=function(){return Zo(Ya.scale.linear(),1,[0,1])},Ya.scale.sqrt=function(){return Ya.scale.pow().exponent(.5)},Ya.scale.ordinal=function(){return Ko([],{t:"range",a:[[]]})},Ya.scale.category10=function(){return Ya.scale.ordinal().range(vl)},Ya.scale.category20=function(){return Ya.scale.ordinal().range(gl)},Ya.scale.category20b=function(){return Ya.scale.ordinal().range(ml)},Ya.scale.category20c=function(){return Ya.scale.ordinal().range(yl)};var vl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(de),gl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(de),ml=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(de),yl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(de);Ya.scale.quantile=function(){return Qo([],[])},Ya.scale.quantize=function(){return ta(0,1,[0,1])},Ya.scale.threshold=function(){return ea([.5],[0,1])},Ya.scale.identity=function(){return na([0,1])},Ya.svg={},Ya.svg.arc=function(){function t(){var t=e.apply(this,arguments),o=n.apply(this,arguments),a=r.apply(this,arguments)+bl,u=i.apply(this,arguments)+bl,s=(a>u&&(s=a,a=u,u=s),u-a),l=Cu>s?"0":"1",c=Math.cos(a),f=Math.sin(a),d=Math.cos(u),p=Math.sin(u);return s>=xl?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*c+","+o*f+"A"+o+","+o+" 0 "+l+",1 "+o*d+","+o*p+"L"+t*d+","+t*p+"A"+t+","+t+" 0 "+l+",0 "+t*c+","+t*f+"Z":"M"+o*c+","+o*f+"A"+o+","+o+" 0 "+l+",1 "+o*d+","+o*p+"L0,0Z"}var e=ra,n=ia,r=oa,i=aa;return t.innerRadius=function(n){return arguments.length?(e=$e(n),t):e},t.outerRadius=function(e){return arguments.length?(n=$e(e),t):n},t.startAngle=function(e){return arguments.length?(r=$e(e),t):r},t.endAngle=function(e){return arguments.length?(i=$e(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+bl;return[Math.cos(o)*t,Math.sin(o)*t]},t};var bl=-Su,xl=_u-Eu;Ya.svg.line=function(){return ua(we)};var $l=Ya.map({linear:sa,"linear-closed":la,step:ca,"step-before":fa,"step-after":da,basis:ya,"basis-open":ba,"basis-closed":xa,bundle:$a,cardinal:va,"cardinal-open":pa,"cardinal-closed":ha,monotone:Sa});$l.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var wl=[0,2/3,1/3,0],Ml=[0,1/3,2/3,0],kl=[0,1/6,2/3,1/6];Ya.svg.line.radial=function(){var t=ua(Ea);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},fa.reverse=da,da.reverse=fa,Ya.svg.area=function(){return Aa(we)},Ya.svg.area.radial=function(){var t=Aa(Ea);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},Ya.svg.chord=function(){function t(t,u){var s=e(this,o,t,u),l=e(this,a,t,u);return"M"+s.p0+r(s.r,s.p1,s.a1-s.a0)+(n(s,l)?i(s.r,s.p1,s.r,s.p0):i(s.r,s.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+i(l.r,l.p1,s.r,s.p0))+"Z"}function e(t,e,n,r){var i=e.call(t,n,r),o=u.call(t,i,r),a=s.call(t,i,r)+bl,c=l.call(t,i,r)+bl;return{r:o,a0:a,a1:c,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos(c),o*Math.sin(c)]}}function n(t,e){return t.a0==e.a0&&t.a1==e.a1}function r(t,e,n){return"A"+t+","+t+" 0 "+ +(n>Cu)+",1 "+e}function i(t,e,n,r){return"Q 0,0 "+r}var o=pr,a=hr,u=Ta,s=oa,l=aa;return t.radius=function(e){return arguments.length?(u=$e(e),t):u},t.source=function(e){return arguments.length?(o=$e(e),t):o},t.target=function(e){return arguments.length?(a=$e(e),t):a},t.startAngle=function(e){return arguments.length?(s=$e(e),t):s},t.endAngle=function(e){return arguments.length?(l=$e(e),t):l},t},Ya.svg.diagonal=function(){function t(t,i){var o=e.call(this,t,i),a=n.call(this,t,i),u=(o.y+a.y)/2,s=[o,{x:o.x,y:u},{x:a.x,y:u},a];return s=s.map(r),"M"+s[0]+"C"+s[1]+" "+s[2]+" "+s[3]}var e=pr,n=hr,r=Na;return t.source=function(n){return arguments.length?(e=$e(n),t):e
  },t.target=function(e){return arguments.length?(n=$e(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},Ya.svg.diagonal.radial=function(){var t=Ya.svg.diagonal(),e=Na,n=t.projection;return t.projection=function(t){return arguments.length?n(ja(e=t)):e},t},Ya.svg.symbol=function(){function t(t,r){return(Cl.get(e.call(this,t,r))||Ra)(n.call(this,t,r))}var e=La,n=Da;return t.type=function(n){return arguments.length?(e=$e(n),t):e},t.size=function(e){return arguments.length?(n=$e(e),t):n},t};var Cl=Ya.map({circle:Ra,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*Al)),n=e*Al;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/El),n=e*El/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/El),n=e*El/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});Ya.svg.symbolTypes=Cl.keys();var _l,Sl,El=Math.sqrt(3),Al=Math.tan(30*Tu),Tl=[],Nl=0;Tl.call=mu.call,Tl.empty=mu.empty,Tl.node=mu.node,Tl.size=mu.size,Ya.transition=function(t){return arguments.length?_l?t.transition():t:xu.transition()},Ya.transition.prototype=Tl,Tl.select=function(t){var e,n,r,i=this.id,o=[];t=x(t);for(var a=-1,u=this.length;++a<u;){o.push(e=[]);for(var s=this[a],l=-1,c=s.length;++l<c;)(r=s[l])&&(n=t.call(r,r.__data__,l,a))?("__data__"in r&&(n.__data__=r.__data__),Ha(n,l,i,r.__transition__[i]),e.push(n)):e.push(null)}return Oa(o,i)},Tl.selectAll=function(t){var e,n,r,i,o,a=this.id,u=[];t=$(t);for(var s=-1,l=this.length;++s<l;)for(var c=this[s],f=-1,d=c.length;++f<d;)if(r=c[f]){o=r.__transition__[a],n=t.call(r,r.__data__,f,s),u.push(e=[]);for(var p=-1,h=n.length;++p<h;)(i=n[p])&&Ha(i,p,a,o),e.push(i)}return Oa(u,a)},Tl.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=j(t));for(var o=0,a=this.length;a>o;o++){i.push(e=[]);for(var n=this[o],u=0,s=n.length;s>u;u++)(r=n[u])&&t.call(r,r.__data__,u,o)&&e.push(r)}return Oa(i,this.id)},Tl.tween=function(t,e){var n=this.id;return arguments.length<2?this.node().__transition__[n].tween.get(t):L(this,null==e?function(e){e.__transition__[n].tween.remove(t)}:function(r){r.__transition__[n].tween.set(t,e)})},Tl.attr=function(t,e){function n(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}function i(t){return null==t?n:(t+="",function(){var e,n=this.getAttribute(u);return n!==t&&(e=a(n,t),function(t){this.setAttribute(u,e(t))})})}function o(t){return null==t?r:(t+="",function(){var e,n=this.getAttributeNS(u.space,u.local);return n!==t&&(e=a(n,t),function(t){this.setAttributeNS(u.space,u.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var a="transform"==t?Ri:di,u=Ya.ns.qualify(t);return qa(this,"attr."+t,e,u.local?o:i)},Tl.attrTween=function(t,e){function n(t,n){var r=e.call(this,t,n,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,n){var r=e.call(this,t,n,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=Ya.ns.qualify(t);return this.tween("attr."+t,i.local?r:n)},Tl.style=function(t,e,n){function r(){this.style.removeProperty(t)}function i(e){return null==e?r:(e+="",function(){var r,i=Ka.getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(r=di(i,e),function(e){this.style.setProperty(t,r(e),n)})})}var o=arguments.length;if(3>o){if("string"!=typeof t){2>o&&(e="");for(n in t)this.style(n,t[n],e);return this}n=""}return qa(this,"style."+t,e,i)},Tl.styleTween=function(t,e,n){function r(r,i){var o=e.call(this,r,i,Ka.getComputedStyle(this,null).getPropertyValue(t));return o&&function(e){this.style.setProperty(t,o(e),n)}}return arguments.length<3&&(n=""),this.tween("style."+t,r)},Tl.text=function(t){return qa(this,"text",t,Pa)},Tl.remove=function(){return this.each("end.transition",function(){var t;this.__transition__.count<2&&(t=this.parentNode)&&t.removeChild(this)})},Tl.ease=function(t){var e=this.id;return arguments.length<1?this.node().__transition__[e].ease:("function"!=typeof t&&(t=Ya.ease.apply(Ya,arguments)),L(this,function(n){n.__transition__[e].ease=t}))},Tl.delay=function(t){var e=this.id;return L(this,"function"==typeof t?function(n,r,i){n.__transition__[e].delay=+t.call(n,n.__data__,r,i)}:(t=+t,function(n){n.__transition__[e].delay=t}))},Tl.duration=function(t){var e=this.id;return L(this,"function"==typeof t?function(n,r,i){n.__transition__[e].duration=Math.max(1,t.call(n,n.__data__,r,i))}:(t=Math.max(1,t),function(n){n.__transition__[e].duration=t}))},Tl.each=function(t,e){var n=this.id;if(arguments.length<2){var r=Sl,i=_l;_l=n,L(this,function(e,r,i){Sl=e.__transition__[n],t.call(e,e.__data__,r,i)}),Sl=r,_l=i}else L(this,function(r){var i=r.__transition__[n];(i.event||(i.event=Ya.dispatch("start","end"))).on(t,e)});return this},Tl.transition=function(){for(var t,e,n,r,i=this.id,o=++Nl,a=[],u=0,s=this.length;s>u;u++){a.push(t=[]);for(var e=this[u],l=0,c=e.length;c>l;l++)(n=e[l])&&(r=Object.create(n.__transition__[i]),r.delay+=r.duration,Ha(n,l,o,r)),t.push(n)}return Oa(a,o)},Ya.svg.axis=function(){function t(t){t.each(function(){var t,l=Ya.select(this),c=this.__chart__||n,f=this.__chart__=n.copy(),d=null==s?f.ticks?f.ticks.apply(f,u):f.domain():s,p=null==e?f.tickFormat?f.tickFormat.apply(f,u):we:e,h=l.selectAll(".tick").data(d,f),v=h.enter().insert("g",".domain").attr("class","tick").style("opacity",Eu),g=Ya.transition(h.exit()).style("opacity",Eu).remove(),m=Ya.transition(h).style("opacity",1),y=Oo(f),b=l.selectAll(".domain").data([0]),x=(b.enter().append("path").attr("class","domain"),Ya.transition(b));v.append("line"),v.append("text");var $=v.select("line"),w=m.select("line"),M=h.select("text").text(p),k=v.select("text"),C=m.select("text");switch(r){case"bottom":t=Fa,$.attr("y2",i),k.attr("y",Math.max(i,0)+a),w.attr("x2",0).attr("y2",i),C.attr("x",0).attr("y",Math.max(i,0)+a),M.attr("dy",".71em").style("text-anchor","middle"),x.attr("d","M"+y[0]+","+o+"V0H"+y[1]+"V"+o);break;case"top":t=Fa,$.attr("y2",-i),k.attr("y",-(Math.max(i,0)+a)),w.attr("x2",0).attr("y2",-i),C.attr("x",0).attr("y",-(Math.max(i,0)+a)),M.attr("dy","0em").style("text-anchor","middle"),x.attr("d","M"+y[0]+","+-o+"V0H"+y[1]+"V"+-o);break;case"left":t=Ua,$.attr("x2",-i),k.attr("x",-(Math.max(i,0)+a)),w.attr("x2",-i).attr("y2",0),C.attr("x",-(Math.max(i,0)+a)).attr("y",0),M.attr("dy",".32em").style("text-anchor","end"),x.attr("d","M"+-o+","+y[0]+"H0V"+y[1]+"H"+-o);break;case"right":t=Ua,$.attr("x2",i),k.attr("x",Math.max(i,0)+a),w.attr("x2",i).attr("y2",0),C.attr("x",Math.max(i,0)+a).attr("y",0),M.attr("dy",".32em").style("text-anchor","start"),x.attr("d","M"+o+","+y[0]+"H0V"+y[1]+"H"+o)}if(f.rangeBand){var _=f,S=_.rangeBand()/2;c=f=function(t){return _(t)+S}}else c.rangeBand?c=f:g.call(t,f);v.call(t,c),m.call(t,f)})}var e,n=Ya.scale.linear(),r=jl,i=6,o=6,a=3,u=[10],s=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(r=e in Dl?e+"":jl,t):r},t.ticks=function(){return arguments.length?(u=arguments,t):u},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){var n=arguments.length;return n?(i=+e,o=+arguments[n-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(o=+e,t):o},t.tickPadding=function(e){return arguments.length?(a=+e,t):a},t.tickSubdivide=function(){return arguments.length&&t},t};var jl="bottom",Dl={top:1,right:1,bottom:1,left:1};Ya.svg.brush=function(){function t(o){o.each(function(){var o=Ya.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=o.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),o.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var u=o.selectAll(".resize").data(h,we);u.exit().remove(),u.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Ll[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"),u.style("display",t.empty()?"none":null);var c,f=Ya.transition(o),d=Ya.transition(a);s&&(c=Oo(s),d.attr("x",c[0]).attr("width",c[1]-c[0]),n(f)),l&&(c=Oo(l),d.attr("y",c[0]).attr("height",c[1]-c[0]),r(f)),e(f)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+c[+/e$/.test(t)]+","+f[+/^s/.test(t)]+")"})}function n(t){t.select(".extent").attr("x",c[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",c[1]-c[0])}function r(t){t.select(".extent").attr("y",f[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1]-f[0])}function i(){function i(){32==Ya.event.keyCode&&(E||(b=null,T[0]-=c[1],T[1]-=f[1],E=2),g())}function h(){32==Ya.event.keyCode&&2==E&&(T[0]+=c[1],T[1]+=f[1],E=0,g())}function v(){var t=Ya.mouse($),i=!1;x&&(t[0]+=x[0],t[1]+=x[1]),E||(Ya.event.altKey?(b||(b=[(c[0]+c[1])/2,(f[0]+f[1])/2]),T[0]=c[+(t[0]<b[0])],T[1]=f[+(t[1]<b[1])]):b=null),_&&m(t,s,0)&&(n(k),i=!0),S&&m(t,l,1)&&(r(k),i=!0),i&&(e(k),M({type:"brush",mode:E?"move":"resize"}))}function m(t,e,n){var r,i,u=Oo(e),s=u[0],l=u[1],h=T[n],v=n?f:c,g=v[1]-v[0];return E&&(s-=h,l-=g+h),r=(n?p:d)?Math.max(s,Math.min(l,t[n])):t[n],E?i=(r+=h)+g:(b&&(h=Math.max(s,Math.min(l,2*b[n]-r))),r>h?(i=r,r=h):i=h),v[0]!=r||v[1]!=i?(n?a=null:o=null,v[0]=r,v[1]=i,!0):void 0}function y(){v(),k.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),Ya.select("body").style("cursor",null),N.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),M({type:"brushend"})}var b,x,$=this,w=Ya.select(Ya.event.target),M=u.of($,arguments),k=Ya.select($),C=w.datum(),_=!/^(n|s)$/.test(C)&&s,S=!/^(e|w)$/.test(C)&&l,E=w.classed("extent"),A=U(),T=Ya.mouse($),N=Ya.select(Ka).on("keydown.brush",i).on("keyup.brush",h);if(Ya.event.changedTouches?N.on("touchmove.brush",v).on("touchend.brush",y):N.on("mousemove.brush",v).on("mouseup.brush",y),k.interrupt().selectAll("*").interrupt(),E)T[0]=c[0]-T[0],T[1]=f[0]-T[1];else if(C){var j=+/w$/.test(C),D=+/^n/.test(C);x=[c[1-j]-T[0],f[1-D]-T[1]],T[0]=c[j],T[1]=f[D]}else Ya.event.altKey&&(b=T.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),Ya.select("body").style("cursor",w.style("cursor")),M({type:"brushstart"}),v()}var o,a,u=y(t,"brushstart","brush","brushend"),s=null,l=null,c=[0,0],f=[0,0],d=!0,p=!0,h=Rl[0];return t.event=function(t){t.each(function(){var t=u.of(this,arguments),e={x:c,y:f,i:o,j:a},n=this.__chart__||e;this.__chart__=e,_l?Ya.select(this).transition().each("start.brush",function(){o=n.i,a=n.j,c=n.x,f=n.y,t({type:"brushstart"})}).tween("brush:brush",function(){var n=pi(c,e.x),r=pi(f,e.y);return o=a=null,function(i){c=e.x=n(i),f=e.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=e.i,a=e.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(e){return arguments.length?(s=e,h=Rl[!s<<1|!l],t):s},t.y=function(e){return arguments.length?(l=e,h=Rl[!s<<1|!l],t):l},t.clamp=function(e){return arguments.length?(s&&l?(d=!!e[0],p=!!e[1]):s?d=!!e:l&&(p=!!e),t):s&&l?[d,p]:s?d:l?p:null},t.extent=function(e){var n,r,i,u,d;return arguments.length?(s&&(n=e[0],r=e[1],l&&(n=n[0],r=r[0]),o=[n,r],s.invert&&(n=s(n),r=s(r)),n>r&&(d=n,n=r,r=d),(n!=c[0]||r!=c[1])&&(c=[n,r])),l&&(i=e[0],u=e[1],s&&(i=i[1],u=u[1]),a=[i,u],l.invert&&(i=l(i),u=l(u)),i>u&&(d=i,i=u,u=d),(i!=f[0]||u!=f[1])&&(f=[i,u])),t):(s&&(o?(n=o[0],r=o[1]):(n=c[0],r=c[1],s.invert&&(n=s.invert(n),r=s.invert(r)),n>r&&(d=n,n=r,r=d))),l&&(a?(i=a[0],u=a[1]):(i=f[0],u=f[1],l.invert&&(i=l.invert(i),u=l.invert(u)),i>u&&(d=i,i=u,u=d))),s&&l?[[n,i],[r,u]]:s?[n,r]:l&&[i,u])},t.clear=function(){return t.empty()||(c=[0,0],f=[0,0],o=a=null),t},t.empty=function(){return!!s&&c[0]==c[1]||!!l&&f[0]==f[1]},Ya.rebind(t,u,"on")};var Ll={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Rl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ol=ns.format=ss.timeFormat,ql=Ol.utc,Pl=ql("%Y-%m-%dT%H:%M:%S.%LZ");Ol.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Ia:Pl,Ia.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Ia.toString=Pl.toString,ns.second=Le(function(t){return new rs(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),ns.seconds=ns.second.range,ns.seconds.utc=ns.second.utc.range,ns.minute=Le(function(t){return new rs(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),ns.minutes=ns.minute.range,ns.minutes.utc=ns.minute.utc.range,ns.hour=Le(function(t){var e=t.getTimezoneOffset()/60;return new rs(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),ns.hours=ns.hour.range,ns.hours.utc=ns.hour.utc.range,ns.month=Le(function(t){return t=ns.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),ns.months=ns.month.range,ns.months.utc=ns.month.utc.range;var Hl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Fl=[[ns.second,1],[ns.second,5],[ns.second,15],[ns.second,30],[ns.minute,1],[ns.minute,5],[ns.minute,15],[ns.minute,30],[ns.hour,1],[ns.hour,3],[ns.hour,6],[ns.hour,12],[ns.day,1],[ns.day,2],[ns.week,1],[ns.month,1],[ns.month,3],[ns.year,1]],Ul=Ol.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Mn]]),Il={range:function(t,e,n){return Ya.range(+t,+e,n).map(Ba)},floor:we,ceil:we};Fl.year=ns.year,ns.scale=function(){return za(Ya.scale.linear(),Fl,Ul)};var zl=Fl.map(function(t){return[t[0].utc,t[1]]}),Bl=ql.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Mn]]);zl.year=ns.year.utc,ns.scale.utc=function(){return za(Ya.scale.linear(),zl,Bl)},Ya.text=Me(function(t){return t.responseText}),Ya.json=function(t,e){return ke(t,"application/json",Va,e)},Ya.html=function(t,e){return ke(t,"text/html",Wa,e)},Ya.xml=Me(function(t){return t.responseXML}),"function"==typeof define&&define.amd?define(Ya):"object"==typeof module&&module.exports?module.exports=Ya:this.d3=Ya}(),function(){function t(t){function r(){for(;u=c<l.length&&t>f;){var e=c++,r=l[e],o=n.call(r,1);o.push(i(e)),++f,r[0].apply(null,o)}}function i(t){return function(e,n){--f,null==p&&(null!=e?(p=e,c=d=0/0,o()):(l[t]=n,--d?u||r():o()))}}function o(){null!=p?h(p):s?h(p,l):h.apply(null,[p].concat(l))}var a,u,s,l=[],c=0,f=0,d=0,p=null,h=e;return t||(t=1/0),a={defer:function(){return p||(l.push(arguments),++d,r()),a},await:function(t){return h=t,s=!1,d||o(),a},awaitAll:function(t){return h=t,s=!0,d||o(),a}}}function e(){}var n=[].slice;t.version="1.0.7","function"==typeof define&&define.amd?define(function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.queue=t}(),function(){function t(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 e(e,n){var r=typeof n;if(e=e.cache,"boolean"==r||null==n)return e[n]?0:-1;"number"!=r&&"string"!=r&&(r="object");var i="number"==r?n:m+n;return e=(e=e[r])&&e[i],"object"==r?e&&t(e,n)>-1?0:-1:e?0:-1}function n(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:m+t,i=e[n]||(e[n]={});"object"==n?(i[r]||(i[r]=[])).push(t):i[r]=!0}}function r(t){return t.charCodeAt(0)}function i(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||"undefined"==typeof a)return 1;if(u>a||"undefined"==typeof u)return-1}}return t.index-e.index}function o(t){var e=-1,r=t.length,i=t[0],o=t[r/2|0],a=t[r-1];if(i&&"object"==typeof i&&o&&"object"==typeof o&&a&&"object"==typeof a)return!1;var u=s();u["false"]=u["null"]=u["true"]=u.undefined=!1;var l=s();for(l.array=t,l.cache=u,l.push=n;++e<r;)l.push(t[e]);return l}function a(t){return"\\"+Y[t]}function u(){return h.pop()||[]}function s(){return v.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 l(t){t.length=0,h.length<b&&h.push(t)}function c(t){var e=t.cache;e&&c(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,v.length<b&&v.push(t)}function f(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var r=-1,i=n-e||0,o=Array(0>i?0:i);++r<i;)o[r]=t[e+r];return o}function d(n){function h(t){return t&&"object"==typeof t&&!Kr(t)&&Lr.call(t,"__wrapped__")?t:new v(t)}function v(t,e){this.__chain__=!!e,this.__wrapped__=t}function b(t){function e(){if(r){var t=f(r);Rr.apply(t,arguments)}if(this instanceof e){var o=J(n.prototype),a=n.apply(o,t||arguments);return Te(a)?a:o}return n.apply(i,t||arguments)}var n=t[0],r=t[2],i=t[4];return Gr(e,t),e}function Y(t,e,n,r,i){if(n){var o=n(t);if("undefined"!=typeof o)return o}var a=Te(t);if(!a)return t;var s=Sr.call(t);if(!z[s])return t;var c=Jr[s];switch(s){case O:case q:return new c(+t);case H:case I:return new c(t);case U:return o=c(t.source,C.exec(t)),o.lastIndex=t.lastIndex,o}var d=Kr(t);if(e){var p=!r;r||(r=u()),i||(i=u());for(var h=r.length;h--;)if(r[h]==t)return i[h];o=d?c(t.length):{}}else o=d?f(t):oi({},t);return d&&(Lr.call(t,"index")&&(o.index=t.index),Lr.call(t,"input")&&(o.input=t.input)),e?(r.push(t),i.push(o),(d?Ze:si)(t,function(t,a){o[a]=Y(t,e,n,r,i)}),p&&(l(r),l(i)),o):o}function J(t){return Te(t)?Fr(t):{}}function Z(t,e,n){if("function"!=typeof t)return Kn;if("undefined"==typeof e||!("prototype"in t))return t;var r=t.__bindData__;if("undefined"==typeof r&&(Zr.funcNames&&(r=!t.name),r=r||!Zr.funcDecomp,!r)){var i=jr.call(t);Zr.funcNames||(r=!_.test(i)),r||(r=T.test(i),Gr(t,r))}if(r===!1||r!==!0&&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 Rn(t,e)}function G(t){function e(){var t=s?a:this;if(i){var h=f(i);Rr.apply(h,arguments)}if((o||c)&&(h||(h=f(arguments)),o&&Rr.apply(h,o),c&&h.length<u))return r|=16,G([n,d?r:-4&r,h,null,a,u]);if(h||(h=arguments),l&&(n=t[p]),this instanceof e){t=J(n.prototype);var v=n.apply(t,h);return Te(v)?v:t}return n.apply(t,h)}var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],u=t[5],s=1&r,l=2&r,c=4&r,d=8&r,p=n;return Gr(e,t),e}function K(n,r){var i=-1,a=se(),u=n?n.length:0,s=u>=y&&a===t,l=[];if(s){var f=o(r);f?(a=e,r=f):s=!1}for(;++i<u;){var d=n[i];a(r,d)<0&&l.push(d)}return s&&c(r),l}function te(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&&(Kr(u)||de(u))){e||(u=te(u,e,n));var s=-1,l=u.length,c=a.length;for(a.length+=l;++s<l;)a[c++]=u[s]}else n||a.push(u)}return a}function ee(t,e,n,r,i,o){if(n){var a=n(t,e);if("undefined"!=typeof a)return!!a}if(t===e)return 0!==t||1/t==1/e;var s=typeof t,c=typeof e;if(!(t!==t||t&&W[s]||e&&W[c]))return!1;if(null==t||null==e)return t===e;var f=Sr.call(t),d=Sr.call(e);if(f==L&&(f=F),d==L&&(d=F),f!=d)return!1;switch(f){case O:case q:return+t==+e;case H:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case U:case I:return t==wr(e)}var p=f==R;if(!p){var h=Lr.call(t,"__wrapped__"),v=Lr.call(e,"__wrapped__");if(h||v)return ee(h?t.__wrapped__:t,v?e.__wrapped__:e,n,r,i,o);if(f!=F)return!1;var g=t.constructor,m=e.constructor;if(g!=m&&!(Ae(g)&&g instanceof g&&Ae(m)&&m instanceof m)&&"constructor"in t&&"constructor"in e)return!1}var y=!i;i||(i=u()),o||(o=u());for(var b=i.length;b--;)if(i[b]==t)return o[b]==e;var x=0;if(a=!0,i.push(t),o.push(e),p){if(b=t.length,x=e.length,a=x==b,a||r)for(;x--;){var $=b,w=e[x];if(r)for(;$--&&!(a=ee(t[$],w,n,r,i,o)););else if(!(a=ee(t[x],w,n,r,i,o)))break}}else ui(e,function(e,u,s){return Lr.call(s,u)?(x++,a=Lr.call(t,u)&&ee(t[u],e,n,r,i,o)):void 0}),a&&!r&&ui(t,function(t,e,n){return Lr.call(n,e)?a=--x>-1:void 0});return i.pop(),o.pop(),y&&(l(i),l(o)),a}function ne(t,e,n,r,i){(Kr(e)?Ze:si)(e,function(e,o){var a,u,s=e,l=t[o];if(e&&((u=Kr(e))||li(e))){for(var c=r.length;c--;)if(a=r[c]==e){l=i[c];break}if(!a){var f;n&&(s=n(l,e),(f="undefined"!=typeof s)&&(l=s)),f||(l=u?Kr(l)?l:[]:li(l)?l:{}),r.push(e),i.push(l),f||ne(l,e,n,r,i)}}else n&&(s=n(l,e),"undefined"==typeof s&&(s=e)),"undefined"!=typeof s&&(l=s);t[o]=l})}function re(t,e){return t+Nr(Xr()*(e-t+1))}function ie(n,r,i){var a=-1,s=se(),f=n?n.length:0,d=[],p=!r&&f>=y&&s===t,h=i||p?u():d;if(p){var v=o(h);s=e,h=v}for(;++a<f;){var g=n[a],m=i?i(g,a,n):g;(r?!a||h[h.length-1]!==m:s(h,m)<0)&&((i||p)&&h.push(m),d.push(g))}return p?(l(h.array),c(h)):i&&l(h),d}function oe(t){return function(e,n,r){var i={};n=h.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 si(e,function(e,r,o){t(i,e,n(e,r,o),o)});return i}}function ae(t,e,n,r,i,o){var a=1&e,u=2&e,s=4&e,l=16&e,c=32&e;if(!u&&!Ae(t))throw new Mr;l&&!n.length&&(e&=-17,l=n=!1),c&&!r.length&&(e&=-33,c=r=!1);var d=t&&t.__bindData__;if(d&&d!==!0)return d=f(d),d[2]&&(d[2]=f(d[2])),d[3]&&(d[3]=f(d[3])),!a||1&d[1]||(d[4]=i),!a&&1&d[1]&&(e|=8),!s||4&d[1]||(d[5]=o),l&&Rr.apply(d[2]||(d[2]=[]),n),c&&Pr.apply(d[3]||(d[3]=[]),r),d[1]|=e,ae.apply(null,d);var p=1==e||17===e?b:G;return p([t,e,n,r,i,o])}function ue(t){return ei[t]}function se(){var e=(e=h.indexOf)===yn?t:e;return e}function le(t){return"function"==typeof t&&Er.test(t)}function ce(t){var e,n;return t&&Sr.call(t)==F&&(e=t.constructor,!Ae(e)||e instanceof e)?(ui(t,function(t,e){n=e}),"undefined"==typeof n||Lr.call(t,n)):!1}function fe(t){return ni[t]}function de(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Sr.call(t)==L||!1}function pe(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n=e,e=!1),Y(t,e,"function"==typeof n&&Z(n,r,1))}function he(t,e,n){return Y(t,!0,"function"==typeof e&&Z(e,n,1))}function ve(t,e){var n=J(t);return e?oi(n,e):n}function ge(t,e,n){var r;return e=h.createCallback(e,n,3),si(t,function(t,n,i){return e(t,n,i)?(r=n,!1):void 0}),r}function me(t,e,n){var r;return e=h.createCallback(e,n,3),be(t,function(t,n,i){return e(t,n,i)?(r=n,!1):void 0}),r}function ye(t,e,n){var r=[];ui(t,function(t,e){r.push(e,t)});var i=r.length;for(e=Z(e,n,3);i--&&e(r[i--],r[i],t)!==!1;);return t}function be(t,e,n){var r=ti(t),i=r.length;for(e=Z(e,n,3);i--;){var o=r[i];if(e(t[o],o,t)===!1)break}return t}function xe(t){var e=[];return ui(t,function(t,n){Ae(t)&&e.push(n)}),e.sort()}function $e(t,e){return t?Lr.call(t,e):!1}function we(t){for(var e=-1,n=ti(t),r=n.length,i={};++e<r;){var o=n[e];i[t[o]]=o}return i}function Me(t){return t===!0||t===!1||t&&"object"==typeof t&&Sr.call(t)==O||!1}function ke(t){return t&&"object"==typeof t&&Sr.call(t)==q||!1}function Ce(t){return t&&1===t.nodeType||!1}function _e(t){var e=!0;if(!t)return e;var n=Sr.call(t),r=t.length;return n==R||n==I||n==L||n==F&&"number"==typeof r&&Ae(t.splice)?!r:(si(t,function(){return e=!1}),e)}function Se(t,e,n,r){return ee(t,e,"function"==typeof n&&Z(n,r,2))}function Ee(t){return Ir(t)&&!zr(parseFloat(t))}function Ae(t){return"function"==typeof t}function Te(t){return!(!t||!W[typeof t])}function Ne(t){return De(t)&&t!=+t}function je(t){return null===t}function De(t){return"number"==typeof t||t&&"object"==typeof t&&Sr.call(t)==H||!1}function Le(t){return t&&"object"==typeof t&&Sr.call(t)==U||!1}function Re(t){return"string"==typeof t||t&&"object"==typeof t&&Sr.call(t)==I||!1}function Oe(t){return"undefined"==typeof t}function qe(t,e,n){var r={};return e=h.createCallback(e,n,3),si(t,function(t,n,i){r[n]=e(t,n,i)}),r}function Pe(t){var e=arguments,n=2;if(!Te(t))return t;if("number"!=typeof e[2]&&(n=e.length),n>3&&"function"==typeof e[n-2])var r=Z(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(r=e[--n]);for(var i=f(arguments,1,n),o=-1,a=u(),s=u();++o<n;)ne(t,i[o],r,a,s);return l(a),l(s),t}function He(t,e,n){var r={};if("function"!=typeof e){var i=[];ui(t,function(t,e){i.push(e)}),i=K(i,te(arguments,!0,!1,1));for(var o=-1,a=i.length;++o<a;){var u=i[o];r[u]=t[u]}}else e=h.createCallback(e,n,3),ui(t,function(t,n,i){e(t,n,i)||(r[n]=t)});return r}function Fe(t){for(var e=-1,n=ti(t),r=n.length,i=hr(r);++e<r;){var o=n[e];i[e]=[o,t[o]]}return i}function Ue(t,e,n){var r={};if("function"!=typeof e)for(var i=-1,o=te(arguments,!0,!1,1),a=Te(t)?o.length:0;++i<a;){var u=o[i];u in t&&(r[u]=t[u])}else e=h.createCallback(e,n,3),ui(t,function(t,n,i){e(t,n,i)&&(r[n]=t)});return r}function Ie(t,e,n,r){var i=Kr(t);if(null==n)if(i)n=[];else{var o=t&&t.constructor,a=o&&o.prototype;n=J(a)}return e&&(e=h.createCallback(e,r,4),(i?Ze:si)(t,function(t,r,i){return e(n,t,r,i)})),n}function ze(t){for(var e=-1,n=ti(t),r=n.length,i=hr(r);++e<r;)i[e]=t[n[e]];return i}function Be(t){for(var e=arguments,n=-1,r=te(e,!0,!1,1),i=e[2]&&e[2][e[1]]===t?1:r.length,o=hr(i);++n<i;)o[n]=t[r[n]];return o}function Ve(t,e,n){var r=-1,i=se(),o=t?t.length:0,a=!1;return n=(0>n?Vr(0,o+n):n)||0,Kr(t)?a=i(t,e,n)>-1:"number"==typeof o?a=(Re(t)?t.indexOf(e,n):i(t,e,n))>-1:si(t,function(t){return++r>=n?!(a=t===e):void 0}),a}function We(t,e,n){var r=!0;e=h.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 si(t,function(t,n,i){return r=!!e(t,n,i)});return r}function Ye(t,e,n){var r=[];e=h.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 si(t,function(t,n,i){e(t,n,i)&&r.push(t)});return r}function Xe(t,e,n){e=h.createCallback(e,n,3);var r=-1,i=t?t.length:0;if("number"!=typeof i){var o;return si(t,function(t,n,r){return e(t,n,r)?(o=t,!1):void 0}),o}for(;++r<i;){var a=t[r];if(e(a,r,t))return a}}function Je(t,e,n){var r;return e=h.createCallback(e,n,3),Ge(t,function(t,n,i){return e(t,n,i)?(r=t,!1):void 0}),r}function Ze(t,e,n){var r=-1,i=t?t.length:0;if(e=e&&"undefined"==typeof n?e:Z(e,n,3),"number"==typeof i)for(;++r<i&&e(t[r],r,t)!==!1;);else si(t,e);return t}function Ge(t,e,n){var r=t?t.length:0;if(e=e&&"undefined"==typeof n?e:Z(e,n,3),"number"==typeof r)for(;r--&&e(t[r],r,t)!==!1;);else{var i=ti(t);r=i.length,si(t,function(t,n,o){return n=i?i[--r]:--r,e(o[n],n,o)})}return t}function Ke(t,e){var n=f(arguments,2),r=-1,i="function"==typeof e,o=t?t.length:0,a=hr("number"==typeof o?o:0);return Ze(t,function(t){a[++r]=(i?e:t[e]).apply(t,n)}),a}function Qe(t,e,n){var r=-1,i=t?t.length:0;if(e=h.createCallback(e,n,3),"number"==typeof i)for(var o=hr(i);++r<i;)o[r]=e(t[r],r,t);else o=[],si(t,function(t,n,i){o[++r]=e(t,n,i)});return o}function tn(t,e,n){var i=-1/0,o=i;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&Kr(t))for(var a=-1,u=t.length;++a<u;){var s=t[a];s>o&&(o=s)}else e=null==e&&Re(t)?r:h.createCallback(e,n,3),Ze(t,function(t,n,r){var a=e(t,n,r);a>i&&(i=a,o=t)});return o}function en(t,e,n){var i=1/0,o=i;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&Kr(t))for(var a=-1,u=t.length;++a<u;){var s=t[a];o>s&&(o=s)}else e=null==e&&Re(t)?r:h.createCallback(e,n,3),Ze(t,function(t,n,r){var a=e(t,n,r);i>a&&(i=a,o=t)});return o}function nn(t,e,n,r){if(!t)return n;var i=arguments.length<3;e=h.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 si(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)});return n}function rn(t,e,n,r){var i=arguments.length<3;return e=h.createCallback(e,r,4),Ge(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}function on(t,e,n){return e=h.createCallback(e,n,3),Ye(t,function(t,n,r){return!e(t,n,r)})}function an(t,e,n){if(t&&"number"!=typeof t.length&&(t=ze(t)),null==e||n)return t?t[re(0,t.length-1)]:p;var r=un(t);return r.length=Wr(Vr(0,e),r.length),r}function un(t){var e=-1,n=t?t.length:0,r=hr("number"==typeof n?n:0);return Ze(t,function(t){var n=re(0,++e);r[e]=r[n],r[n]=t}),r}function sn(t){var e=t?t.length:0;return"number"==typeof e?e:ti(t).length}function ln(t,e,n){var r;e=h.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 si(t,function(t,n,i){return!(r=e(t,n,i))});return!!r}function cn(t,e,n){var r=-1,o=Kr(e),a=t?t.length:0,f=hr("number"==typeof a?a:0);for(o||(e=h.createCallback(e,n,3)),Ze(t,function(t,n,i){var a=f[++r]=s();o?a.criteria=Qe(e,function(e){return t[e]}):(a.criteria=u())[0]=e(t,n,i),a.index=r,a.value=t}),a=f.length,f.sort(i);a--;){var d=f[a];f[a]=d.value,o||l(d.criteria),c(d)}return f}function fn(t){return t&&"number"==typeof t.length?f(t):ze(t)}function dn(t){for(var e=-1,n=t?t.length:0,r=[];++e<n;){var i=t[e];i&&r.push(i)}return r}function pn(t){return K(t,te(arguments,!0,!0,1))}function hn(t,e,n){var r=-1,i=t?t.length:0;for(e=h.createCallback(e,n,3);++r<i;)if(e(t[r],r,t))return r;return-1}function vn(t,e,n){var r=t?t.length:0;for(e=h.createCallback(e,n,3);r--;)if(e(t[r],r,t))return r;return-1}function gn(t,e,n){var r=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var o=-1;for(e=h.createCallback(e,n,3);++o<i&&e(t[o],o,t);)r++}else if(r=e,null==r||n)return t?t[0]:p;return f(t,0,Wr(Vr(0,r),i))}function mn(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=Qe(t,n,r)),te(t,e)}function yn(e,n,r){if("number"==typeof r){var i=e?e.length:0;r=0>r?Vr(0,i+r):r||0}else if(r){var o=Sn(e,n);return e[o]===n?o:-1}return t(e,n,r)}function bn(t,e,n){var r=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var o=i;for(e=h.createCallback(e,n,3);o--&&e(t[o],o,t);)r++}else r=null==e||n?1:e||r;return f(t,0,Wr(Vr(0,i-r),i))}function xn(){for(var n=[],r=-1,i=arguments.length,a=u(),s=se(),f=s===t,d=u();++r<i;){var p=arguments[r];(Kr(p)||de(p))&&(n.push(p),a.push(f&&p.length>=y&&o(r?n[r]:d)))}var h=n[0],v=-1,g=h?h.length:0,m=[];t:for(;++v<g;){var b=a[0];if(p=h[v],(b?e(b,p):s(d,p))<0){for(r=i,(b||d).push(p);--r;)if(b=a[r],(b?e(b,p):s(n[r],p))<0)continue t;m.push(p)}}for(;i--;)b=a[i],b&&c(b);return l(a),l(d),m}function $n(t,e,n){var r=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var o=i;for(e=h.createCallback(e,n,3);o--&&e(t[o],o,t);)r++}else if(r=e,null==r||n)return t?t[i-1]:p;return f(t,Vr(0,i-r))}function wn(t,e,n){var r=t?t.length:0;for("number"==typeof n&&(r=(0>n?Vr(0,r+n):Wr(n,r-1))+1);r--;)if(t[r]===e)return r;return-1}function Mn(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&&(qr.call(t,o--,1),i--);return t}function kn(t,e,n){t=+t||0,n="number"==typeof n?n:+n||1,null==e&&(e=t,t=0);for(var r=-1,i=Vr(0,Ar((e-t)/(n||1))),o=hr(i);++r<i;)o[r]=t,t+=n;return o}function Cn(t,e,n){var r=-1,i=t?t.length:0,o=[];for(e=h.createCallback(e,n,3);++r<i;){var a=t[r];e(a,r,t)&&(o.push(a),qr.call(t,r--,1),i--)}return o}function _n(t,e,n){if("number"!=typeof e&&null!=e){var r=0,i=-1,o=t?t.length:0;for(e=h.createCallback(e,n,3);++i<o&&e(t[i],i,t);)r++}else r=null==e||n?1:Vr(0,e);return f(t,r)}function Sn(t,e,n,r){var i=0,o=t?t.length:i;for(n=n?h.createCallback(n,r,1):Kn,e=n(e);o>i;){var a=i+o>>>1;n(t[a])<e?i=a+1:o=a}return i}function En(){return ie(te(arguments,!0,!0))}function An(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=h.createCallback(n,r,3)),ie(t,e,n)}function Tn(t){return K(t,f(arguments,1))}function Nn(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(Kr(n)||de(n))var r=r?ie(K(r,n).concat(K(n,r))):n}return r||[]}function jn(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,n=t?tn(pi(t,"length")):0,r=hr(0>n?0:n);++e<n;)r[e]=pi(t,e);return r}function Dn(t,e){var n=-1,r=t?t.length:0,i={};
  for(e||!r||Kr(t[0])||(e=[]);++n<r;){var o=t[n];e?i[o]=e[n]:o&&(i[o[0]]=o[1])}return i}function Ln(t,e){if(!Ae(e))throw new Mr;return function(){return--t<1?e.apply(this,arguments):void 0}}function Rn(t,e){return arguments.length>2?ae(t,17,f(arguments,2),null,e):ae(t,1,null,null,e)}function On(t){for(var e=arguments.length>1?te(arguments,!0,!1,1):xe(t),n=-1,r=e.length;++n<r;){var i=e[n];t[i]=ae(t[i],1,null,null,t)}return t}function qn(t,e){return arguments.length>2?ae(e,19,f(arguments,2),null,t):ae(e,3,null,null,t)}function Pn(){for(var t=arguments,e=t.length;e--;)if(!Ae(t[e]))throw new Mr;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}}function Hn(t,e){return e="number"==typeof e?e:+e||t.length,ae(t,4,null,null,null,e)}function Fn(t,e,n){var r,i,o,a,u,s,l,c=0,f=!1,d=!0;if(!Ae(t))throw new Mr;if(e=Vr(0,e)||0,n===!0){var h=!0;d=!1}else Te(n)&&(h=n.leading,f="maxWait"in n&&(Vr(e,n.maxWait)||0),d="trailing"in n?n.trailing:d);var v=function(){var n=e-(vi()-a);if(0>=n){i&&Tr(i);var f=l;i=s=l=p,f&&(c=vi(),o=t.apply(u,r),s||i||(r=u=null))}else s=Or(v,n)},g=function(){s&&Tr(s),i=s=l=p,(d||f!==e)&&(c=vi(),o=t.apply(u,r),s||i||(r=u=null))};return function(){if(r=arguments,a=vi(),u=this,l=d&&(s||!h),f===!1)var n=h&&!s;else{i||h||(c=a);var p=f-(a-c),m=0>=p;m?(i&&(i=Tr(i)),c=a,o=t.apply(u,r)):i||(i=Or(g,p))}return m&&s?s=Tr(s):s||e===f||(s=Or(v,e)),n&&(m=!0,o=t.apply(u,r)),!m||s||i||(r=u=null),o}}function Un(t){if(!Ae(t))throw new Mr;var e=f(arguments,1);return Or(function(){t.apply(p,e)},1)}function In(t,e){if(!Ae(t))throw new Mr;var n=f(arguments,2);return Or(function(){t.apply(p,n)},e)}function zn(t,e){if(!Ae(t))throw new Mr;var n=function(){var r=n.cache,i=e?e.apply(this,arguments):m+arguments[0];return Lr.call(r,i)?r[i]:r[i]=t.apply(this,arguments)};return n.cache={},n}function Bn(t){var e,n;if(!Ae(t))throw new Mr;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}}function Vn(t){return ae(t,16,f(arguments,1))}function Wn(t){return ae(t,32,null,f(arguments,1))}function Yn(t,e,n){var r=!0,i=!0;if(!Ae(t))throw new Mr;return n===!1?r=!1:Te(n)&&(r="leading"in n?n.leading:r,i="trailing"in n?n.trailing:i),B.leading=r,B.maxWait=e,B.trailing=i,Fn(t,e,B)}function Xn(t,e){return ae(e,16,[t])}function Jn(t){return function(){return t}}function Zn(t,e,n){var r=typeof t;if(null==t||"function"==r)return Z(t,e,n);if("object"!=r)return nr(t);var i=ti(t),o=i[0],a=t[o];return 1!=i.length||a!==a||Te(a)?function(e){for(var n=i.length,r=!1;n--&&(r=ee(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)}}function Gn(t){return null==t?"":wr(t).replace(ii,ue)}function Kn(t){return t}function Qn(t,e,n){var r=!0,i=e&&xe(e);e&&(n||i.length)||(null==n&&(n=e),o=v,e=t,t=h,i=xe(e)),n===!1?r=!1:Te(n)&&"chain"in n&&(r=n.chain);var o=t,a=Ae(o);Ze(i,function(n){var i=t[n]=e[n];a&&(o.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,a=[n];Rr.apply(a,arguments);var u=i.apply(t,a);if(r||e){if(n===u&&Te(u))return this;u=new o(u),u.__chain__=e}return u})})}function tr(){return n._=_r,this}function er(){}function nr(t){return function(e){return e[t]}}function rr(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=Xr();return Wr(t+o*(e-t+parseFloat("1e-"+((o+"").length-1))),e)}return re(t,e)}function ir(t,e){if(t){var n=t[e];return Ae(n)?t[e]():n}}function or(t,e,n){var r=h.templateSettings;t=wr(t||""),n=ai({},n,r);var i,o=ai({},n.imports,r.imports),u=ti(o),s=ze(o),l=0,c=n.interpolate||A,f="__p += '",d=$r((n.escape||A).source+"|"+c.source+"|"+(c===S?k:A).source+"|"+(n.evaluate||A).source+"|$","g");t.replace(d,function(e,n,r,o,u,s){return r||(r=o),f+=t.slice(l,s).replace(N,a),n&&(f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+e.length,e}),f+="';\n";var v=n.variable,g=v;g||(v="obj",f="with ("+v+") {\n"+f+"\n}\n"),f=(i?f.replace($,""):f).replace(w,"$1").replace(M,"$1;"),f="function("+v+") {\n"+(g?"":v+" || ("+v+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m="\n/*\n//# sourceURL="+(n.sourceURL||"/lodash/template/source["+D++ +"]")+"\n*/";try{var y=mr(u,"return "+f+m).apply(p,s)}catch(b){throw b.source=f,b}return e?y(e):(y.source=f,y)}function ar(t,e,n){t=(t=+t)>-1?t:0;var r=-1,i=hr(t);for(e=Z(e,n,1);++r<t;)i[r]=e(r);return i}function ur(t){return null==t?"":wr(t).replace(ri,fe)}function sr(t){var e=++g;return wr(null==t?"":t)+e}function lr(t){return t=new v(t),t.__chain__=!0,t}function cr(t,e){return e(t),t}function fr(){return this.__chain__=!0,this}function dr(){return wr(this.__wrapped__)}function pr(){return this.__wrapped__}n=n?Q.defaults(X.Object(),n,Q.pick(X,j)):X;var hr=n.Array,vr=n.Boolean,gr=n.Date,mr=n.Function,yr=n.Math,br=n.Number,xr=n.Object,$r=n.RegExp,wr=n.String,Mr=n.TypeError,kr=[],Cr=xr.prototype,_r=n._,Sr=Cr.toString,Er=$r("^"+wr(Sr).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Ar=yr.ceil,Tr=n.clearTimeout,Nr=yr.floor,jr=mr.prototype.toString,Dr=le(Dr=xr.getPrototypeOf)&&Dr,Lr=Cr.hasOwnProperty,Rr=kr.push,Or=n.setTimeout,qr=kr.splice,Pr=kr.unshift,Hr=function(){try{var t={},e=le(e=xr.defineProperty)&&e,n=e(t,t,t)&&e}catch(r){}return n}(),Fr=le(Fr=xr.create)&&Fr,Ur=le(Ur=hr.isArray)&&Ur,Ir=n.isFinite,zr=n.isNaN,Br=le(Br=xr.keys)&&Br,Vr=yr.max,Wr=yr.min,Yr=n.parseInt,Xr=yr.random,Jr={};Jr[R]=hr,Jr[O]=vr,Jr[q]=gr,Jr[P]=mr,Jr[F]=xr,Jr[H]=br,Jr[U]=$r,Jr[I]=wr,v.prototype=h.prototype;var Zr=h.support={};Zr.funcDecomp=!le(n.WinRTError)&&T.test(d),Zr.funcNames="string"==typeof mr.name,h.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:S,variable:"",imports:{_:h}},Fr||(J=function(){function t(){}return function(e){if(Te(e)){t.prototype=e;var r=new t;t.prototype=null}return r||n.Object()}}());var Gr=Hr?function(t,e){V.value=e,Hr(t,"__bindData__",V)}:er,Kr=Ur||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Sr.call(t)==R||!1},Qr=function(t){var e,n=t,r=[];if(!n)return r;if(!W[typeof t])return r;for(e in n)Lr.call(n,e)&&r.push(e);return r},ti=Br?function(t){return Te(t)?Br(t):[]}:Qr,ei={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ni=we(ei),ri=$r("("+ti(ni).join("|")+")","g"),ii=$r("["+ti(ei).join("")+"]","g"),oi=function(t,e,n){var r,i=t,o=i;if(!i)return o;var a=arguments,u=0,s="number"==typeof n?2:a.length;if(s>3&&"function"==typeof a[s-2])var l=Z(a[--s-1],a[s--],2);else s>2&&"function"==typeof a[s-1]&&(l=a[--s]);for(;++u<s;)if(i=a[u],i&&W[typeof i])for(var c=-1,f=W[typeof i]&&ti(i),d=f?f.length:0;++c<d;)r=f[c],o[r]=l?l(o[r],i[r]):i[r];return o},ai=function(t,e,n){var r,i=t,o=i;if(!i)return o;for(var a=arguments,u=0,s="number"==typeof n?2:a.length;++u<s;)if(i=a[u],i&&W[typeof i])for(var l=-1,c=W[typeof i]&&ti(i),f=c?c.length:0;++l<f;)r=c[l],"undefined"==typeof o[r]&&(o[r]=i[r]);return o},ui=function(t,e,n){var r,i=t,o=i;if(!i)return o;if(!W[typeof i])return o;e=e&&"undefined"==typeof n?e:Z(e,n,3);for(r in i)if(e(i[r],r,t)===!1)return o;return o},si=function(t,e,n){var r,i=t,o=i;if(!i)return o;if(!W[typeof i])return o;e=e&&"undefined"==typeof n?e:Z(e,n,3);for(var a=-1,u=W[typeof i]&&ti(i),s=u?u.length:0;++a<s;)if(r=u[a],e(i[r],r,t)===!1)return o;return o},li=Dr?function(t){if(!t||Sr.call(t)!=F)return!1;var e=t.valueOf,n=le(e)&&(n=Dr(e))&&Dr(n);return n?t==n||Dr(t)==n:ce(t)}:ce,ci=oe(function(t,e,n){Lr.call(t,n)?t[n]++:t[n]=1}),fi=oe(function(t,e,n){(Lr.call(t,n)?t[n]:t[n]=[]).push(e)}),di=oe(function(t,e,n){t[n]=e}),pi=Qe,hi=Ye,vi=le(vi=gr.now)&&vi||function(){return(new gr).getTime()},gi=8==Yr(x+"08")?Yr:function(t,e){return Yr(Re(t)?t.replace(E,""):t,e||0)};return h.after=Ln,h.assign=oi,h.at=Be,h.bind=Rn,h.bindAll=On,h.bindKey=qn,h.chain=lr,h.compact=dn,h.compose=Pn,h.constant=Jn,h.countBy=ci,h.create=ve,h.createCallback=Zn,h.curry=Hn,h.debounce=Fn,h.defaults=ai,h.defer=Un,h.delay=In,h.difference=pn,h.filter=Ye,h.flatten=mn,h.forEach=Ze,h.forEachRight=Ge,h.forIn=ui,h.forInRight=ye,h.forOwn=si,h.forOwnRight=be,h.functions=xe,h.groupBy=fi,h.indexBy=di,h.initial=bn,h.intersection=xn,h.invert=we,h.invoke=Ke,h.keys=ti,h.map=Qe,h.mapValues=qe,h.max=tn,h.memoize=zn,h.merge=Pe,h.min=en,h.omit=He,h.once=Bn,h.pairs=Fe,h.partial=Vn,h.partialRight=Wn,h.pick=Ue,h.pluck=pi,h.property=nr,h.pull=Mn,h.range=kn,h.reject=on,h.remove=Cn,h.rest=_n,h.shuffle=un,h.sortBy=cn,h.tap=cr,h.throttle=Yn,h.times=ar,h.toArray=fn,h.transform=Ie,h.union=En,h.uniq=An,h.values=ze,h.where=hi,h.without=Tn,h.wrap=Xn,h.xor=Nn,h.zip=jn,h.zipObject=Dn,h.collect=Qe,h.drop=_n,h.each=Ze,h.eachRight=Ge,h.extend=oi,h.methods=xe,h.object=Dn,h.select=Ye,h.tail=_n,h.unique=An,h.unzip=jn,Qn(h),h.clone=pe,h.cloneDeep=he,h.contains=Ve,h.escape=Gn,h.every=We,h.find=Xe,h.findIndex=hn,h.findKey=ge,h.findLast=Je,h.findLastIndex=vn,h.findLastKey=me,h.has=$e,h.identity=Kn,h.indexOf=yn,h.isArguments=de,h.isArray=Kr,h.isBoolean=Me,h.isDate=ke,h.isElement=Ce,h.isEmpty=_e,h.isEqual=Se,h.isFinite=Ee,h.isFunction=Ae,h.isNaN=Ne,h.isNull=je,h.isNumber=De,h.isObject=Te,h.isPlainObject=li,h.isRegExp=Le,h.isString=Re,h.isUndefined=Oe,h.lastIndexOf=wn,h.mixin=Qn,h.noConflict=tr,h.noop=er,h.now=vi,h.parseInt=gi,h.random=rr,h.reduce=nn,h.reduceRight=rn,h.result=ir,h.runInContext=d,h.size=sn,h.some=ln,h.sortedIndex=Sn,h.template=or,h.unescape=ur,h.uniqueId=sr,h.all=We,h.any=ln,h.detect=Xe,h.findWhere=Xe,h.foldl=nn,h.foldr=rn,h.include=Ve,h.inject=nn,Qn(function(){var t={};return si(h,function(e,n){h.prototype[n]||(t[n]=e)}),t}(),!1),h.first=gn,h.last=$n,h.sample=an,h.take=gn,h.head=gn,si(h,function(t,e){var n="sample"!==e;h.prototype[e]||(h.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 v(o,i):o})}),h.VERSION="2.4.1",h.prototype.chain=fr,h.prototype.toString=dr,h.prototype.value=pr,h.prototype.valueOf=pr,Ze(["join","pop","shift"],function(t){var e=kr[t];h.prototype[t]=function(){var t=this.__chain__,n=e.apply(this.__wrapped__,arguments);return t?new v(n,t):n}}),Ze(["push","reverse","sort","unshift"],function(t){var e=kr[t];h.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),Ze(["concat","slice","splice"],function(t){var e=kr[t];h.prototype[t]=function(){return new v(e.apply(this.__wrapped__,arguments),this.__chain__)}}),h}var p,h=[],v=[],g=0,m=+new Date+"",y=75,b=40,x=" 	\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",$=/\b__p \+= '';/g,w=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,k=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,C=/\w*$/,_=/^\s*function[ \n\r\t]+\w/,S=/<%=([\s\S]+?)%>/g,E=RegExp("^["+x+"]*0+(?=.$)"),A=/($^)/,T=/\bthis\b/,N=/['\n\r\t\u2028\u2029\\]/g,j=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],D=0,L="[object Arguments]",R="[object Array]",O="[object Boolean]",q="[object Date]",P="[object Function]",H="[object Number]",F="[object Object]",U="[object RegExp]",I="[object String]",z={};z[P]=!1,z[L]=z[R]=z[O]=z[q]=z[H]=z[F]=z[U]=z[I]=!0;var B={leading:!1,maxWait:0,trailing:!1},V={configurable:!1,enumerable:!1,value:null,writable:!1},W={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Y={"\\":"\\","'":"'","\n":"n","\r":"r","	":"t","\u2028":"u2028","\u2029":"u2029"},X=W[typeof window]&&window||this,J=W[typeof exports]&&exports&&!exports.nodeType&&exports,Z=W[typeof module]&&module&&!module.nodeType&&module,G=Z&&Z.exports===J&&J,K=W[typeof global]&&global;!K||K.global!==K&&K.window!==K||(X=K);var Q=d();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(X._=Q,define(function(){return Q})):J&&Z?G?(Z.exports=Q)._=Q:J._=Q:X._=Q}.call(this),function(t,e,n){"use strict";function r(t){return function(){var e,n,r=arguments[0],i="["+(t?t+":":"")+r+"] ",o=arguments[1],a=arguments,u=function(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?JSON.stringify(t):t};for(e=i+o.replace(/\{\d+\}/g,function(t){var e,n=+t.slice(1,-1);return n+2<a.length?(e=a[n+2],"function"==typeof e?e.toString().replace(/ ?\{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?I(e):e):t}),e=e+"\nhttp://errors.angularjs.org/1.2.12/"+(t?t+"/":"")+r,n=2;n<arguments.length;n++)e=e+(2==n?"?":"&")+"p"+(n-2)+"="+encodeURIComponent(u(arguments[n]));return new Error(e)}}function i(t){if(null==t||_(t))return!1;var e=t.length;return 1===t.nodeType&&e?!0:x(t)||M(t)||0===e||"number"==typeof e&&e>0&&e-1 in t}function o(t,e,n){var r;if(t)if(k(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r);else if(t.forEach&&t.forEach!==o)t.forEach(e,n);else if(i(t))for(r=0;r<t.length;r++)e.call(n,t[r],r);else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r);return t}function a(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e.sort()}function u(t,e,n){for(var r=a(t),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function s(t){return function(e,n){t(n,e)}}function l(){for(var t,e=xr.length;e;){if(e--,t=xr[e].charCodeAt(0),57==t)return xr[e]="A",xr.join("");if(90!=t)return xr[e]=String.fromCharCode(t+1),xr.join("");xr[e]="0"}return xr.unshift("0"),xr.join("")}function c(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function f(t){var e=t.$$hashKey;return o(arguments,function(e){e!==t&&o(e,function(e,n){t[n]=e})}),c(t,e),t}function d(t){return parseInt(t,10)}function p(t,e){return f(new(f(function(){},{prototype:t})),e)}function h(){}function v(t){return t}function g(t){return function(){return t}}function m(t){return"undefined"==typeof t}function y(t){return"undefined"!=typeof t}function b(t){return null!=t&&"object"==typeof t}function x(t){return"string"==typeof t}function $(t){return"number"==typeof t}function w(t){return"[object Date]"===mr.call(t)}function M(t){return"[object Array]"===mr.call(t)}function k(t){return"function"==typeof t}function C(t){return"[object RegExp]"===mr.call(t)}function _(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function S(t){return t&&t.$evalAsync&&t.$watch}function E(t){return"[object File]"===mr.call(t)}function A(t){return!(!t||!(t.nodeName||t.on&&t.find))}function T(t,e,n){var r=[];return o(t,function(t,i,o){r.push(e.call(n,t,i,o))}),r}function N(t,e){return-1!=j(t,e)}function j(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(e===t[n])return n;return-1}function D(t,e){var n=j(t,e);return n>=0&&t.splice(n,1),e}function L(t,e){if(_(t)||S(t))throw yr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(e){if(t===e)throw yr("cpi","Can't copy! Source and destination are identical.");if(M(t)){e.length=0;for(var n=0;n<t.length;n++)e.push(L(t[n]))}else{var r=e.$$hashKey;o(e,function(t,n){delete e[n]});for(var i in t)e[i]=L(t[i]);c(e,r)}}else e=t,t&&(M(t)?e=L(t,[]):w(t)?e=new Date(t.getTime()):C(t)?e=new RegExp(t.source):b(t)&&(e=L(t,{})));return e}function R(t,e){e=e||{};for(var n in t)!t.hasOwnProperty(n)||"$"===n.charAt(0)&&"$"===n.charAt(1)||(e[n]=t[n]);return e}function O(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var r,i,o,a=typeof t,u=typeof e;if(a==u&&"object"==a){if(!M(t)){if(w(t))return w(e)&&t.getTime()==e.getTime();if(C(t)&&C(e))return t.toString()==e.toString();if(S(t)||S(e)||_(t)||_(e)||M(e))return!1;o={};for(i in t)if("$"!==i.charAt(0)&&!k(t[i])){if(!O(t[i],e[i]))return!1;o[i]=!0}for(i in e)if(!o.hasOwnProperty(i)&&"$"!==i.charAt(0)&&e[i]!==n&&!k(e[i]))return!1;return!0}if(!M(e))return!1;if((r=t.length)==e.length){for(i=0;r>i;i++)if(!O(t[i],e[i]))return!1;return!0}}return!1}function q(){return e.securityPolicy&&e.securityPolicy.isActive||e.querySelector&&!(!e.querySelector("[ng-csp]")&&!e.querySelector("[data-ng-csp]"))}function P(t,e,n){return t.concat(vr.call(e,n))}function H(t,e){return vr.call(t,e||0)}function F(t,e){var n=arguments.length>2?H(arguments,2):[];return!k(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,n.concat(vr.call(arguments,0))):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function U(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)?i=n:_(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":S(r)&&(i="$SCOPE"),i}function I(t,e){return"undefined"==typeof t?n:JSON.stringify(t,U,e?"  ":null)}function z(t){return x(t)?JSON.parse(t):t}function B(t){if("function"==typeof t)t=!0;else if(t&&0!==t.length){var e=ar(""+t);t=!("f"==e||"0"==e||"false"==e||"no"==e||"n"==e||"[]"==e)}else t=!1;return t}function V(t){t=fr(t).clone();try{t.empty()}catch(e){}var n=3,r=fr("<div>").append(t).html();try{return t[0].nodeType===n?ar(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+ar(e)})}catch(e){return ar(r)}}function W(t){try{return decodeURIComponent(t)}catch(e){}}function Y(t){var e,n,r={};return o((t||"").split("&"),function(t){if(t&&(e=t.split("="),n=W(e[0]),y(n))){var i=y(e[1])?W(e[1]):!0;r[n]?M(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function X(t){var e=[];return o(t,function(t,n){M(t)?o(t,function(t){e.push(Z(n,!0)+(t===!0?"":"="+Z(t,!0)))}):e.push(Z(n,!0)+(t===!0?"":"="+Z(t,!0)))}),e.length?e.join("&"):""}function J(t){return Z(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Z(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,e?"%20":"+")}function G(t,n){function r(t){t&&u.push(t)}var i,a,u=[t],s=["ng:app","ng-app","x-ng-app","data-ng-app"],l=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;o(s,function(n){s[n]=!0,r(e.getElementById(n)),n=n.replace(":","\\:"),t.querySelectorAll&&(o(t.querySelectorAll("."+n),r),o(t.querySelectorAll("."+n+"\\:"),r),o(t.querySelectorAll("["+n+"]"),r))}),o(u,function(t){if(!i){var e=" "+t.className+" ",n=l.exec(e);n?(i=t,a=(n[2]||"").replace(/\s+/g,",")):o(t.attributes,function(e){!i&&s[e.name]&&(i=t,a=e.value)})}}),i&&n(i,a?[a]:[])}function K(n,r){var i=function(){if(n=fr(n),n.injector()){var t=n[0]===e?"document":V(n);throw yr("btstrpd","App Already Bootstrapped with this Element '{0}'",t)}r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),r.unshift("ng");var i=Te(r);return i.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),i},a=/^NG_DEFER_BOOTSTRAP!/;return t&&!a.test(t.name)?i():(t.name=t.name.replace(a,""),void(br.resumeBootstrap=function(t){o(t,function(t){r.push(t)}),i()}))}function Q(t,e){return e=e||"_",t.replace(wr,function(t,n){return(n?e:"")+t.toLowerCase()})}function te(){dr=t.jQuery,dr?(fr=dr,f(dr.fn,{scope:jr.scope,isolateScope:jr.isolateScope,controller:jr.controller,injector:jr.injector,inheritedData:jr.inheritedData}),ce("remove",!0,!0,!1),ce("empty",!1,!1,!1),ce("html",!1,!1,!0)):fr=fe,br.element=fr}function ee(t,e,n){if(!t)throw yr("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ne(t,e,n){return n&&M(t)&&(t=t[t.length-1]),ee(k(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function re(t,e){if("hasOwnProperty"===t)throw yr("badname","hasOwnProperty is not a valid {0} name",e)}function ie(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,a=i.length,u=0;a>u;u++)r=i[u],t&&(t=(o=t)[r]);return!n&&k(t)?F(o,t):t}function oe(t){var e=t[0],n=t[t.length-1];if(e===n)return fr(e);var r=e,i=[r];do{if(r=r.nextSibling,!r)break;i.push(r)}while(r!==n);return fr(i)}function ae(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=r("$injector"),i=r("ng"),o=e(t,"angular",Object);return o.$$minErr=o.$$minErr||r,e(o,"module",function(){var t={};return function(r,o,a){var u=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return u(r,"module"),o&&t.hasOwnProperty(r)&&(t[r]=null),e(t,r,function(){function t(t,n,r){return function(){return e[r||"push"]([t,n,arguments]),s}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var e=[],i=[],u=t("$injector","invoke"),s={_invokeQueue:e,_runBlocks:i,requires:o,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),config:u,run:function(t){return i.push(t),this}};return a&&u(a),s})}})}function ue(e){f(e,{bootstrap:K,copy:L,extend:f,equals:O,element:fr,forEach:o,injector:Te,noop:h,bind:F,toJson:I,fromJson:z,identity:v,isUndefined:m,isDefined:y,isString:x,isFunction:k,isObject:b,isNumber:$,isElement:A,isArray:M,version:Mr,isDate:w,lowercase:ar,uppercase:ur,callbacks:{counter:0},$$minErr:r,$$csp:q}),pr=ae(t);try{pr("ngLocale")}catch(n){pr("ngLocale",[]).provider("$locale",Ke)}pr("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Cn}),t.provider("$compile",Oe).directive({a:di,input:wi,textarea:wi,form:gi,script:ro,select:ao,style:so,option:uo,ngBind:Li,ngBindHtml:Oi,ngBindTemplate:Ri,ngClass:qi,ngClassEven:Hi,ngClassOdd:Pi,ngCloak:Fi,ngController:Ui,ngForm:mi,ngHide:Gi,ngIf:zi,ngInclude:Bi,ngInit:Wi,ngNonBindable:Yi,ngPluralize:Xi,ngRepeat:Ji,ngShow:Zi,ngStyle:Ki,ngSwitch:Qi,ngSwitchWhen:to,ngSwitchDefault:eo,ngOptions:oo,ngTransclude:no,ngModel:Ei,ngList:Ni,ngChange:Ai,required:Ti,ngRequired:Ti,ngValue:Di}).directive({ngInclude:Vi}).directive(pi).directive(Ii),t.provider({$anchorScroll:Ne,$animate:Ur,$browser:De,$cacheFactory:Le,$controller:He,$document:Fe,$exceptionHandler:Ue,$filter:On,$interpolate:Ze,$interval:Ge,$http:We,$httpBackend:Xe,$location:dn,$log:pn,$parse:$n,$rootScope:kn,$q:wn,$sce:Tn,$sceDelegate:An,$sniffer:Nn,$templateCache:Re,$timeout:jn,$window:Rn})}])}function se(){return++_r}function le(t){return t.replace(Ar,function(t,e,n,r){return r?n.toUpperCase():n}).replace(Tr,"Moz$1")}function ce(t,e,n,r){function i(t){var i,a,u,s,l,c,f,d=n&&t?[this.filter(t)]:[this],p=e;if(!r||null!=t)for(;d.length;)for(i=d.shift(),a=0,u=i.length;u>a;a++)for(s=fr(i[a]),p?s.triggerHandler("$destroy"):p=!p,l=0,c=(f=s.children()).length;c>l;l++)d.push(dr(f[l]));return o.apply(this,arguments)}var o=dr.fn[t];o=o.$original||o,i.$original=o,dr.fn[t]=i}function fe(t){if(t instanceof fe)return t;if(x(t)&&(t=$r(t)),!(this instanceof fe)){if(x(t)&&"<"!=t.charAt(0))throw Nr("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new fe(t)}if(x(t)){var n=e.createElement("div");n.innerHTML="<div>&#160;</div>"+t,n.removeChild(n.firstChild),$e(this,n.childNodes);var r=fr(e.createDocumentFragment());r.append(this)}else $e(this,t)}function de(t){return t.cloneNode(!0)}function pe(t){ve(t);for(var e=0,n=t.childNodes||[];e<n.length;e++)pe(n[e])}function he(t,e,n,r){if(y(r))throw Nr("offargs","jqLite#off() does not support the `selector` argument");var i=ge(t,"events"),a=ge(t,"handle");a&&(m(e)?o(i,function(e,n){Er(t,n,e),delete i[n]}):o(e.split(" "),function(e){m(n)?(Er(t,e,i[e]),delete i[e]):D(i[e]||[],n)}))}function ve(t,e){var r=t[Cr],i=kr[r];if(i){if(e)return void delete kr[r].data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),he(t)),delete kr[r],t[Cr]=n}}function ge(t,e,n){var r=t[Cr],i=kr[r||-1];return y(n)?(i||(t[Cr]=r=se(),i=kr[r]={}),void(i[e]=n)):i&&i[e]}function me(t,e,n){var r=ge(t,"data"),i=y(n),o=!i&&y(e),a=o&&!b(e);if(r||a||ge(t,"data",r={}),i)r[e]=n;else{if(!o)return r;if(a)return r&&r[e];f(r,e)}}function ye(t,e){return t.getAttribute?(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1:!1}function be(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",$r((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+$r(e)+" "," ")))})}function xe(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=$r(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",$r(n))}}function $e(t,e){if(e){e=e.nodeName||!y(e.length)||_(e)?[e]:e;for(var n=0;n<e.length;n++)t.push(e[n])}}function we(t,e){return Me(t,"$"+(e||"ngController")+"Controller")}function Me(t,e,r){t=fr(t),9==t[0].nodeType&&(t=t.find("html"));for(var i=M(e)?e:[e];t.length;){for(var o=0,a=i.length;a>o;o++)if((r=t.data(i[o]))!==n)return r;t=t.parent()}}function ke(t){for(var e=0,n=t.childNodes;e<n.length;e++)pe(n[e]);for(;t.firstChild;)t.removeChild(t.firstChild)}function Ce(t,e){var n=Dr[e.toLowerCase()];return n&&Lr[t.nodeName]&&n}function _e(t,n){var r=function(r,i){if(r.preventDefault||(r.preventDefault=function(){r.returnValue=!1}),r.stopPropagation||(r.stopPropagation=function(){r.cancelBubble=!0}),r.target||(r.target=r.srcElement||e),m(r.defaultPrevented)){var a=r.preventDefault;r.preventDefault=function(){r.defaultPrevented=!0,a.call(r)},r.defaultPrevented=!1}r.isDefaultPrevented=function(){return r.defaultPrevented||r.returnValue===!1};var u=R(n[i||r.type]||[]);o(u,function(e){e.call(t,r)}),8>=cr?(r.preventDefault=null,r.stopPropagation=null,r.isDefaultPrevented=null):(delete r.preventDefault,delete r.stopPropagation,delete r.isDefaultPrevented)};return r.elem=t,r}function Se(t){var e,r=typeof t;return"object"==r&&null!==t?"function"==typeof(e=t.$$hashKey)?e=t.$$hashKey():e===n&&(e=t.$$hashKey=l()):e=t,r+":"+e}function Ee(t){o(t,this.put,this)}function Ae(t){var e,n,r,i;return"function"==typeof t?(e=t.$inject)||(e=[],t.length&&(n=t.toString().replace(Pr,""),r=n.match(Rr),o(r[1].split(Or),function(t){t.replace(qr,function(t,n,r){e.push(r)})})),t.$inject=e):M(t)?(i=t.length-1,ne(t[i],"fn"),e=t.slice(0,i)):ne(t,"fn",!0),e}function Te(t){function e(t){return function(e,n){return b(e)?void o(e,s(t)):t(e,n)}}function n(t,e){if(re(t,"service"),(k(e)||M(e))&&(e=$.instantiate(e)),!e.$get)throw Hr("pget","Provider '{0}' must define $get factory method.",t);return y[t+p]=e}function r(t,e){return n(t,{$get:e})}function i(t,e){return r(t,["$injector",function(t){return t.instantiate(e)}])}function a(t,e){return r(t,g(e))}function u(t,e){re(t,"constant"),y[t]=e,w[t]=e}function l(t,e){var n=$.get(t+p),r=n.$get;n.$get=function(){var t=C.invoke(r,n);return C.invoke(e,null,{$delegate:t})}}function c(t){var e,n,r,i,a=[];return o(t,function(t){if(!m.get(t)){m.put(t,!0);try{if(x(t))for(e=pr(t),a=a.concat(c(e.requires)).concat(e._runBlocks),n=e._invokeQueue,r=0,i=n.length;i>r;r++){var o=n[r],u=$.get(o[0]);u[o[1]].apply(u,o[2])}else k(t)?a.push($.invoke(t)):M(t)?a.push($.invoke(t)):ne(t,"module")}catch(s){throw M(t)&&(t=t[t.length-1]),s.message&&s.stack&&-1==s.stack.indexOf(s.message)&&(s=s.message+"\n"+s.stack),Hr("modulerr","Failed to instantiate module {0} due to:\n{1}",t,s.stack||s.message||s)}}}),a}function f(t,e){function n(n){if(t.hasOwnProperty(n)){if(t[n]===d)throw Hr("cdep","Circular dependency found: {0}",v.join(" <- "));return t[n]}try{return v.unshift(n),t[n]=d,t[n]=e(n)}catch(r){throw t[n]===d&&delete t[n],r}finally{v.shift()}}function r(t,e,r){var i,o,a,u=[],s=Ae(t);for(o=0,i=s.length;i>o;o++){if(a=s[o],"string"!=typeof a)throw Hr("itkn","Incorrect injection token! Expected service name as string, got {0}",a);u.push(r&&r.hasOwnProperty(a)?r[a]:n(a))}return t.$inject||(t=t[i]),t.apply(e,u)}function i(t,e){var n,i,o=function(){};return o.prototype=(M(t)?t[t.length-1]:t).prototype,n=new o,i=r(t,n,e),b(i)||k(i)?i:n}return{invoke:r,instantiate:i,get:n,annotate:Ae,has:function(e){return y.hasOwnProperty(e+p)||t.hasOwnProperty(e)}}}var d={},p="Provider",v=[],m=new Ee,y={$provide:{provider:e(n),factory:e(r),service:e(i),value:e(a),constant:e(u),decorator:l}},$=y.$injector=f(y,function(){throw Hr("unpr","Unknown provider: {0}",v.join(" <- "))}),w={},C=w.$injector=f(w,function(t){var e=$.get(t+p);return C.invoke(e.$get,e)});return o(c(t),function(t){C.invoke(t||h)}),C}function Ne(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return o(t,function(t){e||"a"!==ar(t.nodeName)||(e=t)}),e}function a(){var t,r=n.hash();r?(t=u.getElementById(r))?t.scrollIntoView():(t=i(u.getElementsByName(r)))?t.scrollIntoView():"top"===r&&e.scrollTo(0,0):e.scrollTo(0,0)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(){r.$evalAsync(a)}),a}]}function je(t,e,r,i){function a(t){try{t.apply(null,H(arguments,1))}finally{if(y--,0===y)for(;b.length;)try{b.pop()()}catch(e){r.error(e)}}}function u(t,e){!function n(){o(w,function(t){t()}),$=e(n,t)}()}function s(){C=null,M!=l.url()&&(M=l.url(),o(_,function(t){t(l.url())}))}var l=this,c=e[0],f=t.location,d=t.history,p=t.setTimeout,v=t.clearTimeout,g={};l.isMock=!1;var y=0,b=[];l.$$completeOutstandingRequest=a,l.$$incOutstandingRequestCount=function(){y++},l.notifyWhenNoOutstandingRequests=function(t){o(w,function(t){t()}),0===y?t():b.push(t)};var $,w=[];l.addPollFn=function(t){return m($)&&u(100,p),w.push(t),t};var M=f.href,k=e.find("base"),C=null;l.url=function(e,n){if(f!==t.location&&(f=t.location),d!==t.history&&(d=t.history),e){if(M==e)return;return M=e,i.history?n?d.replaceState(null,"",e):(d.pushState(null,"",e),k.attr("href",k.attr("href"))):(C=e,n?f.replace(e):f.href=e),l}return C||f.href.replace(/%27/g,"'")};var _=[],S=!1;l.onUrlChange=function(e){return S||(i.history&&fr(t).on("popstate",s),i.hashchange?fr(t).on("hashchange",s):l.addPollFn(s),S=!0),_.push(e),e},l.baseHref=function(){var t=k.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var E={},A="",T=l.baseHref();l.cookies=function(t,e){var i,o,a,u,s;if(!t){if(c.cookie!==A)for(A=c.cookie,o=A.split("; "),E={},u=0;u<o.length;u++)a=o[u],s=a.indexOf("="),s>0&&(t=unescape(a.substring(0,s)),E[t]===n&&(E[t]=unescape(a.substring(s+1))));return E}e===n?c.cookie=escape(t)+"=;path="+T+";expires=Thu, 01 Jan 1970 00:00:00 GMT":x(e)&&(i=(c.cookie=escape(t)+"="+escape(e)+";path="+T).length+1,i>4096&&r.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},l.defer=function(t,e){var n;return y++,n=p(function(){delete g[n],a(t)},e||0),g[n]=!0,n},l.defer.cancel=function(t){return g[t]?(delete g[t],v(t),a(h),!0):!1}}function De(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new je(t,r,e,n)}]}function Le(){this.$get=function(){function t(t,n){function i(t){t!=d&&(p?p==t&&(p=t.n):p=t,o(t.n,t.p),o(t,d),d=t,d.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var a=0,u=f({},n,{id:t}),s={},l=n&&n.capacity||Number.MAX_VALUE,c={},d=null,p=null;return e[t]={put:function(t,e){var n=c[t]||(c[t]={key:t});return i(n),m(e)?void 0:(t in s||a++,s[t]=e,a>l&&this.remove(p.key),e)},get:function(t){var e=c[t];if(e)return i(e),s[t]},remove:function(t){var e=c[t];e&&(e==d&&(d=e.p),e==p&&(p=e.n),o(e.n,e.p),delete c[t],delete s[t],a--)},removeAll:function(){s={},a=0,c={},d=p=null},destroy:function(){s=null,u=null,c=null,delete e[t]},info:function(){return f({},u,{size:a})}}}var e={};return t.info=function(){var t={};return o(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function Re(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function Oe(t,r){var i={},a="Directive",u=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,l=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,c=/^(on[a-z]+|formaction)$/;this.directive=function d(e,n){return re(e,"directive"),x(e)?(ee(n,"directiveFactory"),i.hasOwnProperty(e)||(i[e]=[],t.factory(e+a,["$injector","$exceptionHandler",function(t,n){var r=[];return o(i[e],function(i,o){try{var a=t.invoke(i);k(a)?a={compile:g(a)}:!a.compile&&a.link&&(a.compile=g(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||e,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"A",r.push(a)}catch(u){n(u)}}),r}])),i[e].push(n)):o(e,s(d)),this},this.aHrefSanitizationWhitelist=function(t){return y(t)?(r.aHrefSanitizationWhitelist(t),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(r.imgSrcSanitizationWhitelist(t),this):r.imgSrcSanitizationWhitelist()},this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,r,s,d,h,m,y,$,w,C,_,S){function E(t,e,n,r,i){t instanceof fr||(t=fr(t)),o(t,function(e,n){3==e.nodeType&&e.nodeValue.match(/\S+/)&&(t[n]=e=fr(e).wrap("<span></span>").parent()[0])
  });var a=T(t,e,t,n,r,i);return A(t,"ng-scope"),function(e,n,r){ee(e,"scope");var i=n?jr.clone.call(t):t;o(r,function(t,e){i.data("$"+e+"Controller",t)});for(var u=0,s=i.length;s>u;u++){var l=i[u],c=l.nodeType;(1===c||9===c)&&i.eq(u).data("$scope",e)}return n&&n(i,e),a&&a(e,i,i),i}}function A(t,e){try{t.addClass(e)}catch(n){}}function T(t,e,r,i,o,a){function u(t,r,i,o){var a,u,s,l,c,f,d,p,v,g=r.length,m=new Array(g);for(d=0;g>d;d++)m[d]=r[d];for(d=0,v=0,p=h.length;p>d;v++)s=m[v],a=h[d++],u=h[d++],l=fr(s),a?(a.scope?(c=t.$new(),l.data("$scope",c)):c=t,f=a.transclude,f||!o&&e?a(u,c,s,i,N(t,f||e)):a(u,c,s,i,o)):u&&u(t,s.childNodes,n,o)}for(var s,l,c,f,d,p,h=[],v=0;v<t.length;v++)s=new K,l=j(t[v],[],s,0===v?i:n,o),c=l.length?q(l,t[v],s,e,r,null,[],[],a):null,c&&c.scope&&A(fr(t[v]),"ng-scope"),d=c&&c.terminal||!(f=t[v].childNodes)||!f.length?null:T(f,c?c.transclude:e),h.push(c,d),p=p||c||d,a=null;return p?u:null}function N(t,e){return function(n,r,i){var o=!1;n||(n=t.$new(),n.$$transcluded=!0,o=!0);var a=e(n,r,i);return o&&a.on("$destroy",F(n,n.$destroy)),a}}function j(t,e,n,r,i){var o,a,s=t.nodeType,c=n.$attr;switch(s){case 1:U(e,qe(hr(t).toLowerCase()),"E",r,i);for(var f,d,p,h,v,g=t.attributes,m=0,y=g&&g.length;y>m;m++){var b=!1,$=!1;if(f=g[m],!cr||cr>=8||f.specified){d=f.name,h=qe(d),ie.test(h)&&(d=Q(h.substr(6),"-"));var w=h.replace(/(Start|End)$/,"");h===w+"Start"&&(b=d,$=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),p=qe(d.toLowerCase()),c[p]=d,n[p]=v=$r(f.value),Ce(t,p)&&(n[p]=!0),J(t,e,v,p),U(e,p,"A",r,i,b,$)}}if(a=t.className,x(a)&&""!==a)for(;o=l.exec(a);)p=qe(o[2]),U(e,p,"C",r,i)&&(n[p]=$r(o[3])),a=a.substr(o.index+o[0].length);break;case 3:Y(e,t.nodeValue);break;case 8:try{o=u.exec(t.nodeValue),o&&(p=qe(o[1]),U(e,p,"M",r,i)&&(n[p]=$r(o[2])))}catch(M){}}return e.sort(B),e}function D(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Ir("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);1==t.nodeType&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return fr(r)}function L(t,e,n){return function(r,i,o,a,u){return i=D(i[0],e,n),t(r,i,o,a,u)}}function q(t,i,a,u,l,c,f,d,p){function h(t,e,n,r){t&&(n&&(t=L(t,n,r)),t.require=w.require,(F===w||w.$$isolateScope)&&(t=G(t,{isolateScope:!0})),f.push(t)),e&&(n&&(e=L(e,n,r)),e.require=w.require,(F===w||w.$$isolateScope)&&(e=G(e,{isolateScope:!0})),d.push(e))}function v(t,e,n){var r,i="data",a=!1;if(x(t)){for(;"^"==(r=t.charAt(0))||"?"==r;)t=t.substr(1),"^"==r&&(i="inheritedData"),a=a||"?"==r;if(r=null,n&&"data"===i&&(r=n[t]),r=r||e[i]("$"+t+"Controller"),!r&&!a)throw Ir("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,C);return r}return M(t)&&(r=[],o(t,function(t){r.push(v(t,e,n))})),r}function g(t,e,u,l,c){function p(t,e){var r;return arguments.length<2&&(e=t,t=n),X&&(r=C),c(t,e,r)}var h,g,b,x,$,w,M,k,C={};if(h=i===u?a:R(a,new K(fr(u),a.$attr)),g=h.$$element,F){var _=/^\s*([@=&])(\??)\s*(\w*)\s*$/,S=fr(u);M=e.$new(!0),U&&U===F.$$originalDirective?S.data("$isolateScope",M):S.data("$isolateScopeNoTemplate",M),A(S,"ng-isolate-scope"),o(F.scope,function(t,n){var i,o,a,u,s=t.match(_)||[],l=s[3]||n,c="?"==s[2],f=s[1];switch(M.$$isolateBindings[n]=f+l,f){case"@":h.$observe(l,function(t){M[n]=t}),h.$$observers[l].$$scope=e,h[l]&&(M[n]=r(h[l])(e));break;case"=":if(c&&!h[l])return;o=m(h[l]),u=o.literal?O:function(t,e){return t===e},a=o.assign||function(){throw i=M[n]=o(e),Ir("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",h[l],F.name)},i=M[n]=o(e),M.$watch(function(){var t=o(e);return u(t,M[n])||(u(t,i)?a(e,t=M[n]):M[n]=t),i=t},null,o.literal);break;case"&":o=m(h[l]),M[n]=function(t){return o(e,t)};break;default:throw Ir("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",F.name,n,t)}})}for(k=c&&p,q&&o(q,function(t){var n,r={$scope:t===F||t.$$isolateScope?M:e,$element:g,$attrs:h,$transclude:k};w=t.controller,"@"==w&&(w=h[t.name]),n=y(w,r),C[t.name]=n,X||g.data("$"+t.name+"Controller",n),t.controllerAs&&(r.$scope[t.controllerAs]=n)}),b=0,x=f.length;x>b;b++)try{$=f[b],$($.isolateScope?M:e,g,h,$.require&&v($.require,g,C),k)}catch(E){s(E,V(g))}var T=e;for(F&&(F.template||null===F.templateUrl)&&(T=M),t&&t(T,u.childNodes,n,c),b=d.length-1;b>=0;b--)try{$=d[b],$($.isolateScope?M:e,g,h,$.require&&v($.require,g,C),k)}catch(E){s(E,V(g))}}p=p||{};for(var $,w,C,_,S,T,N=-Number.MAX_VALUE,q=p.controllerDirectives,F=p.newIsolateScopeDirective,U=p.templateDirective,B=p.nonTlbTranscludeDirective,Y=!1,X=!1,J=a.$$element=fr(i),Q=c,te=u,ee=0,ne=t.length;ne>ee;ee++){w=t[ee];var ie=w.$$start,oe=w.$$end;if(ie&&(J=D(i,ie,oe)),_=n,N>w.priority)break;if((T=w.scope)&&($=$||w,w.templateUrl||(W("new/isolated scope",F,w,J),b(T)&&(F=w))),C=w.name,!w.templateUrl&&w.controller&&(T=w.controller,q=q||{},W("'"+C+"' controller",q[C],w,J),q[C]=w),(T=w.transclude)&&(Y=!0,w.$$tlb||(W("transclusion",B,w,J),B=w),"element"==T?(X=!0,N=w.priority,_=D(i,ie,oe),J=a.$$element=fr(e.createComment(" "+C+": "+a[C]+" ")),i=J[0],Z(l,fr(H(_)),i),te=E(_,u,N,Q&&Q.name,{nonTlbTranscludeDirective:B})):(_=fr(de(i)).contents(),J.empty(),te=E(_,u))),w.template)if(W("template",U,w,J),U=w,T=k(w.template)?w.template(J,a):w.template,T=re(T),w.replace){if(Q=w,_=fr("<div>"+$r(T)+"</div>").contents(),i=_[0],1!=_.length||1!==i.nodeType)throw Ir("tplrt","Template for directive '{0}' must have exactly one root element. {1}",C,"");Z(l,J,i);var ae={$attr:{}},ue=j(i,[],ae),se=t.splice(ee+1,t.length-(ee+1));F&&P(ue),t=t.concat(ue).concat(se),I(a,ae),ne=t.length}else J.html(T);if(w.templateUrl)W("template",U,w,J),U=w,w.replace&&(Q=w),g=z(t.splice(ee,t.length-ee),J,a,l,te,f,d,{controllerDirectives:q,newIsolateScopeDirective:F,templateDirective:U,nonTlbTranscludeDirective:B}),ne=t.length;else if(w.compile)try{S=w.compile(J,a,te),k(S)?h(null,S,ie,oe):S&&h(S.pre,S.post,ie,oe)}catch(le){s(le,V(J))}w.terminal&&(g.terminal=!0,N=Math.max(N,w.priority))}return g.scope=$&&$.scope===!0,g.transclude=Y&&te,g}function P(t){for(var e=0,n=t.length;n>e;e++)t[e]=p(t[e],{$$isolateScope:!0})}function U(e,r,o,u,l,c,f){if(r===l)return null;var d=null;if(i.hasOwnProperty(r))for(var h,v=t.get(r+a),g=0,m=v.length;m>g;g++)try{h=v[g],(u===n||u>h.priority)&&-1!=h.restrict.indexOf(o)&&(c&&(h=p(h,{$$start:c,$$end:f})),e.push(h),d=h)}catch(y){s(y)}return d}function I(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;o(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),o(e,function(e,o){"class"==o?(A(i,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==o?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==o.charAt(0)||t.hasOwnProperty(o)||(t[o]=e,r[o]=n[o])})}function z(t,e,n,r,i,a,u,s){var l,c,p=[],v=e[0],g=t.shift(),m=f({},g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),y=k(g.templateUrl)?g.templateUrl(e,n):g.templateUrl;return e.empty(),d.get(C.getTrustedResourceUrl(y),{cache:h}).success(function(f){var d,h,x,$;if(f=re(f),g.replace){if(x=fr("<div>"+$r(f)+"</div>").contents(),d=x[0],1!=x.length||1!==d.nodeType)throw Ir("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,y);h={$attr:{}},Z(r,e,d);var w=j(d,[],h);b(g.scope)&&P(w),t=w.concat(t),I(n,h)}else d=v,e.html(f);for(t.unshift(m),l=q(t,d,n,i,e,g,a,u,s),o(r,function(t,n){t==d&&(r[n]=e[0])}),c=T(e[0].childNodes,i);p.length;){var M=p.shift(),k=p.shift(),C=p.shift(),_=p.shift(),S=e[0];if(k!==v){var E=k.className;S=de(d),Z(C,fr(k),S),A(fr(S),E)}$=l.transclude?N(M,l.transclude):_,l(c,M,S,r,$)}p=null}).error(function(t,e,n,r){throw Ir("tpload","Failed to load template: {0}",r.url)}),function(t,e,n,r,i){p?(p.push(e),p.push(n),p.push(r),p.push(i)):l(c,e,n,r,i)}}function B(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function W(t,e,n,r){if(e)throw Ir("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",e.name,n.name,t,V(r))}function Y(t,e){var n=r(e,!0);n&&t.push({priority:0,compile:g(function(t,e){var r=e.parent(),i=r.data("$binding")||[];i.push(n),A(r.data("$binding",i),"ng-binding"),t.$watch(n,function(t){e[0].nodeValue=t})})})}function X(t,e){if("srcdoc"==e)return C.HTML;var n=hr(t);return"xlinkHref"==e||"FORM"==n&&"action"==e||"IMG"!=n&&("src"==e||"ngSrc"==e)?C.RESOURCE_URL:void 0}function J(t,e,n,i){var o=r(n,!0);if(o){if("multiple"===i&&"SELECT"===hr(t))throw Ir("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",V(t));e.push({priority:100,compile:function(){return{pre:function(e,n,a){var u=a.$$observers||(a.$$observers={});if(c.test(i))throw Ir("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");o=r(a[i],!0,X(t,i)),o&&(a[i]=o(e),(u[i]||(u[i]=[])).$$inter=!0,(a.$$observers&&a.$$observers[i].$$scope||e).$watch(o,function(t,e){"class"===i&&t!=e?a.$updateClass(t,e):a.$set(i,t)}))}}}})}}function Z(t,n,r){var i,o,a=n[0],u=n.length,s=a.parentNode;if(t)for(i=0,o=t.length;o>i;i++)if(t[i]==a){t[i++]=r;for(var l=i,c=l+u-1,f=t.length;f>l;l++,c++)f>c?t[l]=t[c]:delete t[l];t.length-=u-1;break}s&&s.replaceChild(r,a);var d=e.createDocumentFragment();d.appendChild(a),r[fr.expando]=a[fr.expando];for(var p=1,h=n.length;h>p;p++){var v=n[p];fr(v).remove(),d.appendChild(v),delete n[p]}n[0]=r,n.length=1}function G(t,e){return f(function(){return t.apply(null,arguments)},t,e)}var K=function(t,e){this.$$element=t,this.$attr=e||{}};K.prototype={$normalize:qe,$addClass:function(t){t&&t.length>0&&_.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&_.removeClass(this.$$element,t)},$updateClass:function(t,e){this.$removeClass(Pe(e,t)),this.$addClass(Pe(t,e))},$set:function(t,e,r,i){var a,u=Ce(this.$$element[0],t);u&&(this.$$element.prop(t,e),i=u),this[t]=e,i?this.$attr[t]=i:(i=this.$attr[t],i||(this.$attr[t]=i=Q(t,"-"))),a=hr(this.$$element),("A"===a&&"href"===t||"IMG"===a&&"src"===t)&&(this[t]=e=S(e,"src"===t)),r!==!1&&(null===e||e===n?this.$$element.removeAttr(i):this.$$element.attr(i,e));var l=this.$$observers;l&&o(l[t],function(t){try{t(e)}catch(n){s(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers={}),i=r[t]||(r[t]=[]);return i.push(e),$.$evalAsync(function(){i.$$inter||e(n[t])}),e}};var te=r.startSymbol(),ne=r.endSymbol(),re="{{"==te||"}}"==ne?v:function(t){return t.replace(/\{\{/g,te).replace(/}}/g,ne)},ie=/^ngAttr[A-Z]/;return E}]}function qe(t){return le(t.replace(zr,""))}function Pe(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],u=0;u<i.length;u++)if(a==i[u])continue t;n+=(n.length>0?" ":"")+a}return n}function He(){var t={},e=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(e,n){re(e,"controller"),b(e)?f(t,e):t[e]=n},this.$get=["$injector","$window",function(n,i){return function(o,a){var u,s,l,c;if(x(o)&&(s=o.match(e),l=s[1],c=s[3],o=t.hasOwnProperty(l)?t[l]:ie(a.$scope,l,!0)||ie(i,l,!0),ne(o,l,!0)),u=n.instantiate(o,a),c){if(!a||"object"!=typeof a.$scope)throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",l||o.name,c);a.$scope[c]=u}return u}}]}function Fe(){this.$get=["$window",function(t){return fr(t.document)}]}function Ue(){this.$get=["$log",function(t){return function(){t.error.apply(t,arguments)}}]}function Ie(t){var e,n,r,i={};return t?(o(t.split("\n"),function(t){r=t.indexOf(":"),e=ar($r(t.substr(0,r))),n=$r(t.substr(r+1)),e&&(i[e]?i[e]+=", "+n:i[e]=n)}),i):i}function ze(t){var e=b(t)?t:n;return function(n){return e||(e=Ie(t)),n?e[ar(n)]||null:e}}function Be(t,e,n){return k(n)?n(t,e):(o(n,function(n){t=n(t,e)}),t)}function Ve(t){return t>=200&&300>t}function We(){var t=/^\s*(\[|\{[^\{])/,e=/[\}\]]\s*$/,r=/^\)\]\}',?\n/,i={"Content-Type":"application/json;charset=utf-8"},a=this.defaults={transformResponse:[function(n){return x(n)&&(n=n.replace(r,""),t.test(n)&&e.test(n)&&(n=z(n))),n}],transformRequest:[function(t){return b(t)&&!E(t)?I(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:L(i),put:L(i),patch:L(i)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},s=this.interceptors=[],l=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(t,e,r,i,c,d){function p(t){function r(t){var e=f({},t,{data:Be(t.data,t.headers,u.transformResponse)});return Ve(t.status)?e:c.reject(e)}function i(t){function e(t){var e;o(t,function(n,r){k(n)&&(e=n(),null!=e?t[r]=e:delete t[r])})}var n,r,i,u=a.headers,s=f({},t.headers);u=f({},u.common,u[ar(t.method)]),e(u),e(s);t:for(n in u){r=ar(n);for(i in s)if(ar(i)===r)continue t;s[n]=u[n]}return s}var u={transformRequest:a.transformRequest,transformResponse:a.transformResponse},s=i(t);f(u,t),u.headers=s,u.method=ur(u.method);var l=Ln(u.url)?e.cookies()[u.xsrfCookieName||a.xsrfCookieName]:n;l&&(s[u.xsrfHeaderName||a.xsrfHeaderName]=l);var d=function(t){s=t.headers;var e=Be(t.data,ze(s),t.transformRequest);return m(t.data)&&o(s,function(t,e){"content-type"===ar(e)&&delete s[e]}),m(t.withCredentials)&&!m(a.withCredentials)&&(t.withCredentials=a.withCredentials),g(t,e,s).then(r,r)},p=[d,n],h=c.when(u);for(o(C,function(t){(t.request||t.requestError)&&p.unshift(t.request,t.requestError),(t.response||t.responseError)&&p.push(t.response,t.responseError)});p.length;){var v=p.shift(),y=p.shift();h=h.then(v,y)}return h.success=function(t){return h.then(function(e){t(e.data,e.status,e.headers,u)}),h},h.error=function(t){return h.then(null,function(e){t(e.data,e.status,e.headers,u)}),h},h}function h(){o(arguments,function(t){p[t]=function(e,n){return p(f(n||{},{method:t,url:e}))}})}function v(){o(arguments,function(t){p[t]=function(e,n,r){return p(f(r||{},{method:t,url:e,data:n}))}})}function g(e,n,r){function o(t,e,n){l&&(Ve(t)?l.put(v,[t,e,Ie(n)]):l.remove(v)),u(e,t,n),i.$$phase||i.$apply()}function u(t,n,r){n=Math.max(n,0),(Ve(n)?d.resolve:d.reject)({data:t,status:n,headers:ze(r),config:e})}function s(){var t=j(p.pendingRequests,e);-1!==t&&p.pendingRequests.splice(t,1)}var l,f,d=c.defer(),h=d.promise,v=$(e.url,e.params);if(p.pendingRequests.push(e),h.then(s,s),(e.cache||a.cache)&&e.cache!==!1&&"GET"==e.method&&(l=b(e.cache)?e.cache:b(a.cache)?a.cache:w),l)if(f=l.get(v),y(f)){if(f.then)return f.then(s,s),f;M(f)?u(f[1],f[0],L(f[2])):u(f,200,{})}else l.put(v,h);return m(f)&&t(e.method,v,n,o,r,e.timeout,e.withCredentials,e.responseType),h}function $(t,e){if(!e)return t;var n=[];return u(e,function(t,e){null===t||m(t)||(M(t)||(t=[t]),o(t,function(t){b(t)&&(t=I(t)),n.push(Z(e)+"="+Z(t))}))}),t+(-1==t.indexOf("?")?"?":"&")+n.join("&")}var w=r("$http"),C=[];return o(s,function(t){C.unshift(x(t)?d.get(t):d.invoke(t))}),o(l,function(t,e){var n=x(t)?d.get(t):d.invoke(t);C.splice(e,0,{response:function(t){return n(c.when(t))},responseError:function(t){return n(c.reject(t))}})}),p.pendingRequests=[],h("get","delete","head","jsonp"),v("post","put"),p.defaults=a,p}]}function Ye(e){if(8>=cr&&(!e.match(/^(get|post|head|put|delete|options)$/i)||!t.XMLHttpRequest))return new t.ActiveXObject("Microsoft.XMLHTTP");if(t.XMLHttpRequest)return new t.XMLHttpRequest;throw r("$httpBackend")("noxhr","This browser does not support XMLHttpRequest.")}function Xe(){this.$get=["$browser","$window","$document",function(t,e,n){return Je(t,Ye,t.defer,e.angular.callbacks,n[0])}]}function Je(t,e,n,r,i){function a(t,e){var n=i.createElement("script"),r=function(){n.onreadystatechange=n.onload=n.onerror=null,i.body.removeChild(n),e&&e()};return n.type="text/javascript",n.src=t,cr&&8>=cr?n.onreadystatechange=function(){/loaded|complete/.test(n.readyState)&&r()}:n.onload=n.onerror=function(){r()},i.body.appendChild(n),r}var u=-1;return function(i,s,l,c,f,d,p,v){function g(){b=u,$&&$(),w&&w.abort()}function m(e,r,i,o){k&&n.cancel(k),$=w=null,r=0===r?i?200:404:r,r=1223==r?204:r,e(r,i,o),t.$$completeOutstandingRequest(h)}var b;if(t.$$incOutstandingRequestCount(),s=s||t.url(),"jsonp"==ar(i)){var x="_"+(r.counter++).toString(36);r[x]=function(t){r[x].data=t};var $=a(s.replace("JSON_CALLBACK","angular.callbacks."+x),function(){r[x].data?m(c,200,r[x].data):m(c,b||-2),r[x]=br.noop})}else{var w=e(i);if(w.open(i,s,!0),o(f,function(t,e){y(t)&&w.setRequestHeader(e,t)}),w.onreadystatechange=function(){if(w&&4==w.readyState){var t=null,e=null;b!==u&&(t=w.getAllResponseHeaders(),e="response"in w?w.response:w.responseText),m(c,b||w.status,e,t)}},p&&(w.withCredentials=!0),v)try{w.responseType=v}catch(M){if("json"!==v)throw M}w.send(l||null)}if(d>0)var k=n(g,d);else d&&d.then&&d.then(g)}}function Ze(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(o,s,l){for(var c,f,d,p,h=0,v=[],g=o.length,y=!1,b=[];g>h;)-1!=(c=o.indexOf(t,h))&&-1!=(f=o.indexOf(e,c+a))?(h!=c&&v.push(o.substring(h,c)),v.push(d=n(p=o.substring(c+a,f))),d.exp=p,h=f+u,y=!0):(h!=g&&v.push(o.substring(h)),h=g);if((g=v.length)||(v.push(""),g=1),l&&v.length>1)throw Br("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",o);return!s||y?(b.length=g,d=function(t){try{for(var e,n=0,a=g;a>n;n++)"function"==typeof(e=v[n])&&(e=e(t),e=l?i.getTrusted(l,e):i.valueOf(e),null===e||m(e)?e="":"string"!=typeof e&&(e=I(e))),b[n]=e;return b.join("")}catch(u){var s=Br("interr","Can't interpolate: {0}\n{1}",o,u.toString());r(s)}},d.exp=o,d.parts=v,d):void 0}var a=t.length,u=e.length;return o.startSymbol=function(){return t},o.endSymbol=function(){return e},o}]}function Ge(){this.$get=["$rootScope","$window","$q",function(t,e,n){function r(r,o,a,u){var s=e.setInterval,l=e.clearInterval,c=n.defer(),f=c.promise,d=0,p=y(u)&&!u;return a=y(a)?a:0,f.then(null,null,r),f.$$intervalId=s(function(){c.notify(d++),a>0&&d>=a&&(c.resolve(d),l(f.$$intervalId),delete i[f.$$intervalId]),p||t.$apply()},o),i[f.$$intervalId]=c,f}var i={};return r.cancel=function(t){return t&&t.$$intervalId in i?(i[t.$$intervalId].reject("canceled"),clearInterval(t.$$intervalId),delete i[t.$$intervalId],!0):!1},r}]}function Ke(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"\xa4",posSuf:"",negPre:"(\xa4",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(t){return 1===t?"one":"other"}}}}function Qe(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=J(e[n]);return e.join("/")}function tn(t,e,n){var r=Dn(t,n);e.$$protocol=r.protocol,e.$$host=r.hostname,e.$$port=d(r.port)||Wr[r.protocol]||null}function en(t,e,n){var r="/"!==t.charAt(0);r&&(t="/"+t);var i=Dn(t,n);e.$$path=decodeURIComponent(r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),e.$$search=Y(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function nn(t,e){return 0===e.indexOf(t)?e.substr(t.length):void 0}function rn(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function on(t){return t.substr(0,rn(t).lastIndexOf("/")+1)}function an(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function un(t,e){this.$$html5=!0,e=e||"";var r=on(t);tn(t,this,t),this.$$parse=function(e){var n=nn(r,e);if(!x(n))throw Yr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,r);en(n,this,t),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=X(this.$$search),e=this.$$hash?"#"+J(this.$$hash):"";this.$$url=Qe(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=r+this.$$url.substr(1)},this.$$rewrite=function(i){var o,a;return(o=nn(t,i))!==n?(a=o,(o=nn(e,o))!==n?r+(nn("/",o)||o):t+a):(o=nn(r,i))!==n?r+o:r==i+"/"?r:void 0}}function sn(t,e){var n=on(t);tn(t,this,t),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/?.*?:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var o=nn(t,r)||nn(n,r),a="#"==o.charAt(0)?nn(e,o):this.$$html5?o:"";if(!x(a))throw Yr("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',r,e);en(a,this,t),this.$$path=i(this.$$path,a,t),this.$$compose()},this.$$compose=function(){var n=X(this.$$search),r=this.$$hash?"#"+J(this.$$hash):"";this.$$url=Qe(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=t+(this.$$url?e+this.$$url:"")},this.$$rewrite=function(e){return rn(t)==rn(e)?e:void 0}}function ln(t,e){this.$$html5=!0,sn.apply(this,arguments);var n=on(t);this.$$rewrite=function(r){var i;return t==rn(r)?r:(i=nn(n,r))?t+e+i:n===r+"/"?n:void 0}}function cn(t){return function(){return this[t]}}function fn(t,e){return function(n){return m(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function dn(){var e="",n=!1;this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(t){return y(t)?(n=t,this):n},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,i,o,a){function u(t){r.$broadcast("$locationChangeSuccess",s.absUrl(),t)}var s,l,c,f=i.baseHref(),d=i.url();n?(c=an(d)+(f||"/"),l=o.history?un:ln):(c=rn(d),l=sn),s=new l(c,"#"+e),s.$$parse(s.$$rewrite(d)),a.on("click",function(e){if(!e.ctrlKey&&!e.metaKey&&2!=e.which){for(var n=fr(e.target);"a"!==ar(n[0].nodeName);)if(n[0]===a[0]||!(n=n.parent())[0])return;var o=n.prop("href");b(o)&&"[object SVGAnimatedString]"===o.toString()&&(o=Dn(o.animVal).href);var u=s.$$rewrite(o);o&&!n.attr("target")&&u&&!e.isDefaultPrevented()&&(e.preventDefault(),u!=i.url()&&(s.$$parse(u),r.$apply(),t.angular["ff-684208-preventDefault"]=!0))}}),s.absUrl()!=d&&i.url(s.absUrl(),!0),i.onUrlChange(function(t){s.absUrl()!=t&&(r.$evalAsync(function(){var e=s.absUrl();s.$$parse(t),r.$broadcast("$locationChangeStart",t,e).defaultPrevented?(s.$$parse(e),i.url(e)):u(e)}),r.$$phase||r.$digest())});var p=0;return r.$watch(function(){var t=i.url(),e=s.$$replace;return p&&t==s.absUrl()||(p++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",s.absUrl(),t).defaultPrevented?s.$$parse(t):(i.url(s.absUrl(),e),u(t))})),s.$$replace=!1,p}),s}]}function pn(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=["$window",function(n){function r(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function i(t){var e=n.console||{},i=e[t]||e.log||h,a=!1;try{a=!!i.apply}catch(u){}return a?function(){var t=[];return o(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function hn(t,e){if("constructor"===t)throw Jr("isecfld",'Referencing "constructor" field in Angular expressions is disallowed! Expression: {0}',e);return t}function vn(t,e){if(t){if(t.constructor===t)throw Jr("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.document&&t.location&&t.alert&&t.setInterval)throw Jr("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.on&&t.find))throw Jr("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e)}return t}function gn(t,e,r,i,o){o=o||{};for(var a,u=e.split("."),s=0;u.length>1;s++){a=hn(u.shift(),i);var l=t[a];l||(l={},t[a]=l),t=l,t.then&&o.unwrapPromises&&(Xr(i),"$$v"in t||!function(t){t.then(function(e){t.$$v=e})}(t),t.$$v===n&&(t.$$v={}),t=t.$$v)}return a=hn(u.shift(),i),t[a]=r,r}function mn(t,e,r,i,o,a,u){return hn(t,a),hn(e,a),hn(r,a),hn(i,a),hn(o,a),u.unwrapPromises?function(u,s){var l,c=s&&s.hasOwnProperty(t)?s:u;return null==c?c:(c=c[t],c&&c.then&&(Xr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(t){l.$$v=t})),c=c.$$v),e?null==c?n:(c=c[e],c&&c.then&&(Xr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(t){l.$$v=t})),c=c.$$v),r?null==c?n:(c=c[r],c&&c.then&&(Xr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(t){l.$$v=t})),c=c.$$v),i?null==c?n:(c=c[i],c&&c.then&&(Xr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(t){l.$$v=t})),c=c.$$v),o?null==c?n:(c=c[o],c&&c.then&&(Xr(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(t){l.$$v=t})),c=c.$$v),c):c):c):c):c)}:function(a,u){var s=u&&u.hasOwnProperty(t)?u:a;return null==s?s:(s=s[t],e?null==s?n:(s=s[e],r?null==s?n:(s=s[r],i?null==s?n:(s=s[i],o?null==s?n:s=s[o]:s):s):s):s)}}function yn(t,e){return hn(t,e),function(e,r){return null==e?n:(r&&r.hasOwnProperty(t)?r:e)[t]}}function bn(t,e,r){return hn(t,r),hn(e,r),function(r,i){return null==r?n:(r=(i&&i.hasOwnProperty(t)?i:r)[t],null==r?n:r[e])}}function xn(t,e,r){if(ei.hasOwnProperty(t))return ei[t];var i,a=t.split("."),u=a.length;if(e.unwrapPromises||1!==u)if(e.unwrapPromises||2!==u)if(e.csp)i=6>u?mn(a[0],a[1],a[2],a[3],a[4],r,e):function(t,i){var o,s=0;do o=mn(a[s++],a[s++],a[s++],a[s++],a[s++],r,e)(t,i),i=n,t=o;while(u>s);return o};else{var s="var p;\n";o(a,function(t,n){hn(t,r),s+="if(s == null) return undefined;\ns="+(n?"s":'((k&&k.hasOwnProperty("'+t+'"))?k:s)')+'["'+t+'"];\n'+(e.unwrapPromises?'if (s && s.then) {\n pw("'+r.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n':"")}),s+="return s;";var l=new Function("s","k","pw",s);l.toString=g(s),i=e.unwrapPromises?function(t,e){return l(t,e,Xr)}:l}else i=bn(a[0],a[1],r);else i=yn(a[0],r);return"hasOwnProperty"!==t&&(ei[t]=i),i}function $n(){var t={},e={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(t){return y(t)?(e.unwrapPromises=!!t,this):e.unwrapPromises},this.logPromiseWarnings=function(t){return y(t)?(e.logPromiseWarnings=t,this):e.logPromiseWarnings},this.$get=["$filter","$sniffer","$log",function(n,r,i){return e.csp=r.csp,Xr=function(t){e.logPromiseWarnings&&!Zr.hasOwnProperty(t)&&(Zr[t]=!0,i.warn("[$parse] Promise found in the expression `"+t+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(r){var i;switch(typeof r){case"string":if(t.hasOwnProperty(r))return t[r];var o=new Qr(e),a=new ti(o,n,e);return i=a.parse(r,!1),"hasOwnProperty"!==r&&(t[r]=i),i;case"function":return r;default:return h}}}]}function wn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return Mn(function(e){t.$evalAsync(e)},e)}]}function Mn(t,e){function r(t){return t}function i(t){return l(t)}function a(t){var e=u(),n=0,r=M(t)?[]:{};return o(t,function(t,i){n++,s(t).then(function(t){r.hasOwnProperty(i)||(r[i]=t,--n||e.resolve(r))},function(t){r.hasOwnProperty(i)||e.reject(t)})}),0===n&&e.resolve(r),e.promise}var u=function(){var o,a,l=[];return a={resolve:function(e){if(l){var r=l;l=n,o=s(e),r.length&&t(function(){for(var t,e=0,n=r.length;n>e;e++)t=r[e],o.then(t[0],t[1],t[2])})}},reject:function(t){a.resolve(c(t))},notify:function(e){if(l){var n=l;l.length&&t(function(){for(var t,r=0,i=n.length;i>r;r++)t=n[r],t[2](e)})}},promise:{then:function(t,n,a){var s=u(),c=function(n){try{s.resolve((k(t)?t:r)(n))}catch(i){s.reject(i),e(i)}},f=function(t){try{s.resolve((k(n)?n:i)(t))}catch(r){s.reject(r),e(r)}},d=function(t){try{s.notify((k(a)?a:r)(t))}catch(n){e(n)}};return l?l.push([c,f,d]):o.then(c,f,d),s.promise},"catch":function(t){return this.then(null,t)},"finally":function(t){function e(t,e){var n=u();return e?n.resolve(t):n.reject(t),n.promise}function n(n,i){var o=null;try{o=(t||r)()}catch(a){return e(a,!1)}return o&&k(o.then)?o.then(function(){return e(n,i)},function(t){return e(t,!1)}):e(n,i)}return this.then(function(t){return n(t,!0)},function(t){return n(t,!1)})}}}},s=function(e){return e&&k(e.then)?e:{then:function(n){var r=u();return t(function(){r.resolve(n(e))}),r.promise}}},l=function(t){var e=u();return e.reject(t),e.promise},c=function(n){return{then:function(r,o){var a=u();return t(function(){try{a.resolve((k(o)?o:i)(n))}catch(t){a.reject(t),e(t)}}),a.promise}}},f=function(n,o,a,c){var f,d=u(),p=function(t){try{return(k(o)?o:r)(t)}catch(n){return e(n),l(n)}},h=function(t){try{return(k(a)?a:i)(t)}catch(n){return e(n),l(n)}},v=function(t){try{return(k(c)?c:r)(t)}catch(n){e(n)}};return t(function(){s(n).then(function(t){f||(f=!0,d.resolve(s(t).then(p,h,v)))},function(t){f||(f=!0,d.resolve(h(t)))},function(t){f||d.notify(v(t))})}),d.promise};return{defer:u,reject:l,when:f,all:a}}function kn(){var t=10,e=r("$rootScope"),n=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,a,u,s){function c(){this.$id=l(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this["this"]=this.$root=this,this.$$destroyed=!1,this.$$asyncQueue=[],this.$$postDigestQueue=[],this.$$listeners={},this.$$listenerCount={},this.$$isolateBindings={}}function f(t){if(m.$$phase)throw e("inprog","{0} already in progress",m.$$phase);m.$$phase=t}function d(){m.$$phase=null}function p(t,e){var n=u(t);return ne(n,e),n}function v(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function g(){}c.prototype={constructor:c,$new:function(t){var e,n;return t?(n=new c,n.$root=this.$root,n.$$asyncQueue=this.$$asyncQueue,n.$$postDigestQueue=this.$$postDigestQueue):(e=function(){},e.prototype=this,n=new e,n.$id=l()),n["this"]=n,n.$$listeners={},n.$$listenerCount={},n.$parent=this,n.$$watchers=n.$$nextSibling=n.$$childHead=n.$$childTail=null,n.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=n,this.$$childTail=n):this.$$childHead=this.$$childTail=n,n},$watch:function(t,e,r){var i=this,o=p(t,"watch"),a=i.$$watchers,u={fn:e,last:g,get:o,exp:t,eq:!!r};if(n=null,!k(e)){var s=p(e||h,"listener");u.fn=function(t,e,n){s(n)}}if("string"==typeof t&&o.constant){var l=u.fn;u.fn=function(t,e,n){l.call(this,t,e,n),D(a,u)}}return a||(a=i.$$watchers=[]),a.unshift(u),function(){D(a,u),n=null}},$watchCollection:function(t,e){function n(){a=c(s);var t,e;if(b(a))if(i(a)){o!==f&&(o=f,p=o.length=0,l++),t=a.length,p!==t&&(l++,o.length=p=t);for(var n=0;t>n;n++)o[n]!==a[n]&&(l++,o[n]=a[n])}else{o!==d&&(o=d={},p=0,l++),t=0;for(e in a)a.hasOwnProperty(e)&&(t++,o.hasOwnProperty(e)?o[e]!==a[e]&&(l++,o[e]=a[e]):(p++,o[e]=a[e],l++));if(p>t){l++;for(e in o)o.hasOwnProperty(e)&&!a.hasOwnProperty(e)&&(p--,delete o[e])}}else o!==a&&(o=a,l++);return l}function r(){e(a,o,s)}var o,a,s=this,l=0,c=u(t),f=[],d={},p=0;return this.$watch(n,r)},$digest:function(){var r,i,o,u,s,l,c,p,h,v,m,y=this.$$asyncQueue,b=this.$$postDigestQueue,x=t,$=this,w=[];f("$digest"),n=null;do{for(l=!1,p=$;y.length;){try{m=y.shift(),m.scope.$eval(m.expression)}catch(M){d(),a(M)}n=null}t:do{if(u=p.$$watchers)for(s=u.length;s--;)try{if(r=u[s])if((i=r.get(p))===(o=r.last)||(r.eq?O(i,o):"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))){if(r===n){l=!1;break t}}else l=!0,n=r,r.last=r.eq?L(i):i,r.fn(i,o===g?i:o,p),5>x&&(h=4-x,w[h]||(w[h]=[]),v=k(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,v+="; newVal: "+I(i)+"; oldVal: "+I(o),w[h].push(v))}catch(M){d(),a(M)}if(!(c=p.$$childHead||p!==$&&p.$$nextSibling))for(;p!==$&&!(c=p.$$nextSibling);)p=p.$parent}while(p=c);if((l||y.length)&&!x--)throw d(),e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,I(w))}while(l||y.length);for(d();b.length;)try{b.shift()()}catch(M){a(M)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this!==m&&(o(this.$$listenerCount,F(null,v,this)),t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null)}},$eval:function(t,e){return u(t)(this,e)},$evalAsync:function(t){m.$$phase||m.$$asyncQueue.length||s.defer(function(){m.$$asyncQueue.length&&m.$digest()
  }),this.$$asyncQueue.push({scope:this,expression:t})},$$postDigest:function(t){this.$$postDigestQueue.push(t)},$apply:function(t){try{return f("$apply"),this.$eval(t)}catch(e){a(e)}finally{d();try{m.$digest()}catch(e){throw a(e),e}}},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++;while(r=r.$parent);var i=this;return function(){n[j(n,e)]=null,v(i,1,t)}},$emit:function(t){var e,n,r,i=[],o=this,u=!1,s={name:t,targetScope:o,stopPropagation:function(){u=!0},preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1},l=P([s],arguments,1);do{for(e=o.$$listeners[t]||i,s.currentScope=o,n=0,r=e.length;r>n;n++)if(e[n])try{e[n].apply(null,l)}catch(c){a(c)}else e.splice(n,1),n--,r--;if(u)return s;o=o.$parent}while(o);return s},$broadcast:function(t){for(var e,n,r,i=this,o=i,u=i,s={name:t,targetScope:i,preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1},l=P([s],arguments,1);o=u;){for(s.currentScope=o,e=o.$$listeners[t]||[],n=0,r=e.length;r>n;n++)if(e[n])try{e[n].apply(null,l)}catch(c){a(c)}else e.splice(n,1),n--,r--;if(!(u=o.$$listenerCount[t]&&o.$$childHead||o!==i&&o.$$nextSibling))for(;o!==i&&!(u=o.$$nextSibling);)o=o.$parent}return s}};var m=new c;return m}]}function Cn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*(https?|ftp|file):|data:image\//;this.aHrefSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return cr&&!(cr>=8)||(i=Dn(n).href,""===i||i.match(o))?n:"unsafe:"+i}}}function _n(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Sn(t){if("self"===t)return t;if(x(t)){if(t.indexOf("***")>-1)throw ni("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=_n(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(C(t))return new RegExp("^"+t.source+"$");throw ni("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function En(t){var e=[];return y(t)&&o(t,function(t){e.push(Sn(t))}),e}function An(){this.SCE_CONTEXTS=ri;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=En(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=En(t)),e},this.$get=["$injector",function(r){function i(t,e){return"self"===t?Ln(e):!!t.exec(e.href)}function o(n){var r,o,a=Dn(n.toString()),u=!1;for(r=0,o=t.length;o>r;r++)if(i(t[r],a)){u=!0;break}if(u)for(r=0,o=e.length;o>r;r++)if(i(e[r],a)){u=!1;break}return u}function a(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function u(t,e){var r=d.hasOwnProperty(t)?d[t]:null;if(!r)throw ni("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||e===n||""===e)return e;if("string"!=typeof e)throw ni("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new r(e)}function s(t){return t instanceof f?t.$$unwrapTrustedValue():t}function l(t,e){if(null===e||e===n||""===e)return e;var r=d.hasOwnProperty(t)?d[t]:null;if(r&&e instanceof r)return e.$$unwrapTrustedValue();if(t===ri.RESOURCE_URL){if(o(e))return e;throw ni("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",e.toString())}if(t===ri.HTML)return c(e);throw ni("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(){throw ni("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(c=r.get("$sanitize"));var f=a(),d={};return d[ri.HTML]=a(f),d[ri.CSS]=a(f),d[ri.URL]=a(f),d[ri.JS]=a(f),d[ri.RESOURCE_URL]=a(d[ri.URL]),{trustAs:u,getTrusted:l,valueOf:s}}]}function Tn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sniffer","$sceDelegate",function(e,n,r){if(t&&n.msie&&n.msieDocumentMode<8)throw ni("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var i=L(ri);i.isEnabled=function(){return t},i.trustAs=r.trustAs,i.getTrusted=r.getTrusted,i.valueOf=r.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=v),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:function(e,n){return i.getTrusted(t,r(e,n))}};var a=i.parseAs,u=i.getTrusted,s=i.trustAs;return o(ri,function(t,e){var n=ar(e);i[le("parse_as_"+n)]=function(e){return a(t,e)},i[le("get_trusted_"+n)]=function(e){return u(t,e)},i[le("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function Nn(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=d((/android (\d+)/.exec(ar((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),u=e[0]||{},s=u.documentMode,l=/^(Moz|webkit|O|ms)(?=[A-Z])/,c=u.body&&u.body.style,f=!1,p=!1;if(c){for(var h in c)if(r=l.exec(h)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),f=!!("transition"in c||n+"Transition"in c),p=!!("animation"in c||n+"Animation"in c),!o||f&&p||(f=x(u.body.style.webkitTransition),p=x(u.body.style.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||4>o||a),hashchange:"onhashchange"in t&&(!s||s>7),hasEvent:function(t){if("input"==t&&9==cr)return!1;if(m(i[t])){var e=u.createElement("div");i[t]="on"+t in e}return i[t]},csp:q(),vendorPrefix:n,transitions:f,animations:p,android:o,msie:cr,msieDocumentMode:s}}]}function jn(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(t,e,n,r){function i(i,a,u){var s,l=n.defer(),c=l.promise,f=y(u)&&!u;return s=e.defer(function(){try{l.resolve(i())}catch(e){l.reject(e),r(e)}finally{delete o[c.$$timeoutId]}f||t.$apply()},a),c.$$timeoutId=s,o[s]=l,c}var o={};return i.cancel=function(t){return t&&t.$$timeoutId in o?(o[t.$$timeoutId].reject("canceled"),delete o[t.$$timeoutId],e.defer.cancel(t.$$timeoutId)):!1},i}]}function Dn(t){var e=t;return cr&&(ii.setAttribute("href",e),e=ii.href),ii.setAttribute("href",e),{href:ii.href,protocol:ii.protocol?ii.protocol.replace(/:$/,""):"",host:ii.host,search:ii.search?ii.search.replace(/^\?/,""):"",hash:ii.hash?ii.hash.replace(/^#/,""):"",hostname:ii.hostname,port:ii.port,pathname:"/"===ii.pathname.charAt(0)?ii.pathname:"/"+ii.pathname}}function Ln(t){var e=x(t)?Dn(t):t;return e.protocol===oi.protocol&&e.host===oi.host}function Rn(){this.$get=g(t)}function On(t){function e(r,i){if(b(r)){var a={};return o(r,function(t,n){a[n]=e(n,t)}),a}return t.factory(r+n,i)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Pn),e("date",Wn),e("filter",qn),e("json",Yn),e("limitTo",Xn),e("lowercase",ci),e("number",Hn),e("orderBy",Jn),e("uppercase",fi)}function qn(){return function(t,e,n){if(!M(t))return t;var r=typeof n,i=[];i.check=function(t){for(var e=0;e<i.length;e++)if(!i[e](t))return!1;return!0},"function"!==r&&(n="boolean"===r&&n?function(t,e){return br.equals(t,e)}:function(t,e){return e=(""+e).toLowerCase(),(""+t).toLowerCase().indexOf(e)>-1});var o=function(t,e){if("string"==typeof e&&"!"===e.charAt(0))return!o(t,e.substr(1));switch(typeof t){case"boolean":case"number":case"string":return n(t,e);case"object":switch(typeof e){case"object":return n(t,e);default:for(var r in t)if("$"!==r.charAt(0)&&o(t[r],e))return!0}return!1;case"array":for(var i=0;i<t.length;i++)if(o(t[i],e))return!0;return!1;default:return!1}};switch(typeof e){case"boolean":case"number":case"string":e={$:e};case"object":for(var a in e)!function(t){"undefined"!=typeof e[t]&&i.push(function(n){return o("$"==t?n:n&&n[t],e[t])})}(a);break;case"function":i.push(e);break;default:return t}for(var u=[],s=0;s<t.length;s++){var l=t[s];i.check(l)&&u.push(l)}return u}}function Pn(t){var e=t.NUMBER_FORMATS;return function(t,n){return m(n)&&(n=e.CURRENCY_SYM),Fn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,2).replace(/\u00A4/g,n)}}function Hn(t){var e=t.NUMBER_FORMATS;return function(t,n){return Fn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Fn(t,e,n,r,i){if(isNaN(t)||!isFinite(t))return"";var o=0>t;t=Math.abs(t);var a=t+"",u="",s=[],l=!1;if(-1!==a.indexOf("e")){var c=a.match(/([\d\.]+)e(-?)(\d+)/);c&&"-"==c[2]&&c[3]>i+1?a="0":(u=a,l=!0)}if(l)i>0&&t>-1&&1>t&&(u=t.toFixed(i));else{var f=(a.split(ai)[1]||"").length;m(i)&&(i=Math.min(Math.max(e.minFrac,f),e.maxFrac));var d=Math.pow(10,i);t=Math.round(t*d)/d;var p=(""+t).split(ai),h=p[0];p=p[1]||"";var v,g=0,y=e.lgSize,b=e.gSize;if(h.length>=y+b)for(g=h.length-y,v=0;g>v;v++)(g-v)%b===0&&0!==v&&(u+=n),u+=h.charAt(v);for(v=g;v<h.length;v++)(h.length-v)%y===0&&0!==v&&(u+=n),u+=h.charAt(v);for(;p.length<i;)p+="0";i&&"0"!==i&&(u+=r+p.substr(0,i))}return s.push(o?e.negPre:e.posPre),s.push(u),s.push(o?e.negSuf:e.posSuf),s.join("")}function Un(t,e,n){var r="";for(0>t&&(r="-",t=-t),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),r+t}function In(t,e,n,r){return n=n||0,function(i){var o=i["get"+t]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Un(o,e,r)}}function zn(t,e){return function(n,r){var i=n["get"+t](),o=ur(e?"SHORT"+t:t);return r[o][i]}}function Bn(t){var e=-1*t.getTimezoneOffset(),n=e>=0?"+":"";return n+=Un(Math[e>0?"floor":"ceil"](e/60),2)+Un(Math.abs(e%60),2)}function Vn(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function Wn(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,a=e[8]?r.setUTCFullYear:r.setFullYear,u=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=d(e[9]+e[10]),o=d(e[9]+e[11])),a.call(r,d(e[1]),d(e[2])-1,d(e[3]));var s=d(e[4]||0)-i,l=d(e[5]||0)-o,c=d(e[6]||0),f=Math.round(1e3*parseFloat("0."+(e[7]||0)));return u.call(r,s,l,c,f),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r){var i,a,u="",s=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,x(n)&&(n=li.test(n)?d(n):e(n)),$(n)&&(n=new Date(n)),!w(n))return n;for(;r;)a=si.exec(r),a?(s=P(s,a,1),r=s.pop()):(s.push(r),r=null);return o(s,function(e){i=ui[e],u+=i?i(n,t.DATETIME_FORMATS):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Yn(){return function(t){return I(t,!0)}}function Xn(){return function(t,e){if(!M(t)&&!x(t))return t;if(e=d(e),x(t))return e?e>=0?t.slice(0,e):t.slice(e,t.length):"";var n,r,i=[];for(e>t.length?e=t.length:e<-t.length&&(e=-t.length),e>0?(n=0,r=e):(n=t.length+e,r=t.length);r>n;n++)i.push(t[n]);return i}}function Jn(t){return function(e,n,r){function i(t,e){for(var r=0;r<n.length;r++){var i=n[r](t,e);if(0!==i)return i}return 0}function o(t,e){return B(e)?function(e,n){return t(n,e)}:t}function a(t,e){var n=typeof t,r=typeof e;return n==r?("string"==n&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e?0:e>t?-1:1):r>n?-1:1}if(!M(e))return e;if(!n)return e;n=M(n)?n:[n],n=T(n,function(e){var n=!1,r=e||v;return x(e)&&(("+"==e.charAt(0)||"-"==e.charAt(0))&&(n="-"==e.charAt(0),e=e.substring(1)),r=t(e)),o(function(t,e){return a(r(t),r(e))},n)});for(var u=[],s=0;s<e.length;s++)u.push(e[s]);return u.sort(o(i,r))}}function Zn(t){return k(t)&&(t={link:t}),t.restrict=t.restrict||"AC",g(t)}function Gn(t,e){function n(e,n){n=n?"-"+Q(n,"-"):"",t.removeClass((e?ki:Mi)+n).addClass((e?Mi:ki)+n)}var r=this,i=t.parent().controller("form")||hi,a=0,u=r.$error={},s=[];r.$name=e.name||e.ngForm,r.$dirty=!1,r.$pristine=!0,r.$valid=!0,r.$invalid=!1,i.$addControl(r),t.addClass(Ci),n(!0),r.$addControl=function(t){re(t.$name,"input"),s.push(t),t.$name&&(r[t.$name]=t)},r.$removeControl=function(t){t.$name&&r[t.$name]===t&&delete r[t.$name],o(u,function(e,n){r.$setValidity(n,!0,t)}),D(s,t)},r.$setValidity=function(t,e,o){var s=u[t];if(e)s&&(D(s,o),s.length||(a--,a||(n(e),r.$valid=!0,r.$invalid=!1),u[t]=!1,n(!0,t),i.$setValidity(t,!0,r)));else{if(a||n(e),s){if(N(s,o))return}else u[t]=s=[],a++,n(!1,t),i.$setValidity(t,!1,r);s.push(o),r.$valid=!1,r.$invalid=!0}},r.$setDirty=function(){t.removeClass(Ci).addClass(_i),r.$dirty=!0,r.$pristine=!1,i.$setDirty()},r.$setPristine=function(){t.removeClass(_i).addClass(Ci),r.$dirty=!1,r.$pristine=!0,o(s,function(t){t.$setPristine()})}}function Kn(t,e,r,i){return t.$setValidity(e,r),r?i:n}function Qn(t,e,n,i,o,a){if(!o.android){var u=!1;e.on("compositionstart",function(){u=!0}),e.on("compositionend",function(){u=!1})}var s=function(){if(!u){var r=e.val();B(n.ngTrim||"T")&&(r=$r(r)),i.$viewValue!==r&&(t.$$phase?i.$setViewValue(r):t.$apply(function(){i.$setViewValue(r)}))}};if(o.hasEvent("input"))e.on("input",s);else{var l,c=function(){l||(l=a.defer(function(){s(),l=null}))};e.on("keydown",function(t){var e=t.keyCode;91===e||e>15&&19>e||e>=37&&40>=e||c()}),o.hasEvent("paste")&&e.on("paste cut",c)}e.on("change",s),i.$render=function(){e.val(i.$isEmpty(i.$viewValue)?"":i.$viewValue)};var f,p,h=n.ngPattern;if(h){var v=function(t,e){return Kn(i,"pattern",i.$isEmpty(e)||t.test(e),e)};p=h.match(/^\/(.*)\/([gim]*)$/),p?(h=new RegExp(p[1],p[2]),f=function(t){return v(h,t)}):f=function(n){var i=t.$eval(h);if(!i||!i.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",h,i,V(e));return v(i,n)},i.$formatters.push(f),i.$parsers.push(f)}if(n.ngMinlength){var g=d(n.ngMinlength),m=function(t){return Kn(i,"minlength",i.$isEmpty(t)||t.length>=g,t)};i.$parsers.push(m),i.$formatters.push(m)}if(n.ngMaxlength){var y=d(n.ngMaxlength),b=function(t){return Kn(i,"maxlength",i.$isEmpty(t)||t.length<=y,t)};i.$parsers.push(b),i.$formatters.push(b)}}function tr(t,e,r,i,o,a){if(Qn(t,e,r,i,o,a),i.$parsers.push(function(t){var e=i.$isEmpty(t);return e||xi.test(t)?(i.$setValidity("number",!0),""===t?null:e?t:parseFloat(t)):(i.$setValidity("number",!1),n)}),i.$formatters.push(function(t){return i.$isEmpty(t)?"":""+t}),r.min){var u=function(t){var e=parseFloat(r.min);return Kn(i,"min",i.$isEmpty(t)||t>=e,t)};i.$parsers.push(u),i.$formatters.push(u)}if(r.max){var s=function(t){var e=parseFloat(r.max);return Kn(i,"max",i.$isEmpty(t)||e>=t,t)};i.$parsers.push(s),i.$formatters.push(s)}i.$formatters.push(function(t){return Kn(i,"number",i.$isEmpty(t)||$(t),t)})}function er(t,e,n,r,i,o){Qn(t,e,n,r,i,o);var a=function(t){return Kn(r,"url",r.$isEmpty(t)||yi.test(t),t)};r.$formatters.push(a),r.$parsers.push(a)}function nr(t,e,n,r,i,o){Qn(t,e,n,r,i,o);var a=function(t){return Kn(r,"email",r.$isEmpty(t)||bi.test(t),t)};r.$formatters.push(a),r.$parsers.push(a)}function rr(t,e,n,r){m(n.name)&&e.attr("name",l()),e.on("click",function(){e[0].checked&&t.$apply(function(){r.$setViewValue(n.value)})}),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function ir(t,e,n,r){var i=n.ngTrueValue,o=n.ngFalseValue;x(i)||(i=!0),x(o)||(o=!1),e.on("click",function(){t.$apply(function(){r.$setViewValue(e[0].checked)})}),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t!==i},r.$formatters.push(function(t){return t===i}),r.$parsers.push(function(t){return t?i:o})}function or(t,e){return t="ngClass"+t,function(){return{restrict:"AC",link:function(n,r,i){function a(t){if(e===!0||n.$index%2===e){var r=u(t||"");s?O(t,s)||i.$updateClass(r,u(s)):i.$addClass(r)}s=L(t)}function u(t){if(M(t))return t.join(" ");if(b(t)){var e=[];return o(t,function(t,n){t&&e.push(n)}),e.join(" ")}return t}var s;n.$watch(i[t],a,!0),i.$observe("class",function(){a(n.$eval(i[t]))}),"ngClass"!==t&&n.$watch("$index",function(r,o){var a=1&r;if(a!==o&1){var s=u(n.$eval(i[t]));a===e?i.$addClass(s):i.$removeClass(s)}})}}}}var ar=function(t){return x(t)?t.toLowerCase():t},ur=function(t){return x(t)?t.toUpperCase():t},sr=function(t){return x(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},lr=function(t){return x(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(ar=sr,ur=lr);var cr,fr,dr,pr,hr,vr=[].slice,gr=[].push,mr=Object.prototype.toString,yr=r("ng"),br=(t.angular,t.angular||(t.angular={})),xr=["0","0","0"];cr=d((/msie (\d+)/.exec(ar(navigator.userAgent))||[])[1]),isNaN(cr)&&(cr=d((/trident\/.*; rv:(\d+)/.exec(ar(navigator.userAgent))||[])[1])),h.$inject=[],v.$inject=[];var $r=function(){return String.prototype.trim?function(t){return x(t)?t.trim():t}:function(t){return x(t)?t.replace(/^\s\s*/,"").replace(/\s\s*$/,""):t}}();hr=9>cr?function(t){return t=t.nodeName?t:t[0],t.scopeName&&"HTML"!=t.scopeName?ur(t.scopeName+":"+t.nodeName):t.nodeName}:function(t){return t.nodeName?t.nodeName:t[0].nodeName};var wr=/[A-Z]/g,Mr={full:"1.2.12",major:1,minor:2,dot:12,codeName:"cauliflower-eradication"},kr=fe.cache={},Cr=fe.expando="ng-"+(new Date).getTime(),_r=1,Sr=t.document.addEventListener?function(t,e,n){t.addEventListener(e,n,!1)}:function(t,e,n){t.attachEvent("on"+e,n)},Er=t.document.removeEventListener?function(t,e,n){t.removeEventListener(e,n,!1)}:function(t,e,n){t.detachEvent("on"+e,n)},Ar=/([\:\-\_]+(.))/g,Tr=/^moz([A-Z])/,Nr=r("jqLite"),jr=fe.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),fe(t).on("load",r))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return fr(t>=0?this[t]:this[this.length+t])},length:0,push:gr,sort:[].sort,splice:[].splice},Dr={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){Dr[ar(t)]=t});var Lr={};o("input,select,option,textarea,button,form,details".split(","),function(t){Lr[ur(t)]=!0}),o({data:me,inheritedData:Me,scope:function(t){return fr(t).data("$scope")||Me(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return fr(t).data("$isolateScope")||fr(t).data("$isolateScopeNoTemplate")},controller:we,injector:function(t){return Me(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:ye,css:function(t,e,r){if(e=le(e),!y(r)){var i;return 8>=cr&&(i=t.currentStyle&&t.currentStyle[e],""===i&&(i="auto")),i=i||t.style[e],8>=cr&&(i=""===i?n:i),i}t.style[e]=r},attr:function(t,e,r){var i=ar(e);if(Dr[i]){if(!y(r))return t[e]||(t.attributes.getNamedItem(e)||h).specified?i:n;r?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if(y(r))t.setAttribute(e,r);else if(t.getAttribute){var o=t.getAttribute(e,2);return null===o?n:o}},prop:function(t,e,n){return y(n)?void(t[e]=n):t[e]},text:function(){function t(t,n){var r=e[t.nodeType];return m(n)?r?t[r]:"":void(t[r]=n)}var e=[];return 9>cr?(e[1]="innerText",e[3]="nodeValue"):e[1]=e[3]="textContent",t.$dv="",t}(),val:function(t,e){if(m(e)){if("SELECT"===hr(t)&&t.multiple){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if(m(e))return t.innerHTML;for(var n=0,r=t.childNodes;n<r.length;n++)pe(r[n]);t.innerHTML=e},empty:ke},function(t,e){fe.prototype[e]=function(e,r){var i,o;if(t!==ke&&(2==t.length&&t!==ye&&t!==we?e:r)===n){if(b(e)){for(i=0;i<this.length;i++)if(t===me)t(this[i],e);else for(o in e)t(this[i],o,e[o]);return this}for(var a=t.$dv,u=a===n?Math.min(this.length,1):this.length,s=0;u>s;s++){var l=t(this[s],e,r);a=a?a+l:l}return a}for(i=0;i<this.length;i++)t(this[i],e,r);return this}}),o({removeData:ve,dealoc:pe,on:function lo(t,n,r,i){if(y(i))throw Nr("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");var a=ge(t,"events"),u=ge(t,"handle");a||ge(t,"events",a={}),u||ge(t,"handle",u=_e(t,a)),o(n.split(" "),function(n){var i=a[n];if(!i){if("mouseenter"==n||"mouseleave"==n){var o=e.body.contains||e.body.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};a[n]=[];var s={mouseleave:"mouseout",mouseenter:"mouseover"};lo(t,s[n],function(t){var e=this,r=t.relatedTarget;(!r||r!==e&&!o(e,r))&&u(t,n)})}else Sr(t,n,u),a[n]=[];i=a[n]}i.push(r)})},off:he,one:function(t,e,n){t=fr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;pe(t),o(new fe(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){1===t.nodeType&&e.push(t)}),e},contents:function(t){return t.childNodes||[]},append:function(t,e){o(new fe(e),function(e){(1===t.nodeType||11===t.nodeType)&&t.appendChild(e)})},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;o(new fe(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=fr(e)[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:function(t){pe(t);var e=t.parentNode;e&&e.removeChild(t)},after:function(t,e){var n=t,r=t.parentNode;o(new fe(e),function(t){r.insertBefore(t,n.nextSibling),n=t})},addClass:xe,removeClass:be,toggleClass:function(t,e,n){m(n)&&(n=!ye(t,e)),(n?xe:be)(t,e)},parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},next:function(t){if(t.nextElementSibling)return t.nextElementSibling;for(var e=t.nextSibling;null!=e&&1!==e.nodeType;)e=e.nextSibling;return e},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:de,triggerHandler:function(t,e,n){var r=(ge(t,"events")||{})[e];n=n||[];var i=[{preventDefault:h,stopPropagation:h}];o(r,function(e){e.apply(t,i.concat(n))})}},function(t,e){fe.prototype[e]=function(e,n,r){for(var i,o=0;o<this.length;o++)m(i)?(i=t(this[o],e,n,r),y(i)&&(i=fr(i))):$e(i,t(this[o],e,n,r));return y(i)?i:this},fe.prototype.bind=fe.prototype.on,fe.prototype.unbind=fe.prototype.off}),Ee.prototype={put:function(t,e){this[Se(t)]=e},get:function(t){return this[Se(t)]},remove:function(t){var e=this[t=Se(t)];return delete this[t],e}};var Rr=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Or=/,/,qr=/^\s*(_?)(\S+?)\1\s*$/,Pr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Hr=r("$injector"),Fr=r("$animate"),Ur=["$provide",function(t){this.$$selectors={},this.register=function(e,n){var r=e+"-animation";if(e&&"."!=e.charAt(0))throw Fr("notcsel","Expecting class selector starting with '.' got '{0}'.",e);this.$$selectors[e.substr(1)]=r,t.factory(r,n)},this.classNameFilter=function(t){return 1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null),this.$$classNameFilter},this.$get=["$timeout",function(t){return{enter:function(e,n,r,i){r?r.after(e):(n&&n[0]||(n=r.parent()),n.append(e)),i&&t(i,0,!1)},leave:function(e,n){e.remove(),n&&t(n,0,!1)},move:function(t,e,n,r){this.enter(t,e,n,r)},addClass:function(e,n,r){n=x(n)?n:M(n)?n.join(" "):"",o(e,function(t){xe(t,n)}),r&&t(r,0,!1)},removeClass:function(e,n,r){n=x(n)?n:M(n)?n.join(" "):"",o(e,function(t){be(t,n)}),r&&t(r,0,!1)},enabled:h}}]}],Ir=r("$compile");Oe.$inject=["$provide","$$sanitizeUriProvider"];var zr=/^(x[\:\-_]|data[\:\-_])/i,Br=r("$interpolate"),Vr=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Wr={http:80,https:443,ftp:21},Yr=r("$location");ln.prototype=sn.prototype=un.prototype={$$html5:!1,$$replace:!1,absUrl:cn("$$absUrl"),url:function(t,e){if(m(t))return this.$$url;var n=Vr.exec(t);return n[1]&&this.path(decodeURIComponent(n[1])),(n[2]||n[1])&&this.search(n[3]||""),this.hash(n[5]||"",e),this},protocol:cn("$$protocol"),host:cn("$$host"),port:cn("$$port"),path:fn("$$path",function(t){return"/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(x(t))this.$$search=Y(t);else{if(!b(t))throw Yr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");this.$$search=t}break;default:m(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:fn("$$hash",v),replace:function(){return this.$$replace=!0,this}};var Xr,Jr=r("$parse"),Zr={},Gr={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:h,"+":function(t,e,r,i){return r=r(t,e),i=i(t,e),y(r)?y(i)?r+i:r:y(i)?i:n},"-":function(t,e,n,r){return n=n(t,e),r=r(t,e),(y(n)?n:0)-(y(r)?r:0)},"*":function(t,e,n,r){return n(t,e)*r(t,e)},"/":function(t,e,n,r){return n(t,e)/r(t,e)},"%":function(t,e,n,r){return n(t,e)%r(t,e)},"^":function(t,e,n,r){return n(t,e)^r(t,e)},"=":h,"===":function(t,e,n,r){return n(t,e)===r(t,e)},"!==":function(t,e,n,r){return n(t,e)!==r(t,e)},"==":function(t,e,n,r){return n(t,e)==r(t,e)},"!=":function(t,e,n,r){return n(t,e)!=r(t,e)},"<":function(t,e,n,r){return n(t,e)<r(t,e)},">":function(t,e,n,r){return n(t,e)>r(t,e)},"<=":function(t,e,n,r){return n(t,e)<=r(t,e)},">=":function(t,e,n,r){return n(t,e)>=r(t,e)},"&&":function(t,e,n,r){return n(t,e)&&r(t,e)},"||":function(t,e,n,r){return n(t,e)||r(t,e)},"&":function(t,e,n,r){return n(t,e)&r(t,e)},"|":function(t,e,n,r){return r(t,e)(t,e,n(t,e))},"!":function(t,e,n){return!n(t,e)}},Kr={n:"\n",f:"\f",r:"\r",t:"	",v:"","'":"'",'"':'"'},Qr=function(t){this.options=t};Qr.prototype={constructor:Qr,lex:function(t){this.text=t,this.index=0,this.ch=n,this.lastCh=":",this.tokens=[];for(var e,r=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent(),this.was("{,")&&"{"===r[0]&&(e=this.tokens[this.tokens.length-1])&&(e.json=-1===e.text.indexOf("."));else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch,json:this.was(":[,")&&this.is("{[")||this.is("}]:,")}),this.is("{[")&&r.unshift(this.ch),this.is("}]")&&r.shift(),this.index++;else{if(this.isWhitespace(this.ch)){this.index++;continue}var i=this.ch+this.peek(),o=i+this.peek(2),a=Gr[this.ch],u=Gr[i],s=Gr[o];s?(this.tokens.push({index:this.index,text:o,fn:s}),this.index+=3):u?(this.tokens.push({index:this.index,text:i,fn:u}),this.index+=2):a?(this.tokens.push({index:this.index,text:this.ch,fn:a,json:this.was("[,:")&&this.is("+-")}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(t){return-1!==t.indexOf(this.ch)},was:function(t){return-1!==t.indexOf(this.lastCh)},peek:function(t){var e=t||1;return this.index+e<this.text.length?this.text.charAt(this.index+e):!1},isNumber:function(t){return t>="0"&&"9">=t},isWhitespace:function(t){return" "===t||"\r"===t||"	"===t||"\n"===t||""===t||"\xa0"===t},isIdent:function(t){return t>="a"&&"z">=t||t>="A"&&"Z">=t||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw Jr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=ar(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}t=1*t,this.tokens.push({index:e,text:t,json:!0,fn:function(){return t}})},readIdent:function(){for(var t,e,n,r,i=this,o="",a=this.index;this.index<this.text.length&&(r=this.text.charAt(this.index),"."===r||this.isIdent(r)||this.isNumber(r));)"."===r&&(t=this.index),o+=r,this.index++;if(t)for(e=this.index;e<this.text.length;){if(r=this.text.charAt(e),"("===r){n=o.substr(t-a+1),o=o.substr(0,t-a),this.index=e;break}if(!this.isWhitespace(r))break;e++}var u={index:a,text:o};if(Gr.hasOwnProperty(o))u.fn=Gr[o],u.json=Gr[o];else{var s=xn(o,this.options,this.text);u.fn=f(function(t,e){return s(t,e)},{assign:function(t,e){return gn(t,o,e,i.text,i.options)}})}this.tokens.push(u),n&&(this.tokens.push({index:t,text:".",json:!1}),this.tokens.push({index:t+1,text:n,json:!1}))},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var u=Kr[o];n+=u?u:o}i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,string:n,json:!0,fn:function(){return n}});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var ti=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n};ti.ZERO=function(){return 0},ti.prototype={constructor:ti,parse:function(t,e){this.text=t,this.json=e,this.tokens=this.lexer.lex(t),e&&(this.assignment=this.logicalOR,this.functionCall=this.fieldAccess=this.objectIndex=this.filterChain=function(){this.throwError("is not valid json",{text:t,index:0})});var n=e?this.primary():this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n.literal=!!n.literal,n.constant=!!n.constant,n},primary:function(){var t;if(this.expect("("))t=this.filterChain(),this.consume(")");else if(this.expect("["))t=this.arrayDeclaration();else if(this.expect("{"))t=this.object();else{var e=this.expect();t=e.fn,t||this.throwError("not a primary expression",e),e.json&&(t.constant=!0,t.literal=!0)}for(var n,r;n=this.expect("(","[",".");)"("===n.text?(t=this.functionCall(t,r),r=null):"["===n.text?(r=t,t=this.objectIndex(t)):"."===n.text?(r=t,t=this.fieldAccess(t)):this.throwError("IMPOSSIBLE");return t},throwError:function(t,e){throw Jr("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},peekToken:function(){if(0===this.tokens.length)throw Jr("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){if(this.tokens.length>0){var i=this.tokens[0],o=i.text;if(o===t||o===e||o===n||o===r||!t&&!e&&!n&&!r)return i}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return i?(this.json&&!i.json&&this.throwError("is not valid json",i),this.tokens.shift(),i):!1},consume:function(t){this.expect(t)||this.throwError("is unexpected, expecting ["+t+"]",this.peek())},unaryFn:function(t,e){return f(function(n,r){return t(n,r,e)},{constant:e.constant})},ternaryFn:function(t,e,n){return f(function(r,i){return t(r,i)?e(r,i):n(r,i)},{constant:t.constant&&e.constant&&n.constant})},binaryFn:function(t,e,n){return f(function(r,i){return e(r,i,t,n)},{constant:t.constant&&n.constant})},statements:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.filterChain()),!this.expect(";"))return 1===t.length?t[0]:function(e,n){for(var r,i=0;i<t.length;i++){var o=t[i];o&&(r=o(e,n))}return r}},filterChain:function(){for(var t,e=this.expression();;){if(!(t=this.expect("|")))return e;e=this.binaryFn(e,t.fn,this.filter())}},filter:function(){for(var t=this.expect(),e=this.$filter(t.text),n=[];;){if(!(t=this.expect(":"))){var r=function(t,r,i){for(var o=[i],a=0;a<n.length;a++)o.push(n[a](t,r));return e.apply(t,o)};return function(){return r}}n.push(this.expression())}},expression:function(){return this.assignment()},assignment:function(){var t,e,n=this.ternary();return(e=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,e.index)+"] can not be assigned to",e),t=this.ternary(),function(e,r){return n.assign(e,t(e,r),r)}):n},ternary:function(){var t,e,n=this.logicalOR();return(e=this.expect("?"))?(t=this.ternary(),(e=this.expect(":"))?this.ternaryFn(n,t,this.ternary()):void this.throwError("expected :",e)):n},logicalOR:function(){for(var t,e=this.logicalAND();;){if(!(t=this.expect("||")))return e;e=this.binaryFn(e,t.fn,this.logicalAND())}},logicalAND:function(){var t,e=this.equality();return(t=this.expect("&&"))&&(e=this.binaryFn(e,t.fn,this.logicalAND())),e},equality:function(){var t,e=this.relational();return(t=this.expect("==","!=","===","!=="))&&(e=this.binaryFn(e,t.fn,this.equality())),e},relational:function(){var t,e=this.additive();return(t=this.expect("<",">","<=",">="))&&(e=this.binaryFn(e,t.fn,this.relational())),e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e=this.binaryFn(e,t.fn,this.multiplicative());return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e=this.binaryFn(e,t.fn,this.unary());
  return e},unary:function(){var t;return this.expect("+")?this.primary():(t=this.expect("-"))?this.binaryFn(ti.ZERO,t.fn,this.unary()):(t=this.expect("!"))?this.unaryFn(t.fn,this.unary()):this.primary()},fieldAccess:function(t){var e=this,n=this.expect().text,r=xn(n,this.options,this.text);return f(function(e,n,i){return r(i||t(e,n))},{assign:function(r,i,o){return gn(t(r,o),n,i,e.text,e.options)}})},objectIndex:function(t){var e=this,r=this.expression();return this.consume("]"),f(function(i,o){var a,u,s=t(i,o),l=r(i,o);return s?(a=vn(s[l],e.text),a&&a.then&&e.options.unwrapPromises&&(u=a,"$$v"in a||(u.$$v=n,u.then(function(t){u.$$v=t})),a=a.$$v),a):n},{assign:function(n,i,o){var a=r(n,o),u=vn(t(n,o),e.text);return u[a]=i}})},functionCall:function(t,e){var n=[];if(")"!==this.peekToken().text)do n.push(this.expression());while(this.expect(","));this.consume(")");var r=this;return function(i,o){for(var a=[],u=e?e(i,o):i,s=0;s<n.length;s++)a.push(n[s](i,o));var l=t(i,o,u)||h;vn(u,r.text),vn(l,r.text);var c=l.apply?l.apply(u,a):l(a[0],a[1],a[2],a[3],a[4]);return vn(c,r.text)}},arrayDeclaration:function(){var t=[],e=!0;if("]"!==this.peekToken().text)do{var n=this.expression();t.push(n),n.constant||(e=!1)}while(this.expect(","));return this.consume("]"),f(function(e,n){for(var r=[],i=0;i<t.length;i++)r.push(t[i](e,n));return r},{literal:!0,constant:e})},object:function(){var t=[],e=!0;if("}"!==this.peekToken().text)do{var n=this.expect(),r=n.string||n.text;this.consume(":");var i=this.expression();t.push({key:r,value:i}),i.constant||(e=!1)}while(this.expect(","));return this.consume("}"),f(function(e,n){for(var r={},i=0;i<t.length;i++){var o=t[i];r[o.key]=o.value(e,n)}return r},{literal:!0,constant:e})}};var ei={},ni=r("$sce"),ri={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ii=e.createElement("a"),oi=Dn(t.location.href,!0);On.$inject=["$provide"],Pn.$inject=["$locale"],Hn.$inject=["$locale"];var ai=".",ui={yyyy:In("FullYear",4),yy:In("FullYear",2,0,!0),y:In("FullYear",1),MMMM:zn("Month"),MMM:zn("Month",!0),MM:In("Month",2,1),M:In("Month",1,1),dd:In("Date",2),d:In("Date",1),HH:In("Hours",2),H:In("Hours",1),hh:In("Hours",2,-12),h:In("Hours",1,-12),mm:In("Minutes",2),m:In("Minutes",1),ss:In("Seconds",2),s:In("Seconds",1),sss:In("Milliseconds",3),EEEE:zn("Day"),EEE:zn("Day",!0),a:Vn,Z:Bn},si=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,li=/^\-?\d+$/;Wn.$inject=["$locale"];var ci=g(ar),fi=g(ur);Jn.$inject=["$parse"];var di=g({restrict:"E",compile:function(t,n){return 8>=cr&&(n.href||n.name||n.$set("href",""),t.append(e.createComment("IE fix"))),n.href||n.xlinkHref||n.name?void 0:function(t,e){var n="[object SVGAnimatedString]"===mr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}),pi={};o(Dr,function(t,e){if("multiple"!=t){var n=qe("ng-"+e);pi[n]=function(){return{priority:100,link:function(t,r,i){t.$watch(i[n],function(t){i.$set(e,!!t)})}}}}}),o(["src","srcset","href"],function(t){var e=qe("ng-"+t);pi[e]=function(){return{priority:99,link:function(n,r,i){i.$observe(e,function(e){e&&(i.$set(t,e),cr&&r.prop(t,i[t]))})}}}});var hi={$addControl:h,$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h};Gn.$inject=["$element","$attrs","$scope"];var vi=function(t){return["$timeout",function(e){var r={name:"form",restrict:t?"EAC":"E",controller:Gn,compile:function(){return{pre:function(t,r,i,o){if(!i.action){var a=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1};Sr(r[0],"submit",a),r.on("$destroy",function(){e(function(){Er(r[0],"submit",a)},0,!1)})}var u=r.parent().controller("form"),s=i.name||i.ngForm;s&&gn(t,s,o,s),u&&r.on("$destroy",function(){u.$removeControl(o),s&&gn(t,s,n,s),f(o,hi)})}}}};return r}]},gi=vi(),mi=vi(!0),yi=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,bi=/^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$/i,xi=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,$i={text:Qn,number:tr,url:er,email:nr,radio:rr,checkbox:ir,hidden:h,button:h,submit:h,reset:h},wi=["$browser","$sniffer",function(t,e){return{restrict:"E",require:"?ngModel",link:function(n,r,i,o){o&&($i[ar(i.type)]||$i.text)(n,r,i,o,e,t)}}}],Mi="ng-valid",ki="ng-invalid",Ci="ng-pristine",_i="ng-dirty",Si=["$scope","$exceptionHandler","$attrs","$element","$parse",function(t,e,n,i,a){function u(t,e){e=e?"-"+Q(e,"-"):"",i.removeClass((t?ki:Mi)+e).addClass((t?Mi:ki)+e)}this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=n.name;var s=a(n.ngModel),l=s.assign;if(!l)throw r("ngModel")("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,V(i));this.$render=h,this.$isEmpty=function(t){return m(t)||""===t||null===t||t!==t};var c=i.inheritedData("$formController")||hi,f=0,d=this.$error={};i.addClass(Ci),u(!0),this.$setValidity=function(t,e){d[t]!==!e&&(e?(d[t]&&f--,f||(u(!0),this.$valid=!0,this.$invalid=!1)):(u(!1),this.$invalid=!0,this.$valid=!1,f++),d[t]=!e,u(e,t),c.$setValidity(t,e,this))},this.$setPristine=function(){this.$dirty=!1,this.$pristine=!0,i.removeClass(_i).addClass(Ci)},this.$setViewValue=function(n){this.$viewValue=n,this.$pristine&&(this.$dirty=!0,this.$pristine=!1,i.removeClass(Ci).addClass(_i),c.$setDirty()),o(this.$parsers,function(t){n=t(n)}),this.$modelValue!==n&&(this.$modelValue=n,l(t,n),o(this.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}}))};var p=this;t.$watch(function(){var e=s(t);if(p.$modelValue!==e){var n=p.$formatters,r=n.length;for(p.$modelValue=e;r--;)e=n[r](e);p.$viewValue!==e&&(p.$viewValue=e,p.$render())}return e})}],Ei=function(){return{require:["ngModel","^?form"],controller:Si,link:function(t,e,n,r){var i=r[0],o=r[1]||hi;o.$addControl(i),t.$on("$destroy",function(){o.$removeControl(i)})}}},Ai=g({require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Ti=function(){return{require:"?ngModel",link:function(t,e,n,r){if(r){n.required=!0;var i=function(t){return n.required&&r.$isEmpty(t)?void r.$setValidity("required",!1):(r.$setValidity("required",!0),t)};r.$formatters.push(i),r.$parsers.unshift(i),n.$observe("required",function(){i(r.$viewValue)})}}}},Ni=function(){return{require:"ngModel",link:function(t,e,r,i){var a=/\/(.*)\//.exec(r.ngList),u=a&&new RegExp(a[1])||r.ngList||",",s=function(t){if(!m(t)){var e=[];return t&&o(t.split(u),function(t){t&&e.push($r(t))}),e}};i.$parsers.push(s),i.$formatters.push(function(t){return M(t)?t.join(", "):n}),i.$isEmpty=function(t){return!t||!t.length}}}},ji=/^(true|false|\d+)$/,Di=function(){return{priority:100,compile:function(t,e){return ji.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Li=Zn(function(t,e,r){e.addClass("ng-binding").data("$binding",r.ngBind),t.$watch(r.ngBind,function(t){e.text(t==n?"":t)})}),Ri=["$interpolate",function(t){return function(e,n,r){var i=t(n.attr(r.$attr.ngBindTemplate));n.addClass("ng-binding").data("$binding",i),r.$observe("ngBindTemplate",function(t){n.text(t)})}}],Oi=["$sce","$parse",function(t,e){return function(n,r,i){function o(){return(a(n)||"").toString()}r.addClass("ng-binding").data("$binding",i.ngBindHtml);var a=e(i.ngBindHtml);n.$watch(o,function(){r.html(t.getTrustedHtml(a(n))||"")})}}],qi=or("",!0),Pi=or("Odd",0),Hi=or("Even",1),Fi=Zn({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Ui=[function(){return{scope:!0,controller:"@",priority:500}}],Ii={};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=qe("ng-"+t);Ii[e]=["$parse",function(n){return{compile:function(r,i){var o=n(i[e]);return function(e,n){n.on(ar(t),function(t){e.$apply(function(){o(e,{$event:t})})})}}}}]});var zi=["$animate",function(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var u,s;n.$watch(i.ngIf,function(o){B(o)?s||(s=n.$new(),a(s,function(n){n[n.length++]=e.createComment(" end ngIf: "+i.ngIf+" "),u={clone:n},t.enter(n,r.parent(),r)})):(s&&(s.$destroy(),s=null),u&&(t.leave(oe(u.clone)),u=null))})}}}],Bi=["$http","$templateCache","$anchorScroll","$animate","$sce",function(t,e,n,r,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:br.noop,compile:function(o,a){var u=a.ngInclude||a.src,s=a.onload||"",l=a.autoscroll;return function(o,a,c,f,d){var p,h,v=0,g=function(){p&&(p.$destroy(),p=null),h&&(r.leave(h),h=null)};o.$watch(i.parseAsResourceUrl(u),function(i){var u=function(){!y(l)||l&&!o.$eval(l)||n()},c=++v;i?(t.get(i,{cache:e}).success(function(t){if(c===v){var e=o.$new();f.template=t;var n=d(e,function(t){g(),r.enter(t,null,a,u)});p=e,h=n,p.$emit("$includeContentLoaded"),o.$eval(s)}}).error(function(){c===v&&g()}),o.$emit("$includeContentRequested")):(g(),f.template=null)})}}}}],Vi=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(e,n,r,i){n.html(i.template),t(n.contents())(e)}}}],Wi=Zn({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Yi=Zn({terminal:!0,priority:1e3}),Xi=["$locale","$interpolate",function(t,e){var n=/{}/g;return{restrict:"EA",link:function(r,i,a){var u=a.count,s=a.$attr.when&&i.attr(a.$attr.when),l=a.offset||0,c=r.$eval(s)||{},f={},d=e.startSymbol(),p=e.endSymbol(),h=/^when(Minus)?(.+)$/;o(a,function(t,e){h.test(e)&&(c[ar(e.replace("when","").replace("Minus","-"))]=i.attr(a.$attr[e]))}),o(c,function(t,r){f[r]=e(t.replace(n,d+u+"-"+l+p))}),r.$watch(function(){var e=parseFloat(r.$eval(u));return isNaN(e)?"":(e in c||(e=t.pluralCat(e-l)),f[e](r,i,!0))},function(t){i.text(t)})}}}],Ji=["$parse","$animate",function(t,n){function a(t){return t.clone[0]}function u(t){return t.clone[t.clone.length-1]}var s="$$NG_REMOVED",l=r("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(r,c,f,d,p){var h,v,g,m,y,b,x,$,w,M=f.ngRepeat,k=M.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),C={$id:Se};if(!k)throw l("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",M);if(b=k[1],x=k[2],h=k[3],h?(v=t(h),g=function(t,e,n){return w&&(C[w]=t),C[$]=e,C.$index=n,v(r,C)}):(m=function(t,e){return Se(e)},y=function(t){return t}),k=b.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!k)throw l("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",b);$=k[3]||k[1],w=k[2];var _={};r.$watchCollection(x,function(t){var f,d,h,v,b,x,k,C,S,E,A,T,N=c[0],j={},D=[];if(i(t))E=t,S=g||m;else{S=g||y,E=[];for(x in t)t.hasOwnProperty(x)&&"$"!=x.charAt(0)&&E.push(x);E.sort()}for(v=E.length,d=D.length=E.length,f=0;d>f;f++)if(x=t===E?f:E[f],k=t[x],C=S(x,k,f),re(C,"`track by` id"),_.hasOwnProperty(C))A=_[C],delete _[C],j[C]=A,D[f]=A;else{if(j.hasOwnProperty(C))throw o(D,function(t){t&&t.scope&&(_[t.id]=t)}),l("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}",M,C);D[f]={id:C},j[C]=!1}for(x in _)_.hasOwnProperty(x)&&(A=_[x],T=oe(A.clone),n.leave(T),o(T,function(t){t[s]=!0}),A.scope.$destroy());for(f=0,d=E.length;d>f;f++){if(x=t===E?f:E[f],k=t[x],A=D[f],D[f-1]&&(N=u(D[f-1])),A.scope){b=A.scope,h=N;do h=h.nextSibling;while(h&&h[s]);a(A)!=h&&n.move(oe(A.clone),null,fr(N)),N=u(A)}else b=r.$new();b[$]=k,w&&(b[w]=x),b.$index=f,b.$first=0===f,b.$last=f===v-1,b.$middle=!(b.$first||b.$last),b.$odd=!(b.$even=0===(1&f)),A.scope||p(b,function(t){t[t.length++]=e.createComment(" end ngRepeat: "+M+" "),n.enter(t,null,fr(N)),N=t,A.scope=b,A.clone=t,j[A.id]=A})}_=j})}}}],Zi=["$animate",function(t){return function(e,n,r){e.$watch(r.ngShow,function(e){t[B(e)?"removeClass":"addClass"](n,"ng-hide")})}}],Gi=["$animate",function(t){return function(e,n,r){e.$watch(r.ngHide,function(e){t[B(e)?"addClass":"removeClass"](n,"ng-hide")})}}],Ki=Zn(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&o(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),Qi=["$animate",function(t){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(e,n,r,i){var a,u,s=r.ngSwitch||r.on,l=[];e.$watch(s,function(n){for(var s=0,c=l.length;c>s;s++)l[s].$destroy(),t.leave(u[s]);u=[],l=[],(a=i.cases["!"+n]||i.cases["?"])&&(e.$eval(r.change),o(a,function(n){var r=e.$new();l.push(r),n.transclude(r,function(e){var r=n.element;u.push(e),t.enter(e,r.parent(),r)})}))})}}}],to=Zn({transclude:"element",priority:800,require:"^ngSwitch",link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),eo=Zn({transclude:"element",priority:800,require:"^ngSwitch",link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),no=Zn({controller:["$element","$transclude",function(t,e){if(!e)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",V(t));this.$transclude=e}],link:function(t,e,n,r){r.$transclude(function(t){e.empty(),e.append(t)})}}),ro=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],io=r("ngOptions"),oo=g({terminal:!0}),ao=["$compile","$parse",function(t,r){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,u={$setViewValue:h};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(t,e,n){var r,i,o=this,a={},s=u;o.databound=n.ngModel,o.init=function(t,e,n){s=t,r=e,i=n},o.addOption=function(e){re(e,'"option value"'),a[e]=!0,s.$viewValue==e&&(t.val(e),i.parent()&&i.remove())},o.removeOption=function(t){this.hasOption(t)&&(delete a[t],s.$viewValue==t&&this.renderUnknownOption(t))},o.renderUnknownOption=function(e){var n="? "+Se(e)+" ?";i.val(n),t.prepend(i),t.val(n),i.prop("selected",!0)},o.hasOption=function(t){return a.hasOwnProperty(t)},e.$on("$destroy",function(){o.renderUnknownOption=h})}],link:function(u,s,l,c){function f(t,e,n,r){n.$render=function(){var t=n.$viewValue;r.hasOption(t)?(C.parent()&&C.remove(),e.val(t),""===t&&h.prop("selected",!0)):m(t)&&h?e.val(""):r.renderUnknownOption(t)},e.on("change",function(){t.$apply(function(){C.parent()&&C.remove(),n.$setViewValue(e.val())})})}function d(t,e,n){var r;n.$render=function(){var t=new Ee(n.$viewValue);o(e.find("option"),function(e){e.selected=y(t.get(e.value))})},t.$watch(function(){O(r,n.$viewValue)||(r=L(n.$viewValue),n.$render())}),e.on("change",function(){t.$apply(function(){var t=[];o(e.find("option"),function(e){e.selected&&t.push(e.value)}),n.$setViewValue(t)})})}function p(e,o,u){function s(){var t,n,r,i,s,l,g,x,_,S,E,A,T,N,j,D={"":[]},L=[""],R=u.$modelValue,O=v(e)||[],q=d?a(O):O,P={},H=!1;if(b)if(m&&M(R)){H=new Ee([]);for(var F=0;F<R.length;F++)P[f]=R[F],H.put(m(e,P),R[F])}else H=new Ee(R);for(E=0;_=q.length,_>E;E++){if(g=E,d){if(g=q[E],"$"===g.charAt(0))continue;P[d]=g}if(P[f]=O[g],t=p(e,P)||"",(n=D[t])||(n=D[t]=[],L.push(t)),b)A=y(H.remove(m?m(e,P):h(e,P)));else{if(m){var U={};U[f]=R,A=m(e,U)===m(e,P)}else A=R===h(e,P);H=H||A}j=c(e,P),j=y(j)?j:"",n.push({id:m?m(e,P):d?q[E]:E,label:j,selected:A})}for(b||($||null===R?D[""].unshift({id:"",label:"",selected:!H}):H||D[""].unshift({id:"?",label:"",selected:!0})),S=0,x=L.length;x>S;S++){for(t=L[S],n=D[t],C.length<=S?(i={element:k.clone().attr("label",t),label:n.label},s=[i],C.push(s),o.append(i.element)):(s=C[S],i=s[0],i.label!=t&&i.element.attr("label",i.label=t)),T=null,E=0,_=n.length;_>E;E++)r=n[E],(l=s[E+1])?(T=l.element,l.label!==r.label&&T.text(l.label=r.label),l.id!==r.id&&T.val(l.id=r.id),T[0].selected!==r.selected&&T.prop("selected",l.selected=r.selected)):(""===r.id&&$?N=$:(N=w.clone()).val(r.id).attr("selected",r.selected).text(r.label),s.push(l={element:N,label:r.label,id:r.id,selected:r.selected}),T?T.after(N):i.element.append(N),T=N);for(E++;s.length>E;)s.pop().element.remove()}for(;C.length>S;)C.pop()[0].element.remove()}var l;if(!(l=x.match(i)))throw io("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",x,V(o));var c=r(l[2]||l[1]),f=l[4]||l[6],d=l[5],p=r(l[3]||""),h=r(l[2]?l[1]:f),v=r(l[7]),g=l[8],m=g?r(l[8]):null,C=[[{element:o,label:""}]];$&&(t($)(e),$.removeClass("ng-scope"),$.remove()),o.empty(),o.on("change",function(){e.$apply(function(){var t,r,i,a,s,l,c,p,g,y=v(e)||[],x={};if(b){for(i=[],l=0,p=C.length;p>l;l++)for(t=C[l],s=1,c=t.length;c>s;s++)if((a=t[s].element)[0].selected){if(r=a.val(),d&&(x[d]=r),m)for(g=0;g<y.length&&(x[f]=y[g],m(e,x)!=r);g++);else x[f]=y[r];i.push(h(e,x))}}else if(r=o.val(),"?"==r)i=n;else if(""===r)i=null;else if(m){for(g=0;g<y.length;g++)if(x[f]=y[g],m(e,x)==r){i=h(e,x);break}}else x[f]=y[r],d&&(x[d]=r),i=h(e,x);u.$setViewValue(i)})}),u.$render=s,e.$watch(s)}if(c[1]){for(var h,v=c[0],g=c[1],b=l.multiple,x=l.ngOptions,$=!1,w=fr(e.createElement("option")),k=fr(e.createElement("optgroup")),C=w.clone(),_=0,S=s.children(),E=S.length;E>_;_++)if(""===S[_].value){h=$=S.eq(_);break}v.init(g,$,C),b&&(g.$isEmpty=function(t){return!t||0===t.length}),x?p(u,s,g):b?d(u,s,g):f(u,s,g,v)}}}}],uo=["$interpolate",function(t){var e={addOption:h,removeOption:h};return{restrict:"E",priority:100,compile:function(n,r){if(m(r.value)){var i=t(n.text(),!0);i||r.$set("value",n.text())}return function(t,n,r){var o="$selectController",a=n.parent(),u=a.data(o)||a.parent().data(o);u&&u.databound?n.prop("selected",!1):u=e,i?t.$watch(i,function(t,e){r.$set("value",t),t!==e&&u.removeOption(e),u.addOption(t)}):u.addOption(r.value),n.on("$destroy",function(){u.removeOption(r.value)})}}}}],so=g({restrict:"E",terminal:!0});te(),ue(br),fr(e).ready(function(){G(e,K)})}(window,document),!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}</style>'),function(){var t;window.App=angular.module("appOB",[]),t=function(t){return console.log(t)}}.call(this),function(){"use strict";var t;t=window.visup=window.visup||{},t.spark=function(t){var e,n,r,i,o,a,u,s,l,c,f,d,p,h,v,g,m,y,b,x,w,M,k;return a=d3.select(t).style("position","relative"),o={padding:{top:6,right:6,bottom:6,left:6},scales:{x:{domain:["min","max"],range:[0,"width"]},y:{domain:["min","max"],range:["height",0]}},custom:{interpolate:"linear",color:"#9fb746",showYear:!1}},n=_.cloneDeep(o),i=r=p=u=x=k=null,w=d3.scale.linear(),M=d3.scale.linear(),s=d3.svg.line(),(m=function(){var e,r;return r=$(t).width(),e=$(t).height(),x=r-n.padding.right-n.padding.left,u=e-n.padding.top-n.padding.bottom})(),r=a.append("svg").attr("width","100%").attr("height","100%").append("g").attr("class","chart-container"),d=r.append("path").attr("class","visup-spark-series"),h=r.append("g").attr("class","visup-spark-seriespoints-container"),l=r.append("circle").attr("class","visup-spark-marker visup-hidden"),c=r.append("line").attr("class","visup-spark-markerline visup-hidden"),f=r.append("text").attr("class","visup-spark-markertext visup-hidden"),e=function(){return e},e.data=function(t){return 0===arguments.length?i:(i=t,v(),g(),y(),e)},e.options=function(t){return 0===arguments.length?n:(n=_.merge(n,t,function(t,e){return _.isArray(t)?e:void 0}),m(),v(),g(),y(),e)},e.resize=function(){return m(),g(),y(),e},e.destroy=function(){return a.selectAll("*").remove(),e},e.year=function(t){return 0===arguments.length?k:(b(t),y(),e)},v=function(){return null!==i?(l.classed("visup-hidden",!0),d.datum(i),p=h.selectAll("circle.visup-spark-seriespoint").data(i),p.enter().append("circle").attr("class","visup-spark-seriespoint"),p.exit().remove(),w.domain(function(){var t,e,r,o,a;for(t=[],a=n.scales.x.domain,r=0,o=a.length;o>r;r++)e=a[r],t.push(function(){switch(e){case"min":return d3.min(i,function(t){return t[0]});case"max":return d3.max(i,function(t){return t[0]});default:return e}}());return t}()),M.domain(function(){var t,e,r,o,a;for(t=[],a=n.scales.y.domain,r=0,o=a.length;o>r;r++)e=a[r],t.push(function(){switch(e){case"min":return d3.min(i,function(t){return t[1]});case"max":return d3.max(i,function(t){return t[1]});default:return e}}());return t}())):void 0},g=function(){return w.range(function(){var t,e,r,i,o;for(t=[],o=n.scales.x.range,r=0,i=o.length;i>r;r++)e=o[r],t.push(function(){switch(e){case"width":return x;case"height":return u;default:return e}}());return t}()),M.range(function(){var t,e,r,i,o;for(t=[],o=n.scales.y.range,r=0,i=o.length;i>r;r++)e=o[r],t.push(function(){switch(e){case"width":return x;case"height":return u;default:return e}}());return t}()),s.interpolate(n.custom.interpolate).x(function(t){return w(t[0])}).y(function(t){return M(t[1])}).defined(function(t){return null!=t[1]})},y=function(){return null!==a&&null!==i?(r.attr("transform","translate("+n.padding.left+","+n.padding.top+")"),d.transition().attr("d",function(t){return s(t)}),p.classed("visup-hidden",function(t){return null==t[1]}).transition().attr("cx",function(t){return w(t[0])}).attr("cy",function(t){return M(t[1])}).attr("r",2.5),l.classed("visup-hidden")===!1&&(l.classed("visup-hidden",function(t){return null==t[1]}).transition().attr("cx",function(t){return w(t[0])}).attr("cy",function(t){return M(t[1])}).attr("r",6).style("fill",n.custom.color),n.custom.showYear)?(c.classed("visup-hidden",function(t){return null==t[1]}).transition().attr("x1",function(t){return w(t[0])}).attr("y1",function(t){return M(t[1])}).attr("x2",function(t){return w(t[0])}).attr("y2",function(t){return M(t[1])-10}).style("stroke",n.custom.color),f.classed("visup-hidden",function(t){return null==t[1]}).transition().attr("x",function(t){return w(t[0])}).attr("y",function(t){return M(t[1])-15}).text(function(t){return t[0]})):void 0):void 0},b=function(t){var e;return e=_.find(i,function(e){return e[0]===t}),null==e||null===t?(k=null,l.classed("visup-hidden",!0),c.classed("visup-hidden",!0),f.classed("visup-hidden",!0)):(k=e,l.datum(e).classed("visup-hidden",!1),n.custom.showYear?(c.datum(e).classed("visup-hidden",!1),f.datum(e).classed("visup-hidden",!1)):void 0)},e}}.call(this),function(){"use strict";var t;t=window.visup=window.visup||{},t.composizioneLayers=function(t){var e,n,r,i,o,a,u,s,l,c,f,d,p,h,v,g,m,y,b,x,w,M,k,C,S,E,A,T,N,j,D,L,R,O,q,P,H,F,U,I,z,B,V,W,Y,X,J,Z,G,K,Q,te,ee,ne,re,ie,oe,ae,ue,se,le,ce,fe,de,pe,he;return S=d3.select(t).style("position","relative"),g={padding:{top:48,right:0,bottom:75,left:10},scales:{y:{field:"variation",domain:[-5e4,-25,0,25,5e4],range:[1,7/8,.5,1/8,0]},r:{field:"value",range:[0,80]},color:{field:"variation",domain:[-25,-5,0,5,25],range:["#9b2d1b","#b74832","#e58d7f","#cadd7a","#9fb746","#7d8e17"]}},custom:{circlePadding:5,hover:!0,showLabels:!0,minRadius:8}},o=_.cloneDeep(g),l=ee=v=h=p=c=f=d=s=q=D=pe=w=x=b=M=k=C=U=J=null,E=1,de=0,I=G=L=null,O=null,Q=te=null,he=d3.scale.linear(),V=d3.scale.sqrt(),i=d3.scale.threshold(),A=d3.layout.force().gravity(0).charge(0),m=d3.dispatch("click","secondclick","select","mouseenter","mouseleave","reset","started","stopped","inspect","init"),(le=function(){var e,n;return n=$(t).width(),e=$(t).height(),pe=n-o.padding.right-o.padding.left,D=e-o.padding.top-o.padding.bottom})(),ue=function(t){var e,n,a,u,l,p,h,g,x;switch(m.started(),c.forEach(function(t){return t.r=V(t[o.scales.r.field])>o.custom.minRadius?V(t[o.scales.r.field]):o.custom.minRadius,t.fx=pe/2,t.fy=he(t[o.scales.y.field])}),f.forEach(function(t){return t.r=V(t[o.scales.r.field])>o.custom.minRadius?V(t[o.scales.r.field]):o.custom.minRadius,t.fx=pe/2,t.fy=he(t[o.scales.y.field])}),d.forEach(function(t){return t.r=V(t[o.scales.r.field])>o.custom.minRadius?V(t[o.scales.r.field]):o.custom.minRadius,t.fx=pe/2,t.fy=he(t[o.scales.y.field])}),clearInterval(O),clearTimeout(Q),clearTimeout(te),s.selectAll(".visup-dot-circle").transition().duration(0),M.transition().duration(0),k.transition().duration(0),C.transition().duration(0),M.on("mouseenter",null).on("mouseleave",null),k.on("mouseenter",null).on("mouseleave",null),C.on("mouseenter",null).on("mouseleave",null),0!==de&&w.classed("visup-hidden",!0),null!==b&&b.classed("visup-hidden",!0),M.classed("visup-selected",!1).classed("visup-parent",!1).classed("visup-inspected",!1),k.classed("visup-selected",!1).classed("visup-parent",!1).classed("visup-inspected",!1),C.classed("visup-selected",!1).classed("visup-parent",!1).classed("visup-inspected",!1),re(),o.custom.showLabels&&y.selectAll(".visup-dot-label").classed("visup-hidden",!0),de){case 0:p=v,g="",h=w;break;case 1:p=c,g="layer1",h=M,M.style("opacity",1).classed("visup-hidden",!1),k.style("opacity",0).classed("visup-hidden",!0),C.style("opacity",0).classed("visup-hidden",!0);break;case 2:p=f,g="layer2",h=k,k.style("opacity",1).classed("visup-hidden",!1),M.style("opacity",0).classed("visup-hidden",!0),C.style("opacity",0).classed("visup-hidden",!0);break;case 3:p=d,g="layer3",h=C,C.style("opacity",1).classed("visup-hidden",!1),M.style("opacity",0).classed("visup-hidden",!0),k.style("opacity",0).classed("visup-hidden",!0)}switch(t){case 1:e=c,a="layer1",n=M,E=1;break;case 2:e=f,a="layer2",n=k,E=2;break;case 3:e=d,a="layer3",n=C,E=3}return t>de?(null!==J?(M.classed("visup-masked",!1),k.classed("visup-masked",!1),C.classed("visup-masked",!1),x=null!=d3.select(J).datum().layer2?"layer2":"layer1",n.classed("visup-masked",!0),n.each(function(){return null!=d3.select(this).datum()[x]&&d3.select(this).datum()[x]===d3.select(J).datum()[x]?d3.select(this).classed("visup-inspected",!0).classed("visup-masked",!1):void 0}),l=d3.select(J).datum(),b=B.selectAll("g.visup-dot.visup-dot-parent").data([l]).classed("visup-hidden",!1),b.enter().append("g").attr("class","visup-dot visup-dot-parent").append("circle").attr("class","visup-dot-circle"),b.exit().remove(),u={color:d3.select(J).select(".visup-dot-circle").style("fill"),percent:d3.round(d3.select(J).datum().value/w.datum().value*100,1),variation:d3.select(J).datum().variation,variationAbs:Math.abs(d3.select(J).datum().variation),label:d3.select(J).datum().label.replace(/@/g,""),value:d3.select(J).datum().value,series:d3.select(J).datum().series,procapite:d3.round(d3.select(J).datum().procapite,2),andamento:d3.select(J).datum().andamento,layer1:c[d3.select(J).datum().layer1].label,layer2:de>1&&null!=d3.select(J).datum().layer2&&!d3.select(J).datum().added2?f[d3.select(J).datum().layer2].label:null,layer3:de>2&&null!=d3.select(J).datum().layer3&&!d3.select(J).datum().added3?d[d3.select(J).datum().layer3].label:null},m.inspect(u)):m.inspect(null),K(!0),de=E,e.forEach(function(t){return t.x=h===w?w.datum().x+Math.random():null!=p[t[g]]?p[t[g]].x+Math.random():pe/2+Math.random(),t.y=h===w?w.datum().y+Math.random():null!=p[t[g]]?p[t[g]].y+Math.random():D/2+Math.random(),t.fx=pe/2,t.fy=he(t[o.scales.y.field]),t.r=V(t[o.scales.r.field])>o.custom.minRadius?V(t[o.scales.r.field]):o.custom.minRadius,""!==g?t.color=p[t[g]].color:void 0}),re(),h!==w&&h.transition().style("opacity",0),n.classed("visup-hidden",!1).transition().style("opacity",1),O=setInterval(function(){return n.each(r(.05,e)),oe()},15),e.forEach(function(t){return t.color=i(t[o.scales.color.field])}),re(2e3),Q=setTimeout(function(){return clearTimeout(Q),clearInterval(O),Z()},1500),te=setTimeout(function(){return h!==w&&h.classed("visup-hidden",!0),n.classed("visup-selected",!1),n.classed("visup-hidden visup-selected",!1),n.classed("visup-sibling",!1),re(),n.on("mouseenter",o.custom.hover?N:null).on("mouseleave",o.custom.hover?j:null)},2500)):de>t?(Z(!0),null!==J?(1===t&&null!=d3.select(J).datum().layer2&&M.each(function(t){return t.layer1===d3.select(J).datum().layer1?J=this:void 0}),x=null!=d3.select(J).datum().layer2?"layer2":"layer1",n.classed("visup-masked",!0),n.each(function(){return null!=d3.select(this).datum()[x]&&d3.select(this).datum()[x]===d3.select(J).datum()[x]?d3.select(this).classed("visup-inspected",!0).classed("visup-masked",!1):void 0}),u={color:d3.select(J).select(".visup-dot-circle").style("fill"),percent:d3.round(d3.select(J).datum().value/w.datum().value*100,1),variation:d3.select(J).datum().variation,variationAbs:Math.abs(d3.select(J).datum().variation),label:d3.select(J).datum().label.replace(/@/g,""),value:d3.select(J).datum().value,series:d3.select(J).datum().series,procapite:d3.round(d3.select(J).datum().procapite,2),andamento:d3.select(J).datum().andamento,layer1:c[d3.select(J).datum().layer1].label,layer2:de>1&&null!=d3.select(J).datum().layer2&&!d3.select(J).datum().added2?f[d3.select(J).datum().layer2].label:null,layer3:de>2&&null!=d3.select(J).datum().layer3&&!d3.select(J).datum().added3?d[d3.select(J).datum().layer3].label:null},m.inspect(u)):m.inspect(null),p.forEach(function(t){return t.fx=null!=e[t[a]]?e[t[a]].x:pe/2,t.fy=null!=e[t[a]]?e[t[a]].y:D/2,t.color=e[t[a]].color,t.r=V(t[o.scales.r.field])>o.custom.minRadius?V(t[o.scales.r.field]):o.custom.minRadius}),re(2500),clearTimeout(Q),te=setTimeout(function(){return K(),p.forEach(function(t){return null!=e[t[a]]?(t.r=e[t[a]].r>o.custom.minRadius?e[t[a]].r:o.custom.minRadius,t.x=e[t[a]].x,t.y=e[t[a]].y):(t.r=t.r>o.custom.minRadius?t.r:o.custom.minRadius,t.x=t.fx+Math.random(),t.y=t.fy+Math.random())}),oe(500),de=E},2500),Q=setTimeout(function(){return clearTimeout(te),p.forEach(function(t){return t.color=i(t[o.scales.color.field])}),h.classed("visup-hidden",!0).style("opacity",0),n.classed("visup-selected",!1),n.classed("visup-hidden visup-selected",!1).style("opacity",1),n.on("mouseenter",o.custom.hover?N:null).on("mouseleave",o.custom.hover?j:null),o.custom.showLabels?ie():void 0},3e3)):(e.forEach(function(t){return t.fx=pe/2,t.fy=he(t[o.scales.y.field]),t.r=V(t[o.scales.r.field])>o.custom.minRadius?V(t[o.scales.r.field]):o.custom.minRadius,t.color=i(t[o.scales.color.field])}),Z(),re(500),Q=setTimeout(function(){return n.on("mouseenter",o.custom.hover?N:null).on("mouseleave",o.custom.hover?j:null)},500))},s=S.append("svg").attr("width","100%").attr("height","100%").append("g").attr("class","visup-chart-container"),e=s.append("g").attr("class","visup-chart-yAxis"),ee=s.append("g").attr("class","visup-chart-total"),B=s.append("g").attr("class","visup-chart-parent"),X=s.append("g").attr("class","visup-chart-sample"),W=s.append("rect").attr("class","visup-chart-resethandler").on("click",function(){return ce(null,!0),re(),m.reset(J)}),P=s.append("g").attr("class","visup-chart-layer1"),H=s.append("g").attr("class","visup-chart-layer2"),F=s.append("g").attr("class","visup-chart-layer3"),y=S.append("div").attr("class","visup-chart-dotlabels"),n=function(){return n},n.version="0.11.0",n.data=function(t){return 0===arguments.length?l:(l=t,ne(),ae(),se(),n)},n.options=function(t){return 0===arguments.length?o:(o=_.merge(o,t,function(t,e){return _.isArray(t)?e:void 0}),le(),ne(),ae(),se(),n)},n.resize=function(){return l.forEach(function(t){return t.fx=pe/2}),le(),ae(),oe(),fe(),n},n.on=function(t,e){return m.on(t,e),n},n.destroy=function(){return S.selectAll("*").remove(),n},n.layer=function(t){return 0===arguments.length?de:(ue(t),n)},n.select=function(t){return ce(t),re(),n},n.labels=function(t){var e;return o.custom.showLabels=t,e=t,ie()},ne=function(){var t,e,n,r,a,u,s,p,g,m,b,$,S;if(null!==l){for(v=[],c=[],f=[],d=[],l.forEach(function(t){if(t.total&&v.push(t),null!=t.layer3&&!t.added3)return d.push(t);if(null==t.layer2||t.added2){if(null!=t.layer1&&(c.push(t),!t.is_parent))return t.added2=t.added3=!0,f.push(t),d.push(t)}else if(f.push(t),!t.is_parent)return t.added3=!0,d.push(t)}),_.isEmpty(c)||(c.sort(function(t,e){return t.layer1-e.layer1}),c=_.map(c,function(t,e){return null!=t.layer1&&(t.oldlayer1=t.layer1),t.layer1=e,t})),_.isEmpty(f)||(f.sort(function(t,e){return t.layer2-e.layer2}),f=_.map(f,function(t,e){return c.forEach(function(e){return t.layer1===e.oldlayer1?t.layer1=e.layer1:void 0}),null!=t.layer2&&(t.oldlayer2=t.layer2),t.layer2=e,t})),_.isEmpty(d)||(d.sort(function(t,e){return t.layer3-e.layer3}),d=_.map(d,function(t,e){return c.forEach(function(e){return t.layer1===e.oldlayer1?t.layer1=e.layer1:void 0}),f.forEach(function(e){return t.layer2===e.oldlayer2?t.layer2=e.layer2:void 0}),t.layer3=e,t})),h=[],S=Y(d3.max(l,function(t){return t[o.scales.r.field]
  })/10),b=0,$=S.length;$>b;b++)m=S[b],h.push({sample:!0,r:m,label:m+""});return w=ee.selectAll("g.visup-dot.visup-dot-total").data(v),e=w.enter().append("g").attr("class","visup-dot visup-dot-total"),e.append("circle").attr("class","visup-dot-circle"),e.append("text").attr("class","visup-dot-text"),w.exit().remove(),x=X.selectAll("g.visup-dot-sample").data(h),t=x.enter().append("g").attr("class","visup-dot-sample"),t.append("circle").attr("class","visup-dot-circle"),t.append("text").attr("class","visup-dot-text"),x.exit().remove(),M=P.selectAll("g.visup-dot").data(c),n=M.enter().append("g").attr("class","visup-dot").on("click",T),n.append("circle").attr("class","visup-dot-circle"),n.append("text").attr("class","visup-dot-plus"),M.exit().remove(),M.on("mouseenter",o.custom.hover?N:null).on("mouseleave",o.custom.hover?j:null),u=y.selectAll("div.visup-dot-label.layer1").data(c),s=u.enter().append("div").attr("class","visup-dot-label layer1"),u.exit().remove(),k=H.selectAll("g.visup-dot").data(f),r=k.enter().append("g").attr("class","visup-dot").on("click",T),r.append("circle").attr("class","visup-dot-circle"),r.append("text").attr("class","visup-dot-plus"),k.exit().remove(),k.on("mouseenter",o.custom.hover?N:null).on("mouseleave",o.custom.hover?j:null),p=y.selectAll("div.visup-dot-label.layer2").data(f),p.enter().append("div").attr("class","visup-dot-label layer2"),p.exit().remove(),C=F.selectAll("g.visup-dot").data(d),a=C.enter().append("g").attr("class","visup-dot").on("click",T),a.append("circle").attr("class","visup-dot-circle"),C.exit().remove(),C.on("mouseenter",o.custom.hover?N:null).on("mouseleave",o.custom.hover?j:null),g=y.selectAll("div.visup-dot-label.layer3").data(d),g.enter().append("div").attr("class","visup-dot-label layer3"),g.exit().remove(),he.domain(o.scales.y.domain),V.domain([0,d3.max(l,function(t){return t[o.scales.r.field]})]),i.domain(o.scales.color.domain)}},ae=function(){var t,e,n,r,a;if(null!==l){for(e=[],a=o.scales.y.range,n=0,r=a.length;r>n;n++)t=a[n],e.push(D*t);return he.range(e),V.range(o.scales.r.range),i.range(o.scales.color.range)}},se=function(){null!==l&&(h.forEach(function(t,e){return t.r=V(t.r)>o.custom.minRadius?V(t.r):o.custom.minRadius,t.x=t.fx=h[0].r+2,t.y=t.fy=D+o.padding.bottom-t.r-2*e-2}),v.forEach(function(t){return t.r=V(t[o.scales.r.field])>o.custom.minRadius?V(t[o.scales.r.field]):o.custom.minRadius,t.color=i(t[o.scales.color.field]),t.x=t.fx=pe/2,t.y=t.fy=he(t[o.scales.y.field])}),l.forEach(function(t){return t.total&&t.sample?void 0:(t.x=w.datum().x+Math.random(),t.y=w.datum().y+Math.random(),t.r=V(t[o.scales.r.field])>o.custom.minRadius?V(t[o.scales.r.field]):o.custom.minRadius,t.color=w.datum().color,t.fx=pe/2,t.fy=he(t[o.scales.y.field]))}),M.style("opacity",0).classed("visup-hidden",!0),k.style("opacity",0).classed("visup-hidden",!0),C.style("opacity",0).classed("visup-hidden",!0),fe(),re(),oe(),W.classed("visup-hidden",!0),w.classed("initial",!0),w.selectAll(".visup-dot-circle").style("fill",function(){return d3.select(this.parentNode).datum().color}),w.select(".visup-dot-text").attr("y",function(){return d3.select(this.parentNode).datum().y}).attr("x",function(){return d3.select(this.parentNode).datum().x}).text("+"),M.on("mouseenter",null).on("mouseleave",null),k.on("mouseenter",null).on("mouseleave",null),C.on("mouseenter",null).on("mouseleave",null),d3.select("g.visup-dot.visup-dot-total.initial").on("click",function(){return W.classed("visup-hidden",!1),w.classed("initial",!1),M.on("mouseenter",o.custom.hover?N:null).on("mouseleave",o.custom.hover?j:null),k.on("mouseenter",o.custom.hover?N:null).on("mouseleave",o.custom.hover?j:null),C.on("mouseenter",o.custom.hover?N:null).on("mouseleave",o.custom.hover?j:null),ue(E),Z(),m.init()}))},fe=function(){return null!==S&&null!==l?(s.attr("transform","translate("+o.padding.left+","+o.padding.top+")"),W.attr("x",0).attr("y",0).attr("width",pe).attr("height",D),X.selectAll(".visup-dot-text").attr("y",function(){return d3.select(this.parentNode).datum().y}).attr("x",function(){return d3.select(this.parentNode).datum().x}).text(function(){return z(d3.select(this.parentNode).datum().label)}),o.custom.showLabels?y.selectAll(".visup-dot-label").classed("visup-hidden",!0):void 0):void 0},oe=function(t){var e;return e=null!=t?s.transition().duration(t):s,e.selectAll(".visup-dot-circle").attr("cy",function(){return d3.select(this.parentNode).datum().y}).attr("cx",function(){return d3.select(this.parentNode).datum().x}).attr("r",function(){return d3.select(this.parentNode).datum().r}),e.selectAll(".visup-dot-plus").attr("y",function(){return d3.select(this.parentNode).datum().y}).attr("x",function(){return d3.select(this.parentNode).datum().x})},re=function(t){var e;return e=null!=t?s.transition().duration(t):s,e.selectAll(".visup-dot-circle").style("fill",function(){return(d3.select(this.parentNode).datum().total||d3.select(this.parentNode).classed("visup-dot-parent"))&&0!==de?"white":d3.select(this.parentNode).datum().color}).style("stroke",function(){return d3.select(this.parentNode).datum().total||d3.select(this.parentNode).classed("visup-dot-parent")?d3.select(this.parentNode).datum().color:"none"}),s.selectAll(".visup-dot-plus").classed("visup-hidden",function(){return!d3.select(this.parentNode).classed("visup-parent")}),e.selectAll(".visup-dot-plus").style("fill","white").style("font-size",function(){return d3.select(this.parentNode).datum().r>20?30:3*d3.select(this.parentNode).datum().r/2}).text("+")},ie=function(){var t,e;if(t=3,y.selectAll(".visup-dot-label").classed("visup-collide",!1).classed("visup-hidden",!0),o.custom.showLabels){switch(de){case 1:e=y.selectAll(".visup-dot-label.layer1");break;case 2:e=y.selectAll(".visup-dot-label.layer2");break;case 3:e=y.selectAll(".visup-dot-label.layer3")}return e.sort(function(t,e){return e.r-t.r}).classed("left",function(t){return t.x<pe/2}).classed("right",function(t){return t.x>=pe/2}).each(function(n,r){var i,o,a;return i=this,o=!1,a=d3.select(this).classed("left")?"left":"right",e.each(function(e,a){return r>a&&!d3.select(this).classed("visup-collide")&&Math.abs(n.y-e.y)<$(this).outerHeight()+t&&(d3.select(i).classed("left")&&d3.select(this).classed("left")||d3.select(i).classed("right")&&d3.select(this).classed("right"))?o=!0:void 0}),d3.select(i).classed("visup-collide",o)}),e.classed("visup-hidden",function(){return d3.select(this).classed("visup-collide")}).style("top",function(t){return o.padding.top+t.y-$(this).outerHeight()/2+"px"}).style("left",function(e){return d3.select(this).classed("right")?o.padding.left+e.x+e.r+t+"px":void 0}).style("right",function(e){return d3.select(this).classed("left")?o.padding.right+pe-e.x+e.r+t+"px":void 0}).style("border-color",function(t){return t.color}).text(function(t){return t.label}),e.each(function(){var t,e,n,r;return d3.select(this).classed("visup-hidden")?void 0:(e=$(this).position().left,n=e+$(this).outerWidth(),r=$(this).position().top,t=r+$(this).outerHeight(),e<-o.padding.left||n>pe+o.padding.right||r<-o.padding.top||t>D+o.padding.bottom?d3.select(this).classed("visup-hidden",!0):d3.select(this).classed("visup-hidden",!1))}),e.insert("div").attr("class","visup-dot-label-line").style("margin-left",function(){return d3.select(this.parentNode).classed("left")?$(this.parentNode).outerHeight()+5+"px":"-5px"}).style("background-color",function(){return d3.select(this.parentNode).datum().color})}},Z=function(t){return clearTimeout(G),clearInterval(I),I=setInterval(function(){return R(),oe()},15),G=setTimeout(function(){return o.custom.showLabels&&ie(),K()},5e3),t?void 0:m.started()},K=function(t){return clearTimeout(G),clearInterval(I),t?void 0:m.stopped()},R=function(){var t;return t=.05,l.forEach(function(e){return e.x=a(e.x+(e.fx-e.x)*t,e.r),e.y=u(e.y+(e.fy-e.y)*t,e.r)}),M.each(r(.3,c)),k.each(r(.3,f)),C.each(r(.3,d))},r=function(t,e){var n,r,i;return n=1*t,i=d3.geom.quadtree(e),r=o.custom.circlePadding,function(t){var e,o,s,l,c;return e=t.r+r,o=t.x-e,s=t.x+e,l=t.y-e,c=t.y+e,i.visit(function(i,f,d,p,h){var v,g,m;return i.point&&i.point!==t&&(v=t.x-i.point.x,g=t.y-i.point.y,m=Math.sqrt(v*v+g*g),e=t.r+r+i.point.r,e>m&&(m=(m-e)/m*n,v*=m,g*=m,t.x=a(t.x-v,t.r),t.y=u(t.y-g,t.r),i.point.x+=v,i.point.y+=g)),f>s||o>p||d>c||l>h})}},a=function(t,e){var n;return n=10,t<e-o.padding.left+n?e-o.padding.left+n:t>pe+o.padding.right-e-n?pe+o.padding.right-e-n:t},u=function(t,e){var n;return n=10,t<e-o.padding.top+n?e-o.padding.top+n:t>D+o.padding.bottom-e-n?D+o.padding.bottom-e-n:t},ce=function(t,e){var n,r;switch(w.classed("visup-hidden",!0),null!==b&&b.classed("visup-hidden",!0),M.classed("visup-selected",!1).classed("visup-masked",!1),k.classed("visup-selected",!1).classed("visup-masked",!1),C.classed("visup-selected",!1).classed("visup-masked",!1),n=null,de){case 1:M.each(function(e){return e.label.replace(/@/g,"")===t?n=this:void 0});break;case 2:k.each(function(e){return e.label.replace(/@/g,"")===t?n=this:void 0});break;case 3:C.each(function(e){return e.label.replace(/@/g,"")===t?n=this:void 0})}return null===t||null===n?(M.classed("visup-inspected",!1),k.classed("visup-inspected",!1),C.classed("visup-inspected",!1),J=null,m.select(null)&&!e):(M.classed("visup-masked",!0),k.classed("visup-masked",!0),C.classed("visup-masked",!0),J=n,d3.select(n).classed("visup-selected",!0).classed("visup-masked",!1),r={color:d3.select(J).select(".visup-dot-circle").style("fill"),percent:d3.round(d3.select(J).datum().value/w.datum().value*100,1),variation:d3.select(J).datum().variation,variationAbs:Math.abs(d3.select(J).datum().variation),label:d3.select(J).datum().label.replace(/@/g,""),value:d3.select(J).datum().value,series:d3.select(J).datum().series,procapite:d3.round(d3.select(J).datum().procapite,2),andamento:d3.select(J).datum().andamento,layer1:c[d3.select(J).datum().layer1].label,layer2:de>1&&!d3.select(J).datum().added2?f[d3.select(J).datum().layer2].label:null,layer3:de>2&&!d3.select(J).datum().added3?d[d3.select(J).datum().layer3].label:null},m.select(r)&&!e)},T=function(){if(d3.select(this).classed("visup-parent")){switch(J=this,de){case 1:ue(2),m.secondclick(2);break;case 2:ue(3),m.secondclick(3);break;default:m.secondclick(3)}return L=!1,M.classed("visup-hover",!1),k.classed("visup-hover",!1),C.classed("visup-hover",!1)}},N=function(){var t,e,n,r,i,o,a,u;switch(L=!0,n=!1,de){case 1:for(i=0,a=f.length;a>i;i++)if(t=f[i],null!=t.layer1&&t.layer1===d3.select(this).datum().layer1&&t.label!==d3.select(this).datum().label){n=!0;break}break;case 2:for(o=0,u=d.length;u>o;o++)if(t=d[o],null!=t.layer2&&t.layer2===d3.select(this).datum().layer2&&t.label!==d3.select(this).datum().label){n=!0;break}}switch(w.classed("visup-hidden",!0),null!==b&&b.classed("visup-hidden",!0),M.classed("visup-hover",!1).classed("visup-masked",!0),k.classed("visup-hover",!1).classed("visup-masked",!0),C.classed("visup-hover",!1).classed("visup-masked",!0),d3.select(this).classed("visup-hover",!0).classed("visup-masked",!1).classed("visup-parent",n),e=this,r=null,de){case 2:M.each(function(){return d3.select(this).datum().layer1===d3.select(e).datum().layer1?r=d3.select(this).datum():void 0});break;case 3:k.each(function(){return d3.select(this).datum().layer2===d3.select(e).datum().layer2?r=d3.select(this).datum():void 0})}return re(),m.mouseenter({color:d3.select(this).select(".visup-dot-circle").style("fill"),percent:d3.round(d3.select(this).datum().value/w.datum().value*100,1),variation:d3.select(this).datum().variation,variationAbs:Math.abs(d3.select(this).datum().variation),label:d3.select(this).datum().label.replace(/@/g,""),value:d3.select(this).datum().value,series:d3.select(this).datum().series,procapite:d3.round(d3.select(this).datum().procapite,2),andamento:d3.select(this).datum().andamento,layer1:c[d3.select(this).datum().layer1].label,layer2:de>1&&!d3.select(this).datum().added2?f[d3.select(this).datum().layer2].label:null,layer3:de>2&&!d3.select(this).datum().added3?d[d3.select(this).datum().layer3].label:null})},j=function(){return L=!1,M.classed("visup-hover",!1).classed("visup-masked",!1).classed("visup-parent",!1),k.classed("visup-hover",!1).classed("visup-masked",!1).classed("visup-parent",!1),C.classed("visup-hover",!1).classed("visup-masked",!1).classed("visup-parent",!1),null!==s.selectAll(".visup-inspected").node()&&(M.each(function(){return d3.select(this).classed("visup-inspected")===!1?d3.select(this).classed("visup-masked",!0):void 0}),k.each(function(){return d3.select(this).classed("visup-inspected")===!1?d3.select(this).classed("visup-masked",!0):void 0}),C.each(function(){return d3.select(this).classed("visup-inspected")===!1?d3.select(this).classed("visup-masked",!0):void 0})),re(),m.mouseleave()},z=function(t){var e,n,r;return _.isNaN(t)||_.isUndefined(t)?"n.d.":(e=t,r="",t>=1e9?(e=t/1e9,r="MLD"):t>=1e6?(e=t/1e6,r="M"):t>=1e3&&(e=t/1e3,r="K"),n="",n=e.toFixed(e>=100?1:2),n.split(".").join(",")+r)},Y=function(t){var e,n,r;if(_.isNaN(t)||_.isUndefined(t))return"n.d.";for(e=0,n=r=15;r>=1;n=--r){if(t>=Math.pow(10,n))return e=Math.ceil(t/Math.pow(10,n))*Math.pow(10,n),[e];if(t>=.5*Math.pow(10,n))return e=.5*Math.ceil(t/.5/Math.pow(10,n))*Math.pow(10,n),[e]}},n},t.composizioneSimple=function(t){var e,n,r,i,o,a,u,s,l,c,f,d,p,h,v,g,m,y,b,x,w,M,k,C,S,E,A,T,N,j,D,L,R,O,q,P,H,F,U,I,z,B,V,W,Y,X,J,Z,G,K,Q,te,ee,ne,re,ie;return b=d3.select(t).style("position","relative"),p={padding:{top:48,right:0,bottom:75,left:10},scales:{y:{field:"variation",domain:[-5e4,-25,0,25,5e4],range:[1,7/8,.5,1/8,0]},r:{field:"value",domain:null,range:[0,80]},color:{field:"variation",domain:[-25,-5,0,5,25],range:["#9b2d1b","#b74832","#e58d7f","#cadd7a","#9fb746","#7d8e17"]}},custom:{circlePadding:5,hover:!0,showLabels:!0,minRadius:8}},o=_.cloneDeep(p),l=c=d=f=s=Y=j=D=N=S=re=y=m=g=L=I=E=R=null,O=B=null,T=W=null,ie=d3.scale.linear(),P=d3.scale.sqrt(),i=d3.scale.threshold(),w=d3.layout.force().gravity(0).charge(0),h=d3.dispatch("click","select","mouseenter","mouseleave","reset","init"),(te=function(){var e,n;return n=$(t).width(),e=$(t).height(),re=n-o.padding.right-o.padding.left,S=e-o.padding.top-o.padding.bottom})(),s=b.append("svg").attr("width","100%").attr("height","100%").append("g").attr("class","visup-chart-container"),e=s.append("g").attr("class","visup-chart-yAxis"),Y=s.append("g").attr("class","visup-chart-total"),U=s.append("g").attr("class","visup-chart-sample"),H=s.append("rect").attr("class","visup-chart-resethandler").on("click",function(){return ee(null,!0),J(),h.reset(I)}),j=s.append("g").attr("class","visup-chart-layer1"),v=b.append("div").attr("class","visup-chart-dotlabels"),n=function(){return n},n.version="0.11.0",n.data=function(t){return 0===arguments.length?l:(l=t,X(),K(),Q(),n)},n.options=function(t){return 0===arguments.length?o:(o=_.merge(o,t,function(t,e){return _.isArray(t)?e:void 0}),te(),X(),K(),Q(),n)},n.resize=function(){return l.forEach(function(t){return t.fx=re/2}),te(),K(),ne(),G(),n},n.on=function(t,e){return h.on(t,e),n},n.destroy=function(){return b.selectAll("*").remove(),n},n.select=function(t,e){return ee(t,e),J(),n},n.hover=function(t){return E=t,J(),n},n.mask=function(t,e){return R=t,e?(y.classed("visup-masked",t),d3.select(I).classed("visup-masked",!t)):y.classed("visup-masked",t),J(),n},n.labels=function(t){var e;return o.custom.showLabels=t,e=t,Z(),n},n.init=function(t){return x(t),n},X=function(){var t,e,n,r,a,u,s,p,h;if(null!==l){for(d=[],c=[],l.forEach(function(t){return t.total&&d.push(t),t.total?void 0:c.push(t)}),c.sort(function(t,e){return _.isEmpty(c)?void 0:t.layer1-e.layer1}),f=[],h=F(d3.max(l,function(t){return t[o.scales.r.field]})/10),s=0,p=h.length;p>s;s++)u=h[s],f.push({sample:!0,r:u,label:u+""});return y=j.selectAll("g.visup-dot").data(c),n=y.enter().append("g").attr("class","visup-dot").on("click",M),n.append("circle").attr("class","visup-dot-circle"),n.append("text").attr("class","visup-dot-text"),y.exit().remove(),r=v.selectAll("div.visup-dot-label.layer1.half").data(c),a=r.enter().append("div").attr("class","visup-dot-label layer1 half"),r.exit().remove(),g=U.selectAll("g.visup-dot-sample").data(f),t=g.enter().append("g").attr("class","visup-dot-sample"),t.append("circle").attr("class","visup-dot-circle"),t.append("text").attr("class","visup-dot-text"),g.exit().remove(),y.on("mouseenter",o.custom.hover?k:null).on("mouseleave",o.custom.hover?C:null),m=Y.selectAll("g.visup-dot.visup-dot-total").data(d),e=m.enter().append("g").attr("class","visup-dot visup-dot-total"),e.append("circle").attr("class","visup-dot-circle"),e.append("text").attr("class","visup-dot-text"),m.exit().remove(),ie.domain(o.scales.y.domain),P.domain(null===o.scales.r.domain?[0,d3.max(l,function(t){return t[o.scales.r.field]})]:o.scales.r.domain),i.domain(o.scales.color.domain)}},K=function(){var t,e,n,r,a;if(null!==l){for(e=[],a=o.scales.y.range,n=0,r=a.length;r>n;n++)t=a[n],e.push(S*t);return ie.range(e),P.range(o.scales.r.range),i.range(o.scales.color.range)}},Q=function(){return null!==l?(f.forEach(function(t,e){return t.r=P(t.r)>o.custom.minRadius?P(t.r):o.custom.minRadius,t.x=t.fx=f[0].r+2,t.y=t.fy=S+o.padding.bottom-t.r-2*e-2}),d.forEach(function(t){return t.r=P(t[o.scales.r.field])>o.custom.minRadius?P(t[o.scales.r.field]):o.custom.minRadius,t.color=i(t[o.scales.color.field]),t.x=t.fx=re/2,t.y=t.fy=ie(t[o.scales.y.field])}),l.forEach(function(t){return t.total&&t.sample?void 0:(t.x=m.datum().x+Math.random(),t.y=m.datum().y+Math.random(),t.r=P(t[o.scales.r.field])>o.custom.minRadius?P(t[o.scales.r.field]):o.custom.minRadius,t.color=m.datum().color,t.fx=re/2,t.fy=ie(t[o.scales.y.field]))}),y.style("opacity",0).classed("visup-hidden",!0),ne(),J(),G(),H.classed("visup-hidden",!0),m.classed("initial",!0),m.selectAll(".visup-dot-circle").style("fill",function(){return d3.select(this.parentNode).datum().color}),m.select(".visup-dot-text").attr("y",function(){return d3.select(this.parentNode).datum().y}).attr("x",function(){return d3.select(this.parentNode).datum().x}).text("+"),y.on("mouseenter",null).on("mouseleave",null),s.select("g.visup-dot.visup-dot-total.initial").on("click",function(){return x()})):void 0},ne=function(){return null!==b&&null!==l?(s.attr("transform","translate("+o.padding.left+","+o.padding.top+")"),H.attr("x",0).attr("y",0).attr("width",re).attr("height",S),U.selectAll(".visup-dot-text").attr("y",function(){return d3.select(this.parentNode).datum().y}).attr("x",function(){return d3.select(this.parentNode).datum().x}).text(function(){return q(d3.select(this.parentNode).datum().label)}),o.custom.showLabels?v.selectAll(".visup-dot-label").classed("visup-hidden",!0):void 0):void 0},J=function(t){var e;return e=null!=t?s.transition().duration(t):s,e.selectAll(".visup-dot-circle").style("fill",function(){return d3.select(this.parentNode).datum().total?"white":d3.select(this.parentNode).datum().color}).style("stroke",function(){return d3.select(this.parentNode).datum().total?d3.select(this.parentNode).datum().color:"none"})},G=function(){return s.selectAll(".visup-dot-circle").attr("cy",function(){return d3.select(this.parentNode).datum().y}).attr("cx",function(){return d3.select(this.parentNode).datum().x}).attr("r",function(){return d3.select(this.parentNode).datum().r})},Z=function(){var t,e;return t=3,v.selectAll(".visup-dot-label").classed("visup-collide",!1).classed("visup-hidden",!0),o.custom.showLabels?(e=v.selectAll(".visup-dot-label.layer1"),e.sort(function(t,e){return e.r-t.r}).classed("left",function(t){return t.x<re/2}).classed("right",function(t){return t.x>=re/2}).each(function(n,r){var i,o,a;return i=this,o=!1,a=d3.select(this).classed("left")?"left":"right",e.each(function(e,a){return r>a&&!d3.select(this).classed("visup-collide")&&Math.abs(n.y-e.y)<$(this).outerHeight()+t&&(d3.select(i).classed("left")&&d3.select(this).classed("left")||d3.select(i).classed("right")&&d3.select(this).classed("right"))?o=!0:void 0}),d3.select(i).classed("visup-collide",o)}),e.classed("visup-hidden",function(){return d3.select(this).classed("visup-collide")}).style("top",function(t){return o.padding.top+t.y-$(this).outerHeight()/2+"px"}).style("left",function(e){return d3.select(this).classed("right")?o.padding.left+e.x+e.r+t+"px":void 0}).style("right",function(e){return d3.select(this).classed("left")?o.padding.right+re-e.x+e.r+t+"px":void 0}).style("border-color",function(t){return t.color}).text(function(t){return t.label}),e.each(function(){var t,e,n,r,i,a;d3.select(this).classed("visup-hidden")||(n=$(this).outerWidth(),e=10,r=$(this).position().left,i=r+$(this).outerWidth(),a=$(this).position().top,t=a+$(this).outerHeight(),a<-o.padding.top||t>S+o.padding.bottom?d3.select(this).classed("visup-hidden",!0):r<-o.padding.left?d3.select(this).classed("visup-hidden",!1).style("width",function(){return n-Math.abs(o.padding.left-r)-e+"px"}):i>re+o.padding.right?d3.select(this).classed("visup-hidden",!1).style("width",function(){return n-Math.abs(re+o.padding.right-i)-e+"px"}):d3.select(this).classed("visup-hidden",!1))}),e.insert("div").attr("class","visup-dot-label-line").style("margin-left",function(){return d3.select(this.parentNode).classed("left")?$(this.parentNode).outerHeight()+5+"px":"-5px"}).style("background-color",function(){return d3.select(this.parentNode).datum().color})):void 0},z=function(){return clearTimeout(B),clearInterval(O),O=setInterval(function(){return A(),G()},15),B=setTimeout(function(){return V(),o.custom.showLabels?Z():void 0},5e3)},V=function(){return clearTimeout(B),clearInterval(O)},A=function(){var t;return t=.07,l.forEach(function(e){return e.x=a(e.x+(e.fx-e.x)*t,e.r),e.y=u(e.y+(e.fy-e.y)*t,e.r)}),y.each(r(.3))},r=function(t){var e,n,r;return e=1*t,r=d3.geom.quadtree(c),n=o.custom.circlePadding=5,function(t){var i,o,s,l,c;return i=t.r+n,o=t.x-i,s=t.x+i,l=t.y-i,c=t.y+i,r.visit(function(r,f,d,p,h){var v,g,m;return r.point&&r.point!==t&&(v=t.x-r.point.x,g=t.y-r.point.y,m=Math.sqrt(v*v+g*g),i=t.r+n+r.point.r,i>m&&(m=(m-i)/m*e,v*=m,g*=m,t.x=a(t.x-v,t.r),t.y=u(t.y-g,t.r),r.point.x+=v,r.point.y+=g)),f>s||o>p||d>c||l>h})}},ee=function(t,e){var n,r;if(y.classed("visup-selected",!1).classed("visup-masked",!1),n=null,y.each(function(e){return e.label.replace(/@/g,"")===t?n=this:void 0}),null===t||null===n){if(I=null,!e)return h.select(null)}else if(y.classed("visup-masked",!0),I=n,d3.select(n).classed("visup-selected",!0).classed("visup-masked",!1),r={color:d3.select(I).select(".visup-dot-circle").style("none"!==d3.select(I).select(".visup-dot-circle").style("stroke")?"stroke":"fill"),percent:d3.round(d3.select(I).datum().value/m.datum().value*100,1),variation:d3.select(I).datum().variation,variationAbs:Math.abs(d3.select(I).datum().variation),label:d3.select(I).datum().label.replace(/@/g,""),value:d3.select(I).datum().value,series:d3.select(I).datum().series,procapite:d3.round(d3.select(I).datum().procapite,2)},!e)return h.select(r)},M=function(){var t;return y.classed("visup-selected",!1).classed("visup-masked",!0),I=this,d3.select(this).classed("visup-selected",!0).classed("visup-masked",!1),J(),null!==I?(t={color:d3.select(I).select(".visup-dot-circle").style("fill"),percent:d3.round(d3.select(I).datum().value/m.datum().value*100,1),variation:d3.select(I).datum().variation,variationAbs:Math.abs(d3.select(I).datum().variation),label:d3.select(I).datum().label.replace(/@/g,""),value:d3.select(I).datum().value,series:d3.select(I).datum().series,procapite:d3.round(d3.select(I).datum().procapite,2)},h.click(t)):h.click(null)},k=function(){return E=!0,y.classed("visup-hover",!1).classed("visup-masked",!0),d3.select(this).classed("visup-hover",!0).classed("visup-masked",!1),J(),h.mouseenter({color:d3.select(this).select(".visup-dot-circle").style("fill"),percent:d3.round(d3.select(this).datum().value/m.datum().value*100,1),variation:d3.select(this).datum().variation,variationAbs:Math.abs(d3.select(this).datum().variation),label:d3.select(this).datum().label.replace(/@/g,""),value:d3.select(this).datum().value,series:d3.select(this).datum().series,procapite:d3.round(d3.select(this).datum().procapite,2)})},C=function(){return E=!1,y.classed("visup-hover",!1),null!==I||R?(y.classed("visup-masked",!0),d3.select(I).classed("visup-masked",!1)):y.classed("visup-masked",!1),J(),h.mouseleave()},a=function(t,e){var n;return n=10,t<e-o.padding.left+n?e-o.padding.left+n:t>re+o.padding.right-e-n?re+o.padding.right-e-n:t},u=function(t,e){var n;return n=10,t<e-o.padding.top+n?e-o.padding.top+n:t>S+o.padding.bottom-e-n?S+o.padding.bottom-e-n:t},x=function(t){var e;return H.classed("visup-hidden",!1),m.classed("initial",!1),c.forEach(function(t){return t.r=P(t[o.scales.r.field])>o.custom.minRadius?P(t[o.scales.r.field]):o.custom.minRadius,t.fx=re/2,t.fy=ie(t[o.scales.y.field])}),o.custom.showLabels&&v.selectAll(".visup-dot-label").classed("visup-hidden",!0),y.classed("visup-hidden",!1).transition().style("opacity",1),T=setInterval(function(){return y.each(r(.3,c)),G()},15),c.forEach(function(t){return t.total?void 0:t.color=i(t[o.scales.color.field])}),J(500),W=setTimeout(function(){return clearTimeout(W),clearInterval(T),z()},500),e=setTimeout(function(){return y.on("mouseenter",o.custom.hover?k:null).on("mouseleave",o.custom.hover?C:null)},1500),t?void 0:h.init()},q=function(t){var e,n,r;return _.isNaN(t)||_.isUndefined(t)?"n.d.":(e=t,r="",t>=1e9?(e=t/1e9,r="MLD"):t>=1e6?(e=t/1e6,r="M"):t>=1e3&&(e=t/1e3,r="K"),n="",n=e.toFixed(e>=100?1:2),n.split(".").join(",")+r)},F=function(t){var e,n,r;if(_.isNaN(t)||_.isUndefined(t))return"n.d.";for(e=0,n=r=15;r>=1;n=--r){if(t>=Math.pow(10,n))return e=Math.ceil(t/Math.pow(10,n))*Math.pow(10,n),[e];if(t>=.5*Math.pow(10,n))return e=.5*Math.ceil(t/.5/Math.pow(10,n))*Math.pow(10,n),[e]}},n}}.call(this),function(){"use strict";var t;t=window.visup=window.visup||{},t.minipie=function(t){var e,n,r,i,o,a,u,s,l,c,f,d,p,h,v,g,m,y,b,x;return f=d3.select(t).style("position","relative"),c={padding:{top:0,right:0,bottom:0,left:0},scales:{color:{range:["#ceccc4","#ceccc4"]}},custom:{innerRadius:0,outerRadius:null,startAngle:0,endAngle:-360,sortByValue:!1}},a=_.cloneDeep(c),s=l=u=v=p=d=x=r=null,o=d3.scale.ordinal(),h=d3.layout.pie(),e=d3.svg.arc(),(y=function(){var e,n;return n=$(t).width(),e=$(t).height(),x=n-a.padding.right-a.padding.left,d=e-a.padding.top-a.padding.bottom})(),u=f.append("svg").attr("width","100%").attr("height","100%").append("g").attr("class","chart-container"),i=function(){return i},i.data=function(t){return 0===arguments.length?s:(s=t,g(),m(),b(),i)},i.options=function(t){return 0===arguments.length?a:(a=_.merge(a,t,function(t,e){return _.isArray(t)?e:void 0}),y(),g(),m(),b(),i)},i.resize=function(){return y(),m(),b(),i},i.destroy=function(){return f.selectAll("*").remove(),i},g=function(){return null!==s?(h.value(function(t){return t}).startAngle(a.custom.startAngle).endAngle(a.custom.endAngle/180*Math.PI),a.custom.sortByValue||h.sort(function(t){return t}),l=h(s),r=u.selectAll("path.arc").data(l),r.enter().append("path").attr("class","arc").each(function(t){return this._current=t}),r.exit().remove(),o.domain(d3.range(s.length))):void 0},m=function(){return o.range(a.scales.color.range),e.innerRadius(a.custom.innerRadius),e.outerRadius(null===a.custom.outerRadius?d3.min([x,d])/2:a.custom.outerRadius)},b=function(){return null!==f&&null!==s?(u.attr("transform","translate("+(x/2+a.padding.left)+","+(d/2+a.padding.top)+")"),r.transition().style("opacity",1).style("fill",function(t,e){return o(e)}).attrTween("d",n)):void 0},n=function(t){var n;return n=d3.interpolate(this._current,t),this._current=n(0),function(t){var r;return r=t,e(n(t))}},i}}.call(this),function(){!function(t,e){"use strict";var n;n=window.visup=window.visup||{},n.bilancio=function(t){return n.bilancio._onload=t,n.bilancio._inited?t():void 0},e.controller("AppControllerBilancio",["$scope","$rootScope","$location","$http","$q","$timeout","$log",function(t){var e,r,i,o,a,u,s;return t.selected=null,t.type=null,t.year=null,t.widget1=t.widget2=t.widget3=null,t.showLabels=null,t.showHelp=null,t.helpTitle=null,t.helpText=null,u=s=a=null,i="#9fb746",r="#b74832",e="ENTRATE",o="SPESE",n.bilancio.data=function(r){var i,l,c,f,d,p,h,v,g,m,y,b,x,w,M,k,C,_,S;for(d=S=1;6>=S;d=++S)null!=r["widget"+d].variation&&(r["widget"+d].variationAbs=Math.abs(r["widget"+d].variation));return t.$apply(function(){return t.year=r.year,t.widget1=r.widget1,t.widget2=r.widget2,t.widget3=r.widget3,t.widget4=r.widget4,t.widget5=r.widget5,t.widget6=r.widget6,t.showLabels=r.showLabels,t.showHelp=r.showHelp,t.helpTitle=r.helpTitle,t.helpText=r.helpText}),f=d3.extent(r.entrate,function(t){return t.value}),w=d3.extent(r.spese,function(t){return t.value}),M=d3.extent(f.concat(w)),c=d3.dispatch("select"),g=r.showLabels,t.toggleActive=!1,p=!1,i=n.composizioneSimple(".visup-graph-left-container .visup-graph-container").data(r.entrate),r.hover||i.options({custom:{hover:!1}}),r.showLabels||i.options({custom:{showLabels:!1}}),i.options({scales:{r:{domain:M}}}),i.on("select",function(t){return _(t,e,!0)}),i.on("click",function(t){return _(t,e)}),i.on("mouseenter",function(t){return k(t,e)}),i.on("mouseleave",function(){return C(e)}),i.on("reset",function(){return v(e)}),i.on("init",function(){var e;return p?void 0:(e=setTimeout(function(){return t.$apply(function(){return t.toggleActive=!0})},5e3),l.init(!0),p=!0)}),l=n.composizioneSimple(".visup-graph-right-container .visup-graph-container").data(r.spese),d3.select(".visup-graph-right-container .visup-chart-sample").classed("visup-hidden",!0),r.hover||l.options({custom:{hover:!1}}),r.showLabels||l.options({custom:{showLabels:!1}}),l.options({scales:{r:{domain:M}}}),l.on("select",function(t){return _(t,o,!0)}),l.on("click",function(t){return _(t,o)}),l.on("mouseenter",function(t){return k(t,o)}),l.on("mouseleave",function(){return C(o)}),l.on("reset",function(){return v(o)}),l.on("init",function(){var e;return p?void 0:(e=setTimeout(function(){return t.$apply(function(){return t.toggleActive=!0})},5e3),i.init(!0),p=!0)}),"spark"===r.widget1.type&&(m=n.spark(".visup-graph-container.visup-spark-1").data(r.widget1.series).options({padding:{left:12,right:12,bottom:8,top:25},custom:{color:"#A09D93",showYear:!0}}).year(r.year)),"spark"===r.widget2.type&&(y=n.spark(".visup-graph-container.visup-spark-2").data(r.widget2.series).options({padding:{left:12,right:12,bottom:8,top:25},custom:{color:"#A09D93",showYear:!0}}).year(r.year)),"spark"===r.widget3.type&&(b=n.spark(".visup-graph-container.visup-spark-3").data(r.widget3.series).year(r.year).options({padding:{left:12,right:12,bottom:8,top:25},custom:{color:"#A09D93",showYear:!0}}).year(r.year)),$(".visup-widget-close").click(function(){return v()}),h=n.minipie(".visup-pie-container.visup-pie-4").options({scales:{color:{range:["#A09D93","#ceccc4"]}}}),x=n.spark(".visup-graph-container.visup-spark-4").options({padding:{left:12,right:12,bottom:8,top:25},custom:{color:"#A09D93",showYear:!0}}),_=function(n,f,d){return f===o&&(d||i.select(null,!0),i.mask(!0,!0)),f===e&&(d||l.select(null,!0),l.mask(!0,!0)),t.$apply(function(){return t.selected=n,t.type=f}),u=n,s=f,d||c.select(u),null!==n?($(".visup-sidebar1").addClass("visup-graph-selection"),h.data([n.percent>1?n.percent:1,100]),x.data(n.series).year(r.year)):$(".visup-sidebar1").removeClass("visup-graph-selection"),$(".visup-sidebar1").hasClass("visup-graph-hover")?(t.$apply(function(){return t.selected=a,t.type=f}),h.data([a.percent>1?a.percent:1,100]),x.data(a.series).year(r.year)):void 0},v=function(t){return t!==o&&t||i.select(null,!0),t!==e&&t||l.select(null,!0),i.mask(!1),l.mask(!1),$(".visup-sidebar1").removeClass("visup-graph-selection"),u=null,c.select(null)},k=function(n,u){return u===o&&i.mask(!0),u===e&&l.mask(!0),t.$apply(function(){return t.selected=n,t.type=u}),a=n,$(".visup-sidebar1").addClass("visup-graph-hover"),null!==n?(h.data([n.percent>1?n.percent:1,100]),x.data(n.series).year(r.year)):void 0},C=function(n){return null===u?(n===o&&i.mask(!1),n===e&&l.mask(!1)):(n===o&&i.mask(!0,!0),n===e&&l.mask(!0,!0)),$(".visup-sidebar1").removeClass("visup-graph-hover"),$(".visup-sidebar1").hasClass("visup-graph-selection")?(t.$apply(function(){return t.selected=u,t.type=s}),h.data([u.percent>1?u.percent:1,100]),x.data(u.series).year(r.year)):void 0},$(".visup-graph-toggle").click(function(){return t.toggleActive?(g=!g,t.$apply(function(){return t.showLabels=g}),i.labels(g),l.labels(g)):void 0}),n.bilancio.selected=function(t){return 0===arguments.length?u:(i.select(t),i.mask(!0,!0),l.mask(!0),null===u&&(l.select(t),l(!0,!0)),null===u&&(i.mask(!1),l.mask(!1)),void c.select(u))},n.bilancio.on=function(t,e){return c.on(t,e)}},n.bilancio._inited=!0,null!=n.bilancio._onload?n.bilancio._onload():void 0}])}(angular,window.App)}.call(this),function(){!function(t,e){"use strict";
  var n;n=window.visup=window.visup||{},n.composizione=function(t){return n.composizione._onload=t,n.composizione._inited?t():void 0},e.controller("AppControllerComposizione",["$scope","$rootScope","$location","$http","$q","$timeout","$log",function(t){var e,r,i,o,a,u,s;return t.selected=null,t.type="-",t.year=null,t.button1=t.button2=t.button3=null,t.widget1=t.widget2=t.widget3=null,t.showLabels=null,t.toggleActive=null,t.showHelp=null,t.helpTitle=null,t.helpText=null,a=i=o=u=null,r="#9fb746",e="#b74832",s=null,n.composizione.data=function(e){var r,l,c,f,d,p,h,v,g,m,y,b,x,w;for(c=w=1;6>=w;c=++w)null!=e["widget"+c].variation&&(e["widget"+c].variationAbs=Math.abs(e["widget"+c].variation));return t.$apply(function(){return t.year=e.year,t.type=e.type,t.button1=e.button1,t.button2=e.button2,t.button3=e.button3,t.widget1=e.widget1,t.widget2=e.widget2,t.widget3=e.widget3,t.widget4=e.widget4,t.widget5=e.widget5,t.widget6=e.widget6,t.showLabels=e.showLabels,t.showHelp=e.showHelp,t.helpTitle=e.helpTitle,t.helpText=e.helpText}),l=d3.dispatch("select"),s=e.type,u=e.showLabels,f=!1,r=n.composizioneLayers(".visup-graph-single-container .visup-graph-container").data(e.composizione),e.hover||r.options({custom:{hover:!1}}),e.showLabels||r.options({custom:{showLabels:!1}}),o=r.layer(),r.on("init",function(){return e.activeLayers>=1&&$(".visup-graph-menu li.first").addClass("active current"),e.activeLayers>=2&&$(".visup-graph-menu li.second").addClass("active"),e.activeLayers>=3&&$(".visup-graph-menu li.third").addClass("active"),f=!0}),r.on("select",function(t){return x(t,s,!0)}),r.on("click",function(t){return x(t,s)}),r.on("secondclick",function(t){switch(o=t){case 1:$(".visup-graph-menu .first").addClass("current"),$(".visup-graph-menu .second").removeClass("current"),$(".visup-graph-menu .third").removeClass("current");break;case 2:$(".visup-graph-menu .first").removeClass("current"),$(".visup-graph-menu .second").addClass("current"),$(".visup-graph-menu .third").removeClass("current");break;case 3:$(".visup-graph-menu .first").removeClass("current"),$(".visup-graph-menu .second").removeClass("current"),$(".visup-graph-menu .third").addClass("current")}return $(".visup-sidebar2").removeClass("visup-graph-selection").removeClass("visup-graph-hover"),$(".visup-breadcrumb").addClass("visup-hidden")}),r.on("inspect",function(e){return a=e,t.$apply(function(){return t.$selected=a}),l.select(a)}),r.on("mouseenter",function(t){return y(t,s)}),r.on("mouseleave",function(){return b(s)}),r.on("reset",function(){return a=null,t.$apply(function(){return t.$selected=a}),l.select(a)}),r.on("started",function(){return t.$apply(function(){return t.toggleActive=!1})}),r.on("stopped",function(){return t.$apply(function(){return t.toggleActive=!0})}),"spark"===e.widget1.type&&(h=n.spark(".visup-graph-container.visup-spark-1").data(e.widget1.series).options({padding:{left:12,right:12,bottom:8,top:25},custom:{color:"#A09D93",showYear:!0}}).year(e.year)),"spark"===e.widget2.type&&(v=n.spark(".visup-graph-container.visup-spark-2").data(e.widget2.series).options({padding:{left:12,right:12,bottom:8,top:25},custom:{color:"#A09D93",showYear:!0}}).year(e.year)),"pie"===e.widget2.type&&(d=n.minipie(".visup-pie-container.visup-pie-2").options({scales:{color:{range:["#A09D93","#ceccc4"]}}}).data([e.widget2.percent>1?e.widget2.percent:1,100])),"spark"===e.widget3.type&&(g=n.spark(".visup-graph-container.visup-spark-3").data(e.widget3.series).year(e.year).options({padding:{left:12,right:12,bottom:8,top:25},custom:{color:"#A09D93",showYear:!0}}).year(e.year)),$(".visup-widget-close").click(function(){return r.select(null),$(".visup-sidebar2").removeClass("visup-graph-selection"),a=null,t.$apply(function(){return t.$selected=a}),l.select(a)}),p=n.minipie(".visup-pie-container.visup-pie-4").options({scales:{color:{range:["#A09D93","#ceccc4"]}}}),m=n.spark(".visup-graph-container.visup-spark-4").options({padding:{left:12,right:12,bottom:8,top:25},custom:{color:"#A09D93",showYear:!0}}),x=function(n,r,o){return t.$apply(function(){return t.selected=n,t.type=r}),a=n,o||l.select(a),null!==n?($(".visup-sidebar2").addClass("visup-graph-selection"),$(".visup-breadcrumb").removeClass("visup-hidden"),p.data([n.percent>1?n.percent:1,100]),m.data(n.series).year(e.year)):($(".visup-sidebar2").removeClass("visup-graph-selection"),$(".visup-breadcrumb").addClass("visup-hidden")),$(".visup-sidebar2").hasClass("visup-graph-hover")?($(".visup-breadcrumb").removeClass("visup-hidden"),t.$apply(function(){return t.selected=i,t.type=r}),p.data([i.percent>1?i.percent:1,100]),m.data(i.series).year(e.year)):void 0},y=function(n,r){return t.$apply(function(){return t.selected=n,t.type=r}),i=n,$(".visup-sidebar2").addClass("visup-graph-hover"),$(".visup-breadcrumb").removeClass("visup-hidden"),null!==n?(p.data([n.percent>1?n.percent:1,100]),m.data(n.series).year(e.year)):void 0},b=function(n){return $(".visup-sidebar2").removeClass("visup-graph-hover"),$(".visup-breadcrumb").addClass("visup-hidden"),$(".visup-sidebar2").hasClass("visup-graph-selection")?($(".visup-breadcrumb").removeClass("visup-hidden"),t.$apply(function(){return t.selected=a,t.type=n}),p.data([a.percent>1?a.percent:1,100]),m.data(a.series).year(e.year)):void 0},$(".visup-graph-menu .first").click(function(){return 1!==o&&f?(o=1,$(".visup-graph-menu .first").addClass("current"),$(".visup-graph-menu .second").removeClass("current"),$(".visup-graph-menu .third").removeClass("current"),r.layer(1),$(".visup-sidebar2").removeClass("visup-graph-selection"),$(".visup-breadcrumb").addClass("visup-hidden")):void 0}),$(".visup-graph-menu .second").click(function(){return 2!==o&&e.activeLayers>=2&&f?(o=2,$(".visup-graph-menu .first").removeClass("current"),$(".visup-graph-menu .second").addClass("current"),$(".visup-graph-menu .third").removeClass("current"),r.layer(2),$(".visup-sidebar2").removeClass("visup-graph-selection"),$(".visup-breadcrumb").addClass("visup-hidden")):void 0}),$(".visup-graph-menu .third").click(function(){return 3!==o&&e.activeLayers>=3&&f?(o=3,$(".visup-graph-menu .first").removeClass("current"),$(".visup-graph-menu .second").removeClass("current"),$(".visup-graph-menu .third").addClass("current"),r.layer(3),$(".visup-sidebar2").removeClass("visup-graph-selection"),$(".visup-layer").removeClass("visup-hidden"),$(".visup-breadcrumb").addClass("visup-hidden")):void 0}),$(".visup-graph-toggle").click(function(){return t.toggleActive?(u=!u,t.$apply(function(){return t.showLabels=u}),r.labels(u)):void 0}),n.composizione.selected=function(t){return 0===arguments.length?a:(r.select(t),void l.select(a))},n.composizione.on=function(t,e){return l.on(t,e)}},n.composizione._inited=!0,null!=n.composizione._onload?n.composizione._onload():void 0}])}(angular,window.App)}.call(this),function(){!function(t,e){"use strict";return e.directive("barchart",["$rootScope","$log","$filter","SystemNotifier",function(t,e,n,r){return{scope:{componentId:"@"},link:function(t,e){var n;return n=da.bars(e[0]),r.setup(t.componentId).on("config",function(t){return n.options(t)}).on("data",function(t){return n.data(t)})},template:JST["dashboards/kiwari_buonmercato/templates/barchart-part"]}}])}(angular,window.App)}.call(this),function(){!function(t,e){"use strict";return e.directive("widgetbilancio",["$rootScope",function(){return{scope:{data:"=",widget:"="},template:JST["dashboards/depp_openbilanci/templates/widget-bilancio"]}}]).directive("widgetbilanciohover",["$rootScope",function(){return{scope:{data:"=",widget:"=",selected:"="},template:JST["dashboards/depp_openbilanci/templates/widget-bilancio-hover"]}}]).directive("widgetcomposizione",["$rootScope",function(){return{scope:{data:"=",widget:"="},template:JST["dashboards/depp_openbilanci/templates/widget-composizione"]}}])}(angular,window.App)}.call(this),function(){!function(t,e){"use strict";return e.filter("capitalize",function(){return function(t){return t&&(t=t.toLowerCase()),t.substring(0,1).toUpperCase()+t.substring(1)}}),e.filter("numstr",function(){return function(t){var e,n,r,i;return _.isNaN(t)||_.isUndefined(t)?"n.d.":(0>t&&(n=!0,t=-t),e=t,i="",t>=1e9?(e=t/1e9,i="MLD"):t>=1e6&&(e=t/1e6,i="MLN"),r="",e>=1e3&&1e6>e?(r=e.toFixed(0),r=r.replace(/\B(?=(\d{3})+(?!\d))/g,".")):(r=e.toFixed(0!==e?2:0),r=r.split(".").join(",")),n?"-"+r+i:r+i)}}),e.filter("decimal",function(){return function(t){var e,n,r,i,o,a;return e=0,n=",",a=".",o=0>t?"-":0===t?"":"+",r=parseInt(t=Math.abs(+t||0).toFixed(e))+"",i=(i=r.length)>3?i%3:0,o+(i?r.substr(0,i)+a:"")+r.substr(i).replace(/(\d{3})(?=\d)/g,"$1"+a)+(e?n+Math.abs(t-r).toFixed(e).slice(2):"")}})}(angular,window.App)}.call(this),function(){!function(t,e){"use strict";var n,r;return n=function(t){return~~(Math.random()*t)},r=[{name:"Argentina",tld:".ar",cca2:"AR",ccn3:32,cca3:"ARG",currency:"ARS","calling-code":"54","alt-spellings":"AR",relevance:0,region:"Americas",subregion:"South America"},{name:"Australia",tld:".au",cca2:"AU",ccn3:36,cca3:"AUS",currency:"AUD","calling-code":"61","alt-spellings":"AU",relevance:1.5,region:"Oceania",subregion:"Australia,New Zealand"},{name:"Bolivia",tld:".bo",cca2:"BO",ccn3:68,cca3:"BOL",currency:"BOB,BOV","calling-code":"591","alt-spellings":"BO",relevance:0,region:"Americas",subregion:"South America"},{name:"Brazil",tld:".br",cca2:"BR",ccn3:76,cca3:"BRA",currency:"BRL","calling-code":"55","alt-spellings":"BR,Brasil",relevance:2,region:"Americas",subregion:"South America"},{name:"Canada",tld:".ca",cca2:"CA",ccn3:124,cca3:"CAN",currency:"CAD","calling-code":"1","alt-spellings":"CA",relevance:2,region:"Americas",subregion:"Northern America"},{name:"Chile",tld:".cl",cca2:"CL",ccn3:152,cca3:"CHL",currency:"CLF,CLP","calling-code":"56","alt-spellings":"CL",relevance:0,region:"Americas",subregion:"South America"},{name:"China",tld:".cn",cca2:"CN",ccn3:156,cca3:"CHN",currency:"CNY","calling-code":"86","alt-spellings":"CN,Zhongguo,Zhonghua,Peoples Republic",relevance:0,region:"Asia",subregion:"Eastern Asia"},{name:"Colombia",tld:".co",cca2:"CO",ccn3:170,cca3:"COL",currency:"COP,COU","calling-code":"57","alt-spellings":"CO",relevance:0,region:"Americas",subregion:"South America"},{name:"Ecuador",tld:".ec",cca2:"EC",ccn3:218,cca3:"ECU",currency:"USD","calling-code":"593","alt-spellings":"EC",relevance:0,region:"Americas",subregion:"South America"},{name:"France",tld:".fr",cca2:"FR",ccn3:250,cca3:"FRA",currency:"EUR","calling-code":"33","alt-spellings":"FR,R\xe9publique fran\xe7aise",relevance:2.5,region:"Europe",subregion:"Western Europe"},{name:"Germany",tld:".de",cca2:"DE",ccn3:276,cca3:"DEU",currency:"EUR","calling-code":"49","alt-spellings":"DE,Bundesrepublik,Deutschland",relevance:3,region:"Europe",subregion:"Western Europe"},{name:"Haiti",tld:".ht",cca2:"HT",ccn3:332,cca3:"HTI",currency:"HTG,USD","calling-code":"509","alt-spellings":"HT",relevance:0,region:"Americas",subregion:"Caribbean"},{name:"Hungary",tld:".hu",cca2:"HU",ccn3:348,cca3:"HUN",currency:"HUF","calling-code":"36","alt-spellings":"HU,Magyarorsz\xe1g",relevance:0,region:"Europe",subregion:"Eastern Europe"},{name:"Italy",tld:".it",cca2:"IT",ccn3:380,cca3:"ITA",currency:"EUR","calling-code":"39","alt-spellings":"IT,Italia",relevance:2,region:"Europe",subregion:"Southern Europe"},{name:"Mexico",tld:".mx",cca2:"MX",ccn3:484,cca3:"MEX",currency:"MXN,MXV","calling-code":"52","alt-spellings":"MX,Mexicanos",relevance:1.5,region:"Americas",subregion:"Central America"},{name:"Russian Federation",tld:".ru",cca2:"RU",ccn3:643,cca3:"RUS",currency:"RUB","calling-code":"7","alt-spellings":"RU,Rossiya",relevance:2.5,region:"Europe",subregion:"Eastern Europe"},{name:"United States",tld:".us",cca2:"US",ccn3:840,cca3:"USA",currency:"USD,USN,USS","calling-code":"1","alt-spellings":"US,USA,United States of America",relevance:3.5,region:"Americas",subregion:"Northern America"},{name:"United States Minor Outlying Islands",tld:".us",cca2:"UM",ccn3:581,cca3:"UMI",currency:"USD","calling-code":"null","alt-spellings":"UM",relevance:0,region:"Americas",subregion:"Northern America"},{name:"Uruguay",tld:".uy",cca2:"UY",ccn3:858,cca3:"URY",currency:"UYI,UYU","calling-code":"598","alt-spellings":"UY",relevance:0,region:"Americas",subregion:"South America"}],e.factory("DataGenerator",["$log",function(){return{generate:function(){var t,e,i;return t=[],t.push({id:"W1",data:{description:"Hello world",campaign:{dayCurrent:n(50),dayTotal:40,lastUpdate:_.now()}}}),t.push({id:"TL1",data:d3.time.days(Date.UTC(2013,11,4),Date.UTC(2014,0,17),d3.time.day).map(function(t,e){return[t.toString(),n(10*e)]})}),t.push({id:"P1",data:{description:"Product list",items:d3.range(8).map(function(t,e){return{id:e+1,label:"Product "+(e+1),image:"http://icons.iconarchive.com/icons/raatsgui/laximus/72/iPhoto-icon.png",value:n(1e5),series:d3.range(15).map(function(){return n(300)})}})}}),e=["Registrazioni","Stampe totali","Redemption totali","Duplicati al clearing","Falsi al clearing","Visualizzazioni","Sconto erogato","Utenti unici"],t.push({id:"M1",data:{description:"Metric list",items:d3.range(6).map(function(t,r){return{id:r+1,label:e[r],value:n(1e7),series:d3.range(15).map(function(){return n(300)})}})}}),t.push({id:"A1",data:{description:"Map visualization",items:d3.range(100).map(function(t){return{id:t,value:n(1e6)}})}}),t.push({id:"A2",data:{description:"Map visualization",items:d3.range(r.length).map(function(t){return{id:r[t].cca3,value:n(1e6)}})}}),t.push({id:"C1",data:d3.range(5).map(function(t){return{category:t+2008,value:n(234),value2:n(234)}})}),t.push({id:"B1",data:d3.range(4).map(function(t){return{label:2008+t,value:n(234),value2:n(234)}})}),t.push({id:"B2",data:d3.range(4).map(function(t){return{label:2008+t,value:n(234),value2:n(234)}})}),i={status:!0,error:null,timestamp:1505864646,item:t}}}}])}(angular,window.App)}.call(this),function(){!function(t,e){"use strict";return e.factory("DataProvider",["$log",function(t){return{setup:function(){var e,n;return n={},e={},{subscribe:function(e,r,i){return t.info("subscribe "+e+" for event "+r),n[e]||(n[e]={}),n[e][r]={id:e,handler:i}},unsubscribe:function(e,r){return t.info("unsubscribe "+e),r?delete n[e][r]:delete n[e]},feed:function(e){return t.info("data received"),_.forEach(e,function(t){return _.forIn(t,function(e,r){var i;return i=n[t.id],i&&i[r]?i[r].handler(e):void 0})})}}}}}])}(angular,window.App)}.call(this),function(){!function(t,e){"use strict";return e.factory("DataSource",["$log","$rootScope",function(t){return{create:function(e){var n,r,i;return i=null,r=function(n,r){var o;return o={id:e.dashboardId,query:n},n||delete o.query,i=d3.json(e.baseUrl).send(e.method||"POST",JSON.stringify(o),function(t,e){return r(t,e)}),t.info(n)},n={},n.load=r,n}}}])}(angular,window.App)}.call(this),function(){!function(t,e){"use strict";return e.factory("timeutils",["$log",function(){return{unixts2date:function(t){return new Date(1e3*t)},date2unixts:function(t){return~~(t.getTime()/1e3)}}}])}(angular,window.App)}.call(this),function(){this.JST||(this.JST={}),this.JST["dashboards/depp_openbilanci/templates/widget-bilancio-hover"]=function(obj){var __p=[];with(obj||{})__p.push("<div style =\"background-image: url('/static/img/visup/icons.png');\", ng-show=\"data.showHelp\" ng-click = 'showHelpContent = !showHelpContent' class=\"visup-widget-help\">\n  <div class=\"visup-graph-help\" ng-show = 'showHelpContent'>\n    <div class=\"visup-graph-help-title\" ng-show = 'data.helpTitle != null'>{{data.helpTitle}}</div>\n    <div class=\"visup-graph-help-text\" ng-show = 'data.helpText != null'>{{data.helpText}}</div>\n  </div>\n</div>\n<div class='visup-description'>\n  <div class='visup-title as-subtitle'>{{type === 'ENTRATE' ? data.entrate.label : data.spese.label}}</div>\n  <div class='visup-subtitle as-title'>{{selected.label}}</div>\n</div>\n<div class='visup-values'>\n  <div class='visup-sublabel'>{{data.sublabel2}} {{type === 'ENTRATE' ? data.entrate.sublabel : data.spese.sublabel}}</div>\n  <div class='visup-value-2 inline-block vertical-middle'>{{selected.value != null ? \"\u20ac\"+(selected.value | numstr) : \"n.d.\"}}</div>\n  <div class='visup-value-3 inline-block vertical-middle'>\n    <span class='bold'>{{selected.procapite != null ? (selected.procapite | numstr) : \"n.d.\"}}</span>\n    procapite\n  </div>\n  <div class='visup-progress-single' ng-show='selected.variation != null '>\n    <div class='visup-progress-bar' ng-class=\"(selected.variation < 0) ? 'negative' : '' \" ng-show='selected.variation' ng-style=\"{'background':selected.color, 'width':(selected.variationAbs > 2) ? selected.variationAbs+'%' : '2%'}\"></div>\n    <div class='visup-progress-middle'></div>\n  </div>\n  <div class='inline-block vertical-middle' ng-class=\"'visup-value-'+widget\" ng-show='selected.variation != null'>\n    <span class='bold'>{{selected.variation > 0 ? \"+\"+selected.variation : selected.variation}}%</span>\n    {{data.sublabel3}}\n  </div>\n</div>\n<i class='fa fa-times visup-widget-close' href='' ng-style=\"{'color':selected.color}\"></i>\n");return __p.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["dashboards/depp_openbilanci/templates/widget-bilancio"]=function(obj){var __p=[];with(obj||{})__p.push('<div style ="background-image: url(\'/static/img/visup/icons.png\');", ng-show="data.showHelp" ng-click = \'showHelpContent = !showHelpContent\' class="visup-widget-help">\n  <div class="visup-graph-help" ng-show = \'showHelpContent\'>\n    <div class="visup-graph-help-title" ng-show = \'data.helpTitle != null\'>{{data.helpTitle}}</div>\n    <div class="visup-graph-help-text" ng-show = \'data.helpText != null\'>{{data.helpText}}</div>\n  </div>\n</div>\n<div class="visup-description">\n  <div class="visup-title" ng-show= "data.label" ng-class= "data.type != \'surplus\' ? \'as-subtitle\' : \'\'">{{data.label}}</div>\n  <div class="visup-subtitle" ng-show= "data.sublabel1" ng-class="data.type != \'surplus\' ? \'as-title\' : \'\'">{{data.sublabel1}}</div>\n</div>\n<div class="visup-values visup-values-progressbar visup-table" ng-show="data.type === \'bar\'">\n  <div class="visup-table-cell vertical-middle">\n    <div class="visup-value-2 inline-block vertical-middle">{{data.value != null ? "\u20ac"+(data.value | numstr) : "n.d."}}</div>\n    <div class="visup-value-3 visup-value-big inline-block vertical-middle">\n      <span class="bold">{{data.procapite != null ? (data.procapite | numstr) : "n.d."}}</span>\n      procapite\n    </div>\n    <div class="visup-progress-single" ng-show="data.variation != null">\n      <div class="visup-progress-bar" ng-show= "data.variation" ng-style="{\'width\':(data.variationAbs > 2) ? data.variationAbs+\'%\' : \'2%\'}" ng-class="(data.variation < 0) ? \'negative\' : \'\' "></div>\n      <div class="visup-progress-middle"></div>\n    </div>\n    <div class="visup-value-4 inline-block vertical-middle" ng-show= "data.variation != null">\n      <span class="bold">{{data.variation > 0 ? "+"+data.variation : data.variation}}%</span>\n      {{data.sublabel2}}</div>\n  </div>\n</div>\n<div class="visup-values visup-surplus visup-table" ng-show= "data.type === \'surplus\'">\n  <div class="visup-table-cell vertical-middle">\n    <div class="visup-value visup-value-5" ng-show="data.value1 != null">\n      <div class="visup-year">{{ data.year1 }}</div>\n      <div class="visup-value-big">{{ data.value1 | decimal }} \u20ac</div>\n    </div>\n    <div class="visup-value visup-value-6" ng-show="data.value2 != null">\n      <div class="visup-year bold">{{ data.year2 }}</div>\n      <div class="visup-value-big bold visup-colored" ng-class="data.value2 >= 0 ? \'\' : \'negative\'">{{ data.value2 | decimal }} \u20ac</div>\n    </div>\n    <div class="visup-value visup-value-7" ng-show="data.value3 != null">\n      <div class="visup-year">{{ data.year3 }}</div>\n      <div class="visup-value-big">{{ data.value3 | decimal }} \u20ac</div>\n    </div>\n  </div>\n</div>\n<div class="visup-graph-container" ng-class="\'visup-spark-\'+widget" ng-show="data.type === \'spark\' && data.series"></div>\n<div class="visup-pie-container" ng-class="\'visup-pie-\'+widget" ng-show= "data.type === \'pie\'"></div>\n<div class="visup-sublabel" ng-show="data.sublabel3">{{data.sublabel3}}</div>\n');return __p.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["dashboards/depp_openbilanci/templates/widget-composizione"]=function(obj){var __p=[];with(obj||{})__p.push("<div style =\"background-image: url('/static/img/visup/icons.png');\", ng-show=\"data.showHelp\" ng-click = 'showHelpContent = !showHelpContent' class=\"visup-widget-help\">\n  <div class=\"visup-graph-help\" ng-show = 'showHelpContent'>\n    <div class=\"visup-graph-help-title\" ng-show = 'data.helpTitle != null'>{{data.helpTitle}}</div>\n    <div class=\"visup-graph-help-text\" ng-show = 'data.helpText != null'>{{data.helpText}}</div>\n  </div>\n</div>\n<div class='visup-description'>\n  <div class='visup-title' ng-class=\"data.type != 'compare' ? 'as-subtitle' : ''\" ng-show='data.label'>{{data.label}}</div>\n  <div class='visup-subtitle' ng-class=\"data.type != 'compare' && data.type != 'pie' ? 'as-title' : ''\" ng-show='data.sublabel1'>{{data.sublabel1}}</div>\n</div>\n<div class='visup-values visup-values-progressbar visup-table' ng-show=\"data.type === 'bar'\">\n  <div class='visup-table-cell vertical-middle'>\n    <div class='visup-value-2 inline-block vertical-middle'>{{data.value != null ? \"\u20ac\"+(data.value | numstr) : \"n.d.\"}}</div>\n    <div class='visup-value-3 visup-value-big inline-block vertical-middle'>\n      <span class='bold'>{{data.procapite != null ? (data.procapite | numstr) : \"n.d.\"}}</span>\n      procapite\n    </div>\n    <div class='visup-progress-single' ng-show='data.variation != null'>\n      <div class='visup-progress-bar' ng-class=\"(data.variation < 0) ? 'negative' : '' \" ng-show='data.variation' ng-style=\"{'width':(data.variationAbs > 2) ? data.variationAbs+'%' : '2%'}\"></div>\n      <div class='visup-progress-middle'></div>\n    </div>\n    <div class='visup-value-4 inline-block vertical-middle' ng-show='data.variation != null'>\n      <span class='bold'>{{data.variation > 0 ? \"+\"+data.variation : data.variation}}%</span>\n      {{data.sublabel2}}\n    </div>\n  </div>\n</div>\n<div class='visup-values visup-compare visup-table' ng-show=\"data.type === 'compare'\">\n  <div class='visup-table-cell vertical-middle'>\n    <div class='visup-value visup-value-5' ng-show='data.value1 != null'>\n      <div class='visup-sublabel bold' ng-show='data.valueLabel1'>{{ data.valueLabel1 }}</div>\n      <div class='visup-value-big'>{{ data.value1 | decimal }} \u20ac</div>\n    </div>\n    <div class='visup-value visup-value-6' ng-show='data.value2 != null'>\n      <div class='visup-sublabel bold' ng-show='data.valueLabel2'>{{ data.valueLabel2 }}</div>\n      <div class='visup-value-big'>{{ data.value2 | decimal }} \u20ac</div>\n      <div class='visup-variation' ng-show='data.variation2 != null'>\n        <span class='bold'>{{ data.variation2 > 0 ? \"+\"+data.variation2 : data.variation2 }}%</span>\n        {{ data.variationLabel2 }}\n      </div>\n    </div>\n    <div class='visup-value visup-value-7' ng-show='data.value3 != null'>\n      <div class='visup-sublabel bold' ng-show='data.valueLabel3'>{{ data.valueLabel3 }}</div>\n      <div class='visup-value-big'>{{ data.value3 | decimal }} \u20ac</div>\n      <div class='visup-variation' ng-show='data.variation3 != null'>\n        <span class='bold'>{{ data.variation3 > 0 ? \"+\"+data.variation3 : data.variation3 }}%</span>\n        {{ data.variationLabel3 }}\n      </div>\n    </div>\n  </div>\n</div>\n<div class=\"visup-graph-container\" ng-class=\"'visup-spark-'+widget\" ng-show=\"data.type === 'spark' && data.series\"></div>\n<div class=\"visup-pie-container\" ng-class=\"'visup-pie-'+widget\" ng-show= \"data.type === 'pie'\"></div>\n<div class='visup-sublabel' ng-show='data.sublabel3'>{{data.sublabel3}}</div>\n");return __p.join("")}}.call(this),function(){}.call(this);